@mdigital_ui/ui 0.3.6 → 0.3.7
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.
- package/dist/index.js +3 -3
- package/package.json +9 -8
- package/{dist/styles → styles}/global.css +0 -105
- /package/{dist/styles → styles}/themes/dark.css +0 -0
- /package/{dist/styles → styles}/themes/light.css +0 -0
- /package/{dist/styles → styles}/themes/presets/corporate.css +0 -0
- /package/{dist/styles → styles}/themes/presets/minimal.css +0 -0
- /package/{dist/styles → styles}/themes/presets/vibrant.css +0 -0
package/dist/index.js
CHANGED
|
@@ -48,21 +48,21 @@ export { float_input_default as FloatInput } from './chunk-SB3JGUGE.js';
|
|
|
48
48
|
export { carousel_default as Carousel } from './chunk-DRCT6VZ7.js';
|
|
49
49
|
export { cascader_default as Cascader } from './chunk-XHDUO3UW.js';
|
|
50
50
|
export { checkbox_default as Checkbox } from './chunk-56BHCAPI.js';
|
|
51
|
-
export { clipboard_default as Clipboard } from './chunk-6QZFWSN7.js';
|
|
52
51
|
export { checkbox_group_default as CheckboxGroup } from './chunk-2PNLIQYM.js';
|
|
52
|
+
export { clipboard_default as Clipboard } from './chunk-6QZFWSN7.js';
|
|
53
53
|
export { collapse_default as Collapse } from './chunk-X5XIBIEF.js';
|
|
54
54
|
export { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandModal, CommandSeparator, CommandShortcut } from './chunk-SX5UNM6C.js';
|
|
55
55
|
export { modal_default as Modal, ModalClose, ModalContent, ModalDescription, ModalFooter, ModalHeader, ModalOverlay, ModalPortal, Modal as ModalRoot, ModalTitle, ModalTrigger } from './chunk-UN3EW2PL.js';
|
|
56
56
|
export { context_menu_default as ContextMenu, ContextMenuContent } from './chunk-ZHPYJTWP.js';
|
|
57
57
|
export { accordion_default as Accordion } from './chunk-OKCKLIFP.js';
|
|
58
58
|
export { Avatar, AvatarGroup } from './chunk-LX4FDH4J.js';
|
|
59
|
+
export { badge_default as Badge } from './chunk-2K7MDR7K.js';
|
|
59
60
|
export { breadcrumbs_default as Breadcrumbs } from './chunk-7P3Q6H2V.js';
|
|
60
61
|
export { dropdown_default as Dropdown } from './chunk-ZSS6E4T2.js';
|
|
61
62
|
export { Popover, PopoverAnchor, PopoverContent, PopoverTrigger } from './chunk-ZQTJBYKO.js';
|
|
62
|
-
export {
|
|
63
|
+
export { button_group_default as ButtonGroup } from './chunk-6HGUDHHE.js';
|
|
63
64
|
export { button_default as Button } from './chunk-MGKFJWQU.js';
|
|
64
65
|
export { spinner_default as Spinner } from './chunk-PHQOHVG3.js';
|
|
65
|
-
export { button_group_default as ButtonGroup } from './chunk-6HGUDHHE.js';
|
|
66
66
|
export { card_default as Card } from './chunk-HQVTIFXN.js';
|
|
67
67
|
export { bgSkeletonColorClasses, buttonColors, checkboxBorderColorClasses, checkedColorClasses, componentColors, createAllColorVariants, createDashedColorVariants, createDefaultColorVariants, createGhostColorVariants, createKbdColorVariants, createKbdOutlineColorVariants, createKbdSoftColorVariants, createKbdSolidColorVariants, createLinkColorVariants, createNotificationColorVariants, createNotificationOutlineColorVariants, createNotificationSoftColorVariants, createNotificationSolidColorVariants, createOutlineColorVariants, createPopoverColorVariants, createPopoverDefaultColorVariants, createPopoverSoftColorVariants, createPopoverSolidColorVariants, createSoftColorVariants, createSolidColorVariants, createTooltipSoftColorVariants, focusRingColorClasses, radioCheckedColorClasses, switchTrackColorClasses, textColorClasses, textColorVariants, tooltipSolidColorClasses } from './chunk-LK4EPTNG.js';
|
|
68
68
|
export { cn, getValidationStatus, iconSizes } from './chunk-NGYLRX6F.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdigital_ui/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "Modern React component library built with Tailwind CSS v4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
|
+
"styles",
|
|
11
12
|
"examples",
|
|
12
13
|
"README.md",
|
|
13
14
|
"LICENSE"
|
|
@@ -284,12 +285,12 @@
|
|
|
284
285
|
"types": "./dist/theme/index.d.ts",
|
|
285
286
|
"import": "./dist/theme/index.js"
|
|
286
287
|
},
|
|
287
|
-
"./styles/global.css": "./
|
|
288
|
-
"./styles/themes/light.css": "./
|
|
289
|
-
"./styles/themes/dark.css": "./
|
|
290
|
-
"./styles/themes/presets/corporate.css": "./
|
|
291
|
-
"./styles/themes/presets/vibrant.css": "./
|
|
292
|
-
"./styles/themes/presets/minimal.css": "./
|
|
288
|
+
"./styles/global.css": "./styles/global.css",
|
|
289
|
+
"./styles/themes/light.css": "./styles/themes/light.css",
|
|
290
|
+
"./styles/themes/dark.css": "./styles/themes/dark.css",
|
|
291
|
+
"./styles/themes/presets/corporate.css": "./styles/themes/presets/corporate.css",
|
|
292
|
+
"./styles/themes/presets/vibrant.css": "./styles/themes/presets/vibrant.css",
|
|
293
|
+
"./styles/themes/presets/minimal.css": "./styles/themes/presets/minimal.css",
|
|
293
294
|
"./package.json": "./package.json",
|
|
294
295
|
"./alert": {
|
|
295
296
|
"types": "./dist/alert/index.d.ts",
|
|
@@ -510,7 +511,7 @@
|
|
|
510
511
|
},
|
|
511
512
|
"scripts": {
|
|
512
513
|
"build": "tsup && tsc -p tsconfig.dts.json && npm run build:css",
|
|
513
|
-
"build:css": "mkdir -p
|
|
514
|
+
"build:css": "mkdir -p styles/themes/presets && postcss src/styles/global.css -o styles/global.css && postcss src/styles/themes/light.css -o styles/themes/light.css && postcss src/styles/themes/dark.css -o styles/themes/dark.css && postcss src/styles/themes/presets/corporate.css -o styles/themes/presets/corporate.css && postcss src/styles/themes/presets/vibrant.css -o styles/themes/presets/vibrant.css && postcss src/styles/themes/presets/minimal.css -o styles/themes/presets/minimal.css",
|
|
514
515
|
"dev": "tsup --watch",
|
|
515
516
|
"typecheck": "tsc --noEmit",
|
|
516
517
|
"storybook": "storybook dev -p 6006",
|
|
@@ -33,7 +33,6 @@
|
|
|
33
33
|
--color-gray-500: oklch(55% 0 0);
|
|
34
34
|
--color-gray-600: oklch(45% 0 0);
|
|
35
35
|
--color-gray-700: oklch(35% 0 0);
|
|
36
|
-
--color-gray-800: oklch(25% 0 0);
|
|
37
36
|
--color-gray-900: oklch(15% 0 0);
|
|
38
37
|
--color-gray-950: oklch(10% 0 0);
|
|
39
38
|
--color-black: oklch(0% 0 0);
|
|
@@ -64,24 +63,16 @@
|
|
|
64
63
|
--text-3xl--line-height: calc(2.25 / 1.875);
|
|
65
64
|
--text-4xl: 2.25rem;
|
|
66
65
|
--text-4xl--line-height: calc(2.5 / 2.25);
|
|
67
|
-
--text-5xl: 3rem;
|
|
68
|
-
--text-6xl: 3.75rem;
|
|
69
66
|
--font-weight-normal: 400;
|
|
70
67
|
--font-weight-medium: 500;
|
|
71
68
|
--font-weight-semibold: 600;
|
|
72
69
|
--font-weight-bold: 700;
|
|
73
|
-
--font-weight-extrabold: 800;
|
|
74
|
-
--tracking-tighter: -0.05em;
|
|
75
70
|
--tracking-tight: -0.025em;
|
|
76
|
-
--tracking-normal: 0em;
|
|
77
71
|
--tracking-wide: 0.025em;
|
|
78
72
|
--tracking-wider: 0.05em;
|
|
79
73
|
--tracking-widest: 0.1em;
|
|
80
|
-
--leading-tight: 1.25;
|
|
81
74
|
--leading-snug: 1.375;
|
|
82
|
-
--leading-normal: 1.5;
|
|
83
75
|
--leading-relaxed: 1.625;
|
|
84
|
-
--leading-loose: 2;
|
|
85
76
|
--radius-sm: 0.25rem;
|
|
86
77
|
--radius-md: 0.375rem;
|
|
87
78
|
--radius-lg: 0.5rem;
|
|
@@ -89,10 +80,7 @@
|
|
|
89
80
|
--radius-2xl: 0.75rem;
|
|
90
81
|
--radius-3xl: 1rem;
|
|
91
82
|
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
92
|
-
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
|
|
93
83
|
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
|
|
94
|
-
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
|
|
95
|
-
--shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
|
|
96
84
|
--ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
97
85
|
--ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
|
98
86
|
--animate-spin: spin 1s linear infinite;
|
|
@@ -106,31 +94,18 @@
|
|
|
106
94
|
--default-mono-font-family: var(--font-mono);
|
|
107
95
|
--color-primary: oklch(60.29% 0.15 239.2065);
|
|
108
96
|
--color-primary-hover: oklch(50.29% 0.2 239.2065);
|
|
109
|
-
--color-primary-active: oklch(45.29% 0.2 239.2065);
|
|
110
97
|
--color-primary-foreground: oklch(100% 0 0);
|
|
111
98
|
--color-secondary: oklch(50% 0.05 240);
|
|
112
|
-
--color-secondary-hover: oklch(45% 0.06 240);
|
|
113
|
-
--color-secondary-active: oklch(40% 0.07 240);
|
|
114
99
|
--color-secondary-foreground: oklch(100% 0 0);
|
|
115
100
|
--color-accent: oklch(80% 0.1737 67);
|
|
116
|
-
--color-accent-hover: oklch(75% 0.237 67);
|
|
117
|
-
--color-accent-active: oklch(70% 0.1937 67);
|
|
118
101
|
--color-accent-foreground: oklch(15% 0 0);
|
|
119
102
|
--color-success: oklch(70% 0.2 145);
|
|
120
|
-
--color-success-hover: oklch(65% 0.22 145);
|
|
121
|
-
--color-success-active: oklch(50% 0.24 145);
|
|
122
103
|
--color-success-foreground: oklch(100% 0 0);
|
|
123
104
|
--color-error: oklch(65% 0.2 25);
|
|
124
|
-
--color-error-hover: oklch(75% 0.2 25);
|
|
125
|
-
--color-error-active: oklch(80% 0.2 25);
|
|
126
105
|
--color-error-foreground: oklch(100% 0 0);
|
|
127
106
|
--color-warning: oklch(75% 0.15 85);
|
|
128
|
-
--color-warning-hover: oklch(70% 0.17 85);
|
|
129
|
-
--color-warning-active: oklch(65% 0.19 85);
|
|
130
107
|
--color-warning-foreground: oklch(15% 0 0);
|
|
131
108
|
--color-info: oklch(60% 0.19 255);
|
|
132
|
-
--color-info-hover: oklch(55% 0.21 255);
|
|
133
|
-
--color-info-active: oklch(50% 0.23 255);
|
|
134
109
|
--color-info-foreground: oklch(100% 0 0);
|
|
135
110
|
--color-background: oklch(100% 0 0);
|
|
136
111
|
--color-background-secondary: oklch(98% 0 0);
|
|
@@ -157,12 +132,6 @@
|
|
|
157
132
|
--input-padding-x-sm: 0.75rem;
|
|
158
133
|
--input-padding-x-md: 0.875rem;
|
|
159
134
|
--input-padding-x-lg: 1.125rem;
|
|
160
|
-
--color-input-border: oklch(87% 0 0);
|
|
161
|
-
--color-input-border-focus: oklch(55% 0.25 255);
|
|
162
|
-
--color-input-border-error: oklch(60% 0.25 25);
|
|
163
|
-
--color-input-bg: oklch(100% 0 0);
|
|
164
|
-
--color-input-text: oklch(15% 0 0);
|
|
165
|
-
--color-input-placeholder: oklch(60% 0 0);
|
|
166
135
|
--overlay-stripe: oklch(100% 0 0 / 0.15);
|
|
167
136
|
--textarea-min-height-xs: 4rem;
|
|
168
137
|
--textarea-min-height-sm: 5rem;
|
|
@@ -200,24 +169,13 @@
|
|
|
200
169
|
--switch-translate-sm: 1rem;
|
|
201
170
|
--switch-translate-md: 1.25rem;
|
|
202
171
|
--switch-translate-lg: 1.5rem;
|
|
203
|
-
--label-font-size-xs: 0.75rem;
|
|
204
|
-
--label-font-size-sm: 0.875rem;
|
|
205
|
-
--label-font-size-base: 1rem;
|
|
206
|
-
--label-font-size-lg: 1.125rem;
|
|
207
172
|
--card-padding: 1.5rem;
|
|
208
|
-
--card-header-gap: 0.375rem;
|
|
209
|
-
--card-title-size: 1.5rem;
|
|
210
|
-
--card-title-weight: var(--font-weight-semibold);
|
|
211
|
-
--card-description-size: 0.875rem;
|
|
212
173
|
--card-content-padding: 1.5rem;
|
|
213
174
|
--card-footer-padding: 1.5rem;
|
|
214
175
|
--modal-max-width-xs: 20rem;
|
|
215
176
|
--modal-max-width-sm: 24rem;
|
|
216
177
|
--modal-max-width-md: 28rem;
|
|
217
178
|
--modal-max-width-lg: 32rem;
|
|
218
|
-
--modal-max-width-xl: 36rem;
|
|
219
|
-
--modal-max-width-2xl: 42rem;
|
|
220
|
-
--modal-max-width-full: 90vw;
|
|
221
179
|
--modal-padding-xs: 1rem;
|
|
222
180
|
--modal-padding-sm: 1rem;
|
|
223
181
|
--modal-padding-md: 1.5rem;
|
|
@@ -238,7 +196,6 @@
|
|
|
238
196
|
--badge-padding-y-sm: 0.075rem;
|
|
239
197
|
--badge-padding-y-md: 0.125rem;
|
|
240
198
|
--badge-padding-y-lg: 0.25rem;
|
|
241
|
-
--badge-radius: 0.25rem;
|
|
242
199
|
--accordion-padding-x-xs: 0.75rem;
|
|
243
200
|
--accordion-padding-x-sm: 1rem;
|
|
244
201
|
--accordion-padding-x-md: 1.25rem;
|
|
@@ -248,46 +205,12 @@
|
|
|
248
205
|
--accordion-padding-y-md: 0.75rem;
|
|
249
206
|
--accordion-padding-y-lg: 1rem;
|
|
250
207
|
--divider-gap: 1rem;
|
|
251
|
-
--divider-thickness: 1px;
|
|
252
208
|
--divider-left-before-width: 5%;
|
|
253
209
|
--divider-left-after-width: 95%;
|
|
254
210
|
--divider-center-before-width: 50%;
|
|
255
211
|
--divider-center-after-width: 50%;
|
|
256
212
|
--divider-right-before-width: 95%;
|
|
257
213
|
--divider-right-after-width: 5%;
|
|
258
|
-
--table-padding-x-xs: 0.5rem;
|
|
259
|
-
--table-padding-x-sm: 0.75rem;
|
|
260
|
-
--table-padding-x-md: 1rem;
|
|
261
|
-
--table-padding-x-lg: 1.25rem;
|
|
262
|
-
--table-padding-y-xs: 0.5rem;
|
|
263
|
-
--table-padding-y-sm: 0.625rem;
|
|
264
|
-
--table-padding-y-md: 0.75rem;
|
|
265
|
-
--table-padding-y-lg: 1rem;
|
|
266
|
-
--table-border-width: 1px;
|
|
267
|
-
--table-header-bg: var(--color-surface);
|
|
268
|
-
--table-row-hover-bg: var(--color-background-secondary);
|
|
269
|
-
--dropdown-padding-x: 0.5rem;
|
|
270
|
-
--dropdown-padding-y: 0.5rem;
|
|
271
|
-
--dropdown-item-padding-x: 0.75rem;
|
|
272
|
-
--dropdown-item-padding-y: 0.5rem;
|
|
273
|
-
--dropdown-max-height: 20rem;
|
|
274
|
-
--dropdown-min-width: 8rem;
|
|
275
|
-
--tooltip-padding-x: 0.75rem;
|
|
276
|
-
--tooltip-padding-y: 0.5rem;
|
|
277
|
-
--tooltip-max-width: 20rem;
|
|
278
|
-
--tooltip-font-size: 0.875rem;
|
|
279
|
-
--tooltip-arrow-size: 6px;
|
|
280
|
-
--drawer-width-sm: 20rem;
|
|
281
|
-
--drawer-width-md: 24rem;
|
|
282
|
-
--drawer-width-lg: 28rem;
|
|
283
|
-
--drawer-width-xl: 32rem;
|
|
284
|
-
--drawer-width-full: 100vw;
|
|
285
|
-
--drawer-padding: 1.5rem;
|
|
286
|
-
--popover-padding: 1rem;
|
|
287
|
-
--popover-max-width: 24rem;
|
|
288
|
-
--popover-min-width: 12rem;
|
|
289
|
-
--breadcrumb-gap: 0.5rem;
|
|
290
|
-
--breadcrumb-separator-gap: 0.5rem;
|
|
291
214
|
--tabs-gap-xs: 0.25rem;
|
|
292
215
|
--tabs-gap-sm: 0.375rem;
|
|
293
216
|
--tabs-gap-md: 0.5rem;
|
|
@@ -300,9 +223,6 @@
|
|
|
300
223
|
--tabs-padding-y-sm: 0.375rem;
|
|
301
224
|
--tabs-padding-y-md: 0.5rem;
|
|
302
225
|
--tabs-padding-y-lg: 0.625rem;
|
|
303
|
-
--stepper-icon-size: 2rem;
|
|
304
|
-
--stepper-line-thickness: 2px;
|
|
305
|
-
--stepper-gap: 1rem;
|
|
306
226
|
--spacing-0: 0px;
|
|
307
227
|
--spacing-1: 0.25rem;
|
|
308
228
|
--spacing-2: 0.5rem;
|
|
@@ -317,13 +237,8 @@
|
|
|
317
237
|
--radius-full: 9999px;
|
|
318
238
|
--leading-none: 1;
|
|
319
239
|
--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
320
|
-
--transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
321
|
-
--transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
322
240
|
--z-dropdown: 1000;
|
|
323
|
-
--z-sticky: 1020;
|
|
324
|
-
--z-modal: 1040;
|
|
325
241
|
--z-popover: 1050;
|
|
326
|
-
--z-tooltip: 1060;
|
|
327
242
|
}
|
|
328
243
|
}
|
|
329
244
|
@layer base {
|
|
@@ -744,9 +659,6 @@
|
|
|
744
659
|
.-mb-px {
|
|
745
660
|
margin-bottom: -1px;
|
|
746
661
|
}
|
|
747
|
-
.mb-\(--card-header-gap\) {
|
|
748
|
-
margin-bottom: var(--card-header-gap);
|
|
749
|
-
}
|
|
750
662
|
.mb-0\.5 {
|
|
751
663
|
margin-bottom: calc(var(--spacing) * 0.5);
|
|
752
664
|
}
|
|
@@ -1702,9 +1614,6 @@
|
|
|
1702
1614
|
.justify-start {
|
|
1703
1615
|
justify-content: flex-start;
|
|
1704
1616
|
}
|
|
1705
|
-
.gap-\(--card-header-gap\) {
|
|
1706
|
-
gap: var(--card-header-gap);
|
|
1707
|
-
}
|
|
1708
1617
|
.gap-\(--divider-gap\) {
|
|
1709
1618
|
gap: var(--divider-gap);
|
|
1710
1619
|
}
|
|
@@ -2081,10 +1990,6 @@
|
|
|
2081
1990
|
border-left-style: var(--tw-border-style);
|
|
2082
1991
|
border-left-width: 1px;
|
|
2083
1992
|
}
|
|
2084
|
-
.border-l-2 {
|
|
2085
|
-
border-left-style: var(--tw-border-style);
|
|
2086
|
-
border-left-width: 2px;
|
|
2087
|
-
}
|
|
2088
1993
|
.border-l-4 {
|
|
2089
1994
|
border-left-style: var(--tw-border-style);
|
|
2090
1995
|
border-left-width: 4px;
|
|
@@ -3578,10 +3483,6 @@
|
|
|
3578
3483
|
--tw-leading: var(--leading-snug);
|
|
3579
3484
|
line-height: var(--leading-snug);
|
|
3580
3485
|
}
|
|
3581
|
-
.font-\(--card-title-weight\) {
|
|
3582
|
-
--tw-font-weight: var(--card-title-weight);
|
|
3583
|
-
font-weight: var(--card-title-weight);
|
|
3584
|
-
}
|
|
3585
3486
|
.font-bold {
|
|
3586
3487
|
--tw-font-weight: var(--font-weight-bold);
|
|
3587
3488
|
font-weight: var(--font-weight-bold);
|
|
@@ -3620,12 +3521,6 @@
|
|
|
3620
3521
|
.whitespace-nowrap {
|
|
3621
3522
|
white-space: nowrap;
|
|
3622
3523
|
}
|
|
3623
|
-
.text-\(--card-description-size\) {
|
|
3624
|
-
color: var(--card-description-size);
|
|
3625
|
-
}
|
|
3626
|
-
.text-\(--card-title-size\) {
|
|
3627
|
-
color: var(--card-title-size);
|
|
3628
|
-
}
|
|
3629
3524
|
.text-\[--color-error\] {
|
|
3630
3525
|
color: --color-error;
|
|
3631
3526
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|