@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.
Files changed (81) hide show
  1. package/css/css.d.ts +15 -2
  2. package/helpers.mjs +1 -1
  3. package/jsx/aspect-ratio.mjs +1 -1
  4. package/jsx/bleed.mjs +1 -1
  5. package/jsx/box.mjs +1 -1
  6. package/jsx/center.mjs +1 -1
  7. package/jsx/circle.mjs +1 -1
  8. package/jsx/container.mjs +1 -1
  9. package/jsx/cq.mjs +1 -1
  10. package/jsx/divider.mjs +1 -1
  11. package/jsx/flex.mjs +1 -1
  12. package/jsx/float.mjs +1 -1
  13. package/jsx/grid-item.mjs +1 -1
  14. package/jsx/grid.mjs +1 -1
  15. package/jsx/hstack.mjs +1 -1
  16. package/jsx/index.d.ts +0 -1
  17. package/jsx/index.mjs +0 -1
  18. package/jsx/link-overlay.mjs +1 -1
  19. package/jsx/spacer.mjs +1 -1
  20. package/jsx/square.mjs +1 -1
  21. package/jsx/stack.mjs +1 -1
  22. package/jsx/visually-hidden.mjs +1 -1
  23. package/jsx/vstack.mjs +1 -1
  24. package/jsx/wrap.mjs +1 -1
  25. package/package.json +2 -2
  26. package/panda.buildinfo.json +11 -8
  27. package/patterns/aspect-ratio.mjs +2 -2
  28. package/patterns/bleed.mjs +2 -2
  29. package/patterns/box.mjs +2 -2
  30. package/patterns/center.mjs +2 -2
  31. package/patterns/circle.mjs +2 -2
  32. package/patterns/container.mjs +2 -2
  33. package/patterns/cq.mjs +2 -2
  34. package/patterns/divider.mjs +2 -2
  35. package/patterns/flex.mjs +2 -2
  36. package/patterns/float.mjs +4 -4
  37. package/patterns/grid-item.mjs +2 -2
  38. package/patterns/grid.mjs +4 -4
  39. package/patterns/hstack.mjs +2 -2
  40. package/patterns/index.d.ts +0 -1
  41. package/patterns/index.mjs +0 -1
  42. package/patterns/link-overlay.mjs +3 -6
  43. package/patterns/spacer.mjs +2 -2
  44. package/patterns/square.mjs +2 -2
  45. package/patterns/stack.mjs +2 -2
  46. package/patterns/visually-hidden.mjs +2 -2
  47. package/patterns/vstack.mjs +2 -2
  48. package/patterns/wrap.mjs +2 -2
  49. package/recipes/accordion.d.ts +4 -1
  50. package/recipes/button.d.ts +15 -2
  51. package/recipes/checkbox.d.ts +5 -2
  52. package/recipes/checkbox.mjs +4 -0
  53. package/recipes/datepicker.d.ts +28 -0
  54. package/recipes/datepicker.mjs +124 -0
  55. package/recipes/drawer.d.ts +4 -1
  56. package/recipes/form-control.d.ts +5 -1
  57. package/recipes/form-helper-text.d.ts +5 -1
  58. package/recipes/form-label.d.ts +9 -2
  59. package/recipes/heading.d.ts +3 -0
  60. package/recipes/index.d.ts +1 -0
  61. package/recipes/index.mjs +1 -0
  62. package/recipes/input-addon.d.ts +5 -1
  63. package/recipes/input-group.d.ts +5 -1
  64. package/recipes/input.d.ts +9 -2
  65. package/recipes/select.d.ts +5 -2
  66. package/recipes/select.mjs +4 -0
  67. package/recipes/switch-recipe.d.ts +4 -1
  68. package/recipes/tabs.d.ts +4 -1
  69. package/recipes/tag.d.ts +12 -2
  70. package/recipes/text.d.ts +3 -0
  71. package/tokens/tokens.d.ts +0 -3
  72. package/types/composition.d.ts +39 -12
  73. package/types/pattern.d.ts +4 -0
  74. package/types/prop-type.d.ts +3 -2
  75. package/types/recipe.d.ts +8 -0
  76. package/types/style-props.d.ts +1 -1
  77. package/types/system-types.d.ts +2 -3
  78. package/jsx/link-box.d.ts +0 -10
  79. package/jsx/link-box.mjs +0 -14
  80. package/patterns/link-box.d.ts +0 -21
  81. 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
- (...styles: Array<SystemStyleObject | undefined | null | false>): string
6
- raw: (...styles: Array<SystemStyleObject | undefined | null | false>) => SystemStyleObject
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) {
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getAspectRatioStyle } from '../patterns/aspect-ratio.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/bleed.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getBleedStyle } from '../patterns/bleed.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/box.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getBoxStyle } from '../patterns/box.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/center.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getCenterStyle } from '../patterns/center.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/circle.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getCircleStyle } from '../patterns/circle.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/container.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getContainerStyle } from '../patterns/container.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/cq.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getCqStyle } from '../patterns/cq.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/divider.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getDividerStyle } from '../patterns/divider.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/flex.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getFlexStyle } from '../patterns/flex.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/float.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getFloatStyle } from '../patterns/float.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/grid-item.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getGridItemStyle } from '../patterns/grid-item.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/grid.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getGridStyle } from '../patterns/grid.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/hstack.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getHstackStyle } from '../patterns/hstack.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/index.d.ts CHANGED
@@ -10,7 +10,6 @@ export * from './spacer';
10
10
  export * from './square';
11
11
  export * from './circle';
12
12
  export * from './center';
13
- export * from './link-box';
14
13
  export * from './link-overlay';
15
14
  export * from './aspect-ratio';
16
15
  export * from './grid';
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';
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getLinkOverlayStyle } from '../patterns/link-overlay.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/spacer.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getSpacerStyle } from '../patterns/spacer.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/square.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getSquareStyle } from '../patterns/square.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/stack.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getStackStyle } from '../patterns/stack.mjs';
5
5
  import { styled } from './factory.mjs';
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getVisuallyHiddenStyle } from '../patterns/visually-hidden.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/vstack.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getVstackStyle } from '../patterns/vstack.mjs';
5
5
  import { styled } from './factory.mjs';
package/jsx/wrap.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
2
+
3
3
  import { splitProps } from '../helpers.mjs';
4
4
  import { getWrapStyle } from '../patterns/wrap.mjs';
5
5
  import { styled } from './factory.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokelp/styled-system",
3
- "version": "1.8.0",
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.37.2"
59
+ "@pandacss/dev": "^0.41.0"
60
60
  },
61
61
  "release": {
62
62
  "monorepo": {
@@ -1,8 +1,7 @@
1
1
  {
2
- "schemaVersion": "0.37.2",
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(props7, { map }) {
6
- const { ratio = 4 / 3, ...rest } = props7;
5
+ transform(props8, { map }) {
6
+ const { ratio = 4 / 3, ...rest } = props8;
7
7
  return {
8
8
  position: "relative",
9
9
  _before: {
@@ -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(props7, { map, isCssUnit, isCssVar }) {
6
- const { inline, block, ...rest } = props7;
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
@@ -2,8 +2,8 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const boxConfig = {
5
- transform(props7) {
6
- return props7;
5
+ transform(props8) {
6
+ return props8;
7
7
  }}
8
8
 
9
9
  export const getBoxStyle = (styles = {}) => {
@@ -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(props7) {
6
- const { inline, ...rest } = props7;
5
+ transform(props8) {
6
+ const { inline, ...rest } = props8;
7
7
  return {
8
8
  display: inline ? "inline-flex" : "flex",
9
9
  alignItems: "center",
@@ -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(props7) {
6
- const { size, ...rest } = props7;
5
+ transform(props8) {
6
+ const { size, ...rest } = props8;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
@@ -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(props7) {
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
- ...props7
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(props7) {
6
- const { name, type, ...rest } = props7;
5
+ transform(props8) {
6
+ const { name, type, ...rest } = props8;
7
7
  return {
8
8
  containerType: type,
9
9
  containerName: name,
@@ -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(props7, { map }) {
6
- const { orientation, thickness, color, ...rest } = props7;
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(props7) {
6
- const { direction, align, justify, wrap: wrap22, basis, grow, shrink, ...rest } = props7;
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,
@@ -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(props7, { map }) {
6
- const { offset, offsetX, offsetY, placement, ...rest } = props7;
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(props7) {
42
- const offset = props7.offset || "0";
41
+ defaultValues(props8) {
42
+ const offset = props8.offset || "0";
43
43
  return { offset, offsetX: offset, offsetY: offset, placement: "top-end" };
44
44
  }}
45
45
 
@@ -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(props7, { map }) {
6
- const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props7;
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(props7, { map, isCssUnit }) {
6
- const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props7;
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(props7) {
18
- return { gap: props7.columnGap || props7.rowGap ? void 0 : "10px" };
17
+ defaultValues(props8) {
18
+ return { gap: props8.columnGap || props8.rowGap ? void 0 : "10px" };
19
19
  }}
20
20
 
21
21
  export const getGridStyle = (styles = {}) => {
@@ -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(props7) {
6
- const { justify, gap, ...rest } = props7;
5
+ transform(props8) {
6
+ const { justify, gap, ...rest } = props8;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
@@ -8,7 +8,6 @@ export * from './spacer';
8
8
  export * from './square';
9
9
  export * from './circle';
10
10
  export * from './center';
11
- export * from './link-box';
12
11
  export * from './link-overlay';
13
12
  export * from './aspect-ratio';
14
13
  export * from './grid';
@@ -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(props7) {
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
- ...props7["_before"]
12
+ ...props8["_before"]
16
13
  },
17
- ...props7
14
+ ...props8
18
15
  };
19
16
  }}
20
17
 
@@ -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(props7, { map }) {
6
- const { size, ...rest } = props7;
5
+ transform(props8, { map }) {
6
+ const { size, ...rest } = props8;
7
7
  return {
8
8
  alignSelf: "stretch",
9
9
  justifySelf: "stretch",
@@ -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(props7) {
6
- const { size, ...rest } = props7;
5
+ transform(props8) {
6
+ const { size, ...rest } = props8;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
@@ -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(props7) {
6
- const { align, justify, direction, gap, ...rest } = props7;
5
+ transform(props8) {
6
+ const { align, justify, direction, gap, ...rest } = props8;
7
7
  return {
8
8
  display: "flex",
9
9
  flexDirection: direction,
@@ -2,10 +2,10 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const visuallyHiddenConfig = {
5
- transform(props7) {
5
+ transform(props8) {
6
6
  return {
7
7
  srOnly: true,
8
- ...props7
8
+ ...props8
9
9
  };
10
10
  }}
11
11
 
@@ -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(props7) {
6
- const { justify, gap, ...rest } = props7;
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(props7) {
6
- const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props7;
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",
@@ -3,7 +3,10 @@ import type { ConditionalValue } from '../types/index';
3
3
  import type { DistributiveOmit, Pretty } from '../types/system-types';
4
4
 
5
5
  interface AccordionVariant {
6
- size: "md"
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md"
7
10
  }
8
11
 
9
12
  type AccordionVariantMap = {
@@ -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
- size: "lg" | "md" | "sm"
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
- /** The styles for the Button component */
38
+ /**
39
+ * The styles for the Button component
40
+
41
+
42
+ */
30
43
  export declare const button: ButtonRecipe