cetec-design-system 0.0.20 → 0.0.21

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 (266) hide show
  1. package/package.json +2 -3
  2. package/styled-system/css/conditions.js +0 -36
  3. package/styled-system/css/conditions.mjs +0 -36
  4. package/styled-system/css/css.d.ts +0 -22
  5. package/styled-system/css/css.js +0 -45
  6. package/styled-system/css/css.mjs +0 -45
  7. package/styled-system/css/cva.d.ts +0 -6
  8. package/styled-system/css/cva.js +0 -87
  9. package/styled-system/css/cva.mjs +0 -87
  10. package/styled-system/css/cx.d.ts +0 -5
  11. package/styled-system/css/cx.js +0 -15
  12. package/styled-system/css/cx.mjs +0 -15
  13. package/styled-system/css/index.d.ts +0 -5
  14. package/styled-system/css/index.js +0 -4
  15. package/styled-system/css/index.mjs +0 -4
  16. package/styled-system/css/sva.d.ts +0 -4
  17. package/styled-system/css/sva.js +0 -41
  18. package/styled-system/css/sva.mjs +0 -41
  19. package/styled-system/debug/config.json +0 -8379
  20. package/styled-system/debug/src__App.ast.json +0 -1291
  21. package/styled-system/debug/src__App.css +0 -830
  22. package/styled-system/debug/src__components__Button__Button.stories.ast.json +0 -244
  23. package/styled-system/debug/src__components__Button__Button.stories.css +0 -372
  24. package/styled-system/debug/src__components__Code__Code.ast.json +0 -32
  25. package/styled-system/debug/src__components__Code__Code.css +0 -25
  26. package/styled-system/debug/src__components__Code__Pre.ast.json +0 -53
  27. package/styled-system/debug/src__components__Code__Pre.css +0 -45
  28. package/styled-system/debug/src__components__Code__copy-to-clipboard-button.ast.json +0 -68
  29. package/styled-system/debug/src__components__Code__copy-to-clipboard-button.css +0 -167
  30. package/styled-system/debug/src__components__Heading__Heading.ast.json +0 -59
  31. package/styled-system/debug/src__components__Heading__Heading.css +0 -25
  32. package/styled-system/debug/src__components__Icon__Icon.ast.json +0 -28
  33. package/styled-system/debug/src__components__Icon__Icon.css +0 -9
  34. package/styled-system/debug/src__components__Icon__iconStyle.ast.json +0 -27
  35. package/styled-system/debug/src__components__Icon__iconStyle.css +0 -5
  36. package/styled-system/debug/src__components__Input__Input.ast.json +0 -50
  37. package/styled-system/debug/src__components__Input__Input.css +0 -79
  38. package/styled-system/debug/src__components__Label__Label.ast.json +0 -45
  39. package/styled-system/debug/src__components__Label__Label.css +0 -40
  40. package/styled-system/debug/src__components__Link__Link.ast.json +0 -72
  41. package/styled-system/debug/src__components__Link__Link.css +0 -39
  42. package/styled-system/debug/src__components__Link__linkStyles.ast.json +0 -59
  43. package/styled-system/debug/src__components__Link__linkStyles.css +0 -77
  44. package/styled-system/debug/src__components__Spinner__spinnerStyles.ast.json +0 -56
  45. package/styled-system/debug/src__components__Spinner__spinnerStyles.css +0 -69
  46. package/styled-system/debug/src__components__Text__Text.ast.json +0 -57
  47. package/styled-system/debug/src__components__Text__Text.css +0 -22
  48. package/styled-system/debug/src__components__Text__Text.stories.ast.json +0 -60
  49. package/styled-system/debug/src__components__Text__Text.stories.css +0 -40
  50. package/styled-system/debug/src__components__Textarea__Textarea.ast.json +0 -50
  51. package/styled-system/debug/src__components__Textarea__Textarea.css +0 -92
  52. package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.ast.json +0 -42
  53. package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.css +0 -101
  54. package/styled-system/helpers.js +0 -336
  55. package/styled-system/helpers.mjs +0 -336
  56. package/styled-system/jsx/aspect-ratio.d.ts +0 -10
  57. package/styled-system/jsx/aspect-ratio.js +0 -14
  58. package/styled-system/jsx/aspect-ratio.mjs +0 -14
  59. package/styled-system/jsx/bleed.d.ts +0 -10
  60. package/styled-system/jsx/bleed.js +0 -14
  61. package/styled-system/jsx/bleed.mjs +0 -14
  62. package/styled-system/jsx/box.d.ts +0 -10
  63. package/styled-system/jsx/box.mjs +0 -14
  64. package/styled-system/jsx/center.d.ts +0 -10
  65. package/styled-system/jsx/center.js +0 -14
  66. package/styled-system/jsx/center.mjs +0 -14
  67. package/styled-system/jsx/circle.d.ts +0 -10
  68. package/styled-system/jsx/circle.js +0 -14
  69. package/styled-system/jsx/circle.mjs +0 -14
  70. package/styled-system/jsx/container.d.ts +0 -10
  71. package/styled-system/jsx/container.js +0 -14
  72. package/styled-system/jsx/container.mjs +0 -14
  73. package/styled-system/jsx/cq.d.ts +0 -10
  74. package/styled-system/jsx/cq.js +0 -14
  75. package/styled-system/jsx/cq.mjs +0 -14
  76. package/styled-system/jsx/divider.d.ts +0 -10
  77. package/styled-system/jsx/divider.mjs +0 -14
  78. package/styled-system/jsx/factory-helper.js +0 -22
  79. package/styled-system/jsx/factory-helper.mjs +0 -22
  80. package/styled-system/jsx/factory.d.ts +0 -3
  81. package/styled-system/jsx/factory.js +0 -80
  82. package/styled-system/jsx/factory.mjs +0 -80
  83. package/styled-system/jsx/flex.d.ts +0 -10
  84. package/styled-system/jsx/flex.js +0 -14
  85. package/styled-system/jsx/flex.mjs +0 -14
  86. package/styled-system/jsx/float.d.ts +0 -10
  87. package/styled-system/jsx/float.js +0 -14
  88. package/styled-system/jsx/float.mjs +0 -14
  89. package/styled-system/jsx/grid-item.d.ts +0 -10
  90. package/styled-system/jsx/grid-item.js +0 -14
  91. package/styled-system/jsx/grid-item.mjs +0 -14
  92. package/styled-system/jsx/grid.d.ts +0 -10
  93. package/styled-system/jsx/grid.js +0 -14
  94. package/styled-system/jsx/grid.mjs +0 -14
  95. package/styled-system/jsx/hstack.d.ts +0 -10
  96. package/styled-system/jsx/hstack.js +0 -14
  97. package/styled-system/jsx/hstack.mjs +0 -14
  98. package/styled-system/jsx/icon.d.ts +0 -10
  99. package/styled-system/jsx/icon.js +0 -14
  100. package/styled-system/jsx/icon.mjs +0 -14
  101. package/styled-system/jsx/index.d.ts +0 -23
  102. package/styled-system/jsx/index.js +0 -21
  103. package/styled-system/jsx/index.mjs +0 -21
  104. package/styled-system/jsx/is-valid-prop.d.ts +0 -11
  105. package/styled-system/jsx/is-valid-prop.js +0 -17
  106. package/styled-system/jsx/is-valid-prop.mjs +0 -17
  107. package/styled-system/jsx/link-overlay.d.ts +0 -10
  108. package/styled-system/jsx/link-overlay.js +0 -14
  109. package/styled-system/jsx/link-overlay.mjs +0 -14
  110. package/styled-system/jsx/spacer.d.ts +0 -10
  111. package/styled-system/jsx/spacer.js +0 -14
  112. package/styled-system/jsx/spacer.mjs +0 -14
  113. package/styled-system/jsx/square.d.ts +0 -10
  114. package/styled-system/jsx/square.js +0 -14
  115. package/styled-system/jsx/square.mjs +0 -14
  116. package/styled-system/jsx/stack.d.ts +0 -10
  117. package/styled-system/jsx/stack.js +0 -14
  118. package/styled-system/jsx/stack.mjs +0 -14
  119. package/styled-system/jsx/visually-hidden.d.ts +0 -10
  120. package/styled-system/jsx/visually-hidden.js +0 -14
  121. package/styled-system/jsx/visually-hidden.mjs +0 -14
  122. package/styled-system/jsx/vstack.d.ts +0 -10
  123. package/styled-system/jsx/vstack.js +0 -14
  124. package/styled-system/jsx/vstack.mjs +0 -14
  125. package/styled-system/jsx/wrap.d.ts +0 -10
  126. package/styled-system/jsx/wrap.js +0 -14
  127. package/styled-system/jsx/wrap.mjs +0 -14
  128. package/styled-system/patterns/aspect-ratio.d.ts +0 -21
  129. package/styled-system/patterns/aspect-ratio.js +0 -38
  130. package/styled-system/patterns/aspect-ratio.mjs +0 -38
  131. package/styled-system/patterns/bleed.d.ts +0 -22
  132. package/styled-system/patterns/bleed.js +0 -24
  133. package/styled-system/patterns/bleed.mjs +0 -24
  134. package/styled-system/patterns/box.d.ts +0 -21
  135. package/styled-system/patterns/box.mjs +0 -15
  136. package/styled-system/patterns/center.d.ts +0 -21
  137. package/styled-system/patterns/center.js +0 -21
  138. package/styled-system/patterns/center.mjs +0 -21
  139. package/styled-system/patterns/circle.d.ts +0 -21
  140. package/styled-system/patterns/circle.js +0 -25
  141. package/styled-system/patterns/circle.mjs +0 -25
  142. package/styled-system/patterns/container.d.ts +0 -21
  143. package/styled-system/patterns/container.js +0 -24
  144. package/styled-system/patterns/container.mjs +0 -24
  145. package/styled-system/patterns/cq.d.ts +0 -22
  146. package/styled-system/patterns/cq.js +0 -21
  147. package/styled-system/patterns/cq.mjs +0 -21
  148. package/styled-system/patterns/divider.d.ts +0 -23
  149. package/styled-system/patterns/divider.mjs +0 -25
  150. package/styled-system/patterns/flex.d.ts +0 -27
  151. package/styled-system/patterns/flex.js +0 -26
  152. package/styled-system/patterns/flex.mjs +0 -26
  153. package/styled-system/patterns/float.d.ts +0 -24
  154. package/styled-system/patterns/float.js +0 -52
  155. package/styled-system/patterns/float.mjs +0 -52
  156. package/styled-system/patterns/grid-item.d.ts +0 -26
  157. package/styled-system/patterns/grid-item.js +0 -25
  158. package/styled-system/patterns/grid-item.mjs +0 -25
  159. package/styled-system/patterns/grid.d.ts +0 -25
  160. package/styled-system/patterns/grid.js +0 -27
  161. package/styled-system/patterns/grid.mjs +0 -27
  162. package/styled-system/patterns/hstack.d.ts +0 -22
  163. package/styled-system/patterns/hstack.js +0 -24
  164. package/styled-system/patterns/hstack.mjs +0 -24
  165. package/styled-system/patterns/icon.d.ts +0 -21
  166. package/styled-system/patterns/icon.js +0 -20
  167. package/styled-system/patterns/icon.mjs +0 -20
  168. package/styled-system/patterns/index.d.ts +0 -20
  169. package/styled-system/patterns/index.js +0 -19
  170. package/styled-system/patterns/index.mjs +0 -19
  171. package/styled-system/patterns/link-overlay.d.ts +0 -21
  172. package/styled-system/patterns/link-overlay.js +0 -24
  173. package/styled-system/patterns/link-overlay.mjs +0 -24
  174. package/styled-system/patterns/spacer.d.ts +0 -21
  175. package/styled-system/patterns/spacer.js +0 -21
  176. package/styled-system/patterns/spacer.mjs +0 -21
  177. package/styled-system/patterns/square.d.ts +0 -21
  178. package/styled-system/patterns/square.js +0 -24
  179. package/styled-system/patterns/square.mjs +0 -24
  180. package/styled-system/patterns/stack.d.ts +0 -24
  181. package/styled-system/patterns/stack.js +0 -24
  182. package/styled-system/patterns/stack.mjs +0 -24
  183. package/styled-system/patterns/visually-hidden.d.ts +0 -21
  184. package/styled-system/patterns/visually-hidden.js +0 -18
  185. package/styled-system/patterns/visually-hidden.mjs +0 -18
  186. package/styled-system/patterns/vstack.d.ts +0 -22
  187. package/styled-system/patterns/vstack.js +0 -24
  188. package/styled-system/patterns/vstack.mjs +0 -24
  189. package/styled-system/patterns/wrap.d.ts +0 -25
  190. package/styled-system/patterns/wrap.js +0 -25
  191. package/styled-system/patterns/wrap.mjs +0 -25
  192. package/styled-system/recipes/box.d.ts +0 -28
  193. package/styled-system/recipes/box.js +0 -24
  194. package/styled-system/recipes/box.mjs +0 -24
  195. package/styled-system/recipes/button.d.ts +0 -35
  196. package/styled-system/recipes/button.js +0 -41
  197. package/styled-system/recipes/button.mjs +0 -41
  198. package/styled-system/recipes/checkbox.d.ts +0 -28
  199. package/styled-system/recipes/checkbox.js +0 -40
  200. package/styled-system/recipes/checkbox.mjs +0 -40
  201. package/styled-system/recipes/code.d.ts +0 -28
  202. package/styled-system/recipes/code.js +0 -24
  203. package/styled-system/recipes/code.mjs +0 -24
  204. package/styled-system/recipes/create-recipe.js +0 -82
  205. package/styled-system/recipes/create-recipe.mjs +0 -82
  206. package/styled-system/recipes/divider.d.ts +0 -35
  207. package/styled-system/recipes/divider.js +0 -38
  208. package/styled-system/recipes/divider.mjs +0 -38
  209. package/styled-system/recipes/heading.d.ts +0 -31
  210. package/styled-system/recipes/heading.js +0 -33
  211. package/styled-system/recipes/heading.mjs +0 -33
  212. package/styled-system/recipes/icon-button.d.ts +0 -35
  213. package/styled-system/recipes/icon-button.js +0 -41
  214. package/styled-system/recipes/icon-button.mjs +0 -41
  215. package/styled-system/recipes/index.d.ts +0 -17
  216. package/styled-system/recipes/index.js +0 -15
  217. package/styled-system/recipes/index.mjs +0 -16
  218. package/styled-system/recipes/input.d.ts +0 -31
  219. package/styled-system/recipes/input.js +0 -31
  220. package/styled-system/recipes/input.mjs +0 -31
  221. package/styled-system/recipes/label.d.ts +0 -38
  222. package/styled-system/recipes/label.js +0 -83
  223. package/styled-system/recipes/label.mjs +0 -83
  224. package/styled-system/recipes/link.d.ts +0 -38
  225. package/styled-system/recipes/link.js +0 -83
  226. package/styled-system/recipes/link.mjs +0 -83
  227. package/styled-system/recipes/pre.d.ts +0 -28
  228. package/styled-system/recipes/pre.js +0 -24
  229. package/styled-system/recipes/pre.mjs +0 -24
  230. package/styled-system/recipes/radio-input.d.ts +0 -28
  231. package/styled-system/recipes/radio-input.mjs +0 -24
  232. package/styled-system/recipes/radio.d.ts +0 -28
  233. package/styled-system/recipes/radio.js +0 -40
  234. package/styled-system/recipes/radio.mjs +0 -40
  235. package/styled-system/recipes/spinner.d.ts +0 -31
  236. package/styled-system/recipes/spinner.js +0 -32
  237. package/styled-system/recipes/spinner.mjs +0 -32
  238. package/styled-system/recipes/switchbox.d.ts +0 -28
  239. package/styled-system/recipes/switchbox.mjs +0 -44
  240. package/styled-system/recipes/text.d.ts +0 -37
  241. package/styled-system/recipes/text.js +0 -80
  242. package/styled-system/recipes/text.mjs +0 -80
  243. package/styled-system/recipes/textarea.d.ts +0 -32
  244. package/styled-system/recipes/textarea.js +0 -32
  245. package/styled-system/recipes/textarea.mjs +0 -35
  246. package/styled-system/recipes/textinput.d.ts +0 -32
  247. package/styled-system/recipes/textinput.mjs +0 -35
  248. package/styled-system/styles.css +0 -2184
  249. package/styled-system/tokens/index.d.ts +0 -9
  250. package/styled-system/tokens/index.js +0 -1480
  251. package/styled-system/tokens/index.mjs +0 -1580
  252. package/styled-system/tokens/tokens.d.ts +0 -63
  253. package/styled-system/types/composition.d.ts +0 -164
  254. package/styled-system/types/conditions.d.ts +0 -306
  255. package/styled-system/types/csstype.d.ts +0 -21298
  256. package/styled-system/types/global.d.ts +0 -20
  257. package/styled-system/types/index.d.ts +0 -8
  258. package/styled-system/types/jsx.d.ts +0 -52
  259. package/styled-system/types/parts.d.ts +0 -8
  260. package/styled-system/types/pattern.d.ts +0 -78
  261. package/styled-system/types/prop-type.d.ts +0 -235
  262. package/styled-system/types/recipe.d.ts +0 -181
  263. package/styled-system/types/selectors.d.ts +0 -59
  264. package/styled-system/types/static-css.d.ts +0 -56
  265. package/styled-system/types/style-props.d.ts +0 -7468
  266. package/styled-system/types/system-types.d.ts +0 -109
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.js';
4
- import { getLinkOverlayStyle } from '../patterns/link-overlay.js';
5
- import { styled } from './factory.js';
6
-
7
- export const LinkOverlay = /* @__PURE__ */ forwardRef(function LinkOverlay(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, [])
9
-
10
- const styleProps = getLinkOverlayStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.a, mergedProps)
14
- })
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.mjs';
4
- import { getLinkOverlayStyle } from '../patterns/link-overlay.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const LinkOverlay = /* @__PURE__ */ forwardRef(function LinkOverlay(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, [])
9
-
10
- const styleProps = getLinkOverlayStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.a, mergedProps)
14
- })
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
3
- import type { SpacerProperties } from '../patterns/spacer';
4
- import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
6
-
7
- export interface SpacerProps extends SpacerProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof SpacerProperties > {}
8
-
9
-
10
- export declare const Spacer: FunctionComponent<SpacerProps>
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.js';
4
- import { getSpacerStyle } from '../patterns/spacer.js';
5
- import { styled } from './factory.js';
6
-
7
- export const Spacer = /* @__PURE__ */ forwardRef(function Spacer(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["size"])
9
-
10
- const styleProps = getSpacerStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.mjs';
4
- import { getSpacerStyle } from '../patterns/spacer.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const Spacer = /* @__PURE__ */ forwardRef(function Spacer(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["size"])
9
-
10
- const styleProps = getSpacerStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
3
- import type { SquareProperties } from '../patterns/square';
4
- import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
6
-
7
- export interface SquareProps extends SquareProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof SquareProperties > {}
8
-
9
-
10
- export declare const Square: FunctionComponent<SquareProps>
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.js';
4
- import { getSquareStyle } from '../patterns/square.js';
5
- import { styled } from './factory.js';
6
-
7
- export const Square = /* @__PURE__ */ forwardRef(function Square(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["size"])
9
-
10
- const styleProps = getSquareStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.mjs';
4
- import { getSquareStyle } from '../patterns/square.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const Square = /* @__PURE__ */ forwardRef(function Square(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["size"])
9
-
10
- const styleProps = getSquareStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
3
- import type { StackProperties } from '../patterns/stack';
4
- import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
6
-
7
- export interface StackProps extends StackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof StackProperties > {}
8
-
9
-
10
- export declare const Stack: FunctionComponent<StackProps>
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.js';
4
- import { getStackStyle } from '../patterns/stack.js';
5
- import { styled } from './factory.js';
6
-
7
- export const Stack = /* @__PURE__ */ forwardRef(function Stack(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["align","justify","direction","gap"])
9
-
10
- const styleProps = getStackStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.mjs';
4
- import { getStackStyle } from '../patterns/stack.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const Stack = /* @__PURE__ */ forwardRef(function Stack(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["align","justify","direction","gap"])
9
-
10
- const styleProps = getStackStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
3
- import type { VisuallyHiddenProperties } from '../patterns/visually-hidden';
4
- import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
6
-
7
- export interface VisuallyHiddenProps extends VisuallyHiddenProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof VisuallyHiddenProperties > {}
8
-
9
-
10
- export declare const VisuallyHidden: FunctionComponent<VisuallyHiddenProps>
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.js';
4
- import { getVisuallyHiddenStyle } from '../patterns/visually-hidden.js';
5
- import { styled } from './factory.js';
6
-
7
- export const VisuallyHidden = /* @__PURE__ */ forwardRef(function VisuallyHidden(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, [])
9
-
10
- const styleProps = getVisuallyHiddenStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.mjs';
4
- import { getVisuallyHiddenStyle } from '../patterns/visually-hidden.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const VisuallyHidden = /* @__PURE__ */ forwardRef(function VisuallyHidden(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, [])
9
-
10
- const styleProps = getVisuallyHiddenStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
3
- import type { VstackProperties } from '../patterns/vstack';
4
- import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
6
-
7
- export interface VstackProps extends VstackProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof VstackProperties > {}
8
-
9
-
10
- export declare const VStack: FunctionComponent<VstackProps>
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.js';
4
- import { getVstackStyle } from '../patterns/vstack.js';
5
- import { styled } from './factory.js';
6
-
7
- export const VStack = /* @__PURE__ */ forwardRef(function VStack(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["justify","gap"])
9
-
10
- const styleProps = getVstackStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.mjs';
4
- import { getVstackStyle } from '../patterns/vstack.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const VStack = /* @__PURE__ */ forwardRef(function VStack(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["justify","gap"])
9
-
10
- const styleProps = getVstackStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,10 +0,0 @@
1
- /* eslint-disable */
2
- import type { FunctionComponent } from 'react'
3
- import type { WrapProperties } from '../patterns/wrap';
4
- import type { HTMLStyledProps } from '../types/jsx';
5
- import type { DistributiveOmit } from '../types/system-types';
6
-
7
- export interface WrapProps extends WrapProperties, DistributiveOmit<HTMLStyledProps<'div'>, keyof WrapProperties > {}
8
-
9
-
10
- export declare const Wrap: FunctionComponent<WrapProps>
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.js';
4
- import { getWrapStyle } from '../patterns/wrap.js';
5
- import { styled } from './factory.js';
6
-
7
- export const Wrap = /* @__PURE__ */ forwardRef(function Wrap(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["gap","rowGap","columnGap","align","justify"])
9
-
10
- const styleProps = getWrapStyle(patternProps)
11
- const mergedProps = { ref, ...styleProps, ...restProps }
12
-
13
- return createElement(styled.div, mergedProps)
14
- })
@@ -1,14 +0,0 @@
1
- import { createElement, forwardRef } from 'react'
2
-
3
- import { splitProps } from '../helpers.mjs';
4
- import { getWrapStyle } from '../patterns/wrap.mjs';
5
- import { styled } from './factory.mjs';
6
-
7
- export const Wrap = /* @__PURE__ */ forwardRef(function Wrap(props, ref) {
8
- const [patternProps, restProps] = splitProps(props, ["gap","rowGap","columnGap","align","justify"])
9
-
10
- const styleProps = getWrapStyle(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 AspectRatioProperties {
9
- ratio?: ConditionalValue<number>
10
- }
11
-
12
-
13
- interface AspectRatioStyles extends AspectRatioProperties, DistributiveOmit<SystemStyleObject, keyof AspectRatioProperties | 'aspectRatio'> {}
14
-
15
- interface AspectRatioPatternFn {
16
- (styles?: AspectRatioStyles): string
17
- raw: (styles?: AspectRatioStyles) => SystemStyleObject
18
- }
19
-
20
-
21
- export declare const aspectRatio: AspectRatioPatternFn;
@@ -1,38 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.js';
2
- import { css } from '../css/index.js';
3
-
4
- const aspectRatioConfig = {
5
- transform(props, { map }) {
6
- const { ratio = 4 / 3, ...rest } = props;
7
- return {
8
- position: "relative",
9
- _before: {
10
- content: `""`,
11
- display: "block",
12
- height: "0",
13
- paddingBottom: map(ratio, (r) => `${1 / r * 100}%`)
14
- },
15
- "&>*": {
16
- display: "flex",
17
- justifyContent: "center",
18
- alignItems: "center",
19
- overflow: "hidden",
20
- position: "absolute",
21
- inset: "0",
22
- width: "100%",
23
- height: "100%"
24
- },
25
- "&>img, &>video": {
26
- objectFit: "cover"
27
- },
28
- ...rest
29
- };
30
- }}
31
-
32
- export const getAspectRatioStyle = (styles = {}) => {
33
- const _styles = getPatternStyles(aspectRatioConfig, styles)
34
- return aspectRatioConfig.transform(_styles, patternFns)
35
- }
36
-
37
- export const aspectRatio = (styles) => css(getAspectRatioStyle(styles))
38
- aspectRatio.raw = getAspectRatioStyle
@@ -1,38 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.mjs';
2
- import { css } from '../css/index.mjs';
3
-
4
- const aspectRatioConfig = {
5
- transform(props, { map }) {
6
- const { ratio = 4 / 3, ...rest } = props;
7
- return {
8
- position: "relative",
9
- _before: {
10
- content: `""`,
11
- display: "block",
12
- height: "0",
13
- paddingBottom: map(ratio, (r) => `${1 / r * 100}%`)
14
- },
15
- "&>*": {
16
- display: "flex",
17
- justifyContent: "center",
18
- alignItems: "center",
19
- overflow: "hidden",
20
- position: "absolute",
21
- inset: "0",
22
- width: "100%",
23
- height: "100%"
24
- },
25
- "&>img, &>video": {
26
- objectFit: "cover"
27
- },
28
- ...rest
29
- };
30
- }}
31
-
32
- export const getAspectRatioStyle = (styles = {}) => {
33
- const _styles = getPatternStyles(aspectRatioConfig, styles)
34
- return aspectRatioConfig.transform(_styles, patternFns)
35
- }
36
-
37
- export const aspectRatio = (styles) => css(getAspectRatioStyle(styles))
38
- aspectRatio.raw = getAspectRatioStyle
@@ -1,22 +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 BleedProperties {
9
- inline?: SystemProperties["marginInline"]
10
- block?: SystemProperties["marginBlock"]
11
- }
12
-
13
-
14
- interface BleedStyles extends BleedProperties, DistributiveOmit<SystemStyleObject, keyof BleedProperties > {}
15
-
16
- interface BleedPatternFn {
17
- (styles?: BleedStyles): string
18
- raw: (styles?: BleedStyles) => SystemStyleObject
19
- }
20
-
21
-
22
- export declare const bleed: BleedPatternFn;
@@ -1,24 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.js';
2
- import { css } from '../css/index.js';
3
-
4
- const bleedConfig = {
5
- transform(props, { map, isCssUnit, isCssVar }) {
6
- const { inline, block, ...rest } = props;
7
- const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
8
- return {
9
- "--bleed-x": map(inline, valueFn),
10
- "--bleed-y": map(block, valueFn),
11
- marginInline: "calc(var(--bleed-x, 0) * -1)",
12
- marginBlock: "calc(var(--bleed-y, 0) * -1)",
13
- ...rest
14
- };
15
- },
16
- defaultValues:{inline:'0',block:'0'}}
17
-
18
- export const getBleedStyle = (styles = {}) => {
19
- const _styles = getPatternStyles(bleedConfig, styles)
20
- return bleedConfig.transform(_styles, patternFns)
21
- }
22
-
23
- export const bleed = (styles) => css(getBleedStyle(styles))
24
- bleed.raw = getBleedStyle
@@ -1,24 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.mjs';
2
- import { css } from '../css/index.mjs';
3
-
4
- const bleedConfig = {
5
- transform(props, { map, isCssUnit, isCssVar }) {
6
- const { inline, block, ...rest } = props;
7
- const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
8
- return {
9
- "--bleed-x": map(inline, valueFn),
10
- "--bleed-y": map(block, valueFn),
11
- marginInline: "calc(var(--bleed-x, 0) * -1)",
12
- marginBlock: "calc(var(--bleed-y, 0) * -1)",
13
- ...rest
14
- };
15
- },
16
- defaultValues:{inline:'0',block:'0'}}
17
-
18
- export const getBleedStyle = (styles = {}) => {
19
- const _styles = getPatternStyles(bleedConfig, styles)
20
- return bleedConfig.transform(_styles, patternFns)
21
- }
22
-
23
- export const bleed = (styles) => css(getBleedStyle(styles))
24
- bleed.raw = getBleedStyle
@@ -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 BoxProperties {
9
-
10
- }
11
-
12
-
13
- interface BoxStyles extends BoxProperties, DistributiveOmit<SystemStyleObject, keyof BoxProperties > {}
14
-
15
- interface BoxPatternFn {
16
- (styles?: BoxStyles): string
17
- raw: (styles?: BoxStyles) => SystemStyleObject
18
- }
19
-
20
-
21
- export declare const box: BoxPatternFn;
@@ -1,15 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.mjs';
2
- import { css } from '../css/index.mjs';
3
-
4
- const boxConfig = {
5
- transform(props) {
6
- return props;
7
- }}
8
-
9
- export const getBoxStyle = (styles = {}) => {
10
- const _styles = getPatternStyles(boxConfig, styles)
11
- return boxConfig.transform(_styles, patternFns)
12
- }
13
-
14
- export const box = (styles) => css(getBoxStyle(styles))
15
- box.raw = getBoxStyle
@@ -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 CenterProperties {
9
- inline?: ConditionalValue<boolean>
10
- }
11
-
12
-
13
- interface CenterStyles extends CenterProperties, DistributiveOmit<SystemStyleObject, keyof CenterProperties > {}
14
-
15
- interface CenterPatternFn {
16
- (styles?: CenterStyles): string
17
- raw: (styles?: CenterStyles) => SystemStyleObject
18
- }
19
-
20
-
21
- export declare const center: CenterPatternFn;
@@ -1,21 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.js';
2
- import { css } from '../css/index.js';
3
-
4
- const centerConfig = {
5
- transform(props) {
6
- const { inline, ...rest } = props;
7
- return {
8
- display: inline ? "inline-flex" : "flex",
9
- alignItems: "center",
10
- justifyContent: "center",
11
- ...rest
12
- };
13
- }}
14
-
15
- export const getCenterStyle = (styles = {}) => {
16
- const _styles = getPatternStyles(centerConfig, styles)
17
- return centerConfig.transform(_styles, patternFns)
18
- }
19
-
20
- export const center = (styles) => css(getCenterStyle(styles))
21
- center.raw = getCenterStyle
@@ -1,21 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.mjs';
2
- import { css } from '../css/index.mjs';
3
-
4
- const centerConfig = {
5
- transform(props) {
6
- const { inline, ...rest } = props;
7
- return {
8
- display: inline ? "inline-flex" : "flex",
9
- alignItems: "center",
10
- justifyContent: "center",
11
- ...rest
12
- };
13
- }}
14
-
15
- export const getCenterStyle = (styles = {}) => {
16
- const _styles = getPatternStyles(centerConfig, styles)
17
- return centerConfig.transform(_styles, patternFns)
18
- }
19
-
20
- export const center = (styles) => css(getCenterStyle(styles))
21
- center.raw = getCenterStyle
@@ -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 CircleProperties {
9
- size?: SystemProperties["width"]
10
- }
11
-
12
-
13
- interface CircleStyles extends CircleProperties, DistributiveOmit<SystemStyleObject, keyof CircleProperties > {}
14
-
15
- interface CirclePatternFn {
16
- (styles?: CircleStyles): string
17
- raw: (styles?: CircleStyles) => SystemStyleObject
18
- }
19
-
20
-
21
- export declare const circle: CirclePatternFn;
@@ -1,25 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.js';
2
- import { css } from '../css/index.js';
3
-
4
- const circleConfig = {
5
- transform(props) {
6
- const { size, ...rest } = props;
7
- return {
8
- display: "flex",
9
- alignItems: "center",
10
- justifyContent: "center",
11
- flex: "0 0 auto",
12
- width: size,
13
- height: size,
14
- borderRadius: "9999px",
15
- ...rest
16
- };
17
- }}
18
-
19
- export const getCircleStyle = (styles = {}) => {
20
- const _styles = getPatternStyles(circleConfig, styles)
21
- return circleConfig.transform(_styles, patternFns)
22
- }
23
-
24
- export const circle = (styles) => css(getCircleStyle(styles))
25
- circle.raw = getCircleStyle
@@ -1,25 +0,0 @@
1
- import { getPatternStyles, patternFns } from '../helpers.mjs';
2
- import { css } from '../css/index.mjs';
3
-
4
- const circleConfig = {
5
- transform(props) {
6
- const { size, ...rest } = props;
7
- return {
8
- display: "flex",
9
- alignItems: "center",
10
- justifyContent: "center",
11
- flex: "0 0 auto",
12
- width: size,
13
- height: size,
14
- borderRadius: "9999px",
15
- ...rest
16
- };
17
- }}
18
-
19
- export const getCircleStyle = (styles = {}) => {
20
- const _styles = getPatternStyles(circleConfig, styles)
21
- return circleConfig.transform(_styles, patternFns)
22
- }
23
-
24
- export const circle = (styles) => css(getCircleStyle(styles))
25
- circle.raw = getCircleStyle