@tosui/react 0.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/README.md +73 -0
- package/dist/components/Box/Box.d.ts +35 -0
- package/dist/components/Box/Box.d.ts.map +1 -0
- package/dist/components/Box/styleParts/borders.d.ts +97 -0
- package/dist/components/Box/styleParts/borders.d.ts.map +1 -0
- package/dist/components/Box/styleParts/colors.d.ts +288 -0
- package/dist/components/Box/styleParts/colors.d.ts.map +1 -0
- package/dist/components/Box/styleParts/display.d.ts +54 -0
- package/dist/components/Box/styleParts/display.d.ts.map +1 -0
- package/dist/components/Box/styleParts/flexbox.d.ts +174 -0
- package/dist/components/Box/styleParts/flexbox.d.ts.map +1 -0
- package/dist/components/Box/styleParts/grid.d.ts +45 -0
- package/dist/components/Box/styleParts/grid.d.ts.map +1 -0
- package/dist/components/Box/styleParts/inset.d.ts +22 -0
- package/dist/components/Box/styleParts/inset.d.ts.map +1 -0
- package/dist/components/Box/styleParts/interactions.d.ts +128 -0
- package/dist/components/Box/styleParts/interactions.d.ts.map +1 -0
- package/dist/components/Box/styleParts/margin.d.ts +22 -0
- package/dist/components/Box/styleParts/margin.d.ts.map +1 -0
- package/dist/components/Box/styleParts/opacity.d.ts +34 -0
- package/dist/components/Box/styleParts/opacity.d.ts.map +1 -0
- package/dist/components/Box/styleParts/overflow.d.ts +55 -0
- package/dist/components/Box/styleParts/overflow.d.ts.map +1 -0
- package/dist/components/Box/styleParts/padding.d.ts +22 -0
- package/dist/components/Box/styleParts/padding.d.ts.map +1 -0
- package/dist/components/Box/styleParts/position.d.ts +39 -0
- package/dist/components/Box/styleParts/position.d.ts.map +1 -0
- package/dist/components/Box/styleParts/reset.d.ts +28 -0
- package/dist/components/Box/styleParts/reset.d.ts.map +1 -0
- package/dist/components/Box/styleParts/roundness.d.ts +83 -0
- package/dist/components/Box/styleParts/roundness.d.ts.map +1 -0
- package/dist/components/Box/styleParts/shadows.d.ts +34 -0
- package/dist/components/Box/styleParts/shadows.d.ts.map +1 -0
- package/dist/components/Box/styleParts/sizing.d.ts +25 -0
- package/dist/components/Box/styleParts/sizing.d.ts.map +1 -0
- package/dist/components/Box/styleParts/text.d.ts +66 -0
- package/dist/components/Box/styleParts/text.d.ts.map +1 -0
- package/dist/components/Box/styleParts/types.d.ts +2 -0
- package/dist/components/Box/styleParts/types.d.ts.map +1 -0
- package/dist/components/Box/styleParts/typography.d.ts +130 -0
- package/dist/components/Box/styleParts/typography.d.ts.map +1 -0
- package/dist/components/Box/styleParts/zIndex.d.ts +49 -0
- package/dist/components/Box/styleParts/zIndex.d.ts.map +1 -0
- package/dist/components/Heading/Heading.d.ts +27 -0
- package/dist/components/Heading/Heading.d.ts.map +1 -0
- package/dist/components/Heading/index.d.ts +2 -0
- package/dist/components/Heading/index.d.ts.map +1 -0
- package/dist/components/Text/Text.d.ts +28 -0
- package/dist/components/Text/Text.d.ts.map +1 -0
- package/dist/components/Text/index.d.ts +2 -0
- package/dist/components/Text/index.d.ts.map +1 -0
- package/dist/fonts.css +1 -0
- package/dist/index.css +4721 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +2419 -0
- package/dist/index.js.map +1 -0
- package/dist/types/Polymorphic.d.ts +24 -0
- package/dist/types/Polymorphic.d.ts.map +1 -0
- package/dist/utils/breakpoints.stylex.d.ts +35 -0
- package/dist/utils/breakpoints.stylex.d.ts.map +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +66 -0
package/README.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# React + TypeScript + Vite
|
|
2
|
+
|
|
3
|
+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
|
|
4
|
+
|
|
5
|
+
Currently, two official plugins are available:
|
|
6
|
+
|
|
7
|
+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
|
|
8
|
+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
9
|
+
|
|
10
|
+
## React Compiler
|
|
11
|
+
|
|
12
|
+
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
|
|
13
|
+
|
|
14
|
+
## Expanding the ESLint configuration
|
|
15
|
+
|
|
16
|
+
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
|
|
17
|
+
|
|
18
|
+
```js
|
|
19
|
+
export default defineConfig([
|
|
20
|
+
globalIgnores(['dist']),
|
|
21
|
+
{
|
|
22
|
+
files: ['**/*.{ts,tsx}'],
|
|
23
|
+
extends: [
|
|
24
|
+
// Other configs...
|
|
25
|
+
|
|
26
|
+
// Remove tseslint.configs.recommended and replace with this
|
|
27
|
+
tseslint.configs.recommendedTypeChecked,
|
|
28
|
+
// Alternatively, use this for stricter rules
|
|
29
|
+
tseslint.configs.strictTypeChecked,
|
|
30
|
+
// Optionally, add this for stylistic rules
|
|
31
|
+
tseslint.configs.stylisticTypeChecked,
|
|
32
|
+
|
|
33
|
+
// Other configs...
|
|
34
|
+
],
|
|
35
|
+
languageOptions: {
|
|
36
|
+
parserOptions: {
|
|
37
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
38
|
+
tsconfigRootDir: import.meta.dirname,
|
|
39
|
+
},
|
|
40
|
+
// other options...
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
])
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
47
|
+
|
|
48
|
+
```js
|
|
49
|
+
// eslint.config.js
|
|
50
|
+
import reactX from 'eslint-plugin-react-x'
|
|
51
|
+
import reactDom from 'eslint-plugin-react-dom'
|
|
52
|
+
|
|
53
|
+
export default defineConfig([
|
|
54
|
+
globalIgnores(['dist']),
|
|
55
|
+
{
|
|
56
|
+
files: ['**/*.{ts,tsx}'],
|
|
57
|
+
extends: [
|
|
58
|
+
// Other configs...
|
|
59
|
+
// Enable lint rules for React
|
|
60
|
+
reactX.configs['recommended-typescript'],
|
|
61
|
+
// Enable lint rules for React DOM
|
|
62
|
+
reactDom.configs.recommended,
|
|
63
|
+
],
|
|
64
|
+
languageOptions: {
|
|
65
|
+
parserOptions: {
|
|
66
|
+
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
67
|
+
tsconfigRootDir: import.meta.dirname,
|
|
68
|
+
},
|
|
69
|
+
// other options...
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
])
|
|
73
|
+
```
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ElementType, ReactNode } from 'react';
|
|
2
|
+
import { Polymorphic } from '../../types/Polymorphic';
|
|
3
|
+
import { DisplayProps } from './styleParts/display';
|
|
4
|
+
import { PositionProps } from './styleParts/position';
|
|
5
|
+
import { OverflowProps } from './styleParts/overflow';
|
|
6
|
+
import { ZIndexProps } from './styleParts/zIndex';
|
|
7
|
+
import { SizeProps } from './styleParts/sizing';
|
|
8
|
+
import { FlexboxProps } from './styleParts/flexbox';
|
|
9
|
+
import { GridProps } from './styleParts/grid';
|
|
10
|
+
import { InsetProps } from './styleParts/inset';
|
|
11
|
+
import { TypographyProps } from './styleParts/typography';
|
|
12
|
+
import { ColorProps } from './styleParts/colors';
|
|
13
|
+
import { BorderProps } from './styleParts/borders';
|
|
14
|
+
import { RoundnessProps } from './styleParts/roundness';
|
|
15
|
+
import { ShadowProps } from './styleParts/shadows';
|
|
16
|
+
import { InteractionProps } from './styleParts/interactions';
|
|
17
|
+
import { TextProps } from './styleParts/text';
|
|
18
|
+
import { OpacityProps } from './styleParts/opacity';
|
|
19
|
+
import { PaddingProps } from './styleParts/padding';
|
|
20
|
+
import { MarginProps } from './styleParts/margin';
|
|
21
|
+
export type BoxOwnProps = MarginProps & PaddingProps & DisplayProps & PositionProps & OverflowProps & ZIndexProps & SizeProps & FlexboxProps & GridProps & InsetProps & TypographyProps & ColorProps & BorderProps & RoundnessProps & ShadowProps & InteractionProps & TextProps & OpacityProps & {
|
|
22
|
+
className?: string;
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
};
|
|
25
|
+
export type BoxProps<T extends ElementType = "div"> = Polymorphic<T, BoxOwnProps>;
|
|
26
|
+
/**
|
|
27
|
+
* Box - The core primitive component
|
|
28
|
+
*
|
|
29
|
+
* A polymorphic component that provides:
|
|
30
|
+
* - Default element: <div>
|
|
31
|
+
* - Can render as any HTML element via the `as` prop
|
|
32
|
+
* - Type-safe props based on the element type
|
|
33
|
+
*/
|
|
34
|
+
export declare function Box<T extends ElementType = "div">({ as, children, className, style, p, pt, pr, pb, pl, px, py, m, mt, mr, mb, ml, mx, my, display, position, overflow, overflowX, overflowY, zIndex, w, h, minW, maxW, minH, maxH, flexDirection, justifyContent, alignItems, alignSelf, flexWrap, gap, gapRow, gapColumn, flex, flexGrow, flexShrink, flexBasis, justifySelf, gridTemplateColumns, gridTemplateRows, inset, insetX, insetY, top, right, bottom, left, fontSize, fontFamily, fontWeight, lineHeight, color, bg, borderColor, border, borderX, borderY, borderTop, borderRight, borderBottom, borderLeft, borderStyle, rounded, roundedTop, roundedBottom, roundedLeft, roundedRight, roundedTopLeft, roundedTopRight, roundedBottomLeft, roundedBottomRight, shadow, cursor, pointerEvents, userSelect, textAlign, whiteSpace, opacity, ...rest }: BoxProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../src/components/Box/Box.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ResponsiveValue } from '../../../utils/breakpoints.stylex';
|
|
2
|
+
import * as stylex from "@stylexjs/stylex";
|
|
3
|
+
type BorderWidthValues = keyof typeof borderTopWidthStyles;
|
|
4
|
+
type BorderStyleValues = keyof typeof borderStyleStyles;
|
|
5
|
+
declare const borderTopWidthStyles: Readonly<{
|
|
6
|
+
readonly medium: Readonly<{
|
|
7
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-medium)">;
|
|
8
|
+
}>;
|
|
9
|
+
readonly none: Readonly<{
|
|
10
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-none)">;
|
|
11
|
+
}>;
|
|
12
|
+
readonly thick: Readonly<{
|
|
13
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-thick)">;
|
|
14
|
+
}>;
|
|
15
|
+
readonly thin: Readonly<{
|
|
16
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-thin)">;
|
|
17
|
+
}>;
|
|
18
|
+
}>;
|
|
19
|
+
declare const borderStyleStyles: Readonly<{
|
|
20
|
+
readonly dashed: Readonly<{
|
|
21
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "dashed">;
|
|
22
|
+
}>;
|
|
23
|
+
readonly dotted: Readonly<{
|
|
24
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "dotted">;
|
|
25
|
+
}>;
|
|
26
|
+
readonly none: Readonly<{
|
|
27
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "none">;
|
|
28
|
+
}>;
|
|
29
|
+
readonly solid: Readonly<{
|
|
30
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
31
|
+
}>;
|
|
32
|
+
}>;
|
|
33
|
+
type BorderWidth = ResponsiveValue<BorderWidthValues>;
|
|
34
|
+
type BorderStyle = ResponsiveValue<BorderStyleValues>;
|
|
35
|
+
export type BorderProps = {
|
|
36
|
+
border?: BorderWidth;
|
|
37
|
+
borderX?: BorderWidth;
|
|
38
|
+
borderY?: BorderWidth;
|
|
39
|
+
borderTop?: BorderWidth;
|
|
40
|
+
borderRight?: BorderWidth;
|
|
41
|
+
borderBottom?: BorderWidth;
|
|
42
|
+
borderLeft?: BorderWidth;
|
|
43
|
+
borderStyle?: BorderStyle;
|
|
44
|
+
};
|
|
45
|
+
export declare function getBorderStyles(props: BorderProps): (Readonly<{
|
|
46
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-none)">;
|
|
47
|
+
}> | Readonly<{
|
|
48
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-thin)">;
|
|
49
|
+
}> | Readonly<{
|
|
50
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-medium)">;
|
|
51
|
+
}> | Readonly<{
|
|
52
|
+
readonly borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-thick)">;
|
|
53
|
+
}> | readonly [Readonly<{
|
|
54
|
+
borderTopWidth: stylex.StyleXClassNameFor<"borderTopWidth", "var(--t-border-width-medium)" | "var(--t-border-width-none)" | "var(--t-border-width-thick)" | "var(--t-border-width-thin)">;
|
|
55
|
+
}>, stylex.InlineStyles] | Readonly<{
|
|
56
|
+
readonly borderRightWidth: stylex.StyleXClassNameFor<"borderRightWidth", "var(--t-border-width-none)">;
|
|
57
|
+
}> | Readonly<{
|
|
58
|
+
readonly borderRightWidth: stylex.StyleXClassNameFor<"borderRightWidth", "var(--t-border-width-thin)">;
|
|
59
|
+
}> | Readonly<{
|
|
60
|
+
readonly borderRightWidth: stylex.StyleXClassNameFor<"borderRightWidth", "var(--t-border-width-medium)">;
|
|
61
|
+
}> | Readonly<{
|
|
62
|
+
readonly borderRightWidth: stylex.StyleXClassNameFor<"borderRightWidth", "var(--t-border-width-thick)">;
|
|
63
|
+
}> | readonly [Readonly<{
|
|
64
|
+
borderRightWidth: stylex.StyleXClassNameFor<"borderRightWidth", "var(--t-border-width-medium)" | "var(--t-border-width-none)" | "var(--t-border-width-thick)" | "var(--t-border-width-thin)">;
|
|
65
|
+
}>, stylex.InlineStyles] | Readonly<{
|
|
66
|
+
readonly borderBottomWidth: stylex.StyleXClassNameFor<"borderBottomWidth", "var(--t-border-width-none)">;
|
|
67
|
+
}> | Readonly<{
|
|
68
|
+
readonly borderBottomWidth: stylex.StyleXClassNameFor<"borderBottomWidth", "var(--t-border-width-thin)">;
|
|
69
|
+
}> | Readonly<{
|
|
70
|
+
readonly borderBottomWidth: stylex.StyleXClassNameFor<"borderBottomWidth", "var(--t-border-width-medium)">;
|
|
71
|
+
}> | Readonly<{
|
|
72
|
+
readonly borderBottomWidth: stylex.StyleXClassNameFor<"borderBottomWidth", "var(--t-border-width-thick)">;
|
|
73
|
+
}> | readonly [Readonly<{
|
|
74
|
+
borderBottomWidth: stylex.StyleXClassNameFor<"borderBottomWidth", "var(--t-border-width-medium)" | "var(--t-border-width-none)" | "var(--t-border-width-thick)" | "var(--t-border-width-thin)">;
|
|
75
|
+
}>, stylex.InlineStyles] | Readonly<{
|
|
76
|
+
readonly borderLeftWidth: stylex.StyleXClassNameFor<"borderLeftWidth", "var(--t-border-width-none)">;
|
|
77
|
+
}> | Readonly<{
|
|
78
|
+
readonly borderLeftWidth: stylex.StyleXClassNameFor<"borderLeftWidth", "var(--t-border-width-thin)">;
|
|
79
|
+
}> | Readonly<{
|
|
80
|
+
readonly borderLeftWidth: stylex.StyleXClassNameFor<"borderLeftWidth", "var(--t-border-width-medium)">;
|
|
81
|
+
}> | Readonly<{
|
|
82
|
+
readonly borderLeftWidth: stylex.StyleXClassNameFor<"borderLeftWidth", "var(--t-border-width-thick)">;
|
|
83
|
+
}> | readonly [Readonly<{
|
|
84
|
+
borderLeftWidth: stylex.StyleXClassNameFor<"borderLeftWidth", "var(--t-border-width-medium)" | "var(--t-border-width-none)" | "var(--t-border-width-thick)" | "var(--t-border-width-thin)">;
|
|
85
|
+
}>, stylex.InlineStyles] | Readonly<{
|
|
86
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "none">;
|
|
87
|
+
}> | Readonly<{
|
|
88
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "dotted">;
|
|
89
|
+
}> | Readonly<{
|
|
90
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "dashed">;
|
|
91
|
+
}> | Readonly<{
|
|
92
|
+
readonly borderStyle: stylex.StyleXClassNameFor<"borderStyle", "solid">;
|
|
93
|
+
}> | readonly [Readonly<{
|
|
94
|
+
borderStyle: stylex.StyleXClassNameFor<"borderStyle", "none" | "dotted" | "dashed" | "solid">;
|
|
95
|
+
}>, stylex.InlineStyles])[];
|
|
96
|
+
export {};
|
|
97
|
+
//# sourceMappingURL=borders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"borders.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/styleParts/borders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,mCAAmC,CAAC;AAE3C,KAAK,iBAAiB,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAC3D,KAAK,iBAAiB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AASxD,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;EAaxB,CAAC;AAmGH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;EAarB,CAAC;AAeH,KAAK,WAAW,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AACtD,KAAK,WAAW,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAEtD,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAwEjD"}
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { ResponsiveValue } from '../../../utils/breakpoints.stylex';
|
|
2
|
+
import * as stylex from "@stylexjs/stylex";
|
|
3
|
+
type ColorValues = keyof typeof colorStyles;
|
|
4
|
+
type BackgroundColorValues = keyof typeof bgStyles;
|
|
5
|
+
type BorderColorValues = keyof typeof borderColorStyles;
|
|
6
|
+
declare const colorStyles: Readonly<{
|
|
7
|
+
readonly "accent-emphasis": Readonly<{
|
|
8
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-accent-emphasis)">;
|
|
9
|
+
}>;
|
|
10
|
+
readonly accent: Readonly<{
|
|
11
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-accent-default)">;
|
|
12
|
+
}>;
|
|
13
|
+
readonly "error-emphasis": Readonly<{
|
|
14
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-error-emphasis)">;
|
|
15
|
+
}>;
|
|
16
|
+
readonly error: Readonly<{
|
|
17
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-error-default)">;
|
|
18
|
+
}>;
|
|
19
|
+
readonly "foreground-inverted-muted": Readonly<{
|
|
20
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-inverted-muted)">;
|
|
21
|
+
}>;
|
|
22
|
+
readonly "foreground-inverted-subtle": Readonly<{
|
|
23
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-inverted-subtle)">;
|
|
24
|
+
}>;
|
|
25
|
+
readonly "foreground-inverted": Readonly<{
|
|
26
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-inverted)">;
|
|
27
|
+
}>;
|
|
28
|
+
readonly "foreground-muted": Readonly<{
|
|
29
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-muted)">;
|
|
30
|
+
}>;
|
|
31
|
+
readonly "foreground-subtle": Readonly<{
|
|
32
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-subtle)">;
|
|
33
|
+
}>;
|
|
34
|
+
readonly foreground: Readonly<{
|
|
35
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground)">;
|
|
36
|
+
}>;
|
|
37
|
+
readonly "info-emphasis": Readonly<{
|
|
38
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-info-emphasis)">;
|
|
39
|
+
}>;
|
|
40
|
+
readonly info: Readonly<{
|
|
41
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-info-default)">;
|
|
42
|
+
}>;
|
|
43
|
+
readonly "primary-emphasis": Readonly<{
|
|
44
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-primary-emphasis)">;
|
|
45
|
+
}>;
|
|
46
|
+
readonly primary: Readonly<{
|
|
47
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-primary-default)">;
|
|
48
|
+
}>;
|
|
49
|
+
readonly "success-emphasis": Readonly<{
|
|
50
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-success-emphasis)">;
|
|
51
|
+
}>;
|
|
52
|
+
readonly success: Readonly<{
|
|
53
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-success-default)">;
|
|
54
|
+
}>;
|
|
55
|
+
readonly "warning-emphasis": Readonly<{
|
|
56
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-warning-emphasis)">;
|
|
57
|
+
}>;
|
|
58
|
+
readonly warning: Readonly<{
|
|
59
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-warning-default)">;
|
|
60
|
+
}>;
|
|
61
|
+
}>;
|
|
62
|
+
declare const bgStyles: Readonly<{
|
|
63
|
+
readonly "accent-default": Readonly<{
|
|
64
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-accent-default)">;
|
|
65
|
+
}>;
|
|
66
|
+
readonly "accent-emphasis": Readonly<{
|
|
67
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-accent-emphasis)">;
|
|
68
|
+
}>;
|
|
69
|
+
readonly "accent-subtle": Readonly<{
|
|
70
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-accent-subtle)">;
|
|
71
|
+
}>;
|
|
72
|
+
readonly background: Readonly<{
|
|
73
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-background)">;
|
|
74
|
+
}>;
|
|
75
|
+
readonly "error-default": Readonly<{
|
|
76
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-error-default)">;
|
|
77
|
+
}>;
|
|
78
|
+
readonly "error-emphasis": Readonly<{
|
|
79
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-error-emphasis)">;
|
|
80
|
+
}>;
|
|
81
|
+
readonly "error-subtle": Readonly<{
|
|
82
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-error-subtle)">;
|
|
83
|
+
}>;
|
|
84
|
+
readonly "info-default": Readonly<{
|
|
85
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-info-default)">;
|
|
86
|
+
}>;
|
|
87
|
+
readonly "info-emphasis": Readonly<{
|
|
88
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-info-emphasis)">;
|
|
89
|
+
}>;
|
|
90
|
+
readonly "info-subtle": Readonly<{
|
|
91
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-info-subtle)">;
|
|
92
|
+
}>;
|
|
93
|
+
readonly "primary-default": Readonly<{
|
|
94
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-primary-default)">;
|
|
95
|
+
}>;
|
|
96
|
+
readonly "primary-emphasis": Readonly<{
|
|
97
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-primary-emphasis)">;
|
|
98
|
+
}>;
|
|
99
|
+
readonly "primary-subtle": Readonly<{
|
|
100
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-primary-subtle)">;
|
|
101
|
+
}>;
|
|
102
|
+
readonly "success-default": Readonly<{
|
|
103
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-success-default)">;
|
|
104
|
+
}>;
|
|
105
|
+
readonly "success-emphasis": Readonly<{
|
|
106
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-success-emphasis)">;
|
|
107
|
+
}>;
|
|
108
|
+
readonly "success-subtle": Readonly<{
|
|
109
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-success-subtle)">;
|
|
110
|
+
}>;
|
|
111
|
+
readonly surface: Readonly<{
|
|
112
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-surface)">;
|
|
113
|
+
}>;
|
|
114
|
+
readonly "warning-default": Readonly<{
|
|
115
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-warning-default)">;
|
|
116
|
+
}>;
|
|
117
|
+
readonly "warning-emphasis": Readonly<{
|
|
118
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-warning-emphasis)">;
|
|
119
|
+
}>;
|
|
120
|
+
readonly "warning-subtle": Readonly<{
|
|
121
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-warning-subtle)">;
|
|
122
|
+
}>;
|
|
123
|
+
}>;
|
|
124
|
+
declare const borderColorStyles: Readonly<{
|
|
125
|
+
readonly "accent-emphasis": Readonly<{
|
|
126
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-accent-emphasis)">;
|
|
127
|
+
}>;
|
|
128
|
+
readonly accent: Readonly<{
|
|
129
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-accent-default)">;
|
|
130
|
+
}>;
|
|
131
|
+
readonly "border-muted": Readonly<{
|
|
132
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-border-muted)">;
|
|
133
|
+
}>;
|
|
134
|
+
readonly border: Readonly<{
|
|
135
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-border)">;
|
|
136
|
+
}>;
|
|
137
|
+
readonly "error-emphasis": Readonly<{
|
|
138
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-error-emphasis)">;
|
|
139
|
+
}>;
|
|
140
|
+
readonly error: Readonly<{
|
|
141
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-error-default)">;
|
|
142
|
+
}>;
|
|
143
|
+
readonly "info-emphasis": Readonly<{
|
|
144
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-info-emphasis)">;
|
|
145
|
+
}>;
|
|
146
|
+
readonly info: Readonly<{
|
|
147
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-info-default)">;
|
|
148
|
+
}>;
|
|
149
|
+
readonly "primary-emphasis": Readonly<{
|
|
150
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-primary-emphasis)">;
|
|
151
|
+
}>;
|
|
152
|
+
readonly primary: Readonly<{
|
|
153
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-primary-default)">;
|
|
154
|
+
}>;
|
|
155
|
+
readonly "success-emphasis": Readonly<{
|
|
156
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-success-emphasis)">;
|
|
157
|
+
}>;
|
|
158
|
+
readonly success: Readonly<{
|
|
159
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-success-default)">;
|
|
160
|
+
}>;
|
|
161
|
+
readonly "warning-emphasis": Readonly<{
|
|
162
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-warning-emphasis)">;
|
|
163
|
+
}>;
|
|
164
|
+
readonly warning: Readonly<{
|
|
165
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-warning-default)">;
|
|
166
|
+
}>;
|
|
167
|
+
}>;
|
|
168
|
+
export type Color = ResponsiveValue<ColorValues>;
|
|
169
|
+
export type BackgroundColor = ResponsiveValue<BackgroundColorValues>;
|
|
170
|
+
export type BorderColor = ResponsiveValue<BorderColorValues>;
|
|
171
|
+
export type ColorProps = {
|
|
172
|
+
color?: Color;
|
|
173
|
+
bg?: BackgroundColor;
|
|
174
|
+
borderColor?: BorderColor;
|
|
175
|
+
};
|
|
176
|
+
export declare function getColorStyles(props: ColorProps): (Readonly<{
|
|
177
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-accent-emphasis)">;
|
|
178
|
+
}> | Readonly<{
|
|
179
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-accent-default)">;
|
|
180
|
+
}> | Readonly<{
|
|
181
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-error-emphasis)">;
|
|
182
|
+
}> | Readonly<{
|
|
183
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-error-default)">;
|
|
184
|
+
}> | Readonly<{
|
|
185
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-inverted-muted)">;
|
|
186
|
+
}> | Readonly<{
|
|
187
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-inverted-subtle)">;
|
|
188
|
+
}> | Readonly<{
|
|
189
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-inverted)">;
|
|
190
|
+
}> | Readonly<{
|
|
191
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-muted)">;
|
|
192
|
+
}> | Readonly<{
|
|
193
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground-subtle)">;
|
|
194
|
+
}> | Readonly<{
|
|
195
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-foreground)">;
|
|
196
|
+
}> | Readonly<{
|
|
197
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-info-emphasis)">;
|
|
198
|
+
}> | Readonly<{
|
|
199
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-info-default)">;
|
|
200
|
+
}> | Readonly<{
|
|
201
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-primary-emphasis)">;
|
|
202
|
+
}> | Readonly<{
|
|
203
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-primary-default)">;
|
|
204
|
+
}> | Readonly<{
|
|
205
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-success-emphasis)">;
|
|
206
|
+
}> | Readonly<{
|
|
207
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-success-default)">;
|
|
208
|
+
}> | Readonly<{
|
|
209
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-warning-emphasis)">;
|
|
210
|
+
}> | Readonly<{
|
|
211
|
+
readonly color: stylex.StyleXClassNameFor<"color", "var(--t-color-warning-default)">;
|
|
212
|
+
}> | readonly [Readonly<{
|
|
213
|
+
color: stylex.StyleXClassNameFor<"color", "var(--t-color-accent-emphasis)" | "var(--t-color-accent-default)" | "var(--t-color-error-emphasis)" | "var(--t-color-error-default)" | "var(--t-color-foreground-inverted-muted)" | "var(--t-color-foreground-inverted-subtle)" | "var(--t-color-foreground-inverted)" | "var(--t-color-foreground-muted)" | "var(--t-color-foreground-subtle)" | "var(--t-color-foreground)" | "var(--t-color-info-emphasis)" | "var(--t-color-info-default)" | "var(--t-color-primary-emphasis)" | "var(--t-color-primary-default)" | "var(--t-color-success-emphasis)" | "var(--t-color-success-default)" | "var(--t-color-warning-emphasis)" | "var(--t-color-warning-default)">;
|
|
214
|
+
}>, stylex.InlineStyles] | Readonly<{
|
|
215
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-background)">;
|
|
216
|
+
}> | Readonly<{
|
|
217
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-accent-emphasis)">;
|
|
218
|
+
}> | Readonly<{
|
|
219
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-error-emphasis)">;
|
|
220
|
+
}> | Readonly<{
|
|
221
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-info-emphasis)">;
|
|
222
|
+
}> | Readonly<{
|
|
223
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-primary-emphasis)">;
|
|
224
|
+
}> | Readonly<{
|
|
225
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-success-emphasis)">;
|
|
226
|
+
}> | Readonly<{
|
|
227
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-warning-emphasis)">;
|
|
228
|
+
}> | Readonly<{
|
|
229
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-accent-default)">;
|
|
230
|
+
}> | Readonly<{
|
|
231
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-accent-subtle)">;
|
|
232
|
+
}> | Readonly<{
|
|
233
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-error-default)">;
|
|
234
|
+
}> | Readonly<{
|
|
235
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-error-subtle)">;
|
|
236
|
+
}> | Readonly<{
|
|
237
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-info-default)">;
|
|
238
|
+
}> | Readonly<{
|
|
239
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-info-subtle)">;
|
|
240
|
+
}> | Readonly<{
|
|
241
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-primary-default)">;
|
|
242
|
+
}> | Readonly<{
|
|
243
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-primary-subtle)">;
|
|
244
|
+
}> | Readonly<{
|
|
245
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-success-default)">;
|
|
246
|
+
}> | Readonly<{
|
|
247
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-success-subtle)">;
|
|
248
|
+
}> | Readonly<{
|
|
249
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-surface)">;
|
|
250
|
+
}> | Readonly<{
|
|
251
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-warning-default)">;
|
|
252
|
+
}> | Readonly<{
|
|
253
|
+
readonly backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-warning-subtle)">;
|
|
254
|
+
}> | readonly [Readonly<{
|
|
255
|
+
backgroundColor: stylex.StyleXClassNameFor<"backgroundColor", "var(--t-color-accent-emphasis)" | "var(--t-color-accent-default)" | "var(--t-color-error-emphasis)" | "var(--t-color-error-default)" | "var(--t-color-info-emphasis)" | "var(--t-color-info-default)" | "var(--t-color-primary-emphasis)" | "var(--t-color-primary-default)" | "var(--t-color-success-emphasis)" | "var(--t-color-success-default)" | "var(--t-color-warning-emphasis)" | "var(--t-color-warning-default)" | "var(--t-color-accent-subtle)" | "var(--t-color-background)" | "var(--t-color-error-subtle)" | "var(--t-color-info-subtle)" | "var(--t-color-primary-subtle)" | "var(--t-color-success-subtle)" | "var(--t-color-surface)" | "var(--t-color-warning-subtle)">;
|
|
256
|
+
}>, stylex.InlineStyles] | Readonly<{
|
|
257
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-border)">;
|
|
258
|
+
}> | Readonly<{
|
|
259
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-accent-emphasis)">;
|
|
260
|
+
}> | Readonly<{
|
|
261
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-accent-default)">;
|
|
262
|
+
}> | Readonly<{
|
|
263
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-error-emphasis)">;
|
|
264
|
+
}> | Readonly<{
|
|
265
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-error-default)">;
|
|
266
|
+
}> | Readonly<{
|
|
267
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-info-emphasis)">;
|
|
268
|
+
}> | Readonly<{
|
|
269
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-info-default)">;
|
|
270
|
+
}> | Readonly<{
|
|
271
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-primary-emphasis)">;
|
|
272
|
+
}> | Readonly<{
|
|
273
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-primary-default)">;
|
|
274
|
+
}> | Readonly<{
|
|
275
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-success-emphasis)">;
|
|
276
|
+
}> | Readonly<{
|
|
277
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-success-default)">;
|
|
278
|
+
}> | Readonly<{
|
|
279
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-warning-emphasis)">;
|
|
280
|
+
}> | Readonly<{
|
|
281
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-warning-default)">;
|
|
282
|
+
}> | Readonly<{
|
|
283
|
+
readonly borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-border-muted)">;
|
|
284
|
+
}> | readonly [Readonly<{
|
|
285
|
+
borderColor: stylex.StyleXClassNameFor<"borderColor", "var(--t-color-accent-emphasis)" | "var(--t-color-accent-default)" | "var(--t-color-error-emphasis)" | "var(--t-color-error-default)" | "var(--t-color-info-emphasis)" | "var(--t-color-info-default)" | "var(--t-color-primary-emphasis)" | "var(--t-color-primary-default)" | "var(--t-color-success-emphasis)" | "var(--t-color-success-default)" | "var(--t-color-warning-emphasis)" | "var(--t-color-warning-default)" | "var(--t-color-border-muted)" | "var(--t-color-border)">;
|
|
286
|
+
}>, stylex.InlineStyles])[];
|
|
287
|
+
export {};
|
|
288
|
+
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/styleParts/colors.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,mCAAmC,CAAC;AAE3C,KAAK,WAAW,GAAG,MAAM,OAAO,WAAW,CAAC;AAC5C,KAAK,qBAAqB,GAAG,MAAM,OAAO,QAAQ,CAAC;AACnD,KAAK,iBAAiB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AA+DxD,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDf,CAAC;AAeH,QAAA,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6DZ,CAAC;AAeH,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CrB,CAAC;AAeH,MAAM,MAAM,KAAK,GAAG,eAAe,CAAC,WAAW,CAAC,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACrE,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,iBAAiB,CAAC,CAAC;AAE7D,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,EAAE,CAAC,EAAE,eAAe,CAAC;IACrB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAoC/C"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ResponsiveValue } from '../../../utils/breakpoints.stylex';
|
|
2
|
+
import * as stylex from "@stylexjs/stylex";
|
|
3
|
+
type DisplayValues = keyof typeof displayStyles;
|
|
4
|
+
export type Display = ResponsiveValue<DisplayValues>;
|
|
5
|
+
declare const displayStyles: Readonly<{
|
|
6
|
+
readonly block: Readonly<{
|
|
7
|
+
readonly display: stylex.StyleXClassNameFor<"display", "block">;
|
|
8
|
+
}>;
|
|
9
|
+
readonly flex: Readonly<{
|
|
10
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
11
|
+
}>;
|
|
12
|
+
readonly grid: Readonly<{
|
|
13
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
14
|
+
}>;
|
|
15
|
+
readonly inline: Readonly<{
|
|
16
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline">;
|
|
17
|
+
}>;
|
|
18
|
+
readonly "inline-block": Readonly<{
|
|
19
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-block">;
|
|
20
|
+
}>;
|
|
21
|
+
readonly "inline-flex": Readonly<{
|
|
22
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
23
|
+
}>;
|
|
24
|
+
readonly "inline-grid": Readonly<{
|
|
25
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-grid">;
|
|
26
|
+
}>;
|
|
27
|
+
readonly none: Readonly<{
|
|
28
|
+
readonly display: stylex.StyleXClassNameFor<"display", "none">;
|
|
29
|
+
}>;
|
|
30
|
+
}>;
|
|
31
|
+
export type DisplayProps = {
|
|
32
|
+
display?: Display;
|
|
33
|
+
};
|
|
34
|
+
export declare function getDisplayStyles(display?: Display): Readonly<{
|
|
35
|
+
readonly display: stylex.StyleXClassNameFor<"display", "flex">;
|
|
36
|
+
}> | Readonly<{
|
|
37
|
+
readonly display: stylex.StyleXClassNameFor<"display", "grid">;
|
|
38
|
+
}> | Readonly<{
|
|
39
|
+
readonly display: stylex.StyleXClassNameFor<"display", "none">;
|
|
40
|
+
}> | Readonly<{
|
|
41
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline">;
|
|
42
|
+
}> | Readonly<{
|
|
43
|
+
readonly display: stylex.StyleXClassNameFor<"display", "block">;
|
|
44
|
+
}> | Readonly<{
|
|
45
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-block">;
|
|
46
|
+
}> | Readonly<{
|
|
47
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-flex">;
|
|
48
|
+
}> | Readonly<{
|
|
49
|
+
readonly display: stylex.StyleXClassNameFor<"display", "inline-grid">;
|
|
50
|
+
}> | readonly [Readonly<{
|
|
51
|
+
display: stylex.StyleXClassNameFor<"display", "flex" | "grid" | "none" | "inline" | "block" | "inline-block" | "inline-flex" | "inline-grid">;
|
|
52
|
+
}>, stylex.InlineStyles] | undefined;
|
|
53
|
+
export {};
|
|
54
|
+
//# sourceMappingURL=display.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/styleParts/display.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,mCAAmC,CAAC;AAE3C,KAAK,aAAa,GAAG,MAAM,OAAO,aAAa,CAAC;AAEhD,MAAM,MAAM,OAAO,GAAG,eAAe,CAAC,aAAa,CAAC,CAAC;AAErD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;EAyBjB,CAAC;AAgBH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,OAAO,CAAC,EAAE,OAAO;;;;;;;;;;;;;;;;;;qCAQjD"}
|