Skip to content

Commit

Permalink
Merge pull request #49 from tuzkituan:main
Browse files Browse the repository at this point in the history
1.2.4
  • Loading branch information
lewisnguyen2804 authored Jan 24, 2024
2 parents 21f37b2 + 002b6cf commit 2f28ac2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/components/button/button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const Button = (props: IButton) => {
className = "",
children,
iconSpacing,
variant,
variant = "solid",
size,
isDisabled,
isLoading,
Expand Down
4 changes: 2 additions & 2 deletions lib/components/date-picker/date-picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const DatePicker = (props: IDatePicker) => {

const {
className = "",
size,
variant,
size = "md",
variant = "outline",
isDisabled = false,
isReadOnly = false,
format,
Expand Down
4 changes: 2 additions & 2 deletions lib/components/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ export const Input = forwardRef<HTMLInputElement, IInput>(
const theme = useComponentStyle("Input");
const {
className = "",
size,
variant,
size = "md",
variant = "outline",
leftElement,
rightElement,
isDisabled = false,
Expand Down
8 changes: 7 additions & 1 deletion lib/components/number-input/number-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ const defaultProps: Partial<INumberInput> = {
};

const InputContainer = (props: INumberInput) => {
const { children, variant, size, className, isDisabled } = props;
const {
children,
variant = "outline",
size = "md",
className,
isDisabled,
} = props;
const theme = useComponentStyle("NumberInput");

const containerClasses = useMemo(() => {
Expand Down
2 changes: 1 addition & 1 deletion lib/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Table = (props: ITable) => {
isLoading = false,
onRow,
showHeader = true,
size,
size = "md",
...restProps
} = props;

Expand Down
2 changes: 1 addition & 1 deletion lib/components/tabs/tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const Tabs = (props: ITabs) => {
activeKey,
onTabChange,
items,
variant = "solid",
variant = "underline",
isFitted = false,
navClassName = "",
ulClassName = "",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeni-ui",
"private": false,
"version": "1.2.3-beta",
"version": "1.2.4-beta",
"type": "module",
"main": "dist/main.js",
"types": "dist/main.d.ts",
Expand Down

0 comments on commit 2f28ac2

Please sign in to comment.