@deepnoid/ui 1.0.16 → 1.0.18

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 (61) hide show
  1. package/README.md +51 -52
  2. package/dist/{chunk-TGXYSXEN.mjs → chunk-FPPUSH7C.mjs} +1 -1
  3. package/dist/{chunk-SNNSEK5T.mjs → chunk-FQBE4HWT.mjs} +1 -1
  4. package/dist/{chunk-X7SYBDST.mjs → chunk-FXPU725A.mjs} +2 -2
  5. package/dist/{chunk-FNES52QP.mjs → chunk-K535MLKN.mjs} +2 -2
  6. package/dist/{chunk-6F6HERZF.mjs → chunk-OCTLSRX2.mjs} +1 -1
  7. package/dist/{chunk-7MMUS5ER.mjs → chunk-TLVLL4UG.mjs} +1 -1
  8. package/dist/components/breadcrumb/breadcrumb.mjs +4 -4
  9. package/dist/components/breadcrumb/index.mjs +4 -4
  10. package/dist/components/button/button.mjs +3 -3
  11. package/dist/components/button/icon-button.mjs +3 -3
  12. package/dist/components/button/index.mjs +4 -4
  13. package/dist/components/chip/chip.mjs +1 -1
  14. package/dist/components/chip/index.mjs +1 -1
  15. package/dist/components/fileUpload/fileUpload.mjs +7 -7
  16. package/dist/components/fileUpload/index.mjs +7 -7
  17. package/dist/components/input/index.mjs +1 -1
  18. package/dist/components/input/input.mjs +1 -1
  19. package/dist/components/list/index.mjs +2 -2
  20. package/dist/components/list/listItem.mjs +2 -2
  21. package/dist/components/modal/GlobalModalProvider.mjs +6 -6
  22. package/dist/components/modal/index.mjs +7 -7
  23. package/dist/components/modal/modal.mjs +5 -5
  24. package/dist/components/modal/useGlobalModal.mjs +7 -7
  25. package/dist/components/pagination/index.mjs +1 -1
  26. package/dist/components/pagination/pagination.mjs +1 -1
  27. package/dist/components/picker/datePicker.mjs +5 -5
  28. package/dist/components/picker/index.mjs +5 -5
  29. package/dist/components/picker/timePicker/Panel.mjs +4 -4
  30. package/dist/components/picker/timePicker/index.mjs +4 -4
  31. package/dist/components/progress/index.mjs +2 -2
  32. package/dist/components/progress/progress.mjs +2 -2
  33. package/dist/components/ripple/index.mjs +3 -3
  34. package/dist/components/select/index.mjs +5 -5
  35. package/dist/components/select/select.mjs +5 -5
  36. package/dist/components/starRating/index.mjs +1 -1
  37. package/dist/components/starRating/starRating.mjs +1 -1
  38. package/dist/components/table/index.mjs +6 -6
  39. package/dist/components/table/table-body.mjs +3 -3
  40. package/dist/components/table/table-head.mjs +3 -3
  41. package/dist/components/table/table.mjs +3 -3
  42. package/dist/components/timePicker/calendar.mjs +1 -1
  43. package/dist/components/toast/index.mjs +1 -1
  44. package/dist/components/toast/toast.mjs +1 -1
  45. package/dist/components/toast/use-toast.mjs +1 -1
  46. package/dist/components/tree/index.mjs +1 -1
  47. package/dist/components/tree/tree.mjs +1 -1
  48. package/dist/index.mjs +48 -48
  49. package/dist/style.css +1 -1
  50. package/dist/tailwind-config/preset.css +7 -0
  51. package/dist/tailwind-config/styles/animation.css +62 -0
  52. package/dist/tailwind-config/styles/generated/border.css +124 -0
  53. package/dist/tailwind-config/styles/generated/border.fallback.css +124 -0
  54. package/dist/tailwind-config/styles/tokens/colors.css +371 -0
  55. package/dist/tailwind-config/styles/tokens/theme.css +177 -0
  56. package/dist/tailwind-config/styles/utilities/scrollbar.css +127 -0
  57. package/package.json +6 -5
  58. package/dist/{chunk-PRLKKUBY.mjs → chunk-BA7IXGUO.mjs} +3 -3
  59. package/dist/{chunk-XTMOAGLY.mjs → chunk-J4QVGC54.mjs} +3 -3
  60. package/dist/{chunk-7U7FM6I6.mjs → chunk-LFPED3UH.mjs} +3 -3
  61. package/dist/{chunk-KE26ONWZ.mjs → chunk-S7UE2MJZ.mjs} +3 -3
@@ -0,0 +1,177 @@
1
+ /* Fallback for bundlers that do not run Tailwind's CSS transform on dependency CSS. */
2
+ :root,
3
+ :host {
4
+ /* Fonts */
5
+ --font-sans:
6
+ "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI",
7
+ "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
8
+ --font-nanumsquare:
9
+ "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI",
10
+ "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
11
+
12
+ /* Border Radius */
13
+ --radius-2: 2px;
14
+ --radius-5: 5px;
15
+ --radius-sm: 4px;
16
+ --radius-md: 6px;
17
+ --radius-lg: 8px;
18
+ --radius-xl: 10px;
19
+ --radius-2xl: 20px;
20
+ --radius-none: 0;
21
+ --radius-full: 9999px;
22
+
23
+ /* Spacing */
24
+ --spacing-5: 5px;
25
+ --spacing-10: 10px;
26
+ --spacing-20: 20px;
27
+ --spacing-30: 30px;
28
+ --spacing-sm: 4px;
29
+ --spacing-md: 6px;
30
+ --spacing-lg: 8px;
31
+ --spacing-xl: 10px;
32
+
33
+ /* Shadows */
34
+ --shadow-border-1: inner 0 0 0 1px inset;
35
+ --shadow-border-2: inner 0 0 0 2px inset;
36
+ --shadow-border-3: inner 0 0 0 3px inset;
37
+ --shadow-border-4: inner 0 0 0 4px inset;
38
+ --shadow-border-5: inner 0 0 0 5px inset;
39
+ --shadow-border-6: inner 0 0 0 6px inset;
40
+ --shadow-border-7: inner 0 0 0 7px inset;
41
+ --shadow-border-8: inner 0 0 0 8px inset;
42
+ --shadow-border-9: inner 0 0 0 9px inset;
43
+ --shadow-border-10: inner 0 0 0 10px inset;
44
+ --shadow-inner: inset 0 4px 8px 0 rgba(36, 39, 44, 0.2);
45
+ --shadow-inner-sm: inset 0 4px 8px 0 rgba(0, 0, 0, 0.2);
46
+ --shadow-inner-md: inset 0 6px 12px 0 rgba(0, 0, 0, 0.2);
47
+ --shadow-inner-lg: inset 0 8px 16px 0 rgba(0, 0, 0, 0.2);
48
+ --shadow-inner-xl: inset 0 10px 20px 0 rgba(0, 0, 0, 0.2);
49
+ --shadow-drop: 0 20px 40px 0 rgba(36, 39, 44, 0.2);
50
+ --shadow-drop-sm: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
51
+ --shadow-drop-md: 0 6px 18px 0 rgba(0, 0, 0, 0.1);
52
+ --shadow-drop-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
53
+ --shadow-drop-xl: 0 0px 60px 0 rgba(0, 0, 0, 0.2);
54
+
55
+ /* Font Sizes */
56
+ --font-weight-regular: 400;
57
+ --font-weight-semibold: 600;
58
+ --font-weight-bold: 700;
59
+ --text-h1: 40px;
60
+ --text-h1--line-height: normal;
61
+ --text-h1--font-weight: var(--font-weight-bold);
62
+ --text-h2: 34px;
63
+ --text-h2--line-height: normal;
64
+ --text-h2--font-weight: var(--font-weight-bold);
65
+ --text-h3: 28px;
66
+ --text-h3--line-height: normal;
67
+ --text-h3--font-weight: var(--font-weight-bold);
68
+ --text-h4: 24px;
69
+ --text-h4--line-height: normal;
70
+ --text-h4--font-weight: var(--font-weight-bold);
71
+ --text-h5: 20px;
72
+ --text-h5--line-height: normal;
73
+ --text-h5--font-weight: var(--font-weight-semibold);
74
+ --text-sm: 12px;
75
+ --text-sm--line-height: 18px;
76
+ --text-sm--font-weight: var(--font-weight-regular);
77
+ --text-md: 14px;
78
+ --text-md--line-height: 21px;
79
+ --text-md--font-weight: var(--font-weight-regular);
80
+ --text-lg: 16px;
81
+ --text-lg--line-height: 24px;
82
+ --text-lg--font-weight: var(--font-weight-regular);
83
+ --text-xl: 18px;
84
+ --text-xl--line-height: 27px;
85
+ --text-xl--font-weight: var(--font-weight-regular);
86
+ --text-2xl: 24px;
87
+ --text-2xl--line-height: normal;
88
+ --text-2xl--font-weight: var(--font-weight-regular);
89
+ }
90
+
91
+ @theme {
92
+ /* Fonts */
93
+ --font-sans:
94
+ "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI",
95
+ "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
96
+ --font-nanumsquare:
97
+ "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI",
98
+ "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
99
+
100
+ /* Border Radius */
101
+ --radius-2: 2px;
102
+ --radius-5: 5px;
103
+ --radius-sm: 4px;
104
+ --radius-md: 6px;
105
+ --radius-lg: 8px;
106
+ --radius-xl: 10px;
107
+ --radius-2xl: 20px;
108
+ --radius-none: 0;
109
+ --radius-full: 9999px;
110
+
111
+ /* Spacing */
112
+ --spacing-5: 5px;
113
+ --spacing-10: 10px;
114
+ --spacing-20: 20px;
115
+ --spacing-30: 30px;
116
+ --spacing-sm: 4px;
117
+ --spacing-md: 6px;
118
+ --spacing-lg: 8px;
119
+ --spacing-xl: 10px;
120
+
121
+ /* Shadows */
122
+ --shadow-border-1: inner 0 0 0 1px inset;
123
+ --shadow-border-2: inner 0 0 0 2px inset;
124
+ --shadow-border-3: inner 0 0 0 3px inset;
125
+ --shadow-border-4: inner 0 0 0 4px inset;
126
+ --shadow-border-5: inner 0 0 0 5px inset;
127
+ --shadow-border-6: inner 0 0 0 6px inset;
128
+ --shadow-border-7: inner 0 0 0 7px inset;
129
+ --shadow-border-8: inner 0 0 0 8px inset;
130
+ --shadow-border-9: inner 0 0 0 9px inset;
131
+ --shadow-border-10: inner 0 0 0 10px inset;
132
+ --shadow-inner: inset 0 4px 8px 0 rgba(36, 39, 44, 0.2);
133
+ --shadow-inner-sm: inset 0 4px 8px 0 rgba(0, 0, 0, 0.2);
134
+ --shadow-inner-md: inset 0 6px 12px 0 rgba(0, 0, 0, 0.2);
135
+ --shadow-inner-lg: inset 0 8px 16px 0 rgba(0, 0, 0, 0.2);
136
+ --shadow-inner-xl: inset 0 10px 20px 0 rgba(0, 0, 0, 0.2);
137
+ --shadow-drop: 0 20px 40px 0 rgba(36, 39, 44, 0.2);
138
+ --shadow-drop-sm: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
139
+ --shadow-drop-md: 0 6px 18px 0 rgba(0, 0, 0, 0.1);
140
+ --shadow-drop-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
141
+ --shadow-drop-xl: 0 0px 60px 0 rgba(0, 0, 0, 0.2);
142
+
143
+ /* Font Sizes */
144
+ --font-weight-regular: 400;
145
+ --font-weight-semibold: 600;
146
+ --font-weight-bold: 700;
147
+ --text-h1: 40px;
148
+ --text-h1--line-height: normal;
149
+ --text-h1--font-weight: var(--font-weight-bold);
150
+ --text-h2: 34px;
151
+ --text-h2--line-height: normal;
152
+ --text-h2--font-weight: var(--font-weight-bold);
153
+ --text-h3: 28px;
154
+ --text-h3--line-height: normal;
155
+ --text-h3--font-weight: var(--font-weight-bold);
156
+ --text-h4: 24px;
157
+ --text-h4--line-height: normal;
158
+ --text-h4--font-weight: var(--font-weight-bold);
159
+ --text-h5: 20px;
160
+ --text-h5--line-height: normal;
161
+ --text-h5--font-weight: var(--font-weight-semibold);
162
+ --text-sm: 12px;
163
+ --text-sm--line-height: 18px;
164
+ --text-sm--font-weight: var(--font-weight-regular);
165
+ --text-md: 14px;
166
+ --text-md--line-height: 21px;
167
+ --text-md--font-weight: var(--font-weight-regular);
168
+ --text-lg: 16px;
169
+ --text-lg--line-height: 24px;
170
+ --text-lg--font-weight: var(--font-weight-regular);
171
+ --text-xl: 18px;
172
+ --text-xl--line-height: 27px;
173
+ --text-xl--font-weight: var(--font-weight-regular);
174
+ --text-2xl: 24px;
175
+ --text-2xl--line-height: normal;
176
+ --text-2xl--font-weight: var(--font-weight-regular);
177
+ }
@@ -0,0 +1,127 @@
1
+ .tw-scrollbar-hide {
2
+ -ms-overflow-style: none; /* IE/Edge */
3
+ scrollbar-width: none; /* Firefox */
4
+ &::-webkit-scrollbar {
5
+ display: none; /* Chrome/Safari */
6
+ }
7
+ }
8
+
9
+ .tw-scrollbar-sm {
10
+ &::-webkit-scrollbar {
11
+ width: 8px !important;
12
+ height: 8px !important;
13
+ }
14
+ }
15
+ .tw-scrollbar-sm.tw-scrollbar-plain::-webkit-scrollbar-button {
16
+ width: 8px !important;
17
+ height: 8px !important;
18
+ }
19
+ .tw-scrollbar-sm.tw-scrollbar-plain::-webkit-scrollbar-button:vertical {
20
+ background-size: 3.56px 2.67px !important;
21
+ }
22
+ .tw-scrollbar-sm.tw-scrollbar-plain::-webkit-scrollbar-button:horizontal {
23
+ background-size: 2.67px 3.56px !important;
24
+ }
25
+
26
+ .tw-scrollbar-md {
27
+ &::-webkit-scrollbar {
28
+ width: 10px !important;
29
+ height: 10px !important;
30
+ }
31
+ }
32
+ .tw-scrollbar-md.tw-scrollbar-plain::-webkit-scrollbar-button {
33
+ width: 10px !important;
34
+ height: 10px !important;
35
+ }
36
+ .tw-scrollbar-md.tw-scrollbar-plain::-webkit-scrollbar-button:vertical {
37
+ background-size: 4.44px 3.33px !important;
38
+ }
39
+ .tw-scrollbar-md.tw-scrollbar-plain::-webkit-scrollbar-button:horizontal {
40
+ background-size: 3.33px 4.44px !important;
41
+ }
42
+
43
+ .tw-scrollbar-lg {
44
+ &::-webkit-scrollbar {
45
+ width: 12px !important;
46
+ height: 12px !important;
47
+ }
48
+ }
49
+ .tw-scrollbar-lg.tw-scrollbar-plain::-webkit-scrollbar-button {
50
+ width: 12px !important;
51
+ height: 12px !important;
52
+ }
53
+ .tw-scrollbar-lg.tw-scrollbar-plain::-webkit-scrollbar-button:vertical {
54
+ background-size: 5.33px 4px !important;
55
+ }
56
+ .tw-scrollbar-lg.tw-scrollbar-plain::-webkit-scrollbar-button:horizontal {
57
+ background-size: 4px 5.33px !important;
58
+ }
59
+
60
+ .tw-scrollbar-base {
61
+ &::-webkit-scrollbar-thumb {
62
+ border: 1px solid transparent !important;
63
+ background-clip: padding-box !important;
64
+ border-radius: 100px !important;
65
+ }
66
+ &::-webkit-scrollbar-track {
67
+ background-color: var(--color-neutral-soft) !important;
68
+ }
69
+ }
70
+
71
+ .tw-scrollbar-plain {
72
+ scrollbar-color: var(--color-neutral-soft) !important;
73
+
74
+ &::-webkit-scrollbar-thumb {
75
+ background-color: var(--color-trans-soft) !important;
76
+ }
77
+
78
+ &:hover::-webkit-scrollbar-thumb {
79
+ background-color: var(--color-trans-soft) !important;
80
+ }
81
+
82
+ &::-webkit-scrollbar-button {
83
+ background-color: var(--color-neutral-soft) !important;
84
+ color: var(--color-neutral-main) !important;
85
+ }
86
+
87
+ /* Webkit custom scrollbar arrows standard fallback simulation */
88
+ &::-webkit-scrollbar-button:vertical:decrement {
89
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6 8 12 6' fill='%23808488'%3E%3Cpath d='M12 8l6 6H6z'/%3E%3C/svg%3E") !important;
90
+ background-repeat: no-repeat !important;
91
+ background-position: center !important;
92
+ }
93
+ &::-webkit-scrollbar-button:vertical:increment {
94
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='6 10 12 6' fill='%23808488'%3E%3Cpath d='M12 16l-6-6h12z'/%3E%3C/svg%3E") !important;
95
+ background-repeat: no-repeat !important;
96
+ background-position: center !important;
97
+ }
98
+ &::-webkit-scrollbar-button:horizontal:decrement {
99
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='8 6 6 12' fill='%23808488'%3E%3Cpath d='M8 12l6-6v12z'/%3E%3C/svg%3E") !important;
100
+ background-repeat: no-repeat !important;
101
+ background-position: center !important;
102
+ }
103
+ &::-webkit-scrollbar-button:horizontal:increment {
104
+ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='10 6 6 12' fill='%23808488'%3E%3Cpath d='M16 12l-6 6V6z'/%3E%3C/svg%3E") !important;
105
+ background-repeat: no-repeat !important;
106
+ background-position: center !important;
107
+ }
108
+ }
109
+
110
+ .tw-scrollbar-adorn {
111
+ scrollbar-color: var(--color-primary-main) !important;
112
+
113
+ &::-webkit-scrollbar-thumb {
114
+ background-color: var(--color-primary-main) !important;
115
+ }
116
+
117
+ &:hover::-webkit-scrollbar-thumb {
118
+ background-color: var(--color-primary-main) !important;
119
+ }
120
+
121
+ &::-webkit-scrollbar-button {
122
+ display: none !important;
123
+ width: 0 !important;
124
+ height: 0 !important;
125
+ -webkit-appearance: none !important;
126
+ }
127
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "license": "MIT",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -23,10 +23,12 @@
23
23
  "module": "./dist/index.mjs",
24
24
  "types": "./dist/index.d.ts",
25
25
  "scripts": {
26
- "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:font && yarn copy:css",
27
- "build:fast": "tsup src && yarn copy:font && yarn copy:css",
26
+ "build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 tsup src --dts && yarn copy:font && yarn copy:style && yarn copy:tailwind-config",
27
+ "build:fast": "tsup src && yarn copy:font && yarn copy:style && yarn copy:tailwind-config",
28
28
  "clean": "rm -rf .turbo",
29
- "copy:css": "copyfiles -u 1 src/style.css dist",
29
+ "copy:style": "node scripts/copy-style.mjs",
30
+ "copy:css": "yarn copy:style",
31
+ "copy:tailwind-config": "node scripts/copy-tailwind-config.mjs",
30
32
  "copy:font": "copyfiles -u 2 src/fonts/**/* dist/fonts",
31
33
  "deploy:npm": "npm publish --access=public",
32
34
  "lint": "TIMING=1 eslint \"**/*.{ts,tsx,js,jsx}\" --fix",
@@ -34,7 +36,6 @@
34
36
  "publish:npm": "npm version patch --no-git-tag-version && npm publish --access=public"
35
37
  },
36
38
  "dependencies": {
37
- "@deepnoid/tailwind-config": "*",
38
39
  "@emotion/is-prop-valid": "^1.3.1",
39
40
  "framer-motion": "^12.23.6",
40
41
  "react": "^19.1.0",
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- ripple_default
4
- } from "./chunk-LXHUO6VM.mjs";
5
2
  import {
6
3
  useRipple
7
4
  } from "./chunk-SZL743JC.mjs";
5
+ import {
6
+ ripple_default
7
+ } from "./chunk-LXHUO6VM.mjs";
8
8
  import {
9
9
  Icon_default
10
10
  } from "./chunk-A6UUVHC6.mjs";
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  Icon_default
4
4
  } from "./chunk-A6UUVHC6.mjs";
5
- import {
6
- avatar_default
7
- } from "./chunk-D3DKXTTY.mjs";
8
5
  import {
9
6
  mapPropsVariants
10
7
  } from "./chunk-E3G5QXSH.mjs";
8
+ import {
9
+ avatar_default
10
+ } from "./chunk-D3DKXTTY.mjs";
11
11
  import {
12
12
  tv
13
13
  } from "./chunk-UP6RPQDX.mjs";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import {
3
- ripple_default
4
- } from "./chunk-LXHUO6VM.mjs";
5
2
  import {
6
3
  useRipple
7
4
  } from "./chunk-SZL743JC.mjs";
5
+ import {
6
+ ripple_default
7
+ } from "./chunk-LXHUO6VM.mjs";
8
8
  import {
9
9
  Icon_default
10
10
  } from "./chunk-A6UUVHC6.mjs";
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import {
3
- useIsMounted
4
- } from "./chunk-3V4HT2K5.mjs";
5
2
  import {
6
3
  mapPropsVariants
7
4
  } from "./chunk-E3G5QXSH.mjs";
8
5
  import {
9
6
  tv
10
7
  } from "./chunk-UP6RPQDX.mjs";
8
+ import {
9
+ useIsMounted
10
+ } from "./chunk-3V4HT2K5.mjs";
11
11
 
12
12
  // src/components/progress/progress.tsx
13
13
  import { useMemo } from "react";