asheeui 0.6.14 → 0.7.0

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 (184) hide show
  1. package/README.md +1 -14
  2. package/dist/AsheeUIProvider.js +22 -24
  3. package/dist/components/accordion/Accordion.js +79 -173
  4. package/dist/components/accordion/accordion-config.js +12 -13
  5. package/dist/components/accordion/accordion-styles.js +21 -24
  6. package/dist/components/autocomplete/Autocomplete.js +78 -136
  7. package/dist/components/autocomplete/autocomplete-config.js +7 -12
  8. package/dist/components/button/Button.d.ts +29 -1
  9. package/dist/components/button/Button.d.ts.map +1 -1
  10. package/dist/components/button/Button.js +47 -108
  11. package/dist/components/button/button-config.js +16 -17
  12. package/dist/components/button/button-styles.js +10 -11
  13. package/dist/components/card/Card.d.ts +36 -16
  14. package/dist/components/card/Card.d.ts.map +1 -1
  15. package/dist/components/card/Card.js +115 -205
  16. package/dist/components/card/card-config.js +24 -21
  17. package/dist/components/card/card-styles.js +19 -22
  18. package/dist/components/carousel/Carousel.js +123 -248
  19. package/dist/components/carousel/carousel-config.js +24 -25
  20. package/dist/components/carousel/carousel-styles.js +14 -16
  21. package/dist/components/chip/Chip.js +84 -191
  22. package/dist/components/chip/chip-config.js +13 -14
  23. package/dist/components/chip/chip-styles.js +22 -26
  24. package/dist/components/date-picker/Calendar.d.ts +3 -3
  25. package/dist/components/date-picker/Calendar.d.ts.map +1 -1
  26. package/dist/components/date-picker/Calendar.js +141 -222
  27. package/dist/components/date-picker/DatePicker.d.ts +5 -5
  28. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  29. package/dist/components/date-picker/DatePicker.js +122 -220
  30. package/dist/components/date-picker/TimeSpinner.js +58 -82
  31. package/dist/components/date-picker/date-picker-config.d.ts +4 -4
  32. package/dist/components/date-picker/date-picker-config.d.ts.map +1 -1
  33. package/dist/components/date-picker/date-picker-config.js +10 -11
  34. package/dist/components/date-picker/date-picker-styles.js +44 -45
  35. package/dist/components/date-picker/date-picker.helpers.d.ts +4 -4
  36. package/dist/components/date-picker/date-picker.helpers.d.ts.map +1 -1
  37. package/dist/components/date-picker/date-picker.helpers.js +74 -102
  38. package/dist/components/drawer/Drawer.d.ts +26 -8
  39. package/dist/components/drawer/Drawer.d.ts.map +1 -1
  40. package/dist/components/drawer/Drawer.js +54 -131
  41. package/dist/components/drawer/drawer-config.js +14 -15
  42. package/dist/components/drawer/drawer-styles.js +38 -42
  43. package/dist/components/field/FieldShell.js +49 -56
  44. package/dist/components/field/field-config.js +17 -18
  45. package/dist/components/field/field-styles.js +8 -8
  46. package/dist/components/image/Image.d.ts +7 -7
  47. package/dist/components/image/Image.d.ts.map +1 -1
  48. package/dist/components/image/Image.js +65 -132
  49. package/dist/components/image/image-config.js +17 -18
  50. package/dist/components/image/image-styles.js +14 -15
  51. package/dist/components/input/Input.js +65 -150
  52. package/dist/components/input/PasswordInput.js +30 -49
  53. package/dist/components/input/input-config.js +7 -7
  54. package/dist/components/input/input-styles.js +9 -10
  55. package/dist/components/keyboard/KeyboardContext.js +10 -11
  56. package/dist/components/keyboard/KeyboardProvider.js +100 -181
  57. package/dist/components/keyboard/OnScreenKeyboard.d.ts.map +1 -1
  58. package/dist/components/keyboard/OnScreenKeyboard.js +159 -166
  59. package/dist/components/keyboard/keyboard-config.js +59 -57
  60. package/dist/components/keyboard/keyboard-styles.js +10 -11
  61. package/dist/components/keyboard/use-keyboard-field.js +29 -21
  62. package/dist/components/link/Link.js +47 -137
  63. package/dist/components/link/link-config.js +14 -15
  64. package/dist/components/link/link-styles.js +25 -29
  65. package/dist/components/marquee/Marquee.js +55 -144
  66. package/dist/components/marquee/marquee-config.js +18 -19
  67. package/dist/components/marquee/marquee-styles.js +13 -15
  68. package/dist/components/modal/Modal.d.ts +26 -10
  69. package/dist/components/modal/Modal.d.ts.map +1 -1
  70. package/dist/components/modal/Modal.js +56 -136
  71. package/dist/components/modal/modal-config.js +15 -16
  72. package/dist/components/modal/modal-styles.js +13 -14
  73. package/dist/components/multi-select/MultiSelect.d.ts +18 -2
  74. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -1
  75. package/dist/components/multi-select/MultiSelect.js +149 -283
  76. package/dist/components/multi-select/multi-select-config.d.ts +23 -18
  77. package/dist/components/multi-select/multi-select-config.d.ts.map +1 -1
  78. package/dist/components/multi-select/multi-select-config.js +18 -21
  79. package/dist/components/multi-select/multi-select-styles.js +17 -20
  80. package/dist/components/radio/Radio.js +43 -80
  81. package/dist/components/radio/RadioGroup.js +57 -155
  82. package/dist/components/radio/radio-config.js +15 -16
  83. package/dist/components/radio/radio-context.js +6 -6
  84. package/dist/components/radio/radio-styles.js +55 -60
  85. package/dist/components/resizable-screen/ResizableScreen.js +87 -177
  86. package/dist/components/resizable-screen/resizable-screen-config.js +16 -17
  87. package/dist/components/select/Select.d.ts +3 -2
  88. package/dist/components/select/Select.d.ts.map +1 -1
  89. package/dist/components/select/Select.js +97 -195
  90. package/dist/components/select/select-config.js +8 -9
  91. package/dist/components/select/select-styles.js +5 -5
  92. package/dist/components/select-menu/SelectMenu.d.ts.map +1 -1
  93. package/dist/components/select-menu/SelectMenu.js +102 -196
  94. package/dist/components/select-menu/select-menu-config.js +12 -12
  95. package/dist/components/select-menu/use-select-floating.d.ts +11 -1
  96. package/dist/components/select-menu/use-select-floating.d.ts.map +1 -1
  97. package/dist/components/select-menu/use-select-floating.js +41 -48
  98. package/dist/components/sidebar/Sidebar.d.ts +43 -22
  99. package/dist/components/sidebar/Sidebar.d.ts.map +1 -1
  100. package/dist/components/sidebar/Sidebar.js +146 -331
  101. package/dist/components/sidebar/sidebar-config.d.ts +98 -31
  102. package/dist/components/sidebar/sidebar-config.d.ts.map +1 -1
  103. package/dist/components/sidebar/sidebar-config.js +47 -33
  104. package/dist/components/sidebar/sidebar-styles.js +27 -32
  105. package/dist/components/spinner/spinner-config.js +12 -13
  106. package/dist/components/spinner/spinner-styles.js +13 -14
  107. package/dist/components/spinner/spinner.js +39 -82
  108. package/dist/components/switch/Switch.js +62 -154
  109. package/dist/components/switch/switch-config.js +11 -12
  110. package/dist/components/switch/switch-styles.js +14 -16
  111. package/dist/components/table/Table.js +64 -186
  112. package/dist/components/table/table-config.js +17 -18
  113. package/dist/components/table/table-styles.js +48 -52
  114. package/dist/components/tabs/Tabs.d.ts +16 -8
  115. package/dist/components/tabs/Tabs.d.ts.map +1 -1
  116. package/dist/components/tabs/Tabs.js +93 -208
  117. package/dist/components/tabs/tabs-config.d.ts +42 -20
  118. package/dist/components/tabs/tabs-config.d.ts.map +1 -1
  119. package/dist/components/tabs/tabs-config.js +26 -18
  120. package/dist/components/tabs/tabs-styles.js +15 -17
  121. package/dist/components/textarea/Textarea.js +52 -138
  122. package/dist/components/textarea/textarea-config.js +10 -11
  123. package/dist/components/textarea/textarea-styles.js +9 -10
  124. package/dist/components/toast/ToastContext.js +22 -26
  125. package/dist/components/toast/ToastItem.js +82 -144
  126. package/dist/components/toast/ToastProvider.d.ts.map +1 -1
  127. package/dist/components/toast/ToastProvider.js +128 -190
  128. package/dist/components/toast/toast-config.js +23 -24
  129. package/dist/components/toast/toast-styles.js +50 -55
  130. package/dist/components/toast/use-pausable-timeout.js +17 -13
  131. package/dist/components/tooltip/Tooltip.d.ts +5 -0
  132. package/dist/components/tooltip/Tooltip.d.ts.map +1 -1
  133. package/dist/components/tooltip/Tooltip.js +68 -158
  134. package/dist/components/tooltip/tooltip-config.d.ts +25 -0
  135. package/dist/components/tooltip/tooltip-config.d.ts.map +1 -1
  136. package/dist/components/tooltip/tooltip-config.js +26 -22
  137. package/dist/components/tooltip/tooltip-styles.js +15 -17
  138. package/dist/config/default-config.js +11 -34
  139. package/dist/config/resolve-color.js +23 -23
  140. package/dist/config/resolve-config.d.ts.map +1 -1
  141. package/dist/config/resolve-config.js +14 -12
  142. package/dist/icons/ArrowLeftIcon.js +16 -19
  143. package/dist/icons/CalendarIcon.js +43 -24
  144. package/dist/icons/CheckIcon.js +16 -19
  145. package/dist/icons/ChevronDownIcon.js +15 -21
  146. package/dist/icons/ChevronLeftIcon.js +16 -19
  147. package/dist/icons/ChevronRightIcon.js +16 -19
  148. package/dist/icons/ChevronUpIcon.js +16 -19
  149. package/dist/icons/ClearIcon.js +26 -22
  150. package/dist/icons/ClockIcon.js +20 -22
  151. package/dist/icons/CloseIcon.js +26 -22
  152. package/dist/icons/ErrorIcon.js +16 -19
  153. package/dist/icons/ExternalLinkIcon.js +25 -23
  154. package/dist/icons/EyeIcon.js +20 -22
  155. package/dist/icons/EyeOffIcon.js +21 -22
  156. package/dist/icons/InfoIcon.js +16 -19
  157. package/dist/icons/SearchIcon.js +25 -22
  158. package/dist/icons/WarningIcon.js +16 -19
  159. package/dist/index.js +65 -163
  160. package/dist/libs/context.js +10 -13
  161. package/dist/libs/index.js +1 -0
  162. package/dist/libs/registry.js +10 -12
  163. package/dist/libs/use-floating-z-index.d.ts +32 -0
  164. package/dist/libs/use-floating-z-index.d.ts.map +1 -0
  165. package/dist/libs/use-floating-z-index.js +16 -0
  166. package/dist/libs/use-isomorphic-layout-effect.js +5 -5
  167. package/dist/scripts/AsheeThemeScript.js +35 -44
  168. package/dist/shared/radius.d.ts.map +1 -1
  169. package/dist/shared/radius.js +12 -13
  170. package/dist/shared/variant.js +46 -134
  171. package/dist/theme/color.js +28 -28
  172. package/dist/theme/controller.d.ts.map +1 -1
  173. package/dist/theme/controller.js +65 -178
  174. package/dist/theme/useTheme.js +13 -44
  175. package/dist/utils/cn.js +7 -7
  176. package/dist/utils/index.d.ts +1 -0
  177. package/dist/utils/index.d.ts.map +1 -1
  178. package/dist/utils/index.js +1 -0
  179. package/dist/utils/merge-object.js +13 -14
  180. package/dist/utils/resolve-token.js +11 -14
  181. package/dist/utils/stacking.d.ts +76 -0
  182. package/dist/utils/stacking.d.ts.map +1 -0
  183. package/dist/utils/stacking.js +34 -0
  184. package/package.json +12 -11
@@ -1,192 +1,85 @@
1
1
  "use client";
2
- import { jsxs as F, jsx as i } from "react/jsx-runtime";
3
- import { forwardRef as O } from "react";
4
- import { CloseIcon as X } from "../../icons/CloseIcon.js";
5
- import { useAsheeConfig as Y } from "../../libs/context.js";
6
- import { resolveCascade as p, resolveRadiusKey as T, resolveClassKey as o } from "../../utils/resolve-token.js";
7
- import { FALLBACK_CHIP_CONFIG as s } from "./chip-config.js";
8
- import { CHIP_HEIGHT_CLASS as B, CHIP_PADDING_CLASS as M, CHIP_FONT_CLASS as U, CHIP_GAP_CLASS as Z, CHIP_ICON_SIZE_CLASS as q } from "./chip-styles.js";
9
- import { RADIUS_CLASS as D } from "../../shared/radius.js";
10
- import { cn as c } from "../../utils/cn.js";
11
- import { resolveVariantClass as J } from "../../shared/variant.js";
12
- const Q = O(
13
- ({
14
- variant: S,
15
- color: C,
16
- size: _,
17
- radius: A,
18
- isDisabled: t = !1,
19
- startIcon: y,
20
- endIcon: h,
21
- avatar: d,
22
- dot: m,
23
- onClose: a,
24
- closeIcon: I,
25
- children: N,
26
- className: b,
27
- style: g,
28
- onClick: n,
29
- ...w
30
- }, x) => {
31
- var K;
32
- const u = Y(), r = (K = u.components) == null ? void 0 : K.chip, v = p(
33
- S,
34
- r == null ? void 0 : r.variant,
35
- u.defaultVariant,
36
- s.variant
37
- ), z = v === "underlined" ? "bordered" : v, P = p(
38
- C,
39
- r == null ? void 0 : r.color,
40
- u.defaultColor,
41
- s.color
42
- ), l = p(
43
- _,
44
- r == null ? void 0 : r.size,
45
- void 0,
46
- s.size
47
- ), H = T(
48
- A,
49
- r == null ? void 0 : r.radius,
50
- u.defaultRadius,
51
- s.radius
52
- ), L = o(
53
- l,
54
- B,
55
- s.size
56
- ), j = o(
57
- l,
58
- M,
59
- s.size
60
- ), R = o(
61
- l,
62
- U,
63
- s.size
64
- ), k = o(
65
- l,
66
- Z,
67
- s.size
68
- ), f = o(
69
- l,
70
- q,
71
- s.size
72
- ), E = o(
73
- H,
74
- D,
75
- s.radius
76
- ), G = (e) => {
77
- e.stopPropagation(), !t && (a == null || a(e));
78
- };
79
- return /* @__PURE__ */ F(
80
- "div",
81
- {
82
- ref: x,
83
- tabIndex: t ? -1 : 0,
84
- "aria-disabled": t,
85
- onClick: (e) => {
86
- t || n == null || n(e);
87
- },
88
- onKeyDown: (e) => {
89
- if (!t && (e.key === "Enter" || e.key === " ")) {
90
- e.preventDefault();
91
- const V = {
92
- ...e,
93
- button: 0,
94
- buttons: 1,
95
- clientX: 0,
96
- clientY: 0,
97
- pageX: 0,
98
- pageY: 0,
99
- screenX: 0,
100
- screenY: 0,
101
- altKey: e.altKey,
102
- ctrlKey: e.ctrlKey,
103
- metaKey: e.metaKey,
104
- shiftKey: e.shiftKey,
105
- type: "click"
106
- };
107
- n == null || n(V);
108
- }
109
- },
110
- className: c(
111
- "inline-flex items-center font-medium transition-all duration-200 select-none shrink-0",
112
- "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2",
113
- J(z, P),
114
- L,
115
- j,
116
- R,
117
- k,
118
- E,
119
- t && "opacity-50 pointer-events-none cursor-not-allowed",
120
- n && !t && "cursor-pointer hover:opacity-90 active:scale-[0.98]",
121
- b
122
- ),
123
- style: g,
124
- ...w,
125
- children: [
126
- m && /* @__PURE__ */ i(
127
- "span",
128
- {
129
- className: "shrink-0 rounded-full",
130
- style: {
131
- width: "0.5em",
132
- height: "0.5em",
133
- backgroundColor: typeof m == "string" ? m : "currentColor"
134
- }
135
- }
136
- ),
137
- d && /* @__PURE__ */ i(
138
- "span",
139
- {
140
- className: c(
141
- "inline-flex items-center justify-center shrink-0 scrollbar-hide overflow-hidden rounded-full",
142
- f
143
- ),
144
- children: d
145
- }
146
- ),
147
- y && !d && /* @__PURE__ */ i(
148
- "span",
149
- {
150
- className: c(
151
- "inline-flex items-center justify-center shrink-0",
152
- f
153
- ),
154
- children: y
155
- }
156
- ),
157
- N,
158
- h && !a && /* @__PURE__ */ i(
159
- "span",
160
- {
161
- className: c(
162
- "inline-flex items-center justify-center shrink-0",
163
- f
164
- ),
165
- children: h
166
- }
167
- ),
168
- a && /* @__PURE__ */ i(
169
- "button",
170
- {
171
- type: "button",
172
- "aria-label": "Remove chip",
173
- disabled: t,
174
- onClick: G,
175
- className: c(
176
- "inline-flex items-center justify-center shrink-0 rounded-full transition-opacity",
177
- "hover:opacity-70 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-current",
178
- "opacity-80 -mr-1",
179
- f
180
- ),
181
- children: I ?? /* @__PURE__ */ i(X, { className: "w-full h-full" })
182
- }
183
- )
184
- ]
185
- }
186
- );
187
- }
188
- );
189
- Q.displayName = "Chip";
190
- export {
191
- Q as Chip
192
- };
2
+ "use client";
3
+ import { cn as e } from "../../utils/cn.js";
4
+ import { useAsheeConfig as t } from "../../libs/context.js";
5
+ import { RADIUS_CLASS as n } from "../../shared/radius.js";
6
+ import { resolveVariantClass as r } from "../../shared/variant.js";
7
+ import { resolveCascade as i, resolveClassKey as a, resolveRadiusKey as o } from "../../utils/resolve-token.js";
8
+ import { CloseIcon as s } from "../../icons/CloseIcon.js";
9
+ import { FALLBACK_CHIP_CONFIG as c } from "./chip-config.js";
10
+ import { CHIP_FONT_CLASS as l, CHIP_GAP_CLASS as u, CHIP_HEIGHT_CLASS as d, CHIP_ICON_SIZE_CLASS as f, CHIP_PADDING_CLASS as p } from "./chip-styles.js";
11
+ import { forwardRef as m } from "react";
12
+ import { jsx as h, jsxs as g } from "react/jsx-runtime";
13
+ //#region src/components/chip/Chip.tsx
14
+ var _ = m(({ variant: m, color: _, size: v, radius: y, isDisabled: b = !1, startIcon: x, endIcon: S, avatar: C, dot: w, onClose: T, closeIcon: E, children: D, className: O, style: k, onClick: A, ...j }, M) => {
15
+ let N = t(), P = N.components?.chip, F = i(m, P?.variant, N.defaultVariant, c.variant), I = F === "underlined" ? "bordered" : F, L = i(_, P?.color, N.defaultColor, c.color), R = i(v, P?.size, void 0, c.size), z = o(y, P?.radius, N.defaultRadius, c.radius), B = a(R, d, c.size), V = a(R, p, c.size), H = a(R, l, c.size), U = a(R, u, c.size), W = a(R, f, c.size), G = a(z, n, c.radius), K = (e) => {
16
+ e.stopPropagation(), !b && T?.(e);
17
+ };
18
+ return /* @__PURE__ */ g("div", {
19
+ ref: M,
20
+ tabIndex: b ? -1 : 0,
21
+ "aria-disabled": b,
22
+ onClick: (e) => {
23
+ b || A?.(e);
24
+ },
25
+ onKeyDown: (e) => {
26
+ if (!b && (e.key === "Enter" || e.key === " ")) {
27
+ e.preventDefault();
28
+ let t = {
29
+ ...e,
30
+ button: 0,
31
+ buttons: 1,
32
+ clientX: 0,
33
+ clientY: 0,
34
+ pageX: 0,
35
+ pageY: 0,
36
+ screenX: 0,
37
+ screenY: 0,
38
+ altKey: e.altKey,
39
+ ctrlKey: e.ctrlKey,
40
+ metaKey: e.metaKey,
41
+ shiftKey: e.shiftKey,
42
+ type: "click"
43
+ };
44
+ A?.(t);
45
+ }
46
+ },
47
+ className: e("inline-flex items-center font-medium transition-all duration-200 select-none shrink-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2", r(I, L), B, V, H, U, G, b && "opacity-50 pointer-events-none cursor-not-allowed", A && !b && "cursor-pointer hover:opacity-90 active:scale-[0.98]", O),
48
+ style: k,
49
+ ...j,
50
+ children: [
51
+ w && /* @__PURE__ */ h("span", {
52
+ className: "shrink-0 rounded-full",
53
+ style: {
54
+ width: "0.5em",
55
+ height: "0.5em",
56
+ backgroundColor: typeof w == "string" ? w : "currentColor"
57
+ }
58
+ }),
59
+ C && /* @__PURE__ */ h("span", {
60
+ className: e("inline-flex items-center justify-center shrink-0 scrollbar-hide overflow-hidden rounded-full", W),
61
+ children: C
62
+ }),
63
+ x && !C && /* @__PURE__ */ h("span", {
64
+ className: e("inline-flex items-center justify-center shrink-0", W),
65
+ children: x
66
+ }),
67
+ D,
68
+ S && !T && /* @__PURE__ */ h("span", {
69
+ className: e("inline-flex items-center justify-center shrink-0", W),
70
+ children: S
71
+ }),
72
+ T && /* @__PURE__ */ h("button", {
73
+ type: "button",
74
+ "aria-label": "Remove chip",
75
+ disabled: b,
76
+ onClick: K,
77
+ className: e("inline-flex items-center justify-center shrink-0 rounded-full transition-opacity", "hover:opacity-70 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-current", "opacity-80 -mr-1", W),
78
+ children: E ?? /* @__PURE__ */ h(s, { className: "w-full h-full" })
79
+ })
80
+ ]
81
+ });
82
+ });
83
+ _.displayName = "Chip";
84
+ //#endregion
85
+ export { _ as Chip };
@@ -1,16 +1,15 @@
1
1
  "use client";
2
- import { registerComponentDefaults as r } from "../../libs/registry.js";
3
- const e = {
4
- size: "md",
5
- radius: "full"
6
- }, o = {
7
- size: "md",
8
- variant: "bordered",
9
- color: "primary",
10
- radius: "full"
11
- };
12
- r("chip", e);
13
- export {
14
- o as FALLBACK_CHIP_CONFIG,
15
- e as defaultChipConfig
2
+ import { registerComponentDefaults as e } from "../../libs/registry.js";
3
+ //#region src/components/chip/chip-config.ts
4
+ var t = {
5
+ size: "md",
6
+ radius: "full"
7
+ }, n = {
8
+ size: "md",
9
+ variant: "bordered",
10
+ color: "primary",
11
+ radius: "full"
16
12
  };
13
+ e("chip", t);
14
+ //#endregion
15
+ export { n as FALLBACK_CHIP_CONFIG, t as defaultChipConfig };
@@ -1,29 +1,25 @@
1
1
  "use client";
2
- const s = {
3
- sm: "h-6",
4
- md: "h-7",
5
- lg: "h-8"
2
+ //#region src/components/chip/chip-styles.ts
3
+ var e = {
4
+ sm: "h-6",
5
+ md: "h-7",
6
+ lg: "h-8"
6
7
  }, t = {
7
- sm: "px-2",
8
- md: "px-2.5",
9
- lg: "px-3"
10
- }, m = {
11
- sm: "text-xs",
12
- md: "text-sm",
13
- lg: "text-base"
14
- }, C = {
15
- sm: "gap-1",
16
- md: "gap-1.5",
17
- lg: "gap-2"
18
- }, S = {
19
- sm: "w-3 h-3",
20
- md: "w-3.5 h-3.5",
21
- lg: "w-4 h-4"
22
- };
23
- export {
24
- m as CHIP_FONT_CLASS,
25
- C as CHIP_GAP_CLASS,
26
- s as CHIP_HEIGHT_CLASS,
27
- S as CHIP_ICON_SIZE_CLASS,
28
- t as CHIP_PADDING_CLASS
8
+ sm: "px-2",
9
+ md: "px-2.5",
10
+ lg: "px-3"
11
+ }, n = {
12
+ sm: "text-xs",
13
+ md: "text-sm",
14
+ lg: "text-base"
15
+ }, r = {
16
+ sm: "gap-1",
17
+ md: "gap-1.5",
18
+ lg: "gap-2"
19
+ }, i = {
20
+ sm: "w-3 h-3",
21
+ md: "w-3.5 h-3.5",
22
+ lg: "w-4 h-4"
29
23
  };
24
+ //#endregion
25
+ export { n as CHIP_FONT_CLASS, r as CHIP_GAP_CLASS, e as CHIP_HEIGHT_CLASS, i as CHIP_ICON_SIZE_CLASS, t as CHIP_PADDING_CLASS };
@@ -1,6 +1,6 @@
1
1
  import { Color } from '../../shared';
2
2
  import { FieldSizeKey } from '../field/field-config';
3
- import { PickerMode } from './date-picker-config';
3
+ import { DatePickerMode } from './date-picker-config';
4
4
  interface CalendarProps {
5
5
  /**
6
6
  * The currently selected date.
@@ -11,7 +11,7 @@ interface CalendarProps {
11
11
  * Selection mode of the picker.
12
12
  * Controls whether the calendar, time spinners, or both are shown.
13
13
  */
14
- mode: PickerMode;
14
+ mode: DatePickerMode;
15
15
  /**
16
16
  * Whether a clear button is shown in the footer.
17
17
  */
@@ -57,6 +57,6 @@ interface CalendarProps {
57
57
  * grid. Every prop is a primitive or a stable callback, so React.memo can
58
58
  * skip those renders.
59
59
  */
60
- export declare const Calendar: import('react').NamedExoticComponent<CalendarProps>;
60
+ export declare const Calendar: import('react').MemoExoticComponent<({ selected, mode, isClearable, resolvedSizeKey, resolvedColor, radiusClass, onSelect, onClose, disableFuture, }: CalendarProps) => import("react").JSX.Element>;
61
61
  export {};
62
62
  //# sourceMappingURL=Calendar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../../src/components/date-picker/Calendar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;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