@deepnoid/ui 1.0.16 → 1.0.17

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 (55) hide show
  1. package/README.md +51 -52
  2. package/dist/{chunk-FNES52QP.mjs → chunk-JTHMSDOS.mjs} +1 -1
  3. package/dist/components/breadcrumb/breadcrumb.mjs +2 -2
  4. package/dist/components/breadcrumb/index.mjs +2 -2
  5. package/dist/components/button/button.mjs +1 -1
  6. package/dist/components/button/icon-button.mjs +1 -1
  7. package/dist/components/button/index.mjs +4 -4
  8. package/dist/components/charts/index.mjs +3 -3
  9. package/dist/components/chip/chip.mjs +1 -1
  10. package/dist/components/chip/index.mjs +1 -1
  11. package/dist/components/fileUpload/fileUpload.mjs +5 -5
  12. package/dist/components/fileUpload/index.mjs +5 -5
  13. package/dist/components/input/index.mjs +1 -1
  14. package/dist/components/input/input.mjs +1 -1
  15. package/dist/components/list/index.mjs +4 -4
  16. package/dist/components/list/listItem.mjs +2 -2
  17. package/dist/components/modal/GlobalModalProvider.mjs +2 -2
  18. package/dist/components/modal/index.mjs +2 -2
  19. package/dist/components/modal/modal.mjs +2 -2
  20. package/dist/components/modal/useGlobalModal.mjs +2 -2
  21. package/dist/components/pagination/index.mjs +1 -1
  22. package/dist/components/pagination/pagination.mjs +1 -1
  23. package/dist/components/picker/datePicker.mjs +3 -3
  24. package/dist/components/picker/index.mjs +3 -3
  25. package/dist/components/picker/timePicker/Panel.mjs +2 -2
  26. package/dist/components/picker/timePicker/index.mjs +2 -2
  27. package/dist/components/progress/index.mjs +2 -2
  28. package/dist/components/progress/progress.mjs +2 -2
  29. package/dist/components/select/index.mjs +2 -2
  30. package/dist/components/select/select.mjs +2 -2
  31. package/dist/components/starRating/index.mjs +1 -1
  32. package/dist/components/starRating/starRating.mjs +1 -1
  33. package/dist/components/table/index.mjs +3 -3
  34. package/dist/components/table/table-body.mjs +3 -3
  35. package/dist/components/table/table-head.mjs +3 -3
  36. package/dist/components/table/table.mjs +3 -3
  37. package/dist/components/timePicker/calendar.mjs +1 -1
  38. package/dist/components/toast/index.mjs +1 -1
  39. package/dist/components/toast/toast.mjs +1 -1
  40. package/dist/components/toast/use-toast.mjs +1 -1
  41. package/dist/components/tree/index.mjs +1 -1
  42. package/dist/components/tree/tree.mjs +1 -1
  43. package/dist/index.mjs +67 -67
  44. package/dist/style.css +1 -1
  45. package/dist/tailwind-config/preset.css +7 -0
  46. package/dist/tailwind-config/styles/animation.css +62 -0
  47. package/dist/tailwind-config/styles/generated/border.css +124 -0
  48. package/dist/tailwind-config/styles/generated/border.fallback.css +124 -0
  49. package/dist/tailwind-config/styles/tokens/colors.css +371 -0
  50. package/dist/tailwind-config/styles/tokens/theme.css +144 -0
  51. package/dist/tailwind-config/styles/utilities/scrollbar.css +127 -0
  52. package/package.json +6 -5
  53. package/dist/{chunk-X7SYBDST.mjs → chunk-5OYSVLA7.mjs} +3 -3
  54. package/dist/{chunk-XTMOAGLY.mjs → chunk-J4QVGC54.mjs} +3 -3
  55. package/dist/{chunk-KE26ONWZ.mjs → chunk-S7UE2MJZ.mjs} +3 -3
@@ -0,0 +1,144 @@
1
+
2
+ /* Fallback for bundlers that do not run Tailwind's CSS transform on dependency CSS. */
3
+ :root,
4
+ :host {
5
+ /* Fonts */
6
+ --font-sans: "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
7
+ --font-nanumsquare: "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
8
+
9
+ /* Border Radius */
10
+ --radius-2: 2px;
11
+ --radius-5: 5px;
12
+ --radius-sm: 4px;
13
+ --radius-md: 6px;
14
+ --radius-lg: 8px;
15
+ --radius-xl: 10px;
16
+ --radius-2xl: 20px;
17
+ --radius-none: 0;
18
+ --radius-full: 9999px;
19
+
20
+ /* Spacing */
21
+ --spacing-5: 5px;
22
+ --spacing-10: 10px;
23
+ --spacing-20: 20px;
24
+ --spacing-30: 30px;
25
+ --spacing-sm: 4px;
26
+ --spacing-md: 6px;
27
+ --spacing-lg: 8px;
28
+ --spacing-xl: 10px;
29
+
30
+ /* Shadows */
31
+ --shadow-border-1: inner 0 0 0 1px inset;
32
+ --shadow-border-2: inner 0 0 0 2px inset;
33
+ --shadow-border-3: inner 0 0 0 3px inset;
34
+ --shadow-border-4: inner 0 0 0 4px inset;
35
+ --shadow-border-5: inner 0 0 0 5px inset;
36
+ --shadow-border-6: inner 0 0 0 6px inset;
37
+ --shadow-border-7: inner 0 0 0 7px inset;
38
+ --shadow-border-8: inner 0 0 0 8px inset;
39
+ --shadow-border-9: inner 0 0 0 9px inset;
40
+ --shadow-border-10: inner 0 0 0 10px inset;
41
+ --shadow-inner: inset 0 4px 8px 0 rgba(36, 39, 44, 0.2);
42
+ --shadow-inner-sm: inset 0 4px 8px 0 rgba(0, 0, 0, 0.2);
43
+ --shadow-inner-md: inset 0 6px 12px 0 rgba(0, 0, 0, 0.2);
44
+ --shadow-inner-lg: inset 0 8px 16px 0 rgba(0, 0, 0, 0.2);
45
+ --shadow-inner-xl: inset 0 10px 20px 0 rgba(0, 0, 0, 0.2);
46
+ --shadow-drop: 0 20px 40px 0 rgba(36, 39, 44, 0.2);
47
+ --shadow-drop-sm: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
48
+ --shadow-drop-md: 0 6px 18px 0 rgba(0, 0, 0, 0.1);
49
+ --shadow-drop-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
50
+ --shadow-drop-xl: 0 0px 60px 0 rgba(0, 0, 0, 0.2);
51
+
52
+ /* Font Sizes */
53
+ --text-h1: 40px;
54
+ --text-h1--line-height: normal;
55
+ --text-h2: 34px;
56
+ --text-h2--line-height: normal;
57
+ --text-h3: 28px;
58
+ --text-h3--line-height: normal;
59
+ --text-h4: 24px;
60
+ --text-h4--line-height: normal;
61
+ --text-h5: 20px;
62
+ --text-h5--line-height: normal;
63
+ --text-sm: 12px;
64
+ --text-sm--line-height: normal;
65
+ --text-md: 14px;
66
+ --text-md--line-height: normal;
67
+ --text-lg: 16px;
68
+ --text-lg--line-height: normal;
69
+ --text-xl: 18px;
70
+ --text-xl--line-height: normal;
71
+ --text-2xl: 24px;
72
+ --text-2xl--line-height: normal;
73
+ }
74
+
75
+ @theme {
76
+ /* Fonts */
77
+ --font-sans: "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
78
+ --font-nanumsquare: "NanumSquare", "-apple-system", ".SFNSText-Regular", "San Francisco", "BlinkMacSystemFont", "Segoe UI", "Helvetica Neue", "Helvetica", "Arial", "sans-serif";
79
+
80
+ /* Border Radius */
81
+ --radius-2: 2px;
82
+ --radius-5: 5px;
83
+ --radius-sm: 4px;
84
+ --radius-md: 6px;
85
+ --radius-lg: 8px;
86
+ --radius-xl: 10px;
87
+ --radius-2xl: 20px;
88
+ --radius-none: 0;
89
+ --radius-full: 9999px;
90
+
91
+ /* Spacing */
92
+ --spacing-5: 5px;
93
+ --spacing-10: 10px;
94
+ --spacing-20: 20px;
95
+ --spacing-30: 30px;
96
+ --spacing-sm: 4px;
97
+ --spacing-md: 6px;
98
+ --spacing-lg: 8px;
99
+ --spacing-xl: 10px;
100
+
101
+ /* Shadows */
102
+ --shadow-border-1: inner 0 0 0 1px inset;
103
+ --shadow-border-2: inner 0 0 0 2px inset;
104
+ --shadow-border-3: inner 0 0 0 3px inset;
105
+ --shadow-border-4: inner 0 0 0 4px inset;
106
+ --shadow-border-5: inner 0 0 0 5px inset;
107
+ --shadow-border-6: inner 0 0 0 6px inset;
108
+ --shadow-border-7: inner 0 0 0 7px inset;
109
+ --shadow-border-8: inner 0 0 0 8px inset;
110
+ --shadow-border-9: inner 0 0 0 9px inset;
111
+ --shadow-border-10: inner 0 0 0 10px inset;
112
+ --shadow-inner: inset 0 4px 8px 0 rgba(36, 39, 44, 0.2);
113
+ --shadow-inner-sm: inset 0 4px 8px 0 rgba(0, 0, 0, 0.2);
114
+ --shadow-inner-md: inset 0 6px 12px 0 rgba(0, 0, 0, 0.2);
115
+ --shadow-inner-lg: inset 0 8px 16px 0 rgba(0, 0, 0, 0.2);
116
+ --shadow-inner-xl: inset 0 10px 20px 0 rgba(0, 0, 0, 0.2);
117
+ --shadow-drop: 0 20px 40px 0 rgba(36, 39, 44, 0.2);
118
+ --shadow-drop-sm: 0 4px 12px 0 rgba(0, 0, 0, 0.1);
119
+ --shadow-drop-md: 0 6px 18px 0 rgba(0, 0, 0, 0.1);
120
+ --shadow-drop-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.1);
121
+ --shadow-drop-xl: 0 0px 60px 0 rgba(0, 0, 0, 0.2);
122
+
123
+ /* Font Sizes */
124
+ --text-h1: 40px;
125
+ --text-h1--line-height: normal;
126
+ --text-h2: 34px;
127
+ --text-h2--line-height: normal;
128
+ --text-h3: 28px;
129
+ --text-h3--line-height: normal;
130
+ --text-h4: 24px;
131
+ --text-h4--line-height: normal;
132
+ --text-h5: 20px;
133
+ --text-h5--line-height: normal;
134
+ --text-sm: 12px;
135
+ --text-sm--line-height: normal;
136
+ --text-md: 14px;
137
+ --text-md--line-height: normal;
138
+ --text-lg: 16px;
139
+ --text-lg--line-height: normal;
140
+ --text-xl: 18px;
141
+ --text-xl--line-height: normal;
142
+ --text-2xl: 24px;
143
+ --text-2xl--line-height: normal;
144
+ }
@@ -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.17",
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",
@@ -9,15 +9,15 @@ import {
9
9
  import {
10
10
  input_default
11
11
  } from "./chunk-Y6EIO72X.mjs";
12
- import {
13
- icon_button_default
14
- } from "./chunk-PRLKKUBY.mjs";
15
12
  import {
16
13
  text_button_default
17
14
  } from "./chunk-ZDZKGGK3.mjs";
18
15
  import {
19
16
  button_default
20
17
  } from "./chunk-7U7FM6I6.mjs";
18
+ import {
19
+ icon_button_default
20
+ } from "./chunk-PRLKKUBY.mjs";
21
21
  import {
22
22
  Icon_default
23
23
  } 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,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";