@snapcall/design-system 1.21.2 → 1.22.0-beta.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 (99) hide show
  1. package/dist/{chunk-RN2FGOFK.mjs → chunk-CBQRH67Z.mjs} +8 -8
  2. package/dist/{chunk-XI3KELZM.mjs → chunk-R6W6SKNR.mjs} +3 -3
  3. package/dist/{chunk-ZMQWNJ3B.mjs → chunk-TU6HU32A.mjs} +1 -1
  4. package/dist/components/Accordion/index.d.mts +2 -7
  5. package/dist/components/Accordion/index.d.ts +2 -7
  6. package/dist/components/Accordion/index.js +2 -2
  7. package/dist/components/Accordion/index.mjs +2 -2
  8. package/dist/components/AlertDialog/index.js +5 -5
  9. package/dist/components/AlertDialog/index.mjs +3 -3
  10. package/dist/components/Avatar/index.d.mts +10 -10
  11. package/dist/components/Avatar/index.d.ts +10 -10
  12. package/dist/components/Badge/index.d.mts +4 -4
  13. package/dist/components/Badge/index.d.ts +4 -4
  14. package/dist/components/Banner/index.d.mts +70 -0
  15. package/dist/components/Banner/index.d.ts +70 -0
  16. package/dist/components/Banner/index.js +152 -0
  17. package/dist/components/Banner/index.mjs +84 -0
  18. package/dist/components/Button/index.d.mts +12 -12
  19. package/dist/components/Button/index.d.ts +12 -12
  20. package/dist/components/Button/index.js +3 -3
  21. package/dist/components/Button/index.mjs +1 -1
  22. package/dist/components/Calendar/index.js +5 -5
  23. package/dist/components/Calendar/index.mjs +3 -3
  24. package/dist/components/Carousel/index.js +3 -3
  25. package/dist/components/Carousel/index.mjs +1 -1
  26. package/dist/components/Checkbox/index.js +1 -1
  27. package/dist/components/Checkbox/index.mjs +1 -1
  28. package/dist/components/Command/index.d.mts +1 -1
  29. package/dist/components/Command/index.d.ts +1 -1
  30. package/dist/components/Command/index.js +8 -8
  31. package/dist/components/Command/index.mjs +4 -4
  32. package/dist/components/CreatableSelect/index.d.mts +1 -1
  33. package/dist/components/CreatableSelect/index.d.ts +1 -1
  34. package/dist/components/CreatableSelect/index.js +14 -12
  35. package/dist/components/CreatableSelect/index.mjs +10 -8
  36. package/dist/components/Dialog/index.d.mts +2 -2
  37. package/dist/components/Dialog/index.d.ts +2 -2
  38. package/dist/components/Dialog/index.js +7 -7
  39. package/dist/components/Dialog/index.mjs +5 -5
  40. package/dist/components/DropdownMenu/index.d.mts +2 -2
  41. package/dist/components/DropdownMenu/index.d.ts +2 -2
  42. package/dist/components/DropdownMenu/index.js +9 -9
  43. package/dist/components/DropdownMenu/index.mjs +12 -12
  44. package/dist/components/FilterButton/index.js +3 -3
  45. package/dist/components/FilterButton/index.mjs +1 -1
  46. package/dist/components/Form/index.d.mts +2 -1
  47. package/dist/components/Form/index.d.ts +2 -1
  48. package/dist/components/Input/index.d.mts +3 -3
  49. package/dist/components/Input/index.d.ts +3 -3
  50. package/dist/components/Input/index.js +2 -2
  51. package/dist/components/Input/index.mjs +2 -2
  52. package/dist/components/MediaCard/index.d.mts +7 -3
  53. package/dist/components/MediaCard/index.d.ts +7 -3
  54. package/dist/components/MediaCard/index.js +21 -15
  55. package/dist/components/MediaCard/index.mjs +21 -15
  56. package/dist/components/Pagination/index.js +3 -3
  57. package/dist/components/Pagination/index.mjs +1 -1
  58. package/dist/components/Popover/index.js +1 -1
  59. package/dist/components/Popover/index.mjs +1 -1
  60. package/dist/components/RadioGroup/index.js +1 -1
  61. package/dist/components/RadioGroup/index.mjs +1 -1
  62. package/dist/components/Select/index.js +3 -3
  63. package/dist/components/Select/index.mjs +3 -3
  64. package/dist/components/Sheet/index.d.mts +6 -5
  65. package/dist/components/Sheet/index.d.ts +6 -5
  66. package/dist/components/Sheet/index.js +4 -4
  67. package/dist/components/Sheet/index.mjs +2 -2
  68. package/dist/components/Switch/index.js +1 -1
  69. package/dist/components/Switch/index.mjs +1 -1
  70. package/dist/components/Table/index.d.mts +4 -4
  71. package/dist/components/Table/index.d.ts +4 -4
  72. package/dist/components/Table/index.js +2 -2
  73. package/dist/components/Table/index.mjs +2 -2
  74. package/dist/components/Tabs/index.js +3 -3
  75. package/dist/components/Tabs/index.mjs +3 -3
  76. package/dist/components/Textarea/index.js +1 -1
  77. package/dist/components/Textarea/index.mjs +1 -1
  78. package/dist/components/Toaster/index.d.mts +12 -11
  79. package/dist/components/Toaster/index.d.ts +12 -11
  80. package/dist/components/Toaster/index.js +7 -7
  81. package/dist/components/Toaster/index.mjs +5 -5
  82. package/dist/components/ToggleGroup/index.d.mts +1 -1
  83. package/dist/components/ToggleGroup/index.d.ts +1 -1
  84. package/dist/components/ToggleGroup/index.js +4 -4
  85. package/dist/components/ToggleGroup/index.mjs +4 -4
  86. package/dist/components/Tooltip/index.js +1 -1
  87. package/dist/components/Tooltip/index.mjs +1 -1
  88. package/dist/components/{index-Btj0VOSP.d.ts → index-CMWfBd0H.d.mts} +39 -39
  89. package/dist/components/{index-Btj0VOSP.d.mts → index-CMWfBd0H.d.ts} +39 -39
  90. package/dist/components/types-DBpSTFQy.d.mts +9 -0
  91. package/dist/components/types-DBpSTFQy.d.ts +9 -0
  92. package/dist/index.d.mts +169 -100
  93. package/dist/index.d.ts +169 -100
  94. package/dist/index.js +33 -31
  95. package/dist/index.mjs +1 -0
  96. package/dist/style.css +1 -1
  97. package/dist/tailwind.css +2 -3
  98. package/package.json +60 -59
  99. package/dist/tailwind.config.js +0 -449
@@ -3,36 +3,36 @@ import * as React from 'react';
3
3
  declare const Command: React.ForwardRefExoticComponent<Omit<{
4
4
  children?: React.ReactNode;
5
5
  } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
6
- ref?: React.Ref<HTMLDivElement> | undefined;
6
+ ref?: React.Ref<HTMLDivElement>;
7
7
  } & {
8
- asChild?: boolean | undefined;
8
+ asChild?: boolean;
9
9
  }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
10
- label?: string | undefined;
11
- shouldFilter?: boolean | undefined;
12
- filter?: ((value: string, search: string, keywords?: string[] | undefined) => number) | undefined;
13
- defaultValue?: string | undefined;
14
- value?: string | undefined;
15
- onValueChange?: ((value: string) => void) | undefined;
16
- loop?: boolean | undefined;
17
- disablePointerSelection?: boolean | undefined;
18
- vimBindings?: boolean | undefined;
10
+ label?: string;
11
+ shouldFilter?: boolean;
12
+ filter?: (value: string, search: string, keywords?: string[]) => number;
13
+ defaultValue?: string;
14
+ value?: string;
15
+ onValueChange?: (value: string) => void;
16
+ loop?: boolean;
17
+ disablePointerSelection?: boolean;
18
+ vimBindings?: boolean;
19
19
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
20
20
  declare const CommandInput: React.ForwardRefExoticComponent<Omit<Omit<Pick<Pick<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "key" | keyof React.InputHTMLAttributes<HTMLInputElement>> & {
21
- ref?: React.Ref<HTMLInputElement> | undefined;
21
+ ref?: React.Ref<HTMLInputElement>;
22
22
  } & {
23
- asChild?: boolean | undefined;
23
+ asChild?: boolean;
24
24
  }, "key" | "asChild" | keyof React.InputHTMLAttributes<HTMLInputElement>>, "type" | "onChange" | "value"> & {
25
- value?: string | undefined;
26
- onValueChange?: ((search: string) => void) | undefined;
25
+ value?: string;
26
+ onValueChange?: (search: string) => void;
27
27
  } & React.RefAttributes<HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
28
28
  declare const CommandList: React.ForwardRefExoticComponent<Omit<{
29
29
  children?: React.ReactNode;
30
30
  } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
31
- ref?: React.Ref<HTMLDivElement> | undefined;
31
+ ref?: React.Ref<HTMLDivElement>;
32
32
  } & {
33
- asChild?: boolean | undefined;
33
+ asChild?: boolean;
34
34
  }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
35
- label?: string | undefined;
35
+ label?: string;
36
36
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
37
37
  interface CommandEmptyExtension {
38
38
  title?: string;
@@ -41,40 +41,40 @@ interface CommandEmptyExtension {
41
41
  declare const CommandEmpty: React.ForwardRefExoticComponent<Omit<{
42
42
  children?: React.ReactNode;
43
43
  } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
44
- ref?: React.Ref<HTMLDivElement> | undefined;
44
+ ref?: React.Ref<HTMLDivElement>;
45
45
  } & {
46
- asChild?: boolean | undefined;
46
+ asChild?: boolean;
47
47
  }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & React.RefAttributes<HTMLDivElement>, "ref"> & CommandEmptyExtension & React.RefAttributes<HTMLDivElement & CommandEmptyExtension>>;
48
48
  declare const CommandLoading: React.ForwardRefExoticComponent<Omit<{
49
49
  children?: React.ReactNode;
50
50
  } & Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
51
- ref?: React.Ref<HTMLDivElement> | undefined;
51
+ ref?: React.Ref<HTMLDivElement>;
52
52
  } & {
53
- asChild?: boolean | undefined;
53
+ asChild?: boolean;
54
54
  }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
55
- progress?: number | undefined;
56
- label?: string | undefined;
55
+ progress?: number;
56
+ label?: string;
57
57
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
58
58
  declare const CommandGroup: React.ForwardRefExoticComponent<Omit<{
59
59
  children?: React.ReactNode;
60
60
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
61
- ref?: React.Ref<HTMLDivElement> | undefined;
61
+ ref?: React.Ref<HTMLDivElement>;
62
62
  } & {
63
- asChild?: boolean | undefined;
63
+ asChild?: boolean;
64
64
  }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "heading" | "value"> & {
65
65
  heading?: React.ReactNode;
66
- value?: string | undefined;
67
- forceMount?: boolean | undefined;
66
+ value?: string;
67
+ forceMount?: boolean;
68
68
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
69
69
  declare const CommandSeparator: React.ForwardRefExoticComponent<Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
70
- ref?: React.Ref<HTMLDivElement> | undefined;
70
+ ref?: React.Ref<HTMLDivElement>;
71
71
  } & {
72
- asChild?: boolean | undefined;
72
+ asChild?: boolean;
73
73
  }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>> & {
74
- alwaysRender?: boolean | undefined;
74
+ alwaysRender?: boolean;
75
75
  } & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
76
76
  type CommandItemExtension = {
77
- icon?: JSX.Element;
77
+ icon?: React.JSX.Element;
78
78
  checkbox?: boolean;
79
79
  checked?: boolean;
80
80
  description?: string;
@@ -82,15 +82,15 @@ type CommandItemExtension = {
82
82
  declare const CommandItem: React.ForwardRefExoticComponent<Omit<{
83
83
  children?: React.ReactNode;
84
84
  } & Omit<Pick<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>> & {
85
- ref?: React.Ref<HTMLDivElement> | undefined;
85
+ ref?: React.Ref<HTMLDivElement>;
86
86
  } & {
87
- asChild?: boolean | undefined;
87
+ asChild?: boolean;
88
88
  }, "key" | "asChild" | keyof React.HTMLAttributes<HTMLDivElement>>, "onSelect" | "disabled" | "value"> & {
89
- disabled?: boolean | undefined;
90
- onSelect?: ((value: string) => void) | undefined;
91
- value?: string | undefined;
92
- keywords?: string[] | undefined;
93
- forceMount?: boolean | undefined;
89
+ disabled?: boolean;
90
+ onSelect?: (value: string) => void;
91
+ value?: string;
92
+ keywords?: string[];
93
+ forceMount?: boolean;
94
94
  } & React.RefAttributes<HTMLDivElement>, "ref"> & CommandItemExtension & React.RefAttributes<HTMLDivElement & CommandItemExtension>>;
95
95
 
96
96
  export { type CommandItemExtension as C, Command as a, CommandEmpty as b, CommandGroup as c, CommandInput as d, CommandItem as e, CommandList as f, CommandLoading as g, CommandSeparator as h };
@@ -0,0 +1,9 @@
1
+ import { SVGProps } from 'react';
2
+
3
+ type SVGAttributes = Partial<SVGProps<SVGSVGElement>>;
4
+ interface IconProps extends SVGAttributes {
5
+ size?: string | number;
6
+ duotone?: boolean;
7
+ }
8
+
9
+ export type { IconProps as I };
@@ -0,0 +1,9 @@
1
+ import { SVGProps } from 'react';
2
+
3
+ type SVGAttributes = Partial<SVGProps<SVGSVGElement>>;
4
+ interface IconProps extends SVGAttributes {
5
+ size?: string | number;
6
+ duotone?: boolean;
7
+ }
8
+
9
+ export type { IconProps as I };