@stokelp/styled-system 1.7.0 → 1.9.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": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "Stokelp UI styled-system",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -2,7 +2,6 @@
2
2
  "schemaVersion": "0.37.2",
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",
@@ -37,6 +37,10 @@
37
37
  "paddingInline]___[value:space-8",
38
38
  "textAlign]___[value:center",
39
39
  "display]___[value:flex",
40
+ "alignItems]___[value:center",
41
+ "justifyContent]___[value:center",
42
+ "flex]___[value:0 0 auto",
43
+ "borderRadius]___[value:9999px",
40
44
  "alignItems]___[value:flex-start",
41
45
  "gap]___[value:0",
42
46
  "flexDirection]___[value:column",
@@ -44,17 +48,23 @@
44
48
  "gap]___[value:space-16",
45
49
  "borderColor]___[value:primary.100",
46
50
  "marginBlock]___[value:space-24",
47
- "alignItems]___[value:center",
48
51
  "gap]___[value:10px"
49
52
  ],
50
53
  "recipes": {
51
54
  "checkbox": [
52
55
  "size]___[value:md]___[recipe:checkbox"
53
56
  ],
57
+ "inputGroup": [],
58
+ "input": [
59
+ "size]___[value:md]___[recipe:input"
60
+ ],
61
+ "inputAddon": [],
54
62
  "button": [
63
+ "size]___[value:sm]___[recipe:button",
64
+ "variant]___[value:secondary]___[recipe:button",
65
+ "severity]___[value:none]___[recipe:button",
55
66
  "size]___[value:lg]___[recipe:button",
56
67
  "variant]___[value:tertiary]___[recipe:button",
57
- "severity]___[value:none]___[recipe:button",
58
68
  "variant]___[value:primary]___[recipe:button"
59
69
  ],
60
70
  "formControl": [],
@@ -69,6 +79,13 @@
69
79
  "switchRecipe": [
70
80
  "size]___[value:md]___[recipe:switchRecipe"
71
81
  ],
82
+ "tag": [
83
+ "size]___[value:md]___[recipe:tag",
84
+ "severity]___[value:neutral]___[recipe:tag",
85
+ "severity]___[value:success]___[recipe:tag",
86
+ "severity]___[value:warning]___[recipe:tag",
87
+ "severity]___[value:error]___[recipe:tag"
88
+ ],
72
89
  "heading": [
73
90
  "size]___[value:h2]___[recipe:heading"
74
91
  ],
@@ -78,14 +95,10 @@
78
95
  "drawer": [
79
96
  "variant]___[value:right]___[recipe:drawer"
80
97
  ],
81
- "inputGroup": [],
82
- "inputAddon": [],
83
- "input": [
84
- "size]___[value:md]___[recipe:input"
85
- ],
86
98
  "tabs": [
87
99
  "variant]___[value:line]___[recipe:tabs"
88
100
  ],
101
+ "datepicker": [],
89
102
  "formHelperText": [],
90
103
  "select": [
91
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",
@@ -2,14 +2,14 @@ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const linkBoxConfig = {
5
- transform(props7) {
5
+ transform(props8) {
6
6
  return {
7
7
  position: "relative",
8
8
  "& :where(a, abbr)": {
9
9
  position: "relative",
10
10
  zIndex: "1"
11
11
  },
12
- ...props7
12
+ ...props8
13
13
  };
14
14
  }}
15
15
 
@@ -2,7 +2,7 @@ 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
7
  position: "static",
8
8
  _before: {
@@ -12,9 +12,9 @@ transform(props7) {
12
12
  cursor: "inherit",
13
13
  inset: "0",
14
14
  zIndex: "0",
15
- ...props7["_before"]
15
+ ...props8["_before"]
16
16
  },
17
- ...props7
17
+ ...props8
18
18
  };
19
19
  }}
20
20
 
@@ -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",
@@ -0,0 +1,28 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface DatepickerVariant {
6
+
7
+ }
8
+
9
+ type DatepickerVariantMap = {
10
+ [key in keyof DatepickerVariant]: Array<DatepickerVariant[key]>
11
+ }
12
+
13
+ export type DatepickerVariantProps = {
14
+ [key in keyof DatepickerVariant]?: ConditionalValue<DatepickerVariant[key]> | undefined
15
+ }
16
+
17
+ export interface DatepickerRecipe {
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>>
20
+ raw: (props?: DatepickerVariantProps) => DatepickerVariantProps
21
+ variantMap: DatepickerVariantMap
22
+ variantKeys: Array<keyof DatepickerVariant>
23
+ splitVariantProps<Props extends DatepickerVariantProps>(props: Props): [DatepickerVariantProps, Pretty<DistributiveOmit<Props, keyof DatepickerVariantProps>>]
24
+ getVariantProps: (props?: DatepickerVariantProps) => DatepickerVariantProps
25
+ }
26
+
27
+
28
+ export declare const datepicker: DatepickerRecipe
@@ -0,0 +1,124 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const datepickerDefaultVariants = {}
5
+ const datepickerCompoundVariants = []
6
+
7
+ const datepickerSlotNames = [
8
+ [
9
+ "root",
10
+ "datepicker__root"
11
+ ],
12
+ [
13
+ "label",
14
+ "datepicker__label"
15
+ ],
16
+ [
17
+ "clearTrigger",
18
+ "datepicker__clearTrigger"
19
+ ],
20
+ [
21
+ "content",
22
+ "datepicker__content"
23
+ ],
24
+ [
25
+ "control",
26
+ "datepicker__control"
27
+ ],
28
+ [
29
+ "input",
30
+ "datepicker__input"
31
+ ],
32
+ [
33
+ "monthSelect",
34
+ "datepicker__monthSelect"
35
+ ],
36
+ [
37
+ "nextTrigger",
38
+ "datepicker__nextTrigger"
39
+ ],
40
+ [
41
+ "positioner",
42
+ "datepicker__positioner"
43
+ ],
44
+ [
45
+ "prevTrigger",
46
+ "datepicker__prevTrigger"
47
+ ],
48
+ [
49
+ "rangeText",
50
+ "datepicker__rangeText"
51
+ ],
52
+ [
53
+ "table",
54
+ "datepicker__table"
55
+ ],
56
+ [
57
+ "tableBody",
58
+ "datepicker__tableBody"
59
+ ],
60
+ [
61
+ "tableCell",
62
+ "datepicker__tableCell"
63
+ ],
64
+ [
65
+ "tableCellTrigger",
66
+ "datepicker__tableCellTrigger"
67
+ ],
68
+ [
69
+ "tableHead",
70
+ "datepicker__tableHead"
71
+ ],
72
+ [
73
+ "tableHeader",
74
+ "datepicker__tableHeader"
75
+ ],
76
+ [
77
+ "tableRow",
78
+ "datepicker__tableRow"
79
+ ],
80
+ [
81
+ "trigger",
82
+ "datepicker__trigger"
83
+ ],
84
+ [
85
+ "viewTrigger",
86
+ "datepicker__viewTrigger"
87
+ ],
88
+ [
89
+ "viewControl",
90
+ "datepicker__viewControl"
91
+ ],
92
+ [
93
+ "yearSelect",
94
+ "datepicker__yearSelect"
95
+ ],
96
+ [
97
+ "presetTrigger",
98
+ "datepicker__presetTrigger"
99
+ ],
100
+ [
101
+ "view",
102
+ "datepicker__view"
103
+ ]
104
+ ]
105
+ const datepickerSlotFns = /* @__PURE__ */ datepickerSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, datepickerDefaultVariants, getSlotCompoundVariant(datepickerCompoundVariants, slotName))])
106
+
107
+ const datepickerFn = memo((props = {}) => {
108
+ return Object.fromEntries(datepickerSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
109
+ })
110
+
111
+ const datepickerVariantKeys = []
112
+ const getVariantProps = (variants) => ({ ...datepickerDefaultVariants, ...compact(variants) })
113
+
114
+ export const datepicker = /* @__PURE__ */ Object.assign(datepickerFn, {
115
+ __recipe__: false,
116
+ __name__: 'datepicker',
117
+ raw: (props) => props,
118
+ variantKeys: datepickerVariantKeys,
119
+ variantMap: {},
120
+ splitVariantProps(props) {
121
+ return splitProps(props, datepickerVariantKeys)
122
+ },
123
+ getVariantProps
124
+ })
@@ -13,5 +13,7 @@ export * from './drawer';
13
13
  export * from './accordion';
14
14
  export * from './form-label';
15
15
  export * from './checkbox';
16
+ export * from './datepicker';
16
17
  export * from './tabs';
18
+ export * from './tag';
17
19
  export * from './select';
package/recipes/index.mjs CHANGED
@@ -12,5 +12,7 @@ export * from './drawer.mjs';
12
12
  export * from './accordion.mjs';
13
13
  export * from './form-label.mjs';
14
14
  export * from './checkbox.mjs';
15
+ export * from './datepicker.mjs';
15
16
  export * from './tabs.mjs';
17
+ export * from './tag.mjs';
16
18
  export * from './select.mjs';
@@ -0,0 +1,29 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface TagVariant {
6
+ size: "lg" | "md" | "sm"
7
+ severity: "success" | "warning" | "error" | "neutral"
8
+ }
9
+
10
+ type TagVariantMap = {
11
+ [key in keyof TagVariant]: Array<TagVariant[key]>
12
+ }
13
+
14
+ export type TagVariantProps = {
15
+ [key in keyof TagVariant]?: ConditionalValue<TagVariant[key]> | undefined
16
+ }
17
+
18
+ export interface TagRecipe {
19
+ __type: TagVariantProps
20
+ (props?: TagVariantProps): Pretty<Record<"root" | "badge", string>>
21
+ raw: (props?: TagVariantProps) => TagVariantProps
22
+ variantMap: TagVariantMap
23
+ variantKeys: Array<keyof TagVariant>
24
+ splitVariantProps<Props extends TagVariantProps>(props: Props): [TagVariantProps, Pretty<DistributiveOmit<Props, keyof TagVariantProps>>]
25
+ getVariantProps: (props?: TagVariantProps) => TagVariantProps
26
+ }
27
+
28
+ /** The styles for the Tag component */
29
+ export declare const tag: TagRecipe
@@ -0,0 +1,54 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
2
+ import { createRecipe } from './create-recipe.mjs';
3
+
4
+ const tagDefaultVariants = {
5
+ "size": "md",
6
+ "severity": "neutral"
7
+ }
8
+ const tagCompoundVariants = []
9
+
10
+ const tagSlotNames = [
11
+ [
12
+ "root",
13
+ "tag__root"
14
+ ],
15
+ [
16
+ "badge",
17
+ "tag__badge"
18
+ ]
19
+ ]
20
+ const tagSlotFns = /* @__PURE__ */ tagSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tagDefaultVariants, getSlotCompoundVariant(tagCompoundVariants, slotName))])
21
+
22
+ const tagFn = memo((props = {}) => {
23
+ return Object.fromEntries(tagSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
24
+ })
25
+
26
+ const tagVariantKeys = [
27
+ "size",
28
+ "severity"
29
+ ]
30
+ const getVariantProps = (variants) => ({ ...tagDefaultVariants, ...compact(variants) })
31
+
32
+ export const tag = /* @__PURE__ */ Object.assign(tagFn, {
33
+ __recipe__: false,
34
+ __name__: 'tag',
35
+ raw: (props) => props,
36
+ variantKeys: tagVariantKeys,
37
+ variantMap: {
38
+ "size": [
39
+ "lg",
40
+ "md",
41
+ "sm"
42
+ ],
43
+ "severity": [
44
+ "success",
45
+ "warning",
46
+ "error",
47
+ "neutral"
48
+ ]
49
+ },
50
+ splitVariantProps(props) {
51
+ return splitProps(props, tagVariantKeys)
52
+ },
53
+ getVariantProps
54
+ })