@stokelp/styled-system 2.127.0 → 3.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/css/conditions.d.ts +7 -0
- package/css/conditions.js +32 -0
- package/css/css.d.ts +6 -6
- package/css/css.js +63 -0
- package/css/cva.d.ts +3 -4
- package/css/cva.js +51 -0
- package/css/cx.d.ts +5 -4
- package/css/{cx.mjs → cx.js} +5 -4
- package/css/first-that-works.d.ts +22 -0
- package/css/first-that-works.js +1 -0
- package/css/index.d.ts +8 -5
- package/css/index.js +8 -0
- package/css/keyframes.d.ts +5 -0
- package/css/keyframes.js +8 -0
- package/css/position-try.d.ts +5 -0
- package/css/position-try.js +11 -0
- package/css/sva.d.ts +2 -3
- package/css/sva.js +49 -0
- package/css/view-transition.d.ts +7 -0
- package/css/view-transition.js +18 -0
- package/dist/panda/buildinfo.json +20580 -0
- package/dist/panda/lib.json +15 -0
- package/dist/panda/preset.mjs +9505 -0
- package/helpers.d.ts +67 -0
- package/helpers.js +624 -0
- package/jsx/aspect-ratio.d.ts +5 -8
- package/jsx/aspect-ratio.js +11 -0
- package/jsx/bleed.d.ts +6 -9
- package/jsx/bleed.js +11 -0
- package/jsx/box.d.ts +6 -9
- package/jsx/box.js +11 -0
- package/jsx/center.d.ts +6 -9
- package/jsx/center.js +11 -0
- package/jsx/circle.d.ts +6 -9
- package/jsx/circle.js +11 -0
- package/jsx/container.d.ts +6 -9
- package/jsx/container.js +11 -0
- package/jsx/cq.d.ts +6 -9
- package/jsx/cq.js +11 -0
- package/jsx/create-recipe-context.d.ts +31 -0
- package/jsx/create-recipe-context.js +38 -0
- package/jsx/create-slot-recipe-context.d.ts +49 -0
- package/jsx/create-slot-recipe-context.js +124 -0
- package/jsx/divider.d.ts +6 -9
- package/jsx/divider.js +11 -0
- package/jsx/factory.d.ts +3 -3
- package/jsx/factory.js +91 -0
- package/jsx/flex.d.ts +6 -9
- package/jsx/flex.js +11 -0
- package/jsx/float.d.ts +6 -9
- package/jsx/float.js +11 -0
- package/jsx/grid-item.d.ts +6 -9
- package/jsx/grid-item.js +11 -0
- package/jsx/grid.d.ts +6 -9
- package/jsx/grid.js +11 -0
- package/jsx/helper.d.ts +34 -0
- package/jsx/helper.js +92 -0
- package/jsx/hstack.d.ts +6 -9
- package/jsx/hstack.js +11 -0
- package/jsx/index.d.ts +25 -25
- package/jsx/index.js +24 -0
- package/jsx/is-valid-prop.d.ts +5 -10
- package/jsx/is-valid-prop.js +12 -0
- package/jsx/link-overlay.d.ts +6 -9
- package/jsx/link-overlay.js +11 -0
- package/jsx/spacer.d.ts +6 -9
- package/jsx/spacer.js +11 -0
- package/jsx/square.d.ts +6 -9
- package/jsx/square.js +11 -0
- package/jsx/stack.d.ts +6 -9
- package/jsx/stack.js +11 -0
- package/jsx/visually-hidden.d.ts +6 -9
- package/jsx/visually-hidden.js +11 -0
- package/jsx/vstack.d.ts +6 -9
- package/jsx/vstack.js +11 -0
- package/jsx/wrap.d.ts +6 -9
- package/jsx/wrap.js +11 -0
- package/package.json +32 -18
- package/patterns/aspect-ratio.d.ts +8 -9
- package/patterns/aspect-ratio.js +37 -0
- package/patterns/bleed.d.ts +9 -10
- package/patterns/bleed.js +30 -0
- package/patterns/box.d.ts +8 -11
- package/patterns/box.js +16 -0
- package/patterns/center.d.ts +8 -9
- package/patterns/center.js +22 -0
- package/patterns/circle.d.ts +8 -9
- package/patterns/circle.js +26 -0
- package/patterns/container.d.ts +8 -11
- package/patterns/container.js +26 -0
- package/patterns/cq.d.ts +10 -10
- package/patterns/cq.js +24 -0
- package/patterns/divider.d.ts +11 -11
- package/patterns/divider.js +31 -0
- package/patterns/flex.d.ts +14 -15
- package/patterns/flex.js +27 -0
- package/patterns/float.d.ts +12 -12
- package/patterns/float.js +78 -0
- package/patterns/grid-item.d.ts +13 -14
- package/patterns/grid-item.js +26 -0
- package/patterns/grid.d.ts +13 -13
- package/patterns/grid.js +30 -0
- package/patterns/hstack.d.ts +9 -10
- package/patterns/hstack.js +27 -0
- package/patterns/index.d.ts +20 -21
- package/patterns/index.js +20 -0
- package/patterns/link-overlay.d.ts +8 -11
- package/patterns/link-overlay.js +25 -0
- package/patterns/runtime.js +25 -0
- package/patterns/spacer.d.ts +9 -9
- package/patterns/spacer.js +25 -0
- package/patterns/square.d.ts +8 -9
- package/patterns/square.js +25 -0
- package/patterns/stack.d.ts +11 -12
- package/patterns/stack.js +30 -0
- package/patterns/visually-hidden.d.ts +8 -11
- package/patterns/visually-hidden.js +19 -0
- package/patterns/vstack.d.ts +9 -10
- package/patterns/vstack.js +27 -0
- package/patterns/wrap.d.ts +12 -13
- package/patterns/wrap.js +26 -0
- package/recipes/accordion.d.ts +10 -26
- package/recipes/accordion.js +5 -0
- package/recipes/action-card.d.ts +9 -26
- package/recipes/action-card.js +5 -0
- package/recipes/alert.d.ts +10 -28
- package/recipes/alert.js +5 -0
- package/recipes/app-navigation-language-select.d.ts +12 -34
- package/recipes/app-navigation-language-select.js +5 -0
- package/recipes/app-navigation.d.ts +10 -28
- package/recipes/app-navigation.js +5 -0
- package/recipes/avatar-group.d.ts +8 -26
- package/recipes/avatar-group.js +5 -0
- package/recipes/avatar.d.ts +11 -30
- package/recipes/avatar.js +5 -0
- package/recipes/breadcrumb.d.ts +9 -24
- package/recipes/breadcrumb.js +5 -0
- package/recipes/button-filter.d.ts +8 -27
- package/recipes/button-filter.js +5 -0
- package/recipes/button.d.ts +10 -37
- package/recipes/button.js +5 -0
- package/recipes/chat-document-message.d.ts +8 -27
- package/recipes/chat-document-message.js +5 -0
- package/recipes/chat-message.d.ts +10 -33
- package/recipes/chat-message.js +5 -0
- package/recipes/chat-profile-avatar.d.ts +9 -29
- package/recipes/chat-profile-avatar.js +5 -0
- package/recipes/chat-text-input.d.ts +8 -27
- package/recipes/chat-text-input.js +5 -0
- package/recipes/chat.d.ts +9 -26
- package/recipes/chat.js +5 -0
- package/recipes/checkbox-card.d.ts +10 -26
- package/recipes/checkbox-card.js +5 -0
- package/recipes/checkbox-group.d.ts +7 -24
- package/recipes/checkbox-group.js +5 -0
- package/recipes/checkbox.d.ts +10 -26
- package/recipes/checkbox.js +5 -0
- package/recipes/chip.d.ts +11 -32
- package/recipes/chip.js +5 -0
- package/recipes/collapsible.d.ts +9 -24
- package/recipes/collapsible.js +5 -0
- package/recipes/combobox.d.ts +11 -27
- package/recipes/combobox.js +5 -0
- package/recipes/datepicker.d.ts +9 -24
- package/recipes/datepicker.js +5 -0
- package/recipes/dialog.d.ts +9 -24
- package/recipes/dialog.js +5 -0
- package/recipes/drawer.d.ts +10 -26
- package/recipes/drawer.js +5 -0
- package/recipes/flag.d.ts +8 -26
- package/recipes/flag.js +5 -0
- package/recipes/form-control.d.ts +8 -27
- package/recipes/form-control.js +5 -0
- package/recipes/form-helper-text.d.ts +8 -27
- package/recipes/form-helper-text.js +5 -0
- package/recipes/form-label.d.ts +10 -28
- package/recipes/form-label.js +5 -0
- package/recipes/heading.d.ts +10 -28
- package/recipes/heading.js +5 -0
- package/recipes/highlighted-input.d.ts +9 -26
- package/recipes/highlighted-input.js +5 -0
- package/recipes/icon-button.d.ts +10 -37
- package/recipes/icon-button.js +5 -0
- package/recipes/icon.d.ts +8 -26
- package/recipes/icon.js +5 -0
- package/recipes/illustration.d.ts +9 -29
- package/recipes/illustration.js +5 -0
- package/recipes/index.d.ts +62 -63
- package/recipes/index.js +62 -0
- package/recipes/input-addon.d.ts +8 -27
- package/recipes/input-addon.js +5 -0
- package/recipes/input-group.d.ts +8 -27
- package/recipes/input-group.js +5 -0
- package/recipes/input.d.ts +9 -29
- package/recipes/input.js +5 -0
- package/recipes/menu.d.ts +10 -26
- package/recipes/menu.js +5 -0
- package/recipes/mobile-navigation.d.ts +10 -28
- package/recipes/mobile-navigation.js +5 -0
- package/recipes/pagination.d.ts +9 -26
- package/recipes/pagination.js +5 -0
- package/recipes/phone-number-input.d.ts +9 -29
- package/recipes/phone-number-input.js +5 -0
- package/recipes/popover.d.ts +9 -24
- package/recipes/popover.js +5 -0
- package/recipes/price-tag.d.ts +10 -26
- package/recipes/price-tag.js +5 -0
- package/recipes/product-card-catalog.d.ts +9 -26
- package/recipes/product-card-catalog.js +5 -0
- package/recipes/radio-button-group.d.ts +10 -26
- package/recipes/radio-button-group.js +5 -0
- package/recipes/radio-card-group.d.ts +10 -26
- package/recipes/radio-card-group.js +5 -0
- package/recipes/radio-group.d.ts +10 -26
- package/recipes/radio-group.js +5 -0
- package/recipes/runtime.js +133 -0
- package/recipes/select-language.d.ts +10 -26
- package/recipes/select-language.js +5 -0
- package/recipes/select.d.ts +11 -27
- package/recipes/select.js +5 -0
- package/recipes/status-tag-select.d.ts +11 -30
- package/recipes/status-tag-select.js +5 -0
- package/recipes/steps.d.ts +9 -24
- package/recipes/steps.js +5 -0
- package/recipes/switch-card.d.ts +10 -26
- package/recipes/switch-card.js +5 -0
- package/recipes/switch-recipe.d.ts +10 -26
- package/recipes/switch-recipe.js +5 -0
- package/recipes/table-container.d.ts +7 -24
- package/recipes/table-container.js +5 -0
- package/recipes/table-empty-row.d.ts +7 -24
- package/recipes/table-empty-row.js +5 -0
- package/recipes/table-group-title.d.ts +8 -26
- package/recipes/table-group-title.js +5 -0
- package/recipes/table.d.ts +9 -24
- package/recipes/table.js +5 -0
- package/recipes/tabs-chip.d.ts +9 -29
- package/recipes/tabs-chip.js +5 -0
- package/recipes/tabs.d.ts +11 -30
- package/recipes/tabs.js +5 -0
- package/recipes/tag.d.ts +11 -32
- package/recipes/tag.js +5 -0
- package/recipes/text.d.ts +12 -30
- package/recipes/text.js +5 -0
- package/recipes/textarea.d.ts +7 -24
- package/recipes/textarea.js +5 -0
- package/recipes/tooltip.d.ts +9 -24
- package/recipes/tooltip.js +5 -0
- package/tokens/index.d.ts +4 -5
- package/tokens/index.js +18 -0
- package/types/index.d.ts +6 -8
- package/types/jsx.d.ts +37 -28
- package/types/pattern.d.ts +18 -70
- package/types/recipe.d.ts +58 -150
- package/types/register.d.ts +40 -0
- package/types/system.d.ts +1816 -0
- package/types/tokens.d.ts +72 -0
- package/css/conditions.mjs +0 -36
- package/css/css.mjs +0 -45
- package/css/cva.mjs +0 -87
- package/css/index.mjs +0 -4
- package/css/sva.mjs +0 -46
- package/helpers.mjs +0 -328
- package/jsx/aspect-ratio.mjs +0 -14
- package/jsx/bleed.mjs +0 -14
- package/jsx/box.mjs +0 -14
- package/jsx/center.mjs +0 -14
- package/jsx/circle.mjs +0 -14
- package/jsx/container.mjs +0 -14
- package/jsx/cq.mjs +0 -14
- package/jsx/create-style-context.d.ts +0 -54
- package/jsx/create-style-context.mjs +0 -118
- package/jsx/divider.mjs +0 -14
- package/jsx/factory-helper.mjs +0 -22
- package/jsx/factory.mjs +0 -89
- package/jsx/flex.mjs +0 -14
- package/jsx/float.mjs +0 -14
- package/jsx/grid-item.mjs +0 -14
- package/jsx/grid.mjs +0 -14
- package/jsx/hstack.mjs +0 -14
- package/jsx/index.mjs +0 -23
- package/jsx/is-valid-prop.mjs +0 -17
- package/jsx/link-overlay.mjs +0 -14
- package/jsx/spacer.mjs +0 -14
- package/jsx/square.mjs +0 -14
- package/jsx/stack.mjs +0 -14
- package/jsx/visually-hidden.mjs +0 -14
- package/jsx/vstack.mjs +0 -14
- package/jsx/wrap.mjs +0 -14
- package/panda.buildinfo.json +0 -471
- package/patterns/aspect-ratio.mjs +0 -38
- package/patterns/bleed.mjs +0 -24
- package/patterns/box.mjs +0 -15
- package/patterns/center.mjs +0 -21
- package/patterns/circle.mjs +0 -25
- package/patterns/container.mjs +0 -21
- package/patterns/cq.mjs +0 -21
- package/patterns/divider.mjs +0 -25
- package/patterns/flex.mjs +0 -26
- package/patterns/float.mjs +0 -52
- package/patterns/grid-item.mjs +0 -25
- package/patterns/grid.mjs +0 -27
- package/patterns/hstack.mjs +0 -24
- package/patterns/index.mjs +0 -20
- package/patterns/link-overlay.mjs +0 -24
- package/patterns/spacer.mjs +0 -25
- package/patterns/square.mjs +0 -24
- package/patterns/stack.mjs +0 -24
- package/patterns/visually-hidden.mjs +0 -18
- package/patterns/vstack.mjs +0 -24
- package/patterns/wrap.mjs +0 -25
- package/recipes/accordion.mjs +0 -57
- package/recipes/action-card.mjs +0 -45
- package/recipes/alert.mjs +0 -57
- package/recipes/app-navigation-language-select.mjs +0 -109
- package/recipes/app-navigation.mjs +0 -84
- package/recipes/avatar-group.mjs +0 -32
- package/recipes/avatar.mjs +0 -57
- package/recipes/breadcrumb.mjs +0 -45
- package/recipes/button-filter.mjs +0 -24
- package/recipes/button.mjs +0 -212
- package/recipes/chat-document-message.mjs +0 -24
- package/recipes/chat-message.mjs +0 -36
- package/recipes/chat-profile-avatar.mjs +0 -31
- package/recipes/chat-text-input.mjs +0 -24
- package/recipes/chat.mjs +0 -45
- package/recipes/checkbox-card.mjs +0 -73
- package/recipes/checkbox-group.mjs +0 -24
- package/recipes/checkbox.mjs +0 -57
- package/recipes/chip.mjs +0 -76
- package/recipes/collapsible.mjs +0 -45
- package/recipes/combobox.mjs +0 -101
- package/recipes/create-recipe.mjs +0 -82
- package/recipes/datepicker.mjs +0 -133
- package/recipes/dialog.mjs +0 -69
- package/recipes/drawer.mjs +0 -78
- package/recipes/flag.mjs +0 -33
- package/recipes/form-control.mjs +0 -24
- package/recipes/form-helper-text.mjs +0 -24
- package/recipes/form-label.mjs +0 -50
- package/recipes/heading.mjs +0 -41
- package/recipes/highlighted-input.mjs +0 -45
- package/recipes/icon-button.mjs +0 -233
- package/recipes/icon.mjs +0 -34
- package/recipes/illustration.mjs +0 -37
- package/recipes/index.mjs +0 -62
- package/recipes/input-addon.mjs +0 -24
- package/recipes/input-group.mjs +0 -24
- package/recipes/input.mjs +0 -30
- package/recipes/menu.mjs +0 -93
- package/recipes/mobile-navigation.mjs +0 -56
- package/recipes/pagination.mjs +0 -41
- package/recipes/phone-number-input.mjs +0 -30
- package/recipes/popover.mjs +0 -69
- package/recipes/price-tag.mjs +0 -51
- package/recipes/product-card-catalog.mjs +0 -73
- package/recipes/radio-button-group.mjs +0 -62
- package/recipes/radio-card-group.mjs +0 -77
- package/recipes/radio-group.mjs +0 -61
- package/recipes/select-language.mjs +0 -98
- package/recipes/select.mjs +0 -101
- package/recipes/status-tag-select.mjs +0 -108
- package/recipes/steps.mjs +0 -69
- package/recipes/switch-card.mjs +0 -69
- package/recipes/switch-recipe.mjs +0 -53
- package/recipes/table-container.mjs +0 -24
- package/recipes/table-empty-row.mjs +0 -24
- package/recipes/table-group-title.mjs +0 -32
- package/recipes/table.mjs +0 -61
- package/recipes/tabs-chip.mjs +0 -35
- package/recipes/tabs.mjs +0 -63
- package/recipes/tag.mjs +0 -61
- package/recipes/text.mjs +0 -41
- package/recipes/textarea.mjs +0 -24
- package/recipes/tooltip.mjs +0 -49
- package/tokens/index.mjs +0 -1728
- package/tokens/tokens.d.ts +0 -63
- package/types/composition.d.ts +0 -227
- package/types/conditions.d.ts +0 -300
- package/types/csstype.d.ts +0 -22570
- package/types/global.d.ts +0 -20
- package/types/parts.d.ts +0 -8
- package/types/prop-type.d.ts +0 -251
- package/types/selectors.d.ts +0 -59
- package/types/static-css.d.ts +0 -56
- package/types/style-props.d.ts +0 -8089
- package/types/system-types.d.ts +0 -151
package/patterns/flex.mjs
DELETED
|
@@ -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
|
package/patterns/float.mjs
DELETED
|
@@ -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
|
package/patterns/grid-item.mjs
DELETED
|
@@ -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
|
package/patterns/grid.mjs
DELETED
|
@@ -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 : "8px" };
|
|
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
|
package/patterns/hstack.mjs
DELETED
|
@@ -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:'8px'}}
|
|
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
|
package/patterns/index.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
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-overlay.mjs';
|
|
11
|
-
export * from './aspect-ratio.mjs';
|
|
12
|
-
export * from './grid.mjs';
|
|
13
|
-
export * from './grid-item.mjs';
|
|
14
|
-
export * from './wrap.mjs';
|
|
15
|
-
export * from './container.mjs';
|
|
16
|
-
export * from './divider.mjs';
|
|
17
|
-
export * from './float.mjs';
|
|
18
|
-
export * from './bleed.mjs';
|
|
19
|
-
export * from './visually-hidden.mjs';
|
|
20
|
-
export * from './cq.mjs';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const linkOverlayConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return {
|
|
7
|
-
_before: {
|
|
8
|
-
content: '""',
|
|
9
|
-
position: "absolute",
|
|
10
|
-
inset: "0",
|
|
11
|
-
zIndex: "0",
|
|
12
|
-
...props["_before"]
|
|
13
|
-
},
|
|
14
|
-
...props
|
|
15
|
-
};
|
|
16
|
-
}}
|
|
17
|
-
|
|
18
|
-
export const getLinkOverlayStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(linkOverlayConfig, styles)
|
|
20
|
-
return linkOverlayConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
|
|
24
|
-
linkOverlay.raw = getLinkOverlayStyle
|
package/patterns/spacer.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const spacerConfig = {
|
|
5
|
-
transform(props, { map, isCssUnit, isCssVar }) {
|
|
6
|
-
const { size, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
alignSelf: "stretch",
|
|
9
|
-
justifySelf: "stretch",
|
|
10
|
-
flex: map(size, (v) => {
|
|
11
|
-
if (v == null) return "1";
|
|
12
|
-
const val = isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
|
|
13
|
-
return `0 0 ${val}`;
|
|
14
|
-
}),
|
|
15
|
-
...rest
|
|
16
|
-
};
|
|
17
|
-
}}
|
|
18
|
-
|
|
19
|
-
export const getSpacerStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(spacerConfig, styles)
|
|
21
|
-
return spacerConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const spacer = (styles) => css(getSpacerStyle(styles))
|
|
25
|
-
spacer.raw = getSpacerStyle
|
package/patterns/square.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } 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 = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(squareConfig, styles)
|
|
20
|
-
return squareConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const square = (styles) => css(getSquareStyle(styles))
|
|
24
|
-
square.raw = getSquareStyle
|
package/patterns/stack.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const stackConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { align, justify, direction, gap, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
flexDirection: direction,
|
|
10
|
-
alignItems: align,
|
|
11
|
-
justifyContent: justify,
|
|
12
|
-
gap,
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{direction:'column',gap:'8px'}}
|
|
17
|
-
|
|
18
|
-
export const getStackStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(stackConfig, styles)
|
|
20
|
-
return stackConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const stack = (styles) => css(getStackStyle(styles))
|
|
24
|
-
stack.raw = getStackStyle
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } 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 = {}) => {
|
|
13
|
-
const _styles = getPatternStyles(visuallyHiddenConfig, styles)
|
|
14
|
-
return visuallyHiddenConfig.transform(_styles, patternFns)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export const visuallyHidden = (styles) => css(getVisuallyHiddenStyle(styles))
|
|
18
|
-
visuallyHidden.raw = getVisuallyHiddenStyle
|
package/patterns/vstack.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const vstackConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { justify, gap, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: justify,
|
|
11
|
-
gap,
|
|
12
|
-
flexDirection: "column",
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{gap:'8px'}}
|
|
17
|
-
|
|
18
|
-
export const getVstackStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(vstackConfig, styles)
|
|
20
|
-
return vstackConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const vstack = (styles) => css(getVstackStyle(styles))
|
|
24
|
-
vstack.raw = getVstackStyle
|
package/patterns/wrap.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } 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 : "8px", 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 = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(wrapConfig, styles)
|
|
21
|
-
return wrapConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const wrap = (styles) => css(getWrapStyle(styles))
|
|
25
|
-
wrap.raw = getWrapStyle
|
package/recipes/accordion.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } 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
|
-
"itemTrigger",
|
|
20
|
-
"accordion__itemTrigger"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"itemContent",
|
|
24
|
-
"accordion__itemContent"
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"itemIndicator",
|
|
28
|
-
"accordion__itemIndicator"
|
|
29
|
-
]
|
|
30
|
-
]
|
|
31
|
-
const accordionSlotFns = /* @__PURE__ */ accordionSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, accordionDefaultVariants, getSlotCompoundVariant(accordionCompoundVariants, slotName))])
|
|
32
|
-
|
|
33
|
-
const accordionFn = memo((props = {}) => {
|
|
34
|
-
return Object.fromEntries(accordionSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const accordionVariantKeys = [
|
|
38
|
-
"size"
|
|
39
|
-
]
|
|
40
|
-
const getVariantProps = (variants) => ({ ...accordionDefaultVariants, ...compact(variants) })
|
|
41
|
-
|
|
42
|
-
export const accordion = /* @__PURE__ */ Object.assign(accordionFn, {
|
|
43
|
-
__recipe__: false,
|
|
44
|
-
__name__: 'accordion',
|
|
45
|
-
raw: (props) => props,
|
|
46
|
-
classNameMap: {},
|
|
47
|
-
variantKeys: accordionVariantKeys,
|
|
48
|
-
variantMap: {
|
|
49
|
-
"size": [
|
|
50
|
-
"md"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
splitVariantProps(props) {
|
|
54
|
-
return splitProps(props, accordionVariantKeys)
|
|
55
|
-
},
|
|
56
|
-
getVariantProps
|
|
57
|
-
})
|
package/recipes/action-card.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const actionCardDefaultVariants = {}
|
|
5
|
-
const actionCardCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const actionCardSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"action-card__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"title",
|
|
14
|
-
"action-card__title"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"description",
|
|
18
|
-
"action-card__description"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"icon",
|
|
22
|
-
"action-card__icon"
|
|
23
|
-
]
|
|
24
|
-
]
|
|
25
|
-
const actionCardSlotFns = /* @__PURE__ */ actionCardSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, actionCardDefaultVariants, getSlotCompoundVariant(actionCardCompoundVariants, slotName))])
|
|
26
|
-
|
|
27
|
-
const actionCardFn = memo((props = {}) => {
|
|
28
|
-
return Object.fromEntries(actionCardSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
const actionCardVariantKeys = []
|
|
32
|
-
const getVariantProps = (variants) => ({ ...actionCardDefaultVariants, ...compact(variants) })
|
|
33
|
-
|
|
34
|
-
export const actionCard = /* @__PURE__ */ Object.assign(actionCardFn, {
|
|
35
|
-
__recipe__: false,
|
|
36
|
-
__name__: 'actionCard',
|
|
37
|
-
raw: (props) => props,
|
|
38
|
-
classNameMap: {},
|
|
39
|
-
variantKeys: actionCardVariantKeys,
|
|
40
|
-
variantMap: {},
|
|
41
|
-
splitVariantProps(props) {
|
|
42
|
-
return splitProps(props, actionCardVariantKeys)
|
|
43
|
-
},
|
|
44
|
-
getVariantProps
|
|
45
|
-
})
|
package/recipes/alert.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const alertDefaultVariants = {
|
|
5
|
-
"severity": "neutral"
|
|
6
|
-
}
|
|
7
|
-
const alertCompoundVariants = []
|
|
8
|
-
|
|
9
|
-
const alertSlotNames = [
|
|
10
|
-
[
|
|
11
|
-
"root",
|
|
12
|
-
"alert__root"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"icon",
|
|
16
|
-
"alert__icon"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"title",
|
|
20
|
-
"alert__title"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"description",
|
|
24
|
-
"alert__description"
|
|
25
|
-
]
|
|
26
|
-
]
|
|
27
|
-
const alertSlotFns = /* @__PURE__ */ alertSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, alertDefaultVariants, getSlotCompoundVariant(alertCompoundVariants, slotName))])
|
|
28
|
-
|
|
29
|
-
const alertFn = memo((props = {}) => {
|
|
30
|
-
return Object.fromEntries(alertSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
const alertVariantKeys = [
|
|
34
|
-
"severity"
|
|
35
|
-
]
|
|
36
|
-
const getVariantProps = (variants) => ({ ...alertDefaultVariants, ...compact(variants) })
|
|
37
|
-
|
|
38
|
-
export const alert = /* @__PURE__ */ Object.assign(alertFn, {
|
|
39
|
-
__recipe__: false,
|
|
40
|
-
__name__: 'alert',
|
|
41
|
-
raw: (props) => props,
|
|
42
|
-
classNameMap: {},
|
|
43
|
-
variantKeys: alertVariantKeys,
|
|
44
|
-
variantMap: {
|
|
45
|
-
"severity": [
|
|
46
|
-
"neutral",
|
|
47
|
-
"info",
|
|
48
|
-
"success",
|
|
49
|
-
"warning",
|
|
50
|
-
"error"
|
|
51
|
-
]
|
|
52
|
-
},
|
|
53
|
-
splitVariantProps(props) {
|
|
54
|
-
return splitProps(props, alertVariantKeys)
|
|
55
|
-
},
|
|
56
|
-
getVariantProps
|
|
57
|
-
})
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const appNavigationLanguageSelectDefaultVariants = {
|
|
5
|
-
"size": "md",
|
|
6
|
-
"variant": "primary",
|
|
7
|
-
"isMiniaturized": false
|
|
8
|
-
}
|
|
9
|
-
const appNavigationLanguageSelectCompoundVariants = []
|
|
10
|
-
|
|
11
|
-
const appNavigationLanguageSelectSlotNames = [
|
|
12
|
-
[
|
|
13
|
-
"label",
|
|
14
|
-
"app-navigation-language-select__label"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"positioner",
|
|
18
|
-
"app-navigation-language-select__positioner"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"trigger",
|
|
22
|
-
"app-navigation-language-select__trigger"
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
"indicator",
|
|
26
|
-
"app-navigation-language-select__indicator"
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
"clearTrigger",
|
|
30
|
-
"app-navigation-language-select__clearTrigger"
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"item",
|
|
34
|
-
"app-navigation-language-select__item"
|
|
35
|
-
],
|
|
36
|
-
[
|
|
37
|
-
"itemText",
|
|
38
|
-
"app-navigation-language-select__itemText"
|
|
39
|
-
],
|
|
40
|
-
[
|
|
41
|
-
"itemIndicator",
|
|
42
|
-
"app-navigation-language-select__itemIndicator"
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
"itemGroup",
|
|
46
|
-
"app-navigation-language-select__itemGroup"
|
|
47
|
-
],
|
|
48
|
-
[
|
|
49
|
-
"itemGroupLabel",
|
|
50
|
-
"app-navigation-language-select__itemGroupLabel"
|
|
51
|
-
],
|
|
52
|
-
[
|
|
53
|
-
"list",
|
|
54
|
-
"app-navigation-language-select__list"
|
|
55
|
-
],
|
|
56
|
-
[
|
|
57
|
-
"content",
|
|
58
|
-
"app-navigation-language-select__content"
|
|
59
|
-
],
|
|
60
|
-
[
|
|
61
|
-
"root",
|
|
62
|
-
"app-navigation-language-select__root"
|
|
63
|
-
],
|
|
64
|
-
[
|
|
65
|
-
"control",
|
|
66
|
-
"app-navigation-language-select__control"
|
|
67
|
-
],
|
|
68
|
-
[
|
|
69
|
-
"valueText",
|
|
70
|
-
"app-navigation-language-select__valueText"
|
|
71
|
-
]
|
|
72
|
-
]
|
|
73
|
-
const appNavigationLanguageSelectSlotFns = /* @__PURE__ */ appNavigationLanguageSelectSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, appNavigationLanguageSelectDefaultVariants, getSlotCompoundVariant(appNavigationLanguageSelectCompoundVariants, slotName))])
|
|
74
|
-
|
|
75
|
-
const appNavigationLanguageSelectFn = memo((props = {}) => {
|
|
76
|
-
return Object.fromEntries(appNavigationLanguageSelectSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
const appNavigationLanguageSelectVariantKeys = [
|
|
80
|
-
"isMiniaturized",
|
|
81
|
-
"size",
|
|
82
|
-
"variant"
|
|
83
|
-
]
|
|
84
|
-
const getVariantProps = (variants) => ({ ...appNavigationLanguageSelectDefaultVariants, ...compact(variants) })
|
|
85
|
-
|
|
86
|
-
export const appNavigationLanguageSelect = /* @__PURE__ */ Object.assign(appNavigationLanguageSelectFn, {
|
|
87
|
-
__recipe__: false,
|
|
88
|
-
__name__: 'appNavigationLanguageSelect',
|
|
89
|
-
raw: (props) => props,
|
|
90
|
-
classNameMap: {},
|
|
91
|
-
variantKeys: appNavigationLanguageSelectVariantKeys,
|
|
92
|
-
variantMap: {
|
|
93
|
-
"isMiniaturized": [
|
|
94
|
-
"true",
|
|
95
|
-
"false"
|
|
96
|
-
],
|
|
97
|
-
"size": [
|
|
98
|
-
"md"
|
|
99
|
-
],
|
|
100
|
-
"variant": [
|
|
101
|
-
"primary",
|
|
102
|
-
"secondary"
|
|
103
|
-
]
|
|
104
|
-
},
|
|
105
|
-
splitVariantProps(props) {
|
|
106
|
-
return splitProps(props, appNavigationLanguageSelectVariantKeys)
|
|
107
|
-
},
|
|
108
|
-
getVariantProps
|
|
109
|
-
})
|