@vaneui/ui 0.2.2-alpha.20250907183237.5f63365 → 0.2.2-alpha.20250913214402.427a7ea
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/README.md +2 -2
- package/dist/index.esm.js +1007 -410
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1169 -409
- package/dist/index.js.map +1 -1
- package/dist/src/components/tests/grid5.test.d.ts +1 -0
- package/dist/src/components/tests/grid6.test.d.ts +1 -0
- package/dist/src/components/tests/input.test.d.ts +1 -0
- package/dist/src/components/tests/transparent-key-behavior.test.d.ts +1 -0
- package/dist/src/components/themeContext.d.ts +11 -1
- package/dist/src/components/ui/card.d.ts +126 -2
- package/dist/src/components/ui/checkbox.d.ts +2 -0
- package/dist/src/components/ui/classes/appearanceClasses.d.ts +20 -18
- package/dist/src/components/ui/classes/typographyClasses.d.ts +3 -3
- package/dist/src/components/ui/code.d.ts +2 -0
- package/dist/src/components/ui/col.d.ts +93 -2
- package/dist/src/components/ui/container.d.ts +93 -2
- package/dist/src/components/ui/grid.d.ts +420 -4
- package/dist/src/components/ui/img.d.ts +2 -0
- package/dist/src/components/ui/input.d.ts +123 -0
- package/dist/src/components/ui/layout.d.ts +1 -1
- package/dist/src/components/ui/props/appearance.d.ts +22 -0
- package/dist/src/components/ui/props/border.d.ts +6 -0
- package/dist/src/components/ui/props/breakpoint.d.ts +12 -0
- package/dist/src/components/ui/props/display.d.ts +24 -0
- package/dist/src/components/ui/props/flexDirection.d.ts +10 -0
- package/dist/src/components/ui/props/focusVisible.d.ts +6 -0
- package/dist/src/components/ui/props/fontFamily.d.ts +8 -0
- package/dist/src/components/ui/props/fontStyle.d.ts +6 -0
- package/dist/src/components/ui/props/fontWeight.d.ts +20 -0
- package/dist/src/components/ui/props/gap.d.ts +6 -0
- package/dist/src/components/ui/props/hide.d.ts +12 -0
- package/dist/src/components/ui/props/items.d.ts +12 -0
- package/dist/src/components/ui/props/justify.d.ts +18 -0
- package/dist/src/components/ui/props/keys.d.ts +143 -16
- package/dist/src/components/ui/props/listStyle.d.ts +6 -0
- package/dist/src/components/ui/props/mode.d.ts +21 -0
- package/dist/src/components/ui/props/overflow.d.ts +32 -0
- package/dist/src/components/ui/props/padding.d.ts +6 -0
- package/dist/src/components/ui/props/position.d.ts +12 -0
- package/dist/src/components/ui/props/props.d.ts +25 -8
- package/dist/src/components/ui/props/reverse.d.ts +4 -0
- package/dist/src/components/ui/props/ring.d.ts +6 -0
- package/dist/src/components/ui/props/shadow.d.ts +6 -0
- package/dist/src/components/ui/props/shape.d.ts +8 -0
- package/dist/src/components/ui/props/size.d.ts +12 -0
- package/dist/src/components/ui/props/textAlign.d.ts +10 -0
- package/dist/src/components/ui/props/textDecoration.d.ts +10 -0
- package/dist/src/components/ui/props/textTransform.d.ts +10 -0
- package/dist/src/components/ui/props/transparent.d.ts +4 -0
- package/dist/src/components/ui/props/variant.d.ts +6 -0
- package/dist/src/components/ui/props/wrap.d.ts +8 -0
- package/dist/src/components/ui/row.d.ts +98 -2
- package/dist/src/components/ui/section.d.ts +100 -2
- package/dist/src/components/ui/stack.d.ts +100 -2
- package/dist/src/components/ui/theme/appearance/appearanceTheme.d.ts +3 -2
- package/dist/src/components/ui/theme/appearance/genericVariantTheme.d.ts +5 -0
- package/dist/src/components/ui/theme/appearance/shadowAppearanceTheme.d.ts +5 -5
- package/dist/src/components/ui/theme/badgeTheme.d.ts +3 -0
- package/dist/src/components/ui/theme/buttonTheme.d.ts +3 -0
- package/dist/src/components/ui/theme/checkboxTheme.d.ts +11 -2
- package/dist/src/components/ui/theme/chipTheme.d.ts +3 -0
- package/dist/src/components/ui/theme/codeTheme.d.ts +3 -0
- package/dist/src/components/ui/theme/common/ComponentTheme.d.ts +3 -3
- package/dist/src/components/ui/theme/gridTheme.d.ts +2 -0
- package/dist/src/components/ui/theme/imgTheme.d.ts +4 -0
- package/dist/src/components/ui/theme/inputTheme.d.ts +40 -0
- package/dist/src/components/ui/theme/layout/borderTheme.d.ts +2 -0
- package/dist/src/components/ui/theme/layout/focusVisibleTheme.d.ts +11 -0
- package/dist/src/components/ui/theme/layout/ringTheme.d.ts +2 -0
- package/dist/src/index.d.ts +2 -1
- package/dist/ui.css +690 -566
- package/dist/vars.css +134 -134
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,16 +11,382 @@ var react = require('react');
|
|
|
11
11
|
class BaseTheme {
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
/** Default neutral appearance - uses default color variables */
|
|
15
|
+
const DEFAULT = 'default';
|
|
16
|
+
/** Accent appearance - uses accent/rose color variables for brand secondary styling */
|
|
17
|
+
const ACCENT = 'accent';
|
|
18
|
+
/** Primary appearance - uses primary/blue color variables for main brand styling */
|
|
19
|
+
const PRIMARY = 'primary';
|
|
20
|
+
/** Secondary appearance - uses secondary/gray color variables for muted styling */
|
|
21
|
+
const SECONDARY = 'secondary';
|
|
22
|
+
/** Tertiary appearance - uses tertiary/gray color variables for subtle styling */
|
|
23
|
+
const TERTIARY = 'tertiary';
|
|
24
|
+
/** Success appearance - uses success/emerald color variables for positive states */
|
|
25
|
+
const SUCCESS = 'success';
|
|
26
|
+
/** Danger appearance - uses danger/red color variables for error/destructive states */
|
|
27
|
+
const DANGER = 'danger';
|
|
28
|
+
/** Warning appearance - uses warning/amber color variables for caution states */
|
|
29
|
+
const WARNING = 'warning';
|
|
30
|
+
/** Info appearance - uses info/cyan color variables for informational states */
|
|
31
|
+
const INFO = 'info';
|
|
32
|
+
/** Link appearance - uses link/blue color variables for hyperlinks and navigation */
|
|
33
|
+
const LINK = 'link';
|
|
34
|
+
/** All appearance property values */
|
|
35
|
+
const APPEARANCE_VALUES = [DEFAULT, ACCENT, PRIMARY, SECONDARY, TERTIARY, SUCCESS, DANGER, WARNING, INFO, LINK];
|
|
36
|
+
|
|
37
|
+
/** Show border - adds appearance-based border styling */
|
|
38
|
+
const BORDER = 'border';
|
|
39
|
+
/** Hide border - removes border styling (overrides appearance colors) */
|
|
40
|
+
const NO_BORDER = 'noBorder';
|
|
41
|
+
/** All border property values */
|
|
42
|
+
const BORDER_VALUES = [BORDER, NO_BORDER];
|
|
43
|
+
|
|
44
|
+
/** Extra-small column breakpoint - responsive grid column sizing for xs screens */
|
|
45
|
+
const XS_COL = 'xsCol';
|
|
46
|
+
/** Small column breakpoint - responsive grid column sizing for sm screens */
|
|
47
|
+
const SM_COL = 'smCol';
|
|
48
|
+
/** Medium column breakpoint - responsive grid column sizing for md screens */
|
|
49
|
+
const MD_COL = 'mdCol';
|
|
50
|
+
/** Large column breakpoint - responsive grid column sizing for lg screens */
|
|
51
|
+
const LG_COL = 'lgCol';
|
|
52
|
+
/** Extra-large column breakpoint - responsive grid column sizing for xl screens */
|
|
53
|
+
const XL_COL = 'xlCol';
|
|
54
|
+
/** All breakpoint property values */
|
|
55
|
+
const BREAKPOINT_VALUES = [XS_COL, SM_COL, MD_COL, LG_COL, XL_COL];
|
|
56
|
+
|
|
57
|
+
/** Inline display - flows with text */
|
|
58
|
+
const INLINE = 'inline';
|
|
59
|
+
/** Block display - takes full width, new line */
|
|
60
|
+
const BLOCK = 'block';
|
|
61
|
+
/** Inline-block display - inline but with block properties */
|
|
62
|
+
const INLINE_BLOCK = 'inlineBlock';
|
|
63
|
+
/** Flex display - flexbox container */
|
|
64
|
+
const FLEX = 'flex';
|
|
65
|
+
/** Inline-flex display - inline flexbox container */
|
|
66
|
+
const INLINE_FLEX = 'inlineFlex';
|
|
67
|
+
/** Grid display - CSS grid container */
|
|
68
|
+
const GRID = 'grid';
|
|
69
|
+
/** Inline-grid display - inline grid container */
|
|
70
|
+
const INLINE_GRID = 'inlineGrid';
|
|
71
|
+
/** Contents display - element's box is removed, children display as if parent didn't exist */
|
|
72
|
+
const CONTENTS = 'contents';
|
|
73
|
+
/** Table display - behaves like table element */
|
|
74
|
+
const TABLE = 'table';
|
|
75
|
+
/** Table-cell display - behaves like td element */
|
|
76
|
+
const TABLE_CELL = 'tableCell';
|
|
77
|
+
/** Hidden display - element is not visible */
|
|
78
|
+
const HIDDEN = 'hidden';
|
|
79
|
+
/** All display property values */
|
|
80
|
+
const DISPLAY_VALUES = [INLINE, BLOCK, INLINE_BLOCK, FLEX, INLINE_FLEX, GRID, INLINE_GRID, CONTENTS, TABLE, TABLE_CELL, HIDDEN];
|
|
81
|
+
|
|
82
|
+
/** Horizontal flex direction (left to right) */
|
|
83
|
+
const ROW = 'row';
|
|
84
|
+
/** Vertical flex direction (top to bottom) */
|
|
85
|
+
const COLUMN = 'column';
|
|
86
|
+
/** Horizontal flex direction reversed (right to left) */
|
|
87
|
+
const ROW_REVERSE = 'rowReverse';
|
|
88
|
+
/** Vertical flex direction reversed (bottom to top) */
|
|
89
|
+
const COLUMN_REVERSE = 'columnReverse';
|
|
90
|
+
/** All flex direction property values */
|
|
91
|
+
const FLEX_DIRECTION_VALUES = [ROW, COLUMN, ROW_REVERSE, COLUMN_REVERSE];
|
|
92
|
+
|
|
93
|
+
/** Sans-serif font family - clean, modern typeface without serifs */
|
|
94
|
+
const SANS = 'sans';
|
|
95
|
+
/** Serif font family - traditional typeface with small decorative strokes */
|
|
96
|
+
const SERIF = 'serif';
|
|
97
|
+
/** Monospace font family - fixed-width typeface for code and data */
|
|
98
|
+
const MONO = 'mono';
|
|
99
|
+
/** All font family property values */
|
|
100
|
+
const FONT_FAMILY_VALUES = [SANS, SERIF, MONO];
|
|
101
|
+
|
|
102
|
+
/** Italic font style - slanted text styling */
|
|
103
|
+
const ITALIC = 'italic';
|
|
104
|
+
/** Normal font style - upright text styling (not italic) */
|
|
105
|
+
const NOT_ITALIC = 'notItalic';
|
|
106
|
+
/** All font style property values */
|
|
107
|
+
const FONT_STYLE_VALUES = [ITALIC, NOT_ITALIC];
|
|
108
|
+
|
|
109
|
+
/** Thin font weight - CSS font-weight: 100 */
|
|
110
|
+
const THIN = 'thin';
|
|
111
|
+
/** Extra light font weight - CSS font-weight: 200 */
|
|
112
|
+
const EXTRALIGHT = 'extralight';
|
|
113
|
+
/** Light font weight - CSS font-weight: 300 */
|
|
114
|
+
const LIGHT = 'light';
|
|
115
|
+
/** Normal font weight - CSS font-weight: 400 (default) */
|
|
116
|
+
const NORMAL = 'normal';
|
|
117
|
+
/** Medium font weight - CSS font-weight: 500 */
|
|
118
|
+
const MEDIUM = 'medium';
|
|
119
|
+
/** Semibold font weight - CSS font-weight: 600 */
|
|
120
|
+
const SEMIBOLD = 'semibold';
|
|
121
|
+
/** Bold font weight - CSS font-weight: 700 */
|
|
122
|
+
const BOLD = 'bold';
|
|
123
|
+
/** Extra bold font weight - CSS font-weight: 800 */
|
|
124
|
+
const EXTRABOLD = 'extrabold';
|
|
125
|
+
/** Black font weight - CSS font-weight: 900 (heaviest) */
|
|
126
|
+
const BLACK = 'black';
|
|
127
|
+
/** All font weight property values */
|
|
128
|
+
const FONT_WEIGHT_VALUES = [THIN, EXTRALIGHT, LIGHT, NORMAL, MEDIUM, SEMIBOLD, BOLD, EXTRABOLD, BLACK];
|
|
129
|
+
|
|
130
|
+
/** Enable spacing between flex/grid items - uses size-responsive gap values */
|
|
131
|
+
const GAP = 'gap';
|
|
132
|
+
/** Disable spacing between flex/grid items - no gap applied */
|
|
133
|
+
const NO_GAP = 'noGap';
|
|
134
|
+
/** All gap property values */
|
|
135
|
+
const GAP_VALUES = [GAP, NO_GAP];
|
|
136
|
+
|
|
137
|
+
/** Hide element on extra-small screens and up - visible only on mobile */
|
|
138
|
+
const XS_HIDE = 'xsHide';
|
|
139
|
+
/** Hide element on small screens and up - visible only on extra-small mobile */
|
|
140
|
+
const SM_HIDE = 'smHide';
|
|
141
|
+
/** Hide element on medium screens and up - visible only on small screens and below */
|
|
142
|
+
const MD_HIDE = 'mdHide';
|
|
143
|
+
/** Hide element on large screens and up - visible only on medium screens and below */
|
|
144
|
+
const LG_HIDE = 'lgHide';
|
|
145
|
+
/** Hide element on extra-large screens and up - visible only on large screens and below */
|
|
146
|
+
const XL_HIDE = 'xlHide';
|
|
147
|
+
/** All hide property values */
|
|
148
|
+
const HIDE_VALUES = [XS_HIDE, SM_HIDE, MD_HIDE, LG_HIDE, XL_HIDE];
|
|
149
|
+
|
|
150
|
+
/** Align items to the start of the cross axis */
|
|
151
|
+
const ITEMS_START = 'itemsStart';
|
|
152
|
+
/** Align items to the end of the cross axis */
|
|
153
|
+
const ITEMS_END = 'itemsEnd';
|
|
154
|
+
/** Center items along the cross axis */
|
|
155
|
+
const ITEMS_CENTER = 'itemsCenter';
|
|
156
|
+
/** Align items along their baseline */
|
|
157
|
+
const ITEMS_BASELINE = 'itemsBaseline';
|
|
158
|
+
/** Stretch items to fill the cross axis */
|
|
159
|
+
const ITEMS_STRETCH = 'itemsStretch';
|
|
160
|
+
/** All items property values */
|
|
161
|
+
const ITEMS_VALUES = [ITEMS_START, ITEMS_END, ITEMS_CENTER, ITEMS_BASELINE, ITEMS_STRETCH];
|
|
162
|
+
|
|
163
|
+
/** Pack items toward the start of the main axis */
|
|
164
|
+
const JUSTIFY_START = 'justifyStart';
|
|
165
|
+
/** Pack items toward the end of the main axis */
|
|
166
|
+
const JUSTIFY_END = 'justifyEnd';
|
|
167
|
+
/** Center items along the main axis */
|
|
168
|
+
const JUSTIFY_CENTER = 'justifyCenter';
|
|
169
|
+
/** Distribute items with space between them */
|
|
170
|
+
const JUSTIFY_BETWEEN = 'justifyBetween';
|
|
171
|
+
/** Distribute items with space around them */
|
|
172
|
+
const JUSTIFY_AROUND = 'justifyAround';
|
|
173
|
+
/** Distribute items with equal space around them */
|
|
174
|
+
const JUSTIFY_EVENLY = 'justifyEvenly';
|
|
175
|
+
/** Stretch items to fill the main axis */
|
|
176
|
+
const JUSTIFY_STRETCH = 'justifyStretch';
|
|
177
|
+
/** Align items along their baseline on main axis */
|
|
178
|
+
const JUSTIFY_BASELINE = 'justifyBaseline';
|
|
179
|
+
/** All justify property values */
|
|
180
|
+
const JUSTIFY_VALUES = [JUSTIFY_START, JUSTIFY_END, JUSTIFY_CENTER, JUSTIFY_BETWEEN, JUSTIFY_AROUND, JUSTIFY_EVENLY, JUSTIFY_STRETCH, JUSTIFY_BASELINE];
|
|
181
|
+
|
|
182
|
+
/** Disc bullet points - circular bullets for list items */
|
|
183
|
+
const DISC = 'disc';
|
|
184
|
+
/** Decimal numbers - numbered list items (1, 2, 3...) */
|
|
185
|
+
const DECIMAL = 'decimal';
|
|
186
|
+
/** All list style property values */
|
|
187
|
+
const LIST_STYLE_VALUES = [DISC, DECIMAL];
|
|
188
|
+
|
|
189
|
+
/** Auto overflow - show scrollbars if needed */
|
|
190
|
+
const OVERFLOW_AUTO = 'overflowAuto';
|
|
191
|
+
/** Hidden overflow - clip content without scrollbars */
|
|
192
|
+
const OVERFLOW_HIDDEN = 'overflowHidden';
|
|
193
|
+
/** Clip overflow - hard clip without scrollbars */
|
|
194
|
+
const OVERFLOW_CLIP = 'overflowClip';
|
|
195
|
+
/** Visible overflow - content extends beyond bounds */
|
|
196
|
+
const OVERFLOW_VISIBLE = 'overflowVisible';
|
|
197
|
+
/** Scroll overflow - always show scrollbars */
|
|
198
|
+
const OVERFLOW_SCROLL = 'overflowScroll';
|
|
199
|
+
/** Auto overflow on X-axis only */
|
|
200
|
+
const OVERFLOW_X_AUTO = 'overflowXAuto';
|
|
201
|
+
/** Auto overflow on Y-axis only */
|
|
202
|
+
const OVERFLOW_Y_AUTO = 'overflowYAuto';
|
|
203
|
+
/** Hidden overflow on X-axis only */
|
|
204
|
+
const OVERFLOW_X_HIDDEN = 'overflowXHidden';
|
|
205
|
+
/** Hidden overflow on Y-axis only */
|
|
206
|
+
const OVERFLOW_Y_HIDDEN = 'overflowYHidden';
|
|
207
|
+
/** Clip overflow on X-axis only */
|
|
208
|
+
const OVERFLOW_X_CLIP = 'overflowXClip';
|
|
209
|
+
/** Clip overflow on Y-axis only */
|
|
210
|
+
const OVERFLOW_Y_CLIP = 'overflowYClip';
|
|
211
|
+
/** Visible overflow on X-axis only */
|
|
212
|
+
const OVERFLOW_X_VISIBLE = 'overflowXVisible';
|
|
213
|
+
/** Visible overflow on Y-axis only */
|
|
214
|
+
const OVERFLOW_Y_VISIBLE = 'overflowYVisible';
|
|
215
|
+
/** Scroll overflow on X-axis only */
|
|
216
|
+
const OVERFLOW_X_SCROLL = 'overflowXScroll';
|
|
217
|
+
/** Scroll overflow on Y-axis only */
|
|
218
|
+
const OVERFLOW_Y_SCROLL = 'overflowYScroll';
|
|
219
|
+
/** All overflow property values */
|
|
220
|
+
const OVERFLOW_VALUES = [
|
|
221
|
+
OVERFLOW_AUTO, OVERFLOW_HIDDEN, OVERFLOW_CLIP, OVERFLOW_VISIBLE, OVERFLOW_SCROLL,
|
|
222
|
+
OVERFLOW_X_AUTO, OVERFLOW_Y_AUTO, OVERFLOW_X_HIDDEN, OVERFLOW_Y_HIDDEN,
|
|
223
|
+
OVERFLOW_X_CLIP, OVERFLOW_Y_CLIP, OVERFLOW_X_VISIBLE, OVERFLOW_Y_VISIBLE,
|
|
224
|
+
OVERFLOW_X_SCROLL, OVERFLOW_Y_SCROLL
|
|
225
|
+
];
|
|
226
|
+
|
|
227
|
+
/** Enable internal padding - uses size-responsive padding values */
|
|
228
|
+
const PADDING$1 = 'padding';
|
|
229
|
+
/** Disable internal padding - no padding applied */
|
|
230
|
+
const NO_PADDING = 'noPadding';
|
|
231
|
+
/** All padding property values */
|
|
232
|
+
const PADDING_VALUES = [PADDING$1, NO_PADDING];
|
|
233
|
+
|
|
234
|
+
/** Relative positioning - offset from normal position */
|
|
235
|
+
const RELATIVE = 'relative';
|
|
236
|
+
/** Absolute positioning - removed from normal flow */
|
|
237
|
+
const ABSOLUTE = 'absolute';
|
|
238
|
+
/** Fixed positioning - positioned relative to viewport */
|
|
239
|
+
const FIXED = 'fixed';
|
|
240
|
+
/** Sticky positioning - toggles between relative and fixed */
|
|
241
|
+
const STICKY = 'sticky';
|
|
242
|
+
/** Static positioning - normal document flow (default) */
|
|
243
|
+
const STATIC = 'static';
|
|
244
|
+
/** All position property values */
|
|
245
|
+
const POSITION_VALUES = [RELATIVE, ABSOLUTE, FIXED, STICKY, STATIC];
|
|
246
|
+
|
|
247
|
+
/** Reverse flex direction - converts row to row-reverse or column to column-reverse */
|
|
248
|
+
const REVERSE = 'reverse';
|
|
249
|
+
/** All reverse property values */
|
|
250
|
+
const REVERSE_VALUES = [REVERSE];
|
|
251
|
+
|
|
252
|
+
/** Show ring - adds decorative ring/outline border around element */
|
|
253
|
+
const RING = 'ring';
|
|
254
|
+
/** Hide ring - removes ring/outline border styling */
|
|
255
|
+
const NO_RING = 'noRing';
|
|
256
|
+
/** All ring property values */
|
|
257
|
+
const RING_VALUES = [RING, NO_RING];
|
|
258
|
+
|
|
259
|
+
/** Enable drop shadow - adds size-responsive shadow styling */
|
|
260
|
+
const SHADOW = 'shadow';
|
|
261
|
+
/** Disable drop shadow - removes all shadow styling */
|
|
262
|
+
const NO_SHADOW = 'noShadow';
|
|
263
|
+
/** All shadow property values */
|
|
264
|
+
const SHADOW_VALUES = [SHADOW, NO_SHADOW];
|
|
265
|
+
|
|
266
|
+
/** Show focus-visible outline - adds visible focus indicator for keyboard navigation */
|
|
267
|
+
const FOCUS_VISIBLE_OUTLINE = 'focusVisible';
|
|
268
|
+
/** Hide focus-visible outline - removes focus-visible outline styling */
|
|
269
|
+
const NO_FOCUS_VISIBLE_OUTLINE = 'noFocusVisible';
|
|
270
|
+
/** All focusVisible property values */
|
|
271
|
+
const FOCUS_VISIBLE_VALUES = [FOCUS_VISIBLE_OUTLINE, NO_FOCUS_VISIBLE_OUTLINE];
|
|
272
|
+
|
|
273
|
+
/** Pill shape - fully rounded corners (rounded-full) */
|
|
274
|
+
const PILL = 'pill';
|
|
275
|
+
/** Sharp shape - no border radius (rounded-none) */
|
|
276
|
+
const SHARP = 'sharp';
|
|
277
|
+
/** Rounded shape - size-responsive border radius (varies by component size) */
|
|
278
|
+
const ROUNDED = 'rounded';
|
|
279
|
+
/** All shape property values */
|
|
280
|
+
const SHAPE_VALUES = [PILL, SHARP, ROUNDED];
|
|
281
|
+
|
|
282
|
+
/** Extra small size - affects padding, font-size, border-radius, and spacing */
|
|
283
|
+
const XS = 'xs';
|
|
284
|
+
/** Small size - affects padding, font-size, border-radius, and spacing */
|
|
285
|
+
const SM = 'sm';
|
|
286
|
+
/** Medium size (default) - affects padding, font-size, border-radius, and spacing */
|
|
287
|
+
const MD = 'md';
|
|
288
|
+
/** Large size - affects padding, font-size, border-radius, and spacing */
|
|
289
|
+
const LG = 'lg';
|
|
290
|
+
/** Extra large size - affects padding, font-size, border-radius, and spacing */
|
|
291
|
+
const XL = 'xl';
|
|
292
|
+
/** All size property values */
|
|
293
|
+
const SIZE_VALUES = [XS, SM, MD, LG, XL];
|
|
294
|
+
|
|
295
|
+
/** Left-aligned text */
|
|
296
|
+
const TEXT_LEFT = 'textLeft';
|
|
297
|
+
/** Center-aligned text */
|
|
298
|
+
const TEXT_CENTER = 'textCenter';
|
|
299
|
+
/** Right-aligned text */
|
|
300
|
+
const TEXT_RIGHT = 'textRight';
|
|
301
|
+
/** Justified text */
|
|
302
|
+
const TEXT_JUSTIFY = 'textJustify';
|
|
303
|
+
/** All text align property values */
|
|
304
|
+
const TEXT_ALIGN_VALUES = [TEXT_LEFT, TEXT_CENTER, TEXT_RIGHT, TEXT_JUSTIFY];
|
|
305
|
+
|
|
306
|
+
/** Add underline decoration below text */
|
|
307
|
+
const UNDERLINE = 'underline';
|
|
308
|
+
/** Add strikethrough/line-through decoration across text */
|
|
309
|
+
const LINE_THROUGH = 'lineThrough';
|
|
310
|
+
/** Remove text decoration (no underline, strikethrough, etc.) */
|
|
311
|
+
const NO_UNDERLINE = 'noUnderline';
|
|
312
|
+
/** Add overline decoration above text */
|
|
313
|
+
const OVERLINE = 'overline';
|
|
314
|
+
/** All text decoration property values */
|
|
315
|
+
const TEXT_DECORATION_VALUES = [UNDERLINE, LINE_THROUGH, NO_UNDERLINE, OVERLINE];
|
|
316
|
+
|
|
317
|
+
/** Transform text to UPPERCASE */
|
|
318
|
+
const UPPERCASE = 'uppercase';
|
|
319
|
+
/** Transform text to lowercase */
|
|
320
|
+
const LOWERCASE = 'lowercase';
|
|
321
|
+
/** Transform text to Capitalize Each Word */
|
|
322
|
+
const CAPITALIZE = 'capitalize';
|
|
323
|
+
/** Normal case - no transformation */
|
|
324
|
+
const NORMAL_CASE = 'normalCase';
|
|
325
|
+
/** All text transform property values */
|
|
326
|
+
const TEXT_TRANSFORM_VALUES = [UPPERCASE, LOWERCASE, CAPITALIZE, NORMAL_CASE];
|
|
327
|
+
|
|
328
|
+
/** Make background transparent for layout/UI components or text transparent for typography components */
|
|
329
|
+
const TRANSPARENT = 'transparent';
|
|
330
|
+
/** All transparent property values */
|
|
331
|
+
const TRANSPARENT_VALUES = [TRANSPARENT];
|
|
332
|
+
|
|
333
|
+
/** Filled variant - solid background with contrasting text color */
|
|
334
|
+
const FILLED = 'filled';
|
|
335
|
+
/** Outline variant - transparent background with border and colored text (default) */
|
|
336
|
+
const OUTLINE = 'outline';
|
|
337
|
+
/** All variant property values */
|
|
338
|
+
const VARIANT_VALUES = [FILLED, OUTLINE];
|
|
339
|
+
|
|
340
|
+
/** Allow flex items to wrap to new lines when container is too narrow */
|
|
341
|
+
const FLEX_WRAP = 'flexWrap';
|
|
342
|
+
/** Force flex items to stay on single line (may overflow) */
|
|
343
|
+
const FLEX_NO_WRAP = 'flexNoWrap';
|
|
344
|
+
/** Wrap flex items in reverse order (last items wrap first) */
|
|
345
|
+
const FLEX_WRAP_REVERSE = 'flexWrapReverse';
|
|
346
|
+
/** All wrap property values */
|
|
347
|
+
const WRAP_VALUES = [FLEX_WRAP, FLEX_NO_WRAP, FLEX_WRAP_REVERSE];
|
|
348
|
+
|
|
349
|
+
/** Base state - default resting appearance */
|
|
350
|
+
const BASE = 'base';
|
|
351
|
+
/** Hover state - appearance when cursor hovers over element */
|
|
352
|
+
const HOVER = 'hover';
|
|
353
|
+
/** Active state - appearance when element is being pressed/clicked */
|
|
354
|
+
const ACTIVE = 'active';
|
|
355
|
+
/** Focus state - appearance when element receives focus */
|
|
356
|
+
const FOCUS = 'focus';
|
|
357
|
+
/** Focus visible state - appearance when element has visible focus indicator */
|
|
358
|
+
const FOCUS_VISIBLE = 'focusVisible';
|
|
359
|
+
/** All mode property values */
|
|
360
|
+
const MODE_VALUES = [BASE, HOVER, ACTIVE, FOCUS, FOCUS_VISIBLE];
|
|
361
|
+
/** Styling mode keys for different interaction states */
|
|
362
|
+
const ModeKeys = {
|
|
363
|
+
/** Interaction states for styling: base, hover, active, focus, focusVisible */
|
|
364
|
+
mode: MODE_VALUES,
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
/** Core layout properties for positioning and sizing elements */
|
|
14
368
|
const LAYOUT_CORE = ['size', 'hide', 'items', 'justify', 'position', 'display', 'overflow'];
|
|
369
|
+
/** Flexbox-specific layout properties for flex containers */
|
|
15
370
|
const LAYOUT_FLEX = ['wrap', 'gap', 'flexDirection', 'reverse'];
|
|
371
|
+
/** Padding properties for internal spacing control */
|
|
16
372
|
const PADDING = ['padding'];
|
|
373
|
+
/** Responsive breakpoint properties for different screen sizes */
|
|
17
374
|
const BREAKPOINT = ['breakpoint'];
|
|
375
|
+
/** Core visual properties including appearance colors and transparency */
|
|
18
376
|
const VISUAL_CORE = ['appearance', 'transparent'];
|
|
19
|
-
|
|
377
|
+
/** Visual decoration properties for borders, shadows, and focus rings */
|
|
378
|
+
const VISUAL_DECORATION = ['border', 'shadow', 'ring', 'focusVisible'];
|
|
379
|
+
/** Layout-specific visual decoration (excluding focusVisible for non-interactive elements) */
|
|
380
|
+
const VISUAL_DECORATION_LAYOUT = ['border', 'shadow', 'ring'];
|
|
381
|
+
/** Shape properties for border radius and corner rounding */
|
|
20
382
|
const SHAPE = ['shape'];
|
|
383
|
+
/** Typography styling properties for text appearance and formatting */
|
|
21
384
|
const TYPOGRAPHY_STYLE = ['fontWeight', 'fontStyle', 'textDecoration', 'textTransform', 'fontFamily', 'textAlign'];
|
|
385
|
+
/** List-specific styling properties for bullet points and numbering */
|
|
22
386
|
const LIST_STYLE = ['listStyle'];
|
|
387
|
+
/** Variant properties for filled/outline styling modes */
|
|
23
388
|
const VARIANT = ['variant'];
|
|
389
|
+
/** All available component property categories combined */
|
|
24
390
|
const COMPONENT_PROPS_CATEGORY = [
|
|
25
391
|
...VISUAL_CORE,
|
|
26
392
|
...LAYOUT_FLEX,
|
|
@@ -32,71 +398,126 @@ const COMPONENT_PROPS_CATEGORY = [
|
|
|
32
398
|
...VISUAL_DECORATION,
|
|
33
399
|
...SHAPE,
|
|
34
400
|
...VARIANT,
|
|
35
|
-
'mode',
|
|
36
401
|
];
|
|
37
402
|
/**
|
|
38
|
-
* Describes
|
|
403
|
+
* Describes category for which the appearance can be applied
|
|
39
404
|
* @see ComponentKeys.appearance
|
|
40
405
|
*/
|
|
41
|
-
const APPEARANCE_CATEGORY = ['text', 'border', 'ring', 'shadow', 'bg', 'accent'];
|
|
406
|
+
const APPEARANCE_CATEGORY = ['text', 'border', 'ring', 'shadow', 'bg', 'accent', 'focusVisible'];
|
|
407
|
+
/** Component property keys mapping categories to their available values */
|
|
42
408
|
const ComponentKeys = {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
409
|
+
/** Color appearance options */
|
|
410
|
+
appearance: APPEARANCE_VALUES,
|
|
411
|
+
/** Border visibility: border (show) or noBorder (hide) */
|
|
412
|
+
border: BORDER_VALUES,
|
|
413
|
+
/** Column breakpoints for responsive grid layouts */
|
|
414
|
+
breakpoint: BREAKPOINT_VALUES,
|
|
415
|
+
/** CSS display property values for element layout behavior */
|
|
416
|
+
display: DISPLAY_VALUES,
|
|
417
|
+
/** Flex direction: row (horizontal), column (vertical), or reversed variants */
|
|
418
|
+
flexDirection: FLEX_DIRECTION_VALUES,
|
|
419
|
+
/** Font family types: sans-serif, serif, or monospace */
|
|
420
|
+
fontFamily: FONT_FAMILY_VALUES,
|
|
421
|
+
/** Font style: italic or notItalic (normal) */
|
|
422
|
+
fontStyle: FONT_STYLE_VALUES,
|
|
423
|
+
/** Font weight from thin (100) to black (900) */
|
|
424
|
+
fontWeight: FONT_WEIGHT_VALUES,
|
|
425
|
+
/** Spacing between flex/grid items: gap (enabled) or noGap (disabled) */
|
|
426
|
+
gap: GAP_VALUES,
|
|
427
|
+
/** Hide elements at specific breakpoint sizes */
|
|
428
|
+
hide: HIDE_VALUES,
|
|
429
|
+
/** Cross-axis alignment for flex items (align-items) */
|
|
430
|
+
items: ITEMS_VALUES,
|
|
431
|
+
/** Main-axis alignment for flex items (justify-content) */
|
|
432
|
+
justify: JUSTIFY_VALUES,
|
|
433
|
+
/** List bullet/numbering style: disc (bullets) or decimal (numbers) */
|
|
434
|
+
listStyle: LIST_STYLE_VALUES,
|
|
435
|
+
/** Overflow behavior for content that exceeds container bounds */
|
|
436
|
+
overflow: OVERFLOW_VALUES,
|
|
437
|
+
/** Internal spacing: padding (enabled) or noPadding (disabled) */
|
|
438
|
+
padding: PADDING_VALUES,
|
|
439
|
+
/** CSS positioning: relative, absolute, fixed, sticky, static */
|
|
440
|
+
position: POSITION_VALUES,
|
|
441
|
+
/** Reverse the order of flex items */
|
|
442
|
+
reverse: REVERSE_VALUES,
|
|
443
|
+
/** Focus ring visibility: ring (show) or noRing (hide) */
|
|
444
|
+
ring: RING_VALUES,
|
|
445
|
+
/** Drop shadow visibility: shadow (enabled) or noShadow (disabled) */
|
|
446
|
+
shadow: SHADOW_VALUES,
|
|
447
|
+
/** Focus-visible outline visibility: focusVisible (show) or noFocusVisible (hide) */
|
|
448
|
+
focusVisible: FOCUS_VISIBLE_VALUES,
|
|
449
|
+
/** Border radius shape: pill (fully rounded), sharp (no radius), rounded (medium radius) */
|
|
450
|
+
shape: SHAPE_VALUES,
|
|
451
|
+
/** Size scale from extra-small to extra-large */
|
|
452
|
+
size: SIZE_VALUES,
|
|
453
|
+
/** Text alignment: left, center, right, justify */
|
|
454
|
+
textAlign: TEXT_ALIGN_VALUES,
|
|
455
|
+
/** Text decoration: underline, strikethrough (lineThrough), none (noUnderline), overline */
|
|
456
|
+
textDecoration: TEXT_DECORATION_VALUES,
|
|
457
|
+
/** Text case transformation: UPPERCASE, lowercase, Capitalize, normalCase */
|
|
458
|
+
textTransform: TEXT_TRANSFORM_VALUES,
|
|
459
|
+
/** Make background (layout/UI) or text (typography) transparent */
|
|
460
|
+
transparent: TRANSPARENT_VALUES,
|
|
461
|
+
/** Style variant: filled (solid background) or outline (border only) */
|
|
462
|
+
variant: VARIANT_VALUES,
|
|
463
|
+
/** Flex item wrapping behavior: wrap, no-wrap, or wrap-reverse */
|
|
464
|
+
wrap: WRAP_VALUES,
|
|
71
465
|
};
|
|
72
|
-
|
|
466
|
+
/** Composite categories built from core blocks */
|
|
467
|
+
/** Complete layout category including core and flex properties */
|
|
73
468
|
const LAYOUT_FULL = [...LAYOUT_CORE, ...LAYOUT_FLEX];
|
|
469
|
+
/** Complete visual category including core, decoration, and shape properties */
|
|
74
470
|
const VISUAL_FULL = [...VISUAL_CORE, ...VISUAL_DECORATION, ...SHAPE];
|
|
471
|
+
/** Layout-specific visual category (excludes focusVisible for non-interactive elements) */
|
|
472
|
+
const VISUAL_LAYOUT = [...VISUAL_CORE, ...VISUAL_DECORATION_LAYOUT, ...SHAPE];
|
|
473
|
+
/** Complete typography category for text styling */
|
|
75
474
|
const TYPOGRAPHY_FULL = [...TYPOGRAPHY_STYLE];
|
|
475
|
+
/** Categories for interactive components like buttons, badges, chips */
|
|
76
476
|
const INTERACTIVE_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_FULL, ...TYPOGRAPHY_STYLE, ...PADDING, ...VARIANT];
|
|
477
|
+
/** Button component categories */
|
|
77
478
|
const BUTTON_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
479
|
+
/** Badge component categories */
|
|
78
480
|
const BADGE_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
481
|
+
/** Chip component categories */
|
|
79
482
|
const CHIP_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
483
|
+
/** Code component categories */
|
|
80
484
|
const CODE_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
81
|
-
|
|
485
|
+
/** Typography component categories */
|
|
486
|
+
/** Categories for typography components like Text, Title, Link */
|
|
82
487
|
const TYPOGRAPHY_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_CORE, ...VISUAL_CORE, ...VARIANT];
|
|
488
|
+
/** Categories for list components with typography and list-specific styling */
|
|
83
489
|
const LIST_CATEGORIES = [...TYPOGRAPHY_FULL, ...LIST_STYLE, ...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING, ...VARIANT];
|
|
84
|
-
|
|
490
|
+
/** Layout component categories */
|
|
491
|
+
/** Categories for grid layout components */
|
|
85
492
|
const GRID_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_CORE, ...VARIANT];
|
|
86
|
-
|
|
87
|
-
const
|
|
88
|
-
|
|
89
|
-
const
|
|
90
|
-
|
|
493
|
+
/** Categories for container layout components */
|
|
494
|
+
const CONTAINER_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT];
|
|
495
|
+
/** Categories for column layout components */
|
|
496
|
+
const COL_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...VARIANT];
|
|
497
|
+
/** Categories for row layout components with responsive breakpoints */
|
|
498
|
+
const ROW_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...VARIANT];
|
|
499
|
+
/** Categories for stack layout components with responsive and padding support */
|
|
500
|
+
const STACK_CATEGORIES = [...LAYOUT_FULL, ...BREAKPOINT, ...PADDING, ...VISUAL_LAYOUT, ...VARIANT];
|
|
501
|
+
/** Categories for card components with full typography and layout support */
|
|
502
|
+
const CARD_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...BREAKPOINT, ...VISUAL_LAYOUT, ...PADDING, ...VARIANT];
|
|
503
|
+
/** Categories for divider components with basic layout and visual properties */
|
|
91
504
|
const DIVIDER_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...PADDING];
|
|
92
|
-
|
|
93
|
-
|
|
505
|
+
/** Categories for section layout components with full responsive support */
|
|
506
|
+
const SECTION_CATEGORIES = [...LAYOUT_FULL, ...VISUAL_LAYOUT, ...PADDING, ...BREAKPOINT, ...VARIANT];
|
|
507
|
+
/** Form component categories */
|
|
508
|
+
/** Categories for checkbox form components */
|
|
94
509
|
const CHECKBOX_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT];
|
|
510
|
+
/** Categories for label form components with typography support */
|
|
95
511
|
const LABEL_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...VISUAL_CORE, ...VARIANT];
|
|
96
|
-
|
|
512
|
+
/** Categories for input form components with interactive and form-specific properties */
|
|
513
|
+
const INPUT_CATEGORIES = [...INTERACTIVE_CATEGORIES];
|
|
514
|
+
/** Media component categories */
|
|
515
|
+
/** Categories for image media components */
|
|
97
516
|
const IMG_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...VISUAL_DECORATION, ...SHAPE, ...VARIANT];
|
|
517
|
+
/** All available component names in the library */
|
|
98
518
|
const COMPONENT = ['button', 'badge', 'chip', 'code', 'card', 'divider', 'container', 'row', 'col', 'stack', 'section',
|
|
99
|
-
'grid2', 'grid3', 'grid4', 'pageTitle', 'sectionTitle', 'title', 'text', 'link', 'list', 'listItem', 'checkbox', 'label', 'img'];
|
|
519
|
+
'grid2', 'grid3', 'grid4', 'grid5', 'grid6', 'pageTitle', 'sectionTitle', 'title', 'text', 'link', 'list', 'listItem', 'checkbox', 'label', 'img', 'input'];
|
|
520
|
+
/** Mapping of each component to its available property categories */
|
|
100
521
|
const ComponentCategories = {
|
|
101
522
|
badge: BADGE_CATEGORIES,
|
|
102
523
|
button: BUTTON_CATEGORIES,
|
|
@@ -110,7 +531,10 @@ const ComponentCategories = {
|
|
|
110
531
|
grid2: GRID_CATEGORIES,
|
|
111
532
|
grid3: GRID_CATEGORIES,
|
|
112
533
|
grid4: GRID_CATEGORIES,
|
|
534
|
+
grid5: GRID_CATEGORIES,
|
|
535
|
+
grid6: GRID_CATEGORIES,
|
|
113
536
|
img: IMG_CATEGORIES,
|
|
537
|
+
input: INPUT_CATEGORIES,
|
|
114
538
|
label: LABEL_CATEGORIES,
|
|
115
539
|
link: TYPOGRAPHY_CATEGORIES,
|
|
116
540
|
list: LIST_CATEGORIES,
|
|
@@ -3041,7 +3465,7 @@ function pickFirstTruthyKeyByCategory(props, defaults, category) {
|
|
|
3041
3465
|
return undefined;
|
|
3042
3466
|
}
|
|
3043
3467
|
|
|
3044
|
-
const
|
|
3468
|
+
const defaultLayoutsThemes = {
|
|
3045
3469
|
hide: new HideTheme(),
|
|
3046
3470
|
items: new ItemsTheme(),
|
|
3047
3471
|
justify: new JustifyTheme(),
|
|
@@ -3049,7 +3473,7 @@ const defaultLayoutTheme = {
|
|
|
3049
3473
|
display: new DisplayTheme(),
|
|
3050
3474
|
overflow: new OverflowTheme(),
|
|
3051
3475
|
};
|
|
3052
|
-
const
|
|
3476
|
+
const defaultTypographyThemes = {
|
|
3053
3477
|
fontFamily: new FontFamilyTheme(),
|
|
3054
3478
|
fontWeight: new FontWeightTheme(),
|
|
3055
3479
|
fontStyle: new FontStyleTheme(),
|
|
@@ -3182,18 +3606,18 @@ class GapTheme extends BaseTheme {
|
|
|
3182
3606
|
}
|
|
3183
3607
|
|
|
3184
3608
|
const uiBorderRadiusClasses = {
|
|
3185
|
-
xs: "rounded-(--ui-
|
|
3186
|
-
sm: "rounded-(--ui-
|
|
3187
|
-
md: "rounded-(--ui-
|
|
3188
|
-
lg: "rounded-(--ui-
|
|
3189
|
-
xl: "rounded-(--ui-
|
|
3609
|
+
xs: "rounded-(--ui-br-xs)",
|
|
3610
|
+
sm: "rounded-(--ui-br-sm)",
|
|
3611
|
+
md: "rounded-(--ui-br-md)",
|
|
3612
|
+
lg: "rounded-(--ui-br-lg)",
|
|
3613
|
+
xl: "rounded-(--ui-br-xl)",
|
|
3190
3614
|
};
|
|
3191
3615
|
const layoutBorderRadiusClasses = {
|
|
3192
|
-
xs: "rounded-(--layout-
|
|
3193
|
-
sm: "rounded-(--layout-
|
|
3194
|
-
md: "rounded-(--layout-
|
|
3195
|
-
lg: "rounded-(--layout-
|
|
3196
|
-
xl: "rounded-(--layout-
|
|
3616
|
+
xs: "rounded-(--layout-br-xs)",
|
|
3617
|
+
sm: "rounded-(--layout-br-sm)",
|
|
3618
|
+
md: "rounded-(--layout-br-md)",
|
|
3619
|
+
lg: "rounded-(--layout-br-lg)",
|
|
3620
|
+
xl: "rounded-(--layout-br-xl)",
|
|
3197
3621
|
};
|
|
3198
3622
|
|
|
3199
3623
|
class RadiusTheme extends BaseTheme {
|
|
@@ -3234,10 +3658,12 @@ class BorderTheme extends BaseTheme {
|
|
|
3234
3658
|
this.base = "border";
|
|
3235
3659
|
this.hover = "";
|
|
3236
3660
|
this.active = "";
|
|
3661
|
+
this.focus = "";
|
|
3662
|
+
this.focusVisible = "";
|
|
3237
3663
|
}
|
|
3238
3664
|
getClasses(extractedKeys) {
|
|
3239
3665
|
return (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.border) === "border"
|
|
3240
|
-
?
|
|
3666
|
+
? ModeKeys.mode.map((mode) => this[mode])
|
|
3241
3667
|
: [];
|
|
3242
3668
|
}
|
|
3243
3669
|
}
|
|
@@ -3248,10 +3674,28 @@ class RingTheme extends BaseTheme {
|
|
|
3248
3674
|
this.base = "ring ring-inset";
|
|
3249
3675
|
this.hover = "";
|
|
3250
3676
|
this.active = "";
|
|
3677
|
+
this.focus = "";
|
|
3678
|
+
this.focusVisible = "";
|
|
3251
3679
|
}
|
|
3252
3680
|
getClasses(extractedKeys) {
|
|
3253
3681
|
return (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.ring) === 'ring'
|
|
3254
|
-
?
|
|
3682
|
+
? ModeKeys.mode.map(mode => this[mode] || '').filter(Boolean)
|
|
3683
|
+
: [];
|
|
3684
|
+
}
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
class FocusVisibleTheme extends BaseTheme {
|
|
3688
|
+
constructor() {
|
|
3689
|
+
super(...arguments);
|
|
3690
|
+
this.base = "";
|
|
3691
|
+
this.hover = "";
|
|
3692
|
+
this.active = "";
|
|
3693
|
+
this.focus = "";
|
|
3694
|
+
this.focusVisible = "focus-visible:outline-2 focus-visible:outline-offset-2";
|
|
3695
|
+
}
|
|
3696
|
+
getClasses(extractedKeys) {
|
|
3697
|
+
return (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.focusVisible) === 'focusVisible'
|
|
3698
|
+
? ModeKeys.mode.map(mode => this[mode] || '').filter(Boolean)
|
|
3255
3699
|
: [];
|
|
3256
3700
|
}
|
|
3257
3701
|
}
|
|
@@ -3311,25 +3755,29 @@ class PyTheme extends PaddingTheme {
|
|
|
3311
3755
|
}
|
|
3312
3756
|
|
|
3313
3757
|
class AppearanceTheme extends BaseTheme {
|
|
3314
|
-
constructor(config, category, transparentClasses) {
|
|
3758
|
+
constructor(config, category, transparentClasses, ignoreTransparent = false) {
|
|
3315
3759
|
super();
|
|
3316
3760
|
Object.assign(this, config);
|
|
3317
3761
|
this.category = category;
|
|
3318
3762
|
this.transparentClasses = transparentClasses;
|
|
3763
|
+
this.ignoreTransparent = ignoreTransparent;
|
|
3319
3764
|
}
|
|
3320
3765
|
getClasses(extractedKeys) {
|
|
3321
3766
|
var _a;
|
|
3322
|
-
if (this.category === 'border' && extractedKeys.border === 'noBorder') {
|
|
3767
|
+
if (this.category === 'border' && (extractedKeys.border === 'noBorder' || extractedKeys.border === undefined)) {
|
|
3323
3768
|
return [];
|
|
3324
3769
|
}
|
|
3325
|
-
if (this.category === 'ring' && extractedKeys.ring === 'noRing') {
|
|
3770
|
+
if (this.category === 'ring' && (extractedKeys.ring === 'noRing' || extractedKeys.ring === undefined)) {
|
|
3326
3771
|
return [];
|
|
3327
3772
|
}
|
|
3328
|
-
if (this.category === 'shadow' && extractedKeys.shadow === 'noShadow') {
|
|
3773
|
+
if (this.category === 'shadow' && (extractedKeys.shadow === 'noShadow' || extractedKeys.shadow === undefined)) {
|
|
3774
|
+
return [];
|
|
3775
|
+
}
|
|
3776
|
+
if (this.category === 'focusVisible' && (extractedKeys.focusVisible === 'noFocusVisible' || extractedKeys.focusVisible === undefined)) {
|
|
3329
3777
|
return [];
|
|
3330
3778
|
}
|
|
3331
3779
|
// Check for specific transparent styles first
|
|
3332
|
-
if (extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.transparent) {
|
|
3780
|
+
if ((extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.transparent) && !this.ignoreTransparent) {
|
|
3333
3781
|
const transparentClass = ((_a = this.transparentClasses) === null || _a === void 0 ? void 0 : _a[extractedKeys.transparent]) || '';
|
|
3334
3782
|
return [transparentClass];
|
|
3335
3783
|
}
|
|
@@ -3338,50 +3786,50 @@ class AppearanceTheme extends BaseTheme {
|
|
|
3338
3786
|
if (pickedAppearanceKey) {
|
|
3339
3787
|
const modes = this[pickedAppearanceKey];
|
|
3340
3788
|
if (modes) {
|
|
3341
|
-
return
|
|
3789
|
+
return ModeKeys.mode.map(mode => modes[mode] || '');
|
|
3342
3790
|
}
|
|
3343
3791
|
}
|
|
3344
3792
|
return [];
|
|
3345
3793
|
}
|
|
3346
|
-
static createTheme(src = {}, category) {
|
|
3347
|
-
const config = Object.fromEntries(ComponentKeys.appearance.map(
|
|
3348
|
-
|
|
3349
|
-
Object.fromEntries(
|
|
3794
|
+
static createTheme(src = {}, category, ignoreTransparent = false) {
|
|
3795
|
+
const config = Object.fromEntries(ComponentKeys.appearance.map(key => [
|
|
3796
|
+
key,
|
|
3797
|
+
Object.fromEntries(ModeKeys.mode.map(modeKey => {
|
|
3350
3798
|
var _a;
|
|
3351
3799
|
return [
|
|
3352
3800
|
modeKey,
|
|
3353
|
-
((_a = src[modeKey]) === null || _a === void 0 ? void 0 : _a[
|
|
3801
|
+
((_a = src[modeKey]) === null || _a === void 0 ? void 0 : _a[key]) || ''
|
|
3354
3802
|
];
|
|
3355
3803
|
})),
|
|
3356
3804
|
]));
|
|
3357
|
-
return new AppearanceTheme(config, category, src.base);
|
|
3805
|
+
return new AppearanceTheme(config, category, src.base, ignoreTransparent);
|
|
3358
3806
|
}
|
|
3359
3807
|
}
|
|
3360
3808
|
|
|
3361
3809
|
const filledTextAppearanceClasses = {
|
|
3362
|
-
default: "text-(--
|
|
3363
|
-
primary: "text-(--
|
|
3364
|
-
secondary: "text-(--
|
|
3365
|
-
tertiary: "text-(--
|
|
3366
|
-
link: "text-(--
|
|
3367
|
-
accent: "text-(--
|
|
3368
|
-
success: "text-(--
|
|
3369
|
-
danger: "text-(--
|
|
3370
|
-
warning: "text-(--
|
|
3371
|
-
info: "text-(--
|
|
3372
|
-
transparent: "text-
|
|
3810
|
+
default: "text-(--color-text-filled-default)",
|
|
3811
|
+
primary: "text-(--color-text-filled-primary)",
|
|
3812
|
+
secondary: "text-(--color-text-filled-secondary)",
|
|
3813
|
+
tertiary: "text-(--color-text-filled-tertiary)",
|
|
3814
|
+
link: "text-(--color-text-filled-link)",
|
|
3815
|
+
accent: "text-(--color-text-filled-accent)",
|
|
3816
|
+
success: "text-(--color-text-filled-success)",
|
|
3817
|
+
danger: "text-(--color-text-filled-danger)",
|
|
3818
|
+
warning: "text-(--color-text-filled-warning)",
|
|
3819
|
+
info: "text-(--color-text-filled-info)",
|
|
3820
|
+
transparent: "text-transparent",
|
|
3373
3821
|
};
|
|
3374
3822
|
const textAppearanceClasses = {
|
|
3375
|
-
default: "text-(--text-
|
|
3376
|
-
primary: "text-(--text-
|
|
3377
|
-
secondary: "text-(--text-
|
|
3378
|
-
tertiary: "text-(--text-
|
|
3379
|
-
link: "text-(--text-
|
|
3380
|
-
accent: "text-(--text-
|
|
3381
|
-
success: "text-(--text-
|
|
3382
|
-
danger: "text-(--text-
|
|
3383
|
-
warning: "text-(--text-
|
|
3384
|
-
info: "text-(--text-
|
|
3823
|
+
default: "text-(--color-text-default)",
|
|
3824
|
+
primary: "text-(--color-text-primary)",
|
|
3825
|
+
secondary: "text-(--color-text-secondary)",
|
|
3826
|
+
tertiary: "text-(--color-text-tertiary)",
|
|
3827
|
+
link: "text-(--color-text-link)",
|
|
3828
|
+
accent: "text-(--color-text-accent)",
|
|
3829
|
+
success: "text-(--color-text-success)",
|
|
3830
|
+
danger: "text-(--color-text-danger)",
|
|
3831
|
+
warning: "text-(--color-text-warning)",
|
|
3832
|
+
info: "text-(--color-text-info)",
|
|
3385
3833
|
transparent: "text-transparent",
|
|
3386
3834
|
};
|
|
3387
3835
|
const textSizeClasses = {
|
|
@@ -3393,233 +3841,258 @@ const textSizeClasses = {
|
|
|
3393
3841
|
};
|
|
3394
3842
|
|
|
3395
3843
|
const filledBackgroundAppearanceClasses = {
|
|
3396
|
-
default: "bg-(--
|
|
3397
|
-
primary: "bg-(--
|
|
3398
|
-
secondary: "bg-(--
|
|
3399
|
-
tertiary: "bg-(--
|
|
3400
|
-
accent: "bg-(--
|
|
3401
|
-
success: "bg-(--
|
|
3402
|
-
danger: "bg-(--
|
|
3403
|
-
warning: "bg-(--
|
|
3404
|
-
info: "bg-(--
|
|
3844
|
+
default: "bg-(--color-bg-filled-default)",
|
|
3845
|
+
primary: "bg-(--color-bg-filled-primary)",
|
|
3846
|
+
secondary: "bg-(--color-bg-filled-secondary)",
|
|
3847
|
+
tertiary: "bg-(--color-bg-filled-tertiary)",
|
|
3848
|
+
accent: "bg-(--color-bg-filled-accent)",
|
|
3849
|
+
success: "bg-(--color-bg-filled-success)",
|
|
3850
|
+
danger: "bg-(--color-bg-filled-danger)",
|
|
3851
|
+
warning: "bg-(--color-bg-filled-warning)",
|
|
3852
|
+
info: "bg-(--color-bg-filled-info)",
|
|
3405
3853
|
transparent: "bg-transparent",
|
|
3406
|
-
link: "bg-(--
|
|
3854
|
+
link: "bg-(--color-bg-filled-link)",
|
|
3407
3855
|
};
|
|
3408
3856
|
const filledHoverBackgroundAppearanceClasses = {
|
|
3409
|
-
default: "hover:bg-(--
|
|
3410
|
-
primary: "hover:bg-(--
|
|
3411
|
-
secondary: "hover:bg-(--
|
|
3412
|
-
tertiary: "hover:bg-(--
|
|
3413
|
-
accent: "hover:bg-(--
|
|
3414
|
-
success: "hover:bg-(--
|
|
3415
|
-
danger: "hover:bg-(--
|
|
3416
|
-
warning: "hover:bg-(--
|
|
3417
|
-
info: "hover:bg-(--
|
|
3857
|
+
default: "hover:bg-(--color-bg-filled-hover-default)",
|
|
3858
|
+
primary: "hover:bg-(--color-bg-filled-hover-primary)",
|
|
3859
|
+
secondary: "hover:bg-(--color-bg-filled-hover-secondary)",
|
|
3860
|
+
tertiary: "hover:bg-(--color-bg-filled-hover-tertiary)",
|
|
3861
|
+
accent: "hover:bg-(--color-bg-filled-hover-accent)",
|
|
3862
|
+
success: "hover:bg-(--color-bg-filled-hover-success)",
|
|
3863
|
+
danger: "hover:bg-(--color-bg-filled-hover-danger)",
|
|
3864
|
+
warning: "hover:bg-(--color-bg-filled-hover-warning)",
|
|
3865
|
+
info: "hover:bg-(--color-bg-filled-hover-info)",
|
|
3418
3866
|
transparent: "hover:bg-transparent",
|
|
3419
|
-
link: "hover:bg-(--
|
|
3867
|
+
link: "hover:bg-(--color-bg-filled-hover-link)",
|
|
3420
3868
|
};
|
|
3421
3869
|
const filledActiveBackgroundAppearanceClasses = {
|
|
3422
|
-
default: "active:bg-(--
|
|
3423
|
-
primary: "active:bg-(--
|
|
3424
|
-
secondary: "active:bg-(--
|
|
3425
|
-
tertiary: "active:bg-(--
|
|
3426
|
-
accent: "active:bg-(--
|
|
3427
|
-
success: "active:bg-(--
|
|
3428
|
-
danger: "active:bg-(--
|
|
3429
|
-
warning: "active:bg-(--
|
|
3430
|
-
info: "active:bg-(--
|
|
3870
|
+
default: "active:bg-(--color-bg-filled-active-default)",
|
|
3871
|
+
primary: "active:bg-(--color-bg-filled-active-primary)",
|
|
3872
|
+
secondary: "active:bg-(--color-bg-filled-active-secondary)",
|
|
3873
|
+
tertiary: "active:bg-(--color-bg-filled-active-tertiary)",
|
|
3874
|
+
accent: "active:bg-(--color-bg-filled-active-accent)",
|
|
3875
|
+
success: "active:bg-(--color-bg-filled-active-success)",
|
|
3876
|
+
danger: "active:bg-(--color-bg-filled-active-danger)",
|
|
3877
|
+
warning: "active:bg-(--color-bg-filled-active-warning)",
|
|
3878
|
+
info: "active:bg-(--color-bg-filled-active-info)",
|
|
3431
3879
|
transparent: "active:bg-transparent",
|
|
3432
|
-
link: "active:bg-(--
|
|
3880
|
+
link: "active:bg-(--color-bg-filled-active-link)",
|
|
3433
3881
|
};
|
|
3434
3882
|
const backgroundAppearanceClasses = {
|
|
3435
|
-
default: "bg-(--
|
|
3436
|
-
primary: "bg-(--
|
|
3437
|
-
secondary: "bg-(--
|
|
3438
|
-
tertiary: "bg-(--
|
|
3439
|
-
accent: "bg-(--
|
|
3440
|
-
success: "bg-(--
|
|
3441
|
-
danger: "bg-(--
|
|
3442
|
-
warning: "bg-(--
|
|
3443
|
-
info: "bg-(--
|
|
3883
|
+
default: "bg-(--color-bg-default)",
|
|
3884
|
+
primary: "bg-(--color-bg-primary)",
|
|
3885
|
+
secondary: "bg-(--color-bg-secondary)",
|
|
3886
|
+
tertiary: "bg-(--color-bg-tertiary)",
|
|
3887
|
+
accent: "bg-(--color-bg-accent)",
|
|
3888
|
+
success: "bg-(--color-bg-success)",
|
|
3889
|
+
danger: "bg-(--color-bg-danger)",
|
|
3890
|
+
warning: "bg-(--color-bg-warning)",
|
|
3891
|
+
info: "bg-(--color-bg-info)",
|
|
3444
3892
|
transparent: "bg-transparent",
|
|
3445
|
-
link: "bg-(--
|
|
3893
|
+
link: "bg-(--color-bg-link)",
|
|
3446
3894
|
};
|
|
3447
3895
|
const hoverBackgroundAppearanceClasses = {
|
|
3448
|
-
default: "hover:bg-(--
|
|
3449
|
-
primary: "hover:bg-(--
|
|
3450
|
-
secondary: "hover:bg-(--
|
|
3451
|
-
tertiary: "hover:bg-(--
|
|
3452
|
-
accent: "hover:bg-(--
|
|
3453
|
-
success: "hover:bg-(--
|
|
3454
|
-
danger: "hover:bg-(--
|
|
3455
|
-
warning: "hover:bg-(--
|
|
3456
|
-
info: "hover:bg-(--
|
|
3896
|
+
default: "hover:bg-(--color-bg-hover-default)",
|
|
3897
|
+
primary: "hover:bg-(--color-bg-hover-primary)",
|
|
3898
|
+
secondary: "hover:bg-(--color-bg-hover-secondary)",
|
|
3899
|
+
tertiary: "hover:bg-(--color-bg-hover-tertiary)",
|
|
3900
|
+
accent: "hover:bg-(--color-bg-hover-accent)",
|
|
3901
|
+
success: "hover:bg-(--color-bg-hover-success)",
|
|
3902
|
+
danger: "hover:bg-(--color-bg-hover-danger)",
|
|
3903
|
+
warning: "hover:bg-(--color-bg-hover-warning)",
|
|
3904
|
+
info: "hover:bg-(--color-bg-hover-info)",
|
|
3457
3905
|
transparent: "hover:bg-transparent",
|
|
3458
|
-
link: "hover:bg-(--
|
|
3906
|
+
link: "hover:bg-(--color-bg-hover-link)",
|
|
3459
3907
|
};
|
|
3460
3908
|
const activeBackgroundAppearanceClasses = {
|
|
3461
|
-
default: "active:bg-(--
|
|
3462
|
-
primary: "active:bg-(--
|
|
3463
|
-
secondary: "active:bg-(--
|
|
3464
|
-
tertiary: "active:bg-(--
|
|
3465
|
-
accent: "active:bg-(--
|
|
3466
|
-
success: "active:bg-(--
|
|
3467
|
-
danger: "active:bg-(--
|
|
3468
|
-
warning: "active:bg-(--
|
|
3469
|
-
info: "active:bg-(--
|
|
3909
|
+
default: "active:bg-(--color-bg-active-default)",
|
|
3910
|
+
primary: "active:bg-(--color-bg-active-primary)",
|
|
3911
|
+
secondary: "active:bg-(--color-bg-active-secondary)",
|
|
3912
|
+
tertiary: "active:bg-(--color-bg-active-tertiary)",
|
|
3913
|
+
accent: "active:bg-(--color-bg-active-accent)",
|
|
3914
|
+
success: "active:bg-(--color-bg-active-success)",
|
|
3915
|
+
danger: "active:bg-(--color-bg-active-danger)",
|
|
3916
|
+
warning: "active:bg-(--color-bg-active-warning)",
|
|
3917
|
+
info: "active:bg-(--color-bg-active-info)",
|
|
3470
3918
|
transparent: "active:bg-transparent",
|
|
3471
|
-
link: "active:bg-(--
|
|
3919
|
+
link: "active:bg-(--color-bg-active-link)",
|
|
3472
3920
|
};
|
|
3473
3921
|
const layoutBackgroundAppearanceClasses = {
|
|
3474
|
-
default: "bg-(--layout-
|
|
3475
|
-
primary: "bg-(--layout-
|
|
3476
|
-
secondary: "bg-(--layout-
|
|
3477
|
-
tertiary: "bg-(--layout-
|
|
3478
|
-
accent: "bg-(--layout-
|
|
3479
|
-
success: "bg-(--layout-
|
|
3480
|
-
danger: "bg-(--layout-
|
|
3481
|
-
warning: "bg-(--layout-
|
|
3482
|
-
info: "bg-(--layout-
|
|
3922
|
+
default: "bg-(--color-bg-layout-default)",
|
|
3923
|
+
primary: "bg-(--color-bg-layout-primary)",
|
|
3924
|
+
secondary: "bg-(--color-bg-layout-secondary)",
|
|
3925
|
+
tertiary: "bg-(--color-bg-layout-tertiary)",
|
|
3926
|
+
accent: "bg-(--color-bg-layout-accent)",
|
|
3927
|
+
success: "bg-(--color-bg-layout-success)",
|
|
3928
|
+
danger: "bg-(--color-bg-layout-danger)",
|
|
3929
|
+
warning: "bg-(--color-bg-layout-warning)",
|
|
3930
|
+
info: "bg-(--color-bg-layout-info)",
|
|
3483
3931
|
transparent: "bg-transparent",
|
|
3484
|
-
link: "bg-(--layout-
|
|
3932
|
+
link: "bg-(--color-bg-layout-link)",
|
|
3485
3933
|
};
|
|
3486
3934
|
const layoutFilledBackgroundAppearanceClasses = {
|
|
3487
|
-
default: "bg-(--
|
|
3488
|
-
primary: "bg-(--
|
|
3489
|
-
secondary: "bg-(--
|
|
3490
|
-
tertiary: "bg-(--
|
|
3491
|
-
accent: "bg-(--
|
|
3492
|
-
success: "bg-(--
|
|
3493
|
-
danger: "bg-(--
|
|
3494
|
-
warning: "bg-(--
|
|
3495
|
-
info: "bg-(--
|
|
3935
|
+
default: "bg-(--color-bg-filled-layout-default)",
|
|
3936
|
+
primary: "bg-(--color-bg-filled-layout-primary)",
|
|
3937
|
+
secondary: "bg-(--color-bg-filled-layout-secondary)",
|
|
3938
|
+
tertiary: "bg-(--color-bg-filled-layout-tertiary)",
|
|
3939
|
+
accent: "bg-(--color-bg-filled-layout-accent)",
|
|
3940
|
+
success: "bg-(--color-bg-filled-layout-success)",
|
|
3941
|
+
danger: "bg-(--color-bg-filled-layout-danger)",
|
|
3942
|
+
warning: "bg-(--color-bg-filled-layout-warning)",
|
|
3943
|
+
info: "bg-(--color-bg-filled-layout-info)",
|
|
3496
3944
|
transparent: "bg-transparent",
|
|
3497
|
-
link: "bg-(--
|
|
3945
|
+
link: "bg-(--color-bg-filled-layout-link)",
|
|
3498
3946
|
};
|
|
3499
3947
|
const bgBorderAppearanceClasses = {
|
|
3500
|
-
default: "bg-(--border-
|
|
3501
|
-
primary: "bg-(--border-
|
|
3502
|
-
secondary: "bg-(--border-
|
|
3503
|
-
tertiary: "bg-(--border-
|
|
3504
|
-
accent: "bg-(--border-
|
|
3505
|
-
success: "bg-(--border-
|
|
3506
|
-
danger: "bg-(--border-
|
|
3507
|
-
warning: "bg-(--border-
|
|
3508
|
-
info: "bg-(--border-
|
|
3509
|
-
link: "bg-(--border-
|
|
3948
|
+
default: "bg-(--color-border-default)",
|
|
3949
|
+
primary: "bg-(--color-border-primary)",
|
|
3950
|
+
secondary: "bg-(--color-border-secondary)",
|
|
3951
|
+
tertiary: "bg-(--color-border-tertiary)",
|
|
3952
|
+
accent: "bg-(--color-border-accent)",
|
|
3953
|
+
success: "bg-(--color-border-success)",
|
|
3954
|
+
danger: "bg-(--color-border-danger)",
|
|
3955
|
+
warning: "bg-(--color-border-warning)",
|
|
3956
|
+
info: "bg-(--color-border-info)",
|
|
3957
|
+
link: "bg-(--color-border-link)",
|
|
3510
3958
|
transparent: "bg-transparent",
|
|
3511
3959
|
};
|
|
3512
3960
|
const borderAppearanceClasses = {
|
|
3513
|
-
default: "border-(--border-
|
|
3514
|
-
primary: "border-(--border-
|
|
3515
|
-
secondary: "border-(--border-
|
|
3516
|
-
tertiary: "border-(--border-
|
|
3517
|
-
accent: "border-(--border-
|
|
3518
|
-
success: "border-(--border-
|
|
3519
|
-
danger: "border-(--border-
|
|
3520
|
-
warning: "border-(--border-
|
|
3521
|
-
info: "border-(--border-
|
|
3522
|
-
link: "border-(--border-
|
|
3961
|
+
default: "border-(--color-border-default)",
|
|
3962
|
+
primary: "border-(--color-border-primary)",
|
|
3963
|
+
secondary: "border-(--color-border-secondary)",
|
|
3964
|
+
tertiary: "border-(--color-border-tertiary)",
|
|
3965
|
+
accent: "border-(--color-border-accent)",
|
|
3966
|
+
success: "border-(--color-border-success)",
|
|
3967
|
+
danger: "border-(--color-border-danger)",
|
|
3968
|
+
warning: "border-(--color-border-warning)",
|
|
3969
|
+
info: "border-(--color-border-info)",
|
|
3970
|
+
link: "border-(--color-border-link)",
|
|
3523
3971
|
transparent: "border-transparent",
|
|
3524
3972
|
};
|
|
3525
3973
|
const filledBorderAppearanceClasses = {
|
|
3526
|
-
default: "border-(--
|
|
3527
|
-
primary: "border-(--
|
|
3528
|
-
secondary: "border-(--
|
|
3529
|
-
tertiary: "border-(--
|
|
3530
|
-
accent: "border-(--
|
|
3531
|
-
success: "border-(--
|
|
3532
|
-
danger: "border-(--
|
|
3533
|
-
warning: "border-(--
|
|
3534
|
-
info: "border-(--
|
|
3535
|
-
link: "border-(--
|
|
3974
|
+
default: "border-(--color-border-filled-default)",
|
|
3975
|
+
primary: "border-(--color-border-filled-primary)",
|
|
3976
|
+
secondary: "border-(--color-border-filled-secondary)",
|
|
3977
|
+
tertiary: "border-(--color-border-filled-tertiary)",
|
|
3978
|
+
accent: "border-(--color-border-filled-accent)",
|
|
3979
|
+
success: "border-(--color-border-filled-success)",
|
|
3980
|
+
danger: "border-(--color-border-filled-danger)",
|
|
3981
|
+
warning: "border-(--color-border-filled-warning)",
|
|
3982
|
+
info: "border-(--color-border-filled-info)",
|
|
3983
|
+
link: "border-(--color-border-filled-link)",
|
|
3536
3984
|
transparent: "border-transparent",
|
|
3537
3985
|
};
|
|
3538
3986
|
const ringAppearanceClasses = {
|
|
3539
|
-
default: "ring-(--border-
|
|
3540
|
-
primary: "ring-(--border-
|
|
3541
|
-
secondary: "ring-(--border-
|
|
3542
|
-
tertiary: "ring-(--border-
|
|
3543
|
-
accent: "ring-(--border-
|
|
3544
|
-
success: "ring-(--border-
|
|
3545
|
-
danger: "ring-(--border-
|
|
3546
|
-
warning: "ring-(--border-
|
|
3547
|
-
info: "ring-(--border-
|
|
3548
|
-
link: "ring-(--border-
|
|
3987
|
+
default: "ring-(--color-border-default)",
|
|
3988
|
+
primary: "ring-(--color-border-primary)",
|
|
3989
|
+
secondary: "ring-(--color-border-secondary)",
|
|
3990
|
+
tertiary: "ring-(--color-border-tertiary)",
|
|
3991
|
+
accent: "ring-(--color-border-accent)",
|
|
3992
|
+
success: "ring-(--color-border-success)",
|
|
3993
|
+
danger: "ring-(--color-border-danger)",
|
|
3994
|
+
warning: "ring-(--color-border-warning)",
|
|
3995
|
+
info: "ring-(--color-border-info)",
|
|
3996
|
+
link: "ring-(--color-border-link)",
|
|
3549
3997
|
transparent: "ring-transparent",
|
|
3550
3998
|
};
|
|
3551
3999
|
const filledRingAppearanceClasses = {
|
|
3552
|
-
default: "ring-(--
|
|
3553
|
-
primary: "ring-(--
|
|
3554
|
-
secondary: "ring-(--
|
|
3555
|
-
tertiary: "ring-(--
|
|
3556
|
-
accent: "ring-(--
|
|
3557
|
-
success: "ring-(--
|
|
3558
|
-
danger: "ring-(--
|
|
3559
|
-
warning: "ring-(--
|
|
3560
|
-
info: "ring-(--
|
|
3561
|
-
link: "ring-(--
|
|
4000
|
+
default: "ring-(--color-border-filled-default)",
|
|
4001
|
+
primary: "ring-(--color-border-filled-primary)",
|
|
4002
|
+
secondary: "ring-(--color-border-filled-secondary)",
|
|
4003
|
+
tertiary: "ring-(--color-border-filled-tertiary)",
|
|
4004
|
+
accent: "ring-(--color-border-filled-accent)",
|
|
4005
|
+
success: "ring-(--color-border-filled-success)",
|
|
4006
|
+
danger: "ring-(--color-border-filled-danger)",
|
|
4007
|
+
warning: "ring-(--color-border-filled-warning)",
|
|
4008
|
+
info: "ring-(--color-border-filled-info)",
|
|
4009
|
+
link: "ring-(--color-border-filled-link)",
|
|
3562
4010
|
transparent: "ring-transparent",
|
|
3563
4011
|
};
|
|
4012
|
+
const focusVisibleOutlineAppearanceClasses = {
|
|
4013
|
+
default: "focus-visible:outline-(--color-border-default)",
|
|
4014
|
+
primary: "focus-visible:outline-(--color-border-primary)",
|
|
4015
|
+
secondary: "focus-visible:outline-(--color-border-secondary)",
|
|
4016
|
+
tertiary: "focus-visible:outline-(--color-border-tertiary)",
|
|
4017
|
+
accent: "focus-visible:outline-(--color-border-accent)",
|
|
4018
|
+
success: "focus-visible:outline-(--color-border-success)",
|
|
4019
|
+
danger: "focus-visible:outline-(--color-border-danger)",
|
|
4020
|
+
warning: "focus-visible:outline-(--color-border-warning)",
|
|
4021
|
+
info: "focus-visible:outline-(--color-border-info)",
|
|
4022
|
+
link: "focus-visible:outline-(--color-border-link)",
|
|
4023
|
+
transparent: "focus-visible:outline-transparent",
|
|
4024
|
+
};
|
|
4025
|
+
const filledFocusVisibleOutlineAppearanceClasses = {
|
|
4026
|
+
default: "focus-visible:outline-(--color-border-filled-default)",
|
|
4027
|
+
primary: "focus-visible:outline-(--color-border-filled-primary)",
|
|
4028
|
+
secondary: "focus-visible:outline-(--color-border-filled-secondary)",
|
|
4029
|
+
tertiary: "focus-visible:outline-(--color-border-filled-tertiary)",
|
|
4030
|
+
accent: "focus-visible:outline-(--color-border-filled-accent)",
|
|
4031
|
+
success: "focus-visible:outline-(--color-border-filled-success)",
|
|
4032
|
+
danger: "focus-visible:outline-(--color-border-filled-danger)",
|
|
4033
|
+
warning: "focus-visible:outline-(--color-border-filled-warning)",
|
|
4034
|
+
info: "focus-visible:outline-(--color-border-filled-info)",
|
|
4035
|
+
link: "focus-visible:outline-(--color-border-filled-link)",
|
|
4036
|
+
transparent: "focus-visible:outline-transparent",
|
|
4037
|
+
};
|
|
3564
4038
|
const accentColorAppearanceClasses = {
|
|
3565
|
-
default: "accent-(--
|
|
3566
|
-
primary: "accent-(--
|
|
3567
|
-
secondary: "accent-(--
|
|
3568
|
-
tertiary: "accent-(--
|
|
3569
|
-
accent: "accent-(--
|
|
3570
|
-
success: "accent-(--
|
|
3571
|
-
danger: "accent-(--
|
|
3572
|
-
warning: "accent-(--
|
|
3573
|
-
info: "accent-(--
|
|
4039
|
+
default: "accent-(--color-bg-default)",
|
|
4040
|
+
primary: "accent-(--color-bg-primary)",
|
|
4041
|
+
secondary: "accent-(--color-bg-secondary)",
|
|
4042
|
+
tertiary: "accent-(--color-bg-tertiary)",
|
|
4043
|
+
accent: "accent-(--color-bg-accent)",
|
|
4044
|
+
success: "accent-(--color-bg-success)",
|
|
4045
|
+
danger: "accent-(--color-bg-danger)",
|
|
4046
|
+
warning: "accent-(--color-bg-warning)",
|
|
4047
|
+
info: "accent-(--color-bg-info)",
|
|
3574
4048
|
transparent: "accent-transparent",
|
|
3575
|
-
link: "accent-(--
|
|
4049
|
+
link: "accent-(--color-bg-link)",
|
|
3576
4050
|
};
|
|
3577
4051
|
const filledAccentColorAppearanceClasses = {
|
|
3578
|
-
default: "accent-(--
|
|
3579
|
-
primary: "accent-(--
|
|
3580
|
-
secondary: "accent-(--
|
|
3581
|
-
tertiary: "accent-(--
|
|
3582
|
-
accent: "accent-(--
|
|
3583
|
-
success: "accent-(--
|
|
3584
|
-
danger: "accent-(--
|
|
3585
|
-
warning: "accent-(--
|
|
3586
|
-
info: "accent-(--
|
|
4052
|
+
default: "accent-(--color-bg-filled-default)",
|
|
4053
|
+
primary: "accent-(--color-bg-filled-primary)",
|
|
4054
|
+
secondary: "accent-(--color-bg-filled-secondary)",
|
|
4055
|
+
tertiary: "accent-(--color-bg-filled-tertiary)",
|
|
4056
|
+
accent: "accent-(--color-bg-filled-accent)",
|
|
4057
|
+
success: "accent-(--color-bg-filled-success)",
|
|
4058
|
+
danger: "accent-(--color-bg-filled-danger)",
|
|
4059
|
+
warning: "accent-(--color-bg-filled-warning)",
|
|
4060
|
+
info: "accent-(--color-bg-filled-info)",
|
|
3587
4061
|
transparent: "accent-transparent",
|
|
3588
|
-
link: "accent-(--
|
|
4062
|
+
link: "accent-(--color-bg-filled-link)",
|
|
3589
4063
|
};
|
|
3590
4064
|
const checkedBackgroundAppearanceClasses = {
|
|
3591
|
-
default: "checked:bg-(--
|
|
3592
|
-
primary: "checked:bg-(--
|
|
3593
|
-
secondary: "checked:bg-(--
|
|
3594
|
-
tertiary: "checked:bg-(--
|
|
3595
|
-
accent: "checked:bg-(--
|
|
3596
|
-
success: "checked:bg-(--
|
|
3597
|
-
danger: "checked:bg-(--
|
|
3598
|
-
warning: "checked:bg-(--
|
|
3599
|
-
info: "checked:bg-(--
|
|
4065
|
+
default: "checked:bg-(--color-bg-default)",
|
|
4066
|
+
primary: "checked:bg-(--color-bg-primary)",
|
|
4067
|
+
secondary: "checked:bg-(--color-bg-secondary)",
|
|
4068
|
+
tertiary: "checked:bg-(--color-bg-tertiary)",
|
|
4069
|
+
accent: "checked:bg-(--color-bg-accent)",
|
|
4070
|
+
success: "checked:bg-(--color-bg-success)",
|
|
4071
|
+
danger: "checked:bg-(--color-bg-danger)",
|
|
4072
|
+
warning: "checked:bg-(--color-bg-warning)",
|
|
4073
|
+
info: "checked:bg-(--color-bg-info)",
|
|
3600
4074
|
transparent: "checked:bg-transparent",
|
|
3601
|
-
link: "checked:bg-(--
|
|
4075
|
+
link: "checked:bg-(--color-bg-link)",
|
|
3602
4076
|
};
|
|
3603
4077
|
const filledCheckedBackgroundAppearanceClasses = {
|
|
3604
|
-
default: "checked:bg-(--
|
|
3605
|
-
primary: "checked:bg-(--
|
|
3606
|
-
secondary: "checked:bg-(--
|
|
3607
|
-
tertiary: "checked:bg-(--
|
|
3608
|
-
accent: "checked:bg-(--
|
|
3609
|
-
success: "checked:bg-(--
|
|
3610
|
-
danger: "checked:bg-(--
|
|
3611
|
-
warning: "checked:bg-(--
|
|
3612
|
-
info: "checked:bg-(--
|
|
4078
|
+
default: "checked:bg-(--color-bg-filled-default)",
|
|
4079
|
+
primary: "checked:bg-(--color-bg-filled-primary)",
|
|
4080
|
+
secondary: "checked:bg-(--color-bg-filled-secondary)",
|
|
4081
|
+
tertiary: "checked:bg-(--color-bg-filled-tertiary)",
|
|
4082
|
+
accent: "checked:bg-(--color-bg-filled-accent)",
|
|
4083
|
+
success: "checked:bg-(--color-bg-filled-success)",
|
|
4084
|
+
danger: "checked:bg-(--color-bg-filled-danger)",
|
|
4085
|
+
warning: "checked:bg-(--color-bg-filled-warning)",
|
|
4086
|
+
info: "checked:bg-(--color-bg-filled-info)",
|
|
3613
4087
|
transparent: "checked:bg-transparent",
|
|
3614
|
-
link: "checked:bg-(--
|
|
4088
|
+
link: "checked:bg-(--color-bg-filled-link)",
|
|
3615
4089
|
};
|
|
3616
4090
|
|
|
3617
4091
|
class ShadowAppearanceTheme extends BaseTheme {
|
|
3618
4092
|
constructor(initial) {
|
|
3619
4093
|
super();
|
|
3620
4094
|
ComponentKeys.appearance.forEach((key) => {
|
|
3621
|
-
|
|
3622
|
-
this[key] = initialAppearance === undefined ? ShadowAppearanceTheme.defaultShadow : null;
|
|
4095
|
+
this[key] = initial;
|
|
3623
4096
|
});
|
|
3624
4097
|
}
|
|
3625
4098
|
getClasses(extractedKeys) {
|
|
@@ -3627,37 +4100,30 @@ class ShadowAppearanceTheme extends BaseTheme {
|
|
|
3627
4100
|
const appearance = (_a = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.appearance) !== null && _a !== void 0 ? _a : 'default';
|
|
3628
4101
|
const size = (_b = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.size) !== null && _b !== void 0 ? _b : 'md';
|
|
3629
4102
|
const shadow = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.shadow;
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
return ComponentKeys.mode.map(mode => { var _a, _b, _c; return (_c = (_b = (_a = this[appearance]) === null || _a === void 0 ? void 0 : _a[size]) === null || _b === void 0 ? void 0 : _b[mode]) !== null && _c !== void 0 ? _c : ""; });
|
|
4103
|
+
return shadow === undefined || shadow === 'noShadow'
|
|
4104
|
+
? []
|
|
4105
|
+
: ModeKeys.mode.map(mode => { var _a, _b, _c; return (_c = (_b = (_a = this[appearance]) === null || _a === void 0 ? void 0 : _a[size]) === null || _b === void 0 ? void 0 : _b[mode]) !== null && _c !== void 0 ? _c : ""; });
|
|
3634
4106
|
}
|
|
3635
|
-
static
|
|
3636
|
-
return new ShadowAppearanceTheme(
|
|
4107
|
+
static createUITheme() {
|
|
4108
|
+
return new ShadowAppearanceTheme(ShadowAppearanceTheme.defaultUIShadow);
|
|
3637
4109
|
}
|
|
3638
|
-
static createLayoutTheme(
|
|
3639
|
-
|
|
3640
|
-
ComponentKeys.appearance.forEach((key) => {
|
|
3641
|
-
if (theme[key] === ShadowAppearanceTheme.defaultShadow) {
|
|
3642
|
-
theme[key] = ShadowAppearanceTheme.layoutShadow;
|
|
3643
|
-
}
|
|
3644
|
-
});
|
|
3645
|
-
return theme;
|
|
4110
|
+
static createLayoutTheme() {
|
|
4111
|
+
return new ShadowAppearanceTheme(ShadowAppearanceTheme.defaultLayoutShadow);
|
|
3646
4112
|
}
|
|
3647
4113
|
}
|
|
3648
|
-
ShadowAppearanceTheme.
|
|
3649
|
-
xs: { base: "shadow-2xs", hover: "hover:shadow-xs", active: "" },
|
|
3650
|
-
sm: { base: "shadow-xs", hover: "hover:shadow-sm", active: "" },
|
|
3651
|
-
md: { base: "shadow-sm", hover: "hover:shadow-md", active: "" },
|
|
3652
|
-
lg: { base: "shadow-md", hover: "hover:shadow-lg", active: "" },
|
|
3653
|
-
xl: { base: "shadow-lg", hover: "hover:shadow-xl", active: "" }
|
|
4114
|
+
ShadowAppearanceTheme.defaultUIShadow = {
|
|
4115
|
+
xs: { base: "shadow-2xs", hover: "hover:shadow-xs", active: "", focus: "", focusVisible: "" },
|
|
4116
|
+
sm: { base: "shadow-xs", hover: "hover:shadow-sm", active: "", focus: "", focusVisible: "" },
|
|
4117
|
+
md: { base: "shadow-sm", hover: "hover:shadow-md", active: "", focus: "", focusVisible: "" },
|
|
4118
|
+
lg: { base: "shadow-md", hover: "hover:shadow-lg", active: "", focus: "", focusVisible: "" },
|
|
4119
|
+
xl: { base: "shadow-lg", hover: "hover:shadow-xl", active: "", focus: "", focusVisible: "" }
|
|
3654
4120
|
};
|
|
3655
|
-
ShadowAppearanceTheme.
|
|
3656
|
-
xs: { base: "shadow-2xs", hover: "", active: "" },
|
|
3657
|
-
sm: { base: "shadow-xs", hover: "", active: "" },
|
|
3658
|
-
md: { base: "shadow-sm", hover: "", active: "" },
|
|
3659
|
-
lg: { base: "shadow-md", hover: "", active: "" },
|
|
3660
|
-
xl: { base: "shadow-lg", hover: "", active: "" }
|
|
4121
|
+
ShadowAppearanceTheme.defaultLayoutShadow = {
|
|
4122
|
+
xs: { base: "shadow-2xs", hover: "", active: "", focus: "", focusVisible: "" },
|
|
4123
|
+
sm: { base: "shadow-xs", hover: "", active: "", focus: "", focusVisible: "" },
|
|
4124
|
+
md: { base: "shadow-sm", hover: "", active: "", focus: "", focusVisible: "" },
|
|
4125
|
+
lg: { base: "shadow-md", hover: "", active: "", focus: "", focusVisible: "" },
|
|
4126
|
+
xl: { base: "shadow-lg", hover: "", active: "", focus: "", focusVisible: "" }
|
|
3661
4127
|
};
|
|
3662
4128
|
|
|
3663
4129
|
class GenericVariantTheme extends BaseTheme {
|
|
@@ -3670,63 +4136,107 @@ class GenericVariantTheme extends BaseTheme {
|
|
|
3670
4136
|
getClasses(extractedKeys) {
|
|
3671
4137
|
var _a;
|
|
3672
4138
|
const variantKey = (_a = extractedKeys === null || extractedKeys === void 0 ? void 0 : extractedKeys.variant) !== null && _a !== void 0 ? _a : 'outline';
|
|
3673
|
-
|
|
3674
|
-
if (!activeTheme) {
|
|
3675
|
-
return [];
|
|
3676
|
-
}
|
|
3677
|
-
return activeTheme.getClasses(extractedKeys);
|
|
4139
|
+
return this[variantKey].getClasses(extractedKeys);
|
|
3678
4140
|
}
|
|
3679
|
-
// used for button,
|
|
4141
|
+
// used for button, badges, chips, etc - UI elements where transparent affects background
|
|
3680
4142
|
static createUIElementTextTheme() {
|
|
3681
4143
|
return new GenericVariantTheme({
|
|
3682
4144
|
outline: AppearanceTheme.createTheme({
|
|
3683
4145
|
base: textAppearanceClasses
|
|
3684
|
-
}, 'text'),
|
|
4146
|
+
}, 'text', true), // Layout/UI components: text themes should ignore transparent
|
|
4147
|
+
filled: AppearanceTheme.createTheme({
|
|
4148
|
+
base: filledTextAppearanceClasses
|
|
4149
|
+
}, 'text', true)
|
|
4150
|
+
});
|
|
4151
|
+
}
|
|
4152
|
+
// used for typography components where transparent affects text color
|
|
4153
|
+
static createTypographyTextTheme() {
|
|
4154
|
+
return new GenericVariantTheme({
|
|
4155
|
+
outline: AppearanceTheme.createTheme({
|
|
4156
|
+
base: textAppearanceClasses
|
|
4157
|
+
}, 'text', false), // Typography components: text themes should respect transparent
|
|
4158
|
+
filled: AppearanceTheme.createTheme({
|
|
4159
|
+
base: filledTextAppearanceClasses
|
|
4160
|
+
}, 'text', false)
|
|
4161
|
+
});
|
|
4162
|
+
}
|
|
4163
|
+
// used for typography components where transparent should NOT affect background
|
|
4164
|
+
static createTypographyBgTheme() {
|
|
4165
|
+
return new GenericVariantTheme({
|
|
4166
|
+
outline: AppearanceTheme.createTheme({
|
|
4167
|
+
base: backgroundAppearanceClasses,
|
|
4168
|
+
hover: hoverBackgroundAppearanceClasses,
|
|
4169
|
+
active: activeBackgroundAppearanceClasses
|
|
4170
|
+
}, 'bg', true), // Typography components: bg themes should ignore transparent
|
|
4171
|
+
filled: AppearanceTheme.createTheme({
|
|
4172
|
+
base: filledBackgroundAppearanceClasses,
|
|
4173
|
+
hover: filledHoverBackgroundAppearanceClasses,
|
|
4174
|
+
active: filledActiveBackgroundAppearanceClasses
|
|
4175
|
+
}, 'bg', true)
|
|
4176
|
+
});
|
|
4177
|
+
}
|
|
4178
|
+
// used for typography components where transparent should NOT affect border
|
|
4179
|
+
static createTypographyBorderTheme() {
|
|
4180
|
+
return new GenericVariantTheme({
|
|
4181
|
+
outline: AppearanceTheme.createTheme({
|
|
4182
|
+
base: borderAppearanceClasses
|
|
4183
|
+
}, 'border', true), // Typography components: border themes should ignore transparent
|
|
4184
|
+
filled: AppearanceTheme.createTheme({
|
|
4185
|
+
base: filledBorderAppearanceClasses
|
|
4186
|
+
}, 'border', true)
|
|
4187
|
+
});
|
|
4188
|
+
}
|
|
4189
|
+
// used for layout/UI components where transparent should NOT affect text
|
|
4190
|
+
static createUIElementTextThemeIgnoreTransparent() {
|
|
4191
|
+
return new GenericVariantTheme({
|
|
4192
|
+
outline: AppearanceTheme.createTheme({
|
|
4193
|
+
base: textAppearanceClasses
|
|
4194
|
+
}, 'text', true), // Layout/UI components: text themes should ignore transparent
|
|
3685
4195
|
filled: AppearanceTheme.createTheme({
|
|
3686
4196
|
base: filledTextAppearanceClasses
|
|
3687
|
-
}, 'text')
|
|
4197
|
+
}, 'text', true)
|
|
3688
4198
|
});
|
|
3689
4199
|
}
|
|
3690
4200
|
static createUIElementShadowTheme() {
|
|
3691
4201
|
return new GenericVariantTheme({
|
|
3692
|
-
outline: ShadowAppearanceTheme.
|
|
3693
|
-
filled: ShadowAppearanceTheme.
|
|
4202
|
+
outline: ShadowAppearanceTheme.createUITheme(),
|
|
4203
|
+
filled: ShadowAppearanceTheme.createUITheme()
|
|
3694
4204
|
});
|
|
3695
4205
|
}
|
|
3696
4206
|
static createLayoutShadowTheme() {
|
|
3697
4207
|
return new GenericVariantTheme({
|
|
3698
|
-
outline: ShadowAppearanceTheme.createLayoutTheme(
|
|
3699
|
-
filled: ShadowAppearanceTheme.createLayoutTheme(
|
|
4208
|
+
outline: ShadowAppearanceTheme.createLayoutTheme(),
|
|
4209
|
+
filled: ShadowAppearanceTheme.createLayoutTheme()
|
|
3700
4210
|
});
|
|
3701
4211
|
}
|
|
3702
4212
|
static createUIElementBorderTheme() {
|
|
3703
4213
|
return new GenericVariantTheme({
|
|
3704
4214
|
outline: AppearanceTheme.createTheme({
|
|
3705
4215
|
base: borderAppearanceClasses
|
|
3706
|
-
}, 'border'),
|
|
4216
|
+
}, 'border', true), // Layout/UI components: border themes should ignore transparent
|
|
3707
4217
|
filled: AppearanceTheme.createTheme({
|
|
3708
4218
|
base: filledBorderAppearanceClasses
|
|
3709
|
-
}, 'border')
|
|
4219
|
+
}, 'border', true)
|
|
3710
4220
|
});
|
|
3711
4221
|
}
|
|
3712
4222
|
static createUIElementRingTheme() {
|
|
3713
4223
|
return new GenericVariantTheme({
|
|
3714
4224
|
outline: AppearanceTheme.createTheme({
|
|
3715
4225
|
base: ringAppearanceClasses
|
|
3716
|
-
}, 'ring'),
|
|
4226
|
+
}, 'ring', true), // Layout/UI components: ring themes should ignore transparent
|
|
3717
4227
|
filled: AppearanceTheme.createTheme({
|
|
3718
4228
|
base: filledRingAppearanceClasses
|
|
3719
|
-
}, 'ring')
|
|
4229
|
+
}, 'ring', true)
|
|
3720
4230
|
});
|
|
3721
4231
|
}
|
|
3722
4232
|
static createCheckboxBgAppearanceTheme() {
|
|
3723
4233
|
return new GenericVariantTheme({
|
|
3724
4234
|
outline: AppearanceTheme.createTheme({
|
|
3725
4235
|
base: backgroundAppearanceClasses,
|
|
3726
|
-
}, 'bg'),
|
|
4236
|
+
}, 'bg', false), // Layout/UI components: bg themes should respect transparent
|
|
3727
4237
|
filled: AppearanceTheme.createTheme({
|
|
3728
4238
|
base: backgroundAppearanceClasses,
|
|
3729
|
-
}, 'bg')
|
|
4239
|
+
}, 'bg', false)
|
|
3730
4240
|
});
|
|
3731
4241
|
}
|
|
3732
4242
|
static createBgAppearanceTheme() {
|
|
@@ -3735,52 +4245,62 @@ class GenericVariantTheme extends BaseTheme {
|
|
|
3735
4245
|
base: backgroundAppearanceClasses,
|
|
3736
4246
|
hover: hoverBackgroundAppearanceClasses,
|
|
3737
4247
|
active: activeBackgroundAppearanceClasses
|
|
3738
|
-
}, 'bg'),
|
|
4248
|
+
}, 'bg', false), // Layout/UI components: bg themes should respect transparent
|
|
3739
4249
|
filled: AppearanceTheme.createTheme({
|
|
3740
4250
|
base: filledBackgroundAppearanceClasses,
|
|
3741
4251
|
hover: filledHoverBackgroundAppearanceClasses,
|
|
3742
4252
|
active: filledActiveBackgroundAppearanceClasses
|
|
3743
|
-
}, 'bg')
|
|
4253
|
+
}, 'bg', false)
|
|
3744
4254
|
});
|
|
3745
4255
|
}
|
|
3746
4256
|
static createSimpleUIElementBgAppearanceTheme() {
|
|
3747
4257
|
return new GenericVariantTheme({
|
|
3748
4258
|
outline: AppearanceTheme.createTheme({
|
|
3749
4259
|
base: backgroundAppearanceClasses,
|
|
3750
|
-
}, 'bg'),
|
|
4260
|
+
}, 'bg', false), // Layout/UI components: bg themes should respect transparent
|
|
3751
4261
|
filled: AppearanceTheme.createTheme({
|
|
3752
4262
|
base: filledBackgroundAppearanceClasses,
|
|
3753
|
-
}, 'bg')
|
|
4263
|
+
}, 'bg', false)
|
|
3754
4264
|
});
|
|
3755
4265
|
}
|
|
3756
4266
|
static createAccentColorAppearanceTheme() {
|
|
3757
4267
|
return new GenericVariantTheme({
|
|
3758
4268
|
outline: AppearanceTheme.createTheme({
|
|
3759
4269
|
base: accentColorAppearanceClasses
|
|
3760
|
-
}, 'accent'),
|
|
4270
|
+
}, 'accent', true), // Layout/UI components: accent themes should ignore transparent
|
|
3761
4271
|
filled: AppearanceTheme.createTheme({
|
|
3762
4272
|
base: filledAccentColorAppearanceClasses
|
|
3763
|
-
}, 'accent')
|
|
4273
|
+
}, 'accent', true)
|
|
3764
4274
|
});
|
|
3765
4275
|
}
|
|
3766
4276
|
static createCheckedAppearanceTheme() {
|
|
3767
4277
|
return new GenericVariantTheme({
|
|
3768
4278
|
outline: AppearanceTheme.createTheme({
|
|
3769
4279
|
base: checkedBackgroundAppearanceClasses
|
|
3770
|
-
}, 'bg'),
|
|
4280
|
+
}, 'bg', false), // Layout/UI components: bg themes should respect transparent
|
|
3771
4281
|
filled: AppearanceTheme.createTheme({
|
|
3772
4282
|
base: filledCheckedBackgroundAppearanceClasses
|
|
3773
|
-
}, 'bg')
|
|
4283
|
+
}, 'bg', false)
|
|
3774
4284
|
});
|
|
3775
4285
|
}
|
|
3776
4286
|
static createLayoutBgAppearanceTheme() {
|
|
3777
4287
|
return new GenericVariantTheme({
|
|
3778
4288
|
outline: AppearanceTheme.createTheme({
|
|
3779
4289
|
base: layoutBackgroundAppearanceClasses
|
|
3780
|
-
}, 'bg'),
|
|
4290
|
+
}, 'bg', false), // Layout components: bg themes should respect transparent
|
|
3781
4291
|
filled: AppearanceTheme.createTheme({
|
|
3782
4292
|
base: layoutFilledBackgroundAppearanceClasses
|
|
3783
|
-
}, 'bg')
|
|
4293
|
+
}, 'bg', false)
|
|
4294
|
+
});
|
|
4295
|
+
}
|
|
4296
|
+
static createUIElementFocusVisibleTheme() {
|
|
4297
|
+
return new GenericVariantTheme({
|
|
4298
|
+
outline: AppearanceTheme.createTheme({
|
|
4299
|
+
focusVisible: focusVisibleOutlineAppearanceClasses
|
|
4300
|
+
}, 'focusVisible', true), // UI components: focusVisible themes should ignore transparent
|
|
4301
|
+
filled: AppearanceTheme.createTheme({
|
|
4302
|
+
focusVisible: filledFocusVisibleOutlineAppearanceClasses
|
|
4303
|
+
}, 'focusVisible', true)
|
|
3784
4304
|
});
|
|
3785
4305
|
}
|
|
3786
4306
|
}
|
|
@@ -3835,6 +4355,7 @@ const themeDefaults = {
|
|
|
3835
4355
|
padding: true,
|
|
3836
4356
|
ring: true,
|
|
3837
4357
|
shadow: true,
|
|
4358
|
+
focusVisible: true,
|
|
3838
4359
|
},
|
|
3839
4360
|
card: {
|
|
3840
4361
|
md: true,
|
|
@@ -3941,6 +4462,16 @@ const themeDefaults = {
|
|
|
3941
4462
|
grid: true,
|
|
3942
4463
|
gap: true,
|
|
3943
4464
|
},
|
|
4465
|
+
grid5: {
|
|
4466
|
+
md: true,
|
|
4467
|
+
grid: true,
|
|
4468
|
+
gap: true,
|
|
4469
|
+
},
|
|
4470
|
+
grid6: {
|
|
4471
|
+
md: true,
|
|
4472
|
+
grid: true,
|
|
4473
|
+
gap: true,
|
|
4474
|
+
},
|
|
3944
4475
|
divider: {
|
|
3945
4476
|
md: true,
|
|
3946
4477
|
default: true,
|
|
@@ -4013,6 +4544,7 @@ const themeDefaults = {
|
|
|
4013
4544
|
noRing: true,
|
|
4014
4545
|
noShadow: true,
|
|
4015
4546
|
filled: true,
|
|
4547
|
+
focusVisible: true,
|
|
4016
4548
|
},
|
|
4017
4549
|
check: {
|
|
4018
4550
|
default: true,
|
|
@@ -4027,6 +4559,18 @@ const themeDefaults = {
|
|
|
4027
4559
|
filled: true,
|
|
4028
4560
|
},
|
|
4029
4561
|
},
|
|
4562
|
+
input: {
|
|
4563
|
+
md: true,
|
|
4564
|
+
default: true,
|
|
4565
|
+
rounded: true,
|
|
4566
|
+
outline: true,
|
|
4567
|
+
sans: true,
|
|
4568
|
+
normal: true,
|
|
4569
|
+
padding: true,
|
|
4570
|
+
ring: true,
|
|
4571
|
+
noShadow: true,
|
|
4572
|
+
focusVisible: true,
|
|
4573
|
+
},
|
|
4030
4574
|
};
|
|
4031
4575
|
|
|
4032
4576
|
const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-pointer transition-all duration-200 whitespace-nowrap", {
|
|
@@ -4040,20 +4584,22 @@ const defaultButtonTheme = new ComponentTheme("button", "w-fit h-fit cursor-poin
|
|
|
4040
4584
|
},
|
|
4041
4585
|
appearance: {
|
|
4042
4586
|
background: GenericVariantTheme.createBgAppearanceTheme(),
|
|
4043
|
-
text: GenericVariantTheme.
|
|
4587
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4044
4588
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4045
4589
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4590
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme(),
|
|
4046
4591
|
shadow: GenericVariantTheme.createUIElementShadowTheme()
|
|
4047
4592
|
},
|
|
4048
4593
|
layout: {
|
|
4049
|
-
...
|
|
4594
|
+
...defaultLayoutsThemes,
|
|
4050
4595
|
border: new BorderTheme(),
|
|
4051
4596
|
ring: new RingTheme(),
|
|
4597
|
+
focusVisible: new FocusVisibleTheme(),
|
|
4052
4598
|
radius: RadiusTheme.createUITheme(),
|
|
4053
4599
|
wrap: new WrapTheme(),
|
|
4054
4600
|
flexDirection: new DirectionTheme(),
|
|
4055
4601
|
},
|
|
4056
|
-
typography:
|
|
4602
|
+
typography: defaultTypographyThemes,
|
|
4057
4603
|
}, themeDefaults.button, BUTTON_CATEGORIES, (props) => {
|
|
4058
4604
|
// Determine tag based on href prop
|
|
4059
4605
|
return props.href ? "a" : "button";
|
|
@@ -4068,20 +4614,22 @@ const defaultBadgeTheme = new ComponentTheme("span", "w-fit h-fit transition-all
|
|
|
4068
4614
|
},
|
|
4069
4615
|
appearance: {
|
|
4070
4616
|
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
4071
|
-
text: GenericVariantTheme.
|
|
4617
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4072
4618
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4073
4619
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4620
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme(),
|
|
4074
4621
|
shadow: GenericVariantTheme.createLayoutShadowTheme()
|
|
4075
4622
|
},
|
|
4076
4623
|
layout: {
|
|
4077
|
-
...
|
|
4624
|
+
...defaultLayoutsThemes,
|
|
4078
4625
|
border: new BorderTheme(),
|
|
4079
4626
|
ring: new RingTheme(),
|
|
4627
|
+
focusVisible: new FocusVisibleTheme(),
|
|
4080
4628
|
radius: RadiusTheme.createUITheme(),
|
|
4081
4629
|
wrap: new WrapTheme(),
|
|
4082
4630
|
flexDirection: new DirectionTheme(),
|
|
4083
4631
|
},
|
|
4084
|
-
typography:
|
|
4632
|
+
typography: defaultTypographyThemes,
|
|
4085
4633
|
}, themeDefaults.badge, BADGE_CATEGORIES, (props) => {
|
|
4086
4634
|
return props.href ? "a" : "span";
|
|
4087
4635
|
});
|
|
@@ -4095,20 +4643,22 @@ const defaultChipTheme = new ComponentTheme("span", "w-fit h-fit transition-all
|
|
|
4095
4643
|
},
|
|
4096
4644
|
appearance: {
|
|
4097
4645
|
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
4098
|
-
text: GenericVariantTheme.
|
|
4646
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4099
4647
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4100
4648
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4649
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme(),
|
|
4101
4650
|
shadow: GenericVariantTheme.createLayoutShadowTheme()
|
|
4102
4651
|
},
|
|
4103
4652
|
layout: {
|
|
4104
|
-
...
|
|
4653
|
+
...defaultLayoutsThemes,
|
|
4105
4654
|
radius: RadiusTheme.createUITheme(),
|
|
4106
4655
|
border: new BorderTheme(),
|
|
4107
4656
|
ring: new RingTheme(),
|
|
4657
|
+
focusVisible: new FocusVisibleTheme(),
|
|
4108
4658
|
wrap: new WrapTheme(),
|
|
4109
4659
|
flexDirection: new DirectionTheme(),
|
|
4110
4660
|
},
|
|
4111
|
-
typography:
|
|
4661
|
+
typography: defaultTypographyThemes,
|
|
4112
4662
|
}, themeDefaults.chip, CHIP_CATEGORIES, (props) => {
|
|
4113
4663
|
return props.href ? "a" : "span";
|
|
4114
4664
|
});
|
|
@@ -4122,20 +4672,22 @@ const defaultCodeTheme = new ComponentTheme("code", "", {
|
|
|
4122
4672
|
},
|
|
4123
4673
|
appearance: {
|
|
4124
4674
|
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
4125
|
-
text: GenericVariantTheme.
|
|
4675
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4126
4676
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4127
4677
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4678
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme(),
|
|
4128
4679
|
shadow: GenericVariantTheme.createLayoutShadowTheme()
|
|
4129
4680
|
},
|
|
4130
4681
|
layout: {
|
|
4131
|
-
...
|
|
4682
|
+
...defaultLayoutsThemes,
|
|
4132
4683
|
radius: RadiusTheme.createUITheme(),
|
|
4133
4684
|
border: new BorderTheme(),
|
|
4134
4685
|
ring: new RingTheme(),
|
|
4686
|
+
focusVisible: new FocusVisibleTheme(),
|
|
4135
4687
|
wrap: new WrapTheme(),
|
|
4136
4688
|
flexDirection: new DirectionTheme(),
|
|
4137
4689
|
},
|
|
4138
|
-
typography:
|
|
4690
|
+
typography: defaultTypographyThemes,
|
|
4139
4691
|
}, themeDefaults.code, CODE_CATEGORIES);
|
|
4140
4692
|
|
|
4141
4693
|
const isObject = (item) => {
|
|
@@ -4251,10 +4803,10 @@ const createTypographyComponentTheme = (tag, base = "text-balance", textSizeMap
|
|
|
4251
4803
|
text: new SizeTheme(textSizeMap),
|
|
4252
4804
|
},
|
|
4253
4805
|
appearance: {
|
|
4254
|
-
text: GenericVariantTheme.
|
|
4806
|
+
text: GenericVariantTheme.createTypographyTextTheme(),
|
|
4255
4807
|
},
|
|
4256
|
-
typography:
|
|
4257
|
-
layout:
|
|
4808
|
+
typography: defaultTypographyThemes,
|
|
4809
|
+
layout: defaultLayoutsThemes,
|
|
4258
4810
|
}, defaults, TYPOGRAPHY_CATEGORIES, (props) => {
|
|
4259
4811
|
// Determine tag based on href prop
|
|
4260
4812
|
return props.href ? "a" : tag;
|
|
@@ -4286,10 +4838,10 @@ const linkTheme = new ComponentTheme("a", "hover:underline w-fit cursor-pointer"
|
|
|
4286
4838
|
text: new SizeTheme(textSizeClasses, false),
|
|
4287
4839
|
},
|
|
4288
4840
|
appearance: {
|
|
4289
|
-
text: GenericVariantTheme.
|
|
4841
|
+
text: GenericVariantTheme.createTypographyTextTheme(),
|
|
4290
4842
|
},
|
|
4291
|
-
typography:
|
|
4292
|
-
layout:
|
|
4843
|
+
typography: defaultTypographyThemes,
|
|
4844
|
+
layout: defaultLayoutsThemes,
|
|
4293
4845
|
}, themeDefaults.link, TYPOGRAPHY_CATEGORIES);
|
|
4294
4846
|
// List specific theme
|
|
4295
4847
|
const listItemTheme = new ComponentTheme("li", "", {
|
|
@@ -4297,9 +4849,9 @@ const listItemTheme = new ComponentTheme("li", "", {
|
|
|
4297
4849
|
text: new SizeTheme(textSizeClasses, false),
|
|
4298
4850
|
},
|
|
4299
4851
|
appearance: {
|
|
4300
|
-
text: GenericVariantTheme.
|
|
4852
|
+
text: GenericVariantTheme.createTypographyTextTheme(),
|
|
4301
4853
|
},
|
|
4302
|
-
typography:
|
|
4854
|
+
typography: defaultTypographyThemes,
|
|
4303
4855
|
}, themeDefaults.listItem, TYPOGRAPHY_CATEGORIES);
|
|
4304
4856
|
// List specific theme
|
|
4305
4857
|
const listTheme = new ComponentTheme("ul", "list-inside", {
|
|
@@ -4308,10 +4860,10 @@ const listTheme = new ComponentTheme("ul", "list-inside", {
|
|
|
4308
4860
|
paddingLeft: new PlTheme(),
|
|
4309
4861
|
},
|
|
4310
4862
|
appearance: {
|
|
4311
|
-
text: GenericVariantTheme.
|
|
4863
|
+
text: GenericVariantTheme.createTypographyTextTheme(),
|
|
4312
4864
|
},
|
|
4313
|
-
typography:
|
|
4314
|
-
layout:
|
|
4865
|
+
typography: defaultTypographyThemes,
|
|
4866
|
+
layout: defaultLayoutsThemes,
|
|
4315
4867
|
listStyle: new ListStyleTheme(),
|
|
4316
4868
|
}, themeDefaults.list, LIST_CATEGORIES, (props) => {
|
|
4317
4869
|
// Determine tag based on list style from props
|
|
@@ -4338,23 +4890,29 @@ class BreakpointTheme extends BaseTheme {
|
|
|
4338
4890
|
const defaultCardTheme = new ComponentTheme("div", "", {
|
|
4339
4891
|
size: {
|
|
4340
4892
|
px: new PxTheme({
|
|
4341
|
-
xs: "px-
|
|
4342
|
-
sm: "px-
|
|
4343
|
-
md: "px-
|
|
4344
|
-
lg: "px-
|
|
4345
|
-
xl: "px-
|
|
4893
|
+
xs: "px-4",
|
|
4894
|
+
sm: "px-5 max-lg:px-4",
|
|
4895
|
+
md: "px-6 max-lg:px-5",
|
|
4896
|
+
lg: "px-7 max-lg:px-6 max-md:px-5",
|
|
4897
|
+
xl: "px-8 max-lg:px-7 max-md:px-6"
|
|
4346
4898
|
}),
|
|
4347
4899
|
py: new PyTheme({
|
|
4348
|
-
xs: "py-
|
|
4349
|
-
sm: "py-
|
|
4350
|
-
md: "py-
|
|
4351
|
-
lg: "py-
|
|
4352
|
-
xl: "py-
|
|
4900
|
+
xs: "py-4",
|
|
4901
|
+
sm: "py-5 max-lg:py-4",
|
|
4902
|
+
md: "py-6 max-lg:py-5",
|
|
4903
|
+
lg: "py-7 max-lg:py-6 max-md:py-5",
|
|
4904
|
+
xl: "py-8 max-lg:py-7 max-md:py-6"
|
|
4905
|
+
}),
|
|
4906
|
+
gap: new GapTheme({
|
|
4907
|
+
xs: "gap-2",
|
|
4908
|
+
sm: "gap-3 max-lg:gap-2",
|
|
4909
|
+
md: "gap-4 max-lg:gap-3",
|
|
4910
|
+
lg: "gap-5 max-lg:gap-4 max-md:gap-3",
|
|
4911
|
+
xl: "gap-6 max-lg:gap-5 max-md:gap-4"
|
|
4353
4912
|
}),
|
|
4354
|
-
gap: new GapTheme(),
|
|
4355
4913
|
},
|
|
4356
4914
|
layout: {
|
|
4357
|
-
...
|
|
4915
|
+
...defaultLayoutsThemes,
|
|
4358
4916
|
border: new BorderTheme(),
|
|
4359
4917
|
ring: new RingTheme(),
|
|
4360
4918
|
radius: RadiusTheme.createLayoutTheme(),
|
|
@@ -4365,14 +4923,12 @@ const defaultCardTheme = new ComponentTheme("div", "", {
|
|
|
4365
4923
|
},
|
|
4366
4924
|
appearance: {
|
|
4367
4925
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
4368
|
-
text: GenericVariantTheme.
|
|
4926
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4369
4927
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4370
4928
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4371
4929
|
},
|
|
4372
|
-
typography:
|
|
4373
|
-
}, themeDefaults.card, CARD_CATEGORIES
|
|
4374
|
-
return props.href ? "a" : "div";
|
|
4375
|
-
});
|
|
4930
|
+
typography: defaultTypographyThemes,
|
|
4931
|
+
}, themeDefaults.card, CARD_CATEGORIES);
|
|
4376
4932
|
|
|
4377
4933
|
const defaultRowTheme = new ComponentTheme("div", "", {
|
|
4378
4934
|
size: {
|
|
@@ -4380,7 +4936,7 @@ const defaultRowTheme = new ComponentTheme("div", "", {
|
|
|
4380
4936
|
breakpoint: new BreakpointTheme(),
|
|
4381
4937
|
},
|
|
4382
4938
|
layout: {
|
|
4383
|
-
...
|
|
4939
|
+
...defaultLayoutsThemes,
|
|
4384
4940
|
wrap: new WrapTheme(),
|
|
4385
4941
|
direction: new DirectionTheme(),
|
|
4386
4942
|
border: new BorderTheme(),
|
|
@@ -4389,15 +4945,12 @@ const defaultRowTheme = new ComponentTheme("div", "", {
|
|
|
4389
4945
|
},
|
|
4390
4946
|
appearance: {
|
|
4391
4947
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
4392
|
-
text: GenericVariantTheme.
|
|
4948
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4393
4949
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4394
4950
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4395
4951
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
4396
4952
|
}
|
|
4397
|
-
}, themeDefaults.row, ROW_CATEGORIES
|
|
4398
|
-
// Determine tag based on href prop
|
|
4399
|
-
return props.href ? "a" : "div";
|
|
4400
|
-
});
|
|
4953
|
+
}, themeDefaults.row, ROW_CATEGORIES);
|
|
4401
4954
|
|
|
4402
4955
|
const defaultDividerTheme = new ComponentTheme("div", "h-px w-full", {
|
|
4403
4956
|
size: {
|
|
@@ -4408,7 +4961,7 @@ const defaultDividerTheme = new ComponentTheme("div", "h-px w-full", {
|
|
|
4408
4961
|
base: bgBorderAppearanceClasses,
|
|
4409
4962
|
}, 'bg'),
|
|
4410
4963
|
},
|
|
4411
|
-
layout:
|
|
4964
|
+
layout: defaultLayoutsThemes,
|
|
4412
4965
|
}, themeDefaults.divider, DIVIDER_CATEGORIES);
|
|
4413
4966
|
|
|
4414
4967
|
const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full", {
|
|
@@ -4423,7 +4976,7 @@ const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full
|
|
|
4423
4976
|
maxWidth: new SizeTheme({ xs: 'max-w-3xl', sm: 'max-w-4xl', md: 'max-w-5xl', lg: 'max-w-6xl', xl: 'max-w-7xl' }),
|
|
4424
4977
|
},
|
|
4425
4978
|
layout: {
|
|
4426
|
-
...
|
|
4979
|
+
...defaultLayoutsThemes,
|
|
4427
4980
|
border: new BorderTheme(),
|
|
4428
4981
|
ring: new RingTheme(),
|
|
4429
4982
|
wrap: new WrapTheme(),
|
|
@@ -4432,21 +4985,19 @@ const defaultContainerTheme = new ComponentTheme("div", "flex-col mx-auto w-full
|
|
|
4432
4985
|
},
|
|
4433
4986
|
appearance: {
|
|
4434
4987
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
4435
|
-
text: GenericVariantTheme.
|
|
4988
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4436
4989
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4437
4990
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4438
4991
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
4439
4992
|
}
|
|
4440
|
-
}, themeDefaults.container, CONTAINER_CATEGORIES
|
|
4441
|
-
return props.href ? "a" : "div";
|
|
4442
|
-
});
|
|
4993
|
+
}, themeDefaults.container, CONTAINER_CATEGORIES);
|
|
4443
4994
|
|
|
4444
4995
|
const defaultColTheme = new ComponentTheme("div", "", {
|
|
4445
4996
|
size: {
|
|
4446
4997
|
gap: new GapTheme(),
|
|
4447
4998
|
},
|
|
4448
4999
|
layout: {
|
|
4449
|
-
...
|
|
5000
|
+
...defaultLayoutsThemes,
|
|
4450
5001
|
wrap: new WrapTheme(),
|
|
4451
5002
|
direction: new DirectionTheme(),
|
|
4452
5003
|
border: new BorderTheme(),
|
|
@@ -4455,14 +5006,12 @@ const defaultColTheme = new ComponentTheme("div", "", {
|
|
|
4455
5006
|
},
|
|
4456
5007
|
appearance: {
|
|
4457
5008
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
4458
|
-
text: GenericVariantTheme.
|
|
5009
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4459
5010
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4460
5011
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4461
5012
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
4462
5013
|
}
|
|
4463
|
-
}, themeDefaults.col, COL_CATEGORIES
|
|
4464
|
-
return props.href ? "a" : "div";
|
|
4465
|
-
});
|
|
5014
|
+
}, themeDefaults.col, COL_CATEGORIES);
|
|
4466
5015
|
|
|
4467
5016
|
const defaultStackTheme = new ComponentTheme("div", "", {
|
|
4468
5017
|
size: {
|
|
@@ -4472,7 +5021,7 @@ const defaultStackTheme = new ComponentTheme("div", "", {
|
|
|
4472
5021
|
breakpoint: new BreakpointTheme(),
|
|
4473
5022
|
},
|
|
4474
5023
|
layout: {
|
|
4475
|
-
...
|
|
5024
|
+
...defaultLayoutsThemes,
|
|
4476
5025
|
wrap: new WrapTheme(),
|
|
4477
5026
|
direction: new DirectionTheme(),
|
|
4478
5027
|
border: new BorderTheme(),
|
|
@@ -4481,14 +5030,12 @@ const defaultStackTheme = new ComponentTheme("div", "", {
|
|
|
4481
5030
|
},
|
|
4482
5031
|
appearance: {
|
|
4483
5032
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
4484
|
-
text: GenericVariantTheme.
|
|
5033
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4485
5034
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4486
5035
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4487
5036
|
shadow: GenericVariantTheme.createLayoutShadowTheme(),
|
|
4488
5037
|
}
|
|
4489
|
-
}, themeDefaults.stack, STACK_CATEGORIES
|
|
4490
|
-
return props.href ? "a" : "div";
|
|
4491
|
-
});
|
|
5038
|
+
}, themeDefaults.stack, STACK_CATEGORIES);
|
|
4492
5039
|
|
|
4493
5040
|
const defaultSectionTheme = new ComponentTheme("div", "w-full flex-col", {
|
|
4494
5041
|
size: {
|
|
@@ -4511,22 +5058,20 @@ const defaultSectionTheme = new ComponentTheme("div", "w-full flex-col", {
|
|
|
4511
5058
|
},
|
|
4512
5059
|
appearance: {
|
|
4513
5060
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
4514
|
-
text: GenericVariantTheme.
|
|
5061
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4515
5062
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4516
5063
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
4517
5064
|
shadow: ShadowAppearanceTheme.createLayoutTheme(),
|
|
4518
5065
|
},
|
|
4519
5066
|
layout: {
|
|
4520
|
-
...
|
|
5067
|
+
...defaultLayoutsThemes,
|
|
4521
5068
|
wrap: new WrapTheme(),
|
|
4522
5069
|
direction: new DirectionTheme(),
|
|
4523
5070
|
border: new BorderTheme(),
|
|
4524
5071
|
ring: new RingTheme(),
|
|
4525
5072
|
radius: RadiusTheme.createLayoutTheme(),
|
|
4526
5073
|
},
|
|
4527
|
-
}, themeDefaults.section, SECTION_CATEGORIES
|
|
4528
|
-
return props.href ? "a" : "div";
|
|
4529
|
-
});
|
|
5074
|
+
}, themeDefaults.section, SECTION_CATEGORIES);
|
|
4530
5075
|
|
|
4531
5076
|
const gridSubThemes = {
|
|
4532
5077
|
size: {
|
|
@@ -4540,23 +5085,19 @@ const gridSubThemes = {
|
|
|
4540
5085
|
},
|
|
4541
5086
|
appearance: {
|
|
4542
5087
|
background: GenericVariantTheme.createLayoutBgAppearanceTheme(),
|
|
4543
|
-
text: GenericVariantTheme.
|
|
5088
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
4544
5089
|
},
|
|
4545
5090
|
layout: {
|
|
4546
|
-
...
|
|
5091
|
+
...defaultLayoutsThemes,
|
|
4547
5092
|
wrap: new WrapTheme(),
|
|
4548
5093
|
flexDirection: new DirectionTheme(),
|
|
4549
5094
|
},
|
|
4550
5095
|
};
|
|
4551
|
-
const defaultGrid2Theme = new ComponentTheme("div", "grid-cols-1 md:grid-cols-2", gridSubThemes, themeDefaults.grid2, GRID_CATEGORIES
|
|
4552
|
-
|
|
4553
|
-
|
|
4554
|
-
const
|
|
4555
|
-
|
|
4556
|
-
});
|
|
4557
|
-
const defaultGrid4Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4", gridSubThemes, themeDefaults.grid4, GRID_CATEGORIES, (props) => {
|
|
4558
|
-
return props.href ? "a" : "div";
|
|
4559
|
-
});
|
|
5096
|
+
const defaultGrid2Theme = new ComponentTheme("div", "grid-cols-1 md:grid-cols-2", gridSubThemes, themeDefaults.grid2, GRID_CATEGORIES);
|
|
5097
|
+
const defaultGrid3Theme = new ComponentTheme("div", "grid-cols-1 md:grid-cols-3", gridSubThemes, themeDefaults.grid3, GRID_CATEGORIES);
|
|
5098
|
+
const defaultGrid4Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4", gridSubThemes, themeDefaults.grid4, GRID_CATEGORIES);
|
|
5099
|
+
const defaultGrid5Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5", gridSubThemes, themeDefaults.grid5, GRID_CATEGORIES);
|
|
5100
|
+
const defaultGrid6Theme = new ComponentTheme("div", "grid-cols-1 sm:grid-cols-2 md:grid-cols-4 lg:grid-cols-6", gridSubThemes, themeDefaults.grid6, GRID_CATEGORIES);
|
|
4560
5101
|
|
|
4561
5102
|
var _a, _b, _c;
|
|
4562
5103
|
const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-start-1 cursor-pointer appearance-none ring-transparent", {
|
|
@@ -4571,15 +5112,16 @@ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-s
|
|
|
4571
5112
|
text: new SizeTheme(textSizeClasses)
|
|
4572
5113
|
},
|
|
4573
5114
|
layout: {
|
|
4574
|
-
...
|
|
5115
|
+
...defaultLayoutsThemes,
|
|
4575
5116
|
border: new BorderTheme(),
|
|
4576
5117
|
ring: new RingTheme(),
|
|
5118
|
+
focusVisible: new FocusVisibleTheme(),
|
|
4577
5119
|
radius: RadiusTheme.createUITheme({
|
|
4578
|
-
xs: 'rounded-(--ui-
|
|
4579
|
-
sm: 'rounded-(--ui-
|
|
4580
|
-
md: 'rounded-(--ui-
|
|
4581
|
-
lg: 'rounded-(--ui-
|
|
4582
|
-
xl: 'rounded-(--ui-
|
|
5120
|
+
xs: 'rounded-(--ui-br-xs)',
|
|
5121
|
+
sm: 'rounded-(--ui-br-xs)',
|
|
5122
|
+
md: 'rounded-(--ui-br-sm)',
|
|
5123
|
+
lg: 'rounded-(--ui-br-sm)',
|
|
5124
|
+
xl: 'rounded-(--ui-br-md)'
|
|
4583
5125
|
}),
|
|
4584
5126
|
},
|
|
4585
5127
|
appearance: {
|
|
@@ -4587,6 +5129,7 @@ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-s
|
|
|
4587
5129
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4588
5130
|
background: GenericVariantTheme.createCheckboxBgAppearanceTheme(),
|
|
4589
5131
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
5132
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme(),
|
|
4590
5133
|
check: GenericVariantTheme.createCheckedAppearanceTheme(),
|
|
4591
5134
|
shadow: GenericVariantTheme.createUIElementShadowTheme(),
|
|
4592
5135
|
}
|
|
@@ -4594,9 +5137,13 @@ const defaultCheckboxTheme = new ComponentTheme("input", "peer col-start-1 row-s
|
|
|
4594
5137
|
const defaultCheckTheme = new ComponentTheme("span", "invisible col-start-1 row-start-1 peer-checked:visible", {
|
|
4595
5138
|
checkElement: () => jsxRuntime.jsx("svg", { viewBox: "0 0 14 14", fill: "none", children: jsxRuntime.jsx("path", { d: "M3 8L6 11L11 3.5", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", fill: "none", stroke: "currentColor" }) }),
|
|
4596
5139
|
appearance: {
|
|
4597
|
-
color: GenericVariantTheme.
|
|
5140
|
+
color: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
5141
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme()
|
|
5142
|
+
},
|
|
5143
|
+
layout: {
|
|
5144
|
+
...defaultLayoutsThemes,
|
|
5145
|
+
focusVisible: new FocusVisibleTheme()
|
|
4598
5146
|
},
|
|
4599
|
-
layout: defaultLayoutTheme,
|
|
4600
5147
|
}, ((_b = themeDefaults.checkbox) === null || _b === void 0 ? void 0 : _b.check) || {}, CHECKBOX_CATEGORIES);
|
|
4601
5148
|
const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
|
|
4602
5149
|
size: {
|
|
@@ -4608,9 +5155,13 @@ const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
|
|
|
4608
5155
|
xl: 'h-7'
|
|
4609
5156
|
})
|
|
4610
5157
|
},
|
|
4611
|
-
layout:
|
|
5158
|
+
layout: {
|
|
5159
|
+
...defaultLayoutsThemes,
|
|
5160
|
+
focusVisible: new FocusVisibleTheme()
|
|
5161
|
+
},
|
|
4612
5162
|
appearance: {
|
|
4613
|
-
variant: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme()
|
|
5163
|
+
variant: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
5164
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme()
|
|
4614
5165
|
}
|
|
4615
5166
|
}, ((_c = themeDefaults.checkbox) === null || _c === void 0 ? void 0 : _c.wrapper) || {}, CHECKBOX_CATEGORIES);
|
|
4616
5167
|
|
|
@@ -4620,11 +5171,11 @@ const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointe
|
|
|
4620
5171
|
gap: new GapTheme({ xs: 'gap-1.5', sm: 'gap-2', md: 'gap-2.5', lg: 'gap-3', xl: 'gap-3' }),
|
|
4621
5172
|
},
|
|
4622
5173
|
appearance: {
|
|
4623
|
-
text: GenericVariantTheme.
|
|
5174
|
+
text: GenericVariantTheme.createTypographyTextTheme(),
|
|
4624
5175
|
},
|
|
4625
|
-
typography:
|
|
5176
|
+
typography: defaultTypographyThemes,
|
|
4626
5177
|
layout: {
|
|
4627
|
-
...
|
|
5178
|
+
...defaultLayoutsThemes,
|
|
4628
5179
|
wrap: new WrapTheme(),
|
|
4629
5180
|
flexDirection: new DirectionTheme(),
|
|
4630
5181
|
},
|
|
@@ -4633,18 +5184,48 @@ const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointe
|
|
|
4633
5184
|
const defaultImgTheme = new ComponentTheme("img", "object-cover", // Default to cover for better image display
|
|
4634
5185
|
{
|
|
4635
5186
|
layout: {
|
|
4636
|
-
...
|
|
5187
|
+
...defaultLayoutsThemes,
|
|
4637
5188
|
border: new BorderTheme(),
|
|
4638
5189
|
ring: new RingTheme(),
|
|
5190
|
+
focusVisible: new FocusVisibleTheme(),
|
|
4639
5191
|
radius: RadiusTheme.createLayoutTheme(),
|
|
4640
5192
|
},
|
|
4641
5193
|
appearance: {
|
|
5194
|
+
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
4642
5195
|
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
4643
5196
|
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
5197
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme(),
|
|
4644
5198
|
shadow: GenericVariantTheme.createLayoutShadowTheme()
|
|
4645
5199
|
}
|
|
4646
5200
|
}, themeDefaults.img, IMG_CATEGORIES);
|
|
4647
5201
|
|
|
5202
|
+
const defaultInputTheme = new ComponentTheme("input", "w-full transition-all duration-200", {
|
|
5203
|
+
size: {
|
|
5204
|
+
px: new PxTheme({ xs: 'px-2', sm: 'px-3', md: 'px-4', lg: 'px-5', xl: 'px-6', }),
|
|
5205
|
+
py: new PyTheme({ xs: 'py-1', sm: 'py-1.5', md: 'py-2', lg: 'py-2.5', xl: 'py-3' }),
|
|
5206
|
+
gap: new GapTheme({ xs: 'gap-1', sm: 'gap-1.5', md: 'gap-2', lg: 'gap-2.5', xl: 'gap-3' }),
|
|
5207
|
+
text: new SizeTheme({ xs: 'text-xs', sm: 'text-sm', md: 'text-base', lg: 'text-lg', xl: 'text-xl' }),
|
|
5208
|
+
},
|
|
5209
|
+
appearance: {
|
|
5210
|
+
background: GenericVariantTheme.createSimpleUIElementBgAppearanceTheme(),
|
|
5211
|
+
text: GenericVariantTheme.createUIElementTextThemeIgnoreTransparent(),
|
|
5212
|
+
border: GenericVariantTheme.createUIElementBorderTheme(),
|
|
5213
|
+
ring: GenericVariantTheme.createUIElementRingTheme(),
|
|
5214
|
+
focusVisible: GenericVariantTheme.createUIElementFocusVisibleTheme(),
|
|
5215
|
+
shadow: GenericVariantTheme.createUIElementShadowTheme()
|
|
5216
|
+
},
|
|
5217
|
+
layout: {
|
|
5218
|
+
...defaultLayoutsThemes,
|
|
5219
|
+
border: new BorderTheme(),
|
|
5220
|
+
ring: new RingTheme(),
|
|
5221
|
+
focusVisible: new FocusVisibleTheme(),
|
|
5222
|
+
radius: RadiusTheme.createUITheme(),
|
|
5223
|
+
wrap: new WrapTheme(),
|
|
5224
|
+
flexDirection: new DirectionTheme(),
|
|
5225
|
+
},
|
|
5226
|
+
typography: defaultTypographyThemes,
|
|
5227
|
+
}, themeDefaults.input, INPUT_CATEGORIES, () => "input");
|
|
5228
|
+
|
|
4648
5229
|
const defaultTheme = {
|
|
4649
5230
|
button: defaultButtonTheme,
|
|
4650
5231
|
badge: defaultBadgeTheme,
|
|
@@ -4660,6 +5241,8 @@ const defaultTheme = {
|
|
|
4660
5241
|
grid2: defaultGrid2Theme,
|
|
4661
5242
|
grid3: defaultGrid3Theme,
|
|
4662
5243
|
grid4: defaultGrid4Theme,
|
|
5244
|
+
grid5: defaultGrid5Theme,
|
|
5245
|
+
grid6: defaultGrid6Theme,
|
|
4663
5246
|
pageTitle: pageTitleTheme,
|
|
4664
5247
|
sectionTitle: sectionTitleTheme,
|
|
4665
5248
|
title: titleTheme,
|
|
@@ -4674,6 +5257,7 @@ const defaultTheme = {
|
|
|
4674
5257
|
},
|
|
4675
5258
|
label: defaultLabelTheme,
|
|
4676
5259
|
img: defaultImgTheme,
|
|
5260
|
+
input: defaultInputTheme,
|
|
4677
5261
|
};
|
|
4678
5262
|
/**
|
|
4679
5263
|
* Recursively applies defaults to theme objects while preserving structure.
|
|
@@ -4849,6 +5433,11 @@ const Img = react.forwardRef(function Img(props, ref) {
|
|
|
4849
5433
|
return (jsxRuntime.jsx(ThemedComponent, { theme: theme.img, ref: ref, ...props }));
|
|
4850
5434
|
});
|
|
4851
5435
|
|
|
5436
|
+
const Input = react.forwardRef(function Input(props, ref) {
|
|
5437
|
+
const theme = useTheme();
|
|
5438
|
+
return jsxRuntime.jsx(ThemedComponent, { ref: ref, theme: theme.input, ...props });
|
|
5439
|
+
});
|
|
5440
|
+
|
|
4852
5441
|
const Section = react.forwardRef(function Section(props, ref) {
|
|
4853
5442
|
const theme = useTheme();
|
|
4854
5443
|
return jsxRuntime.jsx(ThemedComponent, { theme: theme.section, ref: ref, ...props });
|
|
@@ -4881,6 +5470,14 @@ const Grid4 = react.forwardRef(function Grid4(props, ref) {
|
|
|
4881
5470
|
const theme = useTheme();
|
|
4882
5471
|
return jsxRuntime.jsx(ThemedComponent, { theme: theme.grid4, ref: ref, ...props });
|
|
4883
5472
|
});
|
|
5473
|
+
const Grid5 = react.forwardRef(function Grid5(props, ref) {
|
|
5474
|
+
const theme = useTheme();
|
|
5475
|
+
return jsxRuntime.jsx(ThemedComponent, { theme: theme.grid5, ref: ref, ...props });
|
|
5476
|
+
});
|
|
5477
|
+
const Grid6 = react.forwardRef(function Grid6(props, ref) {
|
|
5478
|
+
const theme = useTheme();
|
|
5479
|
+
return jsxRuntime.jsx(ThemedComponent, { theme: theme.grid6, ref: ref, ...props });
|
|
5480
|
+
});
|
|
4884
5481
|
|
|
4885
5482
|
const Card = react.forwardRef(function Card(props, ref) {
|
|
4886
5483
|
const theme = useTheme();
|
|
@@ -4922,20 +5519,35 @@ const List = react.forwardRef(function List(props, ref) {
|
|
|
4922
5519
|
return jsxRuntime.jsx(ThemedComponent, { ref: ref, theme: theme.list, ...props });
|
|
4923
5520
|
});
|
|
4924
5521
|
|
|
5522
|
+
exports.ABSOLUTE = ABSOLUTE;
|
|
5523
|
+
exports.ACCENT = ACCENT;
|
|
5524
|
+
exports.ACTIVE = ACTIVE;
|
|
4925
5525
|
exports.APPEARANCE_CATEGORY = APPEARANCE_CATEGORY;
|
|
5526
|
+
exports.APPEARANCE_VALUES = APPEARANCE_VALUES;
|
|
4926
5527
|
exports.BADGE_CATEGORIES = BADGE_CATEGORIES;
|
|
5528
|
+
exports.BASE = BASE;
|
|
5529
|
+
exports.BLACK = BLACK;
|
|
5530
|
+
exports.BLOCK = BLOCK;
|
|
5531
|
+
exports.BOLD = BOLD;
|
|
5532
|
+
exports.BORDER = BORDER;
|
|
5533
|
+
exports.BORDER_VALUES = BORDER_VALUES;
|
|
4927
5534
|
exports.BREAKPOINT = BREAKPOINT;
|
|
5535
|
+
exports.BREAKPOINT_VALUES = BREAKPOINT_VALUES;
|
|
4928
5536
|
exports.BUTTON_CATEGORIES = BUTTON_CATEGORIES;
|
|
4929
5537
|
exports.Badge = Badge;
|
|
4930
5538
|
exports.Button = Button;
|
|
5539
|
+
exports.CAPITALIZE = CAPITALIZE;
|
|
4931
5540
|
exports.CARD_CATEGORIES = CARD_CATEGORIES;
|
|
4932
5541
|
exports.CHECKBOX_CATEGORIES = CHECKBOX_CATEGORIES;
|
|
4933
5542
|
exports.CHIP_CATEGORIES = CHIP_CATEGORIES;
|
|
4934
5543
|
exports.CODE_CATEGORIES = CODE_CATEGORIES;
|
|
5544
|
+
exports.COLUMN = COLUMN;
|
|
5545
|
+
exports.COLUMN_REVERSE = COLUMN_REVERSE;
|
|
4935
5546
|
exports.COL_CATEGORIES = COL_CATEGORIES;
|
|
4936
5547
|
exports.COMPONENT = COMPONENT;
|
|
4937
5548
|
exports.COMPONENT_PROPS_CATEGORY = COMPONENT_PROPS_CATEGORY;
|
|
4938
5549
|
exports.CONTAINER_CATEGORIES = CONTAINER_CATEGORIES;
|
|
5550
|
+
exports.CONTENTS = CONTENTS;
|
|
4939
5551
|
exports.Card = Card;
|
|
4940
5552
|
exports.Checkbox = Checkbox;
|
|
4941
5553
|
exports.Chip = Chip;
|
|
@@ -4944,45 +5556,193 @@ exports.Col = Col;
|
|
|
4944
5556
|
exports.ComponentCategories = ComponentCategories;
|
|
4945
5557
|
exports.ComponentKeys = ComponentKeys;
|
|
4946
5558
|
exports.Container = Container;
|
|
5559
|
+
exports.DANGER = DANGER;
|
|
5560
|
+
exports.DECIMAL = DECIMAL;
|
|
5561
|
+
exports.DEFAULT = DEFAULT;
|
|
5562
|
+
exports.DISC = DISC;
|
|
5563
|
+
exports.DISPLAY_VALUES = DISPLAY_VALUES;
|
|
4947
5564
|
exports.DIVIDER_CATEGORIES = DIVIDER_CATEGORIES;
|
|
4948
5565
|
exports.Divider = Divider;
|
|
5566
|
+
exports.EXTRABOLD = EXTRABOLD;
|
|
5567
|
+
exports.EXTRALIGHT = EXTRALIGHT;
|
|
5568
|
+
exports.FILLED = FILLED;
|
|
5569
|
+
exports.FIXED = FIXED;
|
|
5570
|
+
exports.FLEX = FLEX;
|
|
5571
|
+
exports.FLEX_DIRECTION_VALUES = FLEX_DIRECTION_VALUES;
|
|
5572
|
+
exports.FLEX_NO_WRAP = FLEX_NO_WRAP;
|
|
5573
|
+
exports.FLEX_WRAP = FLEX_WRAP;
|
|
5574
|
+
exports.FLEX_WRAP_REVERSE = FLEX_WRAP_REVERSE;
|
|
5575
|
+
exports.FOCUS = FOCUS;
|
|
5576
|
+
exports.FOCUS_VISIBLE = FOCUS_VISIBLE;
|
|
5577
|
+
exports.FOCUS_VISIBLE_OUTLINE = FOCUS_VISIBLE_OUTLINE;
|
|
5578
|
+
exports.FOCUS_VISIBLE_VALUES = FOCUS_VISIBLE_VALUES;
|
|
5579
|
+
exports.FONT_FAMILY_VALUES = FONT_FAMILY_VALUES;
|
|
5580
|
+
exports.FONT_STYLE_VALUES = FONT_STYLE_VALUES;
|
|
5581
|
+
exports.FONT_WEIGHT_VALUES = FONT_WEIGHT_VALUES;
|
|
5582
|
+
exports.GAP = GAP;
|
|
5583
|
+
exports.GAP_VALUES = GAP_VALUES;
|
|
5584
|
+
exports.GRID = GRID;
|
|
4949
5585
|
exports.GRID_CATEGORIES = GRID_CATEGORIES;
|
|
4950
5586
|
exports.Grid2 = Grid2;
|
|
4951
5587
|
exports.Grid3 = Grid3;
|
|
4952
5588
|
exports.Grid4 = Grid4;
|
|
5589
|
+
exports.Grid5 = Grid5;
|
|
5590
|
+
exports.Grid6 = Grid6;
|
|
5591
|
+
exports.HIDDEN = HIDDEN;
|
|
5592
|
+
exports.HIDE_VALUES = HIDE_VALUES;
|
|
5593
|
+
exports.HOVER = HOVER;
|
|
4953
5594
|
exports.IMG_CATEGORIES = IMG_CATEGORIES;
|
|
5595
|
+
exports.INFO = INFO;
|
|
5596
|
+
exports.INLINE = INLINE;
|
|
5597
|
+
exports.INLINE_BLOCK = INLINE_BLOCK;
|
|
5598
|
+
exports.INLINE_FLEX = INLINE_FLEX;
|
|
5599
|
+
exports.INLINE_GRID = INLINE_GRID;
|
|
5600
|
+
exports.INPUT_CATEGORIES = INPUT_CATEGORIES;
|
|
4954
5601
|
exports.INTERACTIVE_CATEGORIES = INTERACTIVE_CATEGORIES;
|
|
5602
|
+
exports.ITALIC = ITALIC;
|
|
5603
|
+
exports.ITEMS_BASELINE = ITEMS_BASELINE;
|
|
5604
|
+
exports.ITEMS_CENTER = ITEMS_CENTER;
|
|
5605
|
+
exports.ITEMS_END = ITEMS_END;
|
|
5606
|
+
exports.ITEMS_START = ITEMS_START;
|
|
5607
|
+
exports.ITEMS_STRETCH = ITEMS_STRETCH;
|
|
5608
|
+
exports.ITEMS_VALUES = ITEMS_VALUES;
|
|
4955
5609
|
exports.Img = Img;
|
|
5610
|
+
exports.Input = Input;
|
|
5611
|
+
exports.JUSTIFY_AROUND = JUSTIFY_AROUND;
|
|
5612
|
+
exports.JUSTIFY_BASELINE = JUSTIFY_BASELINE;
|
|
5613
|
+
exports.JUSTIFY_BETWEEN = JUSTIFY_BETWEEN;
|
|
5614
|
+
exports.JUSTIFY_CENTER = JUSTIFY_CENTER;
|
|
5615
|
+
exports.JUSTIFY_END = JUSTIFY_END;
|
|
5616
|
+
exports.JUSTIFY_EVENLY = JUSTIFY_EVENLY;
|
|
5617
|
+
exports.JUSTIFY_START = JUSTIFY_START;
|
|
5618
|
+
exports.JUSTIFY_STRETCH = JUSTIFY_STRETCH;
|
|
5619
|
+
exports.JUSTIFY_VALUES = JUSTIFY_VALUES;
|
|
4956
5620
|
exports.LABEL_CATEGORIES = LABEL_CATEGORIES;
|
|
4957
5621
|
exports.LAYOUT_CORE = LAYOUT_CORE;
|
|
4958
5622
|
exports.LAYOUT_FLEX = LAYOUT_FLEX;
|
|
4959
5623
|
exports.LAYOUT_FULL = LAYOUT_FULL;
|
|
5624
|
+
exports.LG = LG;
|
|
5625
|
+
exports.LG_COL = LG_COL;
|
|
5626
|
+
exports.LG_HIDE = LG_HIDE;
|
|
5627
|
+
exports.LIGHT = LIGHT;
|
|
5628
|
+
exports.LINE_THROUGH = LINE_THROUGH;
|
|
5629
|
+
exports.LINK = LINK;
|
|
4960
5630
|
exports.LIST_CATEGORIES = LIST_CATEGORIES;
|
|
4961
5631
|
exports.LIST_STYLE = LIST_STYLE;
|
|
5632
|
+
exports.LIST_STYLE_VALUES = LIST_STYLE_VALUES;
|
|
5633
|
+
exports.LOWERCASE = LOWERCASE;
|
|
4962
5634
|
exports.Label = Label;
|
|
4963
5635
|
exports.Link = Link;
|
|
4964
5636
|
exports.List = List;
|
|
4965
5637
|
exports.ListItem = ListItem;
|
|
5638
|
+
exports.MD = MD;
|
|
5639
|
+
exports.MD_COL = MD_COL;
|
|
5640
|
+
exports.MD_HIDE = MD_HIDE;
|
|
5641
|
+
exports.MEDIUM = MEDIUM;
|
|
5642
|
+
exports.MODE_VALUES = MODE_VALUES;
|
|
5643
|
+
exports.MONO = MONO;
|
|
5644
|
+
exports.ModeKeys = ModeKeys;
|
|
5645
|
+
exports.NORMAL = NORMAL;
|
|
5646
|
+
exports.NORMAL_CASE = NORMAL_CASE;
|
|
5647
|
+
exports.NOT_ITALIC = NOT_ITALIC;
|
|
5648
|
+
exports.NO_BORDER = NO_BORDER;
|
|
5649
|
+
exports.NO_FOCUS_VISIBLE_OUTLINE = NO_FOCUS_VISIBLE_OUTLINE;
|
|
5650
|
+
exports.NO_GAP = NO_GAP;
|
|
5651
|
+
exports.NO_PADDING = NO_PADDING;
|
|
5652
|
+
exports.NO_RING = NO_RING;
|
|
5653
|
+
exports.NO_SHADOW = NO_SHADOW;
|
|
5654
|
+
exports.NO_UNDERLINE = NO_UNDERLINE;
|
|
5655
|
+
exports.OUTLINE = OUTLINE;
|
|
5656
|
+
exports.OVERFLOW_AUTO = OVERFLOW_AUTO;
|
|
5657
|
+
exports.OVERFLOW_CLIP = OVERFLOW_CLIP;
|
|
5658
|
+
exports.OVERFLOW_HIDDEN = OVERFLOW_HIDDEN;
|
|
5659
|
+
exports.OVERFLOW_SCROLL = OVERFLOW_SCROLL;
|
|
5660
|
+
exports.OVERFLOW_VALUES = OVERFLOW_VALUES;
|
|
5661
|
+
exports.OVERFLOW_VISIBLE = OVERFLOW_VISIBLE;
|
|
5662
|
+
exports.OVERFLOW_X_AUTO = OVERFLOW_X_AUTO;
|
|
5663
|
+
exports.OVERFLOW_X_CLIP = OVERFLOW_X_CLIP;
|
|
5664
|
+
exports.OVERFLOW_X_HIDDEN = OVERFLOW_X_HIDDEN;
|
|
5665
|
+
exports.OVERFLOW_X_SCROLL = OVERFLOW_X_SCROLL;
|
|
5666
|
+
exports.OVERFLOW_X_VISIBLE = OVERFLOW_X_VISIBLE;
|
|
5667
|
+
exports.OVERFLOW_Y_AUTO = OVERFLOW_Y_AUTO;
|
|
5668
|
+
exports.OVERFLOW_Y_CLIP = OVERFLOW_Y_CLIP;
|
|
5669
|
+
exports.OVERFLOW_Y_HIDDEN = OVERFLOW_Y_HIDDEN;
|
|
5670
|
+
exports.OVERFLOW_Y_SCROLL = OVERFLOW_Y_SCROLL;
|
|
5671
|
+
exports.OVERFLOW_Y_VISIBLE = OVERFLOW_Y_VISIBLE;
|
|
5672
|
+
exports.OVERLINE = OVERLINE;
|
|
4966
5673
|
exports.PADDING = PADDING;
|
|
5674
|
+
exports.PADDING_VALUES = PADDING_VALUES;
|
|
5675
|
+
exports.PILL = PILL;
|
|
5676
|
+
exports.POSITION_VALUES = POSITION_VALUES;
|
|
5677
|
+
exports.PRIMARY = PRIMARY;
|
|
4967
5678
|
exports.PageTitle = PageTitle;
|
|
5679
|
+
exports.RELATIVE = RELATIVE;
|
|
5680
|
+
exports.REVERSE = REVERSE;
|
|
5681
|
+
exports.REVERSE_VALUES = REVERSE_VALUES;
|
|
5682
|
+
exports.RING = RING;
|
|
5683
|
+
exports.RING_VALUES = RING_VALUES;
|
|
5684
|
+
exports.ROUNDED = ROUNDED;
|
|
5685
|
+
exports.ROW = ROW;
|
|
4968
5686
|
exports.ROW_CATEGORIES = ROW_CATEGORIES;
|
|
5687
|
+
exports.ROW_REVERSE = ROW_REVERSE;
|
|
4969
5688
|
exports.Row = Row;
|
|
5689
|
+
exports.SANS = SANS;
|
|
5690
|
+
exports.SECONDARY = SECONDARY;
|
|
4970
5691
|
exports.SECTION_CATEGORIES = SECTION_CATEGORIES;
|
|
5692
|
+
exports.SEMIBOLD = SEMIBOLD;
|
|
5693
|
+
exports.SERIF = SERIF;
|
|
5694
|
+
exports.SHADOW = SHADOW;
|
|
5695
|
+
exports.SHADOW_VALUES = SHADOW_VALUES;
|
|
4971
5696
|
exports.SHAPE = SHAPE;
|
|
5697
|
+
exports.SHAPE_VALUES = SHAPE_VALUES;
|
|
5698
|
+
exports.SHARP = SHARP;
|
|
5699
|
+
exports.SIZE_VALUES = SIZE_VALUES;
|
|
5700
|
+
exports.SM = SM;
|
|
5701
|
+
exports.SM_COL = SM_COL;
|
|
5702
|
+
exports.SM_HIDE = SM_HIDE;
|
|
4972
5703
|
exports.STACK_CATEGORIES = STACK_CATEGORIES;
|
|
5704
|
+
exports.STATIC = STATIC;
|
|
5705
|
+
exports.STICKY = STICKY;
|
|
5706
|
+
exports.SUCCESS = SUCCESS;
|
|
4973
5707
|
exports.Section = Section;
|
|
4974
5708
|
exports.SectionTitle = SectionTitle;
|
|
4975
5709
|
exports.Stack = Stack;
|
|
5710
|
+
exports.TABLE = TABLE;
|
|
5711
|
+
exports.TABLE_CELL = TABLE_CELL;
|
|
5712
|
+
exports.TERTIARY = TERTIARY;
|
|
5713
|
+
exports.TEXT_ALIGN_VALUES = TEXT_ALIGN_VALUES;
|
|
5714
|
+
exports.TEXT_CENTER = TEXT_CENTER;
|
|
5715
|
+
exports.TEXT_DECORATION_VALUES = TEXT_DECORATION_VALUES;
|
|
5716
|
+
exports.TEXT_JUSTIFY = TEXT_JUSTIFY;
|
|
5717
|
+
exports.TEXT_LEFT = TEXT_LEFT;
|
|
5718
|
+
exports.TEXT_RIGHT = TEXT_RIGHT;
|
|
5719
|
+
exports.TEXT_TRANSFORM_VALUES = TEXT_TRANSFORM_VALUES;
|
|
5720
|
+
exports.THIN = THIN;
|
|
5721
|
+
exports.TRANSPARENT = TRANSPARENT;
|
|
5722
|
+
exports.TRANSPARENT_VALUES = TRANSPARENT_VALUES;
|
|
4976
5723
|
exports.TYPOGRAPHY_CATEGORIES = TYPOGRAPHY_CATEGORIES;
|
|
4977
5724
|
exports.TYPOGRAPHY_FULL = TYPOGRAPHY_FULL;
|
|
4978
5725
|
exports.TYPOGRAPHY_STYLE = TYPOGRAPHY_STYLE;
|
|
4979
5726
|
exports.Text = Text;
|
|
4980
5727
|
exports.ThemeProvider = ThemeProvider;
|
|
4981
5728
|
exports.Title = Title;
|
|
5729
|
+
exports.UNDERLINE = UNDERLINE;
|
|
5730
|
+
exports.UPPERCASE = UPPERCASE;
|
|
4982
5731
|
exports.VARIANT = VARIANT;
|
|
5732
|
+
exports.VARIANT_VALUES = VARIANT_VALUES;
|
|
4983
5733
|
exports.VISUAL_CORE = VISUAL_CORE;
|
|
4984
5734
|
exports.VISUAL_DECORATION = VISUAL_DECORATION;
|
|
5735
|
+
exports.VISUAL_DECORATION_LAYOUT = VISUAL_DECORATION_LAYOUT;
|
|
4985
5736
|
exports.VISUAL_FULL = VISUAL_FULL;
|
|
5737
|
+
exports.VISUAL_LAYOUT = VISUAL_LAYOUT;
|
|
5738
|
+
exports.WARNING = WARNING;
|
|
5739
|
+
exports.WRAP_VALUES = WRAP_VALUES;
|
|
5740
|
+
exports.XL = XL;
|
|
5741
|
+
exports.XL_COL = XL_COL;
|
|
5742
|
+
exports.XL_HIDE = XL_HIDE;
|
|
5743
|
+
exports.XS = XS;
|
|
5744
|
+
exports.XS_COL = XS_COL;
|
|
5745
|
+
exports.XS_HIDE = XS_HIDE;
|
|
4986
5746
|
exports.defaultTheme = defaultTheme;
|
|
4987
5747
|
exports.themeDefaults = themeDefaults;
|
|
4988
5748
|
exports.useTheme = useTheme;
|