@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
package/README.md CHANGED
@@ -1,3 +1,9 @@
1
+ <div style="display: flex; justify-content: center; width: 100%; position: relative; height: 200px">
2
+ <div style="display: flex; position: absolute; bottom: 0; left: 40%">
3
+ <img src="./public/genesis-conveyor-mark.svg" width="150">
4
+ </div>
5
+ </div>
6
+
1
7
  # GENESIS Design System
2
8
 
3
9
  ![Rating](https://img.shields.io/badge/rating-5%2F5-brightgreen) ![License](https://img.shields.io/badge/license-MIT-green)
@@ -0,0 +1,13 @@
1
+ import { d as r } from "./presets-Djh_L_6R.js";
2
+ import * as e from "react";
3
+ import { I as o } from "./AntdIcon-nCNB0J1E.js";
4
+ var a = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { tag: "path", attrs: { d: "M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z" } }] }, name: "clock-circle", theme: "outlined" }, l = function(c, t) {
5
+ return /* @__PURE__ */ e.createElement(o, r({}, c, {
6
+ ref: t,
7
+ icon: a
8
+ }));
9
+ }, i = /* @__PURE__ */ e.forwardRef(l);
10
+ process.env.NODE_ENV !== "production" && (i.displayName = "ClockCircleOutlined");
11
+ export {
12
+ i as R
13
+ };
@@ -1,8 +1,8 @@
1
1
  import * as o from "react";
2
2
  import { e as g } from "./presets-Djh_L_6R.js";
3
- import { t as h } from "./toArray-DGvPoJP_.js";
4
- import { g as w, m as O, C as N } from "./index-ByspLxrB.js";
5
- import { u as P } from "./useSize-CPo2bUE3.js";
3
+ import { t as h } from "./toArray-U3Az44CO.js";
4
+ import { j as w, m as O, C as N } from "./index-BbTV2Cw5.js";
5
+ import { u as P } from "./useSize-DSq4r6zy.js";
6
6
  import "./index-DLdU7Tpd.js";
7
7
  const D = (e) => {
8
8
  const {
@@ -57,7 +57,7 @@ const D = (e) => {
57
57
  }
58
58
  }
59
59
  };
60
- }, M = (e) => {
60
+ }, j = (e) => {
61
61
  const {
62
62
  componentCls: t
63
63
  } = e;
@@ -83,13 +83,13 @@ const D = (e) => {
83
83
  }
84
84
  }
85
85
  };
86
- }, j = w("Space", (e) => {
86
+ }, M = w("Space", (e) => {
87
87
  const t = O(e, {
88
88
  spaceGapSmallSize: e.paddingXS,
89
89
  spaceGapMiddleSize: e.padding,
90
90
  spaceGapLargeSize: e.paddingLG
91
91
  });
92
- return [L(t), M(t), D(t)];
92
+ return [L(t), j(t), D(t)];
93
93
  }, () => ({}), {
94
94
  // Space component don't apply extra font style
95
95
  // https://github.com/ant-design/ant-design/issues/40315
@@ -148,7 +148,7 @@ const p = /* @__PURE__ */ o.createContext(null), R = (e, t) => {
148
148
  className: l,
149
149
  rootClassName: C,
150
150
  children: y
151
- } = e, x = S(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), I = P((i) => a ?? i), s = t("space-compact", u), [z, G] = j(s), b = g(s, G, {
151
+ } = e, x = S(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), I = P((i) => a ?? i), s = t("space-compact", u), [z, G] = M(s), b = g(s, G, {
152
152
  [`${s}-rtl`]: n === "rtl",
153
153
  [`${s}-block`]: d,
154
154
  [`${s}-vertical`]: c === "vertical"
@@ -169,6 +169,6 @@ const p = /* @__PURE__ */ o.createContext(null), R = (e, t) => {
169
169
  export {
170
170
  V as C,
171
171
  T as N,
172
- j as a,
172
+ M as a,
173
173
  R as u
174
174
  };
@@ -1,6 +1,6 @@
1
1
  import r from "react";
2
- import { N as a } from "./context-Cx7GtZpz.js";
3
- import { N as m } from "./Compact-DBh6nSYB.js";
2
+ import { N as a } from "./context-DIFtNa4d.js";
3
+ import { N as m } from "./Compact-Du9689ax.js";
4
4
  const i = (o) => {
5
5
  const {
6
6
  space: l,
@@ -1,9 +1,9 @@
1
- import { n as K, C as x } from "./index-ByspLxrB.js";
1
+ import { q as K, C as x } from "./index-BbTV2Cw5.js";
2
2
  import * as t from "react";
3
3
  import { d as E } from "./presets-Djh_L_6R.js";
4
- import { K as r } from "./Keyframes-sPZXYuXt.js";
5
- import { i as j } from "./index-DWUXwgXK.js";
6
- import { u as D } from "./useMergedState-BoELfaU9.js";
4
+ import { K as r } from "./Keyframes-C9_aCDvn.js";
5
+ import { i as j } from "./index-D0U6r5O7.js";
6
+ import { u as D } from "./useMergedState-D6toxSxh.js";
7
7
  import { I as $ } from "./AntdIcon-nCNB0J1E.js";
8
8
  const z = new r("antMoveDownIn", {
9
9
  "0%": {
@@ -130,7 +130,7 @@ const z = new r("antMoveDownIn", {
130
130
  }
131
131
  }];
132
132
  };
133
- function F(e) {
133
+ function q(e) {
134
134
  return (n) => /* @__PURE__ */ t.createElement(K, {
135
135
  theme: {
136
136
  token: {
@@ -140,7 +140,7 @@ function F(e) {
140
140
  }
141
141
  }, /* @__PURE__ */ t.createElement(e, Object.assign({}, n)));
142
142
  }
143
- const k = (e, n, s, o, i) => F((f) => {
143
+ const k = (e, n, s, o, i) => q((f) => {
144
144
  const {
145
145
  prefixCls: y,
146
146
  style: w
@@ -190,10 +190,10 @@ const k = (e, n, s, o, i) => F((f) => {
190
190
  style: R
191
191
  }, /* @__PURE__ */ t.createElement(e, Object.assign({}, d)));
192
192
  });
193
- var q = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, N = function(n, s) {
193
+ var F = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" }, N = function(n, s) {
194
194
  return /* @__PURE__ */ t.createElement($, E({}, n, {
195
195
  ref: s,
196
- icon: q
196
+ icon: F
197
197
  }));
198
198
  }, V = /* @__PURE__ */ t.forwardRef(N);
199
199
  process.env.NODE_ENV !== "production" && (V.displayName = "DownOutlined");
@@ -201,5 +201,5 @@ export {
201
201
  V as R,
202
202
  k as g,
203
203
  Z as i,
204
- F as w
204
+ q as w
205
205
  };