@luxonis/depthai-pipeline-lib 1.4.12 → 1.4.14

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 (225) hide show
  1. package/dist/panda.css +670 -809
  2. package/dist/src/components/PipelineCanvas.js +14 -9
  3. package/dist/src/styled-system/css/conditions.mjs +4 -2
  4. package/dist/src/styled-system/css/css.d.mts +15 -2
  5. package/dist/src/styled-system/css/css.mjs +2 -1
  6. package/dist/src/styled-system/css/cva.d.mts +1 -1
  7. package/dist/src/styled-system/css/cva.mjs +28 -4
  8. package/dist/src/styled-system/css/sva.mjs +9 -3
  9. package/dist/src/styled-system/helpers.mjs +109 -64
  10. package/dist/src/styled-system/patterns/aspect-ratio.d.mts +1 -1
  11. package/dist/src/styled-system/patterns/aspect-ratio.mjs +5 -2
  12. package/dist/src/styled-system/patterns/bleed.d.mts +3 -3
  13. package/dist/src/styled-system/patterns/bleed.mjs +12 -7
  14. package/dist/src/styled-system/patterns/box.d.mts +1 -1
  15. package/dist/src/styled-system/patterns/box.mjs +5 -2
  16. package/dist/src/styled-system/patterns/center.d.mts +1 -1
  17. package/dist/src/styled-system/patterns/center.mjs +5 -2
  18. package/dist/src/styled-system/patterns/circle.d.mts +2 -2
  19. package/dist/src/styled-system/patterns/circle.mjs +5 -2
  20. package/dist/src/styled-system/patterns/container.d.mts +1 -1
  21. package/dist/src/styled-system/patterns/container.mjs +5 -2
  22. package/dist/src/styled-system/patterns/cq.d.mts +22 -0
  23. package/dist/src/styled-system/patterns/cq.mjs +21 -0
  24. package/dist/src/styled-system/patterns/divider.d.mts +1 -1
  25. package/dist/src/styled-system/patterns/divider.mjs +8 -4
  26. package/dist/src/styled-system/patterns/flex.d.mts +8 -8
  27. package/dist/src/styled-system/patterns/flex.mjs +5 -2
  28. package/dist/src/styled-system/patterns/float.d.mts +1 -1
  29. package/dist/src/styled-system/patterns/float.mjs +10 -3
  30. package/dist/src/styled-system/patterns/grid-item.d.mts +1 -1
  31. package/dist/src/styled-system/patterns/grid-item.mjs +5 -2
  32. package/dist/src/styled-system/patterns/grid.d.mts +4 -4
  33. package/dist/src/styled-system/patterns/grid.mjs +12 -5
  34. package/dist/src/styled-system/patterns/hstack.d.mts +3 -3
  35. package/dist/src/styled-system/patterns/hstack.mjs +8 -4
  36. package/dist/src/styled-system/patterns/index.d.mts +2 -2
  37. package/dist/src/styled-system/patterns/index.mjs +2 -2
  38. package/dist/src/styled-system/patterns/link-overlay.d.mts +1 -1
  39. package/dist/src/styled-system/patterns/link-overlay.mjs +5 -5
  40. package/dist/src/styled-system/patterns/spacer.d.mts +1 -1
  41. package/dist/src/styled-system/patterns/spacer.mjs +5 -2
  42. package/dist/src/styled-system/patterns/square.d.mts +2 -2
  43. package/dist/src/styled-system/patterns/square.mjs +5 -2
  44. package/dist/src/styled-system/patterns/stack.d.mts +5 -5
  45. package/dist/src/styled-system/patterns/stack.mjs +8 -4
  46. package/dist/src/styled-system/patterns/visually-hidden.d.mts +1 -1
  47. package/dist/src/styled-system/patterns/visually-hidden.mjs +5 -2
  48. package/dist/src/styled-system/patterns/vstack.d.mts +3 -3
  49. package/dist/src/styled-system/patterns/vstack.mjs +8 -4
  50. package/dist/src/styled-system/patterns/wrap.d.mts +6 -6
  51. package/dist/src/styled-system/patterns/wrap.mjs +5 -2
  52. package/dist/src/styled-system/recipes/accordion.d.mts +8 -4
  53. package/dist/src/styled-system/recipes/accordion.mjs +6 -4
  54. package/dist/src/styled-system/recipes/alert-description.d.mts +8 -4
  55. package/dist/src/styled-system/recipes/alert-description.mjs +8 -3
  56. package/dist/src/styled-system/recipes/alert-dialog.d.mts +8 -4
  57. package/dist/src/styled-system/recipes/alert-dialog.mjs +6 -4
  58. package/dist/src/styled-system/recipes/alert-title.d.mts +8 -4
  59. package/dist/src/styled-system/recipes/alert-title.mjs +8 -3
  60. package/dist/src/styled-system/recipes/alert.d.mts +12 -5
  61. package/dist/src/styled-system/recipes/alert.mjs +8 -3
  62. package/dist/src/styled-system/recipes/avatar.d.mts +8 -4
  63. package/dist/src/styled-system/recipes/avatar.mjs +6 -4
  64. package/dist/src/styled-system/recipes/badge.d.mts +12 -5
  65. package/dist/src/styled-system/recipes/badge.mjs +8 -3
  66. package/dist/src/styled-system/recipes/blockquote.d.mts +8 -4
  67. package/dist/src/styled-system/recipes/blockquote.mjs +8 -3
  68. package/dist/src/styled-system/recipes/button.d.mts +15 -5
  69. package/dist/src/styled-system/recipes/button.mjs +8 -3
  70. package/dist/src/styled-system/recipes/calendar.d.mts +8 -4
  71. package/dist/src/styled-system/recipes/calendar.mjs +6 -4
  72. package/dist/src/styled-system/recipes/card-content.d.mts +8 -4
  73. package/dist/src/styled-system/recipes/card-content.mjs +8 -3
  74. package/dist/src/styled-system/recipes/card-description.d.mts +8 -4
  75. package/dist/src/styled-system/recipes/card-description.mjs +8 -3
  76. package/dist/src/styled-system/recipes/card-footer.d.mts +8 -4
  77. package/dist/src/styled-system/recipes/card-footer.mjs +8 -3
  78. package/dist/src/styled-system/recipes/card-header.d.mts +8 -4
  79. package/dist/src/styled-system/recipes/card-header.mjs +8 -3
  80. package/dist/src/styled-system/recipes/card-title.d.mts +8 -4
  81. package/dist/src/styled-system/recipes/card-title.mjs +8 -3
  82. package/dist/src/styled-system/recipes/card.d.mts +8 -4
  83. package/dist/src/styled-system/recipes/card.mjs +8 -3
  84. package/dist/src/styled-system/recipes/checkbox.d.mts +8 -4
  85. package/dist/src/styled-system/recipes/checkbox.mjs +6 -4
  86. package/dist/src/styled-system/recipes/collapsible.d.mts +8 -4
  87. package/dist/src/styled-system/recipes/collapsible.mjs +6 -4
  88. package/dist/src/styled-system/recipes/command-dialog.d.mts +8 -4
  89. package/dist/src/styled-system/recipes/command-dialog.mjs +6 -4
  90. package/dist/src/styled-system/recipes/command.d.mts +8 -4
  91. package/dist/src/styled-system/recipes/command.mjs +6 -4
  92. package/dist/src/styled-system/recipes/context-menu.d.mts +12 -5
  93. package/dist/src/styled-system/recipes/context-menu.mjs +6 -4
  94. package/dist/src/styled-system/recipes/create-recipe.mjs +39 -7
  95. package/dist/src/styled-system/recipes/dialog.d.mts +8 -4
  96. package/dist/src/styled-system/recipes/dialog.mjs +6 -4
  97. package/dist/src/styled-system/recipes/dropdown-menu.d.mts +8 -4
  98. package/dist/src/styled-system/recipes/dropdown-menu.mjs +6 -4
  99. package/dist/src/styled-system/recipes/form-control.d.mts +8 -4
  100. package/dist/src/styled-system/recipes/form-control.mjs +8 -3
  101. package/dist/src/styled-system/recipes/form-description.d.mts +8 -4
  102. package/dist/src/styled-system/recipes/form-description.mjs +8 -3
  103. package/dist/src/styled-system/recipes/form-item.d.mts +8 -4
  104. package/dist/src/styled-system/recipes/form-item.mjs +8 -3
  105. package/dist/src/styled-system/recipes/form-label.d.mts +8 -4
  106. package/dist/src/styled-system/recipes/form-label.mjs +8 -3
  107. package/dist/src/styled-system/recipes/form-message.d.mts +8 -4
  108. package/dist/src/styled-system/recipes/form-message.mjs +8 -3
  109. package/dist/src/styled-system/recipes/h1.d.mts +8 -4
  110. package/dist/src/styled-system/recipes/h1.mjs +8 -3
  111. package/dist/src/styled-system/recipes/h2.d.mts +8 -4
  112. package/dist/src/styled-system/recipes/h2.mjs +8 -3
  113. package/dist/src/styled-system/recipes/h3.d.mts +8 -4
  114. package/dist/src/styled-system/recipes/h3.mjs +8 -3
  115. package/dist/src/styled-system/recipes/h4.d.mts +8 -4
  116. package/dist/src/styled-system/recipes/h4.mjs +8 -3
  117. package/dist/src/styled-system/recipes/hover-card.d.mts +8 -4
  118. package/dist/src/styled-system/recipes/hover-card.mjs +6 -4
  119. package/dist/src/styled-system/recipes/icon.d.mts +24 -5
  120. package/dist/src/styled-system/recipes/icon.mjs +8 -3
  121. package/dist/src/styled-system/recipes/inline-code.d.mts +8 -4
  122. package/dist/src/styled-system/recipes/inline-code.mjs +8 -3
  123. package/dist/src/styled-system/recipes/input.d.mts +8 -4
  124. package/dist/src/styled-system/recipes/input.mjs +8 -3
  125. package/dist/src/styled-system/recipes/label.d.mts +8 -4
  126. package/dist/src/styled-system/recipes/label.mjs +8 -3
  127. package/dist/src/styled-system/recipes/large.d.mts +8 -4
  128. package/dist/src/styled-system/recipes/large.mjs +8 -3
  129. package/dist/src/styled-system/recipes/lead.d.mts +8 -4
  130. package/dist/src/styled-system/recipes/lead.mjs +8 -3
  131. package/dist/src/styled-system/recipes/link.d.mts +8 -4
  132. package/dist/src/styled-system/recipes/link.mjs +8 -3
  133. package/dist/src/styled-system/recipes/list.d.mts +8 -4
  134. package/dist/src/styled-system/recipes/list.mjs +8 -3
  135. package/dist/src/styled-system/recipes/menubar.d.mts +8 -4
  136. package/dist/src/styled-system/recipes/menubar.mjs +6 -4
  137. package/dist/src/styled-system/recipes/muted.d.mts +8 -4
  138. package/dist/src/styled-system/recipes/muted.mjs +8 -3
  139. package/dist/src/styled-system/recipes/navigation-menu.d.mts +8 -4
  140. package/dist/src/styled-system/recipes/navigation-menu.mjs +6 -4
  141. package/dist/src/styled-system/recipes/p.d.mts +8 -4
  142. package/dist/src/styled-system/recipes/p.mjs +8 -3
  143. package/dist/src/styled-system/recipes/popover.d.mts +8 -4
  144. package/dist/src/styled-system/recipes/popover.mjs +6 -4
  145. package/dist/src/styled-system/recipes/progress.d.mts +8 -4
  146. package/dist/src/styled-system/recipes/progress.mjs +6 -4
  147. package/dist/src/styled-system/recipes/radio-group.d.mts +8 -4
  148. package/dist/src/styled-system/recipes/radio-group.mjs +6 -4
  149. package/dist/src/styled-system/recipes/scroll-area.d.mts +8 -4
  150. package/dist/src/styled-system/recipes/scroll-area.mjs +6 -4
  151. package/dist/src/styled-system/recipes/select.d.mts +8 -4
  152. package/dist/src/styled-system/recipes/select.mjs +6 -4
  153. package/dist/src/styled-system/recipes/separator.d.mts +12 -5
  154. package/dist/src/styled-system/recipes/separator.mjs +8 -3
  155. package/dist/src/styled-system/recipes/sheet.d.mts +12 -5
  156. package/dist/src/styled-system/recipes/sheet.mjs +6 -4
  157. package/dist/src/styled-system/recipes/skeleton.d.mts +8 -4
  158. package/dist/src/styled-system/recipes/skeleton.mjs +8 -3
  159. package/dist/src/styled-system/recipes/slider.d.mts +8 -4
  160. package/dist/src/styled-system/recipes/slider.mjs +6 -4
  161. package/dist/src/styled-system/recipes/small.d.mts +8 -4
  162. package/dist/src/styled-system/recipes/small.mjs +8 -3
  163. package/dist/src/styled-system/recipes/switch-recipe.d.mts +8 -4
  164. package/dist/src/styled-system/recipes/switch-recipe.mjs +6 -4
  165. package/dist/src/styled-system/recipes/table-body.d.mts +8 -4
  166. package/dist/src/styled-system/recipes/table-body.mjs +8 -3
  167. package/dist/src/styled-system/recipes/table-caption.d.mts +8 -4
  168. package/dist/src/styled-system/recipes/table-caption.mjs +8 -3
  169. package/dist/src/styled-system/recipes/table-cell.d.mts +8 -4
  170. package/dist/src/styled-system/recipes/table-cell.mjs +8 -3
  171. package/dist/src/styled-system/recipes/table-container.d.mts +8 -4
  172. package/dist/src/styled-system/recipes/table-container.mjs +8 -3
  173. package/dist/src/styled-system/recipes/table-footer.d.mts +8 -4
  174. package/dist/src/styled-system/recipes/table-footer.mjs +8 -3
  175. package/dist/src/styled-system/recipes/table-head.d.mts +8 -4
  176. package/dist/src/styled-system/recipes/table-head.mjs +8 -3
  177. package/dist/src/styled-system/recipes/table-header.d.mts +8 -4
  178. package/dist/src/styled-system/recipes/table-header.mjs +8 -3
  179. package/dist/src/styled-system/recipes/table-row.d.mts +8 -4
  180. package/dist/src/styled-system/recipes/table-row.mjs +8 -3
  181. package/dist/src/styled-system/recipes/table.d.mts +8 -4
  182. package/dist/src/styled-system/recipes/table.mjs +8 -3
  183. package/dist/src/styled-system/recipes/tabs.d.mts +8 -4
  184. package/dist/src/styled-system/recipes/tabs.mjs +6 -4
  185. package/dist/src/styled-system/recipes/textarea.d.mts +8 -4
  186. package/dist/src/styled-system/recipes/textarea.mjs +8 -3
  187. package/dist/src/styled-system/recipes/toast-viewport.d.mts +8 -4
  188. package/dist/src/styled-system/recipes/toast-viewport.mjs +8 -3
  189. package/dist/src/styled-system/recipes/toast.d.mts +12 -5
  190. package/dist/src/styled-system/recipes/toast.mjs +6 -4
  191. package/dist/src/styled-system/recipes/toggle.d.mts +15 -5
  192. package/dist/src/styled-system/recipes/toggle.mjs +8 -3
  193. package/dist/src/styled-system/recipes/tooltip.d.mts +8 -4
  194. package/dist/src/styled-system/recipes/tooltip.mjs +6 -4
  195. package/dist/src/styled-system/recipes/typography-table-container.d.mts +8 -4
  196. package/dist/src/styled-system/recipes/typography-table-container.mjs +8 -3
  197. package/dist/src/styled-system/recipes/typography-table.d.mts +8 -4
  198. package/dist/src/styled-system/recipes/typography-table.mjs +8 -3
  199. package/dist/src/styled-system/tokens/index.mjs +271 -219
  200. package/dist/src/styled-system/tokens/tokens.d.mts +18 -18
  201. package/dist/src/styled-system/types/composition.d.mts +70 -17
  202. package/dist/src/styled-system/types/conditions.d.mts +105 -49
  203. package/dist/src/styled-system/types/csstype.d.mts +1270 -721
  204. package/dist/src/styled-system/types/global.d.mts +1 -0
  205. package/dist/src/styled-system/types/index.d.mts +1 -2
  206. package/dist/src/styled-system/types/parts.d.mts +3 -1
  207. package/dist/src/styled-system/types/pattern.d.mts +20 -3
  208. package/dist/src/styled-system/types/prop-type.d.mts +59 -135
  209. package/dist/src/styled-system/types/recipe.d.mts +42 -9
  210. package/dist/src/styled-system/types/selectors.d.mts +1 -1
  211. package/dist/src/styled-system/types/static-css.d.mts +56 -0
  212. package/dist/src/styled-system/types/style-props.d.mts +7540 -678
  213. package/dist/src/styled-system/types/system-types.d.mts +128 -20
  214. package/package.json +3 -3
  215. package/dist/src/styled-system/chunks/src__components__Node.css +0 -195
  216. package/dist/src/styled-system/chunks/src__components__PipelineCanvas.css +0 -25
  217. package/dist/src/styled-system/global.css +0 -70
  218. package/dist/src/styled-system/patterns/link-box.d.mts +0 -21
  219. package/dist/src/styled-system/patterns/link-box.mjs +0 -19
  220. package/dist/src/styled-system/recipes/create-recipe.d.mts +0 -1
  221. package/dist/src/styled-system/reset.css +0 -206
  222. package/dist/src/styled-system/static.css +0 -320
  223. package/dist/src/styled-system/tokens/index.css +0 -620
  224. package/dist/src/styled-system/tokens/keyframes.css +0 -56
  225. package/dist/src/styled-system/types/helpers.d.mts +0 -2
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const centerConfig = {
@@ -12,7 +12,10 @@ transform(props) {
12
12
  };
13
13
  }}
14
14
 
15
- export const getCenterStyle = (styles = {}) => centerConfig.transform(styles, { map: mapObject })
15
+ export const getCenterStyle = (styles = {}) => {
16
+ const _styles = getPatternStyles(centerConfig, styles)
17
+ return centerConfig.transform(_styles, patternFns)
18
+ }
16
19
 
17
20
  export const center = (styles) => css(getCenterStyle(styles))
18
21
  center.raw = getCenterStyle
@@ -1,12 +1,12 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface CircleProperties {
9
- size?: PropertyValue<'width'>
9
+ size?: SystemProperties["width"]
10
10
  }
11
11
 
12
12
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const circleConfig = {
@@ -16,7 +16,10 @@ transform(props) {
16
16
  };
17
17
  }}
18
18
 
19
- export const getCircleStyle = (styles = {}) => circleConfig.transform(styles, { map: mapObject })
19
+ export const getCircleStyle = (styles = {}) => {
20
+ const _styles = getPatternStyles(circleConfig, styles)
21
+ return circleConfig.transform(_styles, patternFns)
22
+ }
20
23
 
21
24
  export const circle = (styles) => css(getCircleStyle(styles))
22
25
  circle.raw = getCircleStyle
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const containerConfig = {
@@ -12,7 +12,10 @@ transform(props) {
12
12
  };
13
13
  }}
14
14
 
15
- export const getContainerStyle = (styles = {}) => containerConfig.transform(styles, { map: mapObject })
15
+ export const getContainerStyle = (styles = {}) => {
16
+ const _styles = getPatternStyles(containerConfig, styles)
17
+ return containerConfig.transform(_styles, patternFns)
18
+ }
16
19
 
17
20
  export const container = (styles) => css(getContainerStyle(styles))
18
21
  container.raw = getContainerStyle
@@ -0,0 +1,22 @@
1
+ /* eslint-disable */
2
+ import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
+ import type { Properties } from '../types/csstype.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
+ import type { DistributiveOmit } from '../types/system-types.d.mts';
6
+ import type { Tokens } from '../tokens/index.d.mts';
7
+
8
+ export interface CqProperties {
9
+ name?: ConditionalValue<Tokens["containerNames"] | Properties["containerName"]>
10
+ type?: SystemProperties["containerType"]
11
+ }
12
+
13
+
14
+ interface CqStyles extends CqProperties, DistributiveOmit<SystemStyleObject, keyof CqProperties > {}
15
+
16
+ interface CqPatternFn {
17
+ (styles?: CqStyles): string
18
+ raw: (styles?: CqStyles) => SystemStyleObject
19
+ }
20
+
21
+
22
+ export declare const cq: CqPatternFn;
@@ -0,0 +1,21 @@
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
+ import { css } from '../css/index.mjs';
3
+
4
+ const cqConfig = {
5
+ transform(props) {
6
+ const { name, type, ...rest } = props;
7
+ return {
8
+ containerType: type,
9
+ containerName: name,
10
+ ...rest
11
+ };
12
+ },
13
+ defaultValues:{type:'inline-size'}}
14
+
15
+ export const getCqStyle = (styles = {}) => {
16
+ const _styles = getPatternStyles(cqConfig, styles)
17
+ return cqConfig.transform(_styles, patternFns)
18
+ }
19
+
20
+ export const cq = (styles) => css(getCqStyle(styles))
21
+ cq.raw = getCqStyle
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,9 +1,9 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const dividerConfig = {
5
5
  transform(props, { map }) {
6
- const { orientation = "horizontal", thickness = "1px", color, ...rest } = props;
6
+ const { orientation, thickness, color, ...rest } = props;
7
7
  return {
8
8
  "--thickness": thickness,
9
9
  width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
@@ -13,9 +13,13 @@ transform(props, { map }) {
13
13
  borderColor: color,
14
14
  ...rest
15
15
  };
16
- }}
16
+ },
17
+ defaultValues:{orientation:'horizontal',thickness:'1px'}}
17
18
 
18
- export const getDividerStyle = (styles = {}) => dividerConfig.transform(styles, { map: mapObject })
19
+ export const getDividerStyle = (styles = {}) => {
20
+ const _styles = getPatternStyles(dividerConfig, styles)
21
+ return dividerConfig.transform(_styles, patternFns)
22
+ }
19
23
 
20
24
  export const divider = (styles) => css(getDividerStyle(styles))
21
25
  divider.raw = getDividerStyle
@@ -1,18 +1,18 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface FlexProperties {
9
- align?: PropertyValue<'alignItems'>
10
- justify?: PropertyValue<'justifyContent'>
11
- direction?: PropertyValue<'flexDirection'>
12
- wrap?: PropertyValue<'flexWrap'>
13
- basis?: PropertyValue<'flexBasis'>
14
- grow?: PropertyValue<'flexGrow'>
15
- shrink?: PropertyValue<'flexShrink'>
9
+ align?: SystemProperties["alignItems"]
10
+ justify?: SystemProperties["justifyContent"]
11
+ direction?: SystemProperties["flexDirection"]
12
+ wrap?: SystemProperties["flexWrap"]
13
+ basis?: SystemProperties["flexBasis"]
14
+ grow?: SystemProperties["flexGrow"]
15
+ shrink?: SystemProperties["flexShrink"]
16
16
  }
17
17
 
18
18
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const flexConfig = {
@@ -17,7 +17,10 @@ transform(props) {
17
17
  };
18
18
  }}
19
19
 
20
- export const getFlexStyle = (styles = {}) => flexConfig.transform(styles, { map: mapObject })
20
+ export const getFlexStyle = (styles = {}) => {
21
+ const _styles = getPatternStyles(flexConfig, styles)
22
+ return flexConfig.transform(_styles, patternFns)
23
+ }
21
24
 
22
25
  export const flex = (styles) => css(getFlexStyle(styles))
23
26
  flex.raw = getFlexStyle
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,9 +1,9 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const floatConfig = {
5
5
  transform(props, { map }) {
6
- const { offset = "0", offsetX = offset, offsetY = offset, placement = "top-end", ...rest } = props;
6
+ const { offset, offsetX, offsetY, placement, ...rest } = props;
7
7
  return {
8
8
  display: "inline-flex",
9
9
  justifyContent: "center",
@@ -37,9 +37,16 @@ transform(props, { map }) {
37
37
  }),
38
38
  ...rest
39
39
  };
40
+ },
41
+ defaultValues(props) {
42
+ const offset = props.offset || "0";
43
+ return { offset, offsetX: offset, offsetY: offset, placement: "top-end" };
40
44
  }}
41
45
 
42
- export const getFloatStyle = (styles = {}) => floatConfig.transform(styles, { map: mapObject })
46
+ export const getFloatStyle = (styles = {}) => {
47
+ const _styles = getPatternStyles(floatConfig, styles)
48
+ return floatConfig.transform(_styles, patternFns)
49
+ }
43
50
 
44
51
  export const float = (styles) => css(getFloatStyle(styles))
45
52
  float.raw = getFloatStyle
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const gridItemConfig = {
@@ -16,7 +16,10 @@ transform(props, { map }) {
16
16
  };
17
17
  }}
18
18
 
19
- export const getGridItemStyle = (styles = {}) => gridItemConfig.transform(styles, { map: mapObject })
19
+ export const getGridItemStyle = (styles = {}) => {
20
+ const _styles = getPatternStyles(gridItemConfig, styles)
21
+ return gridItemConfig.transform(_styles, patternFns)
22
+ }
20
23
 
21
24
  export const gridItem = (styles) => css(getGridItemStyle(styles))
22
25
  gridItem.raw = getGridItemStyle
@@ -1,14 +1,14 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface GridProperties {
9
- gap?: PropertyValue<'gap'>
10
- columnGap?: PropertyValue<'gap'>
11
- rowGap?: PropertyValue<'gap'>
9
+ gap?: SystemProperties["gap"]
10
+ columnGap?: SystemProperties["gap"]
11
+ rowGap?: SystemProperties["gap"]
12
12
  columns?: ConditionalValue<number>
13
13
  minChildWidth?: ConditionalValue<Tokens["sizes"] | Properties["width"]>
14
14
  }
@@ -1,20 +1,27 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const gridConfig = {
5
- transform(props, { map }) {
6
- const { columnGap, rowGap, gap = columnGap || rowGap ? void 0 : "10px", columns, minChildWidth, ...rest } = props;
5
+ transform(props, { map, isCssUnit }) {
6
+ const { columnGap, rowGap, gap, columns, minChildWidth, ...rest } = props;
7
+ const getValue = (v) => isCssUnit(v) ? v : `token(sizes.${v}, ${v})`;
7
8
  return {
8
9
  display: "grid",
9
- gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${v}, 1fr))`) : void 0,
10
+ gridTemplateColumns: columns != null ? map(columns, (v) => `repeat(${v}, minmax(0, 1fr))`) : minChildWidth != null ? map(minChildWidth, (v) => `repeat(auto-fit, minmax(${getValue(v)}, 1fr))`) : void 0,
10
11
  gap,
11
12
  columnGap,
12
13
  rowGap,
13
14
  ...rest
14
15
  };
16
+ },
17
+ defaultValues(props) {
18
+ return { gap: props.columnGap || props.rowGap ? void 0 : "10px" };
15
19
  }}
16
20
 
17
- export const getGridStyle = (styles = {}) => gridConfig.transform(styles, { map: mapObject })
21
+ export const getGridStyle = (styles = {}) => {
22
+ const _styles = getPatternStyles(gridConfig, styles)
23
+ return gridConfig.transform(_styles, patternFns)
24
+ }
18
25
 
19
26
  export const grid = (styles) => css(getGridStyle(styles))
20
27
  grid.raw = getGridStyle
@@ -1,13 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface HstackProperties {
9
- justify?: PropertyValue<'justifyContent'>
10
- gap?: PropertyValue<'gap'>
9
+ justify?: SystemProperties["justifyContent"]
10
+ gap?: SystemProperties["gap"]
11
11
  }
12
12
 
13
13
 
@@ -1,9 +1,9 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const hstackConfig = {
5
5
  transform(props) {
6
- const { justify, gap = "10px", ...rest } = props;
6
+ const { justify, gap, ...rest } = props;
7
7
  return {
8
8
  display: "flex",
9
9
  alignItems: "center",
@@ -12,9 +12,13 @@ transform(props) {
12
12
  flexDirection: "row",
13
13
  ...rest
14
14
  };
15
- }}
15
+ },
16
+ defaultValues:{gap:'10px'}}
16
17
 
17
- export const getHstackStyle = (styles = {}) => hstackConfig.transform(styles, { map: mapObject })
18
+ export const getHstackStyle = (styles = {}) => {
19
+ const _styles = getPatternStyles(hstackConfig, styles)
20
+ return hstackConfig.transform(_styles, patternFns)
21
+ }
18
22
 
19
23
  export const hstack = (styles) => css(getHstackStyle(styles))
20
24
  hstack.raw = getHstackStyle
@@ -8,7 +8,6 @@ export * from './spacer.d.mts';
8
8
  export * from './square.d.mts';
9
9
  export * from './circle.d.mts';
10
10
  export * from './center.d.mts';
11
- export * from './link-box.d.mts';
12
11
  export * from './link-overlay.d.mts';
13
12
  export * from './aspect-ratio.d.mts';
14
13
  export * from './grid.d.mts';
@@ -18,4 +17,5 @@ export * from './container.d.mts';
18
17
  export * from './divider.d.mts';
19
18
  export * from './float.d.mts';
20
19
  export * from './bleed.d.mts';
21
- export * from './visually-hidden.d.mts';
20
+ export * from './visually-hidden.d.mts';
21
+ export * from './cq.d.mts';
@@ -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';
@@ -17,4 +16,5 @@ export * from './container.mjs';
17
16
  export * from './divider.mjs';
18
17
  export * from './float.mjs';
19
18
  export * from './bleed.mjs';
20
- export * from './visually-hidden.mjs';
19
+ export * from './visually-hidden.mjs';
20
+ export * from './cq.mjs';
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,15 +1,12 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const linkOverlayConfig = {
5
5
  transform(props) {
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
  ...props["_before"]
@@ -18,7 +15,10 @@ transform(props) {
18
15
  };
19
16
  }}
20
17
 
21
- export const getLinkOverlayStyle = (styles = {}) => linkOverlayConfig.transform(styles, { map: mapObject })
18
+ export const getLinkOverlayStyle = (styles = {}) => {
19
+ const _styles = getPatternStyles(linkOverlayConfig, styles)
20
+ return linkOverlayConfig.transform(_styles, patternFns)
21
+ }
22
22
 
23
23
  export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
24
24
  linkOverlay.raw = getLinkOverlayStyle
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const spacerConfig = {
@@ -12,7 +12,10 @@ transform(props, { map }) {
12
12
  };
13
13
  }}
14
14
 
15
- export const getSpacerStyle = (styles = {}) => spacerConfig.transform(styles, { map: mapObject })
15
+ export const getSpacerStyle = (styles = {}) => {
16
+ const _styles = getPatternStyles(spacerConfig, styles)
17
+ return spacerConfig.transform(_styles, patternFns)
18
+ }
16
19
 
17
20
  export const spacer = (styles) => css(getSpacerStyle(styles))
18
21
  spacer.raw = getSpacerStyle
@@ -1,12 +1,12 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface SquareProperties {
9
- size?: PropertyValue<'width'>
9
+ size?: SystemProperties["width"]
10
10
  }
11
11
 
12
12
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const squareConfig = {
@@ -15,7 +15,10 @@ transform(props) {
15
15
  };
16
16
  }}
17
17
 
18
- export const getSquareStyle = (styles = {}) => squareConfig.transform(styles, { map: mapObject })
18
+ export const getSquareStyle = (styles = {}) => {
19
+ const _styles = getPatternStyles(squareConfig, styles)
20
+ return squareConfig.transform(_styles, patternFns)
21
+ }
19
22
 
20
23
  export const square = (styles) => css(getSquareStyle(styles))
21
24
  square.raw = getSquareStyle
@@ -1,15 +1,15 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface StackProperties {
9
- align?: PropertyValue<'alignItems'>
10
- justify?: PropertyValue<'justifyContent'>
11
- direction?: PropertyValue<'flexDirection'>
12
- gap?: PropertyValue<'gap'>
9
+ align?: SystemProperties["alignItems"]
10
+ justify?: SystemProperties["justifyContent"]
11
+ direction?: SystemProperties["flexDirection"]
12
+ gap?: SystemProperties["gap"]
13
13
  }
14
14
 
15
15
 
@@ -1,9 +1,9 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const stackConfig = {
5
5
  transform(props) {
6
- const { align, justify, direction = "column", gap = "10px", ...rest } = props;
6
+ const { align, justify, direction, gap, ...rest } = props;
7
7
  return {
8
8
  display: "flex",
9
9
  flexDirection: direction,
@@ -12,9 +12,13 @@ transform(props) {
12
12
  gap,
13
13
  ...rest
14
14
  };
15
- }}
15
+ },
16
+ defaultValues:{direction:'column',gap:'10px'}}
16
17
 
17
- export const getStackStyle = (styles = {}) => stackConfig.transform(styles, { map: mapObject })
18
+ export const getStackStyle = (styles = {}) => {
19
+ const _styles = getPatternStyles(stackConfig, styles)
20
+ return stackConfig.transform(_styles, patternFns)
21
+ }
18
22
 
19
23
  export const stack = (styles) => css(getStackStyle(styles))
20
24
  stack.raw = getStackStyle
@@ -1,7 +1,7 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
@@ -1,4 +1,4 @@
1
- import { mapObject } from '../helpers.mjs';
1
+ import { getPatternStyles, patternFns } from '../helpers.mjs';
2
2
  import { css } from '../css/index.mjs';
3
3
 
4
4
  const visuallyHiddenConfig = {
@@ -9,7 +9,10 @@ transform(props) {
9
9
  };
10
10
  }}
11
11
 
12
- export const getVisuallyHiddenStyle = (styles = {}) => visuallyHiddenConfig.transform(styles, { map: mapObject })
12
+ export const getVisuallyHiddenStyle = (styles = {}) => {
13
+ const _styles = getPatternStyles(visuallyHiddenConfig, styles)
14
+ return visuallyHiddenConfig.transform(_styles, patternFns)
15
+ }
13
16
 
14
17
  export const visuallyHidden = (styles) => css(getVisuallyHiddenStyle(styles))
15
18
  visuallyHidden.raw = getVisuallyHiddenStyle
@@ -1,13 +1,13 @@
1
1
  /* eslint-disable */
2
2
  import type { SystemStyleObject, ConditionalValue } from '../types/index.d.mts';
3
3
  import type { Properties } from '../types/csstype.d.mts';
4
- import type { PropertyValue } from '../types/prop-type.d.mts';
4
+ import type { SystemProperties } from '../types/style-props.d.mts';
5
5
  import type { DistributiveOmit } from '../types/system-types.d.mts';
6
6
  import type { Tokens } from '../tokens/index.d.mts';
7
7
 
8
8
  export interface VstackProperties {
9
- justify?: PropertyValue<'justifyContent'>
10
- gap?: PropertyValue<'gap'>
9
+ justify?: SystemProperties["justifyContent"]
10
+ gap?: SystemProperties["gap"]
11
11
  }
12
12
 
13
13