@boxcustodia/library 2.0.0-alpha.14 → 2.0.0-alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/index.cjs.js +1 -1
  2. package/dist/index.d.ts +8 -10
  3. package/dist/index.es.js +1189 -1209
  4. package/package.json +1 -1
  5. package/src/__doc__/Changelog.mdx +6 -6
  6. package/src/__doc__/V2.mdx +8 -9
  7. package/src/components/auto-complete/auto-complete.stories.tsx +0 -1
  8. package/src/components/button/button.stories.tsx +31 -14
  9. package/src/components/button/button.tsx +10 -34
  10. package/src/components/button/components/base-button.tsx +8 -13
  11. package/src/components/calendar/calendar.tsx +1 -1
  12. package/src/components/card/card.stories.tsx +0 -1
  13. package/src/components/combobox/combobox.tsx +1 -1
  14. package/src/components/date-picker/date-input.tsx +1 -1
  15. package/src/components/date-picker/date-picker.tsx +1 -1
  16. package/src/components/dropzone/dropzone.stories.tsx +0 -1
  17. package/src/components/empty/empty.stories.tsx +0 -1
  18. package/src/components/input/input.tsx +1 -1
  19. package/src/components/menu/menu.stories.tsx +0 -1
  20. package/src/components/menu/menu.tsx +4 -4
  21. package/src/components/number-input/number-input.tsx +4 -4
  22. package/src/components/pagination/pagination.stories.tsx +0 -1
  23. package/src/components/password/password.tsx +1 -1
  24. package/src/components/stepper/stepper.stories.tsx +0 -1
  25. package/src/components/tabs/tabs.stories.tsx +0 -1
  26. package/src/components/tag/tag.stories.tsx +20 -27
  27. package/src/components/tag/tag.tsx +5 -1
  28. package/src/components/timeline/timeline.stories.tsx +0 -1
  29. package/src/components/tree/tree.stories.tsx +0 -1
  30. package/src/utils/form.tsx +2 -0
package/dist/index.d.ts CHANGED
@@ -389,7 +389,7 @@ export declare type BaseEntity = {
389
389
  createdAt: Date;
390
390
  };
391
391
 
392
- export declare const Button: ({ variant, size, className, icon, children, ...rest }: Props) => JSX.Element;
392
+ export declare const Button: ({ variant, size, className, ...rest }: Props) => JSX.Element;
393
393
 
394
394
  declare type ButtonOverrides = Omit<ComponentProps<typeof Button>, "onClick" | "disabled" | "render" | "children" | "nativeButton">;
395
395
 
@@ -1182,7 +1182,7 @@ export declare type ID = string | number;
1182
1182
 
1183
1183
  export declare function Input({ className, nativeInput, onValueChange, ...props }: InputProps): JSX.Element;
1184
1184
 
1185
- export declare const inputBaseClasses = "h-10 w-full px-3 py-2 rounded-md border border-input bg-background text-sm outline-none transition-shadow placeholder:text-muted-foreground";
1185
+ export declare const inputBaseClasses = "h-8 w-full px-3 rounded-md border border-input bg-background text-sm outline-none transition-shadow placeholder:text-muted-foreground";
1186
1186
 
1187
1187
  export { InputPrimitive }
1188
1188
 
@@ -1279,7 +1279,7 @@ declare type MenuItemCheckbox = {
1279
1279
  type: "checkbox";
1280
1280
  label: React_2.ReactNode;
1281
1281
  shortcut?: string;
1282
- } & Omit<React_2.ComponentProps<typeof MenuCheckboxItem>, "children">;
1282
+ } & Omit<React_2.ComponentProps<typeof MenuCheckboxItem>, "children" | "label">;
1283
1283
 
1284
1284
  declare type MenuItemGroup = {
1285
1285
  type: "group";
@@ -1291,7 +1291,7 @@ declare type MenuItemItem = {
1291
1291
  type: "item";
1292
1292
  label: React_2.ReactNode;
1293
1293
  shortcut?: string;
1294
- } & Omit<React_2.ComponentProps<typeof MenuItem>, "children">;
1294
+ } & Omit<React_2.ComponentProps<typeof MenuItem>, "children" | "label">;
1295
1295
 
1296
1296
  declare type MenuItemLabel = {
1297
1297
  type: "label";
@@ -1302,7 +1302,7 @@ declare type MenuItemRadio = {
1302
1302
  type: "radio";
1303
1303
  label: React_2.ReactNode;
1304
1304
  shortcut?: string;
1305
- } & Omit<React_2.ComponentProps<typeof MenuRadioItem>, "children">;
1305
+ } & Omit<React_2.ComponentProps<typeof MenuRadioItem>, "children" | "label">;
1306
1306
 
1307
1307
  declare type MenuItemRadioGroup = {
1308
1308
  type: "radio-group";
@@ -1319,7 +1319,7 @@ declare type MenuItemSubmenu = {
1319
1319
  type: "submenu";
1320
1320
  label: React_2.ReactNode;
1321
1321
  items: MenuItemType[];
1322
- } & Omit<React_2.ComponentProps<typeof MenuSubTrigger>, "children">;
1322
+ } & Omit<React_2.ComponentProps<typeof MenuSubTrigger>, "children" | "label">;
1323
1323
 
1324
1324
  export declare type MenuItemType = MenuItemItem | MenuItemCheckbox | MenuItemRadio | MenuItemRadioGroup | MenuItemLabel | MenuItemSeparator | MenuItemGroup | MenuItemSubmenu;
1325
1325
 
@@ -1700,9 +1700,7 @@ declare const progressTrackVariants: (props?: ({
1700
1700
 
1701
1701
  export declare function ProgressValue({ className, ...props }: Progress_2.Value.Props): React_2.ReactElement;
1702
1702
 
1703
- declare type Props = BaseButtonProps & VariantProps<typeof buttonVariants> & {
1704
- icon?: ReactElement;
1705
- };
1703
+ declare type Props = BaseButtonProps & VariantProps<typeof buttonVariants>;
1706
1704
 
1707
1705
  declare interface Props_2 extends ComponentProps<typeof Button_2> {
1708
1706
  loading?: boolean;
@@ -2147,7 +2145,7 @@ export declare type TabsVariant = "underline" | "background";
2147
2145
  export declare function Tag({ className, variant, render, ...props }: useRender.ComponentProps<"span"> & VariantProps<typeof tagVariants>): ReactElement<unknown, string | JSXElementConstructor<any>>;
2148
2146
 
2149
2147
  export declare const tagVariants: (props?: ({
2150
- variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "error" | null | undefined;
2148
+ variant?: "default" | "link" | "outline" | "secondary" | "ghost" | "error" | "success" | "warning" | null | undefined;
2151
2149
  } & ClassProp) | undefined) => string;
2152
2150
 
2153
2151
  export declare function Textarea({ className, onValueChange, ...props }: TextareaProps): ReactElement;