@marigold/system 5.6.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +636 -249
- package/dist/index.js +634 -321
- package/dist/index.mjs +602 -318
- package/package.json +6 -7
package/dist/index.d.ts
CHANGED
|
@@ -1,256 +1,122 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import * as CSS from 'csstype';
|
|
7
|
-
export { keyframes } from '@emotion/react';
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import React__default, { ReactNode } from 'react';
|
|
3
|
+
import { HtmlProps, KebabCase } from '@marigold/types';
|
|
4
|
+
import { StringToBoolean, ClassProp } from 'class-variance-authority/dist/types';
|
|
5
|
+
export { VariantProps } from 'class-variance-authority';
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
interface SVGProps extends Omit<HtmlProps<'svg'>, 'fill'> {
|
|
8
|
+
size?: number | string | number[] | string[];
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const SVG: React__default.ForwardRefExoticComponent<SVGProps & React__default.RefAttributes<SVGSVGElement>>;
|
|
13
12
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
type ThemeComponentProps = {
|
|
18
|
-
variant?: string;
|
|
19
|
-
size?: string;
|
|
13
|
+
type ConfigSchema = Record<string, Record<string, ClassValue>>;
|
|
14
|
+
type ConfigVariants<T extends ConfigSchema> = {
|
|
15
|
+
[Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | null | undefined;
|
|
20
16
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
*/
|
|
24
|
-
type ThemeExtension<ComponentName extends string> = {
|
|
25
|
-
[P in ComponentName]?: {
|
|
26
|
-
base?: CSSObject;
|
|
27
|
-
variant?: {
|
|
28
|
-
[key: string]: CSSObject;
|
|
29
|
-
};
|
|
30
|
-
size?: {
|
|
31
|
-
[key: string]: CSSObject;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
17
|
+
type ConfigVariantsMulti<T extends ConfigSchema> = {
|
|
18
|
+
[Variant in keyof T]?: StringToBoolean<keyof T[Variant]> | StringToBoolean<keyof T[Variant]>[] | undefined;
|
|
34
19
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
[key: string]: {
|
|
45
|
-
[Part in Parts[number]]?: CSSObject;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
size?: {
|
|
49
|
-
[key: string]: {
|
|
50
|
-
[Part in Parts[number]]?: CSSObject;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
};
|
|
20
|
+
type Config<T> = T extends ConfigSchema ? {
|
|
21
|
+
variants?: T;
|
|
22
|
+
defaultVariants?: ConfigVariants<T>;
|
|
23
|
+
compoundVariants?: (T extends ConfigSchema ? (ConfigVariants<T> | ConfigVariantsMulti<T>) & ClassProp : ClassProp)[];
|
|
24
|
+
} : never;
|
|
25
|
+
type Props<T> = T extends ConfigSchema ? ConfigVariants<T> & ClassProp : ClassProp;
|
|
26
|
+
declare const cva: <T>(base?: ClassValue, config?: Config<T> | undefined) => {
|
|
27
|
+
(props?: Props<T> | undefined): string;
|
|
28
|
+
variants: T | undefined;
|
|
54
29
|
};
|
|
30
|
+
type ClassDictionary = Record<string, any>;
|
|
31
|
+
type ClassArray = ClassValue[];
|
|
32
|
+
type ClassValue = ClassArray | ClassDictionary | string | number | null | boolean | undefined;
|
|
33
|
+
declare const cn: (...inputs: ClassValue[]) => string;
|
|
34
|
+
declare const createVar: (o: {
|
|
35
|
+
[key: string]: string | number | undefined;
|
|
36
|
+
}) => React.CSSProperties;
|
|
55
37
|
/**
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* @example
|
|
61
|
-
* Given a theme
|
|
62
|
-
* ```
|
|
63
|
-
* {
|
|
64
|
-
* colors: {
|
|
65
|
-
* primary: { __default: '#00f', light: '#33f' }
|
|
66
|
-
* }
|
|
67
|
-
* }
|
|
68
|
-
* ```
|
|
69
|
-
* `css{{ color: 'primary' }}` resolves to `color: #00f`.
|
|
70
|
-
*/
|
|
71
|
-
type ScaleValue<T> = T | T[] | NestedScaleDict<T> | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Scales are a set of named, pre-defined CSS values which are used
|
|
74
|
-
* to create consitency in sizing across visual elements. They give
|
|
75
|
-
* plain values semantics meaning.
|
|
38
|
+
* Safely get a dot-notated path within a nested object, with ability
|
|
39
|
+
* to return a default if the full key path does not exist or
|
|
40
|
+
* the value is undefined
|
|
76
41
|
*
|
|
77
|
-
*
|
|
78
|
-
* descriptive name for the scale (e.g. `small`/`medium`/.. or `body`/`heading`/...),
|
|
79
|
-
* and the value is the CSS value.
|
|
80
|
-
*/
|
|
81
|
-
interface Scale<T> {
|
|
82
|
-
[key: string]: ScaleValue<T>;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* A {@link Scale} that also includes a required `none` value, which is
|
|
86
|
-
* usually used to define the blank value (e.g `0`).
|
|
87
|
-
*/
|
|
88
|
-
interface ZeroScale<T> extends Scale<T> {
|
|
89
|
-
none: ScaleValue<T>;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Predefined {@link Scale} scale which uses size values.
|
|
42
|
+
* Based on: https://github.com/developit/dlv
|
|
93
43
|
*/
|
|
94
|
-
|
|
95
|
-
regular?: ScaleValue<T>;
|
|
96
|
-
xxsmall?: ScaleValue<T>;
|
|
97
|
-
xsmall?: ScaleValue<T>;
|
|
98
|
-
small?: ScaleValue<T>;
|
|
99
|
-
medium?: ScaleValue<T>;
|
|
100
|
-
large?: ScaleValue<T>;
|
|
101
|
-
xlarge?: ScaleValue<T>;
|
|
102
|
-
xxlarge?: ScaleValue<T>;
|
|
103
|
-
xxxlarge?: ScaleValue<T>;
|
|
104
|
-
huge?: ScaleValue<T>;
|
|
105
|
-
epic?: ScaleValue<T>;
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* A {@link SizeScale} that also includes a required `none` value, which is
|
|
109
|
-
* usually used to define the blank value (e.g `0`).
|
|
110
|
-
*/
|
|
111
|
-
interface ZeroSizeScale<T> extends SizeScale<T> {
|
|
112
|
-
none: ScaleValue<T>;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Base theme with typings for available scales properties.
|
|
116
|
-
*/
|
|
117
|
-
interface Theme {
|
|
118
|
-
/**
|
|
119
|
-
* Styles that applied to the root of the app, where the root can be either the document
|
|
120
|
-
* for full page apps or an element if you're only using Marigold on a portion of the page.
|
|
121
|
-
* This is useful for additional normalizationor and to style non-Marigold elements.
|
|
122
|
-
*/
|
|
123
|
-
root?: {
|
|
124
|
-
[key: string]: CSSObject;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* To configure the default breakpoints used in responsive array values,
|
|
128
|
-
* add a breakpoints array to your theme.
|
|
129
|
-
*
|
|
130
|
-
* Each breakpoint should be a string with a CSS length unit included or a
|
|
131
|
-
* string including a CSS media query. String values with a CSS length unit
|
|
132
|
-
* will be used to generate a mobile-first (i.e. min-width) media query.
|
|
133
|
-
*
|
|
134
|
-
* @example
|
|
135
|
-
* ```ts
|
|
136
|
-
* {
|
|
137
|
-
* breakpoints: [
|
|
138
|
-
* '40em', '50em', '64em',
|
|
139
|
-
* ],
|
|
140
|
-
* }
|
|
141
|
-
* ```
|
|
142
|
-
*/
|
|
143
|
-
breakpoints?: Array<string>;
|
|
144
|
-
colors?: Scale<CSS.Property.Color | NestedScaleDict<CSS.Property.Color>>;
|
|
145
|
-
/**
|
|
146
|
-
* Used to define a scale for whitspace values,
|
|
147
|
-
* like `padding`, `margin`, `gap`, etc.
|
|
148
|
-
*/
|
|
149
|
-
space?: ZeroSizeScale<CSS.Property.Margin<number | string>>;
|
|
150
|
-
/**
|
|
151
|
-
* Used to define a `font-size` scale.
|
|
152
|
-
*/
|
|
153
|
-
fontSizes?: Scale<CSS.Property.FontSize<number>>;
|
|
154
|
-
/**
|
|
155
|
-
* Used to define a `font-family` scale.
|
|
156
|
-
*/
|
|
157
|
-
fonts?: Scale<CSS.Property.FontFamily>;
|
|
158
|
-
/**
|
|
159
|
-
* Used to define a `font-weight` scale.
|
|
160
|
-
*/
|
|
161
|
-
fontWeights?: Scale<CSS.Property.FontWeight>;
|
|
162
|
-
/**
|
|
163
|
-
* Used to define a `line-height` scale.
|
|
164
|
-
*/
|
|
165
|
-
lineHeights?: Scale<CSS.Property.LineHeight<string | 0 | number>>;
|
|
166
|
-
/**
|
|
167
|
-
* Used to define a `letter-spacing` scale.
|
|
168
|
-
*/
|
|
169
|
-
letterSpacings?: Scale<CSS.Property.LetterSpacing<string | 0 | number>>;
|
|
170
|
-
/**
|
|
171
|
-
* Used to define a scale for size values,
|
|
172
|
-
* like `height`, `width`, `flexBasis`, etc.
|
|
173
|
-
*/
|
|
174
|
-
sizes?: ZeroSizeScale<CSS.Property.Height<{}> | CSS.Property.Width<{}>>;
|
|
175
|
-
/**
|
|
176
|
-
* Used to define different `border` styles.
|
|
177
|
-
*/
|
|
178
|
-
borders?: ZeroScale<CSS.Property.Border<{}>>;
|
|
179
|
-
/**
|
|
180
|
-
* Used to define `border-style` styles.
|
|
181
|
-
*/
|
|
182
|
-
borderStyles?: Scale<CSS.Property.Border<{}>>;
|
|
183
|
-
/**
|
|
184
|
-
* Used to define `border-width` styles.
|
|
185
|
-
*/
|
|
186
|
-
borderWidths?: ZeroScale<CSS.Property.BorderWidth<string | 0 | number>>;
|
|
187
|
-
/**
|
|
188
|
-
* Used to define `border-radius` styles.
|
|
189
|
-
*/
|
|
190
|
-
radii?: ZeroScale<CSS.Property.BorderRadius<string | 0 | number>>;
|
|
191
|
-
/**
|
|
192
|
-
* Used to define `Shadow` styles.
|
|
193
|
-
*/
|
|
194
|
-
shadows?: ZeroScale<CSS.Property.BoxShadow>;
|
|
195
|
-
/**
|
|
196
|
-
* Used to define a `z-index` scake.
|
|
197
|
-
*/
|
|
198
|
-
zIndices?: Scale<CSS.Property.ZIndex>;
|
|
199
|
-
/**
|
|
200
|
-
* Used to define a `opacity` scale.
|
|
201
|
-
*/
|
|
202
|
-
opacities?: Scale<CSS.Property.Opacity>;
|
|
203
|
-
/**
|
|
204
|
-
* Used to define a `transition` styles.
|
|
205
|
-
*/
|
|
206
|
-
transitions?: Scale<CSS.Property.Transition>;
|
|
207
|
-
}
|
|
44
|
+
declare const get: (obj: object, path: string, fallback?: any) => any;
|
|
208
45
|
|
|
209
|
-
interface
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* Use to set base styles for the component
|
|
213
|
-
* @internal
|
|
214
|
-
*/
|
|
215
|
-
__baseCSS?: CSSObject;
|
|
46
|
+
interface NestedStringObject {
|
|
47
|
+
[key: string]: NestedStringObject | string;
|
|
216
48
|
}
|
|
217
|
-
interface
|
|
49
|
+
interface ComponentStyleFunction<Variants extends string = never, Sizes extends string = never, Additional extends {
|
|
50
|
+
[name: string]: any;
|
|
51
|
+
} = {}> {
|
|
52
|
+
(props?: {
|
|
53
|
+
variant?: Variants | null;
|
|
54
|
+
size?: Sizes | null;
|
|
55
|
+
className?: ClassValue;
|
|
56
|
+
} & Partial<Additional>): string;
|
|
57
|
+
variants: ConfigSchema | undefined;
|
|
218
58
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
59
|
+
type Theme = {
|
|
60
|
+
name: string;
|
|
61
|
+
screens?: {
|
|
62
|
+
[key: string]: string;
|
|
63
|
+
};
|
|
64
|
+
colors?: NestedStringObject;
|
|
65
|
+
root?: ComponentStyleFunction;
|
|
66
|
+
components: {
|
|
67
|
+
Accordion?: Record<'button' | 'item', ComponentStyleFunction<string, string>>;
|
|
68
|
+
Badge?: ComponentStyleFunction<string, string>;
|
|
69
|
+
Body?: ComponentStyleFunction<string, string>;
|
|
70
|
+
Button?: ComponentStyleFunction<string, string>;
|
|
71
|
+
Card?: ComponentStyleFunction<string, string>;
|
|
72
|
+
DateField?: Record<'segment' | 'field' | 'action', ComponentStyleFunction<string, string>>;
|
|
73
|
+
Dialog?: Record<'closeButton' | 'container', ComponentStyleFunction<string, string>>;
|
|
74
|
+
Divider?: ComponentStyleFunction<string, string>;
|
|
75
|
+
Field?: ComponentStyleFunction<string, string>;
|
|
76
|
+
Footer?: ComponentStyleFunction<string, string>;
|
|
77
|
+
Header?: ComponentStyleFunction<string, string>;
|
|
78
|
+
Headline?: ComponentStyleFunction<string, string>;
|
|
79
|
+
HelpText?: Record<'container' | 'icon', ComponentStyleFunction<string, string>>;
|
|
80
|
+
Image?: ComponentStyleFunction<string, string>;
|
|
81
|
+
Checkbox?: Record<'container' | 'label' | 'checkbox', ComponentStyleFunction<string, string>>;
|
|
82
|
+
Switch?: Record<'container' | 'track' | 'thumb', ComponentStyleFunction<string, string>>;
|
|
83
|
+
Input?: Record<'input' | 'icon' | 'action', ComponentStyleFunction<string, string>>;
|
|
84
|
+
Label?: Record<'container' | 'indicator', ComponentStyleFunction<string, string>>;
|
|
85
|
+
List?: Record<'ol' | 'ul' | 'item', ComponentStyleFunction<string, string>>;
|
|
86
|
+
Link?: ComponentStyleFunction<string, string>;
|
|
87
|
+
ListBox?: Record<'container' | 'list' | 'option' | 'section' | 'sectionTitle', ComponentStyleFunction<string, string>>;
|
|
88
|
+
Menu?: Record<'container' | 'section' | 'item', ComponentStyleFunction<string, string>>;
|
|
89
|
+
Radio?: Record<'container' | 'label' | 'radio', ComponentStyleFunction<string, string>>;
|
|
90
|
+
Slider?: Record<'track' | 'thumb' | 'label' | 'output', ComponentStyleFunction<string, string>>;
|
|
91
|
+
Select?: Record<'select' | 'icon', ComponentStyleFunction<string, string>>;
|
|
92
|
+
NumberField?: Record<'group' | 'stepper', ComponentStyleFunction<string, string>>;
|
|
93
|
+
Message?: Record<'container' | 'icon' | 'title' | 'content', ComponentStyleFunction<string, string>>;
|
|
94
|
+
Table?: Record<'table' | 'header' | 'row' | 'cell', ComponentStyleFunction<string, string>>;
|
|
95
|
+
Tag?: Record<'tag' | 'gridCell' | 'closeButton', ComponentStyleFunction<string, string>>;
|
|
96
|
+
Text?: ComponentStyleFunction<string, string>;
|
|
97
|
+
TextArea?: ComponentStyleFunction<string, string>;
|
|
98
|
+
Tooltip?: Record<'container' | 'arrow', ComponentStyleFunction<string, string>>;
|
|
99
|
+
Tabs?: Record<'tabs' | 'tab', ComponentStyleFunction<string, string>>;
|
|
100
|
+
Underlay?: ComponentStyleFunction<string, string>;
|
|
101
|
+
Calendar?: Record<'calendar' | 'calendarCell' | 'calendarControllers', ComponentStyleFunction<string, string>>;
|
|
102
|
+
DatePicker?: Record<'container' | 'button', ComponentStyleFunction<string, string>>;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
type ComponentNames = keyof Theme['components'];
|
|
106
|
+
type ThemeComponent<C extends ComponentNames> = NonNullable<Theme['components'][C]>;
|
|
238
107
|
|
|
239
|
-
interface
|
|
108
|
+
interface UseClassNamesProps<C extends ComponentNames> {
|
|
109
|
+
component: C;
|
|
240
110
|
variant?: string;
|
|
241
111
|
size?: string;
|
|
112
|
+
className?: ThemeComponent<C> extends (...args: any) => any ? string : {
|
|
113
|
+
[slot in keyof ThemeComponent<C>]?: string;
|
|
114
|
+
};
|
|
242
115
|
}
|
|
243
|
-
type
|
|
244
|
-
[
|
|
245
|
-
};
|
|
246
|
-
declare function useComponentStyles(componentName: string, props?: ComponentStylesProps, options?: {
|
|
247
|
-
parts: never;
|
|
248
|
-
}): CSSObject;
|
|
249
|
-
declare function useComponentStyles<Part extends string, Parts extends ReadonlyArray<Part>>(componentName: string, props?: ComponentStylesProps, options?: {
|
|
250
|
-
parts: Parts;
|
|
251
|
-
}): {
|
|
252
|
-
[P in Parts[number]]: CSSObject;
|
|
116
|
+
type ComponentClassNames<C extends ComponentNames> = ThemeComponent<C> extends (...args: any) => any ? string : {
|
|
117
|
+
[slot in keyof ThemeComponent<C>]: string;
|
|
253
118
|
};
|
|
119
|
+
declare const useClassNames: <C extends "Accordion" | "Badge" | "Body" | "Button" | "Card" | "DateField" | "Dialog" | "Divider" | "Field" | "Footer" | "Header" | "Headline" | "HelpText" | "Image" | "Checkbox" | "Switch" | "Input" | "Label" | "List" | "Link" | "ListBox" | "Menu" | "Radio" | "Slider" | "Select" | "NumberField" | "Message" | "Table" | "Tag" | "Text" | "TextArea" | "Tooltip" | "Tabs" | "Underlay" | "Calendar" | "DatePicker">({ component, className, variant, size, }: UseClassNamesProps<C>) => ComponentClassNames<C>;
|
|
254
120
|
|
|
255
121
|
/**
|
|
256
122
|
* Hook that can be used to return values based on the current screen size,
|
|
@@ -259,7 +125,7 @@ declare function useComponentStyles<Part extends string, Parts extends ReadonlyA
|
|
|
259
125
|
*/
|
|
260
126
|
declare const useResponsiveValue: <T>(values: T[], defaultIndex?: number) => T;
|
|
261
127
|
|
|
262
|
-
type ComponentState = '
|
|
128
|
+
type ComponentState = 'active' | 'checked' | 'disabled' | 'error' | 'expanded' | 'focus' | 'focusVisible' | 'hasIcon' | 'hover' | 'indeterminate' | 'readOnly' | 'required' | 'selected' | 'visited';
|
|
263
129
|
type StateAttrKeyProps = `data-${KebabCase<ComponentState>}`;
|
|
264
130
|
type StateAttrProps = {
|
|
265
131
|
[key in StateAttrKeyProps]?: '';
|
|
@@ -274,22 +140,17 @@ type UseStateProps = {
|
|
|
274
140
|
*/
|
|
275
141
|
declare const useStateProps: (states: UseStateProps) => StateAttrProps;
|
|
276
142
|
|
|
277
|
-
|
|
278
|
-
* @internal
|
|
279
|
-
*/
|
|
280
|
-
declare const __defaultTheme: Theme;
|
|
281
|
-
declare const useTheme: () => {
|
|
282
|
-
theme: Theme;
|
|
283
|
-
css: (style: StyleObject) => _theme_ui_css.CSSObject;
|
|
284
|
-
get: (path: string) => any;
|
|
285
|
-
};
|
|
143
|
+
declare const useTheme: () => Theme;
|
|
286
144
|
interface ThemeProviderProps<T extends Theme> {
|
|
287
145
|
theme: T;
|
|
288
146
|
children: ReactNode;
|
|
289
147
|
}
|
|
290
|
-
declare function ThemeProvider<T extends Theme>({ theme, children, }: ThemeProviderProps<T>): JSX.Element;
|
|
148
|
+
declare function ThemeProvider<T extends Theme>({ theme, children, }: ThemeProviderProps<T>): React__default.JSX.Element;
|
|
149
|
+
|
|
150
|
+
declare const useSmallScreen: () => boolean;
|
|
291
151
|
|
|
292
152
|
declare const defaultTheme: {
|
|
153
|
+
name: string;
|
|
293
154
|
screens: {
|
|
294
155
|
sm: string;
|
|
295
156
|
md: string;
|
|
@@ -297,6 +158,532 @@ declare const defaultTheme: {
|
|
|
297
158
|
xl: string;
|
|
298
159
|
'2xl': string;
|
|
299
160
|
};
|
|
161
|
+
components: {};
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
declare const width: {
|
|
165
|
+
full: string;
|
|
166
|
+
auto: string;
|
|
167
|
+
px: string;
|
|
168
|
+
0: string;
|
|
169
|
+
'0.5': string;
|
|
170
|
+
1: string;
|
|
171
|
+
'1.5': string;
|
|
172
|
+
2: string;
|
|
173
|
+
'2.5': string;
|
|
174
|
+
3: string;
|
|
175
|
+
'3.5': string;
|
|
176
|
+
4: string;
|
|
177
|
+
5: string;
|
|
178
|
+
6: string;
|
|
179
|
+
7: string;
|
|
180
|
+
8: string;
|
|
181
|
+
9: string;
|
|
182
|
+
10: string;
|
|
183
|
+
11: string;
|
|
184
|
+
12: string;
|
|
185
|
+
14: string;
|
|
186
|
+
16: string;
|
|
187
|
+
20: string;
|
|
188
|
+
24: string;
|
|
189
|
+
28: string;
|
|
190
|
+
32: string;
|
|
191
|
+
36: string;
|
|
192
|
+
40: string;
|
|
193
|
+
44: string;
|
|
194
|
+
48: string;
|
|
195
|
+
52: string;
|
|
196
|
+
56: string;
|
|
197
|
+
60: string;
|
|
198
|
+
64: string;
|
|
199
|
+
72: string;
|
|
200
|
+
80: string;
|
|
201
|
+
96: string;
|
|
202
|
+
'1/2': string;
|
|
203
|
+
'1/3': string;
|
|
204
|
+
'2/3': string;
|
|
205
|
+
'1/4': string;
|
|
206
|
+
'2/4': string;
|
|
207
|
+
'3/4': string;
|
|
208
|
+
'1/5': string;
|
|
209
|
+
'2/5': string;
|
|
210
|
+
'3/5': string;
|
|
211
|
+
'1/6': string;
|
|
212
|
+
'2/6': string;
|
|
213
|
+
'3/6': string;
|
|
214
|
+
'4/6': string;
|
|
215
|
+
'5/6': string;
|
|
216
|
+
'1/12': string;
|
|
217
|
+
'2/12': string;
|
|
218
|
+
'3/12': string;
|
|
219
|
+
'4/12': string;
|
|
220
|
+
'5/12': string;
|
|
221
|
+
'6/12': string;
|
|
222
|
+
'7/12': string;
|
|
223
|
+
'8/12': string;
|
|
224
|
+
'9/12': string;
|
|
225
|
+
'10/12': string;
|
|
226
|
+
'11/12': string;
|
|
227
|
+
};
|
|
228
|
+
declare const fontWeight: {
|
|
229
|
+
thin: string;
|
|
230
|
+
extralight: string;
|
|
231
|
+
light: string;
|
|
232
|
+
normal: string;
|
|
233
|
+
medium: string;
|
|
234
|
+
semibold: string;
|
|
235
|
+
bold: string;
|
|
236
|
+
extrabold: string;
|
|
237
|
+
black: string;
|
|
238
|
+
};
|
|
239
|
+
declare const textSize: {
|
|
240
|
+
xs: string;
|
|
241
|
+
sm: string;
|
|
242
|
+
base: string;
|
|
243
|
+
lg: string;
|
|
244
|
+
xl: string;
|
|
245
|
+
'2xl': string;
|
|
246
|
+
'3xl': string;
|
|
247
|
+
'4xl': string;
|
|
248
|
+
'5xl': string;
|
|
249
|
+
};
|
|
250
|
+
declare const textStyle: {
|
|
251
|
+
italic: string;
|
|
252
|
+
normal: string;
|
|
253
|
+
};
|
|
254
|
+
declare const gapSpace: {
|
|
255
|
+
0: string;
|
|
256
|
+
1: string;
|
|
257
|
+
2: string;
|
|
258
|
+
3: string;
|
|
259
|
+
4: string;
|
|
260
|
+
5: string;
|
|
261
|
+
6: string;
|
|
262
|
+
7: string;
|
|
263
|
+
8: string;
|
|
264
|
+
9: string;
|
|
265
|
+
10: string;
|
|
266
|
+
11: string;
|
|
267
|
+
12: string;
|
|
268
|
+
14: string;
|
|
269
|
+
16: string;
|
|
270
|
+
20: string;
|
|
271
|
+
24: string;
|
|
272
|
+
28: string;
|
|
273
|
+
32: string;
|
|
274
|
+
36: string;
|
|
275
|
+
40: string;
|
|
276
|
+
44: string;
|
|
277
|
+
48: string;
|
|
278
|
+
52: string;
|
|
279
|
+
56: string;
|
|
280
|
+
60: string;
|
|
281
|
+
64: string;
|
|
282
|
+
72: string;
|
|
283
|
+
80: string;
|
|
284
|
+
96: string;
|
|
285
|
+
};
|
|
286
|
+
declare const paddingSpace: {
|
|
287
|
+
0: string;
|
|
288
|
+
1: string;
|
|
289
|
+
2: string;
|
|
290
|
+
3: string;
|
|
291
|
+
4: string;
|
|
292
|
+
5: string;
|
|
293
|
+
6: string;
|
|
294
|
+
7: string;
|
|
295
|
+
8: string;
|
|
296
|
+
9: string;
|
|
297
|
+
10: string;
|
|
298
|
+
11: string;
|
|
299
|
+
12: string;
|
|
300
|
+
14: string;
|
|
301
|
+
16: string;
|
|
302
|
+
20: string;
|
|
303
|
+
24: string;
|
|
304
|
+
28: string;
|
|
305
|
+
32: string;
|
|
306
|
+
36: string;
|
|
307
|
+
40: string;
|
|
308
|
+
44: string;
|
|
309
|
+
48: string;
|
|
310
|
+
52: string;
|
|
311
|
+
56: string;
|
|
312
|
+
60: string;
|
|
313
|
+
64: string;
|
|
314
|
+
72: string;
|
|
315
|
+
80: string;
|
|
316
|
+
96: string;
|
|
317
|
+
};
|
|
318
|
+
declare const paddingSpaceX: {
|
|
319
|
+
0: string;
|
|
320
|
+
1: string;
|
|
321
|
+
2: string;
|
|
322
|
+
3: string;
|
|
323
|
+
4: string;
|
|
324
|
+
5: string;
|
|
325
|
+
6: string;
|
|
326
|
+
7: string;
|
|
327
|
+
8: string;
|
|
328
|
+
9: string;
|
|
329
|
+
10: string;
|
|
330
|
+
11: string;
|
|
331
|
+
12: string;
|
|
332
|
+
14: string;
|
|
333
|
+
16: string;
|
|
334
|
+
20: string;
|
|
335
|
+
24: string;
|
|
336
|
+
28: string;
|
|
337
|
+
32: string;
|
|
338
|
+
36: string;
|
|
339
|
+
40: string;
|
|
340
|
+
44: string;
|
|
341
|
+
48: string;
|
|
342
|
+
52: string;
|
|
343
|
+
56: string;
|
|
344
|
+
60: string;
|
|
345
|
+
64: string;
|
|
346
|
+
72: string;
|
|
347
|
+
80: string;
|
|
348
|
+
96: string;
|
|
349
|
+
};
|
|
350
|
+
declare const paddingSpaceY: {
|
|
351
|
+
0: string;
|
|
352
|
+
1: string;
|
|
353
|
+
2: string;
|
|
354
|
+
3: string;
|
|
355
|
+
4: string;
|
|
356
|
+
5: string;
|
|
357
|
+
6: string;
|
|
358
|
+
7: string;
|
|
359
|
+
8: string;
|
|
360
|
+
9: string;
|
|
361
|
+
10: string;
|
|
362
|
+
11: string;
|
|
363
|
+
12: string;
|
|
364
|
+
14: string;
|
|
365
|
+
16: string;
|
|
366
|
+
20: string;
|
|
367
|
+
24: string;
|
|
368
|
+
28: string;
|
|
369
|
+
32: string;
|
|
370
|
+
36: string;
|
|
371
|
+
40: string;
|
|
372
|
+
44: string;
|
|
373
|
+
48: string;
|
|
374
|
+
52: string;
|
|
375
|
+
56: string;
|
|
376
|
+
60: string;
|
|
377
|
+
64: string;
|
|
378
|
+
72: string;
|
|
379
|
+
80: string;
|
|
380
|
+
96: string;
|
|
381
|
+
};
|
|
382
|
+
declare const paddingRight: {
|
|
383
|
+
0: string;
|
|
384
|
+
1: string;
|
|
385
|
+
2: string;
|
|
386
|
+
3: string;
|
|
387
|
+
4: string;
|
|
388
|
+
5: string;
|
|
389
|
+
6: string;
|
|
390
|
+
7: string;
|
|
391
|
+
8: string;
|
|
392
|
+
9: string;
|
|
393
|
+
10: string;
|
|
394
|
+
11: string;
|
|
395
|
+
12: string;
|
|
396
|
+
14: string;
|
|
397
|
+
16: string;
|
|
398
|
+
20: string;
|
|
399
|
+
24: string;
|
|
400
|
+
28: string;
|
|
401
|
+
32: string;
|
|
402
|
+
36: string;
|
|
403
|
+
40: string;
|
|
404
|
+
44: string;
|
|
405
|
+
48: string;
|
|
406
|
+
52: string;
|
|
407
|
+
56: string;
|
|
408
|
+
60: string;
|
|
409
|
+
64: string;
|
|
410
|
+
72: string;
|
|
411
|
+
80: string;
|
|
412
|
+
96: string;
|
|
413
|
+
};
|
|
414
|
+
declare const paddingLeft: {
|
|
415
|
+
0: string;
|
|
416
|
+
1: string;
|
|
417
|
+
2: string;
|
|
418
|
+
3: string;
|
|
419
|
+
4: string;
|
|
420
|
+
5: string;
|
|
421
|
+
6: string;
|
|
422
|
+
7: string;
|
|
423
|
+
8: string;
|
|
424
|
+
9: string;
|
|
425
|
+
10: string;
|
|
426
|
+
11: string;
|
|
427
|
+
12: string;
|
|
428
|
+
14: string;
|
|
429
|
+
16: string;
|
|
430
|
+
20: string;
|
|
431
|
+
24: string;
|
|
432
|
+
28: string;
|
|
433
|
+
32: string;
|
|
434
|
+
36: string;
|
|
435
|
+
40: string;
|
|
436
|
+
44: string;
|
|
437
|
+
48: string;
|
|
438
|
+
52: string;
|
|
439
|
+
56: string;
|
|
440
|
+
60: string;
|
|
441
|
+
64: string;
|
|
442
|
+
72: string;
|
|
443
|
+
80: string;
|
|
444
|
+
96: string;
|
|
445
|
+
};
|
|
446
|
+
declare const paddingTop: {
|
|
447
|
+
0: string;
|
|
448
|
+
1: string;
|
|
449
|
+
2: string;
|
|
450
|
+
3: string;
|
|
451
|
+
4: string;
|
|
452
|
+
5: string;
|
|
453
|
+
6: string;
|
|
454
|
+
7: string;
|
|
455
|
+
8: string;
|
|
456
|
+
9: string;
|
|
457
|
+
10: string;
|
|
458
|
+
11: string;
|
|
459
|
+
12: string;
|
|
460
|
+
14: string;
|
|
461
|
+
16: string;
|
|
462
|
+
20: string;
|
|
463
|
+
24: string;
|
|
464
|
+
28: string;
|
|
465
|
+
32: string;
|
|
466
|
+
36: string;
|
|
467
|
+
40: string;
|
|
468
|
+
44: string;
|
|
469
|
+
48: string;
|
|
470
|
+
52: string;
|
|
471
|
+
56: string;
|
|
472
|
+
60: string;
|
|
473
|
+
64: string;
|
|
474
|
+
72: string;
|
|
475
|
+
80: string;
|
|
476
|
+
96: string;
|
|
477
|
+
};
|
|
478
|
+
declare const paddingBottom: {
|
|
479
|
+
0: string;
|
|
480
|
+
1: string;
|
|
481
|
+
2: string;
|
|
482
|
+
3: string;
|
|
483
|
+
4: string;
|
|
484
|
+
5: string;
|
|
485
|
+
6: string;
|
|
486
|
+
7: string;
|
|
487
|
+
8: string;
|
|
488
|
+
9: string;
|
|
489
|
+
10: string;
|
|
490
|
+
11: string;
|
|
491
|
+
12: string;
|
|
492
|
+
14: string;
|
|
493
|
+
16: string;
|
|
494
|
+
20: string;
|
|
495
|
+
24: string;
|
|
496
|
+
28: string;
|
|
497
|
+
32: string;
|
|
498
|
+
36: string;
|
|
499
|
+
40: string;
|
|
500
|
+
44: string;
|
|
501
|
+
48: string;
|
|
502
|
+
52: string;
|
|
503
|
+
56: string;
|
|
504
|
+
60: string;
|
|
505
|
+
64: string;
|
|
506
|
+
72: string;
|
|
507
|
+
80: string;
|
|
508
|
+
96: string;
|
|
509
|
+
};
|
|
510
|
+
declare const alignment: {
|
|
511
|
+
vertical: {
|
|
512
|
+
alignmentX: {
|
|
513
|
+
none: undefined;
|
|
514
|
+
left: string;
|
|
515
|
+
center: string;
|
|
516
|
+
right: string;
|
|
517
|
+
};
|
|
518
|
+
alignmentY: {
|
|
519
|
+
none: undefined;
|
|
520
|
+
top: string;
|
|
521
|
+
center: string;
|
|
522
|
+
bottom: string;
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
horizontal: {
|
|
526
|
+
alignmentY: {
|
|
527
|
+
none: undefined;
|
|
528
|
+
top: string;
|
|
529
|
+
center: string;
|
|
530
|
+
bottom: string;
|
|
531
|
+
};
|
|
532
|
+
alignmentX: {
|
|
533
|
+
none: undefined;
|
|
534
|
+
left: string;
|
|
535
|
+
center: string;
|
|
536
|
+
right: string;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
declare const placeItems: {
|
|
541
|
+
none: undefined;
|
|
542
|
+
left: string;
|
|
543
|
+
center: string;
|
|
544
|
+
right: string;
|
|
545
|
+
};
|
|
546
|
+
declare const textAlign: {
|
|
547
|
+
none: undefined;
|
|
548
|
+
left: string;
|
|
549
|
+
center: string;
|
|
550
|
+
right: string;
|
|
551
|
+
};
|
|
552
|
+
declare const gridColsAlign: {
|
|
553
|
+
left: string;
|
|
554
|
+
center: string;
|
|
555
|
+
right: string;
|
|
556
|
+
};
|
|
557
|
+
declare const gridColumn: {
|
|
558
|
+
left: string;
|
|
559
|
+
center: string;
|
|
560
|
+
right: string;
|
|
561
|
+
};
|
|
562
|
+
declare const aspect: {
|
|
563
|
+
square: string;
|
|
564
|
+
landscape: string;
|
|
565
|
+
portrait: string;
|
|
566
|
+
widescreen: string;
|
|
567
|
+
ultrawide: string;
|
|
568
|
+
golden: string;
|
|
569
|
+
};
|
|
570
|
+
declare const objectFit: {
|
|
571
|
+
contain: string;
|
|
572
|
+
cover: string;
|
|
573
|
+
fill: string;
|
|
574
|
+
none: string;
|
|
575
|
+
scaleDown: string;
|
|
576
|
+
};
|
|
577
|
+
declare const objectPosition: {
|
|
578
|
+
none: undefined;
|
|
579
|
+
bottom: string;
|
|
580
|
+
center: string;
|
|
581
|
+
left: string;
|
|
582
|
+
leftBottom: string;
|
|
583
|
+
leftTop: string;
|
|
584
|
+
right: string;
|
|
585
|
+
rightBottom: string;
|
|
586
|
+
rightTop: string;
|
|
587
|
+
top: string;
|
|
588
|
+
};
|
|
589
|
+
declare const cursorStyle: {
|
|
590
|
+
auto: string;
|
|
591
|
+
default: string;
|
|
592
|
+
pointer: string;
|
|
593
|
+
wait: string;
|
|
594
|
+
text: string;
|
|
595
|
+
move: string;
|
|
596
|
+
help: string;
|
|
597
|
+
notAllowed: string;
|
|
598
|
+
none: string;
|
|
599
|
+
progress: string;
|
|
600
|
+
cell: string;
|
|
601
|
+
crosshair: string;
|
|
602
|
+
vertical: string;
|
|
603
|
+
alias: string;
|
|
604
|
+
copy: string;
|
|
605
|
+
noDrop: string;
|
|
606
|
+
grap: string;
|
|
607
|
+
grapping: string;
|
|
608
|
+
scroll: string;
|
|
609
|
+
colResize: string;
|
|
610
|
+
rowResize: string;
|
|
611
|
+
ewResize: string;
|
|
612
|
+
nsResize: string;
|
|
613
|
+
zoomIn: string;
|
|
614
|
+
zoomOut: string;
|
|
615
|
+
};
|
|
616
|
+
type AspectProp = {
|
|
617
|
+
ratio?: keyof typeof aspect;
|
|
618
|
+
};
|
|
619
|
+
type AlignmentProp = {
|
|
620
|
+
orientation?: {
|
|
621
|
+
vertical?: {
|
|
622
|
+
alignY?: keyof typeof alignment.vertical.alignmentY;
|
|
623
|
+
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
624
|
+
};
|
|
625
|
+
horizontal?: {
|
|
626
|
+
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
627
|
+
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
type CursorProp = {
|
|
632
|
+
cursor?: keyof typeof cursorStyle;
|
|
633
|
+
};
|
|
634
|
+
type FontStyleProp = {
|
|
635
|
+
fontStyle?: keyof typeof textStyle;
|
|
636
|
+
};
|
|
637
|
+
type FontWeightProp = {
|
|
638
|
+
weight?: keyof typeof fontWeight;
|
|
639
|
+
};
|
|
640
|
+
type FontSizeProp = {
|
|
641
|
+
fontSize?: keyof typeof textSize;
|
|
642
|
+
};
|
|
643
|
+
type GridColsAlignProp = {
|
|
644
|
+
align?: keyof typeof gridColsAlign;
|
|
645
|
+
};
|
|
646
|
+
type GridColumn = {
|
|
647
|
+
align?: keyof typeof gridColumn;
|
|
648
|
+
};
|
|
649
|
+
type GapSpaceProp = {
|
|
650
|
+
space?: keyof typeof gapSpace;
|
|
651
|
+
};
|
|
652
|
+
type ObjectFitProp = {
|
|
653
|
+
fit?: keyof typeof objectFit;
|
|
654
|
+
};
|
|
655
|
+
type ObjectPositionProp = {
|
|
656
|
+
position?: keyof typeof objectPosition;
|
|
657
|
+
};
|
|
658
|
+
type PaddingSpaceProp = {
|
|
659
|
+
space?: keyof typeof paddingSpace;
|
|
660
|
+
};
|
|
661
|
+
type PaddingSpacePropX = {
|
|
662
|
+
spaceX?: keyof typeof paddingSpaceX;
|
|
663
|
+
};
|
|
664
|
+
type PaddingSpacePropY = {
|
|
665
|
+
spaceY?: keyof typeof paddingSpaceY;
|
|
666
|
+
};
|
|
667
|
+
type PaddingRightProp = {
|
|
668
|
+
pr?: keyof typeof paddingRight;
|
|
669
|
+
};
|
|
670
|
+
type PaddingLeftProp = {
|
|
671
|
+
pl?: keyof typeof paddingLeft;
|
|
672
|
+
};
|
|
673
|
+
type PaddingTopProp = {
|
|
674
|
+
pt?: keyof typeof paddingTop;
|
|
675
|
+
};
|
|
676
|
+
type PaddingBottomProp = {
|
|
677
|
+
pb?: keyof typeof paddingBottom;
|
|
678
|
+
};
|
|
679
|
+
type PlaceItemsProp = {
|
|
680
|
+
align?: keyof typeof placeItems;
|
|
681
|
+
};
|
|
682
|
+
type TextAlignProp = {
|
|
683
|
+
align?: keyof typeof textAlign;
|
|
684
|
+
};
|
|
685
|
+
type WidthProp = {
|
|
686
|
+
width?: keyof typeof width;
|
|
300
687
|
};
|
|
301
688
|
|
|
302
|
-
export {
|
|
689
|
+
export { AlignmentProp, AspectProp, ClassArray, ClassDictionary, ClassValue, ComponentClassNames, ComponentNames, ComponentState, ComponentStyleFunction, Config, ConfigSchema, ConfigVariants, ConfigVariantsMulti, CursorProp, FontSizeProp, FontStyleProp, FontWeightProp, GapSpaceProp, GridColsAlignProp, GridColumn, NestedStringObject, ObjectFitProp, ObjectPositionProp, PaddingBottomProp, PaddingLeftProp, PaddingRightProp, PaddingSpaceProp, PaddingSpacePropX, PaddingSpacePropY, PaddingTopProp, PlaceItemsProp, Props, SVG, SVGProps, StateAttrKeyProps, StateAttrProps, TextAlignProp, Theme, ThemeComponent, ThemeProvider, ThemeProviderProps, UseClassNamesProps, UseStateProps, WidthProp, alignment, aspect, cn, createVar, cursorStyle, cva, defaultTheme, fontWeight, gapSpace, get, gridColsAlign, gridColumn, objectFit, objectPosition, paddingBottom, paddingLeft, paddingRight, paddingSpace, paddingSpaceX, paddingSpaceY, paddingTop, placeItems, textAlign, textSize, textStyle, useClassNames, useResponsiveValue, useSmallScreen, useStateProps, useTheme, width };
|