@stokelp/styled-system 2.92.0 → 2.94.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.mjs +1 -1
- package/css/css.mjs +1 -1
- package/css/sva.mjs +9 -4
- package/helpers.mjs +12 -20
- package/jsx/create-style-context.d.ts +54 -0
- package/jsx/create-style-context.mjs +98 -0
- package/jsx/factory.mjs +14 -5
- package/jsx/index.d.ts +1 -0
- package/jsx/index.mjs +1 -0
- package/jsx/is-valid-prop.mjs +1 -1
- package/package.json +2 -2
- package/panda.buildinfo.json +18 -17
- package/patterns/aspect-ratio.d.ts +0 -1
- package/patterns/aspect-ratio.mjs +2 -2
- package/patterns/bleed.d.ts +0 -1
- package/patterns/bleed.mjs +3 -3
- package/patterns/box.d.ts +0 -1
- package/patterns/box.mjs +2 -2
- package/patterns/center.d.ts +0 -1
- package/patterns/center.mjs +3 -3
- package/patterns/circle.d.ts +0 -1
- package/patterns/circle.mjs +4 -4
- package/patterns/container.d.ts +0 -1
- package/patterns/container.mjs +2 -2
- package/patterns/cq.d.ts +0 -1
- package/patterns/cq.mjs +2 -2
- package/patterns/divider.d.ts +0 -1
- package/patterns/divider.mjs +2 -2
- package/patterns/flex.d.ts +0 -1
- package/patterns/flex.mjs +2 -2
- package/patterns/float.d.ts +0 -1
- package/patterns/float.mjs +5 -5
- package/patterns/grid-item.d.ts +0 -1
- package/patterns/grid-item.mjs +2 -2
- package/patterns/grid.d.ts +0 -1
- package/patterns/grid.mjs +4 -4
- package/patterns/hstack.d.ts +0 -1
- package/patterns/hstack.mjs +3 -3
- package/patterns/link-overlay.d.ts +0 -1
- package/patterns/link-overlay.mjs +3 -3
- package/patterns/spacer.d.ts +0 -1
- package/patterns/spacer.mjs +3 -3
- package/patterns/square.d.ts +0 -1
- package/patterns/square.mjs +4 -4
- package/patterns/stack.d.ts +0 -1
- package/patterns/stack.mjs +3 -3
- package/patterns/visually-hidden.d.ts +0 -1
- package/patterns/visually-hidden.mjs +2 -2
- package/patterns/vstack.d.ts +0 -1
- package/patterns/vstack.mjs +3 -3
- package/patterns/wrap.d.ts +0 -1
- package/patterns/wrap.mjs +2 -2
- package/recipes/accordion.d.ts +4 -1
- package/recipes/accordion.mjs +1 -0
- package/recipes/action-card.d.ts +4 -3
- package/recipes/action-card.mjs +1 -0
- package/recipes/alert.d.ts +4 -3
- package/recipes/alert.mjs +1 -0
- package/recipes/app-navigation-language-select.d.ts +4 -1
- package/recipes/app-navigation-language-select.mjs +1 -0
- package/recipes/app-navigation.d.ts +4 -3
- package/recipes/app-navigation.mjs +1 -0
- package/recipes/avatar-group.d.ts +3 -0
- package/recipes/avatar.d.ts +4 -1
- package/recipes/avatar.mjs +1 -0
- package/recipes/breadcrumb.d.ts +4 -1
- package/recipes/breadcrumb.mjs +1 -0
- package/recipes/button-filter.d.ts +3 -2
- package/recipes/button.d.ts +3 -2
- package/recipes/chat-document-message.d.ts +3 -2
- package/recipes/chat-message.d.ts +3 -2
- package/recipes/chat-profile-avatar.d.ts +3 -2
- package/recipes/chat-text-input.d.ts +3 -2
- package/recipes/chat.d.ts +4 -3
- package/recipes/chat.mjs +1 -0
- package/recipes/checkbox-card.d.ts +4 -1
- package/recipes/checkbox-card.mjs +1 -0
- package/recipes/checkbox-group.d.ts +3 -0
- package/recipes/checkbox.d.ts +4 -1
- package/recipes/checkbox.mjs +1 -0
- package/recipes/chip.d.ts +4 -3
- package/recipes/chip.mjs +1 -0
- package/recipes/collapsible.d.ts +4 -1
- package/recipes/collapsible.mjs +5 -0
- package/recipes/combobox.d.ts +4 -1
- package/recipes/combobox.mjs +5 -0
- package/recipes/datepicker.d.ts +4 -1
- package/recipes/datepicker.mjs +19 -14
- package/recipes/dialog.d.ts +4 -1
- package/recipes/dialog.mjs +1 -0
- package/recipes/drawer.d.ts +4 -1
- package/recipes/drawer.mjs +1 -0
- package/recipes/flag.d.ts +3 -0
- package/recipes/form-control.d.ts +3 -2
- package/recipes/form-helper-text.d.ts +3 -2
- package/recipes/form-label.d.ts +4 -3
- package/recipes/form-label.mjs +1 -0
- package/recipes/heading.d.ts +3 -0
- package/recipes/icon-button.d.ts +3 -2
- package/recipes/icon.d.ts +3 -0
- package/recipes/illustration.d.ts +3 -2
- package/recipes/input-addon.d.ts +3 -2
- package/recipes/input-group.d.ts +3 -2
- package/recipes/input.d.ts +3 -2
- package/recipes/menu.d.ts +4 -1
- package/recipes/menu.mjs +1 -0
- package/recipes/pagination.d.ts +4 -3
- package/recipes/pagination.mjs +1 -0
- package/recipes/phone-number-input.d.ts +3 -2
- package/recipes/popover.d.ts +4 -1
- package/recipes/popover.mjs +1 -0
- package/recipes/price-tag.d.ts +4 -1
- package/recipes/price-tag.mjs +1 -0
- package/recipes/product-card-catalog.d.ts +4 -3
- package/recipes/product-card-catalog.mjs +1 -0
- package/recipes/radio-button-group.d.ts +4 -1
- package/recipes/radio-button-group.mjs +1 -0
- package/recipes/radio-card-group.d.ts +4 -1
- package/recipes/radio-card-group.mjs +1 -0
- package/recipes/radio-group.d.ts +4 -1
- package/recipes/radio-group.mjs +1 -0
- package/recipes/select-language.d.ts +4 -1
- package/recipes/select-language.mjs +1 -0
- package/recipes/select.d.ts +4 -1
- package/recipes/select.mjs +1 -0
- package/recipes/status-tag-select.d.ts +4 -1
- package/recipes/status-tag-select.mjs +1 -0
- package/recipes/switch-card.d.ts +4 -1
- package/recipes/switch-card.mjs +1 -0
- package/recipes/switch-recipe.d.ts +4 -1
- package/recipes/switch-recipe.mjs +1 -0
- package/recipes/table-container.d.ts +3 -0
- package/recipes/table-empty-row.d.ts +3 -0
- package/recipes/table-group-title.d.ts +3 -0
- package/recipes/table.d.ts +4 -1
- package/recipes/table.mjs +1 -0
- package/recipes/tabs-chip.d.ts +3 -2
- package/recipes/tabs.d.ts +4 -1
- package/recipes/tabs.mjs +1 -0
- package/recipes/tag.d.ts +4 -3
- package/recipes/tag.mjs +1 -0
- package/recipes/text.d.ts +3 -0
- package/recipes/textarea.d.ts +3 -0
- package/recipes/tooltip.d.ts +4 -1
- package/recipes/tooltip.mjs +1 -0
- package/tokens/tokens.d.ts +1 -1
- package/types/composition.d.ts +83 -23
- package/types/conditions.d.ts +11 -7
- package/types/jsx.d.ts +25 -10
- package/types/prop-type.d.ts +10 -2
- package/types/style-props.d.ts +15 -4
- package/types/system-types.d.ts +76 -0
package/patterns/center.d.ts
CHANGED
package/patterns/center.mjs
CHANGED
|
@@ -2,10 +2,10 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const centerConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { inline, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { inline: inline2, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
|
-
display:
|
|
8
|
+
display: inline2 ? "inline-flex" : "flex",
|
|
9
9
|
alignItems: "center",
|
|
10
10
|
justifyContent: "center",
|
|
11
11
|
...rest
|
package/patterns/circle.d.ts
CHANGED
package/patterns/circle.mjs
CHANGED
|
@@ -2,15 +2,15 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const circleConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { size, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { size: size3, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
10
10
|
justifyContent: "center",
|
|
11
11
|
flex: "0 0 auto",
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
12
|
+
width: size3,
|
|
13
|
+
height: size3,
|
|
14
14
|
borderRadius: "9999px",
|
|
15
15
|
...rest
|
|
16
16
|
};
|
package/patterns/container.d.ts
CHANGED
package/patterns/container.mjs
CHANGED
|
@@ -2,13 +2,13 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const containerConfig = {
|
|
5
|
-
transform(
|
|
5
|
+
transform(props15) {
|
|
6
6
|
return {
|
|
7
7
|
position: "relative",
|
|
8
8
|
maxWidth: "8xl",
|
|
9
9
|
mx: "auto",
|
|
10
10
|
px: { base: "4", md: "6", lg: "8" },
|
|
11
|
-
...
|
|
11
|
+
...props15
|
|
12
12
|
};
|
|
13
13
|
}}
|
|
14
14
|
|
package/patterns/cq.d.ts
CHANGED
package/patterns/cq.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const cqConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { name, type, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { name, type, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
containerType: type,
|
|
9
9
|
containerName: name,
|
package/patterns/divider.d.ts
CHANGED
|
@@ -11,7 +11,6 @@ export interface DividerProperties {
|
|
|
11
11
|
color?: ConditionalValue<Tokens["colors"] | Properties["borderColor"]>
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
15
14
|
interface DividerStyles extends DividerProperties, DistributiveOmit<SystemStyleObject, keyof DividerProperties > {}
|
|
16
15
|
|
|
17
16
|
interface DividerPatternFn {
|
package/patterns/divider.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const dividerConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { orientation, thickness, color, ...rest } =
|
|
5
|
+
transform(props15, { map }) {
|
|
6
|
+
const { orientation, thickness, color, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
"--thickness": thickness,
|
|
9
9
|
width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
|
package/patterns/flex.d.ts
CHANGED
package/patterns/flex.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const flexConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { direction, align, justify, wrap: wrap22, basis, grow, shrink, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { direction, align, justify, wrap: wrap22, basis, grow, shrink, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: direction,
|
package/patterns/float.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export interface FloatProperties {
|
|
|
12
12
|
placement?: ConditionalValue<"bottom-end" | "bottom-start" | "top-end" | "top-start" | "bottom-center" | "top-center" | "middle-center" | "middle-end" | "middle-start">
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
|
|
16
15
|
interface FloatStyles extends FloatProperties, DistributiveOmit<SystemStyleObject, keyof FloatProperties > {}
|
|
17
16
|
|
|
18
17
|
interface FloatPatternFn {
|
package/patterns/float.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const floatConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { offset, offsetX, offsetY, placement, ...rest } =
|
|
5
|
+
transform(props15, { map }) {
|
|
6
|
+
const { offset: offset3, offsetX, offsetY, placement, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "inline-flex",
|
|
9
9
|
justifyContent: "center",
|
|
@@ -38,9 +38,9 @@ transform(props14, { map }) {
|
|
|
38
38
|
...rest
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
defaultValues(
|
|
42
|
-
const
|
|
43
|
-
return { offset, offsetX:
|
|
41
|
+
defaultValues(props15) {
|
|
42
|
+
const offset3 = props15.offset || "0";
|
|
43
|
+
return { offset: offset3, offsetX: offset3, offsetY: offset3, placement: "top-end" };
|
|
44
44
|
}}
|
|
45
45
|
|
|
46
46
|
export const getFloatStyle = (styles = {}) => {
|
package/patterns/grid-item.d.ts
CHANGED
package/patterns/grid-item.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const gridItemConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } =
|
|
5
|
+
transform(props15, { map }) {
|
|
6
|
+
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props15;
|
|
7
7
|
const spanFn = (v) => v === "auto" ? v : `span ${v}`;
|
|
8
8
|
return {
|
|
9
9
|
gridColumn: colSpan != null ? map(colSpan, spanFn) : void 0,
|
package/patterns/grid.d.ts
CHANGED
package/patterns/grid.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const gridConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } =
|
|
5
|
+
transform(props15, { map, isCssUnit }) {
|
|
6
|
+
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props15;
|
|
7
7
|
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
8
8
|
return {
|
|
9
9
|
display: "grid",
|
|
@@ -14,8 +14,8 @@ transform(props14, { map, isCssUnit }) {
|
|
|
14
14
|
...rest
|
|
15
15
|
};
|
|
16
16
|
},
|
|
17
|
-
defaultValues(
|
|
18
|
-
return { gap:
|
|
17
|
+
defaultValues(props15) {
|
|
18
|
+
return { gap: props15.columnGap || props15.rowGap ? void 0 : "8px" };
|
|
19
19
|
}}
|
|
20
20
|
|
|
21
21
|
export const getGridStyle = (styles = {}) => {
|
package/patterns/hstack.d.ts
CHANGED
package/patterns/hstack.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const hstackConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { justify, gap, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { justify, gap, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
@@ -13,7 +13,7 @@ transform(props14) {
|
|
|
13
13
|
...rest
|
|
14
14
|
};
|
|
15
15
|
},
|
|
16
|
-
defaultValues:{gap:'
|
|
16
|
+
defaultValues:{gap:'8px'}}
|
|
17
17
|
|
|
18
18
|
export const getHstackStyle = (styles = {}) => {
|
|
19
19
|
const _styles = getPatternStyles(hstackConfig, styles)
|
|
@@ -2,16 +2,16 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const linkOverlayConfig = {
|
|
5
|
-
transform(
|
|
5
|
+
transform(props15) {
|
|
6
6
|
return {
|
|
7
7
|
_before: {
|
|
8
8
|
content: '""',
|
|
9
9
|
position: "absolute",
|
|
10
10
|
inset: "0",
|
|
11
11
|
zIndex: "0",
|
|
12
|
-
...
|
|
12
|
+
...props15["_before"]
|
|
13
13
|
},
|
|
14
|
-
...
|
|
14
|
+
...props15
|
|
15
15
|
};
|
|
16
16
|
}}
|
|
17
17
|
|
package/patterns/spacer.d.ts
CHANGED
package/patterns/spacer.mjs
CHANGED
|
@@ -2,12 +2,12 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const spacerConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { size, ...rest } =
|
|
5
|
+
transform(props15, { map }) {
|
|
6
|
+
const { size: size3, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
alignSelf: "stretch",
|
|
9
9
|
justifySelf: "stretch",
|
|
10
|
-
flex: map(
|
|
10
|
+
flex: map(size3, (v) => v == null ? "1" : `0 0 ${v}`),
|
|
11
11
|
...rest
|
|
12
12
|
};
|
|
13
13
|
}}
|
package/patterns/square.d.ts
CHANGED
package/patterns/square.mjs
CHANGED
|
@@ -2,15 +2,15 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const squareConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { size, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { size: size3, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
10
10
|
justifyContent: "center",
|
|
11
11
|
flex: "0 0 auto",
|
|
12
|
-
width:
|
|
13
|
-
height:
|
|
12
|
+
width: size3,
|
|
13
|
+
height: size3,
|
|
14
14
|
...rest
|
|
15
15
|
};
|
|
16
16
|
}}
|
package/patterns/stack.d.ts
CHANGED
package/patterns/stack.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const stackConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { align, justify, direction, gap, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { align, justify, direction, gap, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: direction,
|
|
@@ -13,7 +13,7 @@ transform(props14) {
|
|
|
13
13
|
...rest
|
|
14
14
|
};
|
|
15
15
|
},
|
|
16
|
-
defaultValues:{direction:'column',gap:'
|
|
16
|
+
defaultValues:{direction:'column',gap:'8px'}}
|
|
17
17
|
|
|
18
18
|
export const getStackStyle = (styles = {}) => {
|
|
19
19
|
const _styles = getPatternStyles(stackConfig, styles)
|
package/patterns/vstack.d.ts
CHANGED
package/patterns/vstack.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const vstackConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { justify, gap, ...rest } =
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { justify, gap, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
|
@@ -13,7 +13,7 @@ transform(props14) {
|
|
|
13
13
|
...rest
|
|
14
14
|
};
|
|
15
15
|
},
|
|
16
|
-
defaultValues:{gap:'
|
|
16
|
+
defaultValues:{gap:'8px'}}
|
|
17
17
|
|
|
18
18
|
export const getVstackStyle = (styles = {}) => {
|
|
19
19
|
const _styles = getPatternStyles(vstackConfig, styles)
|
package/patterns/wrap.d.ts
CHANGED
package/patterns/wrap.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const wrapConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "
|
|
5
|
+
transform(props15) {
|
|
6
|
+
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "8px", align, justify, ...rest } = props15;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexWrap: "wrap",
|
package/recipes/accordion.d.ts
CHANGED
|
@@ -13,13 +13,16 @@ type AccordionVariantMap = {
|
|
|
13
13
|
[key in keyof AccordionVariant]: Array<AccordionVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type AccordionSlot = "root" | "item" | "itemTrigger" | "itemContent" | "itemIndicator"
|
|
17
|
+
|
|
16
18
|
export type AccordionVariantProps = {
|
|
17
19
|
[key in keyof AccordionVariant]?: ConditionalValue<AccordionVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface AccordionRecipe {
|
|
23
|
+
__slot: AccordionSlot
|
|
21
24
|
__type: AccordionVariantProps
|
|
22
|
-
(props?: AccordionVariantProps): Pretty<Record<
|
|
25
|
+
(props?: AccordionVariantProps): Pretty<Record<AccordionSlot, string>>
|
|
23
26
|
raw: (props?: AccordionVariantProps) => AccordionVariantProps
|
|
24
27
|
variantMap: AccordionVariantMap
|
|
25
28
|
variantKeys: Array<keyof AccordionVariant>
|
package/recipes/accordion.mjs
CHANGED
package/recipes/action-card.d.ts
CHANGED
|
@@ -10,13 +10,16 @@ type ActionCardVariantMap = {
|
|
|
10
10
|
[key in keyof ActionCardVariant]: Array<ActionCardVariant[key]>
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
type ActionCardSlot = "root" | "title" | "description" | "icon"
|
|
14
|
+
|
|
13
15
|
export type ActionCardVariantProps = {
|
|
14
16
|
[key in keyof ActionCardVariant]?: ConditionalValue<ActionCardVariant[key]> | undefined
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
export interface ActionCardRecipe {
|
|
20
|
+
__slot: ActionCardSlot
|
|
18
21
|
__type: ActionCardVariantProps
|
|
19
|
-
(props?: ActionCardVariantProps): Pretty<Record<
|
|
22
|
+
(props?: ActionCardVariantProps): Pretty<Record<ActionCardSlot, string>>
|
|
20
23
|
raw: (props?: ActionCardVariantProps) => ActionCardVariantProps
|
|
21
24
|
variantMap: ActionCardVariantMap
|
|
22
25
|
variantKeys: Array<keyof ActionCardVariant>
|
|
@@ -26,7 +29,5 @@ export interface ActionCardRecipe {
|
|
|
26
29
|
|
|
27
30
|
/**
|
|
28
31
|
* The styles for the ActionCard component
|
|
29
|
-
|
|
30
|
-
|
|
31
32
|
*/
|
|
32
33
|
export declare const actionCard: ActionCardRecipe
|
package/recipes/action-card.mjs
CHANGED
package/recipes/alert.d.ts
CHANGED
|
@@ -13,13 +13,16 @@ type AlertVariantMap = {
|
|
|
13
13
|
[key in keyof AlertVariant]: Array<AlertVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type AlertSlot = "root" | "icon" | "title" | "description"
|
|
17
|
+
|
|
16
18
|
export type AlertVariantProps = {
|
|
17
19
|
[key in keyof AlertVariant]?: ConditionalValue<AlertVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface AlertRecipe {
|
|
23
|
+
__slot: AlertSlot
|
|
21
24
|
__type: AlertVariantProps
|
|
22
|
-
(props?: AlertVariantProps): Pretty<Record<
|
|
25
|
+
(props?: AlertVariantProps): Pretty<Record<AlertSlot, string>>
|
|
23
26
|
raw: (props?: AlertVariantProps) => AlertVariantProps
|
|
24
27
|
variantMap: AlertVariantMap
|
|
25
28
|
variantKeys: Array<keyof AlertVariant>
|
|
@@ -29,7 +32,5 @@ export interface AlertRecipe {
|
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
34
|
* The styles for the Alert component
|
|
32
|
-
|
|
33
|
-
|
|
34
35
|
*/
|
|
35
36
|
export declare const alert: AlertRecipe
|
package/recipes/alert.mjs
CHANGED
|
@@ -21,13 +21,16 @@ type AppNavigationLanguageSelectVariantMap = {
|
|
|
21
21
|
[key in keyof AppNavigationLanguageSelectVariant]: Array<AppNavigationLanguageSelectVariant[key]>
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
type AppNavigationLanguageSelectSlot = "label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText"
|
|
25
|
+
|
|
24
26
|
export type AppNavigationLanguageSelectVariantProps = {
|
|
25
27
|
[key in keyof AppNavigationLanguageSelectVariant]?: ConditionalValue<AppNavigationLanguageSelectVariant[key]> | undefined
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
export interface AppNavigationLanguageSelectRecipe {
|
|
31
|
+
__slot: AppNavigationLanguageSelectSlot
|
|
29
32
|
__type: AppNavigationLanguageSelectVariantProps
|
|
30
|
-
(props?: AppNavigationLanguageSelectVariantProps): Pretty<Record<
|
|
33
|
+
(props?: AppNavigationLanguageSelectVariantProps): Pretty<Record<AppNavigationLanguageSelectSlot, string>>
|
|
31
34
|
raw: (props?: AppNavigationLanguageSelectVariantProps) => AppNavigationLanguageSelectVariantProps
|
|
32
35
|
variantMap: AppNavigationLanguageSelectVariantMap
|
|
33
36
|
variantKeys: Array<keyof AppNavigationLanguageSelectVariant>
|
|
@@ -87,6 +87,7 @@ export const appNavigationLanguageSelect = /* @__PURE__ */ Object.assign(appNavi
|
|
|
87
87
|
__recipe__: false,
|
|
88
88
|
__name__: 'appNavigationLanguageSelect',
|
|
89
89
|
raw: (props) => props,
|
|
90
|
+
classNameMap: {},
|
|
90
91
|
variantKeys: appNavigationLanguageSelectVariantKeys,
|
|
91
92
|
variantMap: {
|
|
92
93
|
"isMiniaturized": [
|
|
@@ -13,13 +13,16 @@ type AppNavigationVariantMap = {
|
|
|
13
13
|
[key in keyof AppNavigationVariant]: Array<AppNavigationVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
type AppNavigationSlot = "root" | "header" | "miniaturizeTrigger" | "body" | "item" | "itemLabel" | "itemIcon" | "itemAlpha" | "itemContent" | "itemSubItems" | "footer"
|
|
17
|
+
|
|
16
18
|
export type AppNavigationVariantProps = {
|
|
17
19
|
[key in keyof AppNavigationVariant]?: ConditionalValue<AppNavigationVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface AppNavigationRecipe {
|
|
23
|
+
__slot: AppNavigationSlot
|
|
21
24
|
__type: AppNavigationVariantProps
|
|
22
|
-
(props?: AppNavigationVariantProps): Pretty<Record<
|
|
25
|
+
(props?: AppNavigationVariantProps): Pretty<Record<AppNavigationSlot, string>>
|
|
23
26
|
raw: (props?: AppNavigationVariantProps) => AppNavigationVariantProps
|
|
24
27
|
variantMap: AppNavigationVariantMap
|
|
25
28
|
variantKeys: Array<keyof AppNavigationVariant>
|
|
@@ -29,7 +32,5 @@ export interface AppNavigationRecipe {
|
|
|
29
32
|
|
|
30
33
|
/**
|
|
31
34
|
* The styles for the AppNavigation component
|
|
32
|
-
|
|
33
|
-
|
|
34
35
|
*/
|
|
35
36
|
export declare const appNavigation: AppNavigationRecipe
|
|
@@ -13,11 +13,14 @@ type AvatarGroupVariantMap = {
|
|
|
13
13
|
[key in keyof AvatarGroupVariant]: Array<AvatarGroupVariant[key]>
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
|
|
17
|
+
|
|
16
18
|
export type AvatarGroupVariantProps = {
|
|
17
19
|
[key in keyof AvatarGroupVariant]?: ConditionalValue<AvatarGroupVariant[key]> | undefined
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export interface AvatarGroupRecipe {
|
|
23
|
+
|
|
21
24
|
__type: AvatarGroupVariantProps
|
|
22
25
|
(props?: AvatarGroupVariantProps): string
|
|
23
26
|
raw: (props?: AvatarGroupVariantProps) => AvatarGroupVariantProps
|