@marigold/system 5.6.0 → 6.0.1
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 +637 -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,123 @@
|
|
|
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
|
+
Popover?: ComponentStyleFunction<string, string>;
|
|
80
|
+
HelpText?: Record<'container' | 'icon', ComponentStyleFunction<string, string>>;
|
|
81
|
+
Image?: ComponentStyleFunction<string, string>;
|
|
82
|
+
Checkbox?: Record<'container' | 'label' | 'checkbox', ComponentStyleFunction<string, string>>;
|
|
83
|
+
Switch?: Record<'container' | 'track' | 'thumb', ComponentStyleFunction<string, string>>;
|
|
84
|
+
Input?: Record<'input' | 'icon' | 'action', ComponentStyleFunction<string, string>>;
|
|
85
|
+
Label?: Record<'container' | 'indicator', ComponentStyleFunction<string, string>>;
|
|
86
|
+
List?: Record<'ol' | 'ul' | 'item', ComponentStyleFunction<string, string>>;
|
|
87
|
+
Link?: ComponentStyleFunction<string, string>;
|
|
88
|
+
ListBox?: Record<'container' | 'list' | 'option' | 'section' | 'sectionTitle', ComponentStyleFunction<string, string>>;
|
|
89
|
+
Menu?: Record<'container' | 'section' | 'item', ComponentStyleFunction<string, string>>;
|
|
90
|
+
Radio?: Record<'container' | 'label' | 'radio', ComponentStyleFunction<string, string>>;
|
|
91
|
+
Slider?: Record<'track' | 'thumb' | 'label' | 'output', ComponentStyleFunction<string, string>>;
|
|
92
|
+
Select?: Record<'select' | 'icon', ComponentStyleFunction<string, string>>;
|
|
93
|
+
NumberField?: Record<'group' | 'stepper', ComponentStyleFunction<string, string>>;
|
|
94
|
+
Message?: Record<'container' | 'icon' | 'title' | 'content', ComponentStyleFunction<string, string>>;
|
|
95
|
+
Table?: Record<'table' | 'header' | 'row' | 'cell', ComponentStyleFunction<string, string>>;
|
|
96
|
+
Tag?: Record<'tag' | 'gridCell' | 'closeButton', ComponentStyleFunction<string, string>>;
|
|
97
|
+
Text?: ComponentStyleFunction<string, string>;
|
|
98
|
+
TextArea?: ComponentStyleFunction<string, string>;
|
|
99
|
+
Tooltip?: Record<'container' | 'arrow', ComponentStyleFunction<string, string>>;
|
|
100
|
+
Tabs?: Record<'tabs' | 'tab', ComponentStyleFunction<string, string>>;
|
|
101
|
+
Underlay?: ComponentStyleFunction<string, string>;
|
|
102
|
+
Calendar?: Record<'calendar' | 'calendarCell' | 'calendarControllers', ComponentStyleFunction<string, string>>;
|
|
103
|
+
DatePicker?: Record<'container' | 'button', ComponentStyleFunction<string, string>>;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
type ComponentNames = keyof Theme['components'];
|
|
107
|
+
type ThemeComponent<C extends ComponentNames> = NonNullable<Theme['components'][C]>;
|
|
238
108
|
|
|
239
|
-
interface
|
|
109
|
+
interface UseClassNamesProps<C extends ComponentNames> {
|
|
110
|
+
component: C;
|
|
240
111
|
variant?: string;
|
|
241
112
|
size?: string;
|
|
113
|
+
className?: ThemeComponent<C> extends (...args: any) => any ? string : {
|
|
114
|
+
[slot in keyof ThemeComponent<C>]?: string;
|
|
115
|
+
};
|
|
242
116
|
}
|
|
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;
|
|
117
|
+
type ComponentClassNames<C extends ComponentNames> = ThemeComponent<C> extends (...args: any) => any ? string : {
|
|
118
|
+
[slot in keyof ThemeComponent<C>]: string;
|
|
253
119
|
};
|
|
120
|
+
declare const useClassNames: <C extends "Accordion" | "Badge" | "Body" | "Button" | "Card" | "DateField" | "Dialog" | "Divider" | "Field" | "Footer" | "Header" | "Headline" | "Popover" | "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
121
|
|
|
255
122
|
/**
|
|
256
123
|
* Hook that can be used to return values based on the current screen size,
|
|
@@ -259,7 +126,7 @@ declare function useComponentStyles<Part extends string, Parts extends ReadonlyA
|
|
|
259
126
|
*/
|
|
260
127
|
declare const useResponsiveValue: <T>(values: T[], defaultIndex?: number) => T;
|
|
261
128
|
|
|
262
|
-
type ComponentState = '
|
|
129
|
+
type ComponentState = 'active' | 'checked' | 'disabled' | 'error' | 'expanded' | 'focus' | 'focusVisible' | 'hasIcon' | 'hover' | 'indeterminate' | 'readOnly' | 'required' | 'selected' | 'visited';
|
|
263
130
|
type StateAttrKeyProps = `data-${KebabCase<ComponentState>}`;
|
|
264
131
|
type StateAttrProps = {
|
|
265
132
|
[key in StateAttrKeyProps]?: '';
|
|
@@ -274,22 +141,17 @@ type UseStateProps = {
|
|
|
274
141
|
*/
|
|
275
142
|
declare const useStateProps: (states: UseStateProps) => StateAttrProps;
|
|
276
143
|
|
|
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
|
-
};
|
|
144
|
+
declare const useTheme: () => Theme;
|
|
286
145
|
interface ThemeProviderProps<T extends Theme> {
|
|
287
146
|
theme: T;
|
|
288
147
|
children: ReactNode;
|
|
289
148
|
}
|
|
290
|
-
declare function ThemeProvider<T extends Theme>({ theme, children, }: ThemeProviderProps<T>): JSX.Element;
|
|
149
|
+
declare function ThemeProvider<T extends Theme>({ theme, children, }: ThemeProviderProps<T>): React__default.JSX.Element;
|
|
150
|
+
|
|
151
|
+
declare const useSmallScreen: () => boolean;
|
|
291
152
|
|
|
292
153
|
declare const defaultTheme: {
|
|
154
|
+
name: string;
|
|
293
155
|
screens: {
|
|
294
156
|
sm: string;
|
|
295
157
|
md: string;
|
|
@@ -297,6 +159,532 @@ declare const defaultTheme: {
|
|
|
297
159
|
xl: string;
|
|
298
160
|
'2xl': string;
|
|
299
161
|
};
|
|
162
|
+
components: {};
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
declare const width: {
|
|
166
|
+
full: string;
|
|
167
|
+
auto: string;
|
|
168
|
+
px: string;
|
|
169
|
+
0: string;
|
|
170
|
+
'0.5': string;
|
|
171
|
+
1: string;
|
|
172
|
+
'1.5': string;
|
|
173
|
+
2: string;
|
|
174
|
+
'2.5': string;
|
|
175
|
+
3: string;
|
|
176
|
+
'3.5': string;
|
|
177
|
+
4: string;
|
|
178
|
+
5: string;
|
|
179
|
+
6: string;
|
|
180
|
+
7: string;
|
|
181
|
+
8: string;
|
|
182
|
+
9: string;
|
|
183
|
+
10: string;
|
|
184
|
+
11: string;
|
|
185
|
+
12: string;
|
|
186
|
+
14: string;
|
|
187
|
+
16: string;
|
|
188
|
+
20: string;
|
|
189
|
+
24: string;
|
|
190
|
+
28: string;
|
|
191
|
+
32: string;
|
|
192
|
+
36: string;
|
|
193
|
+
40: string;
|
|
194
|
+
44: string;
|
|
195
|
+
48: string;
|
|
196
|
+
52: string;
|
|
197
|
+
56: string;
|
|
198
|
+
60: string;
|
|
199
|
+
64: string;
|
|
200
|
+
72: string;
|
|
201
|
+
80: string;
|
|
202
|
+
96: string;
|
|
203
|
+
'1/2': string;
|
|
204
|
+
'1/3': string;
|
|
205
|
+
'2/3': string;
|
|
206
|
+
'1/4': string;
|
|
207
|
+
'2/4': string;
|
|
208
|
+
'3/4': string;
|
|
209
|
+
'1/5': string;
|
|
210
|
+
'2/5': string;
|
|
211
|
+
'3/5': string;
|
|
212
|
+
'1/6': string;
|
|
213
|
+
'2/6': string;
|
|
214
|
+
'3/6': string;
|
|
215
|
+
'4/6': string;
|
|
216
|
+
'5/6': string;
|
|
217
|
+
'1/12': string;
|
|
218
|
+
'2/12': string;
|
|
219
|
+
'3/12': string;
|
|
220
|
+
'4/12': string;
|
|
221
|
+
'5/12': string;
|
|
222
|
+
'6/12': string;
|
|
223
|
+
'7/12': string;
|
|
224
|
+
'8/12': string;
|
|
225
|
+
'9/12': string;
|
|
226
|
+
'10/12': string;
|
|
227
|
+
'11/12': string;
|
|
228
|
+
};
|
|
229
|
+
declare const fontWeight: {
|
|
230
|
+
thin: string;
|
|
231
|
+
extralight: string;
|
|
232
|
+
light: string;
|
|
233
|
+
normal: string;
|
|
234
|
+
medium: string;
|
|
235
|
+
semibold: string;
|
|
236
|
+
bold: string;
|
|
237
|
+
extrabold: string;
|
|
238
|
+
black: string;
|
|
239
|
+
};
|
|
240
|
+
declare const textSize: {
|
|
241
|
+
xs: string;
|
|
242
|
+
sm: string;
|
|
243
|
+
base: string;
|
|
244
|
+
lg: string;
|
|
245
|
+
xl: string;
|
|
246
|
+
'2xl': string;
|
|
247
|
+
'3xl': string;
|
|
248
|
+
'4xl': string;
|
|
249
|
+
'5xl': string;
|
|
250
|
+
};
|
|
251
|
+
declare const textStyle: {
|
|
252
|
+
italic: string;
|
|
253
|
+
normal: string;
|
|
254
|
+
};
|
|
255
|
+
declare const gapSpace: {
|
|
256
|
+
0: string;
|
|
257
|
+
1: string;
|
|
258
|
+
2: string;
|
|
259
|
+
3: string;
|
|
260
|
+
4: string;
|
|
261
|
+
5: string;
|
|
262
|
+
6: string;
|
|
263
|
+
7: string;
|
|
264
|
+
8: string;
|
|
265
|
+
9: string;
|
|
266
|
+
10: string;
|
|
267
|
+
11: string;
|
|
268
|
+
12: string;
|
|
269
|
+
14: string;
|
|
270
|
+
16: string;
|
|
271
|
+
20: string;
|
|
272
|
+
24: string;
|
|
273
|
+
28: string;
|
|
274
|
+
32: string;
|
|
275
|
+
36: string;
|
|
276
|
+
40: string;
|
|
277
|
+
44: string;
|
|
278
|
+
48: string;
|
|
279
|
+
52: string;
|
|
280
|
+
56: string;
|
|
281
|
+
60: string;
|
|
282
|
+
64: string;
|
|
283
|
+
72: string;
|
|
284
|
+
80: string;
|
|
285
|
+
96: string;
|
|
286
|
+
};
|
|
287
|
+
declare const paddingSpace: {
|
|
288
|
+
0: string;
|
|
289
|
+
1: string;
|
|
290
|
+
2: string;
|
|
291
|
+
3: string;
|
|
292
|
+
4: string;
|
|
293
|
+
5: string;
|
|
294
|
+
6: string;
|
|
295
|
+
7: string;
|
|
296
|
+
8: string;
|
|
297
|
+
9: string;
|
|
298
|
+
10: string;
|
|
299
|
+
11: string;
|
|
300
|
+
12: string;
|
|
301
|
+
14: string;
|
|
302
|
+
16: string;
|
|
303
|
+
20: string;
|
|
304
|
+
24: string;
|
|
305
|
+
28: string;
|
|
306
|
+
32: string;
|
|
307
|
+
36: string;
|
|
308
|
+
40: string;
|
|
309
|
+
44: string;
|
|
310
|
+
48: string;
|
|
311
|
+
52: string;
|
|
312
|
+
56: string;
|
|
313
|
+
60: string;
|
|
314
|
+
64: string;
|
|
315
|
+
72: string;
|
|
316
|
+
80: string;
|
|
317
|
+
96: string;
|
|
318
|
+
};
|
|
319
|
+
declare const paddingSpaceX: {
|
|
320
|
+
0: string;
|
|
321
|
+
1: string;
|
|
322
|
+
2: string;
|
|
323
|
+
3: string;
|
|
324
|
+
4: string;
|
|
325
|
+
5: string;
|
|
326
|
+
6: string;
|
|
327
|
+
7: string;
|
|
328
|
+
8: string;
|
|
329
|
+
9: string;
|
|
330
|
+
10: string;
|
|
331
|
+
11: string;
|
|
332
|
+
12: string;
|
|
333
|
+
14: string;
|
|
334
|
+
16: string;
|
|
335
|
+
20: string;
|
|
336
|
+
24: string;
|
|
337
|
+
28: string;
|
|
338
|
+
32: string;
|
|
339
|
+
36: string;
|
|
340
|
+
40: string;
|
|
341
|
+
44: string;
|
|
342
|
+
48: string;
|
|
343
|
+
52: string;
|
|
344
|
+
56: string;
|
|
345
|
+
60: string;
|
|
346
|
+
64: string;
|
|
347
|
+
72: string;
|
|
348
|
+
80: string;
|
|
349
|
+
96: string;
|
|
350
|
+
};
|
|
351
|
+
declare const paddingSpaceY: {
|
|
352
|
+
0: string;
|
|
353
|
+
1: string;
|
|
354
|
+
2: string;
|
|
355
|
+
3: string;
|
|
356
|
+
4: string;
|
|
357
|
+
5: string;
|
|
358
|
+
6: string;
|
|
359
|
+
7: string;
|
|
360
|
+
8: string;
|
|
361
|
+
9: string;
|
|
362
|
+
10: string;
|
|
363
|
+
11: string;
|
|
364
|
+
12: string;
|
|
365
|
+
14: string;
|
|
366
|
+
16: string;
|
|
367
|
+
20: string;
|
|
368
|
+
24: string;
|
|
369
|
+
28: string;
|
|
370
|
+
32: string;
|
|
371
|
+
36: string;
|
|
372
|
+
40: string;
|
|
373
|
+
44: string;
|
|
374
|
+
48: string;
|
|
375
|
+
52: string;
|
|
376
|
+
56: string;
|
|
377
|
+
60: string;
|
|
378
|
+
64: string;
|
|
379
|
+
72: string;
|
|
380
|
+
80: string;
|
|
381
|
+
96: string;
|
|
382
|
+
};
|
|
383
|
+
declare const paddingRight: {
|
|
384
|
+
0: string;
|
|
385
|
+
1: string;
|
|
386
|
+
2: string;
|
|
387
|
+
3: string;
|
|
388
|
+
4: string;
|
|
389
|
+
5: string;
|
|
390
|
+
6: string;
|
|
391
|
+
7: string;
|
|
392
|
+
8: string;
|
|
393
|
+
9: string;
|
|
394
|
+
10: string;
|
|
395
|
+
11: string;
|
|
396
|
+
12: string;
|
|
397
|
+
14: string;
|
|
398
|
+
16: string;
|
|
399
|
+
20: string;
|
|
400
|
+
24: string;
|
|
401
|
+
28: string;
|
|
402
|
+
32: string;
|
|
403
|
+
36: string;
|
|
404
|
+
40: string;
|
|
405
|
+
44: string;
|
|
406
|
+
48: string;
|
|
407
|
+
52: string;
|
|
408
|
+
56: string;
|
|
409
|
+
60: string;
|
|
410
|
+
64: string;
|
|
411
|
+
72: string;
|
|
412
|
+
80: string;
|
|
413
|
+
96: string;
|
|
414
|
+
};
|
|
415
|
+
declare const paddingLeft: {
|
|
416
|
+
0: string;
|
|
417
|
+
1: string;
|
|
418
|
+
2: string;
|
|
419
|
+
3: string;
|
|
420
|
+
4: string;
|
|
421
|
+
5: string;
|
|
422
|
+
6: string;
|
|
423
|
+
7: string;
|
|
424
|
+
8: string;
|
|
425
|
+
9: string;
|
|
426
|
+
10: string;
|
|
427
|
+
11: string;
|
|
428
|
+
12: string;
|
|
429
|
+
14: string;
|
|
430
|
+
16: string;
|
|
431
|
+
20: string;
|
|
432
|
+
24: string;
|
|
433
|
+
28: string;
|
|
434
|
+
32: string;
|
|
435
|
+
36: string;
|
|
436
|
+
40: string;
|
|
437
|
+
44: string;
|
|
438
|
+
48: string;
|
|
439
|
+
52: string;
|
|
440
|
+
56: string;
|
|
441
|
+
60: string;
|
|
442
|
+
64: string;
|
|
443
|
+
72: string;
|
|
444
|
+
80: string;
|
|
445
|
+
96: string;
|
|
446
|
+
};
|
|
447
|
+
declare const paddingTop: {
|
|
448
|
+
0: string;
|
|
449
|
+
1: string;
|
|
450
|
+
2: string;
|
|
451
|
+
3: string;
|
|
452
|
+
4: string;
|
|
453
|
+
5: string;
|
|
454
|
+
6: string;
|
|
455
|
+
7: string;
|
|
456
|
+
8: string;
|
|
457
|
+
9: string;
|
|
458
|
+
10: string;
|
|
459
|
+
11: string;
|
|
460
|
+
12: string;
|
|
461
|
+
14: string;
|
|
462
|
+
16: string;
|
|
463
|
+
20: string;
|
|
464
|
+
24: string;
|
|
465
|
+
28: string;
|
|
466
|
+
32: string;
|
|
467
|
+
36: string;
|
|
468
|
+
40: string;
|
|
469
|
+
44: string;
|
|
470
|
+
48: string;
|
|
471
|
+
52: string;
|
|
472
|
+
56: string;
|
|
473
|
+
60: string;
|
|
474
|
+
64: string;
|
|
475
|
+
72: string;
|
|
476
|
+
80: string;
|
|
477
|
+
96: string;
|
|
478
|
+
};
|
|
479
|
+
declare const paddingBottom: {
|
|
480
|
+
0: string;
|
|
481
|
+
1: string;
|
|
482
|
+
2: string;
|
|
483
|
+
3: string;
|
|
484
|
+
4: string;
|
|
485
|
+
5: string;
|
|
486
|
+
6: string;
|
|
487
|
+
7: string;
|
|
488
|
+
8: string;
|
|
489
|
+
9: string;
|
|
490
|
+
10: string;
|
|
491
|
+
11: string;
|
|
492
|
+
12: string;
|
|
493
|
+
14: string;
|
|
494
|
+
16: string;
|
|
495
|
+
20: string;
|
|
496
|
+
24: string;
|
|
497
|
+
28: string;
|
|
498
|
+
32: string;
|
|
499
|
+
36: string;
|
|
500
|
+
40: string;
|
|
501
|
+
44: string;
|
|
502
|
+
48: string;
|
|
503
|
+
52: string;
|
|
504
|
+
56: string;
|
|
505
|
+
60: string;
|
|
506
|
+
64: string;
|
|
507
|
+
72: string;
|
|
508
|
+
80: string;
|
|
509
|
+
96: string;
|
|
510
|
+
};
|
|
511
|
+
declare const alignment: {
|
|
512
|
+
vertical: {
|
|
513
|
+
alignmentX: {
|
|
514
|
+
none: undefined;
|
|
515
|
+
left: string;
|
|
516
|
+
center: string;
|
|
517
|
+
right: string;
|
|
518
|
+
};
|
|
519
|
+
alignmentY: {
|
|
520
|
+
none: undefined;
|
|
521
|
+
top: string;
|
|
522
|
+
center: string;
|
|
523
|
+
bottom: string;
|
|
524
|
+
};
|
|
525
|
+
};
|
|
526
|
+
horizontal: {
|
|
527
|
+
alignmentY: {
|
|
528
|
+
none: undefined;
|
|
529
|
+
top: string;
|
|
530
|
+
center: string;
|
|
531
|
+
bottom: string;
|
|
532
|
+
};
|
|
533
|
+
alignmentX: {
|
|
534
|
+
none: undefined;
|
|
535
|
+
left: string;
|
|
536
|
+
center: string;
|
|
537
|
+
right: string;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
declare const placeItems: {
|
|
542
|
+
none: undefined;
|
|
543
|
+
left: string;
|
|
544
|
+
center: string;
|
|
545
|
+
right: string;
|
|
546
|
+
};
|
|
547
|
+
declare const textAlign: {
|
|
548
|
+
none: undefined;
|
|
549
|
+
left: string;
|
|
550
|
+
center: string;
|
|
551
|
+
right: string;
|
|
552
|
+
};
|
|
553
|
+
declare const gridColsAlign: {
|
|
554
|
+
left: string;
|
|
555
|
+
center: string;
|
|
556
|
+
right: string;
|
|
557
|
+
};
|
|
558
|
+
declare const gridColumn: {
|
|
559
|
+
left: string;
|
|
560
|
+
center: string;
|
|
561
|
+
right: string;
|
|
562
|
+
};
|
|
563
|
+
declare const aspect: {
|
|
564
|
+
square: string;
|
|
565
|
+
landscape: string;
|
|
566
|
+
portrait: string;
|
|
567
|
+
widescreen: string;
|
|
568
|
+
ultrawide: string;
|
|
569
|
+
golden: string;
|
|
570
|
+
};
|
|
571
|
+
declare const objectFit: {
|
|
572
|
+
contain: string;
|
|
573
|
+
cover: string;
|
|
574
|
+
fill: string;
|
|
575
|
+
none: string;
|
|
576
|
+
scaleDown: string;
|
|
577
|
+
};
|
|
578
|
+
declare const objectPosition: {
|
|
579
|
+
none: undefined;
|
|
580
|
+
bottom: string;
|
|
581
|
+
center: string;
|
|
582
|
+
left: string;
|
|
583
|
+
leftBottom: string;
|
|
584
|
+
leftTop: string;
|
|
585
|
+
right: string;
|
|
586
|
+
rightBottom: string;
|
|
587
|
+
rightTop: string;
|
|
588
|
+
top: string;
|
|
589
|
+
};
|
|
590
|
+
declare const cursorStyle: {
|
|
591
|
+
auto: string;
|
|
592
|
+
default: string;
|
|
593
|
+
pointer: string;
|
|
594
|
+
wait: string;
|
|
595
|
+
text: string;
|
|
596
|
+
move: string;
|
|
597
|
+
help: string;
|
|
598
|
+
notAllowed: string;
|
|
599
|
+
none: string;
|
|
600
|
+
progress: string;
|
|
601
|
+
cell: string;
|
|
602
|
+
crosshair: string;
|
|
603
|
+
vertical: string;
|
|
604
|
+
alias: string;
|
|
605
|
+
copy: string;
|
|
606
|
+
noDrop: string;
|
|
607
|
+
grap: string;
|
|
608
|
+
grapping: string;
|
|
609
|
+
scroll: string;
|
|
610
|
+
colResize: string;
|
|
611
|
+
rowResize: string;
|
|
612
|
+
ewResize: string;
|
|
613
|
+
nsResize: string;
|
|
614
|
+
zoomIn: string;
|
|
615
|
+
zoomOut: string;
|
|
616
|
+
};
|
|
617
|
+
type AspectProp = {
|
|
618
|
+
ratio?: keyof typeof aspect;
|
|
619
|
+
};
|
|
620
|
+
type AlignmentProp = {
|
|
621
|
+
orientation?: {
|
|
622
|
+
vertical?: {
|
|
623
|
+
alignY?: keyof typeof alignment.vertical.alignmentY;
|
|
624
|
+
alignX?: keyof typeof alignment.vertical.alignmentX;
|
|
625
|
+
};
|
|
626
|
+
horizontal?: {
|
|
627
|
+
alignX?: keyof typeof alignment.horizontal.alignmentX;
|
|
628
|
+
alignY?: keyof typeof alignment.horizontal.alignmentY;
|
|
629
|
+
};
|
|
630
|
+
};
|
|
631
|
+
};
|
|
632
|
+
type CursorProp = {
|
|
633
|
+
cursor?: keyof typeof cursorStyle;
|
|
634
|
+
};
|
|
635
|
+
type FontStyleProp = {
|
|
636
|
+
fontStyle?: keyof typeof textStyle;
|
|
637
|
+
};
|
|
638
|
+
type FontWeightProp = {
|
|
639
|
+
weight?: keyof typeof fontWeight;
|
|
640
|
+
};
|
|
641
|
+
type FontSizeProp = {
|
|
642
|
+
fontSize?: keyof typeof textSize;
|
|
643
|
+
};
|
|
644
|
+
type GridColsAlignProp = {
|
|
645
|
+
align?: keyof typeof gridColsAlign;
|
|
646
|
+
};
|
|
647
|
+
type GridColumn = {
|
|
648
|
+
align?: keyof typeof gridColumn;
|
|
649
|
+
};
|
|
650
|
+
type GapSpaceProp = {
|
|
651
|
+
space?: keyof typeof gapSpace;
|
|
652
|
+
};
|
|
653
|
+
type ObjectFitProp = {
|
|
654
|
+
fit?: keyof typeof objectFit;
|
|
655
|
+
};
|
|
656
|
+
type ObjectPositionProp = {
|
|
657
|
+
position?: keyof typeof objectPosition;
|
|
658
|
+
};
|
|
659
|
+
type PaddingSpaceProp = {
|
|
660
|
+
space?: keyof typeof paddingSpace;
|
|
661
|
+
};
|
|
662
|
+
type PaddingSpacePropX = {
|
|
663
|
+
spaceX?: keyof typeof paddingSpaceX;
|
|
664
|
+
};
|
|
665
|
+
type PaddingSpacePropY = {
|
|
666
|
+
spaceY?: keyof typeof paddingSpaceY;
|
|
667
|
+
};
|
|
668
|
+
type PaddingRightProp = {
|
|
669
|
+
pr?: keyof typeof paddingRight;
|
|
670
|
+
};
|
|
671
|
+
type PaddingLeftProp = {
|
|
672
|
+
pl?: keyof typeof paddingLeft;
|
|
673
|
+
};
|
|
674
|
+
type PaddingTopProp = {
|
|
675
|
+
pt?: keyof typeof paddingTop;
|
|
676
|
+
};
|
|
677
|
+
type PaddingBottomProp = {
|
|
678
|
+
pb?: keyof typeof paddingBottom;
|
|
679
|
+
};
|
|
680
|
+
type PlaceItemsProp = {
|
|
681
|
+
align?: keyof typeof placeItems;
|
|
682
|
+
};
|
|
683
|
+
type TextAlignProp = {
|
|
684
|
+
align?: keyof typeof textAlign;
|
|
685
|
+
};
|
|
686
|
+
type WidthProp = {
|
|
687
|
+
width?: keyof typeof width;
|
|
300
688
|
};
|
|
301
689
|
|
|
302
|
-
export {
|
|
690
|
+
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 };
|