@stokelp/styled-system 2.92.0 → 2.93.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stokelp/styled-system",
3
- "version": "2.92.0",
3
+ "version": "2.93.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.53.0"
59
+ "@pandacss/dev": "^1.4.3"
60
60
  },
61
61
  "release": {
62
62
  "monorepo": {
@@ -123,6 +123,13 @@
123
123
  "gap]___[value:20"
124
124
  ],
125
125
  "recipes": {
126
+ "icon": [
127
+ "size]___[value:md]___[recipe:icon",
128
+ "size]___[value:xs]___[recipe:icon",
129
+ "size]___[value:sm]___[recipe:icon",
130
+ "size]___[value:lg]___[recipe:icon",
131
+ "size]___[value:xl]___[recipe:icon"
132
+ ],
126
133
  "iconButton": [
127
134
  "size]___[value:sm]___[recipe:iconButton",
128
135
  "variant]___[value:tertiary]___[recipe:iconButton",
@@ -134,13 +141,6 @@
134
141
  "severity]___[value:danger]___[recipe:iconButton",
135
142
  "severity]___[value:success]___[recipe:iconButton"
136
143
  ],
137
- "icon": [
138
- "size]___[value:md]___[recipe:icon",
139
- "size]___[value:xs]___[recipe:icon",
140
- "size]___[value:sm]___[recipe:icon",
141
- "size]___[value:lg]___[recipe:icon",
142
- "size]___[value:xl]___[recipe:icon"
143
- ],
144
144
  "priceTag": [
145
145
  "size]___[value:md]___[recipe:priceTag",
146
146
  "size]___[value:sm]___[recipe:priceTag",
@@ -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(props14, { map }) {
6
- const { ratio = 4 / 3, ...rest } = props14;
5
+ transform(props15, { map }) {
6
+ const { ratio = 4 / 3, ...rest } = props15;
7
7
  return {
8
8
  position: "relative",
9
9
  _before: {
@@ -2,11 +2,11 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const bleedConfig = {
5
- transform(props14, { map, isCssUnit, isCssVar }) {
6
- const { inline, block, ...rest } = props14;
5
+ transform(props15, { map, isCssUnit, isCssVar }) {
6
+ const { inline: inline2, block, ...rest } = props15;
7
7
  const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
8
8
  return {
9
- "--bleed-x": map(inline, valueFn),
9
+ "--bleed-x": map(inline2, valueFn),
10
10
  "--bleed-y": map(block, valueFn),
11
11
  marginInline: "calc(var(--bleed-x, 0) * -1)",
12
12
  marginBlock: "calc(var(--bleed-y, 0) * -1)",
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(props14) {
6
- return props14;
5
+ transform(props15) {
6
+ return props15;
7
7
  }}
8
8
 
9
9
  export const getBoxStyle = (styles = {}) => {
@@ -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(props14) {
6
- const { inline, ...rest } = props14;
5
+ transform(props15) {
6
+ const { inline: inline2, ...rest } = props15;
7
7
  return {
8
- display: inline ? "inline-flex" : "flex",
8
+ display: inline2 ? "inline-flex" : "flex",
9
9
  alignItems: "center",
10
10
  justifyContent: "center",
11
11
  ...rest
@@ -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(props14) {
6
- const { size, ...rest } = props14;
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: size,
13
- height: size,
12
+ width: size3,
13
+ height: size3,
14
14
  borderRadius: "9999px",
15
15
  ...rest
16
16
  };
@@ -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(props14) {
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
- ...props14
11
+ ...props15
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(props14) {
6
- const { name, type, ...rest } = props14;
5
+ transform(props15) {
6
+ const { name, type, ...rest } = props15;
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(props14, { map }) {
6
- const { orientation, thickness, color, ...rest } = props14;
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.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(props14) {
6
- const { direction, align, justify, wrap: wrap22, basis, grow, shrink, ...rest } = props14;
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,
@@ -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(props14, { map }) {
6
- const { offset, offsetX, offsetY, placement, ...rest } = props14;
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(props14) {
42
- const offset = props14.offset || "0";
43
- return { offset, offsetX: offset, offsetY: offset, placement: "top-end" };
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 = {}) => {
@@ -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(props14, { map }) {
6
- const { colSpan, rowSpan, colStart, rowStart, colEnd, rowEnd, ...rest } = props14;
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.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(props14, { map, isCssUnit }) {
6
- const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props14;
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(props14) {
18
- return { gap: props14.columnGap || props14.rowGap ? void 0 : "10px" };
17
+ defaultValues(props15) {
18
+ return { gap: props15.columnGap || props15.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(props14) {
6
- const { justify, gap, ...rest } = props14;
5
+ transform(props15) {
6
+ const { justify, gap, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
@@ -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(props14) {
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
- ...props14["_before"]
12
+ ...props15["_before"]
13
13
  },
14
- ...props14
14
+ ...props15
15
15
  };
16
16
  }}
17
17
 
@@ -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(props14, { map }) {
6
- const { size, ...rest } = props14;
5
+ transform(props15, { map }) {
6
+ const { size: size3, ...rest } = props15;
7
7
  return {
8
8
  alignSelf: "stretch",
9
9
  justifySelf: "stretch",
10
- flex: map(size, (v) => v == null ? "1" : `0 0 ${v}`),
10
+ flex: map(size3, (v) => v == null ? "1" : `0 0 ${v}`),
11
11
  ...rest
12
12
  };
13
13
  }}
@@ -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(props14) {
6
- const { size, ...rest } = props14;
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: size,
13
- height: size,
12
+ width: size3,
13
+ height: size3,
14
14
  ...rest
15
15
  };
16
16
  }}
@@ -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(props14) {
6
- const { align, justify, direction, gap, ...rest } = props14;
5
+ transform(props15) {
6
+ const { align, justify, direction, gap, ...rest } = props15;
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(props14) {
5
+ transform(props15) {
6
6
  return {
7
7
  srOnly: true,
8
- ...props14
8
+ ...props15
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(props14) {
6
- const { justify, gap, ...rest } = props14;
5
+ transform(props15) {
6
+ const { justify, gap, ...rest } = props15;
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(props14) {
6
- const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props14;
5
+ transform(props15) {
6
+ const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", align, justify, ...rest } = props15;
7
7
  return {
8
8
  display: "flex",
9
9
  flexWrap: "wrap",
@@ -16,7 +16,7 @@ export type CollapsibleVariantProps = {
16
16
 
17
17
  export interface CollapsibleRecipe {
18
18
  __type: CollapsibleVariantProps
19
- (props?: CollapsibleVariantProps): Pretty<Record<"root" | "trigger" | "content", string>>
19
+ (props?: CollapsibleVariantProps): Pretty<Record<"root" | "trigger" | "content" | "indicator", string>>
20
20
  raw: (props?: CollapsibleVariantProps) => CollapsibleVariantProps
21
21
  variantMap: CollapsibleVariantMap
22
22
  variantKeys: Array<keyof CollapsibleVariant>
@@ -16,6 +16,10 @@ const collapsibleSlotNames = [
16
16
  [
17
17
  "content",
18
18
  "collapsible__content"
19
+ ],
20
+ [
21
+ "indicator",
22
+ "collapsible__indicator"
19
23
  ]
20
24
  ]
21
25
  const collapsibleSlotFns = /* @__PURE__ */ collapsibleSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, collapsibleDefaultVariants, getSlotCompoundVariant(collapsibleCompoundVariants, slotName))])
@@ -20,7 +20,7 @@ export type ComboboxVariantProps = {
20
20
 
21
21
  export interface ComboboxRecipe {
22
22
  __type: ComboboxVariantProps
23
- (props?: ComboboxVariantProps): Pretty<Record<"root" | "clearTrigger" | "content" | "control" | "input" | "item" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "label" | "list" | "positioner" | "trigger", string>>
23
+ (props?: ComboboxVariantProps): Pretty<Record<"root" | "clearTrigger" | "content" | "control" | "input" | "item" | "itemGroup" | "itemGroupLabel" | "itemIndicator" | "itemText" | "label" | "list" | "positioner" | "trigger" | "empty", string>>
24
24
  raw: (props?: ComboboxVariantProps) => ComboboxVariantProps
25
25
  variantMap: ComboboxVariantMap
26
26
  variantKeys: Array<keyof ComboboxVariant>
@@ -62,6 +62,10 @@ const comboboxSlotNames = [
62
62
  [
63
63
  "trigger",
64
64
  "combobox__trigger"
65
+ ],
66
+ [
67
+ "empty",
68
+ "combobox__empty"
65
69
  ]
66
70
  ]
67
71
  const comboboxSlotFns = /* @__PURE__ */ comboboxSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, comboboxDefaultVariants, getSlotCompoundVariant(comboboxCompoundVariants, slotName))])
@@ -16,7 +16,7 @@ export type DatepickerVariantProps = {
16
16
 
17
17
  export interface DatepickerRecipe {
18
18
  __type: DatepickerVariantProps
19
- (props?: DatepickerVariantProps): Pretty<Record<"root" | "label" | "clearTrigger" | "content" | "control" | "input" | "monthSelect" | "nextTrigger" | "positioner" | "prevTrigger" | "rangeText" | "table" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "trigger" | "viewTrigger" | "viewControl" | "yearSelect" | "presetTrigger" | "view", string>>
19
+ (props?: DatepickerVariantProps): Pretty<Record<"clearTrigger" | "content" | "control" | "input" | "label" | "monthSelect" | "nextTrigger" | "positioner" | "presetTrigger" | "prevTrigger" | "rangeText" | "root" | "table" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "trigger" | "view" | "viewControl" | "viewTrigger" | "yearSelect" | "view", string>>
20
20
  raw: (props?: DatepickerVariantProps) => DatepickerVariantProps
21
21
  variantMap: DatepickerVariantMap
22
22
  variantKeys: Array<keyof DatepickerVariant>
@@ -5,14 +5,6 @@ const datepickerDefaultVariants = {}
5
5
  const datepickerCompoundVariants = []
6
6
 
7
7
  const datepickerSlotNames = [
8
- [
9
- "root",
10
- "datepicker__root"
11
- ],
12
- [
13
- "label",
14
- "datepicker__label"
15
- ],
16
8
  [
17
9
  "clearTrigger",
18
10
  "datepicker__clearTrigger"
@@ -29,6 +21,10 @@ const datepickerSlotNames = [
29
21
  "input",
30
22
  "datepicker__input"
31
23
  ],
24
+ [
25
+ "label",
26
+ "datepicker__label"
27
+ ],
32
28
  [
33
29
  "monthSelect",
34
30
  "datepicker__monthSelect"
@@ -41,6 +37,10 @@ const datepickerSlotNames = [
41
37
  "positioner",
42
38
  "datepicker__positioner"
43
39
  ],
40
+ [
41
+ "presetTrigger",
42
+ "datepicker__presetTrigger"
43
+ ],
44
44
  [
45
45
  "prevTrigger",
46
46
  "datepicker__prevTrigger"
@@ -49,6 +49,10 @@ const datepickerSlotNames = [
49
49
  "rangeText",
50
50
  "datepicker__rangeText"
51
51
  ],
52
+ [
53
+ "root",
54
+ "datepicker__root"
55
+ ],
52
56
  [
53
57
  "table",
54
58
  "datepicker__table"
@@ -82,20 +86,20 @@ const datepickerSlotNames = [
82
86
  "datepicker__trigger"
83
87
  ],
84
88
  [
85
- "viewTrigger",
86
- "datepicker__viewTrigger"
89
+ "view",
90
+ "datepicker__view"
87
91
  ],
88
92
  [
89
93
  "viewControl",
90
94
  "datepicker__viewControl"
91
95
  ],
92
96
  [
93
- "yearSelect",
94
- "datepicker__yearSelect"
97
+ "viewTrigger",
98
+ "datepicker__viewTrigger"
95
99
  ],
96
100
  [
97
- "presetTrigger",
98
- "datepicker__presetTrigger"
101
+ "yearSelect",
102
+ "datepicker__yearSelect"
99
103
  ],
100
104
  [
101
105
  "view",