@spark-web/box 2.0.0-rc.2 → 2.0.0-rc.20

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/CHANGELOG.md CHANGED
@@ -1,5 +1,221 @@
1
1
  # @spark-web/box
2
2
 
3
+ ## 2.0.0-rc.20
4
+
5
+ ### Minor Changes
6
+
7
+ - Support for component-level theming; button-level theming
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @spark-web/theme@4.0.0-rc.20
13
+ - @spark-web/utils@2.0.0-rc.20
14
+
15
+ ## 2.0.0-rc.19
16
+
17
+ ### Major Changes
18
+
19
+ - test
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies []:
24
+ - @spark-web/theme@4.0.0-rc.19
25
+ - @spark-web/utils@2.0.0-rc.19
26
+
27
+ ## 2.0.0-rc.18
28
+
29
+ ### Major Changes
30
+
31
+ - tests
32
+
33
+ ### Patch Changes
34
+
35
+ - Updated dependencies []:
36
+ - @spark-web/theme@4.0.0-rc.18
37
+ - @spark-web/utils@2.0.0-rc.18
38
+
39
+ ## 2.0.0-rc.17
40
+
41
+ ### Major Changes
42
+
43
+ - test
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies []:
48
+ - @spark-web/theme@4.0.0-rc.17
49
+ - @spark-web/utils@2.0.0-rc.17
50
+
51
+ ## 2.0.0-rc.16
52
+
53
+ ### Major Changes
54
+
55
+ - test
56
+
57
+ ### Patch Changes
58
+
59
+ - Updated dependencies []:
60
+ - @spark-web/theme@4.0.0-rc.16
61
+ - @spark-web/utils@2.0.0-rc.16
62
+
63
+ ## 2.0.0-rc.15
64
+
65
+ ### Major Changes
66
+
67
+ - test
68
+
69
+ ### Patch Changes
70
+
71
+ - Updated dependencies []:
72
+ - @spark-web/theme@4.0.0-rc.15
73
+ - @spark-web/utils@2.0.0-rc.15
74
+
75
+ ## 2.0.0-rc.14
76
+
77
+ ### Major Changes
78
+
79
+ - test
80
+
81
+ ### Patch Changes
82
+
83
+ - Updated dependencies []:
84
+ - @spark-web/theme@4.0.0-rc.14
85
+ - @spark-web/utils@2.0.0-rc.14
86
+
87
+ ## 2.0.0-rc.13
88
+
89
+ ### Major Changes
90
+
91
+ - test
92
+
93
+ ### Patch Changes
94
+
95
+ - Updated dependencies []:
96
+ - @spark-web/theme@4.0.0-rc.13
97
+ - @spark-web/utils@2.0.0-rc.13
98
+
99
+ ## 2.0.0-rc.12
100
+
101
+ ### Major Changes
102
+
103
+ - test
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies []:
108
+ - @spark-web/theme@4.0.0-rc.12
109
+ - @spark-web/utils@2.0.0-rc.12
110
+
111
+ ## 2.0.0-rc.11
112
+
113
+ ### Major Changes
114
+
115
+ - test
116
+
117
+ ### Patch Changes
118
+
119
+ - Updated dependencies []:
120
+ - @spark-web/theme@4.0.0-rc.11
121
+ - @spark-web/utils@2.0.0-rc.11
122
+
123
+ ## 2.0.0-rc.10
124
+
125
+ ### Major Changes
126
+
127
+ - test
128
+
129
+ ### Patch Changes
130
+
131
+ - Updated dependencies []:
132
+ - @spark-web/theme@4.0.0-rc.10
133
+ - @spark-web/utils@2.0.0-rc.10
134
+
135
+ ## 2.0.0-rc.9
136
+
137
+ ### Major Changes
138
+
139
+ - test
140
+
141
+ ### Patch Changes
142
+
143
+ - Updated dependencies []:
144
+ - @spark-web/theme@4.0.0-rc.9
145
+ - @spark-web/utils@2.0.0-rc.9
146
+
147
+ ## 2.0.0-rc.8
148
+
149
+ ### Major Changes
150
+
151
+ - test
152
+
153
+ ### Patch Changes
154
+
155
+ - Updated dependencies []:
156
+ - @spark-web/theme@4.0.0-rc.8
157
+ - @spark-web/utils@2.0.0-rc.8
158
+
159
+ ## 2.0.0-rc.7
160
+
161
+ ### Major Changes
162
+
163
+ - test
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies []:
168
+ - @spark-web/theme@4.0.0-rc.7
169
+ - @spark-web/utils@2.0.0-rc.7
170
+
171
+ ## 2.0.0-rc.6
172
+
173
+ ### Major Changes
174
+
175
+ - test
176
+
177
+ ### Patch Changes
178
+
179
+ - Updated dependencies []:
180
+ - @spark-web/theme@4.0.0-rc.6
181
+ - @spark-web/utils@2.0.0-rc.6
182
+
183
+ ## 2.0.0-rc.5
184
+
185
+ ### Major Changes
186
+
187
+ - test
188
+
189
+ ### Patch Changes
190
+
191
+ - Updated dependencies []:
192
+ - @spark-web/theme@4.0.0-rc.5
193
+ - @spark-web/utils@2.0.0-rc.5
194
+
195
+ ## 2.0.0-rc.4
196
+
197
+ ### Major Changes
198
+
199
+ - bug
200
+
201
+ ### Patch Changes
202
+
203
+ - Updated dependencies []:
204
+ - @spark-web/theme@4.0.0-rc.4
205
+ - @spark-web/utils@2.0.0-rc.4
206
+
207
+ ## 2.0.0-rc.3
208
+
209
+ ### Major Changes
210
+
211
+ - upgrade package
212
+
213
+ ### Patch Changes
214
+
215
+ - Updated dependencies []:
216
+ - @spark-web/theme@4.0.0-rc.3
217
+ - @spark-web/utils@2.0.0-rc.3
218
+
3
219
  ## 2.0.0-rc.2
4
220
 
5
221
  ### Major Changes
@@ -1,2 +1,2 @@
1
- export * from "./declarations/src/index";
2
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLWJveC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4vZGVjbGFyYXRpb25zL3NyYy9pbmRleC5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBIn0=
1
+ export * from "../src/index";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLWJveC5janMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
@@ -1,7 +1,16 @@
1
- 'use strict';
1
+ "use strict";
2
+ // this file might look strange and you might be wondering what it's for
3
+ // it's lets you import your source files by importing this entrypoint
4
+ // as you would import it if it was built with preconstruct build
5
+ // this file is slightly different to some others though
6
+ // it has a require hook which compiles your code with Babel
7
+ // this means that you don't have to set up @babel/register or anything like that
8
+ // but you can still require this module and it'll be compiled
2
9
 
3
- if (process.env.NODE_ENV === "production") {
4
- module.exports = require("./spark-web-box.cjs.prod.js");
5
- } else {
6
- module.exports = require("./spark-web-box.cjs.dev.js");
7
- }
10
+ // this bit of code imports the require hook and registers it
11
+ let unregister = require("../../../node_modules/@preconstruct/hook").___internalHook(typeof __dirname === 'undefined' ? undefined : __dirname, "../../..", "..");
12
+
13
+ // this re-exports the source file
14
+ module.exports = require("../src/index.ts");
15
+
16
+ unregister();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-web/box",
3
- "version": "2.0.0-rc.2",
3
+ "version": "2.0.0-rc.20",
4
4
  "homepage": "https://github.com/brighte-labs/spark-web#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,9 +16,9 @@
16
16
  ],
17
17
  "dependencies": {
18
18
  "@babel/runtime": "^7.25.0",
19
- "@emotion/react": "^11.13.5",
20
- "@spark-web/theme": "^4.0.0-rc.2",
21
- "@spark-web/utils": "^2.0.0-rc.2"
19
+ "@emotion/react": "^11.14.0",
20
+ "@spark-web/theme": "^4.0.0-rc.20",
21
+ "@spark-web/utils": "^2.0.0-rc.20"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/react": "^18.2.0",
@@ -1,7 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- export declare type BackgroundProviderProps = {
3
- type: 'light' | 'dark';
4
- children: ReactElement;
5
- };
6
- /** Enforce background "lightness" without applying a background color. */
7
- export declare const BackgroundProvider: ({ type, children, }: BackgroundProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
@@ -1,47 +0,0 @@
1
- import type { DataAttributeMap } from '@spark-web/utils/internal';
2
- import type { ReactNode } from 'react';
3
- import type { BoxStyleProps } from "./use-box-styles.js";
4
- export declare type BoxProps = {
5
- /** Children element to be rendered inside the component. */
6
- children?: ReactNode;
7
- /** Sets data attributes on the component. */
8
- data?: DataAttributeMap;
9
- /** An identifier which must be unique in the whole document. */
10
- id?: string;
11
- /** Custom css styles. */
12
- className?: string;
13
- /**
14
- * When providing a component using the "as" prop, optionally tell the system
15
- * what the underlying element will be. Used internally to manage reset
16
- * styles.
17
- */
18
- asElement?: keyof HTMLElementTagNameMap;
19
- } & BoxStyleProps;
20
- /** Exposes a prop-based API for adding styles to a view, within the constraints of the theme. */
21
- export declare const Box: <Comp extends import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> = "div">(props: {
22
- as?: Comp | undefined;
23
- ref?: import("react").Ref<Comp extends "symbol" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view" | keyof HTMLElementTagNameMap ? (HTMLElementTagNameMap & Pick<SVGElementTagNameMap, "symbol" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "clipPath" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "filter" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "marker" | "mask" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "set" | "stop" | "switch" | "text" | "textPath" | "tspan" | "use" | "view">)[Comp] : Comp extends new (...args: any) => any ? InstanceType<Comp> : undefined> | undefined;
24
- } & Omit<import("react").PropsWithoutRef<import("react").ComponentProps<Comp>>, "as"> & {
25
- /** Children element to be rendered inside the component. */
26
- children?: ReactNode;
27
- /** Sets data attributes on the component. */
28
- data?: DataAttributeMap | undefined;
29
- /** An identifier which must be unique in the whole document. */
30
- id?: string | undefined;
31
- /** Custom css styles. */
32
- className?: string | undefined;
33
- /**
34
- * When providing a component using the "as" prop, optionally tell the system
35
- * what the underlying element will be. Used internally to manage reset
36
- * styles.
37
- */
38
- asElement?: keyof HTMLElementTagNameMap | undefined;
39
- } & {
40
- background?: "disabled" | "body" | "input" | "infoLight" | "criticalLight" | "positiveLight" | "cautionLight" | "muted" | "backdrop" | "surface" | "surfaceMuted" | "surfacePressed" | "fieldAccent" | "inputPressed" | "inputDisabled" | "accent" | "accentMuted" | "neutral" | "neutralLow" | "primary" | "primaryLow" | "primaryMuted" | "secondary" | "secondaryLow" | "secondaryMuted" | "caution" | "cautionLow" | "cautionMuted" | "critical" | "criticalLow" | "criticalMuted" | "info" | "infoLow" | "infoMuted" | "positive" | "positiveLow" | "positiveMuted" | undefined;
41
- cursor?: "default" | "pointer" | undefined;
42
- minHeight?: 0 | undefined;
43
- minWidth?: 0 | undefined;
44
- overflow?: "auto" | "hidden" | "scroll" | "visible" | undefined;
45
- shadow?: "small" | "medium" | "large" | undefined;
46
- userSelect?: "none" | undefined;
47
- } & import("./use-box-styles.js").ResponsiveBoxProps) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>;
@@ -1,7 +0,0 @@
1
- import type { ReactElement } from 'react';
2
- import type { BoxStyleProps } from "./use-box-styles.js";
3
- export declare type BackgroundVariant = NonNullable<BoxStyleProps['background']> | 'UNKNOWN_DARK' | 'UNKNOWN_LIGHT';
4
- export declare const InternalBackgroundProvider: import("react").Provider<BackgroundVariant>;
5
- export declare const useBackground: () => BackgroundVariant;
6
- export declare function renderBackgroundProvider(background: BackgroundVariant | undefined, element: ReactElement | null): import("@emotion/react/jsx-runtime").JSX.Element | null;
7
- export declare const useBackgroundLightness: (backgroundOverride?: ReturnType<typeof useBackground>) => "light" | "dark";
@@ -1,5 +0,0 @@
1
- export { BackgroundProvider } from "./background-provider.js";
2
- export { Box } from "./box.js";
3
- export { useBackground, useBackgroundLightness } from "./context.js";
4
- export type { BackgroundProviderProps } from "./background-provider.js";
5
- export type { BoxProps } from "./box.js";
@@ -1,227 +0,0 @@
1
- import type { BrighteTheme, ResponsiveProp } from '@spark-web/theme';
2
- declare type ValidGapKeys = keyof Omit<BrighteTheme['spacing'], 'none' | 'full'>;
3
- declare type ResponsiveSpacing = ResponsiveProp<keyof BrighteTheme['spacing']>;
4
- declare type ResponsiveSizing = ResponsiveProp<keyof BrighteTheme['sizing']>;
5
- export declare type ResponsiveBoxProps = {
6
- /**
7
- * The `margin` shorthand property sets the margin area on all four sides of
8
- * an element at once.
9
- */
10
- margin?: ResponsiveSpacing;
11
- /**
12
- * The `marginTop` property sets the margin area on the top side of an
13
- * element.
14
- */
15
- marginTop?: ResponsiveSpacing;
16
- /**
17
- * The `marginRight` property sets the margin area on the right side of an
18
- * element.
19
- */
20
- marginRight?: ResponsiveSpacing;
21
- /**
22
- * The `marginBottom` property sets the margin area on the bottom side of an
23
- * element.
24
- */
25
- marginBottom?: ResponsiveSpacing;
26
- /**
27
- * The `marginLeft` property sets the margin area on the left side of an
28
- * element.
29
- */
30
- marginLeft?: ResponsiveSpacing;
31
- /**
32
- * The `marginY` shorthand property sets the margin area on the top and
33
- * bottom of the element.
34
- */
35
- marginY?: ResponsiveSpacing;
36
- /**
37
- * The `marginY` shorthand property sets the margin area on the left and
38
- * right of the element.
39
- */
40
- marginX?: ResponsiveSpacing;
41
- /**
42
- * The `padding` shorthand property sets the padding area on all four sides
43
- * of an element at once.
44
- */
45
- padding?: ResponsiveSpacing;
46
- /**
47
- * The `paddingTop` property sets the height of the padding area on the top
48
- * of an element.
49
- */
50
- paddingTop?: ResponsiveSpacing;
51
- /**
52
- * The `paddingRight` property sets the width of the padding area on the
53
- * right of an element.
54
- */
55
- paddingRight?: ResponsiveSpacing;
56
- /**
57
- * The `paddingBottom` property sets the height of the padding area on the
58
- * bottom of an element.
59
- */
60
- paddingBottom?: ResponsiveSpacing;
61
- /**
62
- * The `paddingLeft` property sets the width of the padding area on the left
63
- * of an element.
64
- */
65
- paddingLeft?: ResponsiveSpacing;
66
- /**
67
- * The `paddingY` shorthand property sets the padding area on the top and
68
- * bottom of the element.
69
- */
70
- paddingY?: ResponsiveSpacing;
71
- /**
72
- * The `paddingX` shorthand property sets the padding area on the left and
73
- * right of the element.
74
- */
75
- paddingX?: ResponsiveSpacing;
76
- /** The `border` property sets the color of an element's border. */
77
- border?: ResponsiveProp<keyof BrighteTheme['border']['color']>;
78
- /** The `border` property sets the color of an element's border on the top side. */
79
- borderTop?: ResponsiveProp<keyof BrighteTheme['border']['color']>;
80
- /** The `border` property sets the color of an element's border on the bottom side. */
81
- borderBottom?: ResponsiveProp<keyof BrighteTheme['border']['color']>;
82
- /** The `border` property sets the color of an element's border on the left side. */
83
- borderLeft?: ResponsiveProp<keyof BrighteTheme['border']['color']>;
84
- /** The `border` property sets the color of an element's border on the right side. */
85
- borderRight?: ResponsiveProp<keyof BrighteTheme['border']['color']>;
86
- /**
87
- * The `borderRadius` property rounds the corners of an element's outer
88
- * border edge.
89
- */
90
- borderRadius?: ResponsiveProp<keyof BrighteTheme['border']['radius']>;
91
- /**
92
- * The `borderWidth` property sets the width of an element's border.
93
- */
94
- borderWidth?: ResponsiveProp<keyof BrighteTheme['border']['width']>;
95
- /** Sets the element's height. */
96
- height?: ResponsiveSizing;
97
- /** Sets the element's width. */
98
- width?: ResponsiveSizing;
99
- /** Controls the alignment of items on the cross axis. */
100
- alignItems?: ResponsiveProp<keyof typeof flexMap.alignItems>;
101
- /** The size of the gap between each child element. */
102
- gap?: ResponsiveProp<ValidGapKeys>;
103
- /** Defines the main axis, or how the children are placed. */
104
- flexDirection?: ResponsiveProp<keyof typeof flexMap.flexDirection>;
105
- /**
106
- * defines how the browser distributes space between and around content items
107
- * along the main-axis.
108
- */
109
- justifyContent?: ResponsiveProp<keyof typeof flexMap.justifyContent>;
110
- /** Allow flex items to flow onto multiple lines. */
111
- flexWrap?: ResponsiveProp<'nowrap' | 'wrap'>;
112
- /**
113
- * Overrides the parent's `align-items` value. Controls the alignment of
114
- * item's on the cross axis.
115
- */
116
- alignSelf?: ResponsiveProp<keyof typeof flexMap.alignItems>;
117
- /**
118
- * The `flex` shorthand property sets how a flex item will grow or shrink to
119
- * fit the space available in its flex container.
120
- */
121
- flex?: ResponsiveProp<0 | 1>;
122
- /** The `flexGrow` property sets the flex grow factor of a flex item main size. */
123
- flexGrow?: ResponsiveProp<0 | 1>;
124
- /**
125
- * The `flexShrink` property sets the flex shrink factor of a flex item. If
126
- * the size of all flex items is larger than the flex container, items shrink
127
- * to fit according to `flex-shrink`.
128
- */
129
- flexShrink?: ResponsiveProp<0 | 1>;
130
- /**
131
- * The `position` property sets how an element is positioned in a document.
132
- * The `top`, `right`, `bottom`, and `left` properties determine the final
133
- * location of positioned elements.
134
- */
135
- position?: ResponsiveProp<'absolute' | 'fixed' | 'relative' | 'sticky'>;
136
- /**
137
- * The `top` property participates in specifying the vertical position of a
138
- * positioned element. It has no effect on non-positioned elements.
139
- */
140
- top?: ResponsiveProp<0>;
141
- /**
142
- * The `right` property participates in specifying the horizontal position of
143
- * a positioned element. It has no effect on non-positioned elements.
144
- */
145
- right?: ResponsiveProp<0>;
146
- /**
147
- * The `bottom` property participates in setting the vertical position of a
148
- * positioned element. It has no effect on non-positioned elements.
149
- */
150
- bottom?: ResponsiveProp<0>;
151
- /**
152
- * The `left` property participates in specifying the horizontal position of a
153
- * positioned element. It has no effect on non-positioned elements.
154
- */
155
- left?: ResponsiveProp<0>;
156
- /**
157
- * The `zIndex` property sets the "z-order" of a positioned element and its
158
- * descendants or flex items. Overlapping elements with a larger z-index cover
159
- * those with a smaller one.
160
- */
161
- zIndex?: ResponsiveProp<keyof BrighteTheme['elevation']>;
162
- /**
163
- * Sets whether an element is treated as a block or inline element and the
164
- * layout used for its children.
165
- */
166
- display?: ResponsiveProp<'block' | 'flex' | 'inline' | 'inline-block' | 'inline-flex' | 'none'>;
167
- /**
168
- * Sets the opacity of the element. Opacity is the degree to which content
169
- * behind an element is hidden, and is the opposite of transparency.
170
- */
171
- opacity?: ResponsiveProp<number>;
172
- };
173
- declare type UnresponsiveBoxProps = {
174
- /** The `background` property sets the background color of an element. */
175
- background?: keyof BrighteTheme['color']['background'];
176
- /**
177
- * The `cursor` property sets the type of mouse cursor, if any, to show when
178
- * the mouse pointer is over an element.
179
- */
180
- cursor?: 'default' | 'pointer';
181
- /**
182
- * The `minHeight` property sets the minimum height of an element. It prevents
183
- * the used value of the height property from becoming smaller than the value
184
- * specified for `minHeight`.
185
- */
186
- minHeight?: 0;
187
- /**
188
- * The `minWidth` property sets the minimum width of an element. It prevents
189
- * the used value of the width property from becoming smaller than the value
190
- * specified for `minWidth`.
191
- */
192
- minWidth?: 0;
193
- /**
194
- * The `overflow` shorthand property sets the desired behavior for an
195
- * element's overflow — i.e. when an element's content is too big to fit in
196
- * its block formatting context — in both directions.
197
- */
198
- overflow?: 'hidden' | 'scroll' | 'visible' | 'auto';
199
- /** The `boxShadow` property adds shadow effects around an element's frame. */
200
- shadow?: keyof BrighteTheme['shadow'];
201
- /** The `userSelect` property controls whether the user can select text. */
202
- userSelect?: 'none';
203
- };
204
- export declare type BoxStyleProps = UnresponsiveBoxProps & ResponsiveBoxProps;
205
- export declare const useBoxStyles: ({ alignItems, alignSelf, background, border, borderTop, borderBottom, borderLeft, borderRight, borderRadius, borderWidth, bottom, cursor, display, flex, flexDirection, flexGrow, flexShrink, flexWrap, gap, height, justifyContent, left, margin, marginBottom, marginLeft, marginRight, marginTop, marginX, marginY, minHeight, minWidth, opacity, overflow, padding, paddingBottom, paddingLeft, paddingRight, paddingTop, paddingX, paddingY, position, right, shadow, top, userSelect, width, zIndex, }: BoxStyleProps) => import("facepaint").DynamicStyle[];
206
- declare const flexMap: {
207
- readonly alignItems: {
208
- readonly start: "flex-start";
209
- readonly center: "center";
210
- readonly end: "flex-end";
211
- readonly stretch: "stretch";
212
- };
213
- readonly justifyContent: {
214
- readonly start: "flex-start";
215
- readonly center: "center";
216
- readonly end: "flex-end";
217
- readonly spaceBetween: "space-between";
218
- readonly stretch: "stretch";
219
- };
220
- readonly flexDirection: {
221
- readonly row: "row";
222
- readonly rowReverse: "row-reverse";
223
- readonly column: "column";
224
- readonly columnReverse: "column-reverse";
225
- };
226
- };
227
- export {};