@nxgt/material-vue 0.26.1 → 0.28.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.
- package/CHANGELOG.md +202 -0
- package/README.md +10 -7
- package/dist/Button-D1uzdbOJ.js +728 -0
- package/dist/{DropdownMenuTrigger-BHAhXGUO.js → DropdownMenuTrigger-BsuyNVzV.js} +48 -41
- package/dist/HoverCardTrigger-DaM5d4hE.js +510 -0
- package/dist/{camera-DvKuqT4L.js → camera-CxXijySa.js} +4 -4
- package/dist/components/base-content.css +139 -0
- package/dist/components/base.css +150 -0
- package/dist/components/components.css +2 -0
- package/dist/components/reduced-motion.css +56 -0
- package/dist/components/theme-tokens.css +116 -0
- package/dist/components/ui/actions/button-group/button-group.css +1 -1
- package/dist/components/ui/feedback/toast/toast.css +21 -0
- package/dist/components/ui/primitives/label/label.css +33 -0
- package/dist/{components-CCWod7cJ.js → components-Db9OdMfQ.js} +19053 -18364
- package/dist/components.js +7 -7
- package/dist/composables.js +3 -3
- package/dist/dnd.js +1 -1
- package/dist/field-name-attribute-Bl7LSVK0.js +4 -0
- package/dist/{form-scope-x-7TYn2s.js → form-scope-BILi3ke-.js} +1 -1
- package/dist/{i18n-provider-CaaZCmaR.js → i18n-provider-BPK68eqM.js} +1 -1
- package/dist/i18n.js +4 -4
- package/dist/icon-button-D60G5B_Z.js +262 -0
- package/dist/lib/components/ui/actions/button/Button.vue.d.ts +22 -4
- package/dist/lib/components/ui/actions/button/button-tones.d.ts +36 -0
- package/dist/lib/components/ui/actions/button/button.variants.d.ts +1 -1
- package/dist/lib/components/ui/actions/button/button.wrap.d.ts +8 -0
- package/dist/lib/components/ui/actions/button/label-text.d.ts +9 -0
- package/dist/lib/components/ui/actions/button/prepend-to-child.d.ts +18 -0
- package/dist/lib/components/ui/actions/button/use-click-lock.d.ts +14 -0
- package/dist/lib/components/ui/actions/copy-button/copy-button.vue.d.ts +6 -2
- package/dist/lib/components/ui/actions/icon-button/icon-button.compound-variants.d.ts +28 -0
- package/dist/lib/components/ui/actions/icon-button/icon-button.vue.d.ts +1 -1
- package/dist/lib/components/ui/actions/responsive-button/responsive-button.vue.d.ts +1 -3
- package/dist/lib/components/ui/collections/data-table/partials/data-table-empty.vue.d.ts +5 -1
- package/dist/lib/components/ui/collections/data-table/partials/data-table-scroll-region.vue.d.ts +28 -0
- package/dist/lib/components/ui/collections/data-table/partials/data-table-toolbar.d.ts +60 -0
- package/dist/lib/components/ui/collections/data-table/types.d.ts +9 -0
- package/dist/lib/components/ui/collections/data-table/use-scroll-edges.d.ts +22 -0
- package/dist/lib/components/ui/collections/pagination/PaginationFirst.vue.d.ts +1 -1
- package/dist/lib/components/ui/collections/pagination/PaginationItem.vue.d.ts +1 -1
- package/dist/lib/components/ui/collections/pagination/PaginationLast.vue.d.ts +1 -1
- package/dist/lib/components/ui/collections/pagination/PaginationNext.vue.d.ts +1 -1
- package/dist/lib/components/ui/collections/pagination/PaginationPrevious.vue.d.ts +1 -1
- package/dist/lib/components/ui/dates/calendar/Calendar.vue.d.ts +4 -4
- package/dist/lib/components/ui/dates/calendar/calendar-day-label.d.ts +17 -0
- package/dist/lib/components/ui/dates/calendar/calendar-years.d.ts +11 -0
- package/dist/lib/components/ui/dates/calendar/partials/calendar-month-select.vue.d.ts +18 -0
- package/dist/lib/components/ui/dates/calendar/partials/calendar-year-select.vue.d.ts +19 -0
- package/dist/lib/components/ui/dates/calendar/use-calendar-locale.d.ts +7 -0
- package/dist/lib/components/ui/dates/calendar/use-calendar-selected-hint.d.ts +17 -0
- package/dist/lib/components/ui/dates/date-range-field/partials/date-range-day.vue.d.ts +8 -0
- package/dist/lib/components/ui/display/cards/cards.gallery.d.ts +3 -3
- package/dist/lib/components/ui/display/list-tile/list-tile.vue.d.ts +10 -6
- package/dist/lib/components/ui/feedback/alert-dialog/AlertDialogContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/feedback/sonner/index.d.ts +1 -0
- package/dist/lib/components/ui/feedback/toast/toast.d.ts +7 -0
- package/dist/lib/components/ui/feedback/toast/toast.vue.d.ts +18 -2
- package/dist/lib/components/ui/fields/contacts/consts.d.ts +1 -1
- package/dist/lib/components/ui/forms/use-field-blur.d.ts +3 -0
- package/dist/lib/components/ui/layout/app-shell/activity-content.vue.d.ts +9 -3
- package/dist/lib/components/ui/layout/app-shell/activity-layout.vue.d.ts +21 -4
- package/dist/lib/components/ui/layout/app-shell/app-header.vue.d.ts +7 -5
- package/dist/lib/components/ui/layout/app-shell/app-sidebar.vue.d.ts +4 -1
- package/dist/lib/components/ui/layout/app-shell/index.d.ts +2 -2
- package/dist/lib/components/ui/layout/app-shell/router-menu-link.d.ts +7 -0
- package/dist/lib/components/ui/layout/app-shell/types.d.ts +8 -0
- package/dist/lib/components/ui/layout/app-shell/use-content-scroll.d.ts +13 -0
- package/dist/lib/components/ui/layout/app-shell/use-navigation-sheet.d.ts +17 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-context.d.ts +15 -0
- package/dist/lib/components/ui/layout/sidebar/sidebar-menu-item.vue.d.ts +13 -4
- package/dist/lib/components/ui/media/carousel/carousel-next.vue.d.ts +1 -1
- package/dist/lib/components/ui/media/carousel/carousel-previous.vue.d.ts +1 -1
- package/dist/lib/components/ui/menu-item-variant.d.ts +4 -4
- package/dist/lib/components/ui/overlays/context-menu/ContextMenuContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/overlays/dialog/DialogContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/overlays/dialog/DialogScrollContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/overlays/dialog/use-escape-forward.d.ts +17 -0
- package/dist/lib/components/ui/overlays/dialog/use-inert-others.d.ts +17 -0
- package/dist/lib/components/ui/overlays/dialog/use-modal-content.d.ts +32 -0
- package/dist/lib/components/ui/overlays/drawer/DrawerContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/overlays/dropdown-menu/DropdownMenu.vue.d.ts +3 -1
- package/dist/lib/components/ui/overlays/dropdown-menu/DropdownMenuContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/overlays/popover/PopoverContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/overlays/sheet/SheetContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/primitives/card/CardTitle.vue.d.ts +11 -4
- package/dist/lib/components/ui/primitives/card/index.d.ts +1 -0
- package/dist/lib/components/ui/primitives/tabs/Tabs.vue.d.ts +6 -2
- package/dist/lib/components/ui/primitives/tabs/TabsList.vue.d.ts +2 -2
- package/dist/lib/components/ui/primitives/tabs/TabsTrigger.vue.d.ts +6 -4
- package/dist/lib/components/ui/primitives/tabs/tabs-classes.d.ts +27 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-indicator.vue.d.ts +25 -0
- package/dist/lib/components/ui/primitives/tabs/tabs-variant.d.ts +5 -8
- package/dist/lib/components/ui/primitives/toggle/Toggle.vue.d.ts +1 -1
- package/dist/lib/components/ui/primitives/toggle/index.d.ts +1 -1
- package/dist/lib/components/ui/selection/autocomplete/partials/autocomplete-box.vue.d.ts +2 -0
- package/dist/lib/components/ui/selection/select/SelectContent.vue.d.ts +2 -2
- package/dist/lib/components/ui/selection/select-chip-field/select-chip-field.vue.d.ts +1 -0
- package/dist/lib/components/ui/widgets/emoji/types.d.ts +1 -6
- package/dist/lib/i18n/resources/en/en.d.ts +23 -0
- package/dist/lib/i18n/resources/en/material.json.d.ts +28 -5
- package/dist/lib/i18n/resources/fr/fr.d.ts +23 -0
- package/dist/lib/i18n/resources/fr/material.json.d.ts +28 -5
- package/dist/lib/i18n/resources/resources.d.ts +46 -0
- package/dist/lib/i18n/translator.d.ts +1 -1
- package/dist/lib/lib/field-name-attribute.d.ts +7 -0
- package/dist/lib/lib/focus-field.d.ts +17 -0
- package/dist/lib/lib/index.d.ts +1 -0
- package/dist/lib.js +76 -74
- package/dist/main.js +13 -13
- package/dist/map.js +4 -4
- package/dist/material-vue.css +1 -1
- package/dist/{pdf-outline-sidebar-D3vq2qfS.js → pdf-outline-sidebar-BXGTDISI.js} +2 -2
- package/dist/{pdf-page-BrJbyjQj.js → pdf-page-BR4G03kN.js} +1 -1
- package/dist/{pdf-page-list-BCgYEszV.js → pdf-page-list-bjQm6_kf.js} +2 -2
- package/dist/{pdf-reader-BAzevSJU.js → pdf-reader-DGVEFNc0.js} +9 -9
- package/dist/{pdf-sidebar-DSh2Mend.js → pdf-sidebar-CiM6dwAm.js} +3 -3
- package/dist/{pdf-thumbnail-sidebar-D_EMcbKF.js → pdf-thumbnail-sidebar-fM3DGJzD.js} +3 -3
- package/dist/{pdf-toolbar-BcL7HlfS.js → pdf-toolbar-mWlGTWU1.js} +5 -5
- package/dist/pdf.js +2 -2
- package/dist/{sortable-provider-DMpmM7Ke.js → sortable-provider-Dml11nQY.js} +2 -2
- package/dist/{stored-language-Bxhsx4iB.js → stored-language-UnInBB6T.js} +56 -10
- package/dist/{stx-player-MldK_ZAZ.js → stx-player-BS7-CXFx.js} +2 -2
- package/dist/styles.css +10 -368
- package/dist/{translator-CLI_7Crg.js → translator-J3_vaV_A.js} +1 -1
- package/dist/{use-heading-spy-VPuFj2Gt.js → use-heading-spy-_dk8kGwL.js} +19 -19
- package/dist/use-inert-others-CtGqZKR8.js +22 -0
- package/dist/{use-material-translation-CONqD9wJ.js → use-material-translation-Do6ztdtV.js} +3 -3
- package/docs/components/buttons-and-actions.md +71 -16
- package/docs/components/data-display.md +13 -2
- package/docs/components/data-table-filter-and-lists.md +85 -5
- package/docs/components/date-and-time.md +25 -1
- package/docs/components/feedback-and-status.md +86 -11
- package/docs/components/form-fields.md +13 -4
- package/docs/components/media-and-files.md +7 -0
- package/docs/components/navigation-and-layout.md +19 -1
- package/docs/components/overlays-and-menus.md +20 -4
- package/docs/components/primitives.md +97 -20
- package/docs/components/rich-widgets.md +10 -0
- package/docs/components/selection-and-choice.md +12 -1
- package/docs/getting-started.md +2 -2
- package/docs/guides/app-shell.md +102 -6
- package/docs/guides/forms.md +58 -5
- package/docs/guides/helpers.md +2 -1
- package/docs/guides/i18n.md +24 -4
- package/docs/guides/ssr.md +1 -1
- package/docs/guides/theming.md +148 -6
- package/docs/previews/data-display-codegroup.webp +0 -0
- package/docs/previews/data-display-description.webp +0 -0
- package/docs/previews/feedback-status-toast.webp +0 -0
- package/docs/previews/primitives-tabs.webp +0 -0
- package/docs/previews/rich-widgets-emojipicker.webp +0 -0
- package/docs/roadmap.md +30 -1
- package/docs/troubleshooting.md +889 -12
- package/lib/components/base-content.css +139 -0
- package/lib/components/base.css +150 -0
- package/lib/components/components.css +2 -0
- package/lib/components/reduced-motion.css +56 -0
- package/lib/components/theme-tokens.css +116 -0
- package/lib/components/ui/actions/button-group/button-group.css +1 -1
- package/lib/components/ui/feedback/toast/toast.css +21 -0
- package/lib/components/ui/primitives/label/label.css +33 -0
- package/lib/styles.css +10 -368
- package/package.json +2 -2
- package/dist/Button-16J7vTpE.js +0 -665
- package/dist/HoverCardTrigger-C41002JS.js +0 -455
- package/dist/icon-button-CDdNsZuZ.js +0 -227
- package/dist/lib/components/ui/widgets/emoji/emoji.groups.d.ts +0 -6
package/lib/styles.css
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
@import "tw-animate-css";
|
|
3
3
|
/* The stylesheets the components need: lib/components/components.css. */
|
|
4
4
|
@import "./components/components.css";
|
|
5
|
+
/* Reduced motion: unlayered on purpose, see the file. */
|
|
6
|
+
@import "./components/reduced-motion.css";
|
|
7
|
+
/* The theme's colour tokens, light (:root) and dark: lib/components/theme-tokens.css. */
|
|
8
|
+
@import "./components/theme-tokens.css";
|
|
9
|
+
/* The base layer: elements (base.css), then editor content and the form grid. */
|
|
10
|
+
@import "./components/base.css";
|
|
11
|
+
@import "./components/base-content.css";
|
|
5
12
|
/* Consumers' Tailwind skips node_modules: scan the compiled components. */
|
|
6
13
|
@source "../dist";
|
|
7
14
|
|
|
@@ -9,91 +16,6 @@
|
|
|
9
16
|
&:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)
|
|
10
17
|
);
|
|
11
18
|
|
|
12
|
-
:root {
|
|
13
|
-
--radius: 0.625rem;
|
|
14
|
-
--background: oklch(1 0 0);
|
|
15
|
-
--foreground: oklch(0.14 0.036 258.53);
|
|
16
|
-
--card: oklch(1 0 0);
|
|
17
|
-
--card-foreground: oklch(0.129 0.042 264.695);
|
|
18
|
-
--strix: oklch(45.91% 0.1864 310.75);
|
|
19
|
-
--popover: oklch(1 0 0);
|
|
20
|
-
--popover-foreground: oklch(0.129 0.042 264.695);
|
|
21
|
-
--primary: oklch(46% 0.1135 276.35);
|
|
22
|
-
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
23
|
-
--secondary: oklch(56.67% 0.1135 245.65);
|
|
24
|
-
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
25
|
-
--muted: oklch(0.968 0.007 247.896);
|
|
26
|
-
--muted-foreground: oklch(0.554 0.046 257.417);
|
|
27
|
-
--tooltip: oklch(0.446 0.043 257.281);
|
|
28
|
-
--tooltip-foreground: oklch(1 0 0);
|
|
29
|
-
--accent: oklch(0.9182 0.0077 228.86);
|
|
30
|
-
--accent-foreground: oklch(0.216 0.006 56.043);
|
|
31
|
-
--error: oklch(0.577 0.245 27.325);
|
|
32
|
-
--error-foreground: oklch(0.984 0.003 247.858);
|
|
33
|
-
--success: oklch(0.6 0.118 184.704);
|
|
34
|
-
--success-foreground: oklch(0.984 0.003 247.858);
|
|
35
|
-
--info: oklch(0.707 0.165 254.624);
|
|
36
|
-
--info-foreground: oklch(0.984 0.003 247.858);
|
|
37
|
-
--warning: oklch(0.646 0.222 41.116);
|
|
38
|
-
--warning-foreground: oklch(0.984 0.003 247.858);
|
|
39
|
-
--destructive: oklch(0.577 0.245 27.325);
|
|
40
|
-
--border: oklch(0.929 0.013 255.508);
|
|
41
|
-
--input: oklch(0.929 0.013 255.508);
|
|
42
|
-
--ring: oklch(0.704 0.04 256.788);
|
|
43
|
-
--chart-1: oklch(0.646 0.222 41.116);
|
|
44
|
-
--chart-2: oklch(0.6 0.118 184.704);
|
|
45
|
-
--chart-3: oklch(0.398 0.07 227.392);
|
|
46
|
-
--chart-4: oklch(0.828 0.189 84.429);
|
|
47
|
-
--chart-5: oklch(0.769 0.188 70.08);
|
|
48
|
-
--sidebar: oklch(0.984 0.003 247.858);
|
|
49
|
-
--sidebar-foreground: oklch(0.129 0.042 264.695);
|
|
50
|
-
--sidebar-primary: oklch(0.208 0.042 265.755);
|
|
51
|
-
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
52
|
-
--sidebar-accent: oklch(0.968 0.007 247.896);
|
|
53
|
-
--sidebar-accent-foreground: oklch(0.208 0.042 265.755);
|
|
54
|
-
--sidebar-border: oklch(0.929 0.013 255.508);
|
|
55
|
-
--sidebar-ring: oklch(0.704 0.04 256.788);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.dark,
|
|
59
|
-
[data-theme="dark"] {
|
|
60
|
-
--background: oklch(0.14 0.036 258.53);
|
|
61
|
-
--foreground: oklch(0.984 0.003 247.858);
|
|
62
|
-
--card: oklch(0.208 0.042 265.755);
|
|
63
|
-
--card-foreground: oklch(0.984 0.003 247.858);
|
|
64
|
-
--popover: oklch(0.208 0.042 265.755);
|
|
65
|
-
--popover-foreground: oklch(0.984 0.003 247.858);
|
|
66
|
-
--primary: oklch(46% 0.1135 276.35);
|
|
67
|
-
--primary-foreground: oklch(0.984 0.003 247.858);
|
|
68
|
-
--secondary: oklch(56.67% 0.1135 245.65);
|
|
69
|
-
--secondary-foreground: oklch(0.984 0.003 247.858);
|
|
70
|
-
--muted: oklch(0.968 0.007 247.896);
|
|
71
|
-
--muted-foreground: oklch(0.554 0.046 257.417);
|
|
72
|
-
--tooltip: oklch(0.929 0.013 255.508);
|
|
73
|
-
--tooltip-foreground: oklch(0.446 0.043 257.281);
|
|
74
|
-
--accent: oklch(0.268 0.007 34.298);
|
|
75
|
-
--accent-foreground: oklch(0.985 0.001 106.423);
|
|
76
|
-
--error: oklch(0.577 0.245 27.325);
|
|
77
|
-
--error-foreground: oklch(0.984 0.003 247.858);
|
|
78
|
-
--destructive: oklch(0.704 0.191 22.216);
|
|
79
|
-
--border: oklch(1 0 0 / 10%);
|
|
80
|
-
--input: oklch(1 0 0 / 15%);
|
|
81
|
-
--ring: oklch(0.551 0.027 264.364);
|
|
82
|
-
--chart-1: oklch(0.488 0.243 264.376);
|
|
83
|
-
--chart-2: oklch(0.696 0.17 162.48);
|
|
84
|
-
--chart-3: oklch(0.769 0.188 70.08);
|
|
85
|
-
--chart-4: oklch(0.627 0.265 303.9);
|
|
86
|
-
--chart-5: oklch(0.645 0.246 16.439);
|
|
87
|
-
--sidebar: oklch(0.208 0.042 265.755);
|
|
88
|
-
--sidebar-foreground: oklch(0.984 0.003 247.858);
|
|
89
|
-
--sidebar-primary: oklch(0.488 0.243 264.376);
|
|
90
|
-
--sidebar-primary-foreground: oklch(0.984 0.003 247.858);
|
|
91
|
-
--sidebar-accent: oklch(0.279 0.041 260.031);
|
|
92
|
-
--sidebar-accent-foreground: oklch(0.984 0.003 247.858);
|
|
93
|
-
--sidebar-border: oklch(1 0 0 / 10%);
|
|
94
|
-
--sidebar-ring: oklch(0.551 0.027 264.364);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
19
|
@theme {
|
|
98
20
|
--radius-sm: calc(var(--radius) - 4px);
|
|
99
21
|
--radius-md: calc(var(--radius) - 2px);
|
|
@@ -118,6 +40,8 @@
|
|
|
118
40
|
--color-secondary-container: --alpha(var(--secondary-foreground) / 20%);
|
|
119
41
|
--color-muted: var(--muted);
|
|
120
42
|
--color-muted-foreground: var(--muted-foreground);
|
|
43
|
+
--color-track: var(--track);
|
|
44
|
+
--color-track-fill: var(--track-fill);
|
|
121
45
|
--color-tooltip: var(--tooltip);
|
|
122
46
|
--color-tooltip-foreground: var(--tooltip-foreground);
|
|
123
47
|
--color-accent: var(--accent);
|
|
@@ -126,6 +50,7 @@
|
|
|
126
50
|
--color-error: var(--error);
|
|
127
51
|
--color-error-foreground: var(--error-foreground);
|
|
128
52
|
--color-error-container: --alpha(var(--error-foreground) / 20%);
|
|
53
|
+
--color-error-text: var(--error-text);
|
|
129
54
|
--color-success: var(--success);
|
|
130
55
|
--color-success-foreground: var(--success-foreground);
|
|
131
56
|
--color-info: var(--info);
|
|
@@ -187,286 +112,3 @@
|
|
|
187
112
|
bottom: -0.1875rem;
|
|
188
113
|
transform: rotate(-45deg) scale(0.75);
|
|
189
114
|
}
|
|
190
|
-
|
|
191
|
-
@layer base {
|
|
192
|
-
* {
|
|
193
|
-
@apply border-border outline-ring/50 selection:bg-primary selection:text-primary-foreground;
|
|
194
|
-
&::-webkit-scrollbar {
|
|
195
|
-
@apply w-1 gap-4 h-1 md:w-1.5 md:h-1.5 cursor-pointer;
|
|
196
|
-
}
|
|
197
|
-
&::-webkit-scrollbar-track {
|
|
198
|
-
@apply rounded bg-primary/20;
|
|
199
|
-
}
|
|
200
|
-
&::-webkit-scrollbar-thumb {
|
|
201
|
-
@apply rounded bg-muted-foreground;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
input::-webkit-outer-spin-button,
|
|
205
|
-
::-webkit-inner-spin-button {
|
|
206
|
-
-webkit-appearance: none;
|
|
207
|
-
margin: 0;
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
body {
|
|
211
|
-
@apply bg-background text-foreground;
|
|
212
|
-
|
|
213
|
-
input[type="number"] {
|
|
214
|
-
-moz-appearance: textfield;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
[data-slot="icon"] {
|
|
218
|
-
@apply dark:fill-foreground;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
h1 {
|
|
222
|
-
font-size: var(--text-2xl);
|
|
223
|
-
font-weight: var(--font-weight-medium);
|
|
224
|
-
}
|
|
225
|
-
h2 {
|
|
226
|
-
font-size: var(--text-xl);
|
|
227
|
-
font-weight: var(--font-weight-medium);
|
|
228
|
-
}
|
|
229
|
-
h3 {
|
|
230
|
-
font-size: var(--text-lg);
|
|
231
|
-
font-weight: var(--font-weight-medium);
|
|
232
|
-
}
|
|
233
|
-
h4 {
|
|
234
|
-
font-size: var(--text-base);
|
|
235
|
-
font-weight: var(--font-weight-medium);
|
|
236
|
-
}
|
|
237
|
-
h5 {
|
|
238
|
-
font-size: var(--text-sm);
|
|
239
|
-
font-weight: var(--font-weight-medium);
|
|
240
|
-
}
|
|
241
|
-
h6 {
|
|
242
|
-
font-size: var(--text-xs);
|
|
243
|
-
font-weight: var(--font-weight-medium);
|
|
244
|
-
}
|
|
245
|
-
a:not(:has(> button)) {
|
|
246
|
-
@apply focus:underline underline-offset-4 hover:underline cursor-pointer;
|
|
247
|
-
@apply text-info [&_svg]:data-[slot=icon]:text-info hover:bg-info/10 active:bg-info/5 focus:bg-info/15;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
code {
|
|
251
|
-
@apply rounded bg-muted px-[0.3rem] py-[0.2rem] font-mono mx-0.5;
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
blockquote {
|
|
255
|
-
@apply border-l-2 border-primary/40 pl-4 italic text-muted-foreground my-1;
|
|
256
|
-
}
|
|
257
|
-
pre {
|
|
258
|
-
@apply bg-muted rounded p-4 overflow-x-auto my-1;
|
|
259
|
-
code {
|
|
260
|
-
@apply text-sm;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
ul li p,
|
|
265
|
-
ol li p {
|
|
266
|
-
display: inline;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
ul[data-type="taskList"] {
|
|
270
|
-
list-style-type: disc;
|
|
271
|
-
}
|
|
272
|
-
ol[data-type="taskList"] {
|
|
273
|
-
list-style-type: decimal;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
ul[data-type="taskList"] li {
|
|
277
|
-
@apply flex gap-2 items-center;
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
ul,
|
|
281
|
-
ol {
|
|
282
|
-
@apply list-inside marker:text-muted-foreground;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
[data-type="emoji"] {
|
|
286
|
-
img {
|
|
287
|
-
@apply size-4;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
input[type="checkbox"] {
|
|
292
|
-
display: grid;
|
|
293
|
-
place-content: center;
|
|
294
|
-
-webkit-appearance: none;
|
|
295
|
-
appearance: none;
|
|
296
|
-
font: inherit;
|
|
297
|
-
color: ---value(--color-primary);
|
|
298
|
-
width: 1.05em;
|
|
299
|
-
height: 1.05em;
|
|
300
|
-
border: 0.13em solid var(--muted-foreground);
|
|
301
|
-
border-radius: 0.15em;
|
|
302
|
-
}
|
|
303
|
-
input[type="checkbox"]::before {
|
|
304
|
-
content: "";
|
|
305
|
-
width: 0.55em;
|
|
306
|
-
height: 0.55em;
|
|
307
|
-
transform: scale(0);
|
|
308
|
-
transition: 120ms transform ease-in-out;
|
|
309
|
-
box-shadow: inset 1em 1em var(--color-primary);
|
|
310
|
-
}
|
|
311
|
-
input[type="checkbox"]:checked::before {
|
|
312
|
-
transform: scale(1);
|
|
313
|
-
}
|
|
314
|
-
input[type="checkbox"]:indeterminate::before {
|
|
315
|
-
height: 0.15em;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
table {
|
|
319
|
-
overflow: hidden;
|
|
320
|
-
table-layout: fixed;
|
|
321
|
-
@apply border-collapse w-full overflow-hidden rounded;
|
|
322
|
-
|
|
323
|
-
tr {
|
|
324
|
-
@apply even:bg-primary/5;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
td,
|
|
328
|
-
th {
|
|
329
|
-
@apply border-0 p-1 py-2;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
th {
|
|
333
|
-
@apply bg-primary/15 text-left text-muted-foreground dark:text-primary-foreground;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.tiptap {
|
|
338
|
-
ul li p,
|
|
339
|
-
ol li p {
|
|
340
|
-
display: inline;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
ul:not([data-type="taskList"]) {
|
|
344
|
-
list-style-type: disc;
|
|
345
|
-
}
|
|
346
|
-
ol {
|
|
347
|
-
list-style-type: decimal;
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
ul:not([data-type="taskList"]),
|
|
351
|
-
ol {
|
|
352
|
-
@apply list-inside marker:text-muted-foreground;
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
ul[data-type="taskList"] li {
|
|
356
|
-
@apply flex gap-2 items-center;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
:first-child {
|
|
360
|
-
margin-top: 0;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
table {
|
|
364
|
-
/* Override the global `body table { width: w-full }` base rule
|
|
365
|
-
(see @layer base above) — it fights TipTap's resizable colgroup
|
|
366
|
-
widths, which only get applied as an inline table width once
|
|
367
|
-
every column has an explicit pixel width. Letting the table size
|
|
368
|
-
itself (still table-layout: fixed) makes resizing and
|
|
369
|
-
center/right alignment actually visible. */
|
|
370
|
-
width: auto;
|
|
371
|
-
|
|
372
|
-
.selectedCell {
|
|
373
|
-
@apply bg-primary/20;
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
.column-resize-handle {
|
|
377
|
-
background-color: var(--color-primary);
|
|
378
|
-
bottom: -2px;
|
|
379
|
-
pointer-events: none;
|
|
380
|
-
position: absolute;
|
|
381
|
-
right: -2px;
|
|
382
|
-
top: 0;
|
|
383
|
-
width: 4px;
|
|
384
|
-
}
|
|
385
|
-
|
|
386
|
-
&[data-table-caption]::before {
|
|
387
|
-
content: attr(data-table-caption);
|
|
388
|
-
display: block;
|
|
389
|
-
margin-bottom: 0.5rem;
|
|
390
|
-
@apply text-sm text-muted-foreground text-center;
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
|
|
394
|
-
.tableWrapper {
|
|
395
|
-
margin: 1.5rem 0;
|
|
396
|
-
overflow-x: auto;
|
|
397
|
-
|
|
398
|
-
&:has(table[data-table-align="center"]) {
|
|
399
|
-
width: fit-content;
|
|
400
|
-
margin-inline: auto;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
&:has(table[data-table-align="right"]) {
|
|
404
|
-
width: fit-content;
|
|
405
|
-
margin-left: auto;
|
|
406
|
-
margin-right: 0;
|
|
407
|
-
}
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
&.resize-cursor {
|
|
411
|
-
cursor: col-resize;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
.is-empty::before {
|
|
415
|
-
content: attr(data-placeholder);
|
|
416
|
-
float: left;
|
|
417
|
-
height: 0;
|
|
418
|
-
pointer-events: none;
|
|
419
|
-
@apply text-muted-foreground;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
.has-focus {
|
|
423
|
-
@apply bg-accent/40 rounded;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
}
|
|
427
|
-
|
|
428
|
-
.form-grid-layout {
|
|
429
|
-
@apply relative flex flex-col gap-2 @container;
|
|
430
|
-
[data-slot="form-fields"] {
|
|
431
|
-
@apply grid @2xl:grid-cols-2 @4xl:grid-cols-3 @6xl:grid-cols-4 gap-2 bg-background/80 p-4 place-items-start overflow-auto;
|
|
432
|
-
|
|
433
|
-
[data-slot="separator"] {
|
|
434
|
-
@apply col-start-full;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
[data-slot*="text-field"],
|
|
438
|
-
[data-slot*="autocomplete-field"][data-mode="single"],
|
|
439
|
-
[data-slot*="currency-form-field"],
|
|
440
|
-
[data-slot*="time-field"],
|
|
441
|
-
[data-slot*="image-field"],
|
|
442
|
-
[data-slot*="select-field"] {
|
|
443
|
-
@apply w-full;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
[data-slot="switch-field"],
|
|
447
|
-
[data-slot="textarea-field"],
|
|
448
|
-
[data-slot="autocomplete-field"][data-mode="multiple"],
|
|
449
|
-
[data-slot="select-chip-field"],
|
|
450
|
-
[data-slot="file-picker-field"] {
|
|
451
|
-
@apply col-start-full @6xl:col-span-2;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
[data-slot="files-form-field"],
|
|
455
|
-
[data-slot="rich-text-editor"] {
|
|
456
|
-
@apply col-start-full;
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
[data-slot="form-actions"] {
|
|
460
|
-
@apply flex w-full justify-end gap-2 bottom-2 p-4 max-sm:*:flex-1;
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.form-grid-layout,
|
|
465
|
-
[data-slot="data-table"] {
|
|
466
|
-
@apply max-h-[calc(100lvh-184px)] md:max-h-[calc(100lvh-242px)] lg:max-h-[calc(100lvh-280px)];
|
|
467
|
-
}
|
|
468
|
-
|
|
469
|
-
[data-slot="table-wrapper"] {
|
|
470
|
-
@apply max-h-[calc(100vh-432px)] md:max-h-[calc(100vh-490px)] lg:max-h-[calc(100vh-528px)];
|
|
471
|
-
}
|
|
472
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxgt/material-vue",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "stevegires@gmail.com"
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
"docs:previews": "vitest run --project previews"
|
|
120
120
|
},
|
|
121
121
|
"dependencies": {
|
|
122
|
-
"@nxgt/material-core": "^0.
|
|
122
|
+
"@nxgt/material-core": "^0.6.0",
|
|
123
123
|
"@floating-ui/dom": "^1.8.0",
|
|
124
124
|
"@fortawesome/fontawesome-common-types": "7.3.1",
|
|
125
125
|
"@lucide/vue": "^1.45.0",
|