@gobolt/genesis 0.0.11 → 0.1.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 (157) hide show
  1. package/README.md +6 -0
  2. package/dist/ClockCircleOutlined-BaXQuLIn.js +13 -0
  3. package/dist/{Compact-DBh6nSYB.js → Compact-Du9689ax.js} +8 -8
  4. package/dist/{ContextIsolator-CwuJooYf.js → ContextIsolator-BmfhJgG0.js} +2 -2
  5. package/dist/{DownOutlined-5-15jS0h.js → DownOutlined-Dcq69ZKM.js} +9 -9
  6. package/dist/{EllipsisOutlined-CJ2pgE2d.js → EllipsisOutlined-DGMph0Bj.js} +110 -110
  7. package/dist/{Keyframes-sPZXYuXt.js → Keyframes-C9_aCDvn.js} +1 -1
  8. package/dist/{Overflow-DdNKJLQh.js → Overflow-DWf4XIal.js} +31 -31
  9. package/dist/{Skeleton-B3vg9CbL.js → Skeleton-BVN4pcVe.js} +2 -2
  10. package/dist/TextArea-Bkf9hh7l.js +708 -0
  11. package/dist/{Typography-DqI7RslA.js → Typography-CoZ5qD-t.js} +3 -3
  12. package/dist/{button-B2Rgggx2.js → button-BwqpCxVM.js} +5 -5
  13. package/dist/components/Avatar/Avatar.js +3 -3
  14. package/dist/components/Avatar/__tests__/Avatar.test.js +1 -1
  15. package/dist/components/Avatar/styles.js +42 -42
  16. package/dist/components/Badge/Badge.js +3 -3
  17. package/dist/components/Badge/__tests__/Badge.test.js +1 -1
  18. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  19. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +1 -1
  20. package/dist/components/Breadcrumb/styles.js +4 -4
  21. package/dist/components/Button/__tests__/Button.test.js +1 -1
  22. package/dist/components/Button/styles.js +1 -1
  23. package/dist/components/Card/__tests__/Card.test.js +1 -1
  24. package/dist/components/Card/styles.js +1 -1
  25. package/dist/components/Checkbox/Checkbox.js +3 -3
  26. package/dist/components/Checkbox/__tests__/Checkbox.test.js +1 -1
  27. package/dist/components/Checkbox/styles.js +1 -1
  28. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +8 -8
  29. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +4 -4
  30. package/dist/components/Dashboard/__tests__/Dashboard.test.js +1 -1
  31. package/dist/components/DatePicker/DatePicker.d.ts +6 -0
  32. package/dist/components/DatePicker/DatePicker.js +5 -0
  33. package/dist/components/DatePicker/__stories__/DatePicker.stories.d.ts +10 -0
  34. package/dist/components/DatePicker/__tests__/DatePicker.test.d.ts +1 -0
  35. package/dist/components/DatePicker/__tests__/DatePicker.test.js +19 -0
  36. package/dist/components/DatePicker/index.d.ts +2 -0
  37. package/dist/components/DatePicker/index.js +4 -0
  38. package/dist/components/DateRangePicker/DateRangePicker.d.ts +5 -0
  39. package/dist/components/DateRangePicker/DateRangePicker.js +5 -0
  40. package/dist/components/DateRangePicker/__stories__/DateRangePicker.stories.d.ts +9 -0
  41. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.d.ts +1 -0
  42. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +23 -0
  43. package/dist/components/DateRangePicker/index.d.ts +2 -0
  44. package/dist/components/DateRangePicker/index.js +4 -0
  45. package/dist/components/ErrorBoundary/ErrorBoundary.js +3 -3
  46. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +1 -1
  47. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +3 -3
  48. package/dist/components/ErrorBoundaryFallback/styles.js +1 -1
  49. package/dist/components/Form/Form.js +2 -2
  50. package/dist/components/Form/__stories__/FormStory.js +4 -4
  51. package/dist/components/Form/__tests__/form.test.js +2 -2
  52. package/dist/components/Form/index.js +1 -1
  53. package/dist/components/Form/styles.js +1 -1
  54. package/dist/components/Input/Input.js +1 -1
  55. package/dist/components/Input/__tests__/Input.test.js +1 -1
  56. package/dist/components/Input/styles.js +1 -1
  57. package/dist/components/Layout/Content/ResponsiveContent.js +3 -3
  58. package/dist/components/Layout/MainLayout/MainLayout.js +1 -1
  59. package/dist/components/Layout/__tests__/Layout.test.js +1 -1
  60. package/dist/components/Message/Message.js +3 -3
  61. package/dist/components/Message/__tests__/Message.test.js +1 -1
  62. package/dist/components/Notification/Notification.js +3 -3
  63. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +1 -1
  64. package/dist/components/Notification/__tests__/Notification.test.js +1 -1
  65. package/dist/components/Popover/Popover.js +1 -1
  66. package/dist/components/Popover/__tests__/Popover.test.js +1 -1
  67. package/dist/components/Popover/styles.js +1 -1
  68. package/dist/components/Progress/Progress.js +3 -3
  69. package/dist/components/Progress/Progress.util.js +3 -3
  70. package/dist/components/Progress/ProgressText.js +3 -3
  71. package/dist/components/Progress/__tests__/Progress.test.js +1 -1
  72. package/dist/components/Progress/styles.js +3 -3
  73. package/dist/components/Radio/Radio.js +3 -3
  74. package/dist/components/Radio/RadioGroup.js +1 -1
  75. package/dist/components/Radio/__tests__/RadioGroup.test.js +1 -1
  76. package/dist/components/Row/Row.js +1 -1
  77. package/dist/components/Row/RowActions/RowActions.js +3 -3
  78. package/dist/components/Row/RowLabelValue/RowLabelValue.js +3 -3
  79. package/dist/components/Row/RowLabelValue/styles.js +1 -1
  80. package/dist/components/Row/__tests__/Row.test.js +1 -1
  81. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +1 -1
  82. package/dist/components/SegmentedControls/styles.js +27 -27
  83. package/dist/components/Select/Select.js +1 -1
  84. package/dist/components/Select/__tests__/Select.test.js +1 -1
  85. package/dist/components/Select/styles.js +1 -1
  86. package/dist/components/Shapes/__tests__/Shapes.test.js +1 -1
  87. package/dist/components/Switch/__tests__/Switch.test.js +1 -1
  88. package/dist/components/Switch/styles.js +15 -15
  89. package/dist/components/Table/Table.js +1 -1
  90. package/dist/components/Table/__mocks__/table-mocks.js +3 -3
  91. package/dist/components/Table/__tests__/Table.test.js +1 -1
  92. package/dist/components/Table/styles.js +1 -1
  93. package/dist/components/Tabs/__tests__/Tabs.test.js +1 -1
  94. package/dist/components/Tabs/styles.js +1 -1
  95. package/dist/components/Tile/__tests__/Tile.test.js +1 -1
  96. package/dist/components/Toast/Toast.js +3 -3
  97. package/dist/components/Toast/__tests__/Toast.test.js +2 -2
  98. package/dist/components/Toast/index.js +1 -1
  99. package/dist/components/Tooltip/Tooltip.js +3 -3
  100. package/dist/components/Tooltip/__tests__/Tooltip.test.js +1 -1
  101. package/dist/components/Tooltip/styles.js +1 -1
  102. package/dist/components/Typography/Typography.js +1 -1
  103. package/dist/components/Typography/__tests__/Typography.test.js +2 -2
  104. package/dist/components/Typography/index.js +1 -1
  105. package/dist/components/Typography/styles.js +1 -1
  106. package/dist/components/index.d.ts +4 -0
  107. package/dist/components/index.js +46 -42
  108. package/dist/{context-Cx7GtZpz.js → context-DIFtNa4d.js} +70 -70
  109. package/dist/{dropdown-zGGFIyJ_.js → dropdown-Dp_PTQ2u.js} +60 -59
  110. package/dist/genesis/GenesisThemeBreakdown.js +86 -44
  111. package/dist/genesis/labs/Lab.stories.d.ts +6 -0
  112. package/dist/genesis/styles.js +2 -2
  113. package/dist/{index-CdiHBmVe.js → index-BPVue1Yd.js} +44 -44
  114. package/dist/{index-CRotrkWm.js → index-BQM5OniU.js} +7 -7
  115. package/dist/{index-BTGF--50.js → index-B_1Ge8na.js} +20 -19
  116. package/dist/{index-ByspLxrB.js → index-BbTV2Cw5.js} +32 -31
  117. package/dist/index-BeGv28kJ.js +5173 -0
  118. package/dist/{index-Dyl-ddV6.js → index-BpZSuIUV.js} +16 -16
  119. package/dist/{index-CodMmNWv.js → index-BvOLXELm.js} +3 -3
  120. package/dist/{index-hoPiccJv.js → index-CLSrpQRW.js} +9 -8
  121. package/dist/{index-D0P16DlX.js → index-CbVOl2U6.js} +26 -24
  122. package/dist/{index-DWUXwgXK.js → index-D0U6r5O7.js} +265 -294
  123. package/dist/{index-BW_7pvTr.js → index-DEu2PVzQ.js} +4 -4
  124. package/dist/{index-DmZOkMjs.js → index-DNQ-jnBx.js} +1207 -1514
  125. package/dist/index-DOsPeIWJ.js +1000 -0
  126. package/dist/{index-CSPlXIlA.js → index-DRGX1Wem.js} +7 -7
  127. package/dist/index-DWjq9XYj.js +899 -0
  128. package/dist/index.js +53 -49
  129. package/dist/motion-CUN72xsH.js +33 -0
  130. package/dist/providers/GenesisProvider.js +1 -1
  131. package/dist/providers/ToastProvider.js +3 -3
  132. package/dist/providers/index.js +1 -1
  133. package/dist/providers/useGenesis.js +1 -1
  134. package/dist/{responsiveObserver-O1kw80RG.js → responsiveObserver-dCkpy7Cb.js} +1 -1
  135. package/dist/roundedArrow-DI_Q-xdU.js +65 -0
  136. package/dist/{setup-CKu7-AfI.js → setup-CUbCc8fQ.js} +2 -2
  137. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +7 -7
  138. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +3 -3
  139. package/dist/styles/theme/genesis-theme.js +211 -349
  140. package/dist/styles/theme/theme-tree/ThemeTree.js +114 -113
  141. package/dist/{styles-BSD221S5.js → styles-CWdUpZom.js} +12 -12
  142. package/dist/{styles-BDbHpHsc.js → styles-D1vKDy9V.js} +9 -9
  143. package/dist/{styles-D9iYILpv.js → styles-qerRs7Rn.js} +493 -492
  144. package/dist/test/setup.js +2 -2
  145. package/dist/{toArray-DGvPoJP_.js → toArray-U3Az44CO.js} +1 -1
  146. package/dist/{useBreakpoint-CAMzKscx.js → useBreakpoint-TkMv121M.js} +2 -2
  147. package/dist/{useCSSVarCls-C-MlZC6a.js → useCSSVarCls-Dau77fzS.js} +1 -1
  148. package/dist/useIcons-Ck4JP1m9.js +321 -0
  149. package/dist/{useLocale-DWRfeMSS.js → useLocale-CTfNpakL.js} +1 -1
  150. package/dist/{useMergedState-BoELfaU9.js → useMergedState-D6toxSxh.js} +1 -1
  151. package/dist/{useSize-CPo2bUE3.js → useSize-DSq4r6zy.js} +1 -1
  152. package/dist/{useVariants-Cin23jEC.js → useVariants-DrLzUVLU.js} +2 -2
  153. package/dist/{useZIndex-D81lkWy4.js → useZIndex-DhyHuZTN.js} +1 -1
  154. package/dist/utils/icon-util.js +38 -44
  155. package/package.json +2 -1
  156. package/dist/TextArea-CKWbFr0u.js +0 -1698
  157. package/dist/index-CqqwGTME.js +0 -956
@@ -1,10 +1,10 @@
1
1
  import { d as be } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
2
  import * as i from "react";
3
3
  import { a as A, _ as X, e as K, g as ve, d as Q, b as z, f as ae } from "../../presets-Djh_L_6R.js";
4
- import { u as Se } from "../../useMergedState-BoELfaU9.js";
4
+ import { u as Se } from "../../useMergedState-D6toxSxh.js";
5
5
  import { o as pe } from "../../omit-B_u6A-HL.js";
6
- import { f as $e, o as ye, p as ie, g as Ce, m as we, t as xe, r as Ne, k as Oe, j as E, q as Re, C as Me } from "../../index-ByspLxrB.js";
7
- import { u as Ie } from "../../useSize-CPo2bUE3.js";
6
+ import { h as $e, s as ye, t as ie, j as Ce, m as we, v as xe, k as Ne, p as Oe, f as E, w as Re, C as Me } from "../../index-BbTV2Cw5.js";
7
+ import { u as Ie } from "../../useSize-DSq4r6zy.js";
8
8
  import "../../index-DLdU7Tpd.js";
9
9
  import { u as je } from "../../useId-D2tzlufo.js";
10
10
  var k = function(t, a) {
@@ -36,14 +36,14 @@ var k = function(t, a) {
36
36
  return t !== void 0 ? "".concat(t, "px") : void 0;
37
37
  };
38
38
  function Ee(e) {
39
- var t = e.prefixCls, a = e.containerRef, n = e.value, r = e.getValueIndex, s = e.motionName, p = e.onMotionStart, b = e.onMotionEnd, v = e.direction, x = e.vertical, u = x === void 0 ? !1 : x, H = i.useRef(null), P = i.useState(n), R = A(P, 2), f = R[0], g = R[1], m = function(j) {
39
+ var t = e.prefixCls, a = e.containerRef, n = e.value, r = e.getValueIndex, s = e.motionName, p = e.onMotionStart, b = e.onMotionEnd, v = e.direction, x = e.vertical, u = x === void 0 ? !1 : x, H = i.useRef(null), P = i.useState(n), R = A(P, 2), f = R[0], h = R[1], m = function(j) {
40
40
  var O, V = r(j), C = (O = a.current) === null || O === void 0 ? void 0 : O.querySelectorAll(".".concat(t, "-item"))[V];
41
41
  return (C == null ? void 0 : C.offsetParent) && C;
42
42
  }, D = i.useState(null), M = A(D, 2), o = M[0], N = M[1], _ = i.useState(null), S = A(_, 2), l = S[0], $ = S[1];
43
43
  $e(function() {
44
44
  if (f !== n) {
45
45
  var d = m(f), j = m(n), O = k(d, u), V = k(j, u);
46
- g(n), N(O), $(V), d && j ? p() : b();
46
+ h(n), N(O), $(V), d && j ? p() : b();
47
47
  }
48
48
  }, [n]);
49
49
  var y = i.useMemo(function() {
@@ -74,7 +74,7 @@ function Ee(e) {
74
74
  transform: "translateX(var(--thumb-active-left))",
75
75
  width: "var(--thumb-active-width)"
76
76
  };
77
- }, q = function() {
77
+ }, W = function() {
78
78
  N(null), $(null), b();
79
79
  };
80
80
  return !o || !l ? null : /* @__PURE__ */ i.createElement(ye, {
@@ -83,7 +83,7 @@ function Ee(e) {
83
83
  motionAppear: !0,
84
84
  onAppearStart: T,
85
85
  onAppearActive: F,
86
- onVisibleChanged: q
86
+ onVisibleChanged: W
87
87
  }, function(d, j) {
88
88
  var O = d.className, V = d.style, C = X(X({}, V), {}, {
89
89
  "--thumb-start-left": y,
@@ -127,12 +127,12 @@ function De(e) {
127
127
  });
128
128
  }
129
129
  var Ve = function(t) {
130
- var a = t.prefixCls, n = t.className, r = t.disabled, s = t.checked, p = t.label, b = t.title, v = t.value, x = t.name, u = t.onChange, H = t.onFocus, P = t.onBlur, R = t.onKeyDown, f = t.onKeyUp, g = t.onMouseDown, m = function(M) {
130
+ var a = t.prefixCls, n = t.className, r = t.disabled, s = t.checked, p = t.label, b = t.title, v = t.value, x = t.name, u = t.onChange, H = t.onFocus, P = t.onBlur, R = t.onKeyDown, f = t.onKeyUp, h = t.onMouseDown, m = function(M) {
131
131
  r || u(M, v);
132
132
  };
133
133
  return /* @__PURE__ */ i.createElement("label", {
134
134
  className: K(n, z({}, "".concat(a, "-item-disabled"), r)),
135
- onMouseDown: g
135
+ onMouseDown: h
136
136
  }, /* @__PURE__ */ i.createElement("input", {
137
137
  name: x,
138
138
  className: "".concat(a, "-item-input"),
@@ -150,14 +150,14 @@ var Ve = function(t) {
150
150
  "aria-selected": s
151
151
  }, p));
152
152
  }, re = /* @__PURE__ */ i.forwardRef(function(e, t) {
153
- var a, n, r = e.prefixCls, s = r === void 0 ? "rc-segmented" : r, p = e.direction, b = e.vertical, v = e.options, x = v === void 0 ? [] : v, u = e.disabled, H = e.defaultValue, P = e.value, R = e.name, f = e.onChange, g = e.className, m = g === void 0 ? "" : g, D = e.motionName, M = D === void 0 ? "thumb-motion" : D, o = ve(e, He), N = i.useRef(null), _ = i.useMemo(function() {
153
+ var a, n, r = e.prefixCls, s = r === void 0 ? "rc-segmented" : r, p = e.direction, b = e.vertical, v = e.options, x = v === void 0 ? [] : v, u = e.disabled, H = e.defaultValue, P = e.value, R = e.name, f = e.onChange, h = e.className, m = h === void 0 ? "" : h, D = e.motionName, M = D === void 0 ? "thumb-motion" : D, o = ve(e, He), N = i.useRef(null), _ = i.useMemo(function() {
154
154
  return ie(N, t);
155
155
  }, [N, t]), S = i.useMemo(function() {
156
156
  return De(x);
157
157
  }, [x]), l = Se((a = S[0]) === null || a === void 0 ? void 0 : a.value, {
158
158
  value: P,
159
159
  defaultValue: H
160
- }), $ = A(l, 2), y = $[0], I = $[1], T = i.useState(!1), F = A(T, 2), q = F[0], d = F[1], j = function(h, B) {
160
+ }), $ = A(l, 2), y = $[0], I = $[1], T = i.useState(!1), F = A(T, 2), W = F[0], d = F[1], j = function(g, B) {
161
161
  I(B), f == null || f(B);
162
162
  }, O = pe(o, ["children"]), V = i.useState(!1), C = A(V, 2), L = C[0], U = C[1], le = i.useState(!1), G = A(le, 2), se = G[0], Y = G[1], de = function() {
163
163
  Y(!0);
@@ -165,15 +165,15 @@ var Ve = function(t) {
165
165
  Y(!1);
166
166
  }, ce = function() {
167
167
  U(!1);
168
- }, me = function(h) {
169
- h.key === "Tab" && U(!0);
170
- }, J = function(h) {
171
- var B = S.findIndex(function(he) {
172
- return he.value === y;
173
- }), Z = S.length, ge = (B + h + Z) % Z, W = S[ge];
174
- W && (I(W.value), f == null || f(W.value));
175
- }, fe = function(h) {
176
- switch (h.key) {
168
+ }, me = function(g) {
169
+ g.key === "Tab" && U(!0);
170
+ }, J = function(g) {
171
+ var B = S.findIndex(function(ge) {
172
+ return ge.value === y;
173
+ }), Z = S.length, he = (B + g + Z) % Z, q = S[he];
174
+ q && (I(q.value), f == null || f(q.value));
175
+ }, fe = function(g) {
176
+ switch (g.key) {
177
177
  case "ArrowLeft":
178
178
  case "ArrowUp":
179
179
  J(-1);
@@ -200,9 +200,9 @@ var Ve = function(t) {
200
200
  containerRef: N,
201
201
  motionName: "".concat(s, "-").concat(M),
202
202
  direction: p,
203
- getValueIndex: function(h) {
203
+ getValueIndex: function(g) {
204
204
  return S.findIndex(function(B) {
205
- return B.value === h;
205
+ return B.value === g;
206
206
  });
207
207
  },
208
208
  onMotionStart: function() {
@@ -212,12 +212,12 @@ var Ve = function(t) {
212
212
  d(!1);
213
213
  }
214
214
  }), S.map(function(c) {
215
- var h;
215
+ var g;
216
216
  return /* @__PURE__ */ i.createElement(Ve, Q({}, c, {
217
217
  name: R,
218
218
  key: c.value,
219
219
  prefixCls: s,
220
- className: K(c.className, "".concat(s, "-item"), (h = {}, z(h, "".concat(s, "-item-selected"), c.value === y && !q), z(h, "".concat(s, "-item-focused"), se && L && c.value === y), h)),
220
+ className: K(c.className, "".concat(s, "-item"), (g = {}, z(g, "".concat(s, "-item-selected"), c.value === y && !W), z(g, "".concat(s, "-item-focused"), se && L && c.value === y), g)),
221
221
  checked: c.value === y,
222
222
  onChange: j,
223
223
  onFocus: de,
@@ -449,7 +449,7 @@ const Fe = /* @__PURE__ */ i.forwardRef((e, t) => {
449
449
  } = e, P = ne(e, ["prefixCls", "className", "rootClassName", "block", "options", "size", "style", "vertical", "name"]), {
450
450
  getPrefixCls: R,
451
451
  direction: f,
452
- segmented: g
452
+ segmented: h
453
453
  } = i.useContext(Me), m = R("segmented", n), [D, M, o] = Te(m), N = Ie(v), _ = i.useMemo(() => b.map(($) => {
454
454
  if (Ke($)) {
455
455
  const {
@@ -463,12 +463,12 @@ const Fe = /* @__PURE__ */ i.forwardRef((e, t) => {
463
463
  });
464
464
  }
465
465
  return $;
466
- }), [b, m]), S = K(r, s, g == null ? void 0 : g.className, {
466
+ }), [b, m]), S = K(r, s, h == null ? void 0 : h.className, {
467
467
  [`${m}-block`]: p,
468
468
  [`${m}-sm`]: N === "small",
469
469
  [`${m}-lg`]: N === "large",
470
470
  [`${m}-vertical`]: u
471
- }, M, o), l = Object.assign(Object.assign({}, g == null ? void 0 : g.style), x);
471
+ }, M, o), l = Object.assign(Object.assign({}, h == null ? void 0 : h.style), x);
472
472
  return D(/* @__PURE__ */ i.createElement(Ae, Object.assign({}, P, {
473
473
  name: H,
474
474
  className: S,
@@ -1,7 +1,7 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import c, { useEffect as m } from "react";
3
3
  import "../../providers/BreakpointThemeProvider.js";
4
- import { u } from "../../Typography-DqI7RslA.js";
4
+ import { u } from "../../Typography-CoZ5qD-t.js";
5
5
  import { TYPE as l } from "../../constants/index.js";
6
6
  import p from "./DropdownChevron.js";
7
7
  import { SelectWrapper as i, Select as a, SelectDropdown as f, StyledMenuItem as h } from "./styles.js";
@@ -1,6 +1,6 @@
1
1
  var ci = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
2
2
  import { jsx as Zn } from "react/jsx-runtime";
3
- import { b as Ha, e as Ko, h as fi, l as pi, p as mi, d as bi, c as vi, i as ea, a as ta, s as ra, g as Ie, v as hi, w as yi } from "../../../setup-CKu7-AfI.js";
3
+ import { b as Ha, e as Ko, h as fi, l as pi, p as mi, d as bi, c as vi, i as ea, a as ta, s as ra, g as Ie, v as hi, w as yi } from "../../../setup-CUbCc8fQ.js";
4
4
  import na from "../Select.js";
5
5
  import { TYPE as gi, STATE as Ei } from "../../../constants/index.js";
6
6
  var FE = ci((sC, ye) => {
@@ -1,5 +1,5 @@
1
1
  import { d as t } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
- import { S as s } from "../../index-DmZOkMjs.js";
2
+ import { S as s } from "../../index-DNQ-jnBx.js";
3
3
  const u = t.div`
4
4
  position: relative;
5
5
  border: 2px solid transparent;
@@ -1,5 +1,5 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { a as c } from "../../../setup-CKu7-AfI.js";
2
+ import { a as c } from "../../../setup-CUbCc8fQ.js";
3
3
  import r from "../Shapes.js";
4
4
  describe("<Shapes />", () => {
5
5
  const n = (e) => c(/* @__PURE__ */ o(r, { variant: e }));
@@ -1,5 +1,5 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { f as n, a as o } from "../../../setup-CKu7-AfI.js";
2
+ import { f as n, a as o } from "../../../setup-CUbCc8fQ.js";
3
3
  import h from "../Switch.js";
4
4
  describe("<Switch />", () => {
5
5
  let c;
@@ -2,20 +2,20 @@ import { d as L } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
2
  import * as h from "react";
3
3
  import { R as A } from "../../LoadingOutlined-C1qu6ymP.js";
4
4
  import { g as X, a as K, e as D, b as N, d as R, F as V } from "../../presets-Djh_L_6R.js";
5
- import { u as q } from "../../useMergedState-BoELfaU9.js";
5
+ import { u as q } from "../../useMergedState-D6toxSxh.js";
6
6
  import { K as H } from "../../KeyCode-DM2sFh3-.js";
7
- import { W as _ } from "../../index-Dyl-ddV6.js";
8
- import { g as F, m as B, j as f, r as G, k as Q, C as U, D as J } from "../../index-ByspLxrB.js";
9
- import { u as Y } from "../../useSize-CPo2bUE3.js";
7
+ import { W as _ } from "../../index-BpZSuIUV.js";
8
+ import { j as F, m as B, f as $, k as G, p as Q, C as U, D as J } from "../../index-BbTV2Cw5.js";
9
+ import { u as Y } from "../../useSize-DSq4r6zy.js";
10
10
  import "../../index-DLdU7Tpd.js";
11
11
  var Z = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"], O = /* @__PURE__ */ h.forwardRef(function(e, n) {
12
12
  var c, a = e.prefixCls, l = a === void 0 ? "rc-switch" : a, r = e.className, o = e.checked, t = e.defaultChecked, i = e.disabled, d = e.loadingIcon, s = e.checkedChildren, g = e.unCheckedChildren, C = e.onClick, p = e.onChange, w = e.onKeyDown, v = X(e, Z), M = q(!1, {
13
13
  value: o,
14
14
  defaultValue: t
15
- }), y = K(M, 2), S = y[0], $ = y[1];
15
+ }), y = K(M, 2), S = y[0], f = y[1];
16
16
  function k(u, I) {
17
17
  var b = S;
18
- return i || (b = u, $(b), p == null || p(b, I)), b;
18
+ return i || (b = u, f(b), p == null || p(b, I)), b;
19
19
  }
20
20
  function x(u) {
21
21
  u.which === H.LEFT ? k(!1, u) : u.which === H.RIGHT && k(!0, u), w == null || w(u);
@@ -53,13 +53,13 @@ const ee = (e) => {
53
53
  innerMaxMarginSM: o,
54
54
  handleSizeSM: t,
55
55
  calc: i
56
- } = e, d = `${n}-inner`, s = f(i(t).add(i(a).mul(2)).equal()), g = f(i(o).mul(2).equal());
56
+ } = e, d = `${n}-inner`, s = $(i(t).add(i(a).mul(2)).equal()), g = $(i(o).mul(2).equal());
57
57
  return {
58
58
  [n]: {
59
59
  [`&${n}-small`]: {
60
60
  minWidth: l,
61
61
  height: c,
62
- lineHeight: f(c),
62
+ lineHeight: $(c),
63
63
  [`${n}-inner`]: {
64
64
  paddingInlineStart: o,
65
65
  paddingInlineEnd: r,
@@ -98,7 +98,7 @@ const ee = (e) => {
98
98
  }
99
99
  },
100
100
  [`${n}-handle`]: {
101
- insetInlineStart: `calc(100% - ${f(i(t).add(a).equal())})`
101
+ insetInlineStart: `calc(100% - ${$(i(t).add(a).equal())})`
102
102
  }
103
103
  },
104
104
  [`&:not(${n}-disabled):active`]: {
@@ -169,7 +169,7 @@ const ee = (e) => {
169
169
  }
170
170
  },
171
171
  [`&${n}-checked ${t}`]: {
172
- insetInlineStart: `calc(100% - ${f(o(r).add(c).equal())})`
172
+ insetInlineStart: `calc(100% - ${$(o(r).add(c).equal())})`
173
173
  },
174
174
  [`&:not(${n}-disabled):active`]: {
175
175
  [`${t}::before`]: {
@@ -192,7 +192,7 @@ const ee = (e) => {
192
192
  innerMaxMargin: r,
193
193
  handleSize: o,
194
194
  calc: t
195
- } = e, i = `${n}-inner`, d = f(t(o).add(t(a).mul(2)).equal()), s = f(t(r).mul(2).equal());
195
+ } = e, i = `${n}-inner`, d = $(t(o).add(t(a).mul(2)).equal()), s = $(t(r).mul(2).equal());
196
196
  return {
197
197
  [n]: {
198
198
  [i]: {
@@ -262,7 +262,7 @@ const ee = (e) => {
262
262
  boxSizing: "border-box",
263
263
  minWidth: a,
264
264
  height: c,
265
- lineHeight: f(c),
265
+ lineHeight: $(c),
266
266
  verticalAlign: "middle",
267
267
  background: e.colorTextQuaternary,
268
268
  border: "0",
@@ -365,16 +365,16 @@ const re = /* @__PURE__ */ h.forwardRef((e, n) => {
365
365
  }), {
366
366
  getPrefixCls: y,
367
367
  direction: S,
368
- switch: $
368
+ switch: f
369
369
  } = h.useContext(U), k = h.useContext(J), x = (l ?? k) || r, m = y("switch", c), E = /* @__PURE__ */ h.createElement("div", {
370
370
  className: `${m}-handle`
371
371
  }, r && /* @__PURE__ */ h.createElement(A, {
372
372
  className: `${m}-loading-icon`
373
- })), [u, I, b] = le(m), P = Y(a), T = D($ == null ? void 0 : $.className, {
373
+ })), [u, I, b] = le(m), P = Y(a), T = D(f == null ? void 0 : f.className, {
374
374
  [`${m}-small`]: P === "small",
375
375
  [`${m}-loading`]: r,
376
376
  [`${m}-rtl`]: S === "rtl"
377
- }, o, t, I, b), j = Object.assign(Object.assign({}, $ == null ? void 0 : $.style), i), W = function() {
377
+ }, o, t, I, b), j = Object.assign(Object.assign({}, f == null ? void 0 : f.style), i), W = function() {
378
378
  M(arguments.length <= 0 ? void 0 : arguments[0]), p == null || p.apply(void 0, arguments);
379
379
  };
380
380
  return u(/* @__PURE__ */ h.createElement(_, {
@@ -1,5 +1,5 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { T as m } from "../../styles-D9iYILpv.js";
2
+ import { T as m } from "../../styles-qerRs7Rn.js";
3
3
  const d = ({
4
4
  columns: a,
5
5
  dataSource: t,
@@ -3,7 +3,7 @@ import "../../Avatar/styles.js";
3
3
  import r from "../../Badge/Badge.js";
4
4
  import "../../Breadcrumb/styles.js";
5
5
  import "../../../providers/BreakpointThemeProvider.js";
6
- import "../../../Typography-DqI7RslA.js";
6
+ import "../../../Typography-CoZ5qD-t.js";
7
7
  import "../../Button/styles.js";
8
8
  import "../../Card/styles.js";
9
9
  import "../../Checkbox/styles.js";
@@ -14,7 +14,7 @@ import "../../Layout/Content/styles.js";
14
14
  import "../../Message/styles.js";
15
15
  import "../../Notification/NotificationBadge/styles.js";
16
16
  import "../../Notification/styles.js";
17
- import "../../../styles-BSD221S5.js";
17
+ import "../../../styles-CWdUpZom.js";
18
18
  import "../../Progress/styles.js";
19
19
  import "../../../styles/global-styles.js";
20
20
  import "../../Row/styles.js";
@@ -23,7 +23,7 @@ import "../../Row/RowActions/styles.js";
23
23
  import "../../SegmentedControls/styles.js";
24
24
  import "../../Select/styles.js";
25
25
  import "../../Switch/styles.js";
26
- import "../../../styles-D9iYILpv.js";
26
+ import "../../../styles-qerRs7Rn.js";
27
27
  import "../../Tabs/styles.js";
28
28
  import "../../Tile/styles.js";
29
29
  import "../../Toast/styles.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as s } from "react/jsx-runtime";
2
- import { a as l } from "../../../setup-CKu7-AfI.js";
2
+ import { a as l } from "../../../setup-CUbCc8fQ.js";
3
3
  import p from "../Table.js";
4
4
  import { mockDataSource as r, mockColumns as c } from "../__mocks__/table-mocks.js";
5
5
  describe("<Table />", () => {
@@ -1,5 +1,5 @@
1
1
  import "../../styled-components.browser.esm-CZ1XM4o4.js";
2
- import { T as o, g as r } from "../../styles-D9iYILpv.js";
2
+ import { T as o, g as r } from "../../styles-qerRs7Rn.js";
3
3
  export {
4
4
  o as Table,
5
5
  r as getGenesisClass
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { f as s, a as b } from "../../../setup-CKu7-AfI.js";
2
+ import { f as s, a as b } from "../../../setup-CUbCc8fQ.js";
3
3
  import l from "../Tabs.js";
4
4
  describe("<Tabs />", () => {
5
5
  const o = vi.fn(), a = {
@@ -1,5 +1,5 @@
1
1
  import { d as r } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
- import { T as n } from "../../index-BTGF--50.js";
2
+ import { T as n } from "../../index-B_1Ge8na.js";
3
3
  const i = ({ colors: t, borderRadius: e, sizing: a }, o = "primary", b = "active") => `
4
4
  &.ant-tabs {
5
5
  background: #F4F4F4;
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as c } from "../../../setup-CKu7-AfI.js";
2
+ import { a as c } from "../../../setup-CUbCc8fQ.js";
3
3
  import a from "../Tile.js";
4
4
  describe("<Tile />", () => {
5
5
  let t;
@@ -3,7 +3,7 @@ import "../../constants/index.js";
3
3
  import "../Avatar/styles.js";
4
4
  import "../Badge/styles.js";
5
5
  import "../../providers/BreakpointThemeProvider.js";
6
- import { T as H } from "../../Typography-DqI7RslA.js";
6
+ import { T as H } from "../../Typography-CoZ5qD-t.js";
7
7
  import "../Breadcrumb/styles.js";
8
8
  import "../Button/Button.js";
9
9
  import "../Card/styles.js";
@@ -15,7 +15,7 @@ import "../Layout/Content/styles.js";
15
15
  import "../Message/styles.js";
16
16
  import "../Notification/NotificationBadge/styles.js";
17
17
  import "../Notification/styles.js";
18
- import "../../styles-BSD221S5.js";
18
+ import "../../styles-CWdUpZom.js";
19
19
  import "../Progress/styles.js";
20
20
  import "../../styles/global-styles.js";
21
21
  import "../Row/styles.js";
@@ -24,7 +24,7 @@ import "../Row/RowActions/styles.js";
24
24
  import "../SegmentedControls/styles.js";
25
25
  import "../Select/styles.js";
26
26
  import "../Switch/styles.js";
27
- import "../../styles-D9iYILpv.js";
27
+ import "../../styles-qerRs7Rn.js";
28
28
  import "../Tabs/styles.js";
29
29
  import "../Tile/styles.js";
30
30
  import "../Tooltip/styles.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { v as m, a as n } from "../../../setup-CKu7-AfI.js";
3
- import { T as a } from "../../../Typography-DqI7RslA.js";
2
+ import { v as m, a as n } from "../../../setup-CUbCc8fQ.js";
3
+ import { T as a } from "../../../Typography-CoZ5qD-t.js";
4
4
  describe("<Toast />", () => {
5
5
  let e;
6
6
  beforeEach(() => {
@@ -1,4 +1,4 @@
1
- import { T as f } from "../../Typography-DqI7RslA.js";
1
+ import { T as f } from "../../Typography-CoZ5qD-t.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -3,7 +3,7 @@ import { Tooltip as i } from "./styles.js";
3
3
  import "../Avatar/styles.js";
4
4
  import "../Badge/styles.js";
5
5
  import "../../providers/BreakpointThemeProvider.js";
6
- import { a as p } from "../../Typography-DqI7RslA.js";
6
+ import { a as p } from "../../Typography-CoZ5qD-t.js";
7
7
  import { TYPOGRAPHY_VARIANT as m } from "../../constants/index.js";
8
8
  import "../Breadcrumb/styles.js";
9
9
  import "../Button/styles.js";
@@ -16,7 +16,7 @@ import "../Layout/Content/styles.js";
16
16
  import "../Message/styles.js";
17
17
  import "../Notification/NotificationBadge/styles.js";
18
18
  import "../Notification/styles.js";
19
- import "../../styles-BSD221S5.js";
19
+ import "../../styles-CWdUpZom.js";
20
20
  import "../Progress/styles.js";
21
21
  import "../../styles/global-styles.js";
22
22
  import "../Row/styles.js";
@@ -25,7 +25,7 @@ import "../Row/RowActions/styles.js";
25
25
  import "../SegmentedControls/styles.js";
26
26
  import "../Select/styles.js";
27
27
  import "../Switch/styles.js";
28
- import "../../styles-D9iYILpv.js";
28
+ import "../../styles-qerRs7Rn.js";
29
29
  import "../Tabs/styles.js";
30
30
  import "../Tile/styles.js";
31
31
  import "../Toast/styles.js";
@@ -1,5 +1,5 @@
1
1
  import { jsx as n } from "react/jsx-runtime";
2
- import { a as r } from "../../../setup-CKu7-AfI.js";
2
+ import { a as r } from "../../../setup-CUbCc8fQ.js";
3
3
  import i from "../Tooltip.js";
4
4
  describe("<Tooltip />", () => {
5
5
  let t;
@@ -1,5 +1,5 @@
1
1
  import { d as s } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
- import { T as i } from "../../index-CqqwGTME.js";
2
+ import { T as i } from "../../index-DWjq9XYj.js";
3
3
  const e = ({ colors: o, borderRadius: t, sizing: r }, a = "primary", p = "active") => `
4
4
 
5
5
  `, c = s(i)`
@@ -1,7 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "./styles.js";
3
3
  import "../../providers/BreakpointThemeProvider.js";
4
- import { a } from "../../Typography-DqI7RslA.js";
4
+ import { a } from "../../Typography-CoZ5qD-t.js";
5
5
  import "../../constants/index.js";
6
6
  export {
7
7
  a as default
@@ -1,6 +1,6 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
- import { d as a, i, c, a as p, g as m, s as n } from "../../../setup-CKu7-AfI.js";
3
- import { a as y } from "../../../Typography-DqI7RslA.js";
2
+ import { d as a, i, c, a as p, g as m, s as n } from "../../../setup-CUbCc8fQ.js";
3
+ import { a as y } from "../../../Typography-CoZ5qD-t.js";
4
4
  import { TYPE as d, TYPOGRAPHY_VARIANT as f } from "../../../constants/index.js";
5
5
  a("Typography", () => {
6
6
  i("renders type and variant correctly", () => {
@@ -1,4 +1,4 @@
1
- import { a as f } from "../../Typography-DqI7RslA.js";
1
+ import { a as f } from "../../Typography-CoZ5qD-t.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
1
  import { d as a } from "../../styled-components.browser.esm-CZ1XM4o4.js";
2
- import { T as l } from "../../index-CSPlXIlA.js";
2
+ import { T as l } from "../../index-DRGX1Wem.js";
3
3
  const m = (t, e, n) => `
4
4
  font-size: ${t[n][e].fontSize}px !important;
5
5
  line-height: ${t[n][e].lineHeight};
@@ -12,6 +12,10 @@ export { default as Checkbox } from './Checkbox';
12
12
  export type { CheckboxProps } from './Checkbox';
13
13
  export { default as Dashboard } from './Dashboard';
14
14
  export type { DashboardProps } from './Dashboard';
15
+ export { default as DatePicker } from './DatePicker';
16
+ export type { DatePickerProps } from './DatePicker';
17
+ export { default as DateRangePicker } from './DateRangePicker';
18
+ export type { DateRangePickerProps } from './DateRangePicker';
15
19
  export { default as ErrorBoundary } from './ErrorBoundary';
16
20
  export type { ErrorBoundaryProps } from './ErrorBoundary';
17
21
  export { default as ErrorBoundaryFallback } from './ErrorBoundaryFallback';
@@ -4,26 +4,28 @@ import { default as s } from "./Breadcrumb/Breadcrumb.js";
4
4
  import { default as p } from "./Button/Button.js";
5
5
  import { default as u } from "./Card/Card.js";
6
6
  import { default as x } from "./Checkbox/Checkbox.js";
7
- import { default as n } from "./Dashboard/Dashboard.js";
8
- import { default as b } from "./ErrorBoundary/ErrorBoundary.js";
9
- import { default as g } from "./ErrorBoundaryFallback/ErrorBoundaryFallback.js";
10
- import { F as y, T as B, a as S } from "../Typography-DqI7RslA.js";
11
- import { default as F } from "./Input/Input.js";
12
- import { default as v } from "./Layout/Layout.js";
13
- import { default as E } from "./Message/Message.js";
14
- import { default as R } from "./Notification/Notification.js";
15
- import { default as D } from "./Popover/Popover.js";
16
- import { default as I } from "./Progress/Progress.js";
17
- import { default as M } from "./Radio/RadioGroup.js";
18
- import { default as j } from "./Row/Row.js";
19
- import { default as z } from "./SegmentedControls/SegmentedControls.js";
20
- import { default as J } from "./Select/Select.js";
21
- import { default as O } from "./Shapes/Shapes.js";
22
- import { default as U } from "./Switch/Switch.js";
23
- import { default as W } from "./Table/Table.js";
24
- import { default as Y } from "./Tabs/Tabs.js";
25
- import { default as _ } from "./Tile/Tile.js";
26
- import { default as oo } from "./Tooltip/Tooltip.js";
7
+ import { default as c } from "./Dashboard/Dashboard.js";
8
+ import { default as T } from "./DatePicker/DatePicker.js";
9
+ import { default as g } from "./DateRangePicker/DateRangePicker.js";
10
+ import { default as y } from "./ErrorBoundary/ErrorBoundary.js";
11
+ import { default as k } from "./ErrorBoundaryFallback/ErrorBoundaryFallback.js";
12
+ import { F as S, T as C, a as D } from "../Typography-CoZ5qD-t.js";
13
+ import { default as R } from "./Input/Input.js";
14
+ import { default as w } from "./Layout/Layout.js";
15
+ import { default as A } from "./Message/Message.js";
16
+ import { default as I } from "./Notification/Notification.js";
17
+ import { default as M } from "./Popover/Popover.js";
18
+ import { default as j } from "./Progress/Progress.js";
19
+ import { default as z } from "./Radio/RadioGroup.js";
20
+ import { default as J } from "./Row/Row.js";
21
+ import { default as O } from "./SegmentedControls/SegmentedControls.js";
22
+ import { default as U } from "./Select/Select.js";
23
+ import { default as W } from "./Shapes/Shapes.js";
24
+ import { default as Y } from "./Switch/Switch.js";
25
+ import { default as _ } from "./Table/Table.js";
26
+ import { default as aa } from "./Tabs/Tabs.js";
27
+ import { default as ra } from "./Tile/Tile.js";
28
+ import { default as ta } from "./Tooltip/Tooltip.js";
27
29
  export {
28
30
  r as Avatar,
29
31
  t as Badge,
@@ -31,26 +33,28 @@ export {
31
33
  p as Button,
32
34
  u as Card,
33
35
  x as Checkbox,
34
- n as Dashboard,
35
- b as ErrorBoundary,
36
- g as ErrorBoundaryFallback,
37
- y as Form,
38
- F as Input,
39
- v as Layout,
40
- E as Message,
41
- R as Notification,
42
- D as Popover,
43
- I as Progress,
44
- M as RadioGroup,
45
- j as Row,
46
- z as SegmentedControls,
47
- J as Select,
48
- O as Shapes,
49
- U as Switch,
50
- W as Table,
51
- Y as Tabs,
52
- _ as Tile,
53
- B as Toast,
54
- oo as Tooltip,
55
- S as Typography
36
+ c as Dashboard,
37
+ T as DatePicker,
38
+ g as DateRangePicker,
39
+ y as ErrorBoundary,
40
+ k as ErrorBoundaryFallback,
41
+ S as Form,
42
+ R as Input,
43
+ w as Layout,
44
+ A as Message,
45
+ I as Notification,
46
+ M as Popover,
47
+ j as Progress,
48
+ z as RadioGroup,
49
+ J as Row,
50
+ O as SegmentedControls,
51
+ U as Select,
52
+ W as Shapes,
53
+ Y as Switch,
54
+ _ as Table,
55
+ aa as Tabs,
56
+ ra as Tile,
57
+ C as Toast,
58
+ ta as Tooltip,
59
+ D as Typography
56
60
  };