@vaneui/ui 0.3.1-alpha.20251129115555.bcd1100 → 0.3.1-alpha.20251201135827.a31cb1e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/themeContext.d.ts +17 -1
- package/dist/components/themeContext.d.ts.map +1 -1
- package/dist/components/ui/badge.d.ts +14 -189
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +14 -189
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +8 -128
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +8 -88
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/chip.d.ts +14 -2
- package/dist/components/ui/chip.d.ts.map +1 -1
- package/dist/components/ui/code.d.ts +8 -126
- package/dist/components/ui/code.d.ts.map +1 -1
- package/dist/components/ui/col.d.ts +8 -96
- package/dist/components/ui/col.d.ts.map +1 -1
- package/dist/components/ui/container.d.ts +8 -96
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/divider.d.ts +8 -71
- package/dist/components/ui/divider.d.ts.map +1 -1
- package/dist/components/ui/grid.d.ts +16 -405
- package/dist/components/ui/grid.d.ts.map +1 -1
- package/dist/components/ui/img.d.ts +8 -88
- package/dist/components/ui/img.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +8 -126
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts +8 -107
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/props/appearanceProps.d.ts +26 -0
- package/dist/components/ui/props/appearanceProps.d.ts.map +1 -0
- package/dist/components/ui/props/baseProps.d.ts +11 -0
- package/dist/components/ui/props/baseProps.d.ts.map +1 -0
- package/dist/components/ui/props/borderProps.d.ts +22 -0
- package/dist/components/ui/props/borderProps.d.ts.map +1 -0
- package/dist/components/ui/props/breakpointProps.d.ts +14 -0
- package/dist/components/ui/props/breakpointProps.d.ts.map +1 -0
- package/dist/components/ui/props/displayProps.d.ts +28 -0
- package/dist/components/ui/props/displayProps.d.ts.map +1 -0
- package/dist/components/ui/props/flexDirectionProps.d.ts +14 -0
- package/dist/components/ui/props/flexDirectionProps.d.ts.map +1 -0
- package/dist/components/ui/props/focusVisibleProps.d.ts +10 -0
- package/dist/components/ui/props/focusVisibleProps.d.ts.map +1 -0
- package/dist/components/ui/props/fontFamilyProps.d.ts +12 -0
- package/dist/components/ui/props/fontFamilyProps.d.ts.map +1 -0
- package/dist/components/ui/props/fontStyleProps.d.ts +10 -0
- package/dist/components/ui/props/fontStyleProps.d.ts.map +1 -0
- package/dist/components/ui/props/fontWeightProps.d.ts +24 -0
- package/dist/components/ui/props/fontWeightProps.d.ts.map +1 -0
- package/dist/components/ui/props/gapProps.d.ts +10 -0
- package/dist/components/ui/props/gapProps.d.ts.map +1 -0
- package/dist/components/ui/props/hideProps.d.ts +14 -0
- package/dist/components/ui/props/hideProps.d.ts.map +1 -0
- package/dist/components/ui/props/itemsProps.d.ts +16 -0
- package/dist/components/ui/props/itemsProps.d.ts.map +1 -0
- package/dist/components/ui/props/justifyProps.d.ts +22 -0
- package/dist/components/ui/props/justifyProps.d.ts.map +1 -0
- package/dist/components/ui/props/keys.d.ts +4 -28
- package/dist/components/ui/props/keys.d.ts.map +1 -1
- package/dist/components/ui/props/listStyleProps.d.ts +10 -0
- package/dist/components/ui/props/listStyleProps.d.ts.map +1 -0
- package/dist/components/ui/props/overflowProps.d.ts +36 -0
- package/dist/components/ui/props/overflowProps.d.ts.map +1 -0
- package/dist/components/ui/props/paddingProps.d.ts +10 -0
- package/dist/components/ui/props/paddingProps.d.ts.map +1 -0
- package/dist/components/ui/props/positionProps.d.ts +16 -0
- package/dist/components/ui/props/positionProps.d.ts.map +1 -0
- package/dist/components/ui/props/props.d.ts +34 -76
- package/dist/components/ui/props/props.d.ts.map +1 -1
- package/dist/components/ui/props/reverseProps.d.ts +8 -0
- package/dist/components/ui/props/reverseProps.d.ts.map +1 -0
- package/dist/components/ui/props/ringProps.d.ts +10 -0
- package/dist/components/ui/props/ringProps.d.ts.map +1 -0
- package/dist/components/ui/props/shadowProps.d.ts +10 -0
- package/dist/components/ui/props/shadowProps.d.ts.map +1 -0
- package/dist/components/ui/props/shapeProps.d.ts +12 -0
- package/dist/components/ui/props/shapeProps.d.ts.map +1 -0
- package/dist/components/ui/props/sizeProps.d.ts +16 -0
- package/dist/components/ui/props/sizeProps.d.ts.map +1 -0
- package/dist/components/ui/props/textAlignProps.d.ts +14 -0
- package/dist/components/ui/props/textAlignProps.d.ts.map +1 -0
- package/dist/components/ui/props/textDecorationProps.d.ts +14 -0
- package/dist/components/ui/props/textDecorationProps.d.ts.map +1 -0
- package/dist/components/ui/props/textTransformProps.d.ts +14 -0
- package/dist/components/ui/props/textTransformProps.d.ts.map +1 -0
- package/dist/components/ui/props/transparentProps.d.ts +8 -0
- package/dist/components/ui/props/transparentProps.d.ts.map +1 -0
- package/dist/components/ui/props/variantProps.d.ts +10 -0
- package/dist/components/ui/props/variantProps.d.ts.map +1 -0
- package/dist/components/ui/props/wrapProps.d.ts +12 -0
- package/dist/components/ui/props/wrapProps.d.ts.map +1 -0
- package/dist/components/ui/row.d.ts +8 -100
- package/dist/components/ui/row.d.ts.map +1 -1
- package/dist/components/ui/section.d.ts +8 -102
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/stack.d.ts +8 -102
- package/dist/components/ui/stack.d.ts.map +1 -1
- package/dist/components/ui/theme/appearance/appearanceTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/badgeTheme.d.ts +1 -1
- package/dist/components/ui/theme/badgeTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/buttonTheme.d.ts +1 -1
- package/dist/components/ui/theme/buttonTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/cardTheme.d.ts +1 -1
- package/dist/components/ui/theme/cardTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/checkboxTheme.d.ts +1 -1
- package/dist/components/ui/theme/checkboxTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/chipTheme.d.ts +1 -1
- package/dist/components/ui/theme/chipTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/codeTheme.d.ts +1 -1
- package/dist/components/ui/theme/codeTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/colTheme.d.ts +1 -1
- package/dist/components/ui/theme/colTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/common/ComponentTheme.d.ts +1 -1
- package/dist/components/ui/theme/containerTheme.d.ts +1 -1
- package/dist/components/ui/theme/containerTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/dividerTheme.d.ts +1 -1
- package/dist/components/ui/theme/dividerTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/gridTheme.d.ts +1 -1
- package/dist/components/ui/theme/gridTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/imgTheme.d.ts +1 -1
- package/dist/components/ui/theme/imgTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/inputTheme.d.ts +1 -1
- package/dist/components/ui/theme/inputTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/labelTheme.d.ts +1 -1
- package/dist/components/ui/theme/labelTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/rowTheme.d.ts +1 -1
- package/dist/components/ui/theme/rowTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/sectionTheme.d.ts +1 -1
- package/dist/components/ui/theme/sectionTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/stackTheme.d.ts +1 -1
- package/dist/components/ui/theme/stackTheme.d.ts.map +1 -1
- package/dist/components/ui/theme/typographyTheme.d.ts +1 -1
- package/dist/components/ui/theme/typographyTheme.d.ts.map +1 -1
- package/dist/components/ui/typography.d.ts +51 -108
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/index.esm.js +38 -750
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +37 -902
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/dist/components/ui/props/appearance.d.ts +0 -23
- package/dist/components/ui/props/appearance.d.ts.map +0 -1
- package/dist/components/ui/props/border.d.ts +0 -23
- package/dist/components/ui/props/border.d.ts.map +0 -1
- package/dist/components/ui/props/breakpoint.d.ts +0 -11
- package/dist/components/ui/props/breakpoint.d.ts.map +0 -1
- package/dist/components/ui/props/display.d.ts +0 -25
- package/dist/components/ui/props/display.d.ts.map +0 -1
- package/dist/components/ui/props/flexDirection.d.ts +0 -11
- package/dist/components/ui/props/flexDirection.d.ts.map +0 -1
- package/dist/components/ui/props/focusVisible.d.ts +0 -7
- package/dist/components/ui/props/focusVisible.d.ts.map +0 -1
- package/dist/components/ui/props/fontFamily.d.ts +0 -9
- package/dist/components/ui/props/fontFamily.d.ts.map +0 -1
- package/dist/components/ui/props/fontStyle.d.ts +0 -7
- package/dist/components/ui/props/fontStyle.d.ts.map +0 -1
- package/dist/components/ui/props/fontWeight.d.ts +0 -21
- package/dist/components/ui/props/fontWeight.d.ts.map +0 -1
- package/dist/components/ui/props/gap.d.ts +0 -7
- package/dist/components/ui/props/gap.d.ts.map +0 -1
- package/dist/components/ui/props/hide.d.ts +0 -11
- package/dist/components/ui/props/hide.d.ts.map +0 -1
- package/dist/components/ui/props/items.d.ts +0 -13
- package/dist/components/ui/props/items.d.ts.map +0 -1
- package/dist/components/ui/props/justify.d.ts +0 -19
- package/dist/components/ui/props/justify.d.ts.map +0 -1
- package/dist/components/ui/props/listStyle.d.ts +0 -7
- package/dist/components/ui/props/listStyle.d.ts.map +0 -1
- package/dist/components/ui/props/overflow.d.ts +0 -33
- package/dist/components/ui/props/overflow.d.ts.map +0 -1
- package/dist/components/ui/props/padding.d.ts +0 -7
- package/dist/components/ui/props/padding.d.ts.map +0 -1
- package/dist/components/ui/props/position.d.ts +0 -13
- package/dist/components/ui/props/position.d.ts.map +0 -1
- package/dist/components/ui/props/reverse.d.ts +0 -5
- package/dist/components/ui/props/reverse.d.ts.map +0 -1
- package/dist/components/ui/props/ring.d.ts +0 -7
- package/dist/components/ui/props/ring.d.ts.map +0 -1
- package/dist/components/ui/props/shadow.d.ts +0 -7
- package/dist/components/ui/props/shadow.d.ts.map +0 -1
- package/dist/components/ui/props/shape.d.ts +0 -9
- package/dist/components/ui/props/shape.d.ts.map +0 -1
- package/dist/components/ui/props/size.d.ts +0 -13
- package/dist/components/ui/props/size.d.ts.map +0 -1
- package/dist/components/ui/props/textAlign.d.ts +0 -11
- package/dist/components/ui/props/textAlign.d.ts.map +0 -1
- package/dist/components/ui/props/textDecoration.d.ts +0 -11
- package/dist/components/ui/props/textDecoration.d.ts.map +0 -1
- package/dist/components/ui/props/textTransform.d.ts +0 -11
- package/dist/components/ui/props/textTransform.d.ts.map +0 -1
- package/dist/components/ui/props/transparent.d.ts +0 -5
- package/dist/components/ui/props/transparent.d.ts.map +0 -1
- package/dist/components/ui/props/variant.d.ts +0 -7
- package/dist/components/ui/props/variant.d.ts.map +0 -1
- package/dist/components/ui/props/wrap.d.ts +0 -9
- package/dist/components/ui/props/wrap.d.ts.map +0 -1
package/dist/index.esm.js
CHANGED
|
@@ -9,351 +9,6 @@ import { createContext, useContext, useMemo, forwardRef } from 'react';
|
|
|
9
9
|
class BaseTheme {
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
/** Default neutral appearance - uses default color variables */
|
|
13
|
-
const DEFAULT = 'default';
|
|
14
|
-
/** Accent appearance - uses accent/rose color variables for brand secondary styling */
|
|
15
|
-
const ACCENT = 'accent';
|
|
16
|
-
/** Primary appearance - uses primary/blue color variables for main brand styling */
|
|
17
|
-
const PRIMARY = 'primary';
|
|
18
|
-
/** Secondary appearance - uses secondary/gray color variables for muted styling */
|
|
19
|
-
const SECONDARY = 'secondary';
|
|
20
|
-
/** Tertiary appearance - uses tertiary/gray color variables for subtle styling */
|
|
21
|
-
const TERTIARY = 'tertiary';
|
|
22
|
-
/** Success appearance - uses success/emerald color variables for positive states */
|
|
23
|
-
const SUCCESS = 'success';
|
|
24
|
-
/** Danger appearance - uses danger/red color variables for error/destructive states */
|
|
25
|
-
const DANGER = 'danger';
|
|
26
|
-
/** Warning appearance - uses warning/amber color variables for caution states */
|
|
27
|
-
const WARNING = 'warning';
|
|
28
|
-
/** Info appearance - uses info/cyan color variables for informational states */
|
|
29
|
-
const INFO = 'info';
|
|
30
|
-
/** Link appearance - uses link/blue color variables for hyperlinks and navigation */
|
|
31
|
-
const LINK = 'link';
|
|
32
|
-
/** All appearance property values */
|
|
33
|
-
const APPEARANCE_VALUES = [DEFAULT, ACCENT, PRIMARY, SECONDARY, TERTIARY, SUCCESS, DANGER, WARNING, INFO, LINK];
|
|
34
|
-
|
|
35
|
-
/** Show border - adds appearance-based border styling */
|
|
36
|
-
const BORDER$1 = 'border';
|
|
37
|
-
/** Show top border */
|
|
38
|
-
const BORDER_T = 'borderT';
|
|
39
|
-
/** Show bottom border */
|
|
40
|
-
const BORDER_B = 'borderB';
|
|
41
|
-
/** Show left border */
|
|
42
|
-
const BORDER_L = 'borderL';
|
|
43
|
-
/** Show right border */
|
|
44
|
-
const BORDER_R = 'borderR';
|
|
45
|
-
/** Show horizontal borders (left and right) */
|
|
46
|
-
const BORDER_X = 'borderX';
|
|
47
|
-
/** Show vertical borders (top and bottom) */
|
|
48
|
-
const BORDER_Y = 'borderY';
|
|
49
|
-
/** Hide border - removes border styling (overrides appearance colors) */
|
|
50
|
-
const NO_BORDER = 'noBorder';
|
|
51
|
-
/** All border property values - includes all border variations and noBorder */
|
|
52
|
-
const BORDER_VALUES = [BORDER$1, BORDER_T, BORDER_B, BORDER_L, BORDER_R, BORDER_X, BORDER_Y, NO_BORDER];
|
|
53
|
-
/** All border side keys (excluding noBorder since it doesn't have a CSS class) */
|
|
54
|
-
const BORDER_KEYS = [BORDER$1, BORDER_T, BORDER_B, BORDER_L, BORDER_R, BORDER_X, BORDER_Y];
|
|
55
|
-
|
|
56
|
-
/** Mobile column breakpoint - switch to column layout on mobile devices (max-mobile: 20rem) */
|
|
57
|
-
const MOBILE_COL = 'mobileCol';
|
|
58
|
-
/** Tablet column breakpoint - switch to column layout on tablet devices (max-tablet: 40rem) */
|
|
59
|
-
const TABLET_COL = 'tabletCol';
|
|
60
|
-
/** Laptop column breakpoint - switch to column layout on laptop devices (max-laptop: 64rem) */
|
|
61
|
-
const LAPTOP_COL = 'laptopCol';
|
|
62
|
-
/** Desktop column breakpoint - switch to column layout on desktop devices (max-desktop: 80rem) */
|
|
63
|
-
const DESKTOP_COL = 'desktopCol';
|
|
64
|
-
/** All breakpoint property values */
|
|
65
|
-
const BREAKPOINT_VALUES = [MOBILE_COL, TABLET_COL, LAPTOP_COL, DESKTOP_COL];
|
|
66
|
-
|
|
67
|
-
/** Inline display - flows with text */
|
|
68
|
-
const INLINE = 'inline';
|
|
69
|
-
/** Block display - takes full width, new line */
|
|
70
|
-
const BLOCK = 'block';
|
|
71
|
-
/** Inline-block display - inline but with block properties */
|
|
72
|
-
const INLINE_BLOCK = 'inlineBlock';
|
|
73
|
-
/** Flex display - flexbox container */
|
|
74
|
-
const FLEX = 'flex';
|
|
75
|
-
/** Inline-flex display - inline flexbox container */
|
|
76
|
-
const INLINE_FLEX = 'inlineFlex';
|
|
77
|
-
/** Grid display - CSS grid container */
|
|
78
|
-
const GRID = 'grid';
|
|
79
|
-
/** Inline-grid display - inline grid container */
|
|
80
|
-
const INLINE_GRID = 'inlineGrid';
|
|
81
|
-
/** Contents display - element's box is removed, children display as if parent didn't exist */
|
|
82
|
-
const CONTENTS = 'contents';
|
|
83
|
-
/** Table display - behaves like table element */
|
|
84
|
-
const TABLE = 'table';
|
|
85
|
-
/** Table-cell display - behaves like td element */
|
|
86
|
-
const TABLE_CELL = 'tableCell';
|
|
87
|
-
/** Hidden display - element is not visible */
|
|
88
|
-
const HIDDEN = 'hidden';
|
|
89
|
-
/** All display property values */
|
|
90
|
-
const DISPLAY_VALUES = [INLINE, BLOCK, INLINE_BLOCK, FLEX, INLINE_FLEX, GRID, INLINE_GRID, CONTENTS, TABLE, TABLE_CELL, HIDDEN];
|
|
91
|
-
|
|
92
|
-
/** Horizontal flex direction (left to right) */
|
|
93
|
-
const ROW = 'row';
|
|
94
|
-
/** Vertical flex direction (top to bottom) */
|
|
95
|
-
const COLUMN = 'column';
|
|
96
|
-
/** Horizontal flex direction reversed (right to left) */
|
|
97
|
-
const ROW_REVERSE = 'rowReverse';
|
|
98
|
-
/** Vertical flex direction reversed (bottom to top) */
|
|
99
|
-
const COLUMN_REVERSE = 'columnReverse';
|
|
100
|
-
/** All flex direction property values */
|
|
101
|
-
const FLEX_DIRECTION_VALUES = [ROW, COLUMN, ROW_REVERSE, COLUMN_REVERSE];
|
|
102
|
-
|
|
103
|
-
/** Sans-serif font family - clean, modern typeface without serifs */
|
|
104
|
-
const SANS = 'sans';
|
|
105
|
-
/** Serif font family - traditional typeface with small decorative strokes */
|
|
106
|
-
const SERIF = 'serif';
|
|
107
|
-
/** Monospace font family - fixed-width typeface for code and data */
|
|
108
|
-
const MONO = 'mono';
|
|
109
|
-
/** All font family property values */
|
|
110
|
-
const FONT_FAMILY_VALUES = [SANS, SERIF, MONO];
|
|
111
|
-
|
|
112
|
-
/** Italic font style - slanted text styling */
|
|
113
|
-
const ITALIC = 'italic';
|
|
114
|
-
/** Normal font style - upright text styling (not italic) */
|
|
115
|
-
const NOT_ITALIC = 'notItalic';
|
|
116
|
-
/** All font style property values */
|
|
117
|
-
const FONT_STYLE_VALUES = [ITALIC, NOT_ITALIC];
|
|
118
|
-
|
|
119
|
-
/** Thin font weight - CSS font-weight: 100 */
|
|
120
|
-
const THIN = 'thin';
|
|
121
|
-
/** Extra light font weight - CSS font-weight: 200 */
|
|
122
|
-
const EXTRALIGHT = 'extralight';
|
|
123
|
-
/** Light font weight - CSS font-weight: 300 */
|
|
124
|
-
const LIGHT = 'light';
|
|
125
|
-
/** Normal font weight - CSS font-weight: 400 (default) */
|
|
126
|
-
const NORMAL = 'normal';
|
|
127
|
-
/** Medium font weight - CSS font-weight: 500 */
|
|
128
|
-
const MEDIUM = 'medium';
|
|
129
|
-
/** Semibold font weight - CSS font-weight: 600 */
|
|
130
|
-
const SEMIBOLD = 'semibold';
|
|
131
|
-
/** Bold font weight - CSS font-weight: 700 */
|
|
132
|
-
const BOLD = 'bold';
|
|
133
|
-
/** Extra bold font weight - CSS font-weight: 800 */
|
|
134
|
-
const EXTRABOLD = 'extrabold';
|
|
135
|
-
/** Black font weight - CSS font-weight: 900 (heaviest) */
|
|
136
|
-
const BLACK = 'black';
|
|
137
|
-
/** All font weight property values */
|
|
138
|
-
const FONT_WEIGHT_VALUES = [THIN, EXTRALIGHT, LIGHT, NORMAL, MEDIUM, SEMIBOLD, BOLD, EXTRABOLD, BLACK];
|
|
139
|
-
|
|
140
|
-
/** Enable spacing between flex/grid items - uses size-responsive gap values */
|
|
141
|
-
const GAP = 'gap';
|
|
142
|
-
/** Disable spacing between flex/grid items - no gap applied */
|
|
143
|
-
const NO_GAP = 'noGap';
|
|
144
|
-
/** All gap property values */
|
|
145
|
-
const GAP_VALUES = [GAP, NO_GAP];
|
|
146
|
-
|
|
147
|
-
/** Hide element on mobile devices and below (max-mobile: 20rem) */
|
|
148
|
-
const MOBILE_HIDE = 'mobileHide';
|
|
149
|
-
/** Hide element on tablet devices and below (max-tablet: 40rem) */
|
|
150
|
-
const TABLET_HIDE = 'tabletHide';
|
|
151
|
-
/** Hide element on laptop devices and below (max-laptop: 64rem) */
|
|
152
|
-
const LAPTOP_HIDE = 'laptopHide';
|
|
153
|
-
/** Hide element on desktop devices and below (max-desktop: 80rem) */
|
|
154
|
-
const DESKTOP_HIDE = 'desktopHide';
|
|
155
|
-
/** All hide property values */
|
|
156
|
-
const HIDE_VALUES = [MOBILE_HIDE, TABLET_HIDE, LAPTOP_HIDE, DESKTOP_HIDE];
|
|
157
|
-
|
|
158
|
-
/** Align items to the start of the cross axis */
|
|
159
|
-
const ITEMS_START = 'itemsStart';
|
|
160
|
-
/** Align items to the end of the cross axis */
|
|
161
|
-
const ITEMS_END = 'itemsEnd';
|
|
162
|
-
/** Center items along the cross axis */
|
|
163
|
-
const ITEMS_CENTER = 'itemsCenter';
|
|
164
|
-
/** Align items along their baseline */
|
|
165
|
-
const ITEMS_BASELINE = 'itemsBaseline';
|
|
166
|
-
/** Stretch items to fill the cross axis */
|
|
167
|
-
const ITEMS_STRETCH = 'itemsStretch';
|
|
168
|
-
/** All items property values */
|
|
169
|
-
const ITEMS_VALUES = [ITEMS_START, ITEMS_END, ITEMS_CENTER, ITEMS_BASELINE, ITEMS_STRETCH];
|
|
170
|
-
|
|
171
|
-
/** Pack items toward the start of the main axis */
|
|
172
|
-
const JUSTIFY_START = 'justifyStart';
|
|
173
|
-
/** Pack items toward the end of the main axis */
|
|
174
|
-
const JUSTIFY_END = 'justifyEnd';
|
|
175
|
-
/** Center items along the main axis */
|
|
176
|
-
const JUSTIFY_CENTER = 'justifyCenter';
|
|
177
|
-
/** Distribute items with space between them */
|
|
178
|
-
const JUSTIFY_BETWEEN = 'justifyBetween';
|
|
179
|
-
/** Distribute items with space around them */
|
|
180
|
-
const JUSTIFY_AROUND = 'justifyAround';
|
|
181
|
-
/** Distribute items with equal space around them */
|
|
182
|
-
const JUSTIFY_EVENLY = 'justifyEvenly';
|
|
183
|
-
/** Stretch items to fill the main axis */
|
|
184
|
-
const JUSTIFY_STRETCH = 'justifyStretch';
|
|
185
|
-
/** Align items along their baseline on main axis */
|
|
186
|
-
const JUSTIFY_BASELINE = 'justifyBaseline';
|
|
187
|
-
/** All justify property values */
|
|
188
|
-
const JUSTIFY_VALUES = [JUSTIFY_START, JUSTIFY_END, JUSTIFY_CENTER, JUSTIFY_BETWEEN, JUSTIFY_AROUND, JUSTIFY_EVENLY, JUSTIFY_STRETCH, JUSTIFY_BASELINE];
|
|
189
|
-
|
|
190
|
-
/** Disc bullet points - circular bullets for list items */
|
|
191
|
-
const DISC = 'disc';
|
|
192
|
-
/** Decimal numbers - numbered list items (1, 2, 3...) */
|
|
193
|
-
const DECIMAL = 'decimal';
|
|
194
|
-
/** All list style property values */
|
|
195
|
-
const LIST_STYLE_VALUES = [DISC, DECIMAL];
|
|
196
|
-
|
|
197
|
-
/** Auto overflow - show scrollbars if needed */
|
|
198
|
-
const OVERFLOW_AUTO = 'overflowAuto';
|
|
199
|
-
/** Hidden overflow - clip content without scrollbars */
|
|
200
|
-
const OVERFLOW_HIDDEN = 'overflowHidden';
|
|
201
|
-
/** Clip overflow - hard clip without scrollbars */
|
|
202
|
-
const OVERFLOW_CLIP = 'overflowClip';
|
|
203
|
-
/** Visible overflow - content extends beyond bounds */
|
|
204
|
-
const OVERFLOW_VISIBLE = 'overflowVisible';
|
|
205
|
-
/** Scroll overflow - always show scrollbars */
|
|
206
|
-
const OVERFLOW_SCROLL = 'overflowScroll';
|
|
207
|
-
/** Auto overflow on X-axis only */
|
|
208
|
-
const OVERFLOW_X_AUTO = 'overflowXAuto';
|
|
209
|
-
/** Auto overflow on Y-axis only */
|
|
210
|
-
const OVERFLOW_Y_AUTO = 'overflowYAuto';
|
|
211
|
-
/** Hidden overflow on X-axis only */
|
|
212
|
-
const OVERFLOW_X_HIDDEN = 'overflowXHidden';
|
|
213
|
-
/** Hidden overflow on Y-axis only */
|
|
214
|
-
const OVERFLOW_Y_HIDDEN = 'overflowYHidden';
|
|
215
|
-
/** Clip overflow on X-axis only */
|
|
216
|
-
const OVERFLOW_X_CLIP = 'overflowXClip';
|
|
217
|
-
/** Clip overflow on Y-axis only */
|
|
218
|
-
const OVERFLOW_Y_CLIP = 'overflowYClip';
|
|
219
|
-
/** Visible overflow on X-axis only */
|
|
220
|
-
const OVERFLOW_X_VISIBLE = 'overflowXVisible';
|
|
221
|
-
/** Visible overflow on Y-axis only */
|
|
222
|
-
const OVERFLOW_Y_VISIBLE = 'overflowYVisible';
|
|
223
|
-
/** Scroll overflow on X-axis only */
|
|
224
|
-
const OVERFLOW_X_SCROLL = 'overflowXScroll';
|
|
225
|
-
/** Scroll overflow on Y-axis only */
|
|
226
|
-
const OVERFLOW_Y_SCROLL = 'overflowYScroll';
|
|
227
|
-
/** All overflow property values */
|
|
228
|
-
const OVERFLOW_VALUES = [
|
|
229
|
-
OVERFLOW_AUTO, OVERFLOW_HIDDEN, OVERFLOW_CLIP, OVERFLOW_VISIBLE, OVERFLOW_SCROLL,
|
|
230
|
-
OVERFLOW_X_AUTO, OVERFLOW_Y_AUTO, OVERFLOW_X_HIDDEN, OVERFLOW_Y_HIDDEN,
|
|
231
|
-
OVERFLOW_X_CLIP, OVERFLOW_Y_CLIP, OVERFLOW_X_VISIBLE, OVERFLOW_Y_VISIBLE,
|
|
232
|
-
OVERFLOW_X_SCROLL, OVERFLOW_Y_SCROLL
|
|
233
|
-
];
|
|
234
|
-
|
|
235
|
-
/** Enable internal padding - uses size-responsive padding values */
|
|
236
|
-
const PADDING$1 = 'padding';
|
|
237
|
-
/** Disable internal padding - no padding applied */
|
|
238
|
-
const NO_PADDING = 'noPadding';
|
|
239
|
-
/** All padding property values */
|
|
240
|
-
const PADDING_VALUES = [PADDING$1, NO_PADDING];
|
|
241
|
-
|
|
242
|
-
/** Relative positioning - offset from normal position */
|
|
243
|
-
const RELATIVE = 'relative';
|
|
244
|
-
/** Absolute positioning - removed from normal flow */
|
|
245
|
-
const ABSOLUTE = 'absolute';
|
|
246
|
-
/** Fixed positioning - positioned relative to viewport */
|
|
247
|
-
const FIXED = 'fixed';
|
|
248
|
-
/** Sticky positioning - toggles between relative and fixed */
|
|
249
|
-
const STICKY = 'sticky';
|
|
250
|
-
/** Static positioning - normal document flow (default) */
|
|
251
|
-
const STATIC = 'static';
|
|
252
|
-
/** All position property values */
|
|
253
|
-
const POSITION_VALUES = [RELATIVE, ABSOLUTE, FIXED, STICKY, STATIC];
|
|
254
|
-
|
|
255
|
-
/** Reverse flex direction - converts row to row-reverse or column to column-reverse */
|
|
256
|
-
const REVERSE = 'reverse';
|
|
257
|
-
/** All reverse property values */
|
|
258
|
-
const REVERSE_VALUES = [REVERSE];
|
|
259
|
-
|
|
260
|
-
/** Show ring - adds decorative ring/outline border around element */
|
|
261
|
-
const RING = 'ring';
|
|
262
|
-
/** Hide ring - removes ring/outline border styling */
|
|
263
|
-
const NO_RING = 'noRing';
|
|
264
|
-
/** All ring property values */
|
|
265
|
-
const RING_VALUES = [RING, NO_RING];
|
|
266
|
-
|
|
267
|
-
/** Enable drop shadow - adds size-responsive shadow styling */
|
|
268
|
-
const SHADOW = 'shadow';
|
|
269
|
-
/** Disable drop shadow - removes all shadow styling */
|
|
270
|
-
const NO_SHADOW = 'noShadow';
|
|
271
|
-
/** All shadow property values */
|
|
272
|
-
const SHADOW_VALUES = [SHADOW, NO_SHADOW];
|
|
273
|
-
|
|
274
|
-
/** Show focus-visible outline - adds visible focus indicator for keyboard navigation */
|
|
275
|
-
const FOCUS_VISIBLE_OUTLINE = 'focusVisible';
|
|
276
|
-
/** Hide focus-visible outline - removes focus-visible outline styling */
|
|
277
|
-
const NO_FOCUS_VISIBLE_OUTLINE = 'noFocusVisible';
|
|
278
|
-
/** All focusVisible property values */
|
|
279
|
-
const FOCUS_VISIBLE_VALUES = [FOCUS_VISIBLE_OUTLINE, NO_FOCUS_VISIBLE_OUTLINE];
|
|
280
|
-
|
|
281
|
-
/** Pill shape - fully rounded corners (rounded-full) */
|
|
282
|
-
const PILL = 'pill';
|
|
283
|
-
/** Sharp shape - no border radius (rounded-none) */
|
|
284
|
-
const SHARP = 'sharp';
|
|
285
|
-
/** Rounded shape - size-responsive border radius (varies by component size) */
|
|
286
|
-
const ROUNDED = 'rounded';
|
|
287
|
-
/** All shape property values */
|
|
288
|
-
const SHAPE_VALUES = [PILL, SHARP, ROUNDED];
|
|
289
|
-
|
|
290
|
-
/** Extra small size - affects padding, font-size, border-radius, and spacing */
|
|
291
|
-
const XS = 'xs';
|
|
292
|
-
/** Small size - affects padding, font-size, border-radius, and spacing */
|
|
293
|
-
const SM = 'sm';
|
|
294
|
-
/** Medium size (default) - affects padding, font-size, border-radius, and spacing */
|
|
295
|
-
const MD = 'md';
|
|
296
|
-
/** Large size - affects padding, font-size, border-radius, and spacing */
|
|
297
|
-
const LG = 'lg';
|
|
298
|
-
/** Extra large size - affects padding, font-size, border-radius, and spacing */
|
|
299
|
-
const XL = 'xl';
|
|
300
|
-
/** All size property values */
|
|
301
|
-
const SIZE_VALUES = [XS, SM, MD, LG, XL];
|
|
302
|
-
|
|
303
|
-
/** Left-aligned text */
|
|
304
|
-
const TEXT_LEFT = 'textLeft';
|
|
305
|
-
/** Center-aligned text */
|
|
306
|
-
const TEXT_CENTER = 'textCenter';
|
|
307
|
-
/** Right-aligned text */
|
|
308
|
-
const TEXT_RIGHT = 'textRight';
|
|
309
|
-
/** Justified text */
|
|
310
|
-
const TEXT_JUSTIFY = 'textJustify';
|
|
311
|
-
/** All text align property values */
|
|
312
|
-
const TEXT_ALIGN_VALUES = [TEXT_LEFT, TEXT_CENTER, TEXT_RIGHT, TEXT_JUSTIFY];
|
|
313
|
-
|
|
314
|
-
/** Add underline decoration below text */
|
|
315
|
-
const UNDERLINE = 'underline';
|
|
316
|
-
/** Add strikethrough/line-through decoration across text */
|
|
317
|
-
const LINE_THROUGH = 'lineThrough';
|
|
318
|
-
/** Remove text decoration (no underline, strikethrough, etc.) */
|
|
319
|
-
const NO_UNDERLINE = 'noUnderline';
|
|
320
|
-
/** Add overline decoration above text */
|
|
321
|
-
const OVERLINE = 'overline';
|
|
322
|
-
/** All text decoration property values */
|
|
323
|
-
const TEXT_DECORATION_VALUES = [UNDERLINE, LINE_THROUGH, NO_UNDERLINE, OVERLINE];
|
|
324
|
-
|
|
325
|
-
/** Transform text to UPPERCASE */
|
|
326
|
-
const UPPERCASE = 'uppercase';
|
|
327
|
-
/** Transform text to lowercase */
|
|
328
|
-
const LOWERCASE = 'lowercase';
|
|
329
|
-
/** Transform text to Capitalize Each Word */
|
|
330
|
-
const CAPITALIZE = 'capitalize';
|
|
331
|
-
/** Normal case - no transformation */
|
|
332
|
-
const NORMAL_CASE = 'normalCase';
|
|
333
|
-
/** All text transform property values */
|
|
334
|
-
const TEXT_TRANSFORM_VALUES = [UPPERCASE, LOWERCASE, CAPITALIZE, NORMAL_CASE];
|
|
335
|
-
|
|
336
|
-
/** Make background transparent for layout/UI components or text transparent for typography components */
|
|
337
|
-
const TRANSPARENT = 'transparent';
|
|
338
|
-
/** All transparent property values */
|
|
339
|
-
const TRANSPARENT_VALUES = [TRANSPARENT];
|
|
340
|
-
|
|
341
|
-
/** Filled variant - solid background with contrasting text color */
|
|
342
|
-
const FILLED = 'filled';
|
|
343
|
-
/** Outline variant - transparent background with border and colored text (default) */
|
|
344
|
-
const OUTLINE = 'outline';
|
|
345
|
-
/** All variant property values */
|
|
346
|
-
const VARIANT_VALUES = [FILLED, OUTLINE];
|
|
347
|
-
|
|
348
|
-
/** Allow flex items to wrap to new lines when container is too narrow */
|
|
349
|
-
const FLEX_WRAP = 'flexWrap';
|
|
350
|
-
/** Force flex items to stay on single line (may overflow) */
|
|
351
|
-
const FLEX_NO_WRAP = 'flexNoWrap';
|
|
352
|
-
/** Wrap flex items in reverse order (last items wrap first) */
|
|
353
|
-
const FLEX_WRAP_REVERSE = 'flexWrapReverse';
|
|
354
|
-
/** All wrap property values */
|
|
355
|
-
const WRAP_VALUES = [FLEX_WRAP, FLEX_NO_WRAP, FLEX_WRAP_REVERSE];
|
|
356
|
-
|
|
357
12
|
/** Base state - default resting appearance */
|
|
358
13
|
const BASE = 'base';
|
|
359
14
|
/** Hover state - appearance when cursor hovers over element */
|
|
@@ -418,62 +73,69 @@ const APPEARANCE_CATEGORY = ['text', 'border', 'ring', 'shadow', 'bg', 'accent',
|
|
|
418
73
|
/** Component property keys mapping categories to their available values */
|
|
419
74
|
const ComponentKeys = {
|
|
420
75
|
/** Color appearance options */
|
|
421
|
-
appearance:
|
|
76
|
+
appearance: ['default', 'accent', 'primary', 'secondary', 'tertiary', 'success', 'danger', 'warning', 'info', 'link'],
|
|
422
77
|
/** Border visibility: includes all border variations and noBorder (border, borderT, borderB, etc., noBorder) */
|
|
423
|
-
border:
|
|
78
|
+
border: ['border', 'borderT', 'borderB', 'borderL', 'borderR', 'borderX', 'borderY', 'noBorder'],
|
|
424
79
|
/** Column breakpoints for responsive grid layouts */
|
|
425
|
-
breakpoint:
|
|
80
|
+
breakpoint: ['mobileCol', 'tabletCol', 'laptopCol', 'desktopCol'],
|
|
426
81
|
/** CSS display property values for element layout behavior */
|
|
427
|
-
display:
|
|
82
|
+
display: ['inline', 'block', 'inlineBlock', 'flex', 'inlineFlex', 'grid', 'inlineGrid', 'contents', 'table', 'tableCell', 'hidden'],
|
|
428
83
|
/** Flex direction: row (horizontal), column (vertical), or reversed variants */
|
|
429
|
-
flexDirection:
|
|
84
|
+
flexDirection: ['row', 'column', 'rowReverse', 'columnReverse'],
|
|
430
85
|
/** Font family types: sans-serif, serif, or monospace */
|
|
431
|
-
fontFamily:
|
|
86
|
+
fontFamily: ['sans', 'serif', 'mono'],
|
|
432
87
|
/** Font style: italic or notItalic (normal) */
|
|
433
|
-
fontStyle:
|
|
88
|
+
fontStyle: ['italic', 'notItalic'],
|
|
434
89
|
/** Font weight from thin (100) to black (900) */
|
|
435
|
-
fontWeight:
|
|
90
|
+
fontWeight: ['thin', 'extralight', 'light', 'normal', 'medium', 'semibold', 'bold', 'extrabold', 'black'],
|
|
436
91
|
/** Spacing between flex/grid items: gap (enabled) or noGap (disabled) */
|
|
437
|
-
gap:
|
|
92
|
+
gap: ['gap', 'noGap'],
|
|
438
93
|
/** Hide elements at specific breakpoint sizes */
|
|
439
|
-
hide:
|
|
94
|
+
hide: ['mobileHide', 'tabletHide', 'laptopHide', 'desktopHide'],
|
|
440
95
|
/** Cross-axis alignment for flex items (align-items) */
|
|
441
|
-
items:
|
|
96
|
+
items: ['itemsStart', 'itemsEnd', 'itemsCenter', 'itemsBaseline', 'itemsStretch'],
|
|
442
97
|
/** Main-axis alignment for flex items (justify-content) */
|
|
443
|
-
justify:
|
|
98
|
+
justify: ['justifyStart', 'justifyEnd', 'justifyCenter', 'justifyBetween', 'justifyAround', 'justifyEvenly', 'justifyStretch', 'justifyBaseline'],
|
|
444
99
|
/** List bullet/numbering style: disc (bullets) or decimal (numbers) */
|
|
445
|
-
listStyle:
|
|
100
|
+
listStyle: ['disc', 'decimal'],
|
|
446
101
|
/** Overflow behavior for content that exceeds container bounds */
|
|
447
|
-
overflow:
|
|
102
|
+
overflow: [
|
|
103
|
+
'overflowAuto', 'overflowHidden', 'overflowClip', 'overflowVisible', 'overflowScroll',
|
|
104
|
+
'overflowXAuto', 'overflowYAuto', 'overflowXHidden', 'overflowYHidden',
|
|
105
|
+
'overflowXClip', 'overflowYClip', 'overflowXVisible', 'overflowYVisible',
|
|
106
|
+
'overflowXScroll', 'overflowYScroll'
|
|
107
|
+
],
|
|
448
108
|
/** Internal spacing: padding (enabled) or noPadding (disabled) */
|
|
449
|
-
padding:
|
|
109
|
+
padding: ['padding', 'noPadding'],
|
|
450
110
|
/** CSS positioning: relative, absolute, fixed, sticky, static */
|
|
451
|
-
position:
|
|
111
|
+
position: ['relative', 'absolute', 'fixed', 'sticky', 'static'],
|
|
452
112
|
/** Reverse the order of flex items */
|
|
453
|
-
reverse:
|
|
113
|
+
reverse: ['reverse'],
|
|
454
114
|
/** Focus ring visibility: ring (show) or noRing (hide) */
|
|
455
|
-
ring:
|
|
115
|
+
ring: ['ring', 'noRing'],
|
|
456
116
|
/** Drop shadow visibility: shadow (enabled) or noShadow (disabled) */
|
|
457
|
-
shadow:
|
|
117
|
+
shadow: ['shadow', 'noShadow'],
|
|
458
118
|
/** Focus-visible outline visibility: focusVisible (show) or noFocusVisible (hide) */
|
|
459
|
-
focusVisible:
|
|
119
|
+
focusVisible: ['focusVisible', 'noFocusVisible'],
|
|
460
120
|
/** Border radius shape: pill (fully rounded), sharp (no radius), rounded (medium radius) */
|
|
461
|
-
shape:
|
|
121
|
+
shape: ['pill', 'sharp', 'rounded'],
|
|
462
122
|
/** Size scale from extra-small to extra-large */
|
|
463
|
-
size:
|
|
123
|
+
size: ['xs', 'sm', 'md', 'lg', 'xl'],
|
|
464
124
|
/** Text alignment: left, center, right, justify */
|
|
465
|
-
textAlign:
|
|
125
|
+
textAlign: ['textLeft', 'textCenter', 'textRight', 'textJustify'],
|
|
466
126
|
/** Text decoration: underline, strikethrough (lineThrough), none (noUnderline), overline */
|
|
467
|
-
textDecoration:
|
|
127
|
+
textDecoration: ['underline', 'lineThrough', 'noUnderline', 'overline'],
|
|
468
128
|
/** Text case transformation: UPPERCASE, lowercase, Capitalize, normalCase */
|
|
469
|
-
textTransform:
|
|
129
|
+
textTransform: ['uppercase', 'lowercase', 'capitalize', 'normalCase'],
|
|
470
130
|
/** Make background (layout/UI) or text (typography) transparent */
|
|
471
|
-
transparent:
|
|
131
|
+
transparent: ['transparent'],
|
|
472
132
|
/** Style variant: filled (solid background) or outline (border only) */
|
|
473
|
-
variant:
|
|
133
|
+
variant: ['filled', 'outline'],
|
|
474
134
|
/** Flex item wrapping behavior: wrap, no-wrap, or wrap-reverse */
|
|
475
|
-
wrap:
|
|
135
|
+
wrap: ['flexWrap', 'flexNoWrap', 'flexWrapReverse'],
|
|
476
136
|
};
|
|
137
|
+
/** All border side keys (excluding noBorder since it doesn't have a CSS class) */
|
|
138
|
+
const BORDER_KEYS = ['border', 'borderT', 'borderB', 'borderL', 'borderR', 'borderX', 'borderY'];
|
|
477
139
|
/** Composite categories built from core blocks */
|
|
478
140
|
/** Complete layout category including core and flex properties */
|
|
479
141
|
const LAYOUT_FULL = [...LAYOUT_CORE, ...LAYOUT_FLEX];
|
|
@@ -4047,11 +3709,11 @@ class AppearanceTheme extends BaseTheme {
|
|
|
4047
3709
|
var _a;
|
|
4048
3710
|
if (this.category === 'border') {
|
|
4049
3711
|
// If noBorder is selected from the border category, don't apply appearance colors
|
|
4050
|
-
if (extractedKeys.border ===
|
|
3712
|
+
if (extractedKeys.border === 'noBorder') {
|
|
4051
3713
|
return [];
|
|
4052
3714
|
}
|
|
4053
3715
|
// Only apply appearance colors if any border prop is set (and not noBorder)
|
|
4054
|
-
const hasBorderProps = extractedKeys.border !== undefined && extractedKeys.border !==
|
|
3716
|
+
const hasBorderProps = extractedKeys.border !== undefined && extractedKeys.border !== 'noBorder';
|
|
4055
3717
|
// If no border props are set, don't apply appearance colors
|
|
4056
3718
|
if (!hasBorderProps) {
|
|
4057
3719
|
return [];
|
|
@@ -5747,385 +5409,11 @@ const ThemedComponent = forwardRef(function ThemedComponent(allProps, ref) {
|
|
|
5747
5409
|
return (jsx(Tag, { ref: ref, className: finalClasses, ...finalProps, children: props.children }));
|
|
5748
5410
|
});
|
|
5749
5411
|
|
|
5750
|
-
/**
|
|
5751
|
-
* Button - A clickable button element with customizable appearance and behavior
|
|
5752
|
-
*
|
|
5753
|
-
* @example
|
|
5754
|
-
* ```tsx
|
|
5755
|
-
* // Basic button
|
|
5756
|
-
* <Button>Click me</Button>
|
|
5757
|
-
*
|
|
5758
|
-
* // With size, appearance, and variant
|
|
5759
|
-
* <Button lg primary filled>Submit</Button>
|
|
5760
|
-
*
|
|
5761
|
-
* // Outlined button
|
|
5762
|
-
* <Button outlined secondary>Cancel</Button>
|
|
5763
|
-
*
|
|
5764
|
-
* // As a link
|
|
5765
|
-
* <Button href="/about">Learn More</Button>
|
|
5766
|
-
* ```
|
|
5767
|
-
*
|
|
5768
|
-
* @param props - Button props
|
|
5769
|
-
* @param props.children - Button content
|
|
5770
|
-
* @param props.className - Additional CSS classes to merge with theme classes
|
|
5771
|
-
*
|
|
5772
|
-
|
|
5773
|
-
* SIZE PROPS:
|
|
5774
|
-
* @param props.xs - Extra small size
|
|
5775
|
-
* @param props.sm - Small size
|
|
5776
|
-
* @param props.md - Medium size (default)
|
|
5777
|
-
* @param props.lg - Large size
|
|
5778
|
-
* @param props.xl - Extra large size
|
|
5779
|
-
*
|
|
5780
|
-
|
|
5781
|
-
* ALIGNMENT PROPS (Cross-axis):
|
|
5782
|
-
* @param props.itemsStart - Align items to start (top/left)
|
|
5783
|
-
* @param props.itemsEnd - Align items to end (bottom/right)
|
|
5784
|
-
* @param props.itemsCenter - Align items to center
|
|
5785
|
-
* @param props.itemsBaseline - Align items to baseline
|
|
5786
|
-
* @param props.itemsStretch - Stretch items to fill container
|
|
5787
|
-
*
|
|
5788
|
-
|
|
5789
|
-
* ALIGNMENT PROPS (Main-axis):
|
|
5790
|
-
* @param props.justifyStart - Justify content to start
|
|
5791
|
-
* @param props.justifyEnd - Justify content to end
|
|
5792
|
-
* @param props.justifyCenter - Justify content to center
|
|
5793
|
-
* @param props.justifyBetween - Space between items
|
|
5794
|
-
* @param props.justifyAround - Space around items
|
|
5795
|
-
* @param props.justifyEvenly - Space evenly between items
|
|
5796
|
-
*
|
|
5797
|
-
|
|
5798
|
-
* POSITION PROPS:
|
|
5799
|
-
* @param props.relative - Relative positioning
|
|
5800
|
-
* @param props.absolute - Absolute positioning
|
|
5801
|
-
* @param props.fixed - Fixed positioning
|
|
5802
|
-
* @param props.sticky - Sticky positioning
|
|
5803
|
-
* @param props.static - Static positioning
|
|
5804
|
-
*
|
|
5805
|
-
|
|
5806
|
-
* DISPLAY PROPS:
|
|
5807
|
-
* @param props.flex - Display as flex container
|
|
5808
|
-
* @param props.block - Display as block
|
|
5809
|
-
* @param props.inline - Display as inline
|
|
5810
|
-
* @param props.inlineBlock - Display as inline-block
|
|
5811
|
-
* @param props.inlineFlex - Display as inline-flex
|
|
5812
|
-
* @param props.grid - Display as grid
|
|
5813
|
-
* @param props.inlineGrid - Display as inline-grid
|
|
5814
|
-
* @param props.contents - Display as contents
|
|
5815
|
-
* @param props.hidden - Hide element (display: none)
|
|
5816
|
-
*
|
|
5817
|
-
|
|
5818
|
-
* OVERFLOW PROPS:
|
|
5819
|
-
* @param props.overflowAuto - Auto overflow on both axes
|
|
5820
|
-
* @param props.overflowHidden - Hidden overflow on both axes
|
|
5821
|
-
* @param props.overflowVisible - Visible overflow on both axes
|
|
5822
|
-
* @param props.overflowScroll - Scrollable overflow on both axes
|
|
5823
|
-
* @param props.overflowXAuto - Auto overflow on X axis
|
|
5824
|
-
* @param props.overflowYAuto - Auto overflow on Y axis
|
|
5825
|
-
* @param props.overflowXHidden - Hidden overflow on X axis
|
|
5826
|
-
* @param props.overflowYHidden - Hidden overflow on Y axis
|
|
5827
|
-
*
|
|
5828
|
-
|
|
5829
|
-
* FLEXBOX PROPS:
|
|
5830
|
-
* @param props.wrap - Enable flex wrap
|
|
5831
|
-
* @param props.reverse - Reverse the order of children
|
|
5832
|
-
*
|
|
5833
|
-
|
|
5834
|
-
* LAYOUT PROPS:
|
|
5835
|
-
* @param props.gap - Enable gap spacing between children
|
|
5836
|
-
* @param props.noGap - Disable gap spacing
|
|
5837
|
-
* @param props.padding - Enable internal padding
|
|
5838
|
-
* @param props.noPadding - Disable internal padding
|
|
5839
|
-
*
|
|
5840
|
-
|
|
5841
|
-
* FLEXBOX DIRECTION PROPS:
|
|
5842
|
-
* @param props.row - Flex direction row (horizontal)
|
|
5843
|
-
* @param props.column - Flex direction column (vertical)
|
|
5844
|
-
* @param props.rowReverse - Flex direction row-reverse
|
|
5845
|
-
* @param props.columnReverse - Flex direction column-reverse
|
|
5846
|
-
*
|
|
5847
|
-
|
|
5848
|
-
* APPEARANCE PROPS:
|
|
5849
|
-
* @param props.default - Default color appearance
|
|
5850
|
-
* @param props.primary - Primary color appearance (blue)
|
|
5851
|
-
* @param props.secondary - Secondary color appearance (gray)
|
|
5852
|
-
* @param props.tertiary - Tertiary color appearance
|
|
5853
|
-
* @param props.accent - Accent color appearance (rose)
|
|
5854
|
-
* @param props.success - Success color appearance (green)
|
|
5855
|
-
* @param props.danger - Danger color appearance (red)
|
|
5856
|
-
* @param props.warning - Warning color appearance (amber)
|
|
5857
|
-
* @param props.info - Info color appearance (cyan)
|
|
5858
|
-
* @param props.link - Link color appearance
|
|
5859
|
-
*
|
|
5860
|
-
|
|
5861
|
-
* BORDER PROPS:
|
|
5862
|
-
* @param props.border - Enable border on all sides
|
|
5863
|
-
* @param props.borderT - Enable border on top
|
|
5864
|
-
* @param props.borderB - Enable border on bottom
|
|
5865
|
-
* @param props.borderL - Enable border on left
|
|
5866
|
-
* @param props.borderR - Enable border on right
|
|
5867
|
-
* @param props.borderX - Enable border on left and right
|
|
5868
|
-
* @param props.borderY - Enable border on top and bottom
|
|
5869
|
-
* @param props.noBorder - Disable all borders
|
|
5870
|
-
*
|
|
5871
|
-
|
|
5872
|
-
* VISUAL DECORATION PROPS:
|
|
5873
|
-
* @param props.shadow - Enable drop shadow
|
|
5874
|
-
* @param props.noShadow - Disable drop shadow
|
|
5875
|
-
* @param props.ring - Enable focus ring
|
|
5876
|
-
* @param props.noRing - Disable focus ring
|
|
5877
|
-
* @param props.focusVisible - Enable focus-visible outline
|
|
5878
|
-
* @param props.noFocusVisible - Disable focus-visible outline
|
|
5879
|
-
*
|
|
5880
|
-
|
|
5881
|
-
* SHAPE PROPS:
|
|
5882
|
-
* @param props.rounded - Medium rounded corners (default)
|
|
5883
|
-
* @param props.pill - Fully rounded corners (circular)
|
|
5884
|
-
* @param props.sharp - No rounded corners (square)
|
|
5885
|
-
*
|
|
5886
|
-
|
|
5887
|
-
* FONT WEIGHT PROPS:
|
|
5888
|
-
* @param props.thin - Thin font weight (100)
|
|
5889
|
-
* @param props.extralight - Extra light font weight (200)
|
|
5890
|
-
* @param props.light - Light font weight (300)
|
|
5891
|
-
* @param props.normal - Normal font weight (400)
|
|
5892
|
-
* @param props.medium - Medium font weight (500)
|
|
5893
|
-
* @param props.semibold - Semibold font weight (600)
|
|
5894
|
-
* @param props.bold - Bold font weight (700)
|
|
5895
|
-
* @param props.extrabold - Extra bold font weight (800)
|
|
5896
|
-
* @param props.black - Black font weight (900)
|
|
5897
|
-
*
|
|
5898
|
-
|
|
5899
|
-
* FONT STYLE PROPS:
|
|
5900
|
-
* @param props.italic - Italic font style
|
|
5901
|
-
* @param props.notItalic - Not italic (normal) font style
|
|
5902
|
-
*
|
|
5903
|
-
|
|
5904
|
-
* TEXT DECORATION PROPS:
|
|
5905
|
-
* @param props.underline - Underline text decoration
|
|
5906
|
-
* @param props.lineThrough - Line-through text decoration
|
|
5907
|
-
* @param props.noUnderline - No text decoration
|
|
5908
|
-
*
|
|
5909
|
-
|
|
5910
|
-
* TEXT TRANSFORM PROPS:
|
|
5911
|
-
* @param props.uppercase - Transform text to uppercase
|
|
5912
|
-
* @param props.lowercase - Transform text to lowercase
|
|
5913
|
-
* @param props.capitalize - Capitalize first letter of each word
|
|
5914
|
-
* @param props.normalCase - Normal text case (no transformation)
|
|
5915
|
-
*
|
|
5916
|
-
|
|
5917
|
-
* FONT FAMILY PROPS:
|
|
5918
|
-
* @param props.sans - Sans-serif font family (default)
|
|
5919
|
-
* @param props.serif - Serif font family
|
|
5920
|
-
* @param props.mono - Monospace font family
|
|
5921
|
-
*
|
|
5922
|
-
|
|
5923
|
-
* TEXT ALIGNMENT PROPS:
|
|
5924
|
-
* @param props.textLeft - Align text to left
|
|
5925
|
-
* @param props.textCenter - Align text to center
|
|
5926
|
-
* @param props.textRight - Align text to right
|
|
5927
|
-
* @param props.textJustify - Justify text
|
|
5928
|
-
*
|
|
5929
|
-
|
|
5930
|
-
* VARIANT PROPS:
|
|
5931
|
-
* @param props.filled - Filled variant with solid background
|
|
5932
|
-
* @param props.outlined - Outlined variant with border only
|
|
5933
|
-
* @param props.ghost - Ghost variant with minimal styling
|
|
5934
|
-
*
|
|
5935
|
-
* @see {@link ButtonProps} for the complete type definition
|
|
5936
|
-
*/
|
|
5937
5412
|
const Button = forwardRef(function Button(props, ref) {
|
|
5938
5413
|
const theme = useTheme();
|
|
5939
5414
|
return jsx(ThemedComponent, { ref: ref, theme: theme.button, ...props });
|
|
5940
5415
|
});
|
|
5941
5416
|
|
|
5942
|
-
/**
|
|
5943
|
-
* Badge - A small label for status, categories, counts, or notifications
|
|
5944
|
-
*
|
|
5945
|
-
* @example
|
|
5946
|
-
* ```tsx
|
|
5947
|
-
* // Basic badge
|
|
5948
|
-
* <Badge>New</Badge>
|
|
5949
|
-
*
|
|
5950
|
-
* // Status badge with appearance and variant
|
|
5951
|
-
* <Badge success filled pill>Active</Badge>
|
|
5952
|
-
*
|
|
5953
|
-
* // Count badge
|
|
5954
|
-
* <Badge danger filled>3</Badge>
|
|
5955
|
-
*
|
|
5956
|
-
* // As a link
|
|
5957
|
-
* <Badge href="/notifications" primary outlined>5 New</Badge>
|
|
5958
|
-
* ```
|
|
5959
|
-
*
|
|
5960
|
-
* @param props - Badge props
|
|
5961
|
-
* @param props.children - Badge content
|
|
5962
|
-
* @param props.className - Additional CSS classes to merge with theme classes
|
|
5963
|
-
*
|
|
5964
|
-
|
|
5965
|
-
* SIZE PROPS:
|
|
5966
|
-
* @param props.xs - Extra small size
|
|
5967
|
-
* @param props.sm - Small size
|
|
5968
|
-
* @param props.md - Medium size (default)
|
|
5969
|
-
* @param props.lg - Large size
|
|
5970
|
-
* @param props.xl - Extra large size
|
|
5971
|
-
*
|
|
5972
|
-
|
|
5973
|
-
* ALIGNMENT PROPS (Cross-axis):
|
|
5974
|
-
* @param props.itemsStart - Align items to start (top/left)
|
|
5975
|
-
* @param props.itemsEnd - Align items to end (bottom/right)
|
|
5976
|
-
* @param props.itemsCenter - Align items to center
|
|
5977
|
-
* @param props.itemsBaseline - Align items to baseline
|
|
5978
|
-
* @param props.itemsStretch - Stretch items to fill container
|
|
5979
|
-
*
|
|
5980
|
-
|
|
5981
|
-
* ALIGNMENT PROPS (Main-axis):
|
|
5982
|
-
* @param props.justifyStart - Justify content to start
|
|
5983
|
-
* @param props.justifyEnd - Justify content to end
|
|
5984
|
-
* @param props.justifyCenter - Justify content to center
|
|
5985
|
-
* @param props.justifyBetween - Space between items
|
|
5986
|
-
* @param props.justifyAround - Space around items
|
|
5987
|
-
* @param props.justifyEvenly - Space evenly between items
|
|
5988
|
-
*
|
|
5989
|
-
|
|
5990
|
-
* POSITION PROPS:
|
|
5991
|
-
* @param props.relative - Relative positioning
|
|
5992
|
-
* @param props.absolute - Absolute positioning
|
|
5993
|
-
* @param props.fixed - Fixed positioning
|
|
5994
|
-
* @param props.sticky - Sticky positioning
|
|
5995
|
-
* @param props.static - Static positioning
|
|
5996
|
-
*
|
|
5997
|
-
|
|
5998
|
-
* DISPLAY PROPS:
|
|
5999
|
-
* @param props.flex - Display as flex container
|
|
6000
|
-
* @param props.block - Display as block
|
|
6001
|
-
* @param props.inline - Display as inline
|
|
6002
|
-
* @param props.inlineBlock - Display as inline-block
|
|
6003
|
-
* @param props.inlineFlex - Display as inline-flex
|
|
6004
|
-
* @param props.grid - Display as grid
|
|
6005
|
-
* @param props.inlineGrid - Display as inline-grid
|
|
6006
|
-
* @param props.contents - Display as contents
|
|
6007
|
-
* @param props.hidden - Hide element (display: none)
|
|
6008
|
-
*
|
|
6009
|
-
|
|
6010
|
-
* OVERFLOW PROPS:
|
|
6011
|
-
* @param props.overflowAuto - Auto overflow on both axes
|
|
6012
|
-
* @param props.overflowHidden - Hidden overflow on both axes
|
|
6013
|
-
* @param props.overflowVisible - Visible overflow on both axes
|
|
6014
|
-
* @param props.overflowScroll - Scrollable overflow on both axes
|
|
6015
|
-
* @param props.overflowXAuto - Auto overflow on X axis
|
|
6016
|
-
* @param props.overflowYAuto - Auto overflow on Y axis
|
|
6017
|
-
* @param props.overflowXHidden - Hidden overflow on X axis
|
|
6018
|
-
* @param props.overflowYHidden - Hidden overflow on Y axis
|
|
6019
|
-
*
|
|
6020
|
-
|
|
6021
|
-
* FLEXBOX PROPS:
|
|
6022
|
-
* @param props.wrap - Enable flex wrap
|
|
6023
|
-
* @param props.reverse - Reverse the order of children
|
|
6024
|
-
*
|
|
6025
|
-
|
|
6026
|
-
* LAYOUT PROPS:
|
|
6027
|
-
* @param props.gap - Enable gap spacing between children
|
|
6028
|
-
* @param props.noGap - Disable gap spacing
|
|
6029
|
-
* @param props.padding - Enable internal padding
|
|
6030
|
-
* @param props.noPadding - Disable internal padding
|
|
6031
|
-
*
|
|
6032
|
-
|
|
6033
|
-
* FLEXBOX DIRECTION PROPS:
|
|
6034
|
-
* @param props.row - Flex direction row (horizontal)
|
|
6035
|
-
* @param props.column - Flex direction column (vertical)
|
|
6036
|
-
* @param props.rowReverse - Flex direction row-reverse
|
|
6037
|
-
* @param props.columnReverse - Flex direction column-reverse
|
|
6038
|
-
*
|
|
6039
|
-
|
|
6040
|
-
* APPEARANCE PROPS:
|
|
6041
|
-
* @param props.default - Default color appearance
|
|
6042
|
-
* @param props.primary - Primary color appearance (blue)
|
|
6043
|
-
* @param props.secondary - Secondary color appearance (gray)
|
|
6044
|
-
* @param props.tertiary - Tertiary color appearance
|
|
6045
|
-
* @param props.accent - Accent color appearance (rose)
|
|
6046
|
-
* @param props.success - Success color appearance (green)
|
|
6047
|
-
* @param props.danger - Danger color appearance (red)
|
|
6048
|
-
* @param props.warning - Warning color appearance (amber)
|
|
6049
|
-
* @param props.info - Info color appearance (cyan)
|
|
6050
|
-
* @param props.link - Link color appearance
|
|
6051
|
-
*
|
|
6052
|
-
|
|
6053
|
-
* BORDER PROPS:
|
|
6054
|
-
* @param props.border - Enable border on all sides
|
|
6055
|
-
* @param props.borderT - Enable border on top
|
|
6056
|
-
* @param props.borderB - Enable border on bottom
|
|
6057
|
-
* @param props.borderL - Enable border on left
|
|
6058
|
-
* @param props.borderR - Enable border on right
|
|
6059
|
-
* @param props.borderX - Enable border on left and right
|
|
6060
|
-
* @param props.borderY - Enable border on top and bottom
|
|
6061
|
-
* @param props.noBorder - Disable all borders
|
|
6062
|
-
*
|
|
6063
|
-
|
|
6064
|
-
* VISUAL DECORATION PROPS:
|
|
6065
|
-
* @param props.shadow - Enable drop shadow
|
|
6066
|
-
* @param props.noShadow - Disable drop shadow
|
|
6067
|
-
* @param props.ring - Enable focus ring
|
|
6068
|
-
* @param props.noRing - Disable focus ring
|
|
6069
|
-
* @param props.focusVisible - Enable focus-visible outline
|
|
6070
|
-
* @param props.noFocusVisible - Disable focus-visible outline
|
|
6071
|
-
*
|
|
6072
|
-
|
|
6073
|
-
* SHAPE PROPS:
|
|
6074
|
-
* @param props.rounded - Medium rounded corners (default)
|
|
6075
|
-
* @param props.pill - Fully rounded corners (circular)
|
|
6076
|
-
* @param props.sharp - No rounded corners (square)
|
|
6077
|
-
*
|
|
6078
|
-
|
|
6079
|
-
* FONT WEIGHT PROPS:
|
|
6080
|
-
* @param props.thin - Thin font weight (100)
|
|
6081
|
-
* @param props.extralight - Extra light font weight (200)
|
|
6082
|
-
* @param props.light - Light font weight (300)
|
|
6083
|
-
* @param props.normal - Normal font weight (400)
|
|
6084
|
-
* @param props.medium - Medium font weight (500)
|
|
6085
|
-
* @param props.semibold - Semibold font weight (600)
|
|
6086
|
-
* @param props.bold - Bold font weight (700)
|
|
6087
|
-
* @param props.extrabold - Extra bold font weight (800)
|
|
6088
|
-
* @param props.black - Black font weight (900)
|
|
6089
|
-
*
|
|
6090
|
-
|
|
6091
|
-
* FONT STYLE PROPS:
|
|
6092
|
-
* @param props.italic - Italic font style
|
|
6093
|
-
* @param props.notItalic - Not italic (normal) font style
|
|
6094
|
-
*
|
|
6095
|
-
|
|
6096
|
-
* TEXT DECORATION PROPS:
|
|
6097
|
-
* @param props.underline - Underline text decoration
|
|
6098
|
-
* @param props.lineThrough - Line-through text decoration
|
|
6099
|
-
* @param props.noUnderline - No text decoration
|
|
6100
|
-
*
|
|
6101
|
-
|
|
6102
|
-
* TEXT TRANSFORM PROPS:
|
|
6103
|
-
* @param props.uppercase - Transform text to uppercase
|
|
6104
|
-
* @param props.lowercase - Transform text to lowercase
|
|
6105
|
-
* @param props.capitalize - Capitalize first letter of each word
|
|
6106
|
-
* @param props.normalCase - Normal text case (no transformation)
|
|
6107
|
-
*
|
|
6108
|
-
|
|
6109
|
-
* FONT FAMILY PROPS:
|
|
6110
|
-
* @param props.sans - Sans-serif font family (default)
|
|
6111
|
-
* @param props.serif - Serif font family
|
|
6112
|
-
* @param props.mono - Monospace font family
|
|
6113
|
-
*
|
|
6114
|
-
|
|
6115
|
-
* TEXT ALIGNMENT PROPS:
|
|
6116
|
-
* @param props.textLeft - Align text to left
|
|
6117
|
-
* @param props.textCenter - Align text to center
|
|
6118
|
-
* @param props.textRight - Align text to right
|
|
6119
|
-
* @param props.textJustify - Justify text
|
|
6120
|
-
*
|
|
6121
|
-
|
|
6122
|
-
* VARIANT PROPS:
|
|
6123
|
-
* @param props.filled - Filled variant with solid background
|
|
6124
|
-
* @param props.outlined - Outlined variant with border only
|
|
6125
|
-
* @param props.ghost - Ghost variant with minimal styling
|
|
6126
|
-
*
|
|
6127
|
-
* @see {@link BadgeProps} for the complete type definition
|
|
6128
|
-
*/
|
|
6129
5417
|
const Badge = forwardRef(function Badge(props, ref) {
|
|
6130
5418
|
const theme = useTheme();
|
|
6131
5419
|
return jsx(ThemedComponent, { theme: theme.badge, ref: ref, ...props });
|
|
@@ -6275,5 +5563,5 @@ const List = forwardRef(function List(props, ref) {
|
|
|
6275
5563
|
return jsx(ThemedComponent, { ref: ref, theme: theme.list, ...props });
|
|
6276
5564
|
});
|
|
6277
5565
|
|
|
6278
|
-
export {
|
|
5566
|
+
export { ACTIVE, APPEARANCE_CATEGORY, BADGE_CATEGORIES, BASE, BORDER, BORDER_KEYS, BREAKPOINT, BUTTON_CATEGORIES, Badge, Button, CARD_CATEGORIES, CHECKBOX_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COL_CATEGORIES, COMPONENT, COMPONENT_PROPS_CATEGORY, CONTAINER_CATEGORIES, Card, Checkbox, Chip, Code, Col, ComponentCategories, ComponentKeys, Container, DIVIDER_CATEGORIES, Divider, FOCUS, FOCUS_VISIBLE, GRID_CATEGORIES, Grid2, Grid3, Grid4, Grid5, Grid6, HOVER, IMG_CATEGORIES, INPUT_CATEGORIES, INTERACTIVE_CATEGORIES, Img, Input, LABEL_CATEGORIES, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LIST_CATEGORIES, LIST_STYLE, Label, Link, List, ListItem, MODE_VALUES, ModeKeys, PADDING, PageTitle, ROW_CATEGORIES, Row, SECTION_CATEGORIES, SHAPE, STACK_CATEGORIES, Section, SectionTitle, Stack, TYPOGRAPHY_CATEGORIES, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, Text, ThemeProvider, Title, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, VISUAL_FULL, VISUAL_LAYOUT, defaultTheme, themeDefaults, useTheme };
|
|
6279
5567
|
//# sourceMappingURL=index.esm.js.map
|