cetec-design-system 0.0.20 → 0.0.21
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/package.json +2 -3
- package/styled-system/css/conditions.js +0 -36
- package/styled-system/css/conditions.mjs +0 -36
- package/styled-system/css/css.d.ts +0 -22
- package/styled-system/css/css.js +0 -45
- package/styled-system/css/css.mjs +0 -45
- package/styled-system/css/cva.d.ts +0 -6
- package/styled-system/css/cva.js +0 -87
- package/styled-system/css/cva.mjs +0 -87
- package/styled-system/css/cx.d.ts +0 -5
- package/styled-system/css/cx.js +0 -15
- package/styled-system/css/cx.mjs +0 -15
- package/styled-system/css/index.d.ts +0 -5
- package/styled-system/css/index.js +0 -4
- package/styled-system/css/index.mjs +0 -4
- package/styled-system/css/sva.d.ts +0 -4
- package/styled-system/css/sva.js +0 -41
- package/styled-system/css/sva.mjs +0 -41
- package/styled-system/debug/config.json +0 -8379
- package/styled-system/debug/src__App.ast.json +0 -1291
- package/styled-system/debug/src__App.css +0 -830
- package/styled-system/debug/src__components__Button__Button.stories.ast.json +0 -244
- package/styled-system/debug/src__components__Button__Button.stories.css +0 -372
- package/styled-system/debug/src__components__Code__Code.ast.json +0 -32
- package/styled-system/debug/src__components__Code__Code.css +0 -25
- package/styled-system/debug/src__components__Code__Pre.ast.json +0 -53
- package/styled-system/debug/src__components__Code__Pre.css +0 -45
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.ast.json +0 -68
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.css +0 -167
- package/styled-system/debug/src__components__Heading__Heading.ast.json +0 -59
- package/styled-system/debug/src__components__Heading__Heading.css +0 -25
- package/styled-system/debug/src__components__Icon__Icon.ast.json +0 -28
- package/styled-system/debug/src__components__Icon__Icon.css +0 -9
- package/styled-system/debug/src__components__Icon__iconStyle.ast.json +0 -27
- package/styled-system/debug/src__components__Icon__iconStyle.css +0 -5
- package/styled-system/debug/src__components__Input__Input.ast.json +0 -50
- package/styled-system/debug/src__components__Input__Input.css +0 -79
- package/styled-system/debug/src__components__Label__Label.ast.json +0 -45
- package/styled-system/debug/src__components__Label__Label.css +0 -40
- package/styled-system/debug/src__components__Link__Link.ast.json +0 -72
- package/styled-system/debug/src__components__Link__Link.css +0 -39
- package/styled-system/debug/src__components__Link__linkStyles.ast.json +0 -59
- package/styled-system/debug/src__components__Link__linkStyles.css +0 -77
- package/styled-system/debug/src__components__Spinner__spinnerStyles.ast.json +0 -56
- package/styled-system/debug/src__components__Spinner__spinnerStyles.css +0 -69
- package/styled-system/debug/src__components__Text__Text.ast.json +0 -57
- package/styled-system/debug/src__components__Text__Text.css +0 -22
- package/styled-system/debug/src__components__Text__Text.stories.ast.json +0 -60
- package/styled-system/debug/src__components__Text__Text.stories.css +0 -40
- package/styled-system/debug/src__components__Textarea__Textarea.ast.json +0 -50
- package/styled-system/debug/src__components__Textarea__Textarea.css +0 -92
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.ast.json +0 -42
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.css +0 -101
- package/styled-system/helpers.js +0 -336
- package/styled-system/helpers.mjs +0 -336
- package/styled-system/jsx/aspect-ratio.d.ts +0 -10
- package/styled-system/jsx/aspect-ratio.js +0 -14
- package/styled-system/jsx/aspect-ratio.mjs +0 -14
- package/styled-system/jsx/bleed.d.ts +0 -10
- package/styled-system/jsx/bleed.js +0 -14
- package/styled-system/jsx/bleed.mjs +0 -14
- package/styled-system/jsx/box.d.ts +0 -10
- package/styled-system/jsx/box.mjs +0 -14
- package/styled-system/jsx/center.d.ts +0 -10
- package/styled-system/jsx/center.js +0 -14
- package/styled-system/jsx/center.mjs +0 -14
- package/styled-system/jsx/circle.d.ts +0 -10
- package/styled-system/jsx/circle.js +0 -14
- package/styled-system/jsx/circle.mjs +0 -14
- package/styled-system/jsx/container.d.ts +0 -10
- package/styled-system/jsx/container.js +0 -14
- package/styled-system/jsx/container.mjs +0 -14
- package/styled-system/jsx/cq.d.ts +0 -10
- package/styled-system/jsx/cq.js +0 -14
- package/styled-system/jsx/cq.mjs +0 -14
- package/styled-system/jsx/divider.d.ts +0 -10
- package/styled-system/jsx/divider.mjs +0 -14
- package/styled-system/jsx/factory-helper.js +0 -22
- package/styled-system/jsx/factory-helper.mjs +0 -22
- package/styled-system/jsx/factory.d.ts +0 -3
- package/styled-system/jsx/factory.js +0 -80
- package/styled-system/jsx/factory.mjs +0 -80
- package/styled-system/jsx/flex.d.ts +0 -10
- package/styled-system/jsx/flex.js +0 -14
- package/styled-system/jsx/flex.mjs +0 -14
- package/styled-system/jsx/float.d.ts +0 -10
- package/styled-system/jsx/float.js +0 -14
- package/styled-system/jsx/float.mjs +0 -14
- package/styled-system/jsx/grid-item.d.ts +0 -10
- package/styled-system/jsx/grid-item.js +0 -14
- package/styled-system/jsx/grid-item.mjs +0 -14
- package/styled-system/jsx/grid.d.ts +0 -10
- package/styled-system/jsx/grid.js +0 -14
- package/styled-system/jsx/grid.mjs +0 -14
- package/styled-system/jsx/hstack.d.ts +0 -10
- package/styled-system/jsx/hstack.js +0 -14
- package/styled-system/jsx/hstack.mjs +0 -14
- package/styled-system/jsx/icon.d.ts +0 -10
- package/styled-system/jsx/icon.js +0 -14
- package/styled-system/jsx/icon.mjs +0 -14
- package/styled-system/jsx/index.d.ts +0 -23
- package/styled-system/jsx/index.js +0 -21
- package/styled-system/jsx/index.mjs +0 -21
- package/styled-system/jsx/is-valid-prop.d.ts +0 -11
- package/styled-system/jsx/is-valid-prop.js +0 -17
- package/styled-system/jsx/is-valid-prop.mjs +0 -17
- package/styled-system/jsx/link-overlay.d.ts +0 -10
- package/styled-system/jsx/link-overlay.js +0 -14
- package/styled-system/jsx/link-overlay.mjs +0 -14
- package/styled-system/jsx/spacer.d.ts +0 -10
- package/styled-system/jsx/spacer.js +0 -14
- package/styled-system/jsx/spacer.mjs +0 -14
- package/styled-system/jsx/square.d.ts +0 -10
- package/styled-system/jsx/square.js +0 -14
- package/styled-system/jsx/square.mjs +0 -14
- package/styled-system/jsx/stack.d.ts +0 -10
- package/styled-system/jsx/stack.js +0 -14
- package/styled-system/jsx/stack.mjs +0 -14
- package/styled-system/jsx/visually-hidden.d.ts +0 -10
- package/styled-system/jsx/visually-hidden.js +0 -14
- package/styled-system/jsx/visually-hidden.mjs +0 -14
- package/styled-system/jsx/vstack.d.ts +0 -10
- package/styled-system/jsx/vstack.js +0 -14
- package/styled-system/jsx/vstack.mjs +0 -14
- package/styled-system/jsx/wrap.d.ts +0 -10
- package/styled-system/jsx/wrap.js +0 -14
- package/styled-system/jsx/wrap.mjs +0 -14
- package/styled-system/patterns/aspect-ratio.d.ts +0 -21
- package/styled-system/patterns/aspect-ratio.js +0 -38
- package/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/styled-system/patterns/bleed.d.ts +0 -22
- package/styled-system/patterns/bleed.js +0 -24
- package/styled-system/patterns/bleed.mjs +0 -24
- package/styled-system/patterns/box.d.ts +0 -21
- package/styled-system/patterns/box.mjs +0 -15
- package/styled-system/patterns/center.d.ts +0 -21
- package/styled-system/patterns/center.js +0 -21
- package/styled-system/patterns/center.mjs +0 -21
- package/styled-system/patterns/circle.d.ts +0 -21
- package/styled-system/patterns/circle.js +0 -25
- package/styled-system/patterns/circle.mjs +0 -25
- package/styled-system/patterns/container.d.ts +0 -21
- package/styled-system/patterns/container.js +0 -24
- package/styled-system/patterns/container.mjs +0 -24
- package/styled-system/patterns/cq.d.ts +0 -22
- package/styled-system/patterns/cq.js +0 -21
- package/styled-system/patterns/cq.mjs +0 -21
- package/styled-system/patterns/divider.d.ts +0 -23
- package/styled-system/patterns/divider.mjs +0 -25
- package/styled-system/patterns/flex.d.ts +0 -27
- package/styled-system/patterns/flex.js +0 -26
- package/styled-system/patterns/flex.mjs +0 -26
- package/styled-system/patterns/float.d.ts +0 -24
- package/styled-system/patterns/float.js +0 -52
- package/styled-system/patterns/float.mjs +0 -52
- package/styled-system/patterns/grid-item.d.ts +0 -26
- package/styled-system/patterns/grid-item.js +0 -25
- package/styled-system/patterns/grid-item.mjs +0 -25
- package/styled-system/patterns/grid.d.ts +0 -25
- package/styled-system/patterns/grid.js +0 -27
- package/styled-system/patterns/grid.mjs +0 -27
- package/styled-system/patterns/hstack.d.ts +0 -22
- package/styled-system/patterns/hstack.js +0 -24
- package/styled-system/patterns/hstack.mjs +0 -24
- package/styled-system/patterns/icon.d.ts +0 -21
- package/styled-system/patterns/icon.js +0 -20
- package/styled-system/patterns/icon.mjs +0 -20
- package/styled-system/patterns/index.d.ts +0 -20
- package/styled-system/patterns/index.js +0 -19
- package/styled-system/patterns/index.mjs +0 -19
- package/styled-system/patterns/link-overlay.d.ts +0 -21
- package/styled-system/patterns/link-overlay.js +0 -24
- package/styled-system/patterns/link-overlay.mjs +0 -24
- package/styled-system/patterns/spacer.d.ts +0 -21
- package/styled-system/patterns/spacer.js +0 -21
- package/styled-system/patterns/spacer.mjs +0 -21
- package/styled-system/patterns/square.d.ts +0 -21
- package/styled-system/patterns/square.js +0 -24
- package/styled-system/patterns/square.mjs +0 -24
- package/styled-system/patterns/stack.d.ts +0 -24
- package/styled-system/patterns/stack.js +0 -24
- package/styled-system/patterns/stack.mjs +0 -24
- package/styled-system/patterns/visually-hidden.d.ts +0 -21
- package/styled-system/patterns/visually-hidden.js +0 -18
- package/styled-system/patterns/visually-hidden.mjs +0 -18
- package/styled-system/patterns/vstack.d.ts +0 -22
- package/styled-system/patterns/vstack.js +0 -24
- package/styled-system/patterns/vstack.mjs +0 -24
- package/styled-system/patterns/wrap.d.ts +0 -25
- package/styled-system/patterns/wrap.js +0 -25
- package/styled-system/patterns/wrap.mjs +0 -25
- package/styled-system/recipes/box.d.ts +0 -28
- package/styled-system/recipes/box.js +0 -24
- package/styled-system/recipes/box.mjs +0 -24
- package/styled-system/recipes/button.d.ts +0 -35
- package/styled-system/recipes/button.js +0 -41
- package/styled-system/recipes/button.mjs +0 -41
- package/styled-system/recipes/checkbox.d.ts +0 -28
- package/styled-system/recipes/checkbox.js +0 -40
- package/styled-system/recipes/checkbox.mjs +0 -40
- package/styled-system/recipes/code.d.ts +0 -28
- package/styled-system/recipes/code.js +0 -24
- package/styled-system/recipes/code.mjs +0 -24
- package/styled-system/recipes/create-recipe.js +0 -82
- package/styled-system/recipes/create-recipe.mjs +0 -82
- package/styled-system/recipes/divider.d.ts +0 -35
- package/styled-system/recipes/divider.js +0 -38
- package/styled-system/recipes/divider.mjs +0 -38
- package/styled-system/recipes/heading.d.ts +0 -31
- package/styled-system/recipes/heading.js +0 -33
- package/styled-system/recipes/heading.mjs +0 -33
- package/styled-system/recipes/icon-button.d.ts +0 -35
- package/styled-system/recipes/icon-button.js +0 -41
- package/styled-system/recipes/icon-button.mjs +0 -41
- package/styled-system/recipes/index.d.ts +0 -17
- package/styled-system/recipes/index.js +0 -15
- package/styled-system/recipes/index.mjs +0 -16
- package/styled-system/recipes/input.d.ts +0 -31
- package/styled-system/recipes/input.js +0 -31
- package/styled-system/recipes/input.mjs +0 -31
- package/styled-system/recipes/label.d.ts +0 -38
- package/styled-system/recipes/label.js +0 -83
- package/styled-system/recipes/label.mjs +0 -83
- package/styled-system/recipes/link.d.ts +0 -38
- package/styled-system/recipes/link.js +0 -83
- package/styled-system/recipes/link.mjs +0 -83
- package/styled-system/recipes/pre.d.ts +0 -28
- package/styled-system/recipes/pre.js +0 -24
- package/styled-system/recipes/pre.mjs +0 -24
- package/styled-system/recipes/radio-input.d.ts +0 -28
- package/styled-system/recipes/radio-input.mjs +0 -24
- package/styled-system/recipes/radio.d.ts +0 -28
- package/styled-system/recipes/radio.js +0 -40
- package/styled-system/recipes/radio.mjs +0 -40
- package/styled-system/recipes/spinner.d.ts +0 -31
- package/styled-system/recipes/spinner.js +0 -32
- package/styled-system/recipes/spinner.mjs +0 -32
- package/styled-system/recipes/switchbox.d.ts +0 -28
- package/styled-system/recipes/switchbox.mjs +0 -44
- package/styled-system/recipes/text.d.ts +0 -37
- package/styled-system/recipes/text.js +0 -80
- package/styled-system/recipes/text.mjs +0 -80
- package/styled-system/recipes/textarea.d.ts +0 -32
- package/styled-system/recipes/textarea.js +0 -32
- package/styled-system/recipes/textarea.mjs +0 -35
- package/styled-system/recipes/textinput.d.ts +0 -32
- package/styled-system/recipes/textinput.mjs +0 -35
- package/styled-system/styles.css +0 -2184
- package/styled-system/tokens/index.d.ts +0 -9
- package/styled-system/tokens/index.js +0 -1480
- package/styled-system/tokens/index.mjs +0 -1580
- package/styled-system/tokens/tokens.d.ts +0 -63
- package/styled-system/types/composition.d.ts +0 -164
- package/styled-system/types/conditions.d.ts +0 -306
- package/styled-system/types/csstype.d.ts +0 -21298
- package/styled-system/types/global.d.ts +0 -20
- package/styled-system/types/index.d.ts +0 -8
- package/styled-system/types/jsx.d.ts +0 -52
- package/styled-system/types/parts.d.ts +0 -8
- package/styled-system/types/pattern.d.ts +0 -78
- package/styled-system/types/prop-type.d.ts +0 -235
- package/styled-system/types/recipe.d.ts +0 -181
- package/styled-system/types/selectors.d.ts +0 -59
- package/styled-system/types/static-css.d.ts +0 -56
- package/styled-system/types/style-props.d.ts +0 -7468
- package/styled-system/types/system-types.d.ts +0 -109
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface ContainerProperties {
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface ContainerStyles extends ContainerProperties, DistributiveOmit<SystemStyleObject, keyof ContainerProperties > {}
|
|
14
|
-
|
|
15
|
-
interface ContainerPatternFn {
|
|
16
|
-
(styles?: ContainerStyles): string
|
|
17
|
-
raw: (styles?: ContainerStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const container: ContainerPatternFn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.js';
|
|
2
|
-
import { css } from '../css/index.js';
|
|
3
|
-
|
|
4
|
-
const containerConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return Object.assign(
|
|
7
|
-
{
|
|
8
|
-
position: "relative",
|
|
9
|
-
width: "100%",
|
|
10
|
-
maxWidth: "7xl",
|
|
11
|
-
mx: "auto",
|
|
12
|
-
px: { base: "24", md: "20", sm: "16" }
|
|
13
|
-
},
|
|
14
|
-
props
|
|
15
|
-
);
|
|
16
|
-
}}
|
|
17
|
-
|
|
18
|
-
export const getContainerStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(containerConfig, styles)
|
|
20
|
-
return containerConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const container = (styles) => css(getContainerStyle(styles))
|
|
24
|
-
container.raw = getContainerStyle
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const containerConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return Object.assign(
|
|
7
|
-
{
|
|
8
|
-
position: "relative",
|
|
9
|
-
width: "100%",
|
|
10
|
-
maxWidth: "7xl",
|
|
11
|
-
mx: "auto",
|
|
12
|
-
px: { base: "24", md: "20", sm: "16" }
|
|
13
|
-
},
|
|
14
|
-
props
|
|
15
|
-
);
|
|
16
|
-
}}
|
|
17
|
-
|
|
18
|
-
export const getContainerStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(containerConfig, styles)
|
|
20
|
-
return containerConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const container = (styles) => css(getContainerStyle(styles))
|
|
24
|
-
container.raw = getContainerStyle
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface CqProperties {
|
|
9
|
-
name?: ConditionalValue<Tokens["containerNames"] | Properties["containerName"]>
|
|
10
|
-
type?: SystemProperties["containerType"]
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
interface CqStyles extends CqProperties, DistributiveOmit<SystemStyleObject, keyof CqProperties > {}
|
|
15
|
-
|
|
16
|
-
interface CqPatternFn {
|
|
17
|
-
(styles?: CqStyles): string
|
|
18
|
-
raw: (styles?: CqStyles) => SystemStyleObject
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const cq: CqPatternFn;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.js';
|
|
2
|
-
import { css } from '../css/index.js';
|
|
3
|
-
|
|
4
|
-
const cqConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { name, type, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
containerType: type,
|
|
9
|
-
containerName: name,
|
|
10
|
-
...rest
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
defaultValues:{type:'inline-size'}}
|
|
14
|
-
|
|
15
|
-
export const getCqStyle = (styles = {}) => {
|
|
16
|
-
const _styles = getPatternStyles(cqConfig, styles)
|
|
17
|
-
return cqConfig.transform(_styles, patternFns)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const cq = (styles) => css(getCqStyle(styles))
|
|
21
|
-
cq.raw = getCqStyle
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const cqConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { name, type, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
containerType: type,
|
|
9
|
-
containerName: name,
|
|
10
|
-
...rest
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
defaultValues:{type:'inline-size'}}
|
|
14
|
-
|
|
15
|
-
export const getCqStyle = (styles = {}) => {
|
|
16
|
-
const _styles = getPatternStyles(cqConfig, styles)
|
|
17
|
-
return cqConfig.transform(_styles, patternFns)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const cq = (styles) => css(getCqStyle(styles))
|
|
21
|
-
cq.raw = getCqStyle
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface DividerProperties {
|
|
9
|
-
orientation?: ConditionalValue<"horizontal" | "vertical">
|
|
10
|
-
thickness?: ConditionalValue<Tokens["sizes"] | Properties["borderWidth"]>
|
|
11
|
-
color?: ConditionalValue<Tokens["colors"] | Properties["borderColor"]>
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
interface DividerStyles extends DividerProperties, DistributiveOmit<SystemStyleObject, keyof DividerProperties > {}
|
|
16
|
-
|
|
17
|
-
interface DividerPatternFn {
|
|
18
|
-
(styles?: DividerStyles): string
|
|
19
|
-
raw: (styles?: DividerStyles) => SystemStyleObject
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export declare const divider: DividerPatternFn;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const dividerConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { orientation, thickness, color, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
"--thickness": thickness,
|
|
9
|
-
width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
|
|
10
|
-
height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
|
|
11
|
-
borderBlockEndWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
|
|
12
|
-
borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
|
|
13
|
-
borderColor: color,
|
|
14
|
-
...rest
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
defaultValues:{orientation:'horizontal',thickness:'1px'}}
|
|
18
|
-
|
|
19
|
-
export const getDividerStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(dividerConfig, styles)
|
|
21
|
-
return dividerConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const divider = (styles) => css(getDividerStyle(styles))
|
|
25
|
-
divider.raw = getDividerStyle
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface FlexProperties {
|
|
9
|
-
align?: SystemProperties["alignItems"]
|
|
10
|
-
justify?: SystemProperties["justifyContent"]
|
|
11
|
-
direction?: SystemProperties["flexDirection"]
|
|
12
|
-
wrap?: SystemProperties["flexWrap"]
|
|
13
|
-
basis?: SystemProperties["flexBasis"]
|
|
14
|
-
grow?: SystemProperties["flexGrow"]
|
|
15
|
-
shrink?: SystemProperties["flexShrink"]
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
interface FlexStyles extends FlexProperties, DistributiveOmit<SystemStyleObject, keyof FlexProperties > {}
|
|
20
|
-
|
|
21
|
-
interface FlexPatternFn {
|
|
22
|
-
(styles?: FlexStyles): string
|
|
23
|
-
raw: (styles?: FlexStyles) => SystemStyleObject
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export declare const flex: FlexPatternFn;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.js';
|
|
2
|
-
import { css } from '../css/index.js';
|
|
3
|
-
|
|
4
|
-
const flexConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexDirection: direction,
|
|
10
|
-
alignItems: align,
|
|
11
|
-
justifyContent: justify,
|
|
12
|
-
flexWrap: wrap2,
|
|
13
|
-
flexBasis: basis,
|
|
14
|
-
flexGrow: grow,
|
|
15
|
-
flexShrink: shrink,
|
|
16
|
-
...rest
|
|
17
|
-
};
|
|
18
|
-
}}
|
|
19
|
-
|
|
20
|
-
export const getFlexStyle = (styles = {}) => {
|
|
21
|
-
const _styles = getPatternStyles(flexConfig, styles)
|
|
22
|
-
return flexConfig.transform(_styles, patternFns)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const flex = (styles) => css(getFlexStyle(styles))
|
|
26
|
-
flex.raw = getFlexStyle
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const flexConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { direction, align, justify, wrap: wrap2, basis, grow, shrink, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexDirection: direction,
|
|
10
|
-
alignItems: align,
|
|
11
|
-
justifyContent: justify,
|
|
12
|
-
flexWrap: wrap2,
|
|
13
|
-
flexBasis: basis,
|
|
14
|
-
flexGrow: grow,
|
|
15
|
-
flexShrink: shrink,
|
|
16
|
-
...rest
|
|
17
|
-
};
|
|
18
|
-
}}
|
|
19
|
-
|
|
20
|
-
export const getFlexStyle = (styles = {}) => {
|
|
21
|
-
const _styles = getPatternStyles(flexConfig, styles)
|
|
22
|
-
return flexConfig.transform(_styles, patternFns)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export const flex = (styles) => css(getFlexStyle(styles))
|
|
26
|
-
flex.raw = getFlexStyle
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface FloatProperties {
|
|
9
|
-
offsetX?: ConditionalValue<Tokens["spacing"] | Properties["left"]>
|
|
10
|
-
offsetY?: ConditionalValue<Tokens["spacing"] | Properties["top"]>
|
|
11
|
-
offset?: ConditionalValue<Tokens["spacing"] | Properties["top"]>
|
|
12
|
-
placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
interface FloatStyles extends FloatProperties, DistributiveOmit<SystemStyleObject, keyof FloatProperties > {}
|
|
17
|
-
|
|
18
|
-
interface FloatPatternFn {
|
|
19
|
-
(styles?: FloatStyles): string
|
|
20
|
-
raw: (styles?: FloatStyles) => SystemStyleObject
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export declare const float: FloatPatternFn;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.js';
|
|
2
|
-
import { css } from '../css/index.js';
|
|
3
|
-
|
|
4
|
-
const floatConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { offset, offsetX, offsetY, placement, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "inline-flex",
|
|
9
|
-
justifyContent: "center",
|
|
10
|
-
alignItems: "center",
|
|
11
|
-
position: "absolute",
|
|
12
|
-
insetBlockStart: map(placement, (v) => {
|
|
13
|
-
const [side] = v.split("-");
|
|
14
|
-
const map2 = { top: offsetY, middle: "50%", bottom: "auto" };
|
|
15
|
-
return map2[side];
|
|
16
|
-
}),
|
|
17
|
-
insetBlockEnd: map(placement, (v) => {
|
|
18
|
-
const [side] = v.split("-");
|
|
19
|
-
const map2 = { top: "auto", middle: "50%", bottom: offsetY };
|
|
20
|
-
return map2[side];
|
|
21
|
-
}),
|
|
22
|
-
insetInlineStart: map(placement, (v) => {
|
|
23
|
-
const [, align] = v.split("-");
|
|
24
|
-
const map2 = { start: offsetX, center: "50%", end: "auto" };
|
|
25
|
-
return map2[align];
|
|
26
|
-
}),
|
|
27
|
-
insetInlineEnd: map(placement, (v) => {
|
|
28
|
-
const [, align] = v.split("-");
|
|
29
|
-
const map2 = { start: "auto", center: "50%", end: offsetX };
|
|
30
|
-
return map2[align];
|
|
31
|
-
}),
|
|
32
|
-
translate: map(placement, (v) => {
|
|
33
|
-
const [side, align] = v.split("-");
|
|
34
|
-
const mapX = { start: "-50%", center: "-50%", end: "50%" };
|
|
35
|
-
const mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
|
|
36
|
-
return `${mapX[align]} ${mapY[side]}`;
|
|
37
|
-
}),
|
|
38
|
-
...rest
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
defaultValues(props) {
|
|
42
|
-
const offset = props.offset || "0";
|
|
43
|
-
return { offset, offsetX: offset, offsetY: offset, placement: "top-end" };
|
|
44
|
-
}}
|
|
45
|
-
|
|
46
|
-
export const getFloatStyle = (styles = {}) => {
|
|
47
|
-
const _styles = getPatternStyles(floatConfig, styles)
|
|
48
|
-
return floatConfig.transform(_styles, patternFns)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const float = (styles) => css(getFloatStyle(styles))
|
|
52
|
-
float.raw = getFloatStyle
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const floatConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { offset, offsetX, offsetY, placement, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "inline-flex",
|
|
9
|
-
justifyContent: "center",
|
|
10
|
-
alignItems: "center",
|
|
11
|
-
position: "absolute",
|
|
12
|
-
insetBlockStart: map(placement, (v) => {
|
|
13
|
-
const [side] = v.split("-");
|
|
14
|
-
const map2 = { top: offsetY, middle: "50%", bottom: "auto" };
|
|
15
|
-
return map2[side];
|
|
16
|
-
}),
|
|
17
|
-
insetBlockEnd: map(placement, (v) => {
|
|
18
|
-
const [side] = v.split("-");
|
|
19
|
-
const map2 = { top: "auto", middle: "50%", bottom: offsetY };
|
|
20
|
-
return map2[side];
|
|
21
|
-
}),
|
|
22
|
-
insetInlineStart: map(placement, (v) => {
|
|
23
|
-
const [, align] = v.split("-");
|
|
24
|
-
const map2 = { start: offsetX, center: "50%", end: "auto" };
|
|
25
|
-
return map2[align];
|
|
26
|
-
}),
|
|
27
|
-
insetInlineEnd: map(placement, (v) => {
|
|
28
|
-
const [, align] = v.split("-");
|
|
29
|
-
const map2 = { start: "auto", center: "50%", end: offsetX };
|
|
30
|
-
return map2[align];
|
|
31
|
-
}),
|
|
32
|
-
translate: map(placement, (v) => {
|
|
33
|
-
const [side, align] = v.split("-");
|
|
34
|
-
const mapX = { start: "-50%", center: "-50%", end: "50%" };
|
|
35
|
-
const mapY = { top: "-50%", middle: "-50%", bottom: "50%" };
|
|
36
|
-
return `${mapX[align]} ${mapY[side]}`;
|
|
37
|
-
}),
|
|
38
|
-
...rest
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
defaultValues(props) {
|
|
42
|
-
const offset = props.offset || "0";
|
|
43
|
-
return { offset, offsetX: offset, offsetY: offset, placement: "top-end" };
|
|
44
|
-
}}
|
|
45
|
-
|
|
46
|
-
export const getFloatStyle = (styles = {}) => {
|
|
47
|
-
const _styles = getPatternStyles(floatConfig, styles)
|
|
48
|
-
return floatConfig.transform(_styles, patternFns)
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const float = (styles) => css(getFloatStyle(styles))
|
|
52
|
-
float.raw = getFloatStyle
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface GridItemProperties {
|
|
9
|
-
colSpan?: ConditionalValue<number>
|
|
10
|
-
rowSpan?: ConditionalValue<number>
|
|
11
|
-
colStart?: ConditionalValue<number>
|
|
12
|
-
rowStart?: ConditionalValue<number>
|
|
13
|
-
colEnd?: ConditionalValue<number>
|
|
14
|
-
rowEnd?: ConditionalValue<number>
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
interface GridItemStyles extends GridItemProperties, DistributiveOmit<SystemStyleObject, keyof GridItemProperties > {}
|
|
19
|
-
|
|
20
|
-
interface GridItemPatternFn {
|
|
21
|
-
(styles?: GridItemStyles): string
|
|
22
|
-
raw: (styles?: GridItemStyles) => SystemStyleObject
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
export declare const gridItem: GridItemPatternFn;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.js';
|
|
2
|
-
import { css } from '../css/index.js';
|
|
3
|
-
|
|
4
|
-
const gridItemConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
|
|
7
|
-
const spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
8
|
-
return {
|
|
9
|
-
gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
|
|
10
|
-
gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
|
|
11
|
-
gridColumnStart: colStart,
|
|
12
|
-
gridColumnEnd: colEnd,
|
|
13
|
-
gridRowStart: rowStart,
|
|
14
|
-
gridRowEnd: rowEnd,
|
|
15
|
-
...rest
|
|
16
|
-
};
|
|
17
|
-
}}
|
|
18
|
-
|
|
19
|
-
export const getGridItemStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(gridItemConfig, styles)
|
|
21
|
-
return gridItemConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const gridItem = (styles) => css(getGridItemStyle(styles))
|
|
25
|
-
gridItem.raw = getGridItemStyle
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const gridItemConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props;
|
|
7
|
-
const spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
8
|
-
return {
|
|
9
|
-
gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
|
|
10
|
-
gridRow: rowSpan != null ? map(rowSpan, spanFn) : void 0,
|
|
11
|
-
gridColumnStart: colStart,
|
|
12
|
-
gridColumnEnd: colEnd,
|
|
13
|
-
gridRowStart: rowStart,
|
|
14
|
-
gridRowEnd: rowEnd,
|
|
15
|
-
...rest
|
|
16
|
-
};
|
|
17
|
-
}}
|
|
18
|
-
|
|
19
|
-
export const getGridItemStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(gridItemConfig, styles)
|
|
21
|
-
return gridItemConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const gridItem = (styles) => css(getGridItemStyle(styles))
|
|
25
|
-
gridItem.raw = getGridItemStyle
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface GridProperties {
|
|
9
|
-
gap?: SystemProperties["gap"]
|
|
10
|
-
columnGap?: SystemProperties["gap"]
|
|
11
|
-
rowGap?: SystemProperties["gap"]
|
|
12
|
-
columns?: ConditionalValue<number>
|
|
13
|
-
minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
interface GridStyles extends GridProperties, DistributiveOmit<SystemStyleObject, keyof GridProperties > {}
|
|
18
|
-
|
|
19
|
-
interface GridPatternFn {
|
|
20
|
-
(styles?: GridStyles): string
|
|
21
|
-
raw: (styles?: GridStyles) => SystemStyleObject
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const grid: GridPatternFn;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.js';
|
|
2
|
-
import { css } from '../css/index.js';
|
|
3
|
-
|
|
4
|
-
const gridConfig = {
|
|
5
|
-
transform(props, { map, isCssUnit }) {
|
|
6
|
-
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
|
|
7
|
-
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
8
|
-
return {
|
|
9
|
-
display: "grid",
|
|
10
|
-
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
|
|
11
|
-
gap,
|
|
12
|
-
columnGap,
|
|
13
|
-
rowGap,
|
|
14
|
-
...rest
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
defaultValues(props) {
|
|
18
|
-
return { gap: props.columnGap || props.rowGap ? void 0 : "10px" };
|
|
19
|
-
}}
|
|
20
|
-
|
|
21
|
-
export const getGridStyle = (styles = {}) => {
|
|
22
|
-
const _styles = getPatternStyles(gridConfig, styles)
|
|
23
|
-
return gridConfig.transform(_styles, patternFns)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const grid = (styles) => css(getGridStyle(styles))
|
|
27
|
-
grid.raw = getGridStyle
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const gridConfig = {
|
|
5
|
-
transform(props, { map, isCssUnit }) {
|
|
6
|
-
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
|
|
7
|
-
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
8
|
-
return {
|
|
9
|
-
display: "grid",
|
|
10
|
-
gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
|
|
11
|
-
gap,
|
|
12
|
-
columnGap,
|
|
13
|
-
rowGap,
|
|
14
|
-
...rest
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
defaultValues(props) {
|
|
18
|
-
return { gap: props.columnGap || props.rowGap ? void 0 : "10px" };
|
|
19
|
-
}}
|
|
20
|
-
|
|
21
|
-
export const getGridStyle = (styles = {}) => {
|
|
22
|
-
const _styles = getPatternStyles(gridConfig, styles)
|
|
23
|
-
return gridConfig.transform(_styles, patternFns)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export const grid = (styles) => css(getGridStyle(styles))
|
|
27
|
-
grid.raw = getGridStyle
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface HstackProperties {
|
|
9
|
-
justify?: SystemProperties["justifyContent"]
|
|
10
|
-
gap?: SystemProperties["gap"]
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
interface HstackStyles extends HstackProperties, DistributiveOmit<SystemStyleObject, keyof HstackProperties > {}
|
|
15
|
-
|
|
16
|
-
interface HstackPatternFn {
|
|
17
|
-
(styles?: HstackStyles): string
|
|
18
|
-
raw: (styles?: HstackStyles) => SystemStyleObject
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
export declare const hstack: HstackPatternFn;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.js';
|
|
2
|
-
import { css } from '../css/index.js';
|
|
3
|
-
|
|
4
|
-
const hstackConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { justify, gap, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: justify,
|
|
11
|
-
gap,
|
|
12
|
-
flexDirection: "row",
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{gap:'10px'}}
|
|
17
|
-
|
|
18
|
-
export const getHstackStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(hstackConfig, styles)
|
|
20
|
-
return hstackConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const hstack = (styles) => css(getHstackStyle(styles))
|
|
24
|
-
hstack.raw = getHstackStyle
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const hstackConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { justify, gap, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: justify,
|
|
11
|
-
gap,
|
|
12
|
-
flexDirection: "row",
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{gap:'10px'}}
|
|
17
|
-
|
|
18
|
-
export const getHstackStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(hstackConfig, styles)
|
|
20
|
-
return hstackConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const hstack = (styles) => css(getHstackStyle(styles))
|
|
24
|
-
hstack.raw = getHstackStyle
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
-
import type { Properties } from '../types/csstype';
|
|
4
|
-
import type { SystemProperties } from '../types/style-props';
|
|
5
|
-
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
-
import type { Tokens } from '../tokens/index';
|
|
7
|
-
|
|
8
|
-
export interface IconProperties {
|
|
9
|
-
size?: ConditionalValue<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "12" | "14" | "16" | "20" | "22" | "24" | "32" | "40" | "48" | "56" | "64" | "72" | "80" | "96" | "full" | "min" | "max" | "fit" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "8xl" | "prose">
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
interface IconStyles extends IconProperties, DistributiveOmit<SystemStyleObject, keyof IconProperties > {}
|
|
14
|
-
|
|
15
|
-
interface IconPatternFn {
|
|
16
|
-
(styles?: IconStyles): string
|
|
17
|
-
raw: (styles?: IconStyles) => SystemStyleObject
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare const icon: IconPatternFn;
|