cetec-design-system 0.0.2 → 0.0.4

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 (298) hide show
  1. package/package.json +12 -2
  2. package/styled-system/css/conditions.js +36 -0
  3. package/styled-system/css/conditions.mjs +36 -0
  4. package/styled-system/css/css.d.ts +22 -0
  5. package/styled-system/css/css.js +45 -0
  6. package/styled-system/css/css.mjs +45 -0
  7. package/styled-system/css/cva.d.ts +6 -0
  8. package/styled-system/css/cva.js +87 -0
  9. package/styled-system/css/cva.mjs +87 -0
  10. package/styled-system/css/cx.d.ts +5 -0
  11. package/styled-system/css/cx.js +15 -0
  12. package/styled-system/css/cx.mjs +15 -0
  13. package/styled-system/css/index.d.ts +5 -0
  14. package/styled-system/css/index.js +4 -0
  15. package/styled-system/css/index.mjs +4 -0
  16. package/styled-system/css/sva.d.ts +4 -0
  17. package/styled-system/css/sva.js +41 -0
  18. package/styled-system/css/sva.mjs +41 -0
  19. package/styled-system/debug/config.json +8379 -0
  20. package/styled-system/debug/src__App.ast.json +1291 -0
  21. package/styled-system/debug/src__App.css +830 -0
  22. package/styled-system/debug/src__components__Button__Button.stories.ast.json +244 -0
  23. package/styled-system/debug/src__components__Button__Button.stories.css +372 -0
  24. package/styled-system/debug/src__components__Code__Code.ast.json +32 -0
  25. package/styled-system/debug/src__components__Code__Code.css +25 -0
  26. package/styled-system/debug/src__components__Code__Pre.ast.json +53 -0
  27. package/styled-system/debug/src__components__Code__Pre.css +45 -0
  28. package/styled-system/debug/src__components__Code__copy-to-clipboard-button.ast.json +68 -0
  29. package/styled-system/debug/src__components__Code__copy-to-clipboard-button.css +167 -0
  30. package/styled-system/debug/src__components__Heading__Heading.ast.json +59 -0
  31. package/styled-system/debug/src__components__Heading__Heading.css +25 -0
  32. package/styled-system/debug/src__components__Icon__Icon.ast.json +28 -0
  33. package/styled-system/debug/src__components__Icon__Icon.css +9 -0
  34. package/styled-system/debug/src__components__Icon__iconStyle.ast.json +27 -0
  35. package/styled-system/debug/src__components__Icon__iconStyle.css +5 -0
  36. package/styled-system/debug/src__components__Input__Input.ast.json +50 -0
  37. package/styled-system/debug/src__components__Input__Input.css +79 -0
  38. package/styled-system/debug/src__components__Label__Label.ast.json +45 -0
  39. package/styled-system/debug/src__components__Label__Label.css +40 -0
  40. package/styled-system/debug/src__components__Link__Link.ast.json +72 -0
  41. package/styled-system/debug/src__components__Link__Link.css +39 -0
  42. package/styled-system/debug/src__components__Link__linkStyles.ast.json +59 -0
  43. package/styled-system/debug/src__components__Link__linkStyles.css +77 -0
  44. package/styled-system/debug/src__components__Spinner__spinnerStyles.ast.json +56 -0
  45. package/styled-system/debug/src__components__Spinner__spinnerStyles.css +69 -0
  46. package/styled-system/debug/src__components__Text__Text.ast.json +57 -0
  47. package/styled-system/debug/src__components__Text__Text.css +22 -0
  48. package/styled-system/debug/src__components__Text__Text.stories.ast.json +60 -0
  49. package/styled-system/debug/src__components__Text__Text.stories.css +40 -0
  50. package/styled-system/debug/src__components__Textarea__Textarea.ast.json +50 -0
  51. package/styled-system/debug/src__components__Textarea__Textarea.css +92 -0
  52. package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.ast.json +42 -0
  53. package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.css +101 -0
  54. package/styled-system/helpers.js +336 -0
  55. package/styled-system/helpers.mjs +336 -0
  56. package/styled-system/jsx/aspect-ratio.d.ts +10 -0
  57. package/styled-system/jsx/aspect-ratio.js +14 -0
  58. package/styled-system/jsx/aspect-ratio.mjs +14 -0
  59. package/styled-system/jsx/bleed.d.ts +10 -0
  60. package/styled-system/jsx/bleed.js +14 -0
  61. package/styled-system/jsx/bleed.mjs +14 -0
  62. package/styled-system/jsx/box.d.ts +10 -0
  63. package/styled-system/jsx/box.mjs +14 -0
  64. package/styled-system/jsx/center.d.ts +10 -0
  65. package/styled-system/jsx/center.js +14 -0
  66. package/styled-system/jsx/center.mjs +14 -0
  67. package/styled-system/jsx/circle.d.ts +10 -0
  68. package/styled-system/jsx/circle.js +14 -0
  69. package/styled-system/jsx/circle.mjs +14 -0
  70. package/styled-system/jsx/container.d.ts +10 -0
  71. package/styled-system/jsx/container.js +14 -0
  72. package/styled-system/jsx/container.mjs +14 -0
  73. package/styled-system/jsx/cq.d.ts +10 -0
  74. package/styled-system/jsx/cq.js +14 -0
  75. package/styled-system/jsx/cq.mjs +14 -0
  76. package/styled-system/jsx/divider.d.ts +10 -0
  77. package/styled-system/jsx/divider.mjs +14 -0
  78. package/styled-system/jsx/factory-helper.js +22 -0
  79. package/styled-system/jsx/factory-helper.mjs +22 -0
  80. package/styled-system/jsx/factory.d.ts +3 -0
  81. package/styled-system/jsx/factory.js +80 -0
  82. package/styled-system/jsx/factory.mjs +80 -0
  83. package/styled-system/jsx/flex.d.ts +10 -0
  84. package/styled-system/jsx/flex.js +14 -0
  85. package/styled-system/jsx/flex.mjs +14 -0
  86. package/styled-system/jsx/float.d.ts +10 -0
  87. package/styled-system/jsx/float.js +14 -0
  88. package/styled-system/jsx/float.mjs +14 -0
  89. package/styled-system/jsx/grid-item.d.ts +10 -0
  90. package/styled-system/jsx/grid-item.js +14 -0
  91. package/styled-system/jsx/grid-item.mjs +14 -0
  92. package/styled-system/jsx/grid.d.ts +10 -0
  93. package/styled-system/jsx/grid.js +14 -0
  94. package/styled-system/jsx/grid.mjs +14 -0
  95. package/styled-system/jsx/hstack.d.ts +10 -0
  96. package/styled-system/jsx/hstack.js +14 -0
  97. package/styled-system/jsx/hstack.mjs +14 -0
  98. package/styled-system/jsx/icon.d.ts +10 -0
  99. package/styled-system/jsx/icon.js +14 -0
  100. package/styled-system/jsx/icon.mjs +14 -0
  101. package/styled-system/jsx/index.d.ts +23 -0
  102. package/styled-system/jsx/index.js +21 -0
  103. package/styled-system/jsx/index.mjs +21 -0
  104. package/styled-system/jsx/is-valid-prop.d.ts +11 -0
  105. package/styled-system/jsx/is-valid-prop.js +17 -0
  106. package/styled-system/jsx/is-valid-prop.mjs +17 -0
  107. package/styled-system/jsx/link-overlay.d.ts +10 -0
  108. package/styled-system/jsx/link-overlay.js +14 -0
  109. package/styled-system/jsx/link-overlay.mjs +14 -0
  110. package/styled-system/jsx/spacer.d.ts +10 -0
  111. package/styled-system/jsx/spacer.js +14 -0
  112. package/styled-system/jsx/spacer.mjs +14 -0
  113. package/styled-system/jsx/square.d.ts +10 -0
  114. package/styled-system/jsx/square.js +14 -0
  115. package/styled-system/jsx/square.mjs +14 -0
  116. package/styled-system/jsx/stack.d.ts +10 -0
  117. package/styled-system/jsx/stack.js +14 -0
  118. package/styled-system/jsx/stack.mjs +14 -0
  119. package/styled-system/jsx/visually-hidden.d.ts +10 -0
  120. package/styled-system/jsx/visually-hidden.js +14 -0
  121. package/styled-system/jsx/visually-hidden.mjs +14 -0
  122. package/styled-system/jsx/vstack.d.ts +10 -0
  123. package/styled-system/jsx/vstack.js +14 -0
  124. package/styled-system/jsx/vstack.mjs +14 -0
  125. package/styled-system/jsx/wrap.d.ts +10 -0
  126. package/styled-system/jsx/wrap.js +14 -0
  127. package/styled-system/jsx/wrap.mjs +14 -0
  128. package/styled-system/patterns/aspect-ratio.d.ts +21 -0
  129. package/styled-system/patterns/aspect-ratio.js +38 -0
  130. package/styled-system/patterns/aspect-ratio.mjs +38 -0
  131. package/styled-system/patterns/bleed.d.ts +22 -0
  132. package/styled-system/patterns/bleed.js +24 -0
  133. package/styled-system/patterns/bleed.mjs +24 -0
  134. package/styled-system/patterns/box.d.ts +21 -0
  135. package/styled-system/patterns/box.mjs +15 -0
  136. package/styled-system/patterns/center.d.ts +21 -0
  137. package/styled-system/patterns/center.js +21 -0
  138. package/styled-system/patterns/center.mjs +21 -0
  139. package/styled-system/patterns/circle.d.ts +21 -0
  140. package/styled-system/patterns/circle.js +25 -0
  141. package/styled-system/patterns/circle.mjs +25 -0
  142. package/styled-system/patterns/container.d.ts +21 -0
  143. package/styled-system/patterns/container.js +24 -0
  144. package/styled-system/patterns/container.mjs +24 -0
  145. package/styled-system/patterns/cq.d.ts +22 -0
  146. package/styled-system/patterns/cq.js +21 -0
  147. package/styled-system/patterns/cq.mjs +21 -0
  148. package/styled-system/patterns/divider.d.ts +23 -0
  149. package/styled-system/patterns/divider.mjs +25 -0
  150. package/styled-system/patterns/flex.d.ts +27 -0
  151. package/styled-system/patterns/flex.js +26 -0
  152. package/styled-system/patterns/flex.mjs +26 -0
  153. package/styled-system/patterns/float.d.ts +24 -0
  154. package/styled-system/patterns/float.js +52 -0
  155. package/styled-system/patterns/float.mjs +52 -0
  156. package/styled-system/patterns/grid-item.d.ts +26 -0
  157. package/styled-system/patterns/grid-item.js +25 -0
  158. package/styled-system/patterns/grid-item.mjs +25 -0
  159. package/styled-system/patterns/grid.d.ts +25 -0
  160. package/styled-system/patterns/grid.js +27 -0
  161. package/styled-system/patterns/grid.mjs +27 -0
  162. package/styled-system/patterns/hstack.d.ts +22 -0
  163. package/styled-system/patterns/hstack.js +24 -0
  164. package/styled-system/patterns/hstack.mjs +24 -0
  165. package/styled-system/patterns/icon.d.ts +21 -0
  166. package/styled-system/patterns/icon.js +20 -0
  167. package/styled-system/patterns/icon.mjs +20 -0
  168. package/styled-system/patterns/index.d.ts +20 -0
  169. package/styled-system/patterns/index.js +19 -0
  170. package/styled-system/patterns/index.mjs +19 -0
  171. package/styled-system/patterns/link-overlay.d.ts +21 -0
  172. package/styled-system/patterns/link-overlay.js +24 -0
  173. package/styled-system/patterns/link-overlay.mjs +24 -0
  174. package/styled-system/patterns/spacer.d.ts +21 -0
  175. package/styled-system/patterns/spacer.js +21 -0
  176. package/styled-system/patterns/spacer.mjs +21 -0
  177. package/styled-system/patterns/square.d.ts +21 -0
  178. package/styled-system/patterns/square.js +24 -0
  179. package/styled-system/patterns/square.mjs +24 -0
  180. package/styled-system/patterns/stack.d.ts +24 -0
  181. package/styled-system/patterns/stack.js +24 -0
  182. package/styled-system/patterns/stack.mjs +24 -0
  183. package/styled-system/patterns/visually-hidden.d.ts +21 -0
  184. package/styled-system/patterns/visually-hidden.js +18 -0
  185. package/styled-system/patterns/visually-hidden.mjs +18 -0
  186. package/styled-system/patterns/vstack.d.ts +22 -0
  187. package/styled-system/patterns/vstack.js +24 -0
  188. package/styled-system/patterns/vstack.mjs +24 -0
  189. package/styled-system/patterns/wrap.d.ts +25 -0
  190. package/styled-system/patterns/wrap.js +25 -0
  191. package/styled-system/patterns/wrap.mjs +25 -0
  192. package/styled-system/recipes/box.d.ts +28 -0
  193. package/styled-system/recipes/box.js +24 -0
  194. package/styled-system/recipes/box.mjs +24 -0
  195. package/styled-system/recipes/button.d.ts +35 -0
  196. package/styled-system/recipes/button.js +41 -0
  197. package/styled-system/recipes/button.mjs +41 -0
  198. package/styled-system/recipes/checkbox.d.ts +28 -0
  199. package/styled-system/recipes/checkbox.js +40 -0
  200. package/styled-system/recipes/checkbox.mjs +40 -0
  201. package/styled-system/recipes/code.d.ts +28 -0
  202. package/styled-system/recipes/code.js +24 -0
  203. package/styled-system/recipes/code.mjs +24 -0
  204. package/styled-system/recipes/create-recipe.js +82 -0
  205. package/styled-system/recipes/create-recipe.mjs +82 -0
  206. package/styled-system/recipes/divider.d.ts +35 -0
  207. package/styled-system/recipes/divider.js +38 -0
  208. package/styled-system/recipes/divider.mjs +38 -0
  209. package/styled-system/recipes/heading.d.ts +31 -0
  210. package/styled-system/recipes/heading.js +33 -0
  211. package/styled-system/recipes/heading.mjs +33 -0
  212. package/styled-system/recipes/icon-button.d.ts +35 -0
  213. package/styled-system/recipes/icon-button.js +41 -0
  214. package/styled-system/recipes/icon-button.mjs +41 -0
  215. package/styled-system/recipes/index.d.ts +16 -0
  216. package/styled-system/recipes/index.js +15 -0
  217. package/styled-system/recipes/index.mjs +15 -0
  218. package/styled-system/recipes/input.d.ts +31 -0
  219. package/styled-system/recipes/input.js +31 -0
  220. package/styled-system/recipes/input.mjs +31 -0
  221. package/styled-system/recipes/label.d.ts +38 -0
  222. package/styled-system/recipes/label.js +83 -0
  223. package/styled-system/recipes/label.mjs +83 -0
  224. package/styled-system/recipes/link.d.ts +38 -0
  225. package/styled-system/recipes/link.js +83 -0
  226. package/styled-system/recipes/link.mjs +83 -0
  227. package/styled-system/recipes/pre.d.ts +28 -0
  228. package/styled-system/recipes/pre.js +24 -0
  229. package/styled-system/recipes/pre.mjs +24 -0
  230. package/styled-system/recipes/radio.d.ts +28 -0
  231. package/styled-system/recipes/radio.js +40 -0
  232. package/styled-system/recipes/radio.mjs +40 -0
  233. package/styled-system/recipes/spinner.d.ts +31 -0
  234. package/styled-system/recipes/spinner.js +32 -0
  235. package/styled-system/recipes/spinner.mjs +32 -0
  236. package/styled-system/recipes/switchbox.d.ts +28 -0
  237. package/styled-system/recipes/switchbox.mjs +40 -0
  238. package/styled-system/recipes/text.d.ts +37 -0
  239. package/styled-system/recipes/text.js +80 -0
  240. package/styled-system/recipes/text.mjs +80 -0
  241. package/styled-system/recipes/textarea.d.ts +31 -0
  242. package/styled-system/recipes/textarea.js +32 -0
  243. package/styled-system/recipes/textarea.mjs +32 -0
  244. package/styled-system/recipes/textinput.d.ts +32 -0
  245. package/styled-system/recipes/textinput.mjs +35 -0
  246. package/styled-system/styles.css +672 -0
  247. package/styled-system/tokens/index.d.ts +9 -0
  248. package/styled-system/tokens/index.js +1480 -0
  249. package/styled-system/tokens/index.mjs +1480 -0
  250. package/styled-system/tokens/tokens.d.ts +60 -0
  251. package/styled-system/types/composition.d.ts +164 -0
  252. package/styled-system/types/conditions.d.ts +306 -0
  253. package/styled-system/types/csstype.d.ts +21298 -0
  254. package/styled-system/types/global.d.ts +20 -0
  255. package/styled-system/types/index.d.ts +8 -0
  256. package/styled-system/types/jsx.d.ts +52 -0
  257. package/styled-system/types/parts.d.ts +8 -0
  258. package/styled-system/types/pattern.d.ts +78 -0
  259. package/styled-system/types/prop-type.d.ts +235 -0
  260. package/styled-system/types/recipe.d.ts +181 -0
  261. package/styled-system/types/selectors.d.ts +59 -0
  262. package/styled-system/types/static-css.d.ts +56 -0
  263. package/styled-system/types/style-props.d.ts +7468 -0
  264. package/styled-system/types/system-types.d.ts +109 -0
  265. package/.github/CODEOWNERS +0 -1
  266. package/.husky/task-runner.json +0 -10
  267. package/.nvmrc +0 -1
  268. package/.prettierrc +0 -8
  269. package/.storybook/main.ts +0 -18
  270. package/.storybook/preview-body.html +0 -0
  271. package/.storybook/preview-head.tsx +0 -1
  272. package/.storybook/preview.tsx +0 -21
  273. package/index.html +0 -13
  274. package/panda.config.ts +0 -201
  275. package/postcss.config.cjs +0 -5
  276. package/src/App.tsx +0 -429
  277. package/src/contexts/ThemeContext.tsx +0 -77
  278. package/src/main.tsx +0 -10
  279. package/src/recipes/box.ts +0 -16
  280. package/src/recipes/button.ts +0 -220
  281. package/src/recipes/checkbox.ts +0 -88
  282. package/src/recipes/code.ts +0 -37
  283. package/src/recipes/divider.ts +0 -40
  284. package/src/recipes/index.ts +0 -10
  285. package/src/recipes/input.ts +0 -56
  286. package/src/recipes/radio.ts +0 -71
  287. package/src/recipes/spinner.ts +0 -42
  288. package/src/recipes/text.ts +0 -185
  289. package/src/recipes/textarea.ts +0 -77
  290. package/src/styles/conditions.ts +0 -108
  291. package/src/styles/font-imports.css +0 -35
  292. package/src/styles/globalStyle.ts +0 -85
  293. package/src/styles/index.css +0 -3
  294. package/src/styles/semanticTokens.ts +0 -110
  295. package/src/styles/tokens.ts +0 -580
  296. package/src/vite-env.d.ts +0 -1
  297. package/tsconfig.json +0 -33
  298. package/vite.config.ts +0 -39
@@ -1,185 +0,0 @@
1
- import { defineRecipe } from '@pandacss/dev';
2
- import {
3
- fontSizes as fontSizeTokens,
4
- fontWeights as fontWeightTokens,
5
- } from '~/styles/tokens';
6
-
7
- const textBase = {
8
- margin: '0',
9
- lineHeight: 'default',
10
- fontWeight: 'normal',
11
- fontSize: '16',
12
- color: { base: 'slate.60', _dark: 'slate.30' },
13
- };
14
-
15
- type FontSizeKey = keyof typeof fontSizeTokens;
16
- const fontSizes = (Object.keys(fontSizeTokens) as FontSizeKey[]).reduce(
17
- (accumulator, currentKey) => {
18
- accumulator[currentKey] = { fontSize: fontSizeTokens[currentKey].value };
19
- return accumulator;
20
- },
21
- {} as Record<FontSizeKey, Record<'fontSize', string>>,
22
- );
23
-
24
- type FontWeightKey = keyof typeof fontWeightTokens;
25
- const fontWeights = (Object.keys(fontWeightTokens) as FontWeightKey[]).reduce(
26
- (accumulator, currentKey) => {
27
- accumulator[currentKey] = {
28
- fontWeight: fontWeightTokens[currentKey].value,
29
- };
30
- return accumulator;
31
- },
32
- {} as Record<FontWeightKey, Record<'fontWeight', number>>,
33
- );
34
-
35
- const textVariants = {
36
- textStyle: {
37
- 'display-lg': { textStyle: 'display.lg' },
38
- 'display-md': { textStyle: 'display.md' },
39
- 'display-sm': { textStyle: 'display.sm' },
40
- 'display-xs': { textStyle: 'display.xs' },
41
- 'heading-lg': { textStyle: 'heading.lg' },
42
- 'heading-md': { textStyle: 'heading.md' },
43
- 'heading-sm': { textStyle: 'heading.sm' },
44
- 'heading-xs': { textStyle: 'heading.xs' },
45
- 'body-lg': { textStyle: 'body.lg' },
46
- 'body-md': { textStyle: 'body.md' },
47
- 'body-sm': { textStyle: 'body.sm' },
48
- 'body-xs': { textStyle: 'body.xs' },
49
- 'mono-lg': { textStyle: 'mono.lg' },
50
- 'mono-md': { textStyle: 'mono.md' },
51
- 'mono-sm': { textStyle: 'mono.sm' },
52
- 'mono-xs': { textStyle: 'mono.xs' },
53
- },
54
- family: {
55
- heading: { fontFamily: 'heading' },
56
- body: { fontFamily: 'body' },
57
- mono: {
58
- fontFamily: 'mono',
59
- fontVariationSettings: '"CRSV" 0, "CASL" 0, "MONO" 1',
60
- },
61
- },
62
- bold: {
63
- true: {
64
- fontWeight: 'bold',
65
- },
66
- },
67
- italic: {
68
- true: {
69
- fontStyle: 'italic',
70
- fontVariationSettings: '"CRSV" 0, "CASL" 0, "slnt" -15',
71
- },
72
- },
73
- underline: {
74
- true: {
75
- textDecoration: 'underline',
76
- },
77
- },
78
- size: fontSizes,
79
- weight: fontWeights,
80
- };
81
-
82
- const headingBase = {
83
- fontFamily: 'heading',
84
- fontWeight: 'black',
85
- color: { base: 'slate.90', _dark: 'slate.5' },
86
- lineHeight: 'default',
87
- };
88
-
89
- const headingVariants = {
90
- level: {
91
- h1: { textStyle: 'heading.lg' },
92
- h2: { textStyle: 'heading.md' },
93
- h3: { textStyle: 'heading.sm' },
94
- h4: { textStyle: 'heading.xs' },
95
- },
96
- };
97
-
98
- const linkBase = {
99
- display: 'inline-flex',
100
- alignItems: 'center',
101
- fontWeight: 'medium',
102
- gap: '1',
103
- color: { base: 'blue.50', _dark: 'blue.40' },
104
- textDecoration: 'none',
105
- backgroundImage: 'linear-gradient(90deg, transparent 0% 100%)',
106
- backgroundSize: '100% 1px',
107
- backgroundRepeat: 'no-repeat',
108
- backgroundPositionY: '100%',
109
- width: 'fit-content',
110
- cursor: 'pointer',
111
- _hover: {
112
- color: { base: 'blue.40', _dark: 'blue.30' },
113
- backgroundImage: 'linear-gradient(90deg, currentColor 0% 100%)',
114
- },
115
- };
116
-
117
- const linkVariants = {
118
- ...textVariants,
119
- _disabled: {
120
- true: {
121
- cursor: 'not-allowed',
122
- opacity: 0.7,
123
- pointerEvents: 'none',
124
- },
125
- },
126
- };
127
-
128
- const labelBase = {
129
- fontSize: '14',
130
- fontWeight: 'normal',
131
- lineHeight: 'normal',
132
- cursor: 'default',
133
- };
134
-
135
- //Copied linkvarients, don't have styles defined for this yet
136
- const labelVariants = {
137
- ...textVariants,
138
- _disabled: {
139
- true: {
140
- cursor: 'not-allowed',
141
- opacity: 0.7,
142
- pointerEvents: 'none',
143
- },
144
- },
145
- };
146
-
147
- export const textRecipe = defineRecipe({
148
- className: 'text',
149
- jsx: ['Text'],
150
- base: textBase,
151
- variants: textVariants,
152
- defaultVariants: {
153
- textStyle: 'body-md',
154
- },
155
- });
156
-
157
- export const headingRecipe = defineRecipe({
158
- className: 'heading',
159
- jsx: ['Heading'],
160
- base: headingBase,
161
- variants: headingVariants,
162
- defaultVariants: {
163
- level: 'h2',
164
- },
165
- });
166
-
167
- export const linkRecipe = defineRecipe({
168
- className: 'link',
169
- jsx: ['Link'],
170
- base: linkBase,
171
- variants: linkVariants,
172
- defaultVariants: {
173
- family: 'body',
174
- },
175
- });
176
-
177
- export const labelRecipe = defineRecipe({
178
- className: 'label',
179
- jsx: ['Label'],
180
- base: labelBase,
181
- variants: labelVariants,
182
- defaultVariants: {
183
- family: 'body',
184
- },
185
- });
@@ -1,77 +0,0 @@
1
- import { defineRecipe } from '@pandacss/dev';
2
-
3
- const textareaBase = {
4
- position: 'relative',
5
- display: 'inline-grid',
6
- verticalAlign: 'top',
7
- alignItems: 'center',
8
- padding: '0',
9
- fontFamily: 'body',
10
- fontSize: '16',
11
- fontWeight: 'normal',
12
- lineHeight: 'normal',
13
- color: { base: 'slate.90', _osDark: 'slate.5' },
14
- borderRadius: '8',
15
- width: 'full',
16
- '&::after, & textarea': {
17
- width: 'auto',
18
- minWidth: '16',
19
- maxWidth: 'full',
20
- font: 'inherit',
21
- py: '4',
22
- px: '8',
23
- m: '0',
24
- resize: 'none',
25
- appearance: 'none',
26
- borderWidth: '1',
27
- borderStyle: 'solid',
28
- borderRadius: '4',
29
- borderColor: 'transparent',
30
- background: { base: 'slate.0', _osDark: 'slate.90' },
31
- _hover: {
32
- borderColor: { base: 'slate.20', _osDark: 'slate.30' },
33
- },
34
- _focus: {
35
- borderColor: { base: 'slate.90', _osDark: 'slate.5' },
36
- },
37
- },
38
- _after: {
39
- content: 'attr(data-value) " "',
40
- outline: '1px solid olive',
41
- whiteSpace: 'pre-wrap',
42
- transform: 'translate(4px, 4px)',
43
- opacity: '0.3',
44
- },
45
- '& textarea': {},
46
- gridTemplateColumns: 'auto 1fr',
47
- };
48
-
49
- const textareaVariants = {
50
- variant: {
51
- autoGrow: {
52
- width: 'fit-content',
53
- },
54
- stacked: {
55
- gridTemplateRows: 'auto 1fr',
56
- alignItems: 'stretch',
57
- '&::after, & textarea': {
58
- gridArea: '2 / 1',
59
- },
60
- '& textarea': {
61
- background: { base: 'slate.0', _osDark: 'slate.90' },
62
- borderColor: { base: 'slate.40', _osDark: 'slate.50' },
63
- },
64
- },
65
- internalLabel: {},
66
- },
67
- };
68
-
69
- export const textareaRecipe = defineRecipe({
70
- className: 'textarea',
71
- jsx: ['Textarea'],
72
- base: textareaBase,
73
- variants: textareaVariants,
74
- defaultVariants: {
75
- variant: 'autoGrow',
76
- },
77
- });
@@ -1,108 +0,0 @@
1
- export const conditions = {
2
- hover: '&:is(:hover, [data-hover])',
3
- focus: '&:is(:focus, [data-focus])',
4
- focusWithin: '&:focus-within',
5
- focusVisible: '&:is(:focus-visible, [data-focus-visible])',
6
- disabled: '&:is(:disabled, [disabled], [data-disabled])',
7
- error: '&:is([data-error], [error])',
8
- active: '&:is(:active, [data-active])',
9
- visited: '&:visited',
10
- target: '&:target',
11
- readOnly: '&:is(:read-only, [data-read-only])',
12
- readWrite: '&:read-write',
13
- empty: '&:is(:empty, [data-empty])',
14
- checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])',
15
- // checked: '&:has(+ input[type=checkbox]:checked)',
16
- enabled: '&:enabled',
17
- expanded: '&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])',
18
- highlighted: '&[data-highlighted]',
19
-
20
- before: '&::before',
21
- after: '&::after',
22
- firstLetter: '&::first-letter',
23
- firstLine: '&::first-line',
24
- marker: '&::marker',
25
- selection: '&::selection',
26
- file: '&::file-selector-button',
27
- backdrop: '&::backdrop',
28
-
29
- first: '&:first-child',
30
- last: '&:last-child',
31
- only: '&:only-child',
32
- even: '&:nth-child(even)',
33
- odd: '&:nth-child(odd)',
34
-
35
- firstOfType: '&:first-of-type',
36
- lastOfType: '&:last-of-type',
37
- onlyOfType: '&:only-of-type',
38
-
39
- peerFocus: '.peer:is(:focus, [data-focus]) ~ &',
40
- peerHover: '.peer:is(:hover, [data-hover]) ~ &',
41
- peerActive: '.peer:is(:active, [data-active]) ~ &',
42
- peerFocusWithin: '.peer:focus-within ~ &',
43
- peerFocusVisible: '.peer:is(:focus-visible, [data-focus-visible]) ~ &',
44
- peerDisabled: '.peer:is(:disabled, [disabled], [data-disabled]) ~ &',
45
- peerChecked: '.peer:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) ~ &',
46
- peerInvalid: '.peer:is(:invalid, [data-invalid], [aria-invalid=true]) ~ &',
47
- peerExpanded: '.peer:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) ~ &',
48
- peerPlaceholderShown: '.peer:placeholder-shown ~ &',
49
-
50
- groupFocus: '.group:is(:focus, [data-focus]) &',
51
- groupHover: '.group:is(:hover, [data-hover]) &',
52
- groupActive: '.group:is(:active, [data-active]) &',
53
- groupFocusWithin: '.group:focus-within &',
54
- groupFocusVisible: '.group:is(:focus-visible, [data-focus-visible]) &',
55
- groupDisabled: '.group:is(:disabled, [disabled], [data-disabled]) &',
56
- groupChecked: '.group:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"]) &',
57
- groupExpanded: '.group:is([aria-expanded=true], [data-expanded], [data-state="expanded"]) &',
58
- groupInvalid: '.group:invalid &',
59
-
60
- indeterminate: '&:is(:indeterminate, [data-indeterminate], [aria-checked=mixed], [data-state="indeterminate"])',
61
- required: '&:is(:required, [data-required], [aria-required=true])',
62
- valid: '&:is(:valid, [data-valid])',
63
- invalid: '&:is(:invalid, [data-invalid])',
64
- autofill: '&:autofill',
65
- inRange: '&:in-range',
66
- outOfRange: '&:out-of-range',
67
- placeholder: '&::placeholder, &[data-placeholder]',
68
- placeholderShown: '&:is(:placeholder-shown, [data-placeholder-shown])',
69
- pressed: '&:is([aria-pressed=true], [data-pressed])',
70
- selected: '&:is([aria-selected=true], [data-selected])',
71
-
72
- default: '&:default',
73
- optional: '&:optional',
74
- open: '&:is([open], [data-open], [data-state="open"])',
75
- closed: '&:is([closed], [data-closed], [data-state="closed"])',
76
- fullscreen: '&:fullscreen',
77
- loading: '&:is([data-loading], [aria-busy=true])',
78
-
79
- currentPage: '&[aria-current=page]',
80
- currentStep: '&[aria-current=step]',
81
-
82
- motionReduce: '@media (prefers-reduced-motion: reduce)',
83
- motionSafe: '@media (prefers-reduced-motion: no-preference)',
84
- print: '@media print',
85
- landscape: '@media (orientation: landscape)',
86
- portrait: '@media (orientation: portrait)',
87
-
88
- dark: '.dark &, [data-color-mode=dark] &',
89
- light: '.light &, [data-color-mode=light] &',
90
- osDark: '@media (prefers-color-scheme: dark)',
91
- osLight: '@media (prefers-color-scheme: light)',
92
-
93
- highContrast: '@media (forced-colors: active)',
94
- lessContrast: '@media (prefers-contrast: less)',
95
- moreContrast: '@media (prefers-contrast: more)',
96
-
97
- ltr: '[dir=ltr] &',
98
- rtl: '[dir=rtl] &',
99
-
100
- scrollbar: '&::-webkit-scrollbar',
101
- scrollbarThumb: '&::-webkit-scrollbar-thumb',
102
- scrollbarTrack: '&::-webkit-scrollbar-track',
103
-
104
- horizontal: '&[data-orientation=horizontal]',
105
- vertical: '&[data-orientation=vertical]',
106
-
107
- starting: '@starting-style',
108
- }
@@ -1,35 +0,0 @@
1
- /*
2
- --------------------
3
- Font imports
4
- --------------------
5
- */
6
-
7
- @layer base {
8
- /* ruda-latin-wght-normal */
9
- @font-face {
10
- font-family: 'Ruda Variable';
11
- font-style: normal;
12
- font-display: swap;
13
- font-weight: 400 900;
14
- src: url(@fontsource-variable/ruda/files/ruda-latin-wght-normal.woff2)
15
- format('woff2-variations');
16
- unicode-range:
17
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
18
- U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
19
- U+2212, U+2215, U+FEFF, U+FFFD;
20
- }
21
- /* recursive-latin-wght-normal */
22
- /* https://www.recursive.design/ */
23
- @font-face {
24
- font-family: 'Recursive Variable';
25
- font-style: oblique 0deg 15deg;
26
- font-display: swap;
27
- font-weight: 300 1000;
28
- src: url(@fontsource-variable/recursive/files/recursive-latin-full-normal.woff2)
29
- format('woff2-variations');
30
- unicode-range:
31
- U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
32
- U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
33
- U+2212, U+2215, U+FEFF, U+FFFD;
34
- }
35
- }
@@ -1,85 +0,0 @@
1
- import { defineGlobalStyles } from '@pandacss/dev';
2
-
3
- // includes some normalize styles from:
4
- // https://github.com/sindresorhus/modern-normalize/blob/main/modern-normalize.css
5
-
6
- export const globalCss = defineGlobalStyles({
7
- '*, *::before, *::after': {
8
- boxSizing: 'border-box',
9
- margin: 0,
10
- padding: 0,
11
- _focusVisible: {
12
- outlineColor: { base: 'slate.80', _dark: 'slate.5' },
13
- },
14
- },
15
- html: {
16
- fontSize: '16',
17
- lineHeight: 'calc(1em + 0.5rem)',
18
- '-webkit-text-size-adjust': '100%',
19
- tabSize: '4',
20
- },
21
- body: {
22
- fontFamily: 'body',
23
- fontVariationSettings: '"CRSV" 0, "CASL" 0',
24
- bg: { base: 'slate.0', _dark: 'slate.90' },
25
- color: { base: 'slate.60', _dark: 'slate.20' },
26
- fontWeight: 'normal',
27
- },
28
- 'h1, h2, h3, h4, h5, h6': {
29
- color: { base: 'slate.90', _dark: 'slate.5' },
30
- fontWeight: 'black',
31
- lineHeight: 'calc(1em + 0.5rem)',
32
- },
33
- p: {
34
- marginBottom: '0.5rem',
35
- },
36
- 'b, strong': {
37
- fontWeight: 'bold',
38
- },
39
- 'i, em': {
40
- fontStyle: 'italic',
41
- fontVariationSettings: '"CRSV" 0, "CASL" 0, "slnt" -15',
42
- },
43
- u: {
44
- textDecoration: 'underline',
45
- },
46
- 'code, kbd, samp, pre': {
47
- fontFamily: 'mono',
48
- fontSize: '1em',
49
- },
50
- table: {
51
- borderColor: 'currentcolor',
52
- },
53
- 'button, input, optgroup, select, textarea': {
54
- fontFamily: 'inherit',
55
- fontSize: '100%',
56
- lineHeight: '1.15',
57
- margin: '0',
58
- },
59
- 'button, [type="button"], [type="reset"], [type="submit"]': {
60
- '-webkit-appearance': 'button',
61
- },
62
- legend: {
63
- padding: '0',
64
- },
65
- progress: {
66
- verticalAlign: 'baseline',
67
- },
68
- '::-webkit-inner-spin-button, ::-webkit-outer-spin-button': {
69
- height: 'auto',
70
- },
71
- '[type="search"]': {
72
- '-webkit-appearance': 'textfield',
73
- outlineOffset: '-2px',
74
- },
75
- '::-webkit-search-decoration': {
76
- '-webkit-appearance': 'none',
77
- },
78
- '::-webkit-file-upload-button': {
79
- '-webkit-appearance': 'button',
80
- font: 'inherit',
81
- },
82
- summary: {
83
- display: 'list-item',
84
- },
85
- });
@@ -1,3 +0,0 @@
1
- @layer reset, base, tokens, recipes, utilities;
2
-
3
- @import 'font-imports.css';
@@ -1,110 +0,0 @@
1
- export const colors = {
2
- brand: {
3
- slate: { value: '{colors.slate.90}' },
4
- gold: { value: '{colors.gold.20}' },
5
- },
6
- success: {
7
- lighter: {
8
- value: {
9
- base: '{colors.green.2}',
10
- _dark: '{colors.green.5}',
11
- },
12
- },
13
- light: {
14
- value: {
15
- base: '{colors.green.10}',
16
- _dark: '{colors.green.20}',
17
- },
18
- },
19
- default: {
20
- value: {
21
- base: '{colors.green.40}',
22
- _dark: '{colors.green.30}',
23
- },
24
- },
25
- dark: {
26
- value: {
27
- base: '{colors.green.60}',
28
- _dark: '{colors.green.60}',
29
- },
30
- },
31
- darker: {
32
- value: {
33
- base: '{colors.green.70}',
34
- _dark: '{colors.green.70}',
35
- },
36
- },
37
- },
38
- warning: {
39
- lighter: {
40
- value: {
41
- base: '{colors.yellow.2}',
42
- _dark: '{colors.yellow.2}',
43
- },
44
- },
45
- light: {
46
- value: {
47
- base: '{colors.yellow.10}',
48
- _dark: '{colors.yellow.10}',
49
- },
50
- },
51
- default: {
52
- value: {
53
- base: '{colors.yellow.30}',
54
- _dark: '{colors.yellow.20}',
55
- },
56
- },
57
- dark: {
58
- value: {
59
- base: '{colors.yellow.60}',
60
- _dark: '{colors.yellow.60}',
61
- },
62
- },
63
- darker: {
64
- value: {
65
- base: '{colors.yellow.70}',
66
- _dark: '{colors.yellow.70}',
67
- },
68
- },
69
- },
70
- error: {
71
- lighter: {
72
- value: {
73
- base: '{colors.red.2}',
74
- _dark: '{colors.red.5}',
75
- },
76
- },
77
- light: {
78
- value: {
79
- base: '{colors.red.10}',
80
- _dark: '{colors.red.20}',
81
- },
82
- },
83
- default: {
84
- value: {
85
- base: '{colors.red.50}',
86
- _dark: '{colors.red.40}',
87
- },
88
- },
89
- dark: {
90
- value: {
91
- base: '{colors.red.60}',
92
- _dark: '{colors.red.60}',
93
- },
94
- },
95
- darker: {
96
- value: {
97
- base: '{colors.red.70}',
98
- _dark: '{colors.red.70}',
99
- },
100
- },
101
- },
102
- utility: {
103
- shadowColor: {
104
- value: {
105
- base: '{colors.slate.90/20}',
106
- _dark: '{colors.slate.100/40}',
107
- },
108
- },
109
- },
110
- };