impact-nova 2.1.0-alpha.7 → 2.1.0-alpha.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.
- package/dist/components/data/ag-grid-react/ag-grid.types.d.ts +6 -0
- package/dist/components/data/ag-grid-react/build-ag-grid-theme.d.ts +3 -0
- package/dist/components/data/ag-grid-react/cell-renderers/editors/input-cell-editor.js +58 -58
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.d.ts +9 -0
- package/dist/components/data/ag-grid-react/column-indicator-sync-bus.js +15 -0
- package/dist/components/data/ag-grid-react/headers/column-menu/column-settings-menu.js +78 -73
- package/dist/components/data/ag-grid-react/headers/custom-header.js +3 -1
- package/dist/components/data/ag-grid-react/headers/header-search-input.js +87 -91
- package/dist/components/data/ag-grid-react/index.d.ts +1 -1
- package/dist/components/data/ag-grid-react/index.js +109 -100
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.d.ts +3 -2
- package/dist/components/data/ag-grid-react/notify-column-indicator-sync.js +4 -3
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.d.ts +3 -0
- package/dist/components/data/ag-grid-react/sync-ag-grid-theme-mode.js +10 -0
- package/dist/components/data/ag-grid-react/theme.d.ts +1 -0
- package/dist/components/data/ag-grid-react/theme.js +93 -21
- package/dist/components/data/data-table/column-indicator.d.ts +1 -1
- package/dist/components/data/data-table/column-indicator.js +15 -11
- package/dist/components/data/data-table/data-table-column-def-pin.d.ts +9 -4
- package/dist/components/data/data-table/data-table-column-def-pin.js +38 -38
- package/dist/components/data/data-table/data-table-saved-views.js +37 -37
- package/dist/components/data/data-table/data-table.js +78 -73
- package/dist/components/data/data-table/data-table.types.d.ts +7 -1
- package/dist/components/data/data-table/indicator-legend.d.ts +13 -2
- package/dist/components/data/data-table/indicator-legend.js +20 -17
- package/dist/components/data/data-table/pin-switch.js +9 -9
- package/dist/components/data/data-table/use-data-table-column-list-sync.js +92 -89
- package/dist/components/data/nested-list/nested-list-change-detection.d.ts +11 -0
- package/dist/components/data/nested-list/nested-list-change-detection.js +13 -0
- package/dist/components/data/nested-list/nested-list.js +107 -97
- package/dist/components/data-display/calendar/calendar.d.ts +1 -1
- package/dist/components/data-display/calendar/calendar.js +194 -189
- package/dist/components/data-display/chart/chart-palette.d.ts +16 -0
- package/dist/components/data-display/chart/chart-palette.js +28 -0
- package/dist/components/data-display/chart/chart.js +121 -115
- package/dist/components/data-display/chart/chart.utils.js +9 -6
- package/dist/components/data-display/chart/index.d.ts +1 -0
- package/dist/components/data-display/chart/index.js +15 -9
- package/dist/components/data-display/chart/resolve-highcharts-options.d.ts +3 -0
- package/dist/components/data-display/chart/resolve-highcharts-options.js +35 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.d.ts +6 -0
- package/dist/components/data-display/statistics-card/statistics-card.color.js +19 -0
- package/dist/components/data-display/statistics-card/statistics-card.hooks.js +50 -48
- package/dist/components/data-display/statistics-card/statistics-card.js +127 -146
- package/dist/components/feedback/alert-dialog/alert-dialog.js +15 -15
- package/dist/components/feedback/dialog/dialog.js +3 -3
- package/dist/components/feedback/drawer/drawer.js +32 -32
- package/dist/components/feedback/sheet/sheet.js +8 -8
- package/dist/components/feedback/sheet/sheet.variants.js +1 -1
- package/dist/components/feedback/toast/toast.js +83 -92
- package/dist/components/flows/command-palette/command-palette-context.types.d.ts +5 -0
- package/dist/components/flows/command-palette/command-palette.d.ts +4 -16
- package/dist/components/flows/command-palette/command-palette.js +245 -258
- package/dist/components/flows/command-palette/command-palette.types.d.ts +9 -0
- package/dist/components/flows/command-palette/shortcut-overlay.js +6 -6
- package/dist/components/flows/filter-panel/filter-panel.d.ts +3 -2
- package/dist/components/flows/filter-panel/filter-panel.js +99 -104
- package/dist/components/flows/filter-strip/filter-summary.js +41 -41
- package/dist/components/flows/filter-strip/filter-tag-list.js +48 -48
- package/dist/components/flows/wizard/wizard.js +32 -32
- package/dist/components/forms/choice-card/choice-card.d.ts +2 -2
- package/dist/components/forms/choice-card/choice-card.js +156 -166
- package/dist/components/forms/combobox/combobox.js +70 -70
- package/dist/components/forms/date-picker/date-picker.js +31 -30
- package/dist/components/forms/file-upload/file-upload.js +146 -168
- package/dist/components/forms/prompt/prompt.js +47 -48
- package/dist/components/forms/select/components/SelectAllRow.js +14 -14
- package/dist/components/forms/select/components/SelectMenuFooter.js +12 -12
- package/dist/components/forms/select/components/SelectMenuHeader.js +44 -44
- package/dist/components/forms/select/components/SelectMenuListBody.js +22 -22
- package/dist/components/forms/select/components/SelectMenuPanel.js +8 -8
- package/dist/components/forms/select/components/SelectOptionRow.js +62 -62
- package/dist/components/forms/select/select.d.ts +5 -4
- package/dist/components/forms/select/select.js +123 -120
- package/dist/components/forms/select/select.types.d.ts +95 -204
- package/dist/components/forms/slider/slider.js +17 -17
- package/dist/components/forms/smart-input/smart-input.js +49 -49
- package/dist/components/forms/textarea/textarea.js +25 -25
- package/dist/components/layout/breadcrumb/breadcrumb.js +112 -118
- package/dist/components/layout/header/header.d.ts +5 -17
- package/dist/components/layout/header/header.js +113 -116
- package/dist/components/layout/header/header.types.d.ts +3 -0
- package/dist/components/layout/sidebar/sidebar.js +5 -5
- package/dist/components/layout/sidebar/sidebar.variants.js +1 -1
- package/dist/components/primitives/accordion/accordion.js +38 -41
- package/dist/components/primitives/kbd/kbd.variants.js +1 -1
- package/dist/i18n/defaultMessages.d.ts +2 -0
- package/dist/i18n/defaultMessages.js +6 -4
- package/dist/i18n/locales/de.js +2 -0
- package/dist/i18n/locales/es.js +2 -0
- package/dist/i18n/locales/hi.js +2 -0
- package/dist/i18n/locales/kn.js +2 -0
- package/dist/impact-nova-base.scss +8 -5
- package/dist/impact-nova-components.css +2 -2
- package/dist/impact-nova-tokens.scss +346 -189
- package/dist/impact-nova.css +1 -1
- package/dist/index.js +505 -499
- package/dist/lib/resolve-design-token-color.d.ts +5 -0
- package/dist/lib/resolve-design-token-color.js +12 -0
- package/dist/llms/rules/ag-grid.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/tailwind.config.js +297 -0
- package/dist/theme/tailwind-colors.js +199 -0
- package/dist/theme/tokens/chart-series-palette.json.d.ts +53 -0
- package/dist/theme/tokens/chart-series-palette.json.js +7 -0
- package/package.json +32 -259
- package/tailwind.config.js +0 -335
package/tailwind.config.js
DELETED
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
import tailwindcssAnimate from "tailwindcss-animate";
|
|
2
|
-
import tailwindPlugin from "tailwindcss/plugin";
|
|
3
|
-
|
|
4
|
-
const scrollbarUtilities = tailwindPlugin(({ addUtilities }) => {
|
|
5
|
-
addUtilities({
|
|
6
|
-
".scrollbar-hide": {
|
|
7
|
-
"-ms-overflow-style": "none",
|
|
8
|
-
"scrollbar-width": "none",
|
|
9
|
-
},
|
|
10
|
-
".scrollbar-hide::-webkit-scrollbar": {
|
|
11
|
-
display: "none",
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
/** Semantic color token from `index.scss` (hex value inside the variable). */
|
|
17
|
-
const cssVar = (name) => `var(${name})`;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Semantic color roles (maps to --color-* in index.scss).
|
|
21
|
-
* Naming: canvas / content / brand / stroke / field / focus / feedback / navigation / domain
|
|
22
|
-
* matches common design-system layers (surface, typography, brand, borders, forms, status, shell).
|
|
23
|
-
*/
|
|
24
|
-
const baseConfig = {
|
|
25
|
-
darkMode: ["class"],
|
|
26
|
-
content: [
|
|
27
|
-
"./index.html",
|
|
28
|
-
"./src/**/*.{js,ts,jsx,tsx}",
|
|
29
|
-
"./src/components/ui/**/*.{js,ts,jsx,tsx}",
|
|
30
|
-
"./src/components/ui/stories/**/*.{js,ts,jsx,tsx}",
|
|
31
|
-
"./.storybook/**/*.{js,ts,jsx,tsx,mdx}",
|
|
32
|
-
],
|
|
33
|
-
theme: {
|
|
34
|
-
extend: {
|
|
35
|
-
fontFamily: {
|
|
36
|
-
sans: ["Manrope", "sans-serif"],
|
|
37
|
-
},
|
|
38
|
-
borderRadius: {
|
|
39
|
-
lg: "calc(var(--radius) + 4px)",
|
|
40
|
-
md: "var(--radius)",
|
|
41
|
-
sm: "calc(var(--radius) - 4px)",
|
|
42
|
-
},
|
|
43
|
-
boxShadow: {
|
|
44
|
-
"elevation-floating": "0px 0px 4px 0px rgb(0 0 0 / 12%)",
|
|
45
|
-
"elevation-select": "0px 1px 6px 0px rgb(26 39 124 / 14%)",
|
|
46
|
-
"elevation-header": "0px 0px 16px 2px rgb(0 0 0 / 6%)",
|
|
47
|
-
"elevation-card": "0px 2px 8px 0px rgb(0 0 0 / 5%)",
|
|
48
|
-
"elevation-toast": "0px 10px 30px 0px rgb(0 0 0 / 15%)",
|
|
49
|
-
"elevation-dialog-footer": "0 -4px 6px -1px rgb(0 0 0 / 5%)",
|
|
50
|
-
"elevation-settings": "0px 0px 2px 0px rgb(0 0 0 / 25%)",
|
|
51
|
-
"elevation-pin-switch": "1px 1px 7px 5px rgb(0 0 0 / 6%)",
|
|
52
|
-
"alert-elevated": "var(--shadow-alert-elevated)",
|
|
53
|
-
},
|
|
54
|
-
colors: {
|
|
55
|
-
/* Legacy alias — prefer `canvas` (charter R15) */
|
|
56
|
-
background: {
|
|
57
|
-
DEFAULT: cssVar("--color-background"),
|
|
58
|
-
foreground: cssVar("--color-foreground"),
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
/* Page & elevation */
|
|
62
|
-
canvas: {
|
|
63
|
-
DEFAULT: cssVar("--color-background"),
|
|
64
|
-
elevated: {
|
|
65
|
-
DEFAULT: cssVar("--color-surface-elevated"),
|
|
66
|
-
foreground: cssVar("--color-surface-elevated-foreground"),
|
|
67
|
-
},
|
|
68
|
-
overlay: {
|
|
69
|
-
DEFAULT: cssVar("--color-surface-floating"),
|
|
70
|
-
foreground: cssVar("--color-surface-floating-foreground"),
|
|
71
|
-
},
|
|
72
|
-
muted: cssVar("--color-surface-muted"),
|
|
73
|
-
wash: cssVar("--color-surface-canvas"),
|
|
74
|
-
disabled: cssVar("--color-surface-input-disabled"),
|
|
75
|
-
readonly: cssVar("--color-surface-readonly"),
|
|
76
|
-
accent: cssVar("--color-surface-selection-tint"),
|
|
77
|
-
subtle: cssVar("--color-surface-subtle"),
|
|
78
|
-
tint: cssVar("--color-surface-tint-blue"),
|
|
79
|
-
accordion: cssVar("--color-surface-accordion"),
|
|
80
|
-
},
|
|
81
|
-
|
|
82
|
-
/* Typography & neutral text */
|
|
83
|
-
content: {
|
|
84
|
-
DEFAULT: cssVar("--color-foreground"),
|
|
85
|
-
secondary: cssVar("--color-foreground-secondary"),
|
|
86
|
-
tertiary: cssVar("--color-foreground-tertiary"),
|
|
87
|
-
placeholder: cssVar("--color-foreground-placeholder"),
|
|
88
|
-
empty: cssVar("--color-foreground-empty"),
|
|
89
|
-
muted: cssVar("--color-muted-foreground"),
|
|
90
|
-
icon: cssVar("--color-foreground-icon"),
|
|
91
|
-
"header-notification": cssVar("--color-header-notification-icon"),
|
|
92
|
-
charcoal: cssVar("--color-neutral-charcoal"),
|
|
93
|
-
badge: cssVar("--color-neutral-badge"),
|
|
94
|
-
heading: cssVar("--color-header-notification-icon"),
|
|
95
|
-
subheading: cssVar("--color-secondary"),
|
|
96
|
-
},
|
|
97
|
-
|
|
98
|
-
/* Brand / primary interactive */
|
|
99
|
-
brand: {
|
|
100
|
-
DEFAULT: cssVar("--color-primary"),
|
|
101
|
-
foreground: cssVar("--color-primary-foreground"),
|
|
102
|
-
strong: cssVar("--color-primary-strong"),
|
|
103
|
-
hover: cssVar("--color-primary-hover"),
|
|
104
|
-
subtle: cssVar("--color-primary-surface-subtle"),
|
|
105
|
-
"on-subtle": cssVar("--color-primary-on-surface-subtle"),
|
|
106
|
-
highlight: cssVar("--color-primary-selection"),
|
|
107
|
-
/* Soft brand fill — IA DS #ECEEFD; same hex as --color-accent */
|
|
108
|
-
tint: cssVar("--color-primary-soft"),
|
|
109
|
-
"tint-hover": cssVar("--color-primary-soft-hover"),
|
|
110
|
-
variant: cssVar("--color-primary-variant"),
|
|
111
|
-
"variant-hover": cssVar("--color-primary-variant-hover"),
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
/* Secondary & accent (interaction surfaces) */
|
|
115
|
-
secondary: {
|
|
116
|
-
DEFAULT: cssVar("--color-secondary"),
|
|
117
|
-
foreground: cssVar("--color-secondary-foreground"),
|
|
118
|
-
"hover-foreground": cssVar("--color-secondary-hover-foreground"),
|
|
119
|
-
},
|
|
120
|
-
accent: {
|
|
121
|
-
DEFAULT: cssVar("--color-accent"),
|
|
122
|
-
foreground: cssVar("--color-accent-foreground"),
|
|
123
|
-
},
|
|
124
|
-
muted: {
|
|
125
|
-
DEFAULT: cssVar("--color-muted"),
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
/* Borders & dividers */
|
|
129
|
-
stroke: {
|
|
130
|
-
DEFAULT: cssVar("--color-border"),
|
|
131
|
-
subtle: cssVar("--color-border-subtle"),
|
|
132
|
-
hairline: cssVar("--color-border-hairline"),
|
|
133
|
-
strong: cssVar("--color-border-strong"),
|
|
134
|
-
accent: cssVar("--color-border-accent-muted"),
|
|
135
|
-
track: cssVar("--color-track-muted"),
|
|
136
|
-
field: cssVar("--color-border-tertiary"),
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
/* Form control chrome */
|
|
140
|
-
field: {
|
|
141
|
-
border: cssVar("--color-input"),
|
|
142
|
-
},
|
|
143
|
-
focus: {
|
|
144
|
-
ring: cssVar("--color-ring"),
|
|
145
|
-
},
|
|
146
|
-
disabled: {
|
|
147
|
-
border: cssVar("--color-disabled-border"),
|
|
148
|
-
surface: cssVar("--color-disabled-surface"),
|
|
149
|
-
foreground: cssVar("--color-disabled-foreground"),
|
|
150
|
-
},
|
|
151
|
-
validation: {
|
|
152
|
-
DEFAULT: cssVar("--color-danger-validation"),
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
/* Semantic status */
|
|
156
|
-
destructive: {
|
|
157
|
-
DEFAULT: cssVar("--color-destructive"),
|
|
158
|
-
foreground: cssVar("--color-destructive-foreground"),
|
|
159
|
-
hover: cssVar("--color-destructive-hover"),
|
|
160
|
-
},
|
|
161
|
-
success: {
|
|
162
|
-
DEFAULT: cssVar("--color-success"),
|
|
163
|
-
foreground: cssVar("--color-success-foreground"),
|
|
164
|
-
},
|
|
165
|
-
warning: cssVar("--color-warning"),
|
|
166
|
-
danger: cssVar("--color-danger-bright"),
|
|
167
|
-
|
|
168
|
-
/* Alert / inline feedback surfaces */
|
|
169
|
-
/* Badge pills — IA v3.1 */
|
|
170
|
-
button: {
|
|
171
|
-
"primary-disabled": cssVar("--color-button-primary-disabled"),
|
|
172
|
-
},
|
|
173
|
-
|
|
174
|
-
badge: {
|
|
175
|
-
neutral: {
|
|
176
|
-
muted: cssVar("--color-badge-neutral-muted"),
|
|
177
|
-
},
|
|
178
|
-
info: {
|
|
179
|
-
filled: cssVar("--color-badge-info-filled"),
|
|
180
|
-
muted: cssVar("--color-badge-info-muted"),
|
|
181
|
-
},
|
|
182
|
-
warning: {
|
|
183
|
-
filled: cssVar("--color-badge-warning-filled"),
|
|
184
|
-
muted: cssVar("--color-badge-warning-muted"),
|
|
185
|
-
ink: cssVar("--color-badge-warning-text"),
|
|
186
|
-
},
|
|
187
|
-
error: {
|
|
188
|
-
filled: cssVar("--color-badge-error-filled"),
|
|
189
|
-
muted: cssVar("--color-badge-error-muted"),
|
|
190
|
-
ink: cssVar("--color-badge-error-text"),
|
|
191
|
-
},
|
|
192
|
-
success: {
|
|
193
|
-
filled: cssVar("--color-badge-success-filled"),
|
|
194
|
-
muted: cssVar("--color-badge-success-muted"),
|
|
195
|
-
ink: cssVar("--color-badge-success-text"),
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
feedback: {
|
|
200
|
-
info: {
|
|
201
|
-
surface: cssVar("--color-info-surface"),
|
|
202
|
-
border: cssVar("--color-info-border"),
|
|
203
|
-
},
|
|
204
|
-
warning: {
|
|
205
|
-
surface: cssVar("--color-warning-surface"),
|
|
206
|
-
border: cssVar("--color-warning-border"),
|
|
207
|
-
},
|
|
208
|
-
error: {
|
|
209
|
-
surface: cssVar("--color-error-surface"),
|
|
210
|
-
border: cssVar("--color-error-border"),
|
|
211
|
-
},
|
|
212
|
-
success: {
|
|
213
|
-
surface: cssVar("--color-success-surface"),
|
|
214
|
-
border: cssVar("--color-success-border"),
|
|
215
|
-
},
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
/* Data visualization */
|
|
219
|
-
chart: {
|
|
220
|
-
1: cssVar("--color-chart-1"),
|
|
221
|
-
2: cssVar("--color-chart-2"),
|
|
222
|
-
3: cssVar("--color-chart-3"),
|
|
223
|
-
4: cssVar("--color-chart-4"),
|
|
224
|
-
5: cssVar("--color-chart-5"),
|
|
225
|
-
},
|
|
226
|
-
domain: {
|
|
227
|
-
cohort: cssVar("--color-data-cohort"),
|
|
228
|
-
},
|
|
229
|
-
|
|
230
|
-
/* Column indicators (sort/filter badges) */
|
|
231
|
-
indicator: {
|
|
232
|
-
sort: cssVar("--color-indicator-sort"),
|
|
233
|
-
filter: cssVar("--color-indicator-filter"),
|
|
234
|
-
},
|
|
235
|
-
|
|
236
|
-
/* Pin switch control */
|
|
237
|
-
pinSwitch: {
|
|
238
|
-
"label-active": cssVar("--color-pin-switch-label-active"),
|
|
239
|
-
"label-inactive": cssVar("--color-pin-switch-label-inactive"),
|
|
240
|
-
"track-bg": cssVar("--color-pin-switch-track-bg"),
|
|
241
|
-
"track-border": cssVar("--color-pin-switch-track-border"),
|
|
242
|
-
"track-hover": cssVar("--color-pin-switch-track-hover"),
|
|
243
|
-
},
|
|
244
|
-
|
|
245
|
-
/* Application navigation shell */
|
|
246
|
-
/* Modal / overlay backdrop (IA: neutral scrim) */
|
|
247
|
-
scrim: "hsl(0 0% 0% / 0.4)",
|
|
248
|
-
"scrim-deep": "hsl(0 0% 0% / 0.8)",
|
|
249
|
-
|
|
250
|
-
navigation: {
|
|
251
|
-
DEFAULT: cssVar("--color-sidebar-background"),
|
|
252
|
-
foreground: cssVar("--color-sidebar-foreground"),
|
|
253
|
-
surface: cssVar("--color-sidebar-surface"),
|
|
254
|
-
"on-surface": cssVar("--color-sidebar-on-surface"),
|
|
255
|
-
hover: cssVar("--color-sidebar-hover"),
|
|
256
|
-
"on-hover": cssVar("--color-sidebar-on-hover"),
|
|
257
|
-
border: cssVar("--color-sidebar-border"),
|
|
258
|
-
ring: cssVar("--color-sidebar-ring"),
|
|
259
|
-
indicator: cssVar("--color-sidebar-indicator"),
|
|
260
|
-
"item-hover": cssVar("--color-sidebar-item-hover"),
|
|
261
|
-
"item-active": cssVar("--color-sidebar-item-active"),
|
|
262
|
-
muted: cssVar("--color-sidebar-foreground-muted"),
|
|
263
|
-
canvas: cssVar("--color-sidebar-canvas"),
|
|
264
|
-
},
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
keyframes: {
|
|
268
|
-
"accordion-down": {
|
|
269
|
-
from: { height: "0" },
|
|
270
|
-
to: { height: "var(--radix-accordion-content-height)" },
|
|
271
|
-
},
|
|
272
|
-
"accordion-up": {
|
|
273
|
-
from: { height: "var(--radix-accordion-content-height)" },
|
|
274
|
-
to: { height: "0" },
|
|
275
|
-
},
|
|
276
|
-
"collapsible-down": {
|
|
277
|
-
from: { height: "0" },
|
|
278
|
-
to: { height: "var(--radix-collapsible-content-height)" },
|
|
279
|
-
},
|
|
280
|
-
"collapsible-up": {
|
|
281
|
-
from: { height: "var(--radix-collapsible-content-height)" },
|
|
282
|
-
to: { height: "0" },
|
|
283
|
-
},
|
|
284
|
-
"header-bot-gradient": {
|
|
285
|
-
"0%": { backgroundPosition: "0% 50%" },
|
|
286
|
-
"50%": { backgroundPosition: "100% 50%" },
|
|
287
|
-
"100%": { backgroundPosition: "0% 50%" },
|
|
288
|
-
},
|
|
289
|
-
"notification-waves": {
|
|
290
|
-
"0%": { width: "8px", height: "8px" },
|
|
291
|
-
"100%": { width: "16px", height: "16px" },
|
|
292
|
-
},
|
|
293
|
-
},
|
|
294
|
-
animation: {
|
|
295
|
-
"accordion-down": "accordion-down 0.2s ease-out",
|
|
296
|
-
"accordion-up": "accordion-up 0.2s ease-out",
|
|
297
|
-
"collapsible-down": "collapsible-down 0.2s ease-out",
|
|
298
|
-
"collapsible-up": "collapsible-up 0.2s ease-out",
|
|
299
|
-
"header-bot-gradient": "header-bot-gradient 5s ease infinite",
|
|
300
|
-
"header-bot-gradient-fast": "header-bot-gradient 2s ease infinite",
|
|
301
|
-
"notification-waves": "notification-waves 1.5s ease-out infinite",
|
|
302
|
-
},
|
|
303
|
-
},
|
|
304
|
-
},
|
|
305
|
-
plugins: [tailwindcssAnimate, scrollbarUtilities],
|
|
306
|
-
};
|
|
307
|
-
|
|
308
|
-
/** @type {import('tailwindcss').Config} */
|
|
309
|
-
export default baseConfig;
|
|
310
|
-
|
|
311
|
-
/**
|
|
312
|
-
* Creates a Tailwind config with custom content paths.
|
|
313
|
-
*
|
|
314
|
-
* @param {string[]} contentPaths - Array of content paths for your project
|
|
315
|
-
* @returns {import('tailwindcss').Config}
|
|
316
|
-
*
|
|
317
|
-
* @example
|
|
318
|
-
* import { createTailwindConfig } from "impact-nova/tailwind.config";
|
|
319
|
-
* export default createTailwindConfig(["./index.html", "./src"]);
|
|
320
|
-
*/
|
|
321
|
-
export function createTailwindConfig(contentPaths) {
|
|
322
|
-
return {
|
|
323
|
-
...baseConfig,
|
|
324
|
-
content: contentPaths,
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
/**
|
|
329
|
-
* Tailwind config for apps consuming impact-nova via file: / npm link.
|
|
330
|
-
* Single utility pipeline: scan app + impact-nova source (no duplicate impact-nova.css utilities).
|
|
331
|
-
*/
|
|
332
|
-
export function createAppTailwindConfig(appRootDir, appContentPaths) {
|
|
333
|
-
const impactNovaSourceGlob = `${appRootDir.replace(/\\/g, "/")}/../impact-nova/src/**/*.{js,ts,jsx,tsx}`;
|
|
334
|
-
return createTailwindConfig([...appContentPaths, impactNovaSourceGlob]);
|
|
335
|
-
}
|