@stokelp/styled-system 1.8.0 → 1.10.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/css.d.ts +15 -2
- package/helpers.mjs +1 -1
- package/jsx/aspect-ratio.mjs +1 -1
- package/jsx/bleed.mjs +1 -1
- package/jsx/box.mjs +1 -1
- package/jsx/center.mjs +1 -1
- package/jsx/circle.mjs +1 -1
- package/jsx/container.mjs +1 -1
- package/jsx/cq.mjs +1 -1
- package/jsx/divider.mjs +1 -1
- package/jsx/flex.mjs +1 -1
- package/jsx/float.mjs +1 -1
- package/jsx/grid-item.mjs +1 -1
- package/jsx/grid.mjs +1 -1
- package/jsx/hstack.mjs +1 -1
- package/jsx/index.d.ts +0 -1
- package/jsx/index.mjs +0 -1
- package/jsx/link-overlay.mjs +1 -1
- package/jsx/spacer.mjs +1 -1
- package/jsx/square.mjs +1 -1
- package/jsx/stack.mjs +1 -1
- package/jsx/visually-hidden.mjs +1 -1
- package/jsx/vstack.mjs +1 -1
- package/jsx/wrap.mjs +1 -1
- package/package.json +2 -2
- package/panda.buildinfo.json +11 -8
- package/patterns/aspect-ratio.mjs +2 -2
- package/patterns/bleed.mjs +2 -2
- package/patterns/box.mjs +2 -2
- package/patterns/center.mjs +2 -2
- package/patterns/circle.mjs +2 -2
- package/patterns/container.mjs +2 -2
- package/patterns/cq.mjs +2 -2
- package/patterns/divider.mjs +2 -2
- package/patterns/flex.mjs +2 -2
- package/patterns/float.mjs +4 -4
- package/patterns/grid-item.mjs +2 -2
- package/patterns/grid.mjs +4 -4
- package/patterns/hstack.mjs +2 -2
- package/patterns/index.d.ts +0 -1
- package/patterns/index.mjs +0 -1
- package/patterns/link-overlay.mjs +3 -6
- package/patterns/spacer.mjs +2 -2
- package/patterns/square.mjs +2 -2
- package/patterns/stack.mjs +2 -2
- package/patterns/visually-hidden.mjs +2 -2
- package/patterns/vstack.mjs +2 -2
- package/patterns/wrap.mjs +2 -2
- package/recipes/accordion.d.ts +4 -1
- package/recipes/button.d.ts +15 -2
- package/recipes/checkbox.d.ts +5 -2
- package/recipes/checkbox.mjs +4 -0
- package/recipes/datepicker.d.ts +28 -0
- package/recipes/datepicker.mjs +124 -0
- package/recipes/drawer.d.ts +4 -1
- package/recipes/form-control.d.ts +5 -1
- package/recipes/form-helper-text.d.ts +5 -1
- package/recipes/form-label.d.ts +9 -2
- package/recipes/heading.d.ts +3 -0
- package/recipes/index.d.ts +1 -0
- package/recipes/index.mjs +1 -0
- package/recipes/input-addon.d.ts +5 -1
- package/recipes/input-group.d.ts +5 -1
- package/recipes/input.d.ts +9 -2
- package/recipes/select.d.ts +5 -2
- package/recipes/select.mjs +4 -0
- package/recipes/switch-recipe.d.ts +4 -1
- package/recipes/tabs.d.ts +4 -1
- package/recipes/tag.d.ts +12 -2
- package/recipes/text.d.ts +3 -0
- package/tokens/tokens.d.ts +0 -3
- package/types/composition.d.ts +39 -12
- package/types/pattern.d.ts +4 -0
- package/types/prop-type.d.ts +3 -2
- package/types/recipe.d.ts +8 -0
- package/types/style-props.d.ts +1 -1
- package/types/system-types.d.ts +2 -3
- package/jsx/link-box.d.ts +0 -10
- package/jsx/link-box.mjs +0 -14
- package/patterns/link-box.d.ts +0 -21
- package/patterns/link-box.mjs +0 -22
package/css/css.d.ts
CHANGED
|
@@ -1,9 +1,22 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { SystemStyleObject } from '../types/index';
|
|
3
3
|
|
|
4
|
+
type Styles = SystemStyleObject | undefined | null | false
|
|
5
|
+
|
|
6
|
+
interface CssRawFunction {
|
|
7
|
+
(styles: Styles): SystemStyleObject
|
|
8
|
+
(styles: Styles[]): SystemStyleObject
|
|
9
|
+
(...styles: Array<Styles | Styles[]>): SystemStyleObject
|
|
10
|
+
(styles: Styles): SystemStyleObject
|
|
11
|
+
}
|
|
12
|
+
|
|
4
13
|
interface CssFunction {
|
|
5
|
-
(
|
|
6
|
-
|
|
14
|
+
(styles: Styles): string
|
|
15
|
+
(styles: Styles[]): string
|
|
16
|
+
(...styles: Array<Styles | Styles[]>): string
|
|
17
|
+
(styles: Styles): string
|
|
18
|
+
|
|
19
|
+
raw: CssRawFunction
|
|
7
20
|
}
|
|
8
21
|
|
|
9
22
|
export declare const css: CssFunction;
|
package/helpers.mjs
CHANGED
|
@@ -180,7 +180,7 @@ function createCss(context) {
|
|
|
180
180
|
});
|
|
181
181
|
}
|
|
182
182
|
function compactStyles(...styles) {
|
|
183
|
-
return styles.filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
|
|
183
|
+
return styles.flat().filter((style) => isObject(style) && Object.keys(compact(style)).length > 0);
|
|
184
184
|
}
|
|
185
185
|
function createMergeCss(context) {
|
|
186
186
|
function resolve(styles) {
|
package/jsx/aspect-ratio.mjs
CHANGED
package/jsx/bleed.mjs
CHANGED
package/jsx/box.mjs
CHANGED
package/jsx/center.mjs
CHANGED
package/jsx/circle.mjs
CHANGED
package/jsx/container.mjs
CHANGED
package/jsx/cq.mjs
CHANGED
package/jsx/divider.mjs
CHANGED
package/jsx/flex.mjs
CHANGED
package/jsx/float.mjs
CHANGED
package/jsx/grid-item.mjs
CHANGED
package/jsx/grid.mjs
CHANGED
package/jsx/hstack.mjs
CHANGED
package/jsx/index.d.ts
CHANGED
package/jsx/index.mjs
CHANGED
|
@@ -9,7 +9,6 @@ export * from './spacer.mjs';
|
|
|
9
9
|
export * from './square.mjs';
|
|
10
10
|
export * from './circle.mjs';
|
|
11
11
|
export * from './center.mjs';
|
|
12
|
-
export * from './link-box.mjs';
|
|
13
12
|
export * from './link-overlay.mjs';
|
|
14
13
|
export * from './aspect-ratio.mjs';
|
|
15
14
|
export * from './grid.mjs';
|
package/jsx/link-overlay.mjs
CHANGED
package/jsx/spacer.mjs
CHANGED
package/jsx/square.mjs
CHANGED
package/jsx/stack.mjs
CHANGED
package/jsx/visually-hidden.mjs
CHANGED
package/jsx/vstack.mjs
CHANGED
package/jsx/wrap.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stokelp/styled-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Stokelp UI styled-system",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"./panda.buildinfo.json": "./panda.buildinfo.json"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@pandacss/dev": "^0.
|
|
59
|
+
"@pandacss/dev": "^0.41.0"
|
|
60
60
|
},
|
|
61
61
|
"release": {
|
|
62
62
|
"monorepo": {
|
package/panda.buildinfo.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion": "0.
|
|
2
|
+
"schemaVersion": "0.41.0",
|
|
3
3
|
"styles": {
|
|
4
4
|
"atomic": [
|
|
5
|
-
"marginLeft]___[value:auto",
|
|
6
5
|
"padding]___[value:space-8",
|
|
7
6
|
"background]___[value:error.500]___[cond:_disabled<___>_hover",
|
|
8
7
|
"background]___[value:error.500]___[cond:_disabled<___>_active",
|
|
@@ -28,6 +27,7 @@
|
|
|
28
27
|
"background]___[value:error.100]___[cond:_hover",
|
|
29
28
|
"color]___[value:error.700]___[cond:_hover",
|
|
30
29
|
"color]___[value:error.700]___[cond:_active",
|
|
30
|
+
"marginLeft]___[value:auto",
|
|
31
31
|
"truncate]___[value:true",
|
|
32
32
|
"width]___[value:20",
|
|
33
33
|
"height]___[value:20",
|
|
@@ -54,10 +54,17 @@
|
|
|
54
54
|
"checkbox": [
|
|
55
55
|
"size]___[value:md]___[recipe:checkbox"
|
|
56
56
|
],
|
|
57
|
+
"inputGroup": [],
|
|
58
|
+
"input": [
|
|
59
|
+
"size]___[value:md]___[recipe:input"
|
|
60
|
+
],
|
|
61
|
+
"inputAddon": [],
|
|
57
62
|
"button": [
|
|
63
|
+
"size]___[value:sm]___[recipe:button",
|
|
64
|
+
"variant]___[value:secondary]___[recipe:button",
|
|
65
|
+
"severity]___[value:none]___[recipe:button",
|
|
58
66
|
"size]___[value:lg]___[recipe:button",
|
|
59
67
|
"variant]___[value:tertiary]___[recipe:button",
|
|
60
|
-
"severity]___[value:none]___[recipe:button",
|
|
61
68
|
"variant]___[value:primary]___[recipe:button"
|
|
62
69
|
],
|
|
63
70
|
"formControl": [],
|
|
@@ -88,14 +95,10 @@
|
|
|
88
95
|
"drawer": [
|
|
89
96
|
"variant]___[value:right]___[recipe:drawer"
|
|
90
97
|
],
|
|
91
|
-
"inputGroup": [],
|
|
92
|
-
"inputAddon": [],
|
|
93
|
-
"input": [
|
|
94
|
-
"size]___[value:md]___[recipe:input"
|
|
95
|
-
],
|
|
96
98
|
"tabs": [
|
|
97
99
|
"variant]___[value:line]___[recipe:tabs"
|
|
98
100
|
],
|
|
101
|
+
"datepicker": [],
|
|
99
102
|
"formHelperText": [],
|
|
100
103
|
"select": [
|
|
101
104
|
"size]___[value:md]___[recipe:select"
|
|
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
|
2
2
|
import { css } from '../css/index.mjs';
|
|
3
3
|
|
|
4
4
|
const aspectRatioConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { ratio = 4 / 3, ...rest } =
|
|
5
|
+
transform(props8, { map }) {
|
|
6
|
+
const { ratio = 4 / 3, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
position: "relative",
|
|
9
9
|
_before: {
|
package/patterns/bleed.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 bleedConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { inline, block, ...rest } =
|
|
5
|
+
transform(props8, { map, isCssUnit, isCssVar }) {
|
|
6
|
+
const { inline, block, ...rest } = props8;
|
|
7
7
|
const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
|
|
8
8
|
return {
|
|
9
9
|
"--bleed-x": map(inline, valueFn),
|
package/patterns/box.mjs
CHANGED
package/patterns/center.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 centerConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { inline, ...rest } =
|
|
5
|
+
transform(props8) {
|
|
6
|
+
const { inline, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: inline ? "inline-flex" : "flex",
|
|
9
9
|
alignItems: "center",
|
package/patterns/circle.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 circleConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { size, ...rest } =
|
|
5
|
+
transform(props8) {
|
|
6
|
+
const { size, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
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(props8) {
|
|
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
|
+
...props8
|
|
12
12
|
};
|
|
13
13
|
}}
|
|
14
14
|
|
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(props8) {
|
|
6
|
+
const { name, type, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
containerType: type,
|
|
9
9
|
containerName: name,
|
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(props8, { map }) {
|
|
6
|
+
const { orientation, thickness, color, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
"--thickness": thickness,
|
|
9
9
|
width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
|
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(props8) {
|
|
6
|
+
const { direction, align, justify, wrap: wrap22, basis, grow, shrink, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: direction,
|
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(props8, { map }) {
|
|
6
|
+
const { offset, offsetX, offsetY, placement, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "inline-flex",
|
|
9
9
|
justifyContent: "center",
|
|
@@ -38,8 +38,8 @@ transform(props7, { map }) {
|
|
|
38
38
|
...rest
|
|
39
39
|
};
|
|
40
40
|
},
|
|
41
|
-
defaultValues(
|
|
42
|
-
const offset =
|
|
41
|
+
defaultValues(props8) {
|
|
42
|
+
const offset = props8.offset || "0";
|
|
43
43
|
return { offset, offsetX: offset, offsetY: offset, placement: "top-end" };
|
|
44
44
|
}}
|
|
45
45
|
|
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(props8, { map }) {
|
|
6
|
+
const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props8;
|
|
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.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(props8, { map, isCssUnit }) {
|
|
6
|
+
const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props8;
|
|
7
7
|
const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
|
|
8
8
|
return {
|
|
9
9
|
display: "grid",
|
|
@@ -14,8 +14,8 @@ transform(props7, { map, isCssUnit }) {
|
|
|
14
14
|
...rest
|
|
15
15
|
};
|
|
16
16
|
},
|
|
17
|
-
defaultValues(
|
|
18
|
-
return { gap:
|
|
17
|
+
defaultValues(props8) {
|
|
18
|
+
return { gap: props8.columnGap || props8.rowGap ? void 0 : "10px" };
|
|
19
19
|
}}
|
|
20
20
|
|
|
21
21
|
export const getGridStyle = (styles = {}) => {
|
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(props8) {
|
|
6
|
+
const { justify, gap, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
package/patterns/index.d.ts
CHANGED
package/patterns/index.mjs
CHANGED
|
@@ -7,7 +7,6 @@ export * from './spacer.mjs';
|
|
|
7
7
|
export * from './square.mjs';
|
|
8
8
|
export * from './circle.mjs';
|
|
9
9
|
export * from './center.mjs';
|
|
10
|
-
export * from './link-box.mjs';
|
|
11
10
|
export * from './link-overlay.mjs';
|
|
12
11
|
export * from './aspect-ratio.mjs';
|
|
13
12
|
export * from './grid.mjs';
|
|
@@ -2,19 +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(props8) {
|
|
6
6
|
return {
|
|
7
|
-
position: "static",
|
|
8
7
|
_before: {
|
|
9
8
|
content: '""',
|
|
10
|
-
display: "block",
|
|
11
9
|
position: "absolute",
|
|
12
|
-
cursor: "inherit",
|
|
13
10
|
inset: "0",
|
|
14
11
|
zIndex: "0",
|
|
15
|
-
...
|
|
12
|
+
...props8["_before"]
|
|
16
13
|
},
|
|
17
|
-
...
|
|
14
|
+
...props8
|
|
18
15
|
};
|
|
19
16
|
}}
|
|
20
17
|
|
package/patterns/spacer.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 spacerConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { size, ...rest } =
|
|
5
|
+
transform(props8, { map }) {
|
|
6
|
+
const { size, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
alignSelf: "stretch",
|
|
9
9
|
justifySelf: "stretch",
|
package/patterns/square.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 squareConfig = {
|
|
5
|
-
transform(
|
|
6
|
-
const { size, ...rest } =
|
|
5
|
+
transform(props8) {
|
|
6
|
+
const { size, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
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(props8) {
|
|
6
|
+
const { align, justify, direction, gap, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexDirection: direction,
|
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(props8) {
|
|
6
|
+
const { justify, gap, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
alignItems: "center",
|
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 : "10px", align, justify, ...rest } =
|
|
5
|
+
transform(props8) {
|
|
6
|
+
const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props8;
|
|
7
7
|
return {
|
|
8
8
|
display: "flex",
|
|
9
9
|
flexWrap: "wrap",
|
package/recipes/accordion.d.ts
CHANGED
package/recipes/button.d.ts
CHANGED
|
@@ -3,8 +3,17 @@ import type { ConditionalValue } from '../types/index';
|
|
|
3
3
|
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
4
|
|
|
5
5
|
interface ButtonVariant {
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "lg"
|
|
8
|
+
*/
|
|
9
|
+
size: "lg" | "md" | "sm"
|
|
10
|
+
/**
|
|
11
|
+
* @default "primary"
|
|
12
|
+
*/
|
|
7
13
|
variant: "primary" | "secondary" | "tertiary"
|
|
14
|
+
/**
|
|
15
|
+
* @default "none"
|
|
16
|
+
*/
|
|
8
17
|
severity: "none" | "danger"
|
|
9
18
|
}
|
|
10
19
|
|
|
@@ -26,5 +35,9 @@ export interface ButtonRecipe {
|
|
|
26
35
|
getVariantProps: (props?: ButtonVariantProps) => ButtonVariantProps
|
|
27
36
|
}
|
|
28
37
|
|
|
29
|
-
/**
|
|
38
|
+
/**
|
|
39
|
+
* The styles for the Button component
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
*/
|
|
30
43
|
export declare const button: ButtonRecipe
|