@mekari/pixel3-styled-system 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +16 -0
- package/chunks/packages__accordion__src__accordion.css +10 -0
- package/chunks/packages__avatar2__src__modules__avatar.recipes.css +166 -0
- package/chunks/packages__avatar__src__avatar.style.css +150 -0
- package/chunks/packages__avatar__src__avatar.styles.css +171 -0
- package/chunks/packages__avatar__src__modules__avatar.recipes.css +191 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-accordion__src__accordion.css +10 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar2__src__modules__avatar.recipes.css +166 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.css +16 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.style.css +150 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__avatar.styles.css +171 -0
- package/chunks/packages__core__node_modules__@mekari__pixel3-avatar__src__modules__avatar.recipes.css +191 -0
- package/css/conditions.mjs +34 -0
- package/css/css.d.ts +9 -0
- package/css/css.mjs +44 -0
- package/css/cva.d.ts +6 -0
- package/css/cva.mjs +85 -0
- package/css/cx.d.ts +5 -0
- package/css/cx.mjs +15 -0
- package/css/index.d.ts +5 -0
- package/css/index.mjs +4 -0
- package/css/sva.d.ts +4 -0
- package/css/sva.mjs +35 -0
- package/global.css +59 -0
- package/helpers.mjs +300 -0
- package/jsx/aspect-ratio.d.ts +10 -0
- package/jsx/aspect-ratio.mjs +16 -0
- package/jsx/bleed.d.ts +10 -0
- package/jsx/bleed.mjs +16 -0
- package/jsx/box.d.ts +10 -0
- package/jsx/box.mjs +16 -0
- package/jsx/center.d.ts +10 -0
- package/jsx/center.mjs +16 -0
- package/jsx/circle.d.ts +10 -0
- package/jsx/circle.mjs +16 -0
- package/jsx/container.d.ts +10 -0
- package/jsx/container.mjs +16 -0
- package/jsx/divider.d.ts +10 -0
- package/jsx/divider.mjs +16 -0
- package/jsx/factory-helper.mjs +22 -0
- package/jsx/factory.d.ts +4 -0
- package/jsx/factory.mjs +85 -0
- package/jsx/flex.d.ts +10 -0
- package/jsx/flex.mjs +16 -0
- package/jsx/float.d.ts +10 -0
- package/jsx/float.mjs +16 -0
- package/jsx/grid-item.d.ts +10 -0
- package/jsx/grid-item.mjs +16 -0
- package/jsx/grid.d.ts +10 -0
- package/jsx/grid.mjs +16 -0
- package/jsx/hstack.d.ts +10 -0
- package/jsx/hstack.mjs +16 -0
- package/jsx/index.d.ts +27 -0
- package/jsx/index.mjs +22 -0
- package/jsx/is-valid-prop.d.ts +5 -0
- package/jsx/is-valid-prop.mjs +17 -0
- package/jsx/link-box.d.ts +10 -0
- package/jsx/link-box.mjs +16 -0
- package/jsx/link-overlay.d.ts +10 -0
- package/jsx/link-overlay.mjs +16 -0
- package/jsx/spacer.d.ts +10 -0
- package/jsx/spacer.mjs +16 -0
- package/jsx/square.d.ts +10 -0
- package/jsx/square.mjs +16 -0
- package/jsx/stack.d.ts +10 -0
- package/jsx/stack.mjs +16 -0
- package/jsx/visually-hidden.d.ts +10 -0
- package/jsx/visually-hidden.mjs +16 -0
- package/jsx/vstack.d.ts +10 -0
- package/jsx/vstack.mjs +16 -0
- package/jsx/wrap.d.ts +10 -0
- package/jsx/wrap.mjs +16 -0
- package/package.json +40 -0
- package/patterns/aspect-ratio.d.ts +21 -0
- package/patterns/aspect-ratio.mjs +35 -0
- package/patterns/bleed.d.ts +22 -0
- package/patterns/bleed.mjs +19 -0
- package/patterns/box.d.ts +21 -0
- package/patterns/box.mjs +12 -0
- package/patterns/center.d.ts +21 -0
- package/patterns/center.mjs +18 -0
- package/patterns/circle.d.ts +21 -0
- package/patterns/circle.mjs +22 -0
- package/patterns/container.d.ts +21 -0
- package/patterns/container.mjs +18 -0
- package/patterns/divider.d.ts +23 -0
- package/patterns/divider.mjs +21 -0
- package/patterns/flex.d.ts +27 -0
- package/patterns/flex.mjs +23 -0
- package/patterns/float.d.ts +24 -0
- package/patterns/float.mjs +45 -0
- package/patterns/grid-item.d.ts +26 -0
- package/patterns/grid-item.mjs +22 -0
- package/patterns/grid.d.ts +25 -0
- package/patterns/grid.mjs +22 -0
- package/patterns/hstack.d.ts +22 -0
- package/patterns/hstack.mjs +20 -0
- package/patterns/index.d.ts +21 -0
- package/patterns/index.mjs +20 -0
- package/patterns/link-box.d.ts +21 -0
- package/patterns/link-box.mjs +19 -0
- package/patterns/link-overlay.d.ts +21 -0
- package/patterns/link-overlay.mjs +24 -0
- package/patterns/spacer.d.ts +21 -0
- package/patterns/spacer.mjs +18 -0
- package/patterns/square.d.ts +21 -0
- package/patterns/square.mjs +21 -0
- package/patterns/stack.d.ts +24 -0
- package/patterns/stack.mjs +20 -0
- package/patterns/visually-hidden.d.ts +21 -0
- package/patterns/visually-hidden.mjs +15 -0
- package/patterns/vstack.d.ts +22 -0
- package/patterns/vstack.mjs +20 -0
- package/patterns/wrap.d.ts +25 -0
- package/patterns/wrap.mjs +22 -0
- package/recipes/accordion.d.ts +27 -0
- package/recipes/accordion.mjs +50 -0
- package/recipes/avatar-group-recipe.d.ts +27 -0
- package/recipes/avatar-group-recipe.mjs +43 -0
- package/recipes/avatar-group-slot-recipe.d.ts +27 -0
- package/recipes/avatar-group-slot-recipe.mjs +43 -0
- package/recipes/avatar-recipe.d.ts +30 -0
- package/recipes/avatar-recipe.mjs +122 -0
- package/recipes/avatar-slot-recipe.d.ts +29 -0
- package/recipes/avatar-slot-recipe.mjs +116 -0
- package/recipes/badge-recipe.d.ts +29 -0
- package/recipes/badge-recipe.mjs +160 -0
- package/recipes/button-group-recipe.d.ts +27 -0
- package/recipes/button-group-recipe.mjs +22 -0
- package/recipes/button-recipe.d.ts +28 -0
- package/recipes/button-recipe.mjs +94 -0
- package/recipes/checkbox-slot-recipe.d.ts +27 -0
- package/recipes/checkbox-slot-recipe.mjs +38 -0
- package/recipes/create-recipe.d.ts +1 -0
- package/recipes/create-recipe.mjs +79 -0
- package/recipes/icon-recipe.d.ts +27 -0
- package/recipes/icon-recipe.mjs +29 -0
- package/recipes/index.d.ts +30 -0
- package/recipes/index.mjs +29 -0
- package/recipes/input-addon-recipe.d.ts +29 -0
- package/recipes/input-addon-recipe.mjs +107 -0
- package/recipes/input-addon-slot-recipe.d.ts +28 -0
- package/recipes/input-addon-slot-recipe.mjs +45 -0
- package/recipes/input-group-recipe.d.ts +27 -0
- package/recipes/input-group-recipe.mjs +30 -0
- package/recipes/input-group-slot-recipe.d.ts +27 -0
- package/recipes/input-group-slot-recipe.mjs +30 -0
- package/recipes/input-recipe.d.ts +30 -0
- package/recipes/input-recipe.mjs +63 -0
- package/recipes/input-slot-recipe.d.ts +28 -0
- package/recipes/input-slot-recipe.mjs +53 -0
- package/recipes/popover-content-recipe.d.ts +28 -0
- package/recipes/popover-content-recipe.mjs +34 -0
- package/recipes/popover-list-item-recipe.d.ts +27 -0
- package/recipes/popover-list-item-recipe.mjs +22 -0
- package/recipes/popover-list-recipe.d.ts +27 -0
- package/recipes/popover-list-recipe.mjs +22 -0
- package/recipes/progress-slot-recipe.d.ts +28 -0
- package/recipes/progress-slot-recipe.mjs +57 -0
- package/recipes/radio-slot-recipe.d.ts +27 -0
- package/recipes/radio-slot-recipe.mjs +38 -0
- package/recipes/select-slot-recipe.d.ts +27 -0
- package/recipes/select-slot-recipe.mjs +51 -0
- package/recipes/selected-border-recipe.d.ts +28 -0
- package/recipes/selected-border-recipe.mjs +88 -0
- package/recipes/shared-slot-recipe.d.ts +27 -0
- package/recipes/shared-slot-recipe.mjs +30 -0
- package/recipes/spinner-recipe.d.ts +27 -0
- package/recipes/spinner-recipe.mjs +29 -0
- package/recipes/tab-list-recipe.d.ts +27 -0
- package/recipes/tab-list-recipe.mjs +22 -0
- package/recipes/tab-recipe.d.ts +28 -0
- package/recipes/tab-recipe.mjs +87 -0
- package/recipes/table-container-recipe.d.ts +27 -0
- package/recipes/table-container-recipe.mjs +22 -0
- package/recipes/table-head-recipe.d.ts +27 -0
- package/recipes/table-head-recipe.mjs +22 -0
- package/recipes/table-recipe.d.ts +27 -0
- package/recipes/table-recipe.mjs +22 -0
- package/recipes/tag-recipe.d.ts +28 -0
- package/recipes/tag-recipe.mjs +66 -0
- package/recipes/tag-slot-recipe.d.ts +28 -0
- package/recipes/tag-slot-recipe.mjs +66 -0
- package/recipes/text-recipe.d.ts +28 -0
- package/recipes/text-recipe.mjs +40 -0
- package/recipes/textarea-recipe.d.ts +27 -0
- package/recipes/textarea-recipe.mjs +26 -0
- package/recipes/toggle-slot-recipe.d.ts +27 -0
- package/recipes/toggle-slot-recipe.mjs +38 -0
- package/recipes/tooltip-recipe.d.ts +27 -0
- package/recipes/tooltip-recipe.mjs +22 -0
- package/reset.css +214 -0
- package/styles.css +246 -0
- package/tokens/index.css +179 -0
- package/tokens/index.d.ts +9 -0
- package/tokens/index.mjs +848 -0
- package/tokens/keyframes.css +23 -0
- package/tokens/tokens.d.ts +57 -0
- package/types/composition.d.ts +111 -0
- package/types/conditions.d.ts +256 -0
- package/types/csstype.d.ts +20749 -0
- package/types/global.d.ts +19 -0
- package/types/index.d.ts +8 -0
- package/types/jsx.d.ts +54 -0
- package/types/parts.d.ts +8 -0
- package/types/pattern.d.ts +63 -0
- package/types/prop-type.d.ts +317 -0
- package/types/recipe.d.ts +146 -0
- package/types/selectors.d.ts +59 -0
- package/types/style-props.d.ts +653 -0
- package/types/system-types.d.ts +93 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface HstackProperties {
|
|
9
|
+
justify?: PropertyValue<'justifyContent'>
|
|
10
|
+
gap?: PropertyValue<'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;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const hstackConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { justify, gap = "10px", ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: justify,
|
|
11
|
+
gap,
|
|
12
|
+
flexDirection: "row",
|
|
13
|
+
...rest
|
|
14
|
+
};
|
|
15
|
+
}}
|
|
16
|
+
|
|
17
|
+
export const getHstackStyle = (styles = {}) => hstackConfig.transform(styles, { map: mapObject })
|
|
18
|
+
|
|
19
|
+
export const hstack = (styles) => css(getHstackStyle(styles))
|
|
20
|
+
hstack.raw = getHstackStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
export * from './box';
|
|
3
|
+
export * from './flex';
|
|
4
|
+
export * from './stack';
|
|
5
|
+
export * from './vstack';
|
|
6
|
+
export * from './hstack';
|
|
7
|
+
export * from './spacer';
|
|
8
|
+
export * from './square';
|
|
9
|
+
export * from './circle';
|
|
10
|
+
export * from './center';
|
|
11
|
+
export * from './link-box';
|
|
12
|
+
export * from './link-overlay';
|
|
13
|
+
export * from './aspect-ratio';
|
|
14
|
+
export * from './grid';
|
|
15
|
+
export * from './grid-item';
|
|
16
|
+
export * from './wrap';
|
|
17
|
+
export * from './container';
|
|
18
|
+
export * from './divider';
|
|
19
|
+
export * from './float';
|
|
20
|
+
export * from './bleed';
|
|
21
|
+
export * from './visually-hidden';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './box.mjs';
|
|
2
|
+
export * from './flex.mjs';
|
|
3
|
+
export * from './stack.mjs';
|
|
4
|
+
export * from './vstack.mjs';
|
|
5
|
+
export * from './hstack.mjs';
|
|
6
|
+
export * from './spacer.mjs';
|
|
7
|
+
export * from './square.mjs';
|
|
8
|
+
export * from './circle.mjs';
|
|
9
|
+
export * from './center.mjs';
|
|
10
|
+
export * from './link-box.mjs';
|
|
11
|
+
export * from './link-overlay.mjs';
|
|
12
|
+
export * from './aspect-ratio.mjs';
|
|
13
|
+
export * from './grid.mjs';
|
|
14
|
+
export * from './grid-item.mjs';
|
|
15
|
+
export * from './wrap.mjs';
|
|
16
|
+
export * from './container.mjs';
|
|
17
|
+
export * from './divider.mjs';
|
|
18
|
+
export * from './float.mjs';
|
|
19
|
+
export * from './bleed.mjs';
|
|
20
|
+
export * from './visually-hidden.mjs';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface LinkBoxProperties {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface LinkBoxStyles extends LinkBoxProperties, DistributiveOmit<SystemStyleObject, keyof LinkBoxProperties > {}
|
|
14
|
+
|
|
15
|
+
interface LinkBoxPatternFn {
|
|
16
|
+
(styles?: LinkBoxStyles): string
|
|
17
|
+
raw: (styles?: LinkBoxStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const linkBox: LinkBoxPatternFn;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const linkBoxConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
return {
|
|
7
|
+
position: "relative",
|
|
8
|
+
"& :where(a, abbr)": {
|
|
9
|
+
position: "relative",
|
|
10
|
+
zIndex: "1"
|
|
11
|
+
},
|
|
12
|
+
...props
|
|
13
|
+
};
|
|
14
|
+
}}
|
|
15
|
+
|
|
16
|
+
export const getLinkBoxStyle = (styles = {}) => linkBoxConfig.transform(styles, { map: mapObject })
|
|
17
|
+
|
|
18
|
+
export const linkBox = (styles) => css(getLinkBoxStyle(styles))
|
|
19
|
+
linkBox.raw = getLinkBoxStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface LinkOverlayProperties {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface LinkOverlayStyles extends LinkOverlayProperties, DistributiveOmit<SystemStyleObject, keyof LinkOverlayProperties > {}
|
|
14
|
+
|
|
15
|
+
interface LinkOverlayPatternFn {
|
|
16
|
+
(styles?: LinkOverlayStyles): string
|
|
17
|
+
raw: (styles?: LinkOverlayStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const linkOverlay: LinkOverlayPatternFn;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const linkOverlayConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
return {
|
|
7
|
+
position: "static",
|
|
8
|
+
_before: {
|
|
9
|
+
content: '""',
|
|
10
|
+
display: "block",
|
|
11
|
+
position: "absolute",
|
|
12
|
+
cursor: "inherit",
|
|
13
|
+
inset: "0",
|
|
14
|
+
zIndex: "0",
|
|
15
|
+
...props["_before"]
|
|
16
|
+
},
|
|
17
|
+
...props
|
|
18
|
+
};
|
|
19
|
+
}}
|
|
20
|
+
|
|
21
|
+
export const getLinkOverlayStyle = (styles = {}) => linkOverlayConfig.transform(styles, { map: mapObject })
|
|
22
|
+
|
|
23
|
+
export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
|
|
24
|
+
linkOverlay.raw = getLinkOverlayStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface SpacerProperties {
|
|
9
|
+
size?: ConditionalValue<Tokens["spacing"]>
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface SpacerStyles extends SpacerProperties, DistributiveOmit<SystemStyleObject, keyof SpacerProperties > {}
|
|
14
|
+
|
|
15
|
+
interface SpacerPatternFn {
|
|
16
|
+
(styles?: SpacerStyles): string
|
|
17
|
+
raw: (styles?: SpacerStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const spacer: SpacerPatternFn;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const spacerConfig = {
|
|
5
|
+
transform(props, { map }) {
|
|
6
|
+
const { size, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
alignSelf: "stretch",
|
|
9
|
+
justifySelf: "stretch",
|
|
10
|
+
flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
|
|
11
|
+
...rest
|
|
12
|
+
};
|
|
13
|
+
}}
|
|
14
|
+
|
|
15
|
+
export const getSpacerStyle = (styles = {}) => spacerConfig.transform(styles, { map: mapObject })
|
|
16
|
+
|
|
17
|
+
export const spacer = (styles) => css(getSpacerStyle(styles))
|
|
18
|
+
spacer.raw = getSpacerStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface SquareProperties {
|
|
9
|
+
size?: PropertyValue<'width'>
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface SquareStyles extends SquareProperties, DistributiveOmit<SystemStyleObject, keyof SquareProperties > {}
|
|
14
|
+
|
|
15
|
+
interface SquarePatternFn {
|
|
16
|
+
(styles?: SquareStyles): string
|
|
17
|
+
raw: (styles?: SquareStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const square: SquarePatternFn;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const squareConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { size, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: "center",
|
|
11
|
+
flex: "0 0 auto",
|
|
12
|
+
width: size,
|
|
13
|
+
height: size,
|
|
14
|
+
...rest
|
|
15
|
+
};
|
|
16
|
+
}}
|
|
17
|
+
|
|
18
|
+
export const getSquareStyle = (styles = {}) => squareConfig.transform(styles, { map: mapObject })
|
|
19
|
+
|
|
20
|
+
export const square = (styles) => css(getSquareStyle(styles))
|
|
21
|
+
square.raw = getSquareStyle
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface StackProperties {
|
|
9
|
+
align?: PropertyValue<'alignItems'>
|
|
10
|
+
justify?: PropertyValue<'justifyContent'>
|
|
11
|
+
direction?: PropertyValue<'flexDirection'>
|
|
12
|
+
gap?: PropertyValue<'gap'>
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
interface StackStyles extends StackProperties, DistributiveOmit<SystemStyleObject, keyof StackProperties > {}
|
|
17
|
+
|
|
18
|
+
interface StackPatternFn {
|
|
19
|
+
(styles?: StackStyles): string
|
|
20
|
+
raw: (styles?: StackStyles) => SystemStyleObject
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export declare const stack: StackPatternFn;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const stackConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { align, justify, direction = "column", gap = "10px", ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexDirection: direction,
|
|
10
|
+
alignItems: align,
|
|
11
|
+
justifyContent: justify,
|
|
12
|
+
gap,
|
|
13
|
+
...rest
|
|
14
|
+
};
|
|
15
|
+
}}
|
|
16
|
+
|
|
17
|
+
export const getStackStyle = (styles = {}) => stackConfig.transform(styles, { map: mapObject })
|
|
18
|
+
|
|
19
|
+
export const stack = (styles) => css(getStackStyle(styles))
|
|
20
|
+
stack.raw = getStackStyle
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface VisuallyHiddenProperties {
|
|
9
|
+
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface VisuallyHiddenStyles extends VisuallyHiddenProperties, DistributiveOmit<SystemStyleObject, keyof VisuallyHiddenProperties > {}
|
|
14
|
+
|
|
15
|
+
interface VisuallyHiddenPatternFn {
|
|
16
|
+
(styles?: VisuallyHiddenStyles): string
|
|
17
|
+
raw: (styles?: VisuallyHiddenStyles) => SystemStyleObject
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
export declare const visuallyHidden: VisuallyHiddenPatternFn;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const visuallyHiddenConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
return {
|
|
7
|
+
srOnly: true,
|
|
8
|
+
...props
|
|
9
|
+
};
|
|
10
|
+
}}
|
|
11
|
+
|
|
12
|
+
export const getVisuallyHiddenStyle = (styles = {}) => visuallyHiddenConfig.transform(styles, { map: mapObject })
|
|
13
|
+
|
|
14
|
+
export const visuallyHidden = (styles) => css(getVisuallyHiddenStyle(styles))
|
|
15
|
+
visuallyHidden.raw = getVisuallyHiddenStyle
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface VstackProperties {
|
|
9
|
+
justify?: PropertyValue<'justifyContent'>
|
|
10
|
+
gap?: PropertyValue<'gap'>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
interface VstackStyles extends VstackProperties, DistributiveOmit<SystemStyleObject, keyof VstackProperties > {}
|
|
15
|
+
|
|
16
|
+
interface VstackPatternFn {
|
|
17
|
+
(styles?: VstackStyles): string
|
|
18
|
+
raw: (styles?: VstackStyles) => SystemStyleObject
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export declare const vstack: VstackPatternFn;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const vstackConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { justify, gap = "10px", ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
alignItems: "center",
|
|
10
|
+
justifyContent: justify,
|
|
11
|
+
gap,
|
|
12
|
+
flexDirection: "column",
|
|
13
|
+
...rest
|
|
14
|
+
};
|
|
15
|
+
}}
|
|
16
|
+
|
|
17
|
+
export const getVstackStyle = (styles = {}) => vstackConfig.transform(styles, { map: mapObject })
|
|
18
|
+
|
|
19
|
+
export const vstack = (styles) => css(getVstackStyle(styles))
|
|
20
|
+
vstack.raw = getVstackStyle
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { SystemStyleObject, ConditionalValue } from '../types/index';
|
|
3
|
+
import type { Properties } from '../types/csstype';
|
|
4
|
+
import type { PropertyValue } from '../types/prop-type';
|
|
5
|
+
import type { DistributiveOmit } from '../types/system-types';
|
|
6
|
+
import type { Tokens } from '../tokens/index';
|
|
7
|
+
|
|
8
|
+
export interface WrapProperties {
|
|
9
|
+
gap?: PropertyValue<'gap'>
|
|
10
|
+
rowGap?: PropertyValue<'gap'>
|
|
11
|
+
columnGap?: PropertyValue<'gap'>
|
|
12
|
+
align?: PropertyValue<'alignItems'>
|
|
13
|
+
justify?: PropertyValue<'justifyContent'>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
interface WrapStyles extends WrapProperties, DistributiveOmit<SystemStyleObject, keyof WrapProperties > {}
|
|
18
|
+
|
|
19
|
+
interface WrapPatternFn {
|
|
20
|
+
(styles?: WrapStyles): string
|
|
21
|
+
raw: (styles?: WrapStyles) => SystemStyleObject
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export declare const wrap: WrapPatternFn;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { mapObject } from '../helpers.mjs';
|
|
2
|
+
import { css } from '../css/index.mjs';
|
|
3
|
+
|
|
4
|
+
const wrapConfig = {
|
|
5
|
+
transform(props) {
|
|
6
|
+
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props;
|
|
7
|
+
return {
|
|
8
|
+
display: "flex",
|
|
9
|
+
flexWrap: "wrap",
|
|
10
|
+
alignItems: align,
|
|
11
|
+
justifyContent: justify,
|
|
12
|
+
gap,
|
|
13
|
+
columnGap,
|
|
14
|
+
rowGap,
|
|
15
|
+
...rest
|
|
16
|
+
};
|
|
17
|
+
}}
|
|
18
|
+
|
|
19
|
+
export const getWrapStyle = (styles = {}) => wrapConfig.transform(styles, { map: mapObject })
|
|
20
|
+
|
|
21
|
+
export const wrap = (styles) => css(getWrapStyle(styles))
|
|
22
|
+
wrap.raw = getWrapStyle
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface AccordionVariant {
|
|
6
|
+
size: "md"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type AccordionVariantMap = {
|
|
10
|
+
[key in keyof AccordionVariant]: Array<AccordionVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type AccordionVariantProps = {
|
|
14
|
+
[key in keyof AccordionVariant]?: ConditionalValue<AccordionVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AccordionRecipe {
|
|
18
|
+
__type: AccordionVariantProps
|
|
19
|
+
(props?: AccordionVariantProps): Pretty<Record<"root" | "item" | "trigger" | "content", string>>
|
|
20
|
+
raw: (props?: AccordionVariantProps) => AccordionVariantProps
|
|
21
|
+
variantMap: AccordionVariantMap
|
|
22
|
+
variantKeys: Array<keyof AccordionVariant>
|
|
23
|
+
splitVariantProps<Props extends AccordionVariantProps>(props: Props): [AccordionVariantProps, Pretty<DistributiveOmit<Props, keyof AccordionVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const accordion: AccordionRecipe
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const accordionDefaultVariants = {
|
|
5
|
+
"size": "md"
|
|
6
|
+
}
|
|
7
|
+
const accordionCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const accordionSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"accordion__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"item",
|
|
16
|
+
"accordion__item"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"trigger",
|
|
20
|
+
"accordion__trigger"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"content",
|
|
24
|
+
"accordion__content"
|
|
25
|
+
]
|
|
26
|
+
]
|
|
27
|
+
const accordionSlotFns = /* @__PURE__ */ accordionSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, accordionDefaultVariants, getSlotCompoundVariant(accordionCompoundVariants, slotName))])
|
|
28
|
+
|
|
29
|
+
const accordionFn = (props = {}) => {
|
|
30
|
+
return Object.fromEntries(accordionSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const accordionVariantKeys = [
|
|
34
|
+
"size"
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
export const accordion = /* @__PURE__ */ Object.assign(accordionFn, {
|
|
38
|
+
__recipe__: false,
|
|
39
|
+
__name__: 'accordion',
|
|
40
|
+
raw: (props) => props,
|
|
41
|
+
variantKeys: accordionVariantKeys,
|
|
42
|
+
variantMap: {
|
|
43
|
+
"size": [
|
|
44
|
+
"md"
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
splitVariantProps(props) {
|
|
48
|
+
return splitProps(props, accordionVariantKeys)
|
|
49
|
+
},
|
|
50
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface AvatarGroupRecipeVariant {
|
|
6
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type AvatarGroupRecipeVariantMap = {
|
|
10
|
+
[key in keyof AvatarGroupRecipeVariant]: Array<AvatarGroupRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type AvatarGroupRecipeVariantProps = {
|
|
14
|
+
[key in keyof AvatarGroupRecipeVariant]?: ConditionalValue<AvatarGroupRecipeVariant[key]>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AvatarGroupRecipeRecipe {
|
|
18
|
+
__type: AvatarGroupRecipeVariantProps
|
|
19
|
+
(props?: AvatarGroupRecipeVariantProps): Pretty<Record<"root" | "excess", string>>
|
|
20
|
+
raw: (props?: AvatarGroupRecipeVariantProps) => AvatarGroupRecipeVariantProps
|
|
21
|
+
variantMap: AvatarGroupRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof AvatarGroupRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends AvatarGroupRecipeVariantProps>(props: Props): [AvatarGroupRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarGroupRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const avatarGroupRecipe: AvatarGroupRecipeRecipe
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const avatarGroupRecipeDefaultVariants = {}
|
|
5
|
+
const avatarGroupRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const avatarGroupRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"avatar-group__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"excess",
|
|
14
|
+
"avatar-group__excess"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const avatarGroupRecipeSlotFns = /* @__PURE__ */ avatarGroupRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarGroupRecipeDefaultVariants, getSlotCompoundVariant(avatarGroupRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const avatarGroupRecipeFn = (props = {}) => {
|
|
20
|
+
return Object.fromEntries(avatarGroupRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const avatarGroupRecipeVariantKeys = [
|
|
24
|
+
"size"
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
export const avatarGroupRecipe = /* @__PURE__ */ Object.assign(avatarGroupRecipeFn, {
|
|
28
|
+
__recipe__: false,
|
|
29
|
+
__name__: 'avatarGroupRecipe',
|
|
30
|
+
raw: (props) => props,
|
|
31
|
+
variantKeys: avatarGroupRecipeVariantKeys,
|
|
32
|
+
variantMap: {
|
|
33
|
+
"size": [
|
|
34
|
+
"sm",
|
|
35
|
+
"md",
|
|
36
|
+
"lg",
|
|
37
|
+
"xl"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
splitVariantProps(props) {
|
|
41
|
+
return splitProps(props, avatarGroupRecipeVariantKeys)
|
|
42
|
+
},
|
|
43
|
+
})
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface AvatarGroupSlotRecipeVariant {
|
|
6
|
+
size: "sm" | "md" | "lg" | "xl"
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type AvatarGroupSlotRecipeVariantMap = {
|
|
10
|
+
[key in keyof AvatarGroupSlotRecipeVariant]: Array<AvatarGroupSlotRecipeVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type AvatarGroupSlotRecipeVariantProps = {
|
|
14
|
+
[key in keyof AvatarGroupSlotRecipeVariant]?: ConditionalValue<AvatarGroupSlotRecipeVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AvatarGroupSlotRecipeRecipe {
|
|
18
|
+
__type: AvatarGroupSlotRecipeVariantProps
|
|
19
|
+
(props?: AvatarGroupSlotRecipeVariantProps): Pretty<Record<"root" | "excess", string>>
|
|
20
|
+
raw: (props?: AvatarGroupSlotRecipeVariantProps) => AvatarGroupSlotRecipeVariantProps
|
|
21
|
+
variantMap: AvatarGroupSlotRecipeVariantMap
|
|
22
|
+
variantKeys: Array<keyof AvatarGroupSlotRecipeVariant>
|
|
23
|
+
splitVariantProps<Props extends AvatarGroupSlotRecipeVariantProps>(props: Props): [AvatarGroupSlotRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof AvatarGroupSlotRecipeVariantProps>>]
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export declare const avatarGroupSlotRecipe: AvatarGroupSlotRecipeRecipe
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const avatarGroupSlotRecipeDefaultVariants = {}
|
|
5
|
+
const avatarGroupSlotRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const avatarGroupSlotRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"avatar-group__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"excess",
|
|
14
|
+
"avatar-group__excess"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const avatarGroupSlotRecipeSlotFns = /* @__PURE__ */ avatarGroupSlotRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, avatarGroupSlotRecipeDefaultVariants, getSlotCompoundVariant(avatarGroupSlotRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const avatarGroupSlotRecipeFn = (props = {}) => {
|
|
20
|
+
return Object.fromEntries(avatarGroupSlotRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const avatarGroupSlotRecipeVariantKeys = [
|
|
24
|
+
"size"
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
export const avatarGroupSlotRecipe = /* @__PURE__ */ Object.assign(avatarGroupSlotRecipeFn, {
|
|
28
|
+
__recipe__: false,
|
|
29
|
+
__name__: 'avatarGroupSlotRecipe',
|
|
30
|
+
raw: (props) => props,
|
|
31
|
+
variantKeys: avatarGroupSlotRecipeVariantKeys,
|
|
32
|
+
variantMap: {
|
|
33
|
+
"size": [
|
|
34
|
+
"sm",
|
|
35
|
+
"md",
|
|
36
|
+
"lg",
|
|
37
|
+
"xl"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
splitVariantProps(props) {
|
|
41
|
+
return splitProps(props, avatarGroupSlotRecipeVariantKeys)
|
|
42
|
+
},
|
|
43
|
+
})
|