@zimyo/ui 1.9.2 → 1.10.1

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 (87) hide show
  1. package/dist/chunks/Calender-0bb649b1.esm.js +1 -0
  2. package/dist/chunks/Heading-b91e2c5f.esm.js +1 -0
  3. package/dist/chunks/Muted-bfc4985b.esm.js +1 -0
  4. package/dist/chunks/Text-f18219bd.esm.js +1 -0
  5. package/dist/chunks/assertThisInitialized-406be690.esm.js +1 -0
  6. package/dist/chunks/index-5b35e7d9.esm.js +1 -0
  7. package/dist/chunks/index-c6541658.esm.js +1 -0
  8. package/dist/chunks/lucide-2a18f5d4.esm.js +26 -0
  9. package/dist/chunks/tslib.es6-49e5b83c.esm.js +1 -0
  10. package/dist/chunks/typeof-cc63ab7d.esm.js +1 -0
  11. package/dist/{Accordion → components/Accordion}/index.d.ts +10 -10
  12. package/dist/components/Accordion/index.esm.js +1 -0
  13. package/dist/{AppList → components/AppList}/index.d.ts +2 -2
  14. package/dist/components/AppList/index.esm.js +1 -0
  15. package/dist/{Badge → components/Badge}/index.d.ts +4 -4
  16. package/dist/components/Badge/index.esm.js +1 -0
  17. package/dist/{BulkActionsBar → components/BulkActionsBar}/index.d.ts +3 -3
  18. package/dist/components/BulkActionsBar/index.esm.js +1 -0
  19. package/dist/{Button → components/Button}/index.d.ts +2 -2
  20. package/dist/components/Button/index.esm.js +1 -0
  21. package/dist/components/Card/index.esm.js +1 -0
  22. package/dist/components/Checkbox/index.esm.js +1 -0
  23. package/dist/{CheckboxGroup → components/CheckboxGroup}/index.d.ts +1 -9
  24. package/dist/components/CheckboxGroup/index.esm.js +1 -0
  25. package/dist/components/DatePicker/index.esm.js +1 -0
  26. package/dist/components/DateRangePicker/index.esm.js +1 -0
  27. package/dist/{Form → components/Form}/index.d.ts +7 -5
  28. package/dist/components/Form/index.esm.js +1 -0
  29. package/dist/{GlobalMenuSearch → components/GlobalMenuSearch}/index.d.ts +2 -2
  30. package/dist/components/GlobalMenuSearch/index.esm.js +1 -0
  31. package/dist/components/Input/index.esm.js +1 -0
  32. package/dist/components/Modal/index.esm.js +1 -0
  33. package/dist/components/Notice/index.esm.js +1 -0
  34. package/dist/{Popover → components/Popover}/index.d.ts +2 -2
  35. package/dist/components/Popover/index.esm.js +1 -0
  36. package/dist/{PopupConfirm → components/PopupConfirm}/index.d.ts +6 -6
  37. package/dist/components/PopupConfirm/index.esm.js +1 -0
  38. package/dist/{Radio → components/Radio}/index.d.ts +3 -3
  39. package/dist/components/Radio/index.esm.js +1 -0
  40. package/dist/{RadioGroup → components/RadioGroup}/index.d.ts +2 -2
  41. package/dist/components/RadioGroup/index.esm.js +1 -0
  42. package/dist/components/Select/index.esm.js +1 -0
  43. package/dist/{Switch → components/Switch}/index.d.ts +3 -3
  44. package/dist/components/Switch/index.esm.js +1 -0
  45. package/dist/{Table → components/Table}/index.d.ts +5 -5
  46. package/dist/components/Table/index.esm.js +1 -0
  47. package/dist/{Tabs → components/Tabs}/index.d.ts +2 -2
  48. package/dist/components/TimePicker/index.d.ts +44 -0
  49. package/dist/components/TimePicker/index.esm.js +1 -0
  50. package/dist/components/Typography/index.esm.js +1 -0
  51. package/dist/index.d.ts +55 -13
  52. package/dist/index.esm.js +1 -27
  53. package/dist/theme/index.esm.js +1 -1
  54. package/package.json +48 -44
  55. package/dist/Accordion/index.esm.js +0 -27
  56. package/dist/AppList/index.esm.js +0 -26
  57. package/dist/Badge/index.esm.js +0 -1
  58. package/dist/BulkActionsBar/index.esm.js +0 -26
  59. package/dist/Button/index.esm.js +0 -1
  60. package/dist/Card/index.esm.js +0 -1
  61. package/dist/Checkbox/index.esm.js +0 -27
  62. package/dist/CheckboxGroup/index.esm.js +0 -26
  63. package/dist/DatePicker/index.esm.js +0 -26
  64. package/dist/DateRangePicker/index.esm.js +0 -26
  65. package/dist/Form/index.esm.js +0 -26
  66. package/dist/GlobalMenuSearch/index.esm.js +0 -27
  67. package/dist/Input/index.esm.js +0 -27
  68. package/dist/Modal/index.esm.js +0 -27
  69. package/dist/Notice/index.esm.js +0 -26
  70. package/dist/Popover/index.esm.js +0 -1
  71. package/dist/PopupConfirm/index.esm.js +0 -27
  72. package/dist/Radio/index.esm.js +0 -1
  73. package/dist/RadioGroup/index.esm.js +0 -1
  74. package/dist/Select/index.esm.js +0 -27
  75. package/dist/Switch/index.esm.js +0 -1
  76. package/dist/Table/index.esm.js +0 -27
  77. package/dist/Typography/index.esm.js +0 -1
  78. /package/dist/{Card → components/Card}/index.d.ts +0 -0
  79. /package/dist/{Checkbox → components/Checkbox}/index.d.ts +0 -0
  80. /package/dist/{DatePicker → components/DatePicker}/index.d.ts +0 -0
  81. /package/dist/{DateRangePicker → components/DateRangePicker}/index.d.ts +0 -0
  82. /package/dist/{Input → components/Input}/index.d.ts +0 -0
  83. /package/dist/{Modal → components/Modal}/index.d.ts +0 -0
  84. /package/dist/{Notice → components/Notice}/index.d.ts +0 -0
  85. /package/dist/{Select → components/Select}/index.d.ts +0 -0
  86. /package/dist/{Tabs → components/Tabs}/index.esm.js +0 -0
  87. /package/dist/{Typography → components/Typography}/index.d.ts +0 -0
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { Props, GroupBase } from 'react-select';
7
7
  import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
8
8
  import { VariantProps } from 'class-variance-authority';
9
- import { UseFormReturn } from 'react-hook-form';
9
+ import { UseFormReturn, Controller } from 'react-hook-form';
10
10
  import { Theme } from '@mui/material/styles';
11
11
  import { ClassValue } from 'clsx';
12
12
 
@@ -228,12 +228,12 @@ interface BadgeProps extends VariantProps<typeof badgeVariants> {
228
228
  declare const badgeVariants: (props?: ({
229
229
  variant?: "text" | "outlined" | "contained" | null | undefined;
230
230
  size?: "sm" | "md" | "lg" | null | undefined;
231
- type?: "default" | "error" | "success" | "info" | "warning" | null | undefined;
231
+ type?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
232
232
  } & class_variance_authority_dist_types.ClassProp) | undefined) => string;
233
233
  declare const Badge: ({ label, icon, iconPosition, dot, dotPosition, variant, size, type, color, className, }: BadgeProps) => react_jsx_runtime.JSX.Element;
234
234
 
235
- type InputSize$2 = "xs" | "sm" | "md" | "lg";
236
- type InputVariant = "outlined" | "contained";
235
+ type InputSize$3 = "xs" | "sm" | "md" | "lg";
236
+ type InputVariant$1 = "outlined" | "contained";
237
237
  interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
238
238
  label?: string;
239
239
  floatingLabel?: boolean;
@@ -241,8 +241,8 @@ interface InputProps extends React$1.InputHTMLAttributes<HTMLInputElement> {
241
241
  error?: string;
242
242
  leftIcon?: React$1.ReactNode;
243
243
  rightIcon?: React$1.ReactNode;
244
- size?: InputSize$2;
245
- variant?: InputVariant;
244
+ size?: InputSize$3;
245
+ variant?: InputVariant$1;
246
246
  allowedPattern?: "number" | "alpha" | RegExp;
247
247
  onLeftIconClick?: () => void;
248
248
  onRightIconClick?: () => void;
@@ -284,7 +284,7 @@ type DisabledDateObject = {
284
284
  after: Date;
285
285
  } | DateRange;
286
286
  type DisabledProp = boolean | Date | Date[] | DisabledDateObject;
287
- type InputSize$1 = "xs" | "sm" | "md" | "lg";
287
+ type InputSize$2 = "xs" | "sm" | "md" | "lg";
288
288
  type DatePickerVariant$1 = "outlined" | "contained";
289
289
  interface DatePickerProps {
290
290
  label?: string;
@@ -297,14 +297,14 @@ interface DatePickerProps {
297
297
  disabled?: boolean;
298
298
  variant?: DatePickerVariant$1;
299
299
  isClerable?: boolean;
300
- size?: InputSize$1;
300
+ size?: InputSize$2;
301
301
  className?: string;
302
302
  disableRange?: DisabledProp;
303
303
  floatingLabel?: boolean;
304
304
  }
305
305
  declare const DatePicker: React$1.FC<DatePickerProps>;
306
306
 
307
- type InputSize = "xs" | "sm" | "md" | "lg";
307
+ type InputSize$1 = "xs" | "sm" | "md" | "lg";
308
308
  type DatePickerVariant = "outlined" | "contained";
309
309
  interface DateRangePickerProps {
310
310
  label?: string;
@@ -322,13 +322,13 @@ interface DateRangePickerProps {
322
322
  error?: string;
323
323
  disabled?: boolean;
324
324
  variant?: DatePickerVariant;
325
- size?: InputSize;
325
+ size?: InputSize$1;
326
326
  className?: string;
327
327
  floatingLabel?: boolean;
328
328
  }
329
329
  declare const DateRangePicker: React$1.FC<DateRangePickerProps>;
330
330
 
331
- type FieldType = "text" | "number" | "textarea" | "select" | "radio" | "switch" | "checkbox" | "date" | "daterange" | "custom";
331
+ type FieldType = "text" | "number" | "textarea" | "select" | "multiselect" | "multi-select" | "timepicker" | "radio" | "switch" | "checkbox" | "date" | "daterange" | "custom";
332
332
  type FormField = {
333
333
  name: string;
334
334
  label: string;
@@ -344,6 +344,8 @@ type FormField = {
344
344
  visibleIf?: (values: any) => boolean;
345
345
  component?: React__default.ReactNode;
346
346
  colSpan?: number;
347
+ inputProps?: Record<string, any>;
348
+ controllerProps?: Partial<React__default.ComponentProps<typeof Controller>>;
347
349
  };
348
350
  type FormProps = {
349
351
  schema: FormField[];
@@ -573,6 +575,46 @@ interface BulkActionsBarProps {
573
575
  }
574
576
  declare const BulkActionsBar: React__default.FC<BulkActionsBarProps>;
575
577
 
578
+ type InputSize = 'xs' | 'sm' | 'md' | 'lg';
579
+ type InputVariant = 'outlined' | 'contained';
580
+ type ReturnAs = 'timeOfDay' | 'dateTimeUtc';
581
+ interface TimePickerProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value' | 'defaultValue'> {
582
+ label?: string;
583
+ floatingLabel?: boolean;
584
+ description?: string;
585
+ error?: string;
586
+ size?: InputSize;
587
+ variant?: InputVariant;
588
+ focusOutline?: boolean;
589
+ value?: string | null;
590
+ defaultValue?: string | null;
591
+ onChange?: (val: any) => void;
592
+ format?: 'HH:mm' | 'HH:mm:ss' | 'hh:mm a' | 'hh:mm:ss a';
593
+ use12Hours?: boolean;
594
+ hourStep?: number;
595
+ minuteStep?: number;
596
+ secondStep?: number;
597
+ needConfirm?: boolean;
598
+ showNow?: boolean;
599
+ okText?: string;
600
+ closeText?: string;
601
+ nowText?: string;
602
+ amText?: string;
603
+ pmText?: string;
604
+ hourLabel?: string;
605
+ minuteLabel?: string;
606
+ secondLabel?: string;
607
+ disabledHours?: (h: number) => boolean;
608
+ disabledMinutes?: (m: number) => boolean;
609
+ disabledSeconds?: (s: number) => boolean;
610
+ allowClear?: boolean;
611
+ timeZone?: string;
612
+ locale?: string;
613
+ returnAs?: ReturnAs;
614
+ dateForConversion?: Date | string;
615
+ }
616
+ declare const TimePicker: React$1.ForwardRefExoticComponent<TimePickerProps & React$1.RefAttributes<HTMLInputElement>>;
617
+
576
618
  interface UILibraryThemeProviderProps {
577
619
  children: React__default.ReactNode;
578
620
  primaryColor?: string;
@@ -667,5 +709,5 @@ declare const designTokens: {
667
709
  declare function cn(...inputs: ClassValue[]): string;
668
710
  declare function useStableId(prefix?: string): string;
669
711
 
670
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AppList, Badge, Blockquote, BulkActionsBar, Button, Caption, CardActions, CardContent, CardHeader, CardImage, CardRoot, CardSkeleton, Checkbox, CheckboxGroup, Code, DatePicker, DateRangePicker, Drawer, Form, GlobalMenuSearch, Heading, Input, Lead, Modal, Muted, Notice, Popover, PopupConfirm, Radio, RadioGroup, Select, Strong, Switch, Table, Text, UILibraryThemeProvider, cn, createCustomTheme, designTokens, theme, useStableId };
671
- export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AppListProps, BadgeProps, BulkActionsBarProps, ButtonProps, CardRootProps, CheckboxGroupProps, CheckboxProps, DatePickerProps, DateRangePickerProps, DrawerProps, FormProps, GlobalMenuSearchComponentProps, InputProps, ModalProps, NoticeProps, PopoverProps, PopupConfirmProps, RadioGroupProps, RadioOption, RadioProps, SelectProps, SwitchProps, TableProps, ThemeConfig, UILibraryThemeProviderProps };
712
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AppList, Badge, Blockquote, BulkActionsBar, Button, Caption, CardActions, CardContent, CardHeader, CardImage, CardRoot, CardSkeleton, Checkbox, CheckboxGroup, Code, DatePicker, DateRangePicker, Drawer, Form, GlobalMenuSearch, Heading, Input, Lead, Modal, Muted, Notice, Popover, PopupConfirm, Radio, RadioGroup, Select, Strong, Switch, Table, Text, TimePicker, UILibraryThemeProvider, cn, createCustomTheme, designTokens, theme, useStableId };
713
+ export type { AccordionContentProps, AccordionItemProps, AccordionProps, AccordionTriggerProps, AppListProps, BadgeProps, BulkActionsBarProps, ButtonProps, CardRootProps, CheckboxGroupProps, CheckboxProps, DatePickerProps, DateRangePickerProps, DrawerProps, FormProps, GlobalMenuSearchComponentProps, InputProps, ModalProps, NoticeProps, PopoverProps, PopupConfirmProps, RadioGroupProps, RadioOption, RadioProps, SelectProps, SwitchProps, TableProps, ThemeConfig, TimePickerProps, UILibraryThemeProviderProps };