@stokelp/styled-system 1.9.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 (58) 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 +1 -1
  27. package/patterns/index.d.ts +0 -1
  28. package/patterns/index.mjs +0 -1
  29. package/patterns/link-overlay.mjs +0 -3
  30. package/recipes/accordion.d.ts +4 -1
  31. package/recipes/button.d.ts +15 -2
  32. package/recipes/checkbox.d.ts +5 -2
  33. package/recipes/checkbox.mjs +4 -0
  34. package/recipes/drawer.d.ts +4 -1
  35. package/recipes/form-control.d.ts +5 -1
  36. package/recipes/form-helper-text.d.ts +5 -1
  37. package/recipes/form-label.d.ts +9 -2
  38. package/recipes/heading.d.ts +3 -0
  39. package/recipes/input-addon.d.ts +5 -1
  40. package/recipes/input-group.d.ts +5 -1
  41. package/recipes/input.d.ts +9 -2
  42. package/recipes/select.d.ts +5 -2
  43. package/recipes/select.mjs +4 -0
  44. package/recipes/switch-recipe.d.ts +4 -1
  45. package/recipes/tabs.d.ts +4 -1
  46. package/recipes/tag.d.ts +12 -2
  47. package/recipes/text.d.ts +3 -0
  48. package/tokens/tokens.d.ts +0 -3
  49. package/types/composition.d.ts +39 -12
  50. package/types/pattern.d.ts +4 -0
  51. package/types/prop-type.d.ts +3 -2
  52. package/types/recipe.d.ts +8 -0
  53. package/types/style-props.d.ts +1 -1
  54. package/types/system-types.d.ts +2 -3
  55. package/jsx/link-box.d.ts +0 -10
  56. package/jsx/link-box.mjs +0 -14
  57. package/patterns/link-box.d.ts +0 -21
  58. 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.9.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,5 +1,5 @@
1
1
  {
2
- "schemaVersion": "0.37.2",
2
+ "schemaVersion": "0.41.0",
3
3
  "styles": {
4
4
  "atomic": [
5
5
  "padding]___[value:space-8",
@@ -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';
@@ -4,12 +4,9 @@ import { css } from '../css/index.mjs';
4
4
  const linkOverlayConfig = {
5
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"]
@@ -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
@@ -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 CheckboxVariant {
6
- size: "md"
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md"
7
10
  }
8
11
 
9
12
  type CheckboxVariantMap = {
@@ -16,7 +19,7 @@ export type CheckboxVariantProps = {
16
19
 
17
20
  export interface CheckboxRecipe {
18
21
  __type: CheckboxVariantProps
19
- (props?: CheckboxVariantProps): Pretty<Record<"root" | "label" | "control" | "indicator", string>>
22
+ (props?: CheckboxVariantProps): Pretty<Record<"root" | "label" | "control" | "indicator" | "group", string>>
20
23
  raw: (props?: CheckboxVariantProps) => CheckboxVariantProps
21
24
  variantMap: CheckboxVariantMap
22
25
  variantKeys: Array<keyof CheckboxVariant>
@@ -22,6 +22,10 @@ const checkboxSlotNames = [
22
22
  [
23
23
  "indicator",
24
24
  "checkbox__indicator"
25
+ ],
26
+ [
27
+ "group",
28
+ "checkbox__group"
25
29
  ]
26
30
  ]
27
31
  const checkboxSlotFns = /* @__PURE__ */ checkboxSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, checkboxDefaultVariants, getSlotCompoundVariant(checkboxCompoundVariants, slotName))])
@@ -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 DrawerVariant {
6
- variant: "left" | "right"
6
+ /**
7
+ * @default "right"
8
+ */
9
+ variant: "left" | "right"
7
10
  }
8
11
 
9
12
  type DrawerVariantMap = {
@@ -24,5 +24,9 @@ export interface FormControlRecipe {
24
24
  getVariantProps: (props?: FormControlVariantProps) => FormControlVariantProps
25
25
  }
26
26
 
27
- /** The styles for the FormControl component */
27
+ /**
28
+ * The styles for the FormControl component
29
+
30
+
31
+ */
28
32
  export declare const formControl: FormControlRecipe
@@ -24,5 +24,9 @@ export interface FormHelperTextRecipe {
24
24
  getVariantProps: (props?: FormHelperTextVariantProps) => FormHelperTextVariantProps
25
25
  }
26
26
 
27
- /** The styles for the FormHelperText component */
27
+ /**
28
+ * The styles for the FormHelperText component
29
+
30
+
31
+ */
28
32
  export declare const formHelperText: FormHelperTextRecipe
@@ -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 FormLabelVariant {
6
- variant: "static" | "absolute"
6
+ /**
7
+ * @default "absolute"
8
+ */
9
+ variant: "static" | "absolute"
7
10
  }
8
11
 
9
12
  type FormLabelVariantMap = {
@@ -24,5 +27,9 @@ export interface FormLabelRecipe {
24
27
  getVariantProps: (props?: FormLabelVariantProps) => FormLabelVariantProps
25
28
  }
26
29
 
27
- /** The styles for the FormLabel component */
30
+ /**
31
+ * The styles for the FormLabel component
32
+
33
+
34
+ */
28
35
  export declare const formLabel: FormLabelRecipe
@@ -5,6 +5,9 @@ import type { DistributiveOmit, Pretty } from '../types/system-types';
5
5
  interface HeadingVariant {
6
6
  italic: boolean
7
7
  underline: boolean
8
+ /**
9
+ * @default "h2"
10
+ */
8
11
  size: "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
9
12
  }
10
13
 
@@ -24,5 +24,9 @@ export interface InputAddonRecipe {
24
24
  getVariantProps: (props?: InputAddonVariantProps) => InputAddonVariantProps
25
25
  }
26
26
 
27
- /** The styles for the InputAddon component */
27
+ /**
28
+ * The styles for the InputAddon component
29
+
30
+
31
+ */
28
32
  export declare const inputAddon: InputAddonRecipe
@@ -24,5 +24,9 @@ export interface InputGroupRecipe {
24
24
  getVariantProps: (props?: InputGroupVariantProps) => InputGroupVariantProps
25
25
  }
26
26
 
27
- /** The styles for the InputGroup component */
27
+ /**
28
+ * The styles for the InputGroup component
29
+
30
+
31
+ */
28
32
  export declare const inputGroup: InputGroupRecipe
@@ -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 InputVariant {
6
- size: "md"
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md"
7
10
  }
8
11
 
9
12
  type InputVariantMap = {
@@ -24,5 +27,9 @@ export interface InputRecipe {
24
27
  getVariantProps: (props?: InputVariantProps) => InputVariantProps
25
28
  }
26
29
 
27
- /** The styles for the Input component */
30
+ /**
31
+ * The styles for the Input component
32
+
33
+
34
+ */
28
35
  export declare const input: InputRecipe
@@ -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 SelectVariant {
6
- size: "md"
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md"
7
10
  }
8
11
 
9
12
  type SelectVariantMap = {
@@ -16,7 +19,7 @@ export type SelectVariantProps = {
16
19
 
17
20
  export interface SelectRecipe {
18
21
  __type: SelectVariantProps
19
- (props?: SelectVariantProps): Pretty<Record<"label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "content" | "root" | "control" | "valueText", string>>
22
+ (props?: SelectVariantProps): Pretty<Record<"label" | "positioner" | "trigger" | "indicator" | "clearTrigger" | "item" | "itemText" | "itemIndicator" | "itemGroup" | "itemGroupLabel" | "list" | "content" | "root" | "control" | "valueText", string>>
20
23
  raw: (props?: SelectVariantProps) => SelectVariantProps
21
24
  variantMap: SelectVariantMap
22
25
  variantKeys: Array<keyof SelectVariant>
@@ -47,6 +47,10 @@ const selectSlotNames = [
47
47
  "itemGroupLabel",
48
48
  "select__itemGroupLabel"
49
49
  ],
50
+ [
51
+ "list",
52
+ "select__list"
53
+ ],
50
54
  [
51
55
  "content",
52
56
  "select__content"
@@ -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 SwitchRecipeVariant {
6
- size: "md"
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "md"
7
10
  }
8
11
 
9
12
  type SwitchRecipeVariantMap = {
package/recipes/tabs.d.ts CHANGED
@@ -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 TabsVariant {
6
- variant: "line"
6
+ /**
7
+ * @default "line"
8
+ */
9
+ variant: "line"
7
10
  }
8
11
 
9
12
  type TabsVariantMap = {
package/recipes/tag.d.ts CHANGED
@@ -3,7 +3,13 @@ import type { ConditionalValue } from '../types/index';
3
3
  import type { DistributiveOmit, Pretty } from '../types/system-types';
4
4
 
5
5
  interface TagVariant {
6
- size: "lg" | "md" | "sm"
6
+ /**
7
+ * @default "md"
8
+ */
9
+ size: "lg" | "md" | "sm"
10
+ /**
11
+ * @default "neutral"
12
+ */
7
13
  severity: "success" | "warning" | "error" | "neutral"
8
14
  }
9
15
 
@@ -25,5 +31,9 @@ export interface TagRecipe {
25
31
  getVariantProps: (props?: TagVariantProps) => TagVariantProps
26
32
  }
27
33
 
28
- /** The styles for the Tag component */
34
+ /**
35
+ * The styles for the Tag component
36
+
37
+
38
+ */
29
39
  export declare const tag: TagRecipe
package/recipes/text.d.ts CHANGED
@@ -6,6 +6,9 @@ interface TextVariant {
6
6
  bold: boolean
7
7
  italic: boolean
8
8
  underline: boolean
9
+ /**
10
+ * @default "md"
11
+ */
9
12
  size: "lg" | "md" | "sm"
10
13
  }
11
14
 
@@ -37,8 +37,6 @@ export type ZIndexToken = "banner" | "base" | "docked" | "dropdown" | "hide" | "
37
37
 
38
38
  export type BreakpointToken = "xl" | "lg" | "md" | "sm"
39
39
 
40
- export type AnimationName = "blob" | "bounce" | "fade-in" | "fade-out" | "fadeIn" | "fadeInFromRight" | "fadeInSkew" | "fadeOut" | "fadeOutFromRight" | "fadeOutSkew" | "ping" | "pulse" | "skeleton-pulse" | "slide-in" | "slide-in-left" | "slide-in-modal" | "slide-in-right" | "slide-out" | "slide-out-left" | "slide-out-modal" | "slide-out-right" | "slideInFromBottom" | "slideOutToBottom" | "collapse-in" | "collapse-out" | "spin"
41
-
42
40
  export type Tokens = {
43
41
  animations: AnimationToken
44
42
  aspectRatios: AspectRatioToken
@@ -57,7 +55,6 @@ export type Tokens = {
57
55
  spacing: SpacingToken
58
56
  zIndex: ZIndexToken
59
57
  breakpoints: BreakpointToken
60
- animationName: AnimationName
61
58
  } & { [token: string]: never }
62
59
 
63
60
  export type TokenCategory = "aspectRatios" | "zIndex" | "opacity" | "colors" | "fonts" | "fontSizes" | "fontWeights" | "lineHeights" | "letterSpacings" | "sizes" | "shadows" | "spacing" | "radii" | "borders" | "borderWidths" | "durations" | "easings" | "animations" | "blurs" | "gradients" | "breakpoints" | "assets"
@@ -15,34 +15,61 @@ interface Recursive<T> {
15
15
  * -----------------------------------------------------------------------------*/
16
16
 
17
17
  type TextStyleProperty =
18
+ | 'font'
19
+ | 'fontFamily'
20
+ | 'fontFeatureSettings'
21
+ | 'fontKerning'
22
+ | 'fontLanguageOverride'
23
+ | 'fontOpticalSizing'
24
+ | 'fontPalette'
18
25
  | 'fontSize'
19
26
  | 'fontSizeAdjust'
20
- | 'fontVariationSettings'
21
- | 'fontVariantPosition'
22
- | 'fontVariantCaps'
23
- | 'fontVariantNumeric'
27
+ | 'fontStretch'
28
+ | 'fontStyle'
29
+ | 'fontSynthesis'
30
+ | 'fontVariant'
24
31
  | 'fontVariantAlternates'
32
+ | 'fontVariantCaps'
25
33
  | 'fontVariantLigatures'
26
- | 'fontFamily'
34
+ | 'fontVariantNumeric'
35
+ | 'fontVariantPosition'
36
+ | 'fontVariationSettings'
27
37
  | 'fontWeight'
28
- | 'fontSynthesis'
29
- | 'fontStyle'
30
- | 'fontVariant'
31
- | 'lineHeight'
38
+ | 'hypens'
39
+ | 'hyphenateCharacter'
40
+ | 'hyphenateLimitChars'
32
41
  | 'letterSpacing'
42
+ | 'lineBreak'
43
+ | 'lineHeight'
44
+ | 'quotes'
45
+ | 'overflowWrap'
46
+ | 'textCombineUpright'
33
47
  | 'textDecoration'
34
- | 'textTransform'
35
- | 'textIndent'
36
48
  | 'textDecorationColor'
37
49
  | 'textDecorationLine'
50
+ | 'textDecorationSkipInk'
38
51
  | 'textDecorationStyle'
52
+ | 'textDecorationThickness'
53
+ | 'textEmphasis'
39
54
  | 'textEmphasisColor'
40
55
  | 'textEmphasisPosition'
41
56
  | 'textEmphasisStyle'
42
- | 'hyphenateCharacter'
57
+ | 'textIndent'
58
+ | 'textJustify'
43
59
  | 'textOrientation'
44
60
  | 'textOverflow'
45
61
  | 'textRendering'
62
+ | 'textShadow'
63
+ | 'textTransform'
64
+ | 'textUnderlineOffset'
65
+ | 'textUnderlinePosition'
66
+ | 'textWrap'
67
+ | 'textWrapMode'
68
+ | 'textWrapStyle'
69
+ | 'verticalAlign'
70
+ | 'whiteSpace'
71
+ | 'wordBreak'
72
+ | 'wordSpacing'
46
73
 
47
74
  export type TextStyle = CompositionStyleObject<TextStyleProperty>
48
75
 
@@ -50,6 +50,10 @@ export interface PatternConfig<T extends PatternProperties = PatternProperties>
50
50
  * The css object this pattern will generate.
51
51
  */
52
52
  transform?: (props: InferProps<T>, helpers: PatternHelpers) => SystemStyleObject
53
+ /**
54
+ * Whether the pattern is deprecated.
55
+ */
56
+ deprecated?: boolean | string
53
57
  /**
54
58
  * The jsx element name this pattern will generate.
55
59
  */
@@ -1,5 +1,5 @@
1
1
  /* eslint-disable */
2
- import type { Conditional } from './conditions';
2
+ import type { ConditionalValue } from './conditions';
3
3
  import type { CssProperties } from './system-types';
4
4
  import type { Tokens } from '../tokens/index';
5
5
 
@@ -17,7 +17,7 @@ export interface UtilityValues {
17
17
  insetInlineStart: Tokens["spacing"];
18
18
  right: Tokens["spacing"];
19
19
  bottom: Tokens["spacing"];
20
- float: "left" | "right" | "start" | "end";
20
+ float: "start" | "end" | CssProperties["float"];
21
21
  hideFrom: Tokens["breakpoints"];
22
22
  hideBelow: Tokens["breakpoints"];
23
23
  flexBasis: Tokens["spacing"] | "1/2" | "1/3" | "2/3" | "1/4" | "2/4" | "3/4" | "1/5" | "2/5" | "3/5" | "4/5" | "1/6" | "2/6" | "3/6" | "4/6" | "5/6" | "1/12" | "2/12" | "3/12" | "4/12" | "5/12" | "6/12" | "7/12" | "8/12" | "9/12" | "10/12" | "11/12" | "full";
@@ -146,6 +146,7 @@ export interface UtilityValues {
146
146
  transitionDuration: Tokens["durations"];
147
147
  transition: "all" | "common" | "background" | "colors" | "opacity" | "shadow" | "transform";
148
148
  animation: Tokens["animations"];
149
+ animationName: "blob" | "bounce" | "fade-in" | "fade-out" | "fadeIn" | "fadeInFromRight" | "fadeInSkew" | "fadeOut" | "fadeOutFromRight" | "fadeOutSkew" | "ping" | "pulse" | "skeleton-pulse" | "slide-in" | "slide-in-left" | "slide-in-modal" | "slide-in-right" | "slide-out" | "slide-out-left" | "slide-out-modal" | "slide-out-right" | "slideInFromBottom" | "slideOutToBottom" | "collapse-in" | "collapse-out" | "spin";
149
150
  animationTimingFunction: Tokens["easings"];
150
151
  animationDuration: Tokens["durations"];
151
152
  animationDelay: Tokens["durations"];
package/types/recipe.d.ts CHANGED
@@ -64,6 +64,10 @@ export interface RecipeDefinition<T extends RecipeVariantRecord = RecipeVariantR
64
64
  * The base styles of the recipe.
65
65
  */
66
66
  base?: SystemStyleObject
67
+ /**
68
+ * Whether the recipe is deprecated.
69
+ */
70
+ deprecated?: boolean | string
67
71
  /**
68
72
  * The multi-variant styles of the recipe.
69
73
  */
@@ -141,6 +145,10 @@ export interface SlotRecipeDefinition<
141
145
  * An optional class name that can be used to target slots in the DOM.
142
146
  */
143
147
  className?: string
148
+ /**
149
+ * Whether the recipe is deprecated.
150
+ */
151
+ deprecated?: boolean | string
144
152
  /**
145
153
  * The parts/slots of the recipe.
146
154
  */
@@ -429,7 +429,7 @@ animationIterationCount?: ConditionalValue<CssProperties["animationIterationCoun
429
429
  *
430
430
  * @see https://developer.mozilla.org/docs/Web/CSS/animation-name
431
431
  */
432
- animationName?: ConditionalValue<CssProperties["animationName"] | AnyString>
432
+ animationName?: ConditionalValue<UtilityValues["animationName"] | CssVars | CssProperties["animationName"] | AnyString>
433
433
  /**
434
434
  * The **`animation-play-state`** CSS property sets whether an animation is running or paused.
435
435
  *
@@ -66,11 +66,10 @@ export type CompositionStyleObject<Property extends string> = Nested<FilterStyle
66
66
  * Jsx style props
67
67
  * -----------------------------------------------------------------------------*/
68
68
  interface WithCss {
69
- css?: SystemStyleObject
69
+ css?: SystemStyleObject | SystemStyleObject[]
70
70
  }
71
- type StyleProps = SystemStyleObject & WithCss
72
71
 
73
- export type JsxStyleProps = StyleProps & WithCss
72
+ export type JsxStyleProps = SystemStyleObject & WithCss
74
73
 
75
74
  export interface PatchedHTMLProps {
76
75
  htmlWidth?: string | number
package/jsx/link-box.d.ts DELETED
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
3
- import type { LinkBoxProperties } from '../patterns/link-box';
4
- import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
6
-
7
- export interface LinkBoxProps extends LinkBoxProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof LinkBoxProperties > {}
8
-
9
-
10
- export declare const LinkBox: FunctionComponent<LinkBoxProps>
package/jsx/link-box.mjs DELETED
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
- import { mergeCss } from '../css/css.mjs';
3
- import { splitProps } from '../helpers.mjs';
4
- import { getLinkBoxStyle } from '../patterns/link-box.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const LinkBox = /* @__PURE__ */ forwardRef(function LinkBox(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, [])
9
-
10
- const styleProps = getLinkBoxStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,21 +0,0 @@
1
- /* eslint-disable */
2
- import type { SystemStyleObject, ConditionalValue } from '../types/index';
3
- import type { Properties } from '../types/csstype';
4
- import type { SystemProperties } from '../types/style-props';
5
- import type { DistributiveOmit } from '../types/system-types';
6
- import type { Tokens } from '../tokens/index';
7
-
8
- export interface LinkBoxProperties {
9
-
10
- }
11
-
12
-
13
- interface LinkBoxStyles extends LinkBoxProperties, DistributiveOmit<SystemStyleObject, keyof LinkBoxProperties > {}
14
-
15
- interface LinkBoxPatternFn {
16
- (styles?: LinkBoxStyles): string
17
- raw: (styles?: LinkBoxStyles) => SystemStyleObject
18
- }
19
-
20
-
21
- export declare const linkBox: LinkBoxPatternFn;
@@ -1,22 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.mjs';
2
- import { css } from '../css/index.mjs';
3
-
4
- const linkBoxConfig = {
5
- transform(props8) {
6
- return {
7
- position: "relative",
8
- "& :where(a, abbr)": {
9
- position: "relative",
10
- zIndex: "1"
11
- },
12
- ...props8
13
- };
14
- }}
15
-
16
- export const getLinkBoxStyle = (styles = {}) => {
17
- const _styles = getPatternStyles(linkBoxConfig, styles)
18
- return linkBoxConfig.transform(_styles, patternFns)
19
- }
20
-
21
- export const linkBox = (styles) => css(getLinkBoxStyle(styles))
22
- linkBox.raw = getLinkBoxStyle