@kimdw-rtk/ui 0.0.7 → 0.0.9

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 (190) hide show
  1. package/dist/_virtual/cjs.js +5 -0
  2. package/dist/_virtual/cssesc.js +5 -0
  3. package/dist/_virtual/jsx-runtime.js +5 -0
  4. package/dist/_virtual/jsx-runtime2.js +3 -0
  5. package/dist/_virtual/picocolors.js +5 -0
  6. package/dist/_virtual/picocolors2.js +3 -0
  7. package/dist/_virtual/react-jsx-runtime.development.js +3 -0
  8. package/dist/_virtual/react-jsx-runtime.production.min.js +3 -0
  9. package/dist/components/Accordion/Accordion.css.js +8 -5
  10. package/dist/components/Accordion/Accordion.js +13 -8
  11. package/dist/components/Accordion/AccordionContent.css.js +7 -4
  12. package/dist/components/Accordion/AccordionContent.js +18 -16
  13. package/dist/components/Accordion/AccordionContext.js +5 -2
  14. package/dist/components/Accordion/AccordionTrigger.css.js +7 -4
  15. package/dist/components/Accordion/AccordionTrigger.js +9 -7
  16. package/dist/components/Alert/index.js +49 -5
  17. package/dist/components/Box/Box.css.js +6 -3
  18. package/dist/components/Box/index.js +13 -7
  19. package/dist/components/Button/Button.css.js +11 -8
  20. package/dist/components/Button/index.js +57 -11
  21. package/dist/components/Card/Card.css.js +9 -6
  22. package/dist/components/Card/Card.js +14 -7
  23. package/dist/components/Card/CardContent.css.js +6 -3
  24. package/dist/components/Card/CardContent.js +12 -6
  25. package/dist/components/Card/CardInteraction.css.js +5 -2
  26. package/dist/components/Card/CardInteraction.js +53 -8
  27. package/dist/components/Card/CardThumbnail.css.js +5 -2
  28. package/dist/components/Card/CardThumbnail.js +12 -6
  29. package/dist/components/Chip/Chip.css.js +9 -6
  30. package/dist/components/Chip/Chip.js +14 -7
  31. package/dist/components/Confirm/index.js +48 -5
  32. package/dist/components/Dialog/Dialog.css.js +7 -4
  33. package/dist/components/Dialog/Dialog.js +51 -7
  34. package/dist/components/Dialog/DialogContent.css.js +8 -5
  35. package/dist/components/Dialog/DialogContent.js +51 -7
  36. package/dist/components/Dialog/DialogFooter.js +50 -6
  37. package/dist/components/Dialog/DialogHeader.css.js +7 -4
  38. package/dist/components/Dialog/DialogHeader.js +52 -8
  39. package/dist/components/Navigation/NavigationAside.css.js +5 -2
  40. package/dist/components/Navigation/NavigationAside.js +12 -7
  41. package/dist/components/Navigation/NavigationBar.css.js +8 -5
  42. package/dist/components/Navigation/NavigationBar.js +14 -7
  43. package/dist/components/Navigation/NavigationContainer.css.js +5 -2
  44. package/dist/components/Navigation/NavigationContainer.js +12 -6
  45. package/dist/components/Navigation/NavigationDrawer.css.js +9 -6
  46. package/dist/components/Navigation/NavigationDrawer.js +52 -8
  47. package/dist/components/Navigation/NavigationItem.css.js +9 -5
  48. package/dist/components/Navigation/NavigationItem.js +12 -6
  49. package/dist/components/Navigation/NavigationLogo.css.js +5 -2
  50. package/dist/components/Navigation/NavigationLogo.js +12 -6
  51. package/dist/components/Navigation/NavigationMenu.css.js +8 -5
  52. package/dist/components/Navigation/NavigationMenu.js +14 -7
  53. package/dist/components/Range/Range.css.js +12 -9
  54. package/dist/components/Range/Range.js +17 -11
  55. package/dist/components/ScrollArea/ScrollArea.css.js +10 -7
  56. package/dist/components/ScrollArea/ScrollArea.js +16 -10
  57. package/dist/components/Select/Select.css.js +6 -3
  58. package/dist/components/Select/Select.js +18 -12
  59. package/dist/components/Select/SelectContext.js +5 -2
  60. package/dist/components/Select/SelectOption.css.js +6 -3
  61. package/dist/components/Select/SelectOption.js +8 -6
  62. package/dist/components/Select/SelectOptionList.css.js +7 -4
  63. package/dist/components/Select/SelectOptionList.js +12 -8
  64. package/dist/components/Select/SelectTrigger.css.js +9 -6
  65. package/dist/components/Select/SelectTrigger.js +14 -9
  66. package/dist/components/Skeleton/Skeleton.css.js +7 -4
  67. package/dist/components/Skeleton/index.js +12 -6
  68. package/dist/components/Table/Table.css.js +6 -3
  69. package/dist/components/Table/Table.js +14 -7
  70. package/dist/components/Table/TableBody.js +11 -5
  71. package/dist/components/Table/TableCell.css.js +8 -5
  72. package/dist/components/Table/TableCell.js +13 -7
  73. package/dist/components/Table/TableHead.css.js +6 -3
  74. package/dist/components/Table/TableHead.js +13 -7
  75. package/dist/components/Table/TableHeader.js +11 -5
  76. package/dist/components/Table/TableRow.css.js +5 -2
  77. package/dist/components/Table/TableRow.js +12 -6
  78. package/dist/components/Tabs/Tabs.js +12 -7
  79. package/dist/components/Tabs/TabsContent.js +12 -7
  80. package/dist/components/Tabs/TabsList.css.js +6 -3
  81. package/dist/components/Tabs/TabsList.js +12 -6
  82. package/dist/components/Tabs/TabsProvider.js +5 -3
  83. package/dist/components/Tabs/TabsTrigger.css.js +6 -3
  84. package/dist/components/Tabs/TabsTrigger.js +13 -8
  85. package/dist/components/TextField/TextField.css.js +9 -6
  86. package/dist/components/TextField/index.js +14 -7
  87. package/dist/components/Toast/Toast.css.js +9 -6
  88. package/dist/components/Toast/index.js +54 -9
  89. package/dist/components/Typography/Typography.css.js +5 -2
  90. package/dist/components/Typography/index.js +13 -8
  91. package/dist/contexts/UIProvider.js +52 -6
  92. package/dist/hooks/useDialog/index.js +52 -7
  93. package/dist/hooks/useMouseScroll/index.js +4 -2
  94. package/dist/hooks/usePointerSlider/index.js +5 -3
  95. package/dist/hooks/useRipple/index.js +24 -22
  96. package/dist/hooks/useRipple/ripple.css.js +8 -5
  97. package/dist/hooks/useToast/ToastContainer.css.js +5 -2
  98. package/dist/hooks/useToast/ToastContainer.js +7 -4
  99. package/dist/hooks/useToast/ToastProvider.js +53 -10
  100. package/dist/hooks/useToast/index.js +5 -2
  101. package/dist/index.js +79 -8
  102. package/dist/node_modules/.pnpm/@emotion_hash@0.9.2/node_modules/@emotion/hash/dist/emotion-hash.esm.js +55 -0
  103. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/adapter/dist/vanilla-extract-css-adapter.esm.js +51 -0
  104. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/taggedTemplateLiteral-10998315.esm.js +12 -0
  105. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/transformCss-0dba36bf.esm.js +955 -0
  106. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js +390 -0
  107. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/fileScope/dist/vanilla-extract-css-fileScope.esm.js +20 -0
  108. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/functionSerializer/dist/vanilla-extract-css-functionSerializer.esm.js +11 -0
  109. package/dist/node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/injectStyles/dist/vanilla-extract-css-injectStyles.esm.js +22 -0
  110. package/dist/node_modules/.pnpm/@vanilla-extract_private@1.0.9/node_modules/@vanilla-extract/private/dist/vanilla-extract-private.esm.js +37 -0
  111. package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +111 -0
  112. package/dist/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.esm.js +43 -0
  113. package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/createSprinkles-74286718.esm.js +190 -0
  114. package/dist/node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/vanilla-extract-sprinkles.esm.js +146 -0
  115. package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.js +3 -0
  116. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js +423 -0
  117. package/dist/node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js +28 -0
  118. package/dist/node_modules/.pnpm/cssesc@3.0.0/node_modules/cssesc/cssesc.js +119 -0
  119. package/dist/node_modules/.pnpm/dedent@1.6.0_babel-plugin-macros@3.1.0/node_modules/dedent/dist/dedent.js +68 -0
  120. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/diff.js +39 -0
  121. package/dist/node_modules/.pnpm/deep-object-diff@1.1.9/node_modules/deep-object-diff/mjs/utils.js +8 -0
  122. package/dist/node_modules/.pnpm/deepmerge@4.3.1/node_modules/deepmerge/dist/cjs.js +142 -0
  123. package/dist/node_modules/.pnpm/lru-cache@10.4.3/node_modules/lru-cache/dist/esm/index.js +1542 -0
  124. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/Icon.js +45 -0
  125. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/createLucideIcon.js +30 -0
  126. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/defaultAttributes.js +20 -0
  127. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/align-justify.js +18 -0
  128. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/chevron-down.js +14 -0
  129. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/x.js +17 -0
  130. package/dist/node_modules/.pnpm/lucide-react@0.503.0_react@18.3.1/node_modules/lucide-react/dist/esm/shared/src/utils.js +28 -0
  131. package/dist/node_modules/.pnpm/media-query-parser@2.0.2/node_modules/media-query-parser/dist/media-query-parser.esm.js +1385 -0
  132. package/dist/node_modules/.pnpm/modern-ahocorasick@1.1.0/node_modules/modern-ahocorasick/dist/index.js +101 -0
  133. package/dist/node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js +86 -0
  134. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +1325 -0
  135. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +24 -0
  136. package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +19 -0
  137. package/dist/styles/globalStyle.css.js +5 -2
  138. package/dist/styles/layers.css.js +6 -3
  139. package/dist/styles/overlay.css.js +7 -4
  140. package/dist/styles/sprinkles.css.js +16 -9
  141. package/dist/styles/sx.js +7 -2
  142. package/dist/themes/darkTheme.css.js +5 -2
  143. package/dist/themes/lightTheme.css.js +5 -2
  144. package/dist/themes/theme.css.js +7 -4
  145. package/dist/tokens/scale/color.js +5 -3
  146. package/dist/tokens/semantic/breakpoint.js +4 -6
  147. package/dist/tokens/semantic/color.js +3 -1
  148. package/dist/tokens/semantic/spacing.js +3 -1
  149. package/dist/tokens/semantic/typography.js +3 -1
  150. package/dist/utils/sprinklesUtils.js +8 -3
  151. package/dist/utils/styleUtils.css.js +10 -5
  152. package/package.json +10 -5
  153. package/dist/components/Accordion/Accordion.spec.js +0 -5
  154. package/dist/components/Accordion/index.js +0 -3
  155. package/dist/components/Box/Box.spec.js +0 -5
  156. package/dist/components/Button/Button.spec.js +0 -19
  157. package/dist/components/Card/Card.spec.js +0 -16
  158. package/dist/components/Card/index.js +0 -4
  159. package/dist/components/Chip/Chip.spec.js +0 -5
  160. package/dist/components/Chip/index.js +0 -1
  161. package/dist/components/Dialog/Dialog.spec.js +0 -16
  162. package/dist/components/Dialog/DialogFooter.css.js +0 -15
  163. package/dist/components/Dialog/index.js +0 -4
  164. package/dist/components/Navigation/Navigation.spec.js +0 -11
  165. package/dist/components/Navigation/index.js +0 -7
  166. package/dist/components/Range/Range.spec.js +0 -5
  167. package/dist/components/Range/index.js +0 -1
  168. package/dist/components/ScrollArea/ScrollArea.spec.js +0 -5
  169. package/dist/components/ScrollArea/index.js +0 -1
  170. package/dist/components/Select/Select.spec.js +0 -35
  171. package/dist/components/Select/index.js +0 -2
  172. package/dist/components/Skeleton/Skeleton.spec.js +0 -5
  173. package/dist/components/Table/Table.spec.js +0 -10
  174. package/dist/components/Table/index.js +0 -6
  175. package/dist/components/Tabs/Tabs.spec.js +0 -22
  176. package/dist/components/Tabs/index.js +0 -4
  177. package/dist/components/TextField/TextField.spec.js +0 -5
  178. package/dist/components/Toast/Toast.spec.js +0 -5
  179. package/dist/components/Typography/Typography.spec.js +0 -28
  180. package/dist/components/index.js +0 -18
  181. package/dist/contexts/index.js +0 -1
  182. package/dist/hooks/index.js +0 -5
  183. package/dist/hooks/useDialog/useDialog.spec.js +0 -53
  184. package/dist/styles/index.js +0 -4
  185. package/dist/tests/uiTest.js +0 -36
  186. package/dist/themes/index.js +0 -3
  187. package/dist/tokens/index.js +0 -5
  188. package/dist/types/index.js +0 -1
  189. package/dist/types/ui.types.js +0 -1
  190. package/dist/utils/index.js +0 -1
@@ -0,0 +1,24 @@
1
+ import { __exports as reactJsxRuntime_production_min } from '../../../../../../_virtual/react-jsx-runtime.production.min.js';
2
+ import require$$0 from 'react';
3
+
4
+ /**
5
+ * @license React
6
+ * react-jsx-runtime.production.min.js
7
+ *
8
+ * Copyright (c) Facebook, Inc. and its affiliates.
9
+ *
10
+ * This source code is licensed under the MIT license found in the
11
+ * LICENSE file in the root directory of this source tree.
12
+ */
13
+
14
+ var hasRequiredReactJsxRuntime_production_min;
15
+
16
+ function requireReactJsxRuntime_production_min () {
17
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
18
+ hasRequiredReactJsxRuntime_production_min = 1;
19
+ var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
20
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
21
+ return reactJsxRuntime_production_min;
22
+ }
23
+
24
+ export { requireReactJsxRuntime_production_min as __require };
@@ -0,0 +1,19 @@
1
+ import { __module as jsxRuntime } from '../../../../../_virtual/jsx-runtime2.js';
2
+ import { __require as requireReactJsxRuntime_production_min } from './cjs/react-jsx-runtime.production.min.js';
3
+ import { __require as requireReactJsxRuntime_development } from './cjs/react-jsx-runtime.development.js';
4
+
5
+ var hasRequiredJsxRuntime;
6
+
7
+ function requireJsxRuntime () {
8
+ if (hasRequiredJsxRuntime) return jsxRuntime.exports;
9
+ hasRequiredJsxRuntime = 1;
10
+
11
+ if (process.env.NODE_ENV === 'production') {
12
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
13
+ } else {
14
+ jsxRuntime.exports = requireReactJsxRuntime_development();
15
+ }
16
+ return jsxRuntime.exports;
17
+ }
18
+
19
+ export { requireJsxRuntime as __require };
@@ -1,5 +1,8 @@
1
- import { assignVars, globalStyle } from '@vanilla-extract/css';
2
- import { darkThemeVars, lightThemeVars, theme } from '#themes';
1
+ import { globalStyle, assignVars } from '../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
2
+ import { darkThemeVars } from '../themes/darkTheme.css.js';
3
+ import { lightThemeVars } from '../themes/lightTheme.css.js';
4
+ import { theme } from '../themes/theme.css.js';
5
+
3
6
  globalStyle('*', {
4
7
  boxSizing: 'border-box',
5
8
  overscrollBehavior: 'none',
@@ -1,3 +1,6 @@
1
- import { globalLayer } from '@vanilla-extract/css';
2
- export const componentsLayer = globalLayer('components');
3
- export const sprinklesLayer = globalLayer('utilities');
1
+ import { globalLayer } from '../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
2
+
3
+ const componentsLayer = globalLayer('components');
4
+ const sprinklesLayer = globalLayer('utilities');
5
+
6
+ export { componentsLayer, sprinklesLayer };
@@ -1,9 +1,10 @@
1
- import { globalStyle, style } from '@vanilla-extract/css';
2
- export const enter = style({
1
+ import { style, globalStyle } from '../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
2
+
3
+ const enter = style({
3
4
  opacity: '1 !important',
4
5
  transition: 'all 0.2s ease',
5
6
  });
6
- export const base = style({
7
+ const base = style({
7
8
  display: 'flex',
8
9
  alignItems: 'center',
9
10
  justifyContent: 'center',
@@ -13,7 +14,7 @@ export const base = style({
13
14
  backgroundColor: '#00000080',
14
15
  opacity: '0',
15
16
  });
16
- export const exit = style({
17
+ const exit = style({
17
18
  opacity: '0 !important',
18
19
  transition: 'all 0.2s ease',
19
20
  pointerEvents: 'none',
@@ -29,3 +30,5 @@ globalStyle(`${exit} > div`, {
29
30
  transform: 'scale(0.9) !important',
30
31
  transition: 'all 0.2s ease',
31
32
  });
33
+
34
+ export { base, enter, exit };
@@ -1,7 +1,12 @@
1
- import { createSprinkles, defineProperties } from '@vanilla-extract/sprinkles';
2
- import { sprinklesLayer } from '#styles';
3
- import { theme } from '#themes';
4
- import { breakpoint, lightColor, spacing, typography } from '#tokens';
1
+ import { createAtomicStyles as defineProperties, createAtomsFn as createSprinkles } from '../node_modules/.pnpm/@vanilla-extract_sprinkles@1.6.5_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/sprinkles/dist/vanilla-extract-sprinkles.esm.js';
2
+ import { sprinklesLayer } from './layers.css.js';
3
+ import './globalStyle.css.js';
4
+ import { lightColor } from '../tokens/scale/color.js';
5
+ import { theme } from '../themes/theme.css.js';
6
+ import { breakpoint } from '../tokens/semantic/breakpoint.js';
7
+ import { spacing } from '../tokens/semantic/spacing.js';
8
+ import { typography } from '../tokens/semantic/typography.js';
9
+
5
10
  const colors = Object.assign({}, ...[
6
11
  ...Object.entries(lightColor).reduce((prev, [name, scales]) => [
7
12
  ...prev,
@@ -9,7 +14,7 @@ const colors = Object.assign({}, ...[
9
14
  ], []),
10
15
  ...Object.entries(theme.color).map(([name, value]) => ({ [name]: `rgb(${value})` })),
11
16
  ]);
12
- export const colorProperties = defineProperties({
17
+ const colorProperties = defineProperties({
13
18
  '@layer': sprinklesLayer,
14
19
  properties: {
15
20
  color: colors,
@@ -27,7 +32,7 @@ const size = {
27
32
  '20em': '20em',
28
33
  '25em': '25em',
29
34
  };
30
- export const boxProperties = defineProperties({
35
+ const boxProperties = defineProperties({
31
36
  '@layer': sprinklesLayer,
32
37
  conditions: {
33
38
  mobile: {},
@@ -91,7 +96,7 @@ export const boxProperties = defineProperties({
91
96
  marginY: ['marginTop', 'marginBottom'],
92
97
  },
93
98
  });
94
- export const typographyProperties = defineProperties({
99
+ const typographyProperties = defineProperties({
95
100
  '@layer': sprinklesLayer,
96
101
  conditions: {
97
102
  mobile: {},
@@ -105,7 +110,7 @@ export const typographyProperties = defineProperties({
105
110
  wordBreak: ['break-all', 'break-word', 'keep-all'],
106
111
  },
107
112
  });
108
- export const miscProperties = defineProperties({
113
+ const miscProperties = defineProperties({
109
114
  '@layer': sprinklesLayer,
110
115
  properties: {
111
116
  cursor: {
@@ -115,4 +120,6 @@ export const miscProperties = defineProperties({
115
120
  },
116
121
  },
117
122
  });
118
- export const sprinkles = createSprinkles(boxProperties, colorProperties, typographyProperties, miscProperties);
123
+ const sprinkles = createSprinkles(boxProperties, colorProperties, typographyProperties, miscProperties);
124
+
125
+ export { boxProperties, colorProperties, miscProperties, sprinkles, typographyProperties };
package/dist/styles/sx.js CHANGED
@@ -1,5 +1,8 @@
1
- import { sprinkles } from '#styles';
2
- export const sx = (param) => {
1
+ import './layers.css.js';
2
+ import { sprinkles } from './sprinkles.css.js';
3
+ import './globalStyle.css.js';
4
+
5
+ const sx = (param) => {
3
6
  if (param === undefined) {
4
7
  return '';
5
8
  }
@@ -8,3 +11,5 @@ export const sx = (param) => {
8
11
  }
9
12
  return sprinkles(param);
10
13
  };
14
+
15
+ export { sx };
@@ -1,5 +1,6 @@
1
- import { darkColor } from '../tokens/scale/color';
2
- export const darkThemeVars = {
1
+ import { darkColor } from '../tokens/scale/color.js';
2
+
3
+ const darkThemeVars = {
3
4
  borderRadius: '6px',
4
5
  color: {
5
6
  background: '12, 12, 14',
@@ -27,3 +28,5 @@ export const darkThemeVars = {
27
28
  ...darkColor,
28
29
  },
29
30
  };
31
+
32
+ export { darkThemeVars };
@@ -1,5 +1,6 @@
1
- import { lightColor } from '../tokens/scale/color';
2
- export const lightThemeVars = {
1
+ import { lightColor } from '../tokens/scale/color.js';
2
+
3
+ const lightThemeVars = {
3
4
  borderRadius: '6px',
4
5
  color: {
5
6
  background: '255, 255, 255',
@@ -27,3 +28,5 @@ export const lightThemeVars = {
27
28
  ...lightColor,
28
29
  },
29
30
  };
31
+
32
+ export { lightThemeVars };
@@ -1,12 +1,13 @@
1
- import { createThemeContract } from '@vanilla-extract/css';
2
- import { semanticColor } from '#tokens';
3
- import { lightColor } from '../tokens/scale/color';
1
+ import { createThemeContract } from '../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
2
+ import { lightColor } from '../tokens/scale/color.js';
3
+ import { semanticColor } from '../tokens/semantic/color.js';
4
+
4
5
  const semanticColors = semanticColor.reduce((prev, current) => ({
5
6
  ...prev,
6
7
  [current]: null,
7
8
  [`${current}-foreground`]: null,
8
9
  }), {});
9
- export const theme = createThemeContract({
10
+ const theme = createThemeContract({
10
11
  borderRadius: null,
11
12
  color: {
12
13
  background: null,
@@ -19,3 +20,5 @@ export const theme = createThemeContract({
19
20
  ...lightColor,
20
21
  },
21
22
  });
23
+
24
+ export { theme };
@@ -1,4 +1,4 @@
1
- export const SCALE_COLOR = [
1
+ const SCALE_COLOR = [
2
2
  'red',
3
3
  'orange',
4
4
  'amber',
@@ -22,7 +22,7 @@ export const SCALE_COLOR = [
22
22
  'neutral',
23
23
  'stone',
24
24
  ];
25
- export const darkColor = {
25
+ const darkColor = {
26
26
  red: {
27
27
  50: '238, 224, 224',
28
28
  100: '232, 210, 210',
@@ -310,7 +310,7 @@ export const darkColor = {
310
310
  950: '12, 10, 8',
311
311
  },
312
312
  };
313
- export const lightColor = {
313
+ const lightColor = {
314
314
  red: {
315
315
  50: '254, 242, 242',
316
316
  100: '254, 226, 226',
@@ -598,3 +598,5 @@ export const lightColor = {
598
598
  950: '12, 10, 9',
599
599
  },
600
600
  };
601
+
602
+ export { SCALE_COLOR, darkColor, lightColor };
@@ -1,6 +1,4 @@
1
- export const breakpoint = {
2
- sm: 768,
3
- md: 1024,
4
- lg: 1440,
5
- desktop: 1024,
6
- };
1
+ const breakpoint = {
2
+ md: 1024};
3
+
4
+ export { breakpoint };
@@ -1,4 +1,4 @@
1
- export const semanticColor = [
1
+ const semanticColor = [
2
2
  'primary',
3
3
  'secondary',
4
4
  'muted',
@@ -8,3 +8,5 @@ export const semanticColor = [
8
8
  'warning',
9
9
  'success',
10
10
  ];
11
+
12
+ export { semanticColor };
@@ -1,4 +1,4 @@
1
- export const spacing = {
1
+ const spacing = {
2
2
  none: '0',
3
3
  sm: '0.25em',
4
4
  md: '0.5em',
@@ -7,3 +7,5 @@ export const spacing = {
7
7
  '2xl': '1.5em',
8
8
  '3xl': '2em',
9
9
  };
10
+
11
+ export { spacing };
@@ -1,4 +1,4 @@
1
- export const typography = {
1
+ const typography = {
2
2
  size: {
3
3
  xs: '0.75em',
4
4
  sm: '0.875em',
@@ -30,3 +30,5 @@ export const typography = {
30
30
  xl: 2,
31
31
  },
32
32
  };
33
+
34
+ export { typography };
@@ -1,5 +1,8 @@
1
- import { sprinkles } from '#styles';
2
- export const filterSprinkles = (props) => {
1
+ import '../styles/layers.css.js';
2
+ import { sprinkles } from '../styles/sprinkles.css.js';
3
+ import '../styles/globalStyle.css.js';
4
+
5
+ const filterSprinkles = (props) => {
3
6
  const result = {};
4
7
  for (const key in props) {
5
8
  if (sprinkles.properties.has(key)) {
@@ -8,7 +11,7 @@ export const filterSprinkles = (props) => {
8
11
  }
9
12
  return result;
10
13
  };
11
- export const omitSprinkles = (props) => {
14
+ const omitSprinkles = (props) => {
12
15
  const result = {};
13
16
  for (const key in props) {
14
17
  if (!sprinkles.properties.has(key)) {
@@ -17,3 +20,5 @@ export const omitSprinkles = (props) => {
17
20
  }
18
21
  return result;
19
22
  };
23
+
24
+ export { filterSprinkles, omitSprinkles };
@@ -1,7 +1,10 @@
1
- import { style } from '@vanilla-extract/css';
2
- import { recipe } from '@vanilla-extract/recipes';
3
- import { componentsLayer } from '#styles';
4
- export const styleWithLayer = (rule, layer = componentsLayer) => {
1
+ import { style } from '../node_modules/.pnpm/@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0/node_modules/@vanilla-extract/css/dist/vanilla-extract-css.esm.js';
2
+ import { recipe } from '../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.17.4_babel-plugin-macros@3.1.0_/node_modules/@vanilla-extract/recipes/dist/vanilla-extract-recipes.esm.js';
3
+ import { componentsLayer } from '../styles/layers.css.js';
4
+ import '../styles/sprinkles.css.js';
5
+ import '../styles/globalStyle.css.js';
6
+
7
+ const styleWithLayer = (rule, layer = componentsLayer) => {
5
8
  if (Array.isArray(rule)) {
6
9
  return rule
7
10
  .map((ruleItem) => {
@@ -17,7 +20,7 @@ export const styleWithLayer = (rule, layer = componentsLayer) => {
17
20
  }
18
21
  return style({ '@layer': { [layer]: rule } });
19
22
  };
20
- export const recipeWithLayer = (options, layer = componentsLayer) => {
23
+ const recipeWithLayer = (options, layer = componentsLayer) => {
21
24
  const { base, compoundVariants, defaultVariants, variants } = options;
22
25
  let layeredBase;
23
26
  if (base) {
@@ -59,3 +62,5 @@ export const recipeWithLayer = (options, layer = componentsLayer) => {
59
62
  variants: layeredVariants,
60
63
  });
61
64
  };
65
+
66
+ export { recipeWithLayer, styleWithLayer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kimdw-rtk/ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -27,12 +27,15 @@
27
27
  "peerDependencies": {
28
28
  "react": "^18.0.0 || ^19.0.0",
29
29
  "react-dom": "^18.0.0 || ^19.0.0",
30
- "@kimdw-rtk/utils": "0.0.11"
30
+ "@kimdw-rtk/utils": "0.0.20"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@babel/preset-env": "^7.26.9",
34
34
  "@babel/preset-react": "^7.26.3",
35
35
  "@babel/preset-typescript": "^7.27.0",
36
+ "@rollup/plugin-commonjs": "^28.0.6",
37
+ "@rollup/plugin-node-resolve": "^16.0.2",
38
+ "@rollup/plugin-typescript": "^12.1.4",
36
39
  "@testing-library/jest-dom": "^6.6.3",
37
40
  "@testing-library/react": "^16.3.0",
38
41
  "@turbo/gen": "^2.4.4",
@@ -42,12 +45,14 @@
42
45
  "@types/react-dom": "^18.0.0 || ^19.0.0",
43
46
  "@vanilla-extract/jest-transform": "^1.1.14",
44
47
  "eslint": "^9.22.0",
48
+ "fs": "0.0.1-security",
45
49
  "jest": "^29.7.0",
46
50
  "jest-environment-jsdom": "^29.7.0",
51
+ "rollup": "^4.52.4",
47
52
  "ts-jest": "^29.3.4",
48
53
  "typescript": "5.8.2",
49
- "@repo/typescript-config": "0.0.0",
50
- "@repo/eslint-config": "0.0.0"
54
+ "@repo/eslint-config": "0.0.0",
55
+ "@repo/typescript-config": "0.0.0"
51
56
  },
52
57
  "publishConfig": {
53
58
  "access": "public"
@@ -57,7 +62,7 @@
57
62
  "generate:component": "turbo gen react-component",
58
63
  "check-types": "tsc --noEmit",
59
64
  "test": "jest --verbose",
60
- "build": "tsc"
65
+ "build": "rollup -c rollup.config.js"
61
66
  },
62
67
  "types": "./dist/index.d.ts"
63
68
  }
@@ -1,5 +0,0 @@
1
- import { Accordion } from '.';
2
- import { uiTest } from '../../tests/uiTest';
3
- describe('Accordion 컴포넌트', () => {
4
- uiTest(Accordion, 'Accordion');
5
- });
@@ -1,3 +0,0 @@
1
- export * from './Accordion';
2
- export * from './AccordionContent';
3
- export * from './AccordionTrigger';
@@ -1,5 +0,0 @@
1
- import { Box } from '.';
2
- import { uiTest } from '../../tests/uiTest';
3
- describe('Box 컴포넌트', () => {
4
- uiTest(Box, 'Box');
5
- });
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { render, screen, fireEvent } from '@testing-library/react';
3
- import { uiTest } from '../../tests/uiTest';
4
- import { Button } from './';
5
- describe('Button 컴포넌트', () => {
6
- uiTest(Button, 'Button');
7
- it('Button을 클릭하면 onClick이 호출되어야 한다', () => {
8
- const handleClick = jest.fn();
9
- render(_jsx(Button, { onClick: handleClick, children: "Click" }));
10
- fireEvent.click(screen.getByRole('button', { name: 'Click' }));
11
- expect(handleClick).toHaveBeenCalledTimes(1);
12
- });
13
- it('disabled Button을 클릭하면 onClick이 호출되지 않아야 한다', () => {
14
- const handleClick = jest.fn();
15
- render(_jsx(Button, { onClick: handleClick, disabled: true, children: "Click" }));
16
- fireEvent.click(screen.getByRole('button', { name: 'Click' }));
17
- expect(handleClick).not.toHaveBeenCalledTimes(1);
18
- });
19
- });
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { render, screen, fireEvent } from '@testing-library/react';
3
- import { uiTest } from '../../tests/uiTest';
4
- import { Card, CardContent, CardInteraction, CardThumbnail } from './';
5
- describe('Card 컴포넌트', () => {
6
- uiTest(Card, 'Card');
7
- uiTest(CardContent, 'CardContent');
8
- uiTest(CardInteraction, 'CardInteraction');
9
- uiTest(CardThumbnail, 'CardThumbnail');
10
- it('CardInteraction을 클릭하면 onClick이 호출되어야 한다', () => {
11
- const handleClick = jest.fn();
12
- render(_jsx(Card, { onClick: handleClick, children: _jsx(CardInteraction, { children: "Click" }) }));
13
- fireEvent.click(screen.getByText('Click'));
14
- expect(handleClick).toHaveBeenCalledTimes(1);
15
- });
16
- });
@@ -1,4 +0,0 @@
1
- export * from './Card';
2
- export * from './CardContent';
3
- export * from './CardInteraction';
4
- export * from './CardThumbnail';
@@ -1,5 +0,0 @@
1
- import { uiTest } from '../../tests/uiTest';
2
- import { Chip } from './Chip';
3
- describe('Chip 컴포넌트', () => {
4
- uiTest(Chip, 'Chip');
5
- });
@@ -1 +0,0 @@
1
- export * from './Chip';
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { render, screen, fireEvent } from '@testing-library/react';
3
- import { Dialog, DialogContent, DialogFooter, DialogHeader } from '#components';
4
- import { uiTest } from '../../tests/uiTest';
5
- describe('Dialog 컴포넌트', () => {
6
- uiTest(Dialog, 'Dialog');
7
- uiTest(DialogHeader, 'DialogHeader');
8
- uiTest(DialogContent, 'DialogContent');
9
- uiTest(DialogFooter, 'DialogFooter');
10
- it('DialogHeader의 닫기 버튼을 클릭하면 onCloseClick이 호출되어야 한다', () => {
11
- const handleCloseClick = jest.fn();
12
- render(_jsxs(Dialog, { children: [_jsx(DialogHeader, { onCloseClick: handleCloseClick, children: "Header" }), _jsx(DialogContent, { children: "Content" })] }));
13
- fireEvent.click(screen.getByRole('button', { name: '닫기' }));
14
- expect(handleCloseClick).toHaveBeenCalledTimes(1);
15
- });
16
- });
@@ -1,15 +0,0 @@
1
- import { styleWithLayer } from '#styleUtils';
2
- export const container = styleWithLayer({
3
- maxWidth: 'calc(100vw - 2rem)',
4
- minWidth: 'min(20rem, calc(100vw - 2rem))',
5
- padding: '1rem',
6
- borderRadius: '0.25rem',
7
- boxSizing: 'border-box',
8
- backgroundColor: '#fff',
9
- userSelect: 'none',
10
- });
11
- export const message = styleWithLayer({
12
- marginBottom: '1rem',
13
- lineHeight: '150%',
14
- wordBreak: 'break-all',
15
- });
@@ -1,4 +0,0 @@
1
- export * from './Dialog';
2
- export * from './DialogContent';
3
- export * from './DialogFooter';
4
- export * from './DialogHeader';
@@ -1,11 +0,0 @@
1
- import { NavigationAside, NavigationBar, NavigationItem, NavigationLogo, NavigationMenu, } from '#components';
2
- import { uiTest } from '../../tests/uiTest';
3
- import { NavigationContainer } from './NavigationContainer';
4
- describe('Navigation 컴포넌트', () => {
5
- uiTest(NavigationAside, 'NavigationAside');
6
- uiTest(NavigationBar, 'NavigationBar');
7
- uiTest(NavigationItem, 'NavigationItem');
8
- uiTest(NavigationLogo, 'NavigationLogo');
9
- uiTest(NavigationMenu, 'NavigationMenu');
10
- uiTest(NavigationContainer, 'NavigationContainer');
11
- });
@@ -1,7 +0,0 @@
1
- export * from './NavigationAside';
2
- export * from './NavigationBar';
3
- export * from './NavigationContainer';
4
- export * from './NavigationDrawer';
5
- export * from './NavigationItem';
6
- export * from './NavigationLogo';
7
- export * from './NavigationMenu';
@@ -1,5 +0,0 @@
1
- import { uiTest } from '../../tests/uiTest';
2
- import { Range } from './Range';
3
- describe('Range 컴포넌트', () => {
4
- uiTest(Range, 'Range');
5
- });
@@ -1 +0,0 @@
1
- export * from './Range';
@@ -1,5 +0,0 @@
1
- import { uiTest } from '../../tests/uiTest';
2
- import { ScrollArea } from './ScrollArea';
3
- describe('ScrollArea 컴포넌트', () => {
4
- uiTest(ScrollArea, 'ScrollArea');
5
- });
@@ -1 +0,0 @@
1
- export * from './ScrollArea';
@@ -1,35 +0,0 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { fireEvent, render, screen } from '@testing-library/react';
3
- import { Select, SelectOption } from '.';
4
- import { uiTest } from '../../tests/uiTest';
5
- describe('Select 컴포넌트', () => {
6
- uiTest(Select, 'Select');
7
- it('클릭한 option의 내용이 Select에 보인다.', () => {
8
- render(_jsxs(Select, { "data-testid": "select", children: [_jsx(SelectOption, { value: "1", children: "1\uBC88" }), _jsx(SelectOption, { value: "2", children: "2\uBC88" })] }));
9
- const select = screen.getByTestId('select');
10
- fireEvent.click(screen.getByText('2번'));
11
- expect(select).toHaveTextContent('2번');
12
- });
13
- it('새로운 option을 클릭하면 onChange 이벤트가 발생하고, form value, ref.value의 값이 바뀐다.', () => {
14
- const handleChange = jest.fn();
15
- render(_jsx("form", { "data-testid": "form", children: _jsxs(Select, { "data-testid": "select", name: "select", onChange: handleChange, children: [_jsx(SelectOption, { value: "1", children: "1\uBC88" }), _jsx(SelectOption, { value: "2", children: "2\uBC88" })] }) }));
16
- const option2 = screen.getByText('2번');
17
- const form = screen.getByTestId('form');
18
- fireEvent.click(option2);
19
- expect(handleChange).toHaveBeenCalledTimes(1);
20
- expect(handleChange.mock.calls[0][0]).toBe('2');
21
- expect(new FormData(form).get('select')).toBe('2');
22
- fireEvent.click(option2);
23
- expect(handleChange).toHaveBeenCalledTimes(1);
24
- expect(new FormData(form).get('select')).toBe('2');
25
- fireEvent.click(screen.getByText('1번'));
26
- expect(handleChange).toHaveBeenCalledTimes(2);
27
- expect(handleChange.mock.calls[1][0]).toBe('1');
28
- expect(new FormData(form).get('select')).toBe('1');
29
- });
30
- it('defaultValue의 값이 기본으로 보인다.', () => {
31
- render(_jsxs(Select, { "data-testid": "select", defaultValue: "2", children: [_jsx(SelectOption, { value: "1", children: "1\uBC88" }), _jsx(SelectOption, { value: "2", children: "2\uBC88" })] }));
32
- const select = screen.getByTestId('select');
33
- expect(select).toHaveTextContent('2번');
34
- });
35
- });
@@ -1,2 +0,0 @@
1
- export * from './Select';
2
- export * from './SelectOption';
@@ -1,5 +0,0 @@
1
- import { Skeleton } from '.';
2
- import { uiTest } from '../../tests/uiTest';
3
- describe('Skeleton 컴포넌트', () => {
4
- uiTest(Skeleton, 'Skeleton');
5
- });
@@ -1,10 +0,0 @@
1
- import { Table } from '#components';
2
- import { uiTest } from '../../tests/uiTest';
3
- describe('Table 컴포넌트', () => {
4
- uiTest(Table, 'Table');
5
- // uiTest(TableBody, 'TableBody');
6
- // uiTest(TableCell, 'TableCell');
7
- // uiTest(TableHead, 'TableHead');
8
- // uiTest(TableHeader, 'TableHeader');
9
- // uiTest(TableRow, 'TableRow');
10
- });
@@ -1,6 +0,0 @@
1
- export * from './Table';
2
- export * from './TableBody';
3
- export * from './TableCell';
4
- export * from './TableHead';
5
- export * from './TableHeader';
6
- export * from './TableRow';