@voiceflow/style 1.18.1-d62a34e5bb.326 → 1.18.1

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 (173) hide show
  1. package/build/main.d.mts +251 -0
  2. package/build/main.d.mts.map +1 -0
  3. package/build/main.mjs +74 -0
  4. package/build/main.mjs.map +1 -0
  5. package/package.json +6 -5
  6. package/build/ThemeContext.d.ts +0 -8
  7. package/build/ThemeContext.d.ts.map +0 -1
  8. package/build/ThemeContext.js +0 -7
  9. package/build/ThemeContext.js.map +0 -1
  10. package/build/__fixtures__/Button/Button.component.d.ts +0 -5
  11. package/build/__fixtures__/Button/Button.component.d.ts.map +0 -1
  12. package/build/__fixtures__/Button/Button.component.js +0 -4
  13. package/build/__fixtures__/Button/Button.component.js.map +0 -1
  14. package/build/__fixtures__/Button/Button.css.d.ts +0 -2
  15. package/build/__fixtures__/Button/Button.css.d.ts.map +0 -1
  16. package/build/__fixtures__/Button/Button.css.js +0 -7
  17. package/build/__fixtures__/Button/Button.css.js.map +0 -1
  18. package/build/__fixtures__/Button/Button.styled.d.ts +0 -2
  19. package/build/__fixtures__/Button/Button.styled.d.ts.map +0 -1
  20. package/build/__fixtures__/Button/Button.styled.js +0 -4
  21. package/build/__fixtures__/Button/Button.styled.js.map +0 -1
  22. package/build/__fixtures__/Button/index.d.ts +0 -7
  23. package/build/__fixtures__/Button/index.d.ts.map +0 -1
  24. package/build/__fixtures__/Button/index.js +0 -5
  25. package/build/__fixtures__/Button/index.js.map +0 -1
  26. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.component.d.ts +0 -6
  27. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.component.d.ts.map +0 -1
  28. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.component.js +0 -5
  29. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.component.js.map +0 -1
  30. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.css.d.ts +0 -2
  31. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.css.d.ts.map +0 -1
  32. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.css.js +0 -7
  33. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.css.js.map +0 -1
  34. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.styled.d.ts +0 -11
  35. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.styled.d.ts.map +0 -1
  36. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.styled.js +0 -6
  37. package/build/__fixtures__/InlineThemedButton/InlineThemedButton.styled.js.map +0 -1
  38. package/build/__fixtures__/InlineThemedButton/index.d.ts +0 -5
  39. package/build/__fixtures__/InlineThemedButton/index.d.ts.map +0 -1
  40. package/build/__fixtures__/InlineThemedButton/index.js +0 -4
  41. package/build/__fixtures__/InlineThemedButton/index.js.map +0 -1
  42. package/build/__fixtures__/InlineVarButton/InlineVarButton.component.d.ts +0 -6
  43. package/build/__fixtures__/InlineVarButton/InlineVarButton.component.d.ts.map +0 -1
  44. package/build/__fixtures__/InlineVarButton/InlineVarButton.component.js +0 -4
  45. package/build/__fixtures__/InlineVarButton/InlineVarButton.component.js.map +0 -1
  46. package/build/__fixtures__/InlineVarButton/InlineVarButton.css.d.ts +0 -3
  47. package/build/__fixtures__/InlineVarButton/InlineVarButton.css.d.ts.map +0 -1
  48. package/build/__fixtures__/InlineVarButton/InlineVarButton.css.js +0 -10
  49. package/build/__fixtures__/InlineVarButton/InlineVarButton.css.js.map +0 -1
  50. package/build/__fixtures__/InlineVarButton/InlineVarButton.styled.d.ts +0 -4
  51. package/build/__fixtures__/InlineVarButton/InlineVarButton.styled.d.ts.map +0 -1
  52. package/build/__fixtures__/InlineVarButton/InlineVarButton.styled.js +0 -9
  53. package/build/__fixtures__/InlineVarButton/InlineVarButton.styled.js.map +0 -1
  54. package/build/__fixtures__/InlineVarButton/index.d.ts +0 -5
  55. package/build/__fixtures__/InlineVarButton/index.d.ts.map +0 -1
  56. package/build/__fixtures__/InlineVarButton/index.js +0 -4
  57. package/build/__fixtures__/InlineVarButton/index.js.map +0 -1
  58. package/build/__fixtures__/RecipeButton/RecipeButton.component.d.ts +0 -7
  59. package/build/__fixtures__/RecipeButton/RecipeButton.component.d.ts.map +0 -1
  60. package/build/__fixtures__/RecipeButton/RecipeButton.component.js +0 -4
  61. package/build/__fixtures__/RecipeButton/RecipeButton.component.js.map +0 -1
  62. package/build/__fixtures__/RecipeButton/RecipeButton.css.d.ts +0 -22
  63. package/build/__fixtures__/RecipeButton/RecipeButton.css.d.ts.map +0 -1
  64. package/build/__fixtures__/RecipeButton/RecipeButton.css.js +0 -21
  65. package/build/__fixtures__/RecipeButton/RecipeButton.css.js.map +0 -1
  66. package/build/__fixtures__/RecipeButton/RecipeButton.styled.d.ts +0 -7
  67. package/build/__fixtures__/RecipeButton/RecipeButton.styled.d.ts.map +0 -1
  68. package/build/__fixtures__/RecipeButton/RecipeButton.styled.js +0 -5
  69. package/build/__fixtures__/RecipeButton/RecipeButton.styled.js.map +0 -1
  70. package/build/__fixtures__/RecipeButton/index.d.ts +0 -5
  71. package/build/__fixtures__/RecipeButton/index.d.ts.map +0 -1
  72. package/build/__fixtures__/RecipeButton/index.js +0 -4
  73. package/build/__fixtures__/RecipeButton/index.js.map +0 -1
  74. package/build/__fixtures__/ReuseCSS/ReuseCSS.component.d.ts +0 -3
  75. package/build/__fixtures__/ReuseCSS/ReuseCSS.component.d.ts.map +0 -1
  76. package/build/__fixtures__/ReuseCSS/ReuseCSS.component.js +0 -4
  77. package/build/__fixtures__/ReuseCSS/ReuseCSS.component.js.map +0 -1
  78. package/build/__fixtures__/ReuseCSS/ReuseCSS.css.d.ts +0 -2
  79. package/build/__fixtures__/ReuseCSS/ReuseCSS.css.d.ts.map +0 -1
  80. package/build/__fixtures__/ReuseCSS/ReuseCSS.css.js +0 -10
  81. package/build/__fixtures__/ReuseCSS/ReuseCSS.css.js.map +0 -1
  82. package/build/__fixtures__/ReuseCSS/index.d.ts +0 -5
  83. package/build/__fixtures__/ReuseCSS/index.d.ts.map +0 -1
  84. package/build/__fixtures__/ReuseCSS/index.js +0 -4
  85. package/build/__fixtures__/ReuseCSS/index.js.map +0 -1
  86. package/build/__fixtures__/ReuseStyled/ReuseStyled.component.d.ts +0 -3
  87. package/build/__fixtures__/ReuseStyled/ReuseStyled.component.d.ts.map +0 -1
  88. package/build/__fixtures__/ReuseStyled/ReuseStyled.component.js +0 -4
  89. package/build/__fixtures__/ReuseStyled/ReuseStyled.component.js.map +0 -1
  90. package/build/__fixtures__/ReuseStyled/ReuseStyled.css.d.ts +0 -2
  91. package/build/__fixtures__/ReuseStyled/ReuseStyled.css.d.ts.map +0 -1
  92. package/build/__fixtures__/ReuseStyled/ReuseStyled.css.js +0 -6
  93. package/build/__fixtures__/ReuseStyled/ReuseStyled.css.js.map +0 -1
  94. package/build/__fixtures__/ReuseStyled/ReuseStyled.styled.d.ts +0 -2
  95. package/build/__fixtures__/ReuseStyled/ReuseStyled.styled.d.ts.map +0 -1
  96. package/build/__fixtures__/ReuseStyled/ReuseStyled.styled.js +0 -5
  97. package/build/__fixtures__/ReuseStyled/ReuseStyled.styled.js.map +0 -1
  98. package/build/__fixtures__/ReuseStyled/index.d.ts +0 -5
  99. package/build/__fixtures__/ReuseStyled/index.d.ts.map +0 -1
  100. package/build/__fixtures__/ReuseStyled/index.js +0 -4
  101. package/build/__fixtures__/ReuseStyled/index.js.map +0 -1
  102. package/build/__fixtures__/ThemedButton/ThemedButton.component.d.ts +0 -3
  103. package/build/__fixtures__/ThemedButton/ThemedButton.component.d.ts.map +0 -1
  104. package/build/__fixtures__/ThemedButton/ThemedButton.component.js +0 -4
  105. package/build/__fixtures__/ThemedButton/ThemedButton.component.js.map +0 -1
  106. package/build/__fixtures__/ThemedButton/ThemedButton.css.d.ts +0 -2
  107. package/build/__fixtures__/ThemedButton/ThemedButton.css.d.ts.map +0 -1
  108. package/build/__fixtures__/ThemedButton/ThemedButton.css.js +0 -7
  109. package/build/__fixtures__/ThemedButton/ThemedButton.css.js.map +0 -1
  110. package/build/__fixtures__/ThemedButton/ThemedButton.styled.d.ts +0 -2
  111. package/build/__fixtures__/ThemedButton/ThemedButton.styled.d.ts.map +0 -1
  112. package/build/__fixtures__/ThemedButton/ThemedButton.styled.js +0 -5
  113. package/build/__fixtures__/ThemedButton/ThemedButton.styled.js.map +0 -1
  114. package/build/__fixtures__/ThemedButton/index.d.ts +0 -5
  115. package/build/__fixtures__/ThemedButton/index.d.ts.map +0 -1
  116. package/build/__fixtures__/ThemedButton/index.js +0 -4
  117. package/build/__fixtures__/ThemedButton/index.js.map +0 -1
  118. package/build/__fixtures__/VariantButton/VariantButton.component.d.ts +0 -7
  119. package/build/__fixtures__/VariantButton/VariantButton.component.d.ts.map +0 -1
  120. package/build/__fixtures__/VariantButton/VariantButton.component.js +0 -4
  121. package/build/__fixtures__/VariantButton/VariantButton.component.js.map +0 -1
  122. package/build/__fixtures__/VariantButton/VariantButton.css.d.ts +0 -2
  123. package/build/__fixtures__/VariantButton/VariantButton.css.d.ts.map +0 -1
  124. package/build/__fixtures__/VariantButton/VariantButton.css.js +0 -6
  125. package/build/__fixtures__/VariantButton/VariantButton.css.js.map +0 -1
  126. package/build/__fixtures__/VariantButton/VariantButton.styled.d.ts +0 -4
  127. package/build/__fixtures__/VariantButton/VariantButton.styled.d.ts.map +0 -1
  128. package/build/__fixtures__/VariantButton/VariantButton.styled.js +0 -5
  129. package/build/__fixtures__/VariantButton/VariantButton.styled.js.map +0 -1
  130. package/build/__fixtures__/VariantButton/index.d.ts +0 -5
  131. package/build/__fixtures__/VariantButton/index.d.ts.map +0 -1
  132. package/build/__fixtures__/VariantButton/index.js +0 -4
  133. package/build/__fixtures__/VariantButton/index.js.map +0 -1
  134. package/build/__fixtures__/index.d.ts +0 -10
  135. package/build/__fixtures__/index.d.ts.map +0 -1
  136. package/build/__fixtures__/index.js +0 -10
  137. package/build/__fixtures__/index.js.map +0 -1
  138. package/build/__fixtures__/theme.css.d.ts +0 -17
  139. package/build/__fixtures__/theme.css.d.ts.map +0 -1
  140. package/build/__fixtures__/theme.css.js +0 -19
  141. package/build/__fixtures__/theme.css.js.map +0 -1
  142. package/build/main.d.ts +0 -10
  143. package/build/main.d.ts.map +0 -1
  144. package/build/main.js +0 -9
  145. package/build/main.js.map +0 -1
  146. package/build/styled/constants.d.ts +0 -2
  147. package/build/styled/constants.d.ts.map +0 -1
  148. package/build/styled/constants.js +0 -2
  149. package/build/styled/constants.js.map +0 -1
  150. package/build/styled/factory.d.ts +0 -182
  151. package/build/styled/factory.d.ts.map +0 -1
  152. package/build/styled/factory.js +0 -23
  153. package/build/styled/factory.js.map +0 -1
  154. package/build/styled/index.d.ts +0 -5
  155. package/build/styled/index.d.ts.map +0 -1
  156. package/build/styled/index.js +0 -5
  157. package/build/styled/index.js.map +0 -1
  158. package/build/styled/types.d.ts +0 -46
  159. package/build/styled/types.d.ts.map +0 -1
  160. package/build/styled/types.js +0 -2
  161. package/build/styled/types.js.map +0 -1
  162. package/build/styled/utils.d.ts +0 -9
  163. package/build/styled/utils.d.ts.map +0 -1
  164. package/build/styled/utils.js +0 -31
  165. package/build/styled/utils.js.map +0 -1
  166. package/build/testing.d.ts +0 -6
  167. package/build/testing.d.ts.map +0 -1
  168. package/build/testing.js +0 -14
  169. package/build/testing.js.map +0 -1
  170. package/build/types.d.ts +0 -6
  171. package/build/types.d.ts.map +0 -1
  172. package/build/types.js +0 -2
  173. package/build/types.js.map +0 -1
package/build/main.js DELETED
@@ -1,9 +0,0 @@
1
- export * from './styled/index.js';
2
- export * from './testing.js';
3
- export * from './ThemeContext.js';
4
- export * from './types.js';
5
- export * from '@vanilla-extract/css';
6
- export * from '@vanilla-extract/dynamic';
7
- export { recipe } from '@vanilla-extract/recipes';
8
- export { clsx } from 'clsx';
9
- //# sourceMappingURL=main.js.map
package/build/main.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare const STYLED_CLASS: unique symbol;
2
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/styled/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,eAAyB,CAAC"}
@@ -1,2 +0,0 @@
1
- export const STYLED_CLASS = Symbol('styled_class');
2
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/styled/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,cAAc,CAAC,CAAC"}
@@ -1,182 +0,0 @@
1
- import type { StyledFactory } from './types.js';
2
- export declare const styled: {
3
- a: StyledFactory<"a">;
4
- abbr: StyledFactory<"abbr">;
5
- address: StyledFactory<"address">;
6
- area: StyledFactory<"area">;
7
- article: StyledFactory<"article">;
8
- aside: StyledFactory<"aside">;
9
- audio: StyledFactory<"audio">;
10
- b: StyledFactory<"b">;
11
- base: StyledFactory<"base">;
12
- bdi: StyledFactory<"bdi">;
13
- bdo: StyledFactory<"bdo">;
14
- big: StyledFactory<"big">;
15
- blockquote: StyledFactory<"blockquote">;
16
- body: StyledFactory<"body">;
17
- br: StyledFactory<"br">;
18
- button: StyledFactory<"button">;
19
- canvas: StyledFactory<"canvas">;
20
- caption: StyledFactory<"caption">;
21
- center: StyledFactory<"center">;
22
- cite: StyledFactory<"cite">;
23
- code: StyledFactory<"code">;
24
- col: StyledFactory<"col">;
25
- colgroup: StyledFactory<"colgroup">;
26
- data: StyledFactory<"data">;
27
- datalist: StyledFactory<"datalist">;
28
- dd: StyledFactory<"dd">;
29
- del: StyledFactory<"del">;
30
- details: StyledFactory<"details">;
31
- dfn: StyledFactory<"dfn">;
32
- dialog: StyledFactory<"dialog">;
33
- div: StyledFactory<"div">;
34
- dl: StyledFactory<"dl">;
35
- dt: StyledFactory<"dt">;
36
- em: StyledFactory<"em">;
37
- embed: StyledFactory<"embed">;
38
- fieldset: StyledFactory<"fieldset">;
39
- figcaption: StyledFactory<"figcaption">;
40
- figure: StyledFactory<"figure">;
41
- footer: StyledFactory<"footer">;
42
- form: StyledFactory<"form">;
43
- h1: StyledFactory<"h1">;
44
- h2: StyledFactory<"h2">;
45
- h3: StyledFactory<"h3">;
46
- h4: StyledFactory<"h4">;
47
- h5: StyledFactory<"h5">;
48
- h6: StyledFactory<"h6">;
49
- head: StyledFactory<"head">;
50
- header: StyledFactory<"header">;
51
- hgroup: StyledFactory<"hgroup">;
52
- hr: StyledFactory<"hr">;
53
- html: StyledFactory<"html">;
54
- i: StyledFactory<"i">;
55
- iframe: StyledFactory<"iframe">;
56
- img: StyledFactory<"img">;
57
- input: StyledFactory<"input">;
58
- ins: StyledFactory<"ins">;
59
- kbd: StyledFactory<"kbd">;
60
- keygen: StyledFactory<"keygen">;
61
- label: StyledFactory<"label">;
62
- legend: StyledFactory<"legend">;
63
- li: StyledFactory<"li">;
64
- link: StyledFactory<"link">;
65
- main: StyledFactory<"main">;
66
- map: StyledFactory<"map">;
67
- mark: StyledFactory<"mark">;
68
- menu: StyledFactory<"menu">;
69
- menuitem: StyledFactory<"menuitem">;
70
- meta: StyledFactory<"meta">;
71
- meter: StyledFactory<"meter">;
72
- nav: StyledFactory<"nav">;
73
- noindex: StyledFactory<"noindex">;
74
- noscript: StyledFactory<"noscript">;
75
- object: StyledFactory<"object">;
76
- ol: StyledFactory<"ol">;
77
- optgroup: StyledFactory<"optgroup">;
78
- option: StyledFactory<"option">;
79
- output: StyledFactory<"output">;
80
- p: StyledFactory<"p">;
81
- param: StyledFactory<"param">;
82
- picture: StyledFactory<"picture">;
83
- pre: StyledFactory<"pre">;
84
- progress: StyledFactory<"progress">;
85
- q: StyledFactory<"q">;
86
- rp: StyledFactory<"rp">;
87
- rt: StyledFactory<"rt">;
88
- ruby: StyledFactory<"ruby">;
89
- s: StyledFactory<"s">;
90
- samp: StyledFactory<"samp">;
91
- search: StyledFactory<"search">;
92
- slot: StyledFactory<"slot">;
93
- script: StyledFactory<"script">;
94
- section: StyledFactory<"section">;
95
- select: StyledFactory<"select">;
96
- small: StyledFactory<"small">;
97
- source: StyledFactory<"source">;
98
- span: StyledFactory<"span">;
99
- strong: StyledFactory<"strong">;
100
- style: StyledFactory<"style">;
101
- sub: StyledFactory<"sub">;
102
- summary: StyledFactory<"summary">;
103
- sup: StyledFactory<"sup">;
104
- table: StyledFactory<"table">;
105
- template: StyledFactory<"template">;
106
- tbody: StyledFactory<"tbody">;
107
- td: StyledFactory<"td">;
108
- textarea: StyledFactory<"textarea">;
109
- tfoot: StyledFactory<"tfoot">;
110
- th: StyledFactory<"th">;
111
- thead: StyledFactory<"thead">;
112
- time: StyledFactory<"time">;
113
- title: StyledFactory<"title">;
114
- tr: StyledFactory<"tr">;
115
- track: StyledFactory<"track">;
116
- u: StyledFactory<"u">;
117
- ul: StyledFactory<"ul">;
118
- var: StyledFactory<"var">;
119
- video: StyledFactory<"video">;
120
- wbr: StyledFactory<"wbr">;
121
- webview: StyledFactory<"webview">;
122
- svg: StyledFactory<"svg">;
123
- animate: StyledFactory<"animate">;
124
- animateMotion: StyledFactory<"animateMotion">;
125
- animateTransform: StyledFactory<"animateTransform">;
126
- circle: StyledFactory<"circle">;
127
- clipPath: StyledFactory<"clipPath">;
128
- defs: StyledFactory<"defs">;
129
- desc: StyledFactory<"desc">;
130
- ellipse: StyledFactory<"ellipse">;
131
- feBlend: StyledFactory<"feBlend">;
132
- feColorMatrix: StyledFactory<"feColorMatrix">;
133
- feComponentTransfer: StyledFactory<"feComponentTransfer">;
134
- feComposite: StyledFactory<"feComposite">;
135
- feConvolveMatrix: StyledFactory<"feConvolveMatrix">;
136
- feDiffuseLighting: StyledFactory<"feDiffuseLighting">;
137
- feDisplacementMap: StyledFactory<"feDisplacementMap">;
138
- feDistantLight: StyledFactory<"feDistantLight">;
139
- feDropShadow: StyledFactory<"feDropShadow">;
140
- feFlood: StyledFactory<"feFlood">;
141
- feFuncA: StyledFactory<"feFuncA">;
142
- feFuncB: StyledFactory<"feFuncB">;
143
- feFuncG: StyledFactory<"feFuncG">;
144
- feFuncR: StyledFactory<"feFuncR">;
145
- feGaussianBlur: StyledFactory<"feGaussianBlur">;
146
- feImage: StyledFactory<"feImage">;
147
- feMerge: StyledFactory<"feMerge">;
148
- feMergeNode: StyledFactory<"feMergeNode">;
149
- feMorphology: StyledFactory<"feMorphology">;
150
- feOffset: StyledFactory<"feOffset">;
151
- fePointLight: StyledFactory<"fePointLight">;
152
- feSpecularLighting: StyledFactory<"feSpecularLighting">;
153
- feSpotLight: StyledFactory<"feSpotLight">;
154
- feTile: StyledFactory<"feTile">;
155
- feTurbulence: StyledFactory<"feTurbulence">;
156
- filter: StyledFactory<"filter">;
157
- foreignObject: StyledFactory<"foreignObject">;
158
- g: StyledFactory<"g">;
159
- image: StyledFactory<"image">;
160
- line: StyledFactory<"line">;
161
- linearGradient: StyledFactory<"linearGradient">;
162
- marker: StyledFactory<"marker">;
163
- mask: StyledFactory<"mask">;
164
- metadata: StyledFactory<"metadata">;
165
- mpath: StyledFactory<"mpath">;
166
- path: StyledFactory<"path">;
167
- pattern: StyledFactory<"pattern">;
168
- polygon: StyledFactory<"polygon">;
169
- polyline: StyledFactory<"polyline">;
170
- radialGradient: StyledFactory<"radialGradient">;
171
- rect: StyledFactory<"rect">;
172
- set: StyledFactory<"set">;
173
- stop: StyledFactory<"stop">;
174
- switch: StyledFactory<"switch">;
175
- symbol: StyledFactory<"symbol">;
176
- text: StyledFactory<"text">;
177
- textPath: StyledFactory<"textPath">;
178
- tspan: StyledFactory<"tspan">;
179
- use: StyledFactory<"use">;
180
- view: StyledFactory<"view">;
181
- };
182
- //# sourceMappingURL=factory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../src/styled/factory.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAMV,aAAa,EACd,MAAM,SAAS,CAAC;AAGjB,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBjB,CAAC"}
@@ -1,23 +0,0 @@
1
- import { clsx } from 'clsx';
2
- import { createElement } from 'react';
3
- import { useTheme } from '../ThemeContext.js';
4
- import { STYLED_CLASS } from './constants.js';
5
- import { getDynamicOptions, getStaticClass, useDynamicClass, useInlineStyle } from './utils.js';
6
- export const styled = new Proxy({}, {
7
- get: (_target, tag) => (firstArg, secondArg, thirdArg) => {
8
- const staticClass = getStaticClass(firstArg, secondArg);
9
- const dynamicOptions = getDynamicOptions(secondArg, thirdArg);
10
- const StyledComponent = (props) => {
11
- const themeClass = useTheme();
12
- const dynamicClass = useDynamicClass(firstArg, props);
13
- const inlineStyle = useInlineStyle(props, dynamicOptions);
14
- return createElement(tag, {
15
- ...props,
16
- className: clsx(themeClass, staticClass, dynamicClass, props.className),
17
- style: { ...inlineStyle, ...props.style },
18
- });
19
- };
20
- return Object.assign(StyledComponent, { [STYLED_CLASS]: staticClass });
21
- },
22
- });
23
- //# sourceMappingURL=factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"factory.js","sourceRoot":"","sources":["../../src/styled/factory.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAA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1
- export * from './constants.js';
2
- export * from './factory.js';
3
- export * from './types.js';
4
- export * from './utils.js';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styled/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,5 +0,0 @@
1
- export * from './constants.js';
2
- export * from './factory.js';
3
- export * from './types.js';
4
- export * from './utils.js';
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styled/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
@@ -1,46 +0,0 @@
1
- import type { assignInlineVars } from '@vanilla-extract/dynamic';
2
- import type { RecipeVariants, RuntimeFn } from '@vanilla-extract/recipes';
3
- import type { STYLED_CLASS } from './constants.js';
4
- export type ThemeContract = Parameters<typeof assignInlineVars>[0];
5
- export interface DynamicOptions<Theme extends ThemeContract | null = ThemeContract, Variables extends Record<string, string> | null = Record<string, string>> {
6
- /**
7
- * the contract for a theme that can be overridden via a `theme` prop
8
- */
9
- theme?: Theme;
10
- /**
11
- * variables that can be overridden via a `vars` prop
12
- */
13
- vars?: Variables;
14
- }
15
- export type DynamicThemeProps<Theme> = Theme extends ThemeContract ? {
16
- /**
17
- * inline override for the theme used to style this component
18
- */
19
- theme?: Parameters<typeof assignInlineVars<Theme>>[1];
20
- } : object;
21
- export type DynamicVariablesProps<Variables> = Variables extends Record<string, string> ? {
22
- /**
23
- * inline override for variables used to styled this component
24
- */
25
- vars?: Partial<{
26
- [K in keyof Variables]: string;
27
- }>;
28
- } : object;
29
- export type StyledComponentProps<Tag extends keyof JSX.IntrinsicElements, Theme, Variables, Extras extends object = object> = React.ComponentPropsWithoutRef<Tag> & DynamicThemeProps<Theme> & DynamicVariablesProps<Variables> & Extras;
30
- export interface StyledComponent<Props = object> extends React.FunctionComponent<Props> {
31
- (props: Props, context?: any): React.ReactElement<any, any> | null;
32
- [STYLED_CLASS]: string | null;
33
- }
34
- export type StyleSource = StyledComponent | string;
35
- export interface StyledFactory<Tag extends keyof JSX.IntrinsicElements> {
36
- <Recipe extends RuntimeFn<Record<string, any>>, Theme extends ThemeContract | null = null, Variables extends Record<string, string> | null = null>(recipe: Recipe, sources?: StyleSource[], dynamic?: DynamicOptions<Theme, Variables>): StyledComponent<StyledComponentProps<Tag, Theme, Variables, {
37
- variants: RecipeVariants<Recipe>;
38
- }>>;
39
- <Variant extends string, Theme extends ThemeContract | null = null, Variables extends Record<string, string> | null = null>(variants: Record<Variant, string>, sources?: StyleSource[], dynamic?: DynamicOptions<Theme, Variables>): StyledComponent<StyledComponentProps<Tag, Theme, Variables, {
40
- variant: Variant;
41
- }>>;
42
- <Theme extends ThemeContract | null = null, Variables extends Record<string, string> | null = null>(sources: StyleSource[], dynamic?: DynamicOptions<Theme, Variables>): StyledComponent<StyledComponentProps<Tag, Theme, Variables>>;
43
- }
44
- export type FirstStyledArgument<Variants extends Record<string, any> = any> = RuntimeFn<Variants> | Record<string, string> | StyleSource[];
45
- export type SecondStyledArgument = StyleSource[] | DynamicOptions;
46
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/styled/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAE1E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,aAAa,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC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,EACtB,OAAO,CAAC,EAAE,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,GACzC,eAAe,CAAC,oBAAoB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC;CACjE;AAED,MAAM,MAAM,mBAAmB,CAAC,QAAQ,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,IACtE,SAAS,CAAC,QAAQ,CAAC,GACnB,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GACtB,WAAW,EAAE,CAAC;AAElB,MAAM,MAAM,oBAAoB,GAAG,WAAW,EAAE,GAAG,cAAc,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/styled/types.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import type { DynamicOptions, FirstStyledArgument, SecondStyledArgument, StyledComponentProps, ThemeContract } from './types.js';
2
- export declare const getStaticClass: (firstArg: FirstStyledArgument, secondArg?: SecondStyledArgument) => string | null;
3
- export declare const getDynamicOptions: (secondArg?: SecondStyledArgument, thirdArg?: DynamicOptions) => DynamicOptions | null;
4
- export declare const useDynamicClass: (firstArg: FirstStyledArgument<any>, props: {
5
- variant?: string;
6
- variants?: Record<string, any>;
7
- }) => string | null | undefined;
8
- export declare const useInlineStyle: (props: StyledComponentProps<keyof JSX.IntrinsicElements, ThemeContract, Record<string, string>>, dynamicOptions: DynamicOptions | null) => {};
9
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/styled/utils.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EACV,cAAc,EACd,mBAAmB,EACnB,oBAAoB,EACpB,oBAAoB,EACpB,aAAa,EACd,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,cAAc,aAAc,mBAAmB,cAAc,oBAAoB,KAAG,MAAM,GAAG,IAOzG,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAAgB,oBAAoB,aAAa,cAAc,KAAG,cAAc,GAAG,IACtD,CAAC;AAE5D,eAAO,MAAM,eAAe,aAChB,mBAAmB,CAAC,GAAG,CAAC,SAC3B;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAAE,8BAOd,CAAC;AAEhD,eAAO,MAAM,cAAc,UAClB,oBAAoB,CAAC,MAAM,GAAG,CAAC,iBAAiB,EAAE,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,kBAC/E,cAAc,GAAG,IAAI,OAiBtC,CAAC"}
@@ -1,31 +0,0 @@
1
- import { assignInlineVars } from '@vanilla-extract/dynamic';
2
- import { clsx } from 'clsx';
3
- import { useMemo } from 'react';
4
- import { STYLED_CLASS } from './constants.js';
5
- export const getStaticClass = (firstArg, secondArg) => {
6
- // oxlint-disable-next-line no-nested-ternary
7
- const classNames = (Array.isArray(firstArg) ? firstArg : Array.isArray(secondArg) ? secondArg : []).map((source) => typeof source === 'string' ? source : source[STYLED_CLASS]);
8
- return classNames.length ? clsx(classNames) : null;
9
- };
10
- export const getDynamicOptions = (secondArg, thirdArg) => (Array.isArray(secondArg) ? thirdArg : secondArg) ?? null;
11
- export const useDynamicClass = (firstArg, props) => useMemo(() => {
12
- if (typeof firstArg === 'function')
13
- return firstArg(props.variants);
14
- if (Array.isArray(firstArg) || !props.variant)
15
- return null;
16
- return firstArg[props.variant];
17
- }, [firstArg, props.variants, props.variant]);
18
- export const useInlineStyle = (props, dynamicOptions) => {
19
- const { theme, vars } = dynamicOptions ?? {};
20
- return useMemo(() => {
21
- const style = {};
22
- if (theme && props.theme) {
23
- Object.assign(style, assignInlineVars(theme, props.theme));
24
- }
25
- if (vars && props.vars) {
26
- Object.assign(style, assignInlineVars(props.vars));
27
- }
28
- return style;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AAQ,KAAK,UAAU;QAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACpE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAE3D,OAAO,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAEhD,MAAM,CAAC,MAAM,cAAc,GAAG,CAC5B,KAA+F,EAC/F,cAAqC,EACrC,EAAE;IACF,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,cAAc,IAAI,EAAE,CAAC;IAE7C,OAAO,OAAO,CAAC,GAAG,EAAE;QAClB,MAAM,KAAK,GAAG,EAAE,CAAC;QAEjB,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YACzB,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7D,CAAC;QAED,IAAI,IAAI,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC;YACvB,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAC,IAA8B,CAAC,CAAC,CAAC;QAC/E,CAAC;QAED,OAAO,KAAK,CAAC;IACf,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;AAChC,CAAC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * the pattern for data-testid attributes is based off of BEM naming
3
- * https://getbem.com/naming/
4
- */
5
- export declare const tid: (block: string | undefined, elements: string | [string, string, ...string[]], modifier?: string) => string | undefined;
6
- //# sourceMappingURL=testing.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,GAAG,UAAW,MAAM,GAAG,SAAS,YAAY,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,aAAa,MAAM,uBASjH,CAAC"}
package/build/testing.js DELETED
@@ -1,14 +0,0 @@
1
- /**
2
- * the pattern for data-testid attributes is based off of BEM naming
3
- * https://getbem.com/naming/
4
- */
5
- export const tid = (block, elements, modifier) => {
6
- if (!block)
7
- return undefined;
8
- const elementList = typeof elements === 'string' ? [elements] : elements;
9
- const blockElement = [block, ...elementList].join('__');
10
- if (!modifier)
11
- return blockElement;
12
- return `${blockElement}--${modifier}`;
13
- };
14
- //# sourceMappingURL=testing.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"testing.js","sourceRoot":"","sources":["../src/testing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,KAAyB,EAAE,QAAgD,EAAE,QAAiB,EAAE,EAAE;IACpH,IAAI,CAAC,KAAK;QAAE,OAAO,SAAS,CAAC;IAE7B,MAAM,WAAW,GAAG,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC;IACzE,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAExD,IAAI,CAAC,QAAQ;QAAE,OAAO,YAAY,CAAC;IAEnC,OAAO,GAAG,YAAY,KAAK,QAAQ,EAAE,CAAC;AACxC,CAAC,CAAC"}
package/build/types.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import type { ComplexStyleRule } from '@vanilla-extract/css';
2
- import type { RecipeVariants, RuntimeFn } from '@vanilla-extract/recipes';
3
- import type { Simplify } from 'type-fest';
4
- export type VariantStyleRules = Record<string, Record<string, ComplexStyleRule | string>>;
5
- export type VariantProps<RecipeFn extends RuntimeFn<VariantStyleRules>> = Exclude<Simplify<RecipeVariants<RecipeFn>>, undefined | null>;
6
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC;AAE1F,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,SAAS,CAAC,iBAAiB,CAAC,IAAI,OAAO,CAC/E,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,EAClC,SAAS,GAAG,IAAI,CACjB,CAAC"}
package/build/types.js DELETED
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}