@drivy/cobalt 0.48.0 → 0.49.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 (92) hide show
  1. package/_virtual/_commonjsHelpers.js +6 -0
  2. package/_virtual/_commonjsHelpers.js.map +1 -0
  3. package/cjs/tokens/icons.js +3 -0
  4. package/cjs/tokens/icons.js.map +1 -1
  5. package/cjs/tokens/theme.js +4 -4
  6. package/components/Accordion/ToggleIcon.js +6 -2
  7. package/components/Accordion/ToggleIcon.js.map +1 -1
  8. package/components/Accordion/index.js +2 -2
  9. package/components/Accordion/index.js.map +1 -1
  10. package/components/Form/Stepper.js +7 -2
  11. package/components/Form/Stepper.js.map +1 -1
  12. package/components/Icon/__generated__/CircledArrowLeftIcon.js +22 -0
  13. package/components/Icon/__generated__/CircledArrowLeftIcon.js.map +1 -0
  14. package/components/Icon/__generated__/FilepdfIcon.js +21 -0
  15. package/components/Icon/__generated__/FilepdfIcon.js.map +1 -0
  16. package/components/Icon/__generated__/FilexlsIcon.js +21 -0
  17. package/components/Icon/__generated__/FilexlsIcon.js.map +1 -0
  18. package/components/Layout/Components/LayoutCard.js +2 -2
  19. package/components/Layout/Components/LayoutCard.js.map +1 -1
  20. package/components/Layout/Components/LayoutSection.js +2 -2
  21. package/components/Layout/Components/LayoutSection.js.map +1 -1
  22. package/components/Layout/Surfaces/index.js +6 -3
  23. package/components/Layout/Surfaces/index.js.map +1 -1
  24. package/components/Pagination/index.js +66 -0
  25. package/components/Pagination/index.js.map +1 -0
  26. package/components/Sidepanel/index.js +6 -4
  27. package/components/Sidepanel/index.js.map +1 -1
  28. package/icons/circled-arrow-left.js +4 -0
  29. package/icons/circled-arrow-left.js.map +1 -0
  30. package/icons/circled-arrow-left.svg +1 -0
  31. package/icons/filepdf.js +4 -0
  32. package/icons/filepdf.js.map +1 -0
  33. package/icons/filepdf.svg +1 -0
  34. package/icons/filexls.js +4 -0
  35. package/icons/filexls.js.map +1 -0
  36. package/icons/filexls.svg +1 -0
  37. package/icons/index.js +3 -0
  38. package/icons/index.js.map +1 -1
  39. package/index.js +4 -0
  40. package/index.js.map +1 -1
  41. package/package.json +30 -34
  42. package/src/tokens/breakpoints.js +13 -0
  43. package/src/tokens/breakpoints.js.map +1 -0
  44. package/src/tokens/colors.js +57 -0
  45. package/src/tokens/colors.js.map +1 -0
  46. package/src/tokens/palette.js +163 -0
  47. package/src/tokens/palette.js.map +1 -0
  48. package/src/tokens/theme.js +332 -0
  49. package/src/tokens/theme.js.map +1 -0
  50. package/src/tokens/zIndexes.js +35 -0
  51. package/src/tokens/zIndexes.js.map +1 -0
  52. package/styles/components/Accordion/index.scss +9 -0
  53. package/styles/components/Form/Stepper.scss +6 -5
  54. package/styles/components/Form/TextInput.scss +1 -1
  55. package/styles/components/Form/form.scss +5 -1
  56. package/styles/components/Layout/Components/index.scss +20 -33
  57. package/styles/components/Layout/Surfaces/index.scss +9 -10
  58. package/styles/components/Pagination/index.scss +14 -0
  59. package/styles/components/Sidepanel/index.scss +0 -1
  60. package/styles/components.scss +1 -0
  61. package/styles/core/{default-theme.scss → default-theme.css} +4 -4
  62. package/styles/core/{theme.scss → theme.css} +4 -4
  63. package/tokens/icons.js +3 -0
  64. package/tokens/icons.js.map +1 -1
  65. package/tokens/theme.js +4 -4
  66. package/types/src/components/Accordion/ToggleIcon.d.ts +2 -1
  67. package/types/src/components/Accordion/index.d.ts +4 -0
  68. package/types/src/components/Form/Autocomplete/index.d.ts +1 -1
  69. package/types/src/components/Form/TextInput.d.ts +1 -1
  70. package/types/src/components/Icon/__generated__/CircledArrowLeftIcon.d.ts +10 -0
  71. package/types/src/components/Icon/__generated__/FilepdfIcon.d.ts +10 -0
  72. package/types/src/components/Icon/__generated__/FilexlsIcon.d.ts +10 -0
  73. package/types/src/components/Icon/__generated__/index.d.ts +3 -0
  74. package/types/src/components/Icon/index.d.ts +1 -1
  75. package/types/src/components/Layout/Components/LayoutCard.d.ts +2 -1
  76. package/types/src/components/Layout/Components/LayoutSection.d.ts +2 -1
  77. package/types/src/components/Layout/Surfaces/index.d.ts +6 -3
  78. package/types/src/components/Pagination/index.d.ts +7 -0
  79. package/types/src/components/Sidepanel/index.d.ts +4 -2
  80. package/types/src/icons/index.d.ts +3 -0
  81. package/types/src/index.d.ts +1 -0
  82. package/types/src/tokens/index.d.ts +3 -0
  83. package/utilities.css +4 -18310
  84. package/utils/getCobaltTailwindcssConfig.js +8 -0
  85. package/utils/getCobaltTailwindcssConfig.js.map +1 -0
  86. package/utils/getCobaltTailwindcssConfig2.js +372 -0
  87. package/utils/getCobaltTailwindcssConfig2.js.map +1 -0
  88. package/utils/helpers.js +161 -0
  89. package/utils/helpers.js.map +1 -0
  90. package/utils/tailwindcssGenerators.js +187 -0
  91. package/utils/tailwindcssGenerators.js.map +1 -0
  92. /package/styles/core/{palette.scss → palette.css} +0 -0
@@ -0,0 +1,8 @@
1
+ import { getDefaultExportFromCjs } from '../_virtual/_commonjsHelpers.js';
2
+ import { __require as requireGetCobaltTailwindcssConfig } from './getCobaltTailwindcssConfig2.js';
3
+
4
+ var getCobaltTailwindcssConfigExports = requireGetCobaltTailwindcssConfig();
5
+ var getCobaltTailwindcssConfig = /*@__PURE__*/getDefaultExportFromCjs(getCobaltTailwindcssConfigExports);
6
+
7
+ export { getCobaltTailwindcssConfig as default };
8
+ //# sourceMappingURL=getCobaltTailwindcssConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCobaltTailwindcssConfig.js","sources":["../../utils/getCobaltTailwindcssConfig.js?commonjs-entry"],"sourcesContent":["import { getDefaultExportFromCjs } from \"\u0000commonjsHelpers.js\";\nimport { __require as requireGetCobaltTailwindcssConfig } from \"/Users/cedric/Dev/drivy/cobalt/utils/getCobaltTailwindcssConfig.js\";\nvar getCobaltTailwindcssConfigExports = requireGetCobaltTailwindcssConfig();\nexport { getCobaltTailwindcssConfigExports as __moduleExports };\nexport default /*@__PURE__*/getDefaultExportFromCjs(getCobaltTailwindcssConfigExports);"],"names":[],"mappings":";;;AAEA,IAAI,iCAAiC,GAAG,iCAAiC,EAAE,CAAC;AAE5E,iCAAe,aAAa,uBAAuB,CAAC,iCAAiC,CAAC;;;;"}
@@ -0,0 +1,372 @@
1
+ import require$$0 from '../src/tokens/breakpoints.js';
2
+ import require$$1 from '../src/tokens/colors.js';
3
+ import require$$2 from '../src/tokens/zIndexes.js';
4
+ import { __require as requireHelpers } from './helpers.js';
5
+ import { __require as requireTailwindcssGenerators } from './tailwindcssGenerators.js';
6
+
7
+ /*
8
+ FOR NODE ENVIRONMENT ONLY
9
+ Do never import tailwind file config (or helpers importing it) into Cobalt
10
+ components/stories on src/ side, it will result to have tailwindcss unecessary
11
+ dependencies into build files.
12
+ See https://github.com/tailwindcss/tailwindcss/issues/634#issuecomment-459740859
13
+ If you need data from the theme configuration, you can do the same as we did
14
+ for colors:
15
+ - create a json token file with the data needed (will be the single source of data)
16
+ - In the tailwindcss config file: import and use this json file
17
+ - In the src/ side: import and use this json file also
18
+ */
19
+
20
+ var getCobaltTailwindcssConfig_1;
21
+ var hasRequiredGetCobaltTailwindcssConfig;
22
+
23
+ function requireGetCobaltTailwindcssConfig () {
24
+ if (hasRequiredGetCobaltTailwindcssConfig) return getCobaltTailwindcssConfig_1;
25
+ hasRequiredGetCobaltTailwindcssConfig = 1;
26
+ const breakpoints = require$$0;
27
+ const legacyColors = require$$1;
28
+ const zIndexes = require$$2;
29
+ const { getColorsUsingCSSVariables } = requireHelpers();
30
+ const generators = requireTailwindcssGenerators();
31
+
32
+ const rem = (value) => `${value}rem`;
33
+
34
+ const REM = {
35
+ _12px: 0.75,
36
+ _14px: 0.875,
37
+ _15px: 0.9375,
38
+ _16px: 1,
39
+ _18px: 1.125,
40
+ _20px: 1.25,
41
+ _24px: 1.5,
42
+ _28px: 1.75,
43
+ _32px: 2,
44
+ _36px: 2.25,
45
+ _40px: 2.5,
46
+ _44px: 2.75,
47
+ _56px: 3.5,
48
+ _60px: 3.75,
49
+ _64px: 4,
50
+ };
51
+
52
+ const {
53
+ stroke: borderColors,
54
+ background: bgColors,
55
+ fill: fillColors,
56
+ text: textColors,
57
+ } = getColorsUsingCSSVariables({
58
+ additionalColors: { transparent: "transparent" },
59
+ });
60
+
61
+ const baseFont =
62
+ "BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif";
63
+
64
+ const getCobaltTailwindcssConfig = ({ content, safelist = undefined }) => ({
65
+ content,
66
+ safelist: safelist,
67
+ prefix: "c-",
68
+ // utilities to disable
69
+ corePlugins: {
70
+ // Don't use Tailwindcss reset and default styles
71
+ preflight: false,
72
+ // Handle by custom classes via generators
73
+ letterSpacing: false,
74
+ lineHeight: false,
75
+ borderStyle: false,
76
+ borderWidth: false,
77
+ fontSize: false,
78
+ // Not needed, at least for now
79
+ textOpacity: false,
80
+ backgroundOpacity: false,
81
+ caretColor: false,
82
+ boxShadowColor: false,
83
+ ringOffsetColor: false,
84
+ gradientColorStops: false,
85
+ gradientColorStopPositions: false,
86
+ textDecorationColor: false,
87
+ // SVG color
88
+ stroke: false,
89
+ fill: false,
90
+ },
91
+ theme: {
92
+ colors: {
93
+ ...legacyColors, // deprecated
94
+ current: "currentColor",
95
+ },
96
+ semanticBorderColor: borderColors,
97
+ semanticBackgroundColor: {
98
+ ...bgColors,
99
+ ...{ fill: fillColors },
100
+ },
101
+ semanticFillColor: fillColors,
102
+ borderStyle: {
103
+ solid: "solid",
104
+ dashed: "dashed",
105
+ none: "none",
106
+ },
107
+ borderWidth: {
108
+ 0: "0",
109
+ "0_5": "0.5px",
110
+ DEFAULT: "1px",
111
+ 2: "0.125rem",
112
+ 4: ".25rem",
113
+ },
114
+ borderRadius: {
115
+ none: "0",
116
+ DEFAULT: ".25rem", // c-rounded
117
+ md: ".375rem",
118
+ lg: ".5rem",
119
+ xl: ".75rem",
120
+ "2xl": "1rem",
121
+ full: "9999px", // full rounded
122
+ },
123
+ boxShadow: {
124
+ DEFAULT: "0 0.125rem 0.75rem rgba(0, 0, 0, 0.1)", // c-shadow
125
+ md: "0 0.25rem 1.5rem rgba(0, 0, 0, 0.15)",
126
+ lg: "0 0.375rem 2.25rem rgba(0, 0, 0, 0.2)",
127
+ },
128
+ semanticTextColor: textColors,
129
+ fontFamily: {
130
+ base: baseFont,
131
+ brand: `BrownPro,${baseFont}`,
132
+ mono: "Consolas,'Liberation Mono',Menlo,Courier,monospace",
133
+ },
134
+ fontWeight: {
135
+ regular: "400",
136
+ bold: "600",
137
+ },
138
+ spacing: {
139
+ none: "0",
140
+ "2xs": ".25rem",
141
+ xs: ".5rem",
142
+ sm: "1rem",
143
+ md: "1.5rem",
144
+ lg: "2rem",
145
+ xl: "3rem",
146
+ "2xl": "4rem",
147
+ },
148
+ screens: { ...breakpoints },
149
+ zIndex: Object.fromEntries(
150
+ Object.entries(zIndexes).map(([key, value]) => [key, value.toString()])
151
+ ),
152
+ // custom properties, not processed by Tailwindcss itself
153
+ customText: ({ theme }) => ({
154
+ heading: {
155
+ fontFamily: theme("fontFamily").brand,
156
+ fontSize: rem(REM._36px),
157
+ lineHeight: "125%",
158
+ fontWeight: 700,
159
+ letterSpacing: "-0.5px",
160
+ from: {
161
+ sm: {
162
+ fontSize: rem(REM._56px),
163
+ },
164
+ },
165
+ },
166
+ subheading: {
167
+ fontFamily: theme("fontFamily").brand,
168
+ fontSize: rem(REM._20px),
169
+ lineHeight: "125%",
170
+ fontWeight: 700,
171
+ letterSpacing: "-0.5px",
172
+ from: {
173
+ sm: {
174
+ fontSize: rem(REM._28px),
175
+ },
176
+ },
177
+ },
178
+ "title-xl": {
179
+ fontFamily: theme("fontFamily").brand,
180
+ fontSize: rem(REM._32px),
181
+ lineHeight: "125%",
182
+ fontWeight: 700,
183
+ letterSpacing: rem((-2 / 100) * REM._32px),
184
+ from: {
185
+ sm: {
186
+ fontSize: rem(REM._40px),
187
+ letterSpacing: rem((-2 / 100) * REM._40px),
188
+ },
189
+ },
190
+ },
191
+ "title-lg": {
192
+ fontFamily: theme("fontFamily").brand,
193
+ fontSize: rem(REM._24px),
194
+ lineHeight: "125%",
195
+ fontWeight: 700,
196
+ letterSpacing: rem((-2 / 100) * REM._24px),
197
+ from: {
198
+ sm: {
199
+ fontSize: rem(REM._32px),
200
+ letterSpacing: rem((-2 / 100) * REM._32px),
201
+ },
202
+ },
203
+ },
204
+ "title-md": {
205
+ fontFamily: theme("fontFamily").brand,
206
+ fontSize: rem(REM._20px),
207
+ lineHeight: "125%",
208
+ fontWeight: 700,
209
+ letterSpacing: rem((-2 / 100) * REM._20px),
210
+ from: {
211
+ sm: {
212
+ fontSize: rem(REM._24px),
213
+ letterSpacing: rem((-2 / 100) * REM._24px),
214
+ },
215
+ },
216
+ },
217
+ "title-sm": {
218
+ fontFamily: theme("fontFamily").brand,
219
+ fontSize: rem(REM._16px),
220
+ lineHeight: "125%",
221
+ fontWeight: 600,
222
+ letterSpacing: rem((-2 / 100) * REM._16px),
223
+ from: {
224
+ sm: {
225
+ fontSize: rem(REM._20px),
226
+ letterSpacing: rem((-2 / 100) * REM._20px),
227
+ },
228
+ },
229
+ },
230
+ "title-xs": {
231
+ fontFamily: theme("fontFamily").brand,
232
+ fontSize: rem(REM._16px),
233
+ lineHeight: "125%",
234
+ fontWeight: 600,
235
+ letterSpacing: rem((-2 / 100) * REM._16px),
236
+ },
237
+ //
238
+ "body-lg": {
239
+ fontFamily: theme("fontFamily").base,
240
+ fontSize: rem(REM._18px),
241
+ lineHeight: rem(REM._24px),
242
+ },
243
+ "body-md": {
244
+ fontFamily: theme("fontFamily").base,
245
+ fontSize: rem(REM._16px),
246
+ lineHeight: rem(REM._24px),
247
+ },
248
+ "body-sm": {
249
+ fontFamily: theme("fontFamily").base,
250
+ fontSize: rem(REM._12px),
251
+ lineHeight: rem(REM._16px),
252
+ },
253
+ "section-heading": {
254
+ fontFamily: theme("fontFamily").brand,
255
+ fontSize: rem(REM._14px),
256
+ lineHeight: "175%",
257
+ fontWeight: 700,
258
+ textTransform: "uppercase",
259
+ letterSpacing: "-0.2px",
260
+ color: theme("semanticTextColor").subdued,
261
+ },
262
+ }),
263
+ },
264
+ plugins: [
265
+ // custom typography classes
266
+ generators.text,
267
+ // custom border width classes (width default solid style)
268
+ generators.borderWidth,
269
+ // custom border style classes, must be after border width plugin
270
+ generators.borderStyle,
271
+ // Semantic colors (handling hover/press color states)
272
+ generators.getSemanticColorGenerator({
273
+ type: "semanticTextColor",
274
+ classPrefix: "text",
275
+ cssProperty: "color",
276
+ }),
277
+ generators.getSemanticColorGenerator({
278
+ type: "semanticTextColor",
279
+ classPrefix: "placeholder",
280
+ selectorSuffix: "::placeholder",
281
+ cssProperty: "color",
282
+ enableInteractiveColors: false,
283
+ }),
284
+ generators.getSemanticColorGenerator({
285
+ type: "semanticTextColor",
286
+ classPrefix: "placeholder",
287
+ selectorSuffix: "::-moz-placeholder",
288
+ cssProperty: "color",
289
+ enableInteractiveColors: false,
290
+ }),
291
+ generators.getSemanticColorGenerator({
292
+ type: "semanticBackgroundColor",
293
+ classPrefix: "bg",
294
+ cssProperty: "background-color",
295
+ }),
296
+ generators.getSemanticColorGenerator({
297
+ type: "semanticFillColor",
298
+ classPrefix: "accent",
299
+ cssProperty: "accent-color",
300
+ }),
301
+ generators.getSemanticColorGenerator({
302
+ type: "semanticBorderColor",
303
+ classPrefix: "border",
304
+ cssProperty: "border-color",
305
+ }),
306
+ generators.getSemanticColorGenerator({
307
+ type: "semanticBorderColor",
308
+ classPrefix: "border-t",
309
+ cssProperty: "border-top-color",
310
+ }),
311
+ generators.getSemanticColorGenerator({
312
+ type: "semanticBorderColor",
313
+ classPrefix: "border-b",
314
+ cssProperty: "border-bottom-color",
315
+ }),
316
+ generators.getSemanticColorGenerator({
317
+ type: "semanticBorderColor",
318
+ classPrefix: "border-l",
319
+ cssProperty: "border-left-color",
320
+ }),
321
+ generators.getSemanticColorGenerator({
322
+ type: "semanticBorderColor",
323
+ classPrefix: "border-r",
324
+ cssProperty: "border-right-color",
325
+ }),
326
+ generators.getSemanticColorGenerator({
327
+ type: "semanticBorderColor",
328
+ classPrefix: "border-e",
329
+ cssProperty: "border-inline-end-color",
330
+ }),
331
+ generators.getSemanticColorGenerator({
332
+ type: "semanticBorderColor",
333
+ classPrefix: "border-s",
334
+ cssProperty: "border-inline-start-color",
335
+ }),
336
+ generators.getSemanticColorGenerator({
337
+ type: "semanticBorderColor",
338
+ classPrefix: "border-y",
339
+ cssProperty: "border-top",
340
+ cssProperty2: "border-bottom",
341
+ }),
342
+ generators.getSemanticColorGenerator({
343
+ type: "semanticBorderColor",
344
+ classPrefix: "border-x",
345
+ cssProperty: "border-left",
346
+ cssProperty2: "border-right",
347
+ }),
348
+ generators.getSemanticColorGenerator({
349
+ type: "semanticBorderColor",
350
+ classPrefix: "divide",
351
+ cssProperty: "border-color",
352
+ selectorSuffix: " > :not([hidden]) ~ :not([hidden])",
353
+ }),
354
+ generators.getSemanticColorGenerator({
355
+ type: "semanticBorderColor",
356
+ classPrefix: "outline",
357
+ cssProperty: "outline-color",
358
+ }),
359
+ generators.getSemanticColorGenerator({
360
+ type: "semanticBorderColor",
361
+ classPrefix: "ring",
362
+ cssProperty: "--tw-ring-color",
363
+ }),
364
+ ],
365
+ });
366
+
367
+ getCobaltTailwindcssConfig_1 = getCobaltTailwindcssConfig;
368
+ return getCobaltTailwindcssConfig_1;
369
+ }
370
+
371
+ export { requireGetCobaltTailwindcssConfig as __require };
372
+ //# sourceMappingURL=getCobaltTailwindcssConfig2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getCobaltTailwindcssConfig2.js","sources":["../../utils/getCobaltTailwindcssConfig.js"],"sourcesContent":["/*\n FOR NODE ENVIRONMENT ONLY\n Do never import tailwind file config (or helpers importing it) into Cobalt\n components/stories on src/ side, it will result to have tailwindcss unecessary\n dependencies into build files.\n See https://github.com/tailwindcss/tailwindcss/issues/634#issuecomment-459740859\n If you need data from the theme configuration, you can do the same as we did\n for colors:\n - create a json token file with the data needed (will be the single source of data)\n - In the tailwindcss config file: import and use this json file\n - In the src/ side: import and use this json file also\n*/\nconst breakpoints = require(\"../src/tokens/breakpoints.json\")\nconst legacyColors = require(\"../src/tokens/colors.json\")\nconst zIndexes = require(\"../src/tokens/zIndexes.json\")\nconst { getColorsUsingCSSVariables } = require(\"./helpers\")\nconst generators = require(\"./tailwindcssGenerators\")\n\nconst rem = (value) => `${value}rem`\n\nconst REM = {\n _12px: 0.75,\n _14px: 0.875,\n _15px: 0.9375,\n _16px: 1,\n _18px: 1.125,\n _20px: 1.25,\n _24px: 1.5,\n _28px: 1.75,\n _32px: 2,\n _36px: 2.25,\n _40px: 2.5,\n _44px: 2.75,\n _56px: 3.5,\n _60px: 3.75,\n _64px: 4,\n}\n\nconst {\n stroke: borderColors,\n background: bgColors,\n fill: fillColors,\n text: textColors,\n} = getColorsUsingCSSVariables({\n additionalColors: { transparent: \"transparent\" },\n})\n\nconst baseFont =\n \"BlinkMacSystemFont,-apple-system,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,'Fira Sans','Droid Sans','Helvetica Neue',Helvetica,Arial,sans-serif\"\n\nconst getCobaltTailwindcssConfig = ({ content, safelist = undefined }) => ({\n content,\n safelist: safelist,\n prefix: \"c-\",\n // utilities to disable\n corePlugins: {\n // Don't use Tailwindcss reset and default styles\n preflight: false,\n // Handle by custom classes via generators\n letterSpacing: false,\n lineHeight: false,\n borderStyle: false,\n borderWidth: false,\n fontSize: false,\n // Not needed, at least for now\n textOpacity: false,\n backgroundOpacity: false,\n caretColor: false,\n boxShadowColor: false,\n ringOffsetColor: false,\n gradientColorStops: false,\n gradientColorStopPositions: false,\n textDecorationColor: false,\n // SVG color\n stroke: false,\n fill: false,\n },\n theme: {\n colors: {\n ...legacyColors, // deprecated\n current: \"currentColor\",\n },\n semanticBorderColor: borderColors,\n semanticBackgroundColor: {\n ...bgColors,\n ...{ fill: fillColors },\n },\n semanticFillColor: fillColors,\n borderStyle: {\n solid: \"solid\",\n dashed: \"dashed\",\n none: \"none\",\n },\n borderWidth: {\n 0: \"0\",\n \"0_5\": \"0.5px\",\n DEFAULT: \"1px\",\n 2: \"0.125rem\",\n 4: \".25rem\",\n },\n borderRadius: {\n none: \"0\",\n DEFAULT: \".25rem\", // c-rounded\n md: \".375rem\",\n lg: \".5rem\",\n xl: \".75rem\",\n \"2xl\": \"1rem\",\n full: \"9999px\", // full rounded\n },\n boxShadow: {\n DEFAULT: \"0 0.125rem 0.75rem rgba(0, 0, 0, 0.1)\", // c-shadow\n md: \"0 0.25rem 1.5rem rgba(0, 0, 0, 0.15)\",\n lg: \"0 0.375rem 2.25rem rgba(0, 0, 0, 0.2)\",\n },\n semanticTextColor: textColors,\n fontFamily: {\n base: baseFont,\n brand: `BrownPro,${baseFont}`,\n mono: \"Consolas,'Liberation Mono',Menlo,Courier,monospace\",\n },\n fontWeight: {\n regular: \"400\",\n bold: \"600\",\n },\n spacing: {\n none: \"0\",\n \"2xs\": \".25rem\",\n xs: \".5rem\",\n sm: \"1rem\",\n md: \"1.5rem\",\n lg: \"2rem\",\n xl: \"3rem\",\n \"2xl\": \"4rem\",\n },\n screens: { ...breakpoints },\n zIndex: Object.fromEntries(\n Object.entries(zIndexes).map(([key, value]) => [key, value.toString()])\n ),\n // custom properties, not processed by Tailwindcss itself\n customText: ({ theme }) => ({\n heading: {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._36px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: \"-0.5px\",\n from: {\n sm: {\n fontSize: rem(REM._56px),\n },\n },\n },\n subheading: {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._20px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: \"-0.5px\",\n from: {\n sm: {\n fontSize: rem(REM._28px),\n },\n },\n },\n \"title-xl\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._32px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._32px),\n from: {\n sm: {\n fontSize: rem(REM._40px),\n letterSpacing: rem((-2 / 100) * REM._40px),\n },\n },\n },\n \"title-lg\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._24px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._24px),\n from: {\n sm: {\n fontSize: rem(REM._32px),\n letterSpacing: rem((-2 / 100) * REM._32px),\n },\n },\n },\n \"title-md\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._20px),\n lineHeight: \"125%\",\n fontWeight: 700,\n letterSpacing: rem((-2 / 100) * REM._20px),\n from: {\n sm: {\n fontSize: rem(REM._24px),\n letterSpacing: rem((-2 / 100) * REM._24px),\n },\n },\n },\n \"title-sm\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._16px),\n lineHeight: \"125%\",\n fontWeight: 600,\n letterSpacing: rem((-2 / 100) * REM._16px),\n from: {\n sm: {\n fontSize: rem(REM._20px),\n letterSpacing: rem((-2 / 100) * REM._20px),\n },\n },\n },\n \"title-xs\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._16px),\n lineHeight: \"125%\",\n fontWeight: 600,\n letterSpacing: rem((-2 / 100) * REM._16px),\n },\n //\n \"body-lg\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._18px),\n lineHeight: rem(REM._24px),\n },\n \"body-md\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._16px),\n lineHeight: rem(REM._24px),\n },\n \"body-sm\": {\n fontFamily: theme(\"fontFamily\").base,\n fontSize: rem(REM._12px),\n lineHeight: rem(REM._16px),\n },\n \"section-heading\": {\n fontFamily: theme(\"fontFamily\").brand,\n fontSize: rem(REM._14px),\n lineHeight: \"175%\",\n fontWeight: 700,\n textTransform: \"uppercase\",\n letterSpacing: \"-0.2px\",\n color: theme(\"semanticTextColor\").subdued,\n },\n }),\n },\n plugins: [\n // custom typography classes\n generators.text,\n // custom border width classes (width default solid style)\n generators.borderWidth,\n // custom border style classes, must be after border width plugin\n generators.borderStyle,\n // Semantic colors (handling hover/press color states)\n generators.getSemanticColorGenerator({\n type: \"semanticTextColor\",\n classPrefix: \"text\",\n cssProperty: \"color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticTextColor\",\n classPrefix: \"placeholder\",\n selectorSuffix: \"::placeholder\",\n cssProperty: \"color\",\n enableInteractiveColors: false,\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticTextColor\",\n classPrefix: \"placeholder\",\n selectorSuffix: \"::-moz-placeholder\",\n cssProperty: \"color\",\n enableInteractiveColors: false,\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBackgroundColor\",\n classPrefix: \"bg\",\n cssProperty: \"background-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticFillColor\",\n classPrefix: \"accent\",\n cssProperty: \"accent-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border\",\n cssProperty: \"border-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-t\",\n cssProperty: \"border-top-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-b\",\n cssProperty: \"border-bottom-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-l\",\n cssProperty: \"border-left-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-r\",\n cssProperty: \"border-right-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-e\",\n cssProperty: \"border-inline-end-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-s\",\n cssProperty: \"border-inline-start-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-y\",\n cssProperty: \"border-top\",\n cssProperty2: \"border-bottom\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"border-x\",\n cssProperty: \"border-left\",\n cssProperty2: \"border-right\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"divide\",\n cssProperty: \"border-color\",\n selectorSuffix: \" > :not([hidden]) ~ :not([hidden])\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"outline\",\n cssProperty: \"outline-color\",\n }),\n generators.getSemanticColorGenerator({\n type: \"semanticBorderColor\",\n classPrefix: \"ring\",\n cssProperty: \"--tw-ring-color\",\n }),\n ],\n})\n\nmodule.exports = getCobaltTailwindcssConfig\n"],"names":["require$$3","require$$4"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAYA,CAAA,MAAM,WAAW,GAAG,WAAA;AACpB,CAAA,MAAM,YAAY,GAAG,WAAA;AACrB,CAAA,MAAM,QAAQ,GAAG,WAAA;CACjB,MAAM,EAAE,0BAA0B,EAAE,GAAGA,cAAA,GAAA;AACvC,CAAA,MAAM,UAAU,GAAGC,4BAAA,GAAA;;CAEnB,MAAM,GAAG,GAAG,CAAC,KAAK,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,EAAA;;AAEnC,CAAA,MAAM,GAAG,GAAG;GACV,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,KAAK;GACZ,KAAK,EAAE,MAAM;GACb,KAAK,EAAE,CAAC;GACR,KAAK,EAAE,KAAK;GACZ,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,GAAG;GACV,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,CAAC;GACR,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,GAAG;GACV,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,GAAG;GACV,KAAK,EAAE,IAAI;GACX,KAAK,EAAE,CAAC;AACV,GAAA;;CA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AAc,EAAE,oCAAoC;AAC1D,MAAK,CAAC;KACF,UAAU,CAAC,yBAAyB,CAAC;OACnC,IAAI,EAAE,qBAAqB;OAC3B,WAAW,EAAE,SAAS;OACtB,WAAW,EAAE,eAAe;AAClC,MAAK,CAAC;KACF,UAAU,CAAC,yBAAyB,CAAC;OACnC,IAAI,EAAE,qBAAqB;OAC3B,WAAW,EAAE,MAAM;OACnB,WAAW,EAAE,iBAAiB;AACpC,MAAK,CAAC;IACH;EACF,EAAA;;AAED,CAAA,4BAAc,GAAG,2BAAA;;;;;;"}
@@ -0,0 +1,161 @@
1
+ import require$$0 from '../src/tokens/theme.js';
2
+ import require$$1 from '../src/tokens/palette.js';
3
+
4
+ var helpers;
5
+ var hasRequiredHelpers;
6
+
7
+ function requireHelpers () {
8
+ if (hasRequiredHelpers) return helpers;
9
+ hasRequiredHelpers = 1;
10
+ const themeTokens = require$$0;
11
+ const palette = require$$1;
12
+
13
+ const DEFAULT_KEY = "DEFAULT";
14
+ const COLOR_PREFIX = "--c";
15
+
16
+ const THEME_MODES = {
17
+ LIGHT: "light",
18
+ DARK: "dark",
19
+ };
20
+ const DEFAULT_THEME_MODE = THEME_MODES.LIGHT;
21
+ const MODIFIERS = {
22
+ HOVER: "hover",
23
+ PRESS: "press",
24
+ };
25
+
26
+ const hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
27
+
28
+ // Get the CSS Variable name from a palette/colors name
29
+ // ex: (green, 900) => --c-green-900
30
+ // ex: (turquoise, "", true) => --c-l-turquoise
31
+ const getCSSVariableNameFromColorName = ({ color, modifier = "" }) => {
32
+ return `${COLOR_PREFIX}-${color}${modifier ? `-${modifier}` : modifier}`
33
+ };
34
+
35
+ // Get the CSS Variable name from a theme color name and category
36
+ // ex: (background, connect) => --c-background-connect
37
+ // ex: (background, accentInteractive, hover) => --c-background-connect--hover
38
+ const getCSSVariableNameFromThemeName = ({
39
+ category,
40
+ color,
41
+ modifier = "",
42
+ }) => {
43
+ return `${COLOR_PREFIX}-${category}-${color}${
44
+ modifier && modifier !== DEFAULT_KEY ? `--${modifier}` : ""
45
+ }`
46
+ };
47
+
48
+ // Get theme value from theme color name and category
49
+ // ex: (background, connect) => "turquoise.500/turquoise.500"
50
+ // ex: (background, accentInteractive, hover) => "purple.700/purpleDeep.400"
51
+ const getThemeValueFromThemeColor = ({ category, color, modifier = "" }) => {
52
+ const colorProp = themeTokens[category][color];
53
+ if (typeof colorProp !== "object") return colorProp
54
+ if (modifier && modifier in colorProp) {
55
+ return colorProp[modifier]
56
+ }
57
+ if (!modifier && "DEFAULT" in colorProp) {
58
+ return colorProp.DEFAULT
59
+ } else {
60
+ return colorProp
61
+ }
62
+ };
63
+
64
+ // Get the theme final color from the theme color value
65
+ // ex: ("red.500/red.200", THEME_MODES.LIGHT) => red.500
66
+ // ex: ("red.500/red.200", THEME_MODES.DARK) => red.200
67
+ const getThemeColorFromThemeValue = (themeValue, mode = DEFAULT_THEME_MODE) => {
68
+ const splitPosition = mode === THEME_MODES.LIGHT ? 0 : 1;
69
+
70
+ return themeValue.split("/")[splitPosition]
71
+ };
72
+
73
+ // Get the CSS Variable from the theme final color
74
+ // ex: (green.900) => --c-green-900
75
+ const getColorCSSVariableFromThemeColor = (value) => {
76
+ const [colorName, colorVariant] = value.split(".");
77
+ if (colorVariant) {
78
+ return `${COLOR_PREFIX}-${colorName}-${colorVariant}`
79
+ } else {
80
+ return `${COLOR_PREFIX}-${value}`
81
+ }
82
+ };
83
+
84
+ // Get the color value from the theme final color
85
+ // (red) => #ff7378
86
+ // (red.500) => #c71414
87
+ const getColorFromThemeColor = (name) => {
88
+ const [colorName, colorVariant] = name.split(".");
89
+ if (hasProp(palette, colorName)) {
90
+ if (colorVariant) {
91
+ return palette[colorName][colorVariant]
92
+ } else if (typeof palette[colorName] === "string") {
93
+ return palette[colorName]
94
+ } else {
95
+ return palette[colorName][DEFAULT_KEY]
96
+ }
97
+ }
98
+ };
99
+
100
+ // Get color CSS Variable from theme value
101
+ // ex: ("red/red.500/red.200", THEME_MODES.LEGACY) => --c-l-red
102
+ // ex: ("red/red.500/red.200", THEME_MODES.LIGHT) => --c-red-500
103
+ const getColorCSSVariableFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>
104
+ getColorCSSVariableFromThemeColor(getThemeColorFromThemeValue(value, mode));
105
+
106
+ // Get color value from the theme value
107
+ // ex: ("red/red.500/red.200", THEME_MODES.LEGACY) => #ff7378
108
+ // ex: ("red/red.500/red.200", THEME_MODES.LIGHT) => #c71414
109
+ const getColorFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>
110
+ getColorFromThemeColor(getThemeColorFromThemeValue(value, mode));
111
+
112
+ helpers = {
113
+ DEFAULT_THEME_MODE,
114
+ DEFAULT_KEY,
115
+ COLOR_PREFIX,
116
+ MODIFIERS,
117
+ THEME_MODES,
118
+ // Following rule https://eslint.org/docs/rules/no-prototype-builtins
119
+ hasProp,
120
+ getColorCSSVariableFromThemeValue,
121
+ getCSSVariableNameFromThemeName,
122
+ getCSSVariableNameFromColorName,
123
+ getThemeValueFromThemeColor,
124
+ getThemeColorFromThemeValue,
125
+ getColorFromThemeValue,
126
+ getColorsUsingCSSVariables: ({ additionalColors } = {}) => {
127
+ const colorsUsingCSSVariables = JSON.parse(JSON.stringify(themeTokens));
128
+ // eslint-disable-next-line guard-for-in
129
+ for (const category in themeTokens) {
130
+ for (const color in themeTokens[category]) {
131
+ if (typeof themeTokens[category][color] === "string") {
132
+ colorsUsingCSSVariables[category][color] =
133
+ `var(${getCSSVariableNameFromThemeName({ category, color })})`;
134
+ } else {
135
+ // eslint-disable-next-line guard-for-in
136
+ for (const modifier in themeTokens[category][color]) {
137
+ colorsUsingCSSVariables[category][color][modifier] =
138
+ `var(${getCSSVariableNameFromThemeName({
139
+ category,
140
+ color,
141
+ modifier,
142
+ })})`;
143
+ }
144
+ }
145
+ }
146
+ if (additionalColors) {
147
+ for (const color in additionalColors) {
148
+ if (hasProp(additionalColors, color)) {
149
+ colorsUsingCSSVariables[category][color] = additionalColors[color];
150
+ }
151
+ }
152
+ }
153
+ }
154
+ return colorsUsingCSSVariables
155
+ },
156
+ };
157
+ return helpers;
158
+ }
159
+
160
+ export { requireHelpers as __require };
161
+ //# sourceMappingURL=helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.js","sources":["../../utils/helpers.js"],"sourcesContent":["const themeTokens = require(\"../src/tokens/theme.json\")\nconst palette = require(\"../src/tokens/palette.json\")\n\nconst DEFAULT_KEY = \"DEFAULT\"\nconst COLOR_PREFIX = \"--c\"\n\nconst THEME_MODES = {\n LIGHT: \"light\",\n DARK: \"dark\",\n}\nconst DEFAULT_THEME_MODE = THEME_MODES.LIGHT\nconst MODIFIERS = {\n HOVER: \"hover\",\n PRESS: \"press\",\n}\n\nconst hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)\n\n// Get the CSS Variable name from a palette/colors name\n// ex: (green, 900) => --c-green-900\n// ex: (turquoise, \"\", true) => --c-l-turquoise\nconst getCSSVariableNameFromColorName = ({ color, modifier = \"\" }) => {\n return `${COLOR_PREFIX}-${color}${modifier ? `-${modifier}` : modifier}`\n}\n\n// Get the CSS Variable name from a theme color name and category\n// ex: (background, connect) => --c-background-connect\n// ex: (background, accentInteractive, hover) => --c-background-connect--hover\nconst getCSSVariableNameFromThemeName = ({\n category,\n color,\n modifier = \"\",\n}) => {\n return `${COLOR_PREFIX}-${category}-${color}${\n modifier && modifier !== DEFAULT_KEY ? `--${modifier}` : \"\"\n }`\n}\n\n// Get theme value from theme color name and category\n// ex: (background, connect) => \"turquoise.500/turquoise.500\"\n// ex: (background, accentInteractive, hover) => \"purple.700/purpleDeep.400\"\nconst getThemeValueFromThemeColor = ({ category, color, modifier = \"\" }) => {\n const colorProp = themeTokens[category][color]\n if (typeof colorProp !== \"object\") return colorProp\n if (modifier && modifier in colorProp) {\n return colorProp[modifier]\n }\n if (!modifier && \"DEFAULT\" in colorProp) {\n return colorProp.DEFAULT\n } else {\n return colorProp\n }\n}\n\n// Get the theme final color from the theme color value\n// ex: (\"red.500/red.200\", THEME_MODES.LIGHT) => red.500\n// ex: (\"red.500/red.200\", THEME_MODES.DARK) => red.200\nconst getThemeColorFromThemeValue = (themeValue, mode = DEFAULT_THEME_MODE) => {\n const splitPosition = mode === THEME_MODES.LIGHT ? 0 : 1\n\n return themeValue.split(\"/\")[splitPosition]\n}\n\n// Get the CSS Variable from the theme final color\n// ex: (green.900) => --c-green-900\nconst getColorCSSVariableFromThemeColor = (value) => {\n const [colorName, colorVariant] = value.split(\".\")\n if (colorVariant) {\n return `${COLOR_PREFIX}-${colorName}-${colorVariant}`\n } else {\n return `${COLOR_PREFIX}-${value}`\n }\n}\n\n// Get the color value from the theme final color\n// (red) => #ff7378\n// (red.500) => #c71414\nconst getColorFromThemeColor = (name) => {\n const [colorName, colorVariant] = name.split(\".\")\n if (hasProp(palette, colorName)) {\n if (colorVariant) {\n return palette[colorName][colorVariant]\n } else if (typeof palette[colorName] === \"string\") {\n return palette[colorName]\n } else {\n return palette[colorName][DEFAULT_KEY]\n }\n }\n}\n\n// Get color CSS Variable from theme value\n// ex: (\"red/red.500/red.200\", THEME_MODES.LEGACY) => --c-l-red\n// ex: (\"red/red.500/red.200\", THEME_MODES.LIGHT) => --c-red-500\nconst getColorCSSVariableFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>\n getColorCSSVariableFromThemeColor(getThemeColorFromThemeValue(value, mode))\n\n// Get color value from the theme value\n// ex: (\"red/red.500/red.200\", THEME_MODES.LEGACY) => #ff7378\n// ex: (\"red/red.500/red.200\", THEME_MODES.LIGHT) => #c71414\nconst getColorFromThemeValue = (value, mode = DEFAULT_THEME_MODE) =>\n getColorFromThemeColor(getThemeColorFromThemeValue(value, mode))\n\nmodule.exports = {\n DEFAULT_THEME_MODE,\n DEFAULT_KEY,\n COLOR_PREFIX,\n MODIFIERS,\n THEME_MODES,\n // Following rule https://eslint.org/docs/rules/no-prototype-builtins\n hasProp,\n getColorCSSVariableFromThemeValue,\n getCSSVariableNameFromThemeName,\n getCSSVariableNameFromColorName,\n getThemeValueFromThemeColor,\n getThemeColorFromThemeValue,\n getColorFromThemeValue,\n getColorsUsingCSSVariables: ({ additionalColors } = {}) => {\n const colorsUsingCSSVariables = JSON.parse(JSON.stringify(themeTokens))\n // eslint-disable-next-line guard-for-in\n for (const category in themeTokens) {\n for (const color in themeTokens[category]) {\n if (typeof themeTokens[category][color] === \"string\") {\n colorsUsingCSSVariables[category][color] =\n `var(${getCSSVariableNameFromThemeName({ category, color })})`\n } else {\n // eslint-disable-next-line guard-for-in\n for (const modifier in themeTokens[category][color]) {\n colorsUsingCSSVariables[category][color][modifier] =\n `var(${getCSSVariableNameFromThemeName({\n category,\n color,\n modifier,\n })})`\n }\n }\n }\n if (additionalColors) {\n for (const color in additionalColors) {\n if (hasProp(additionalColors, color)) {\n colorsUsingCSSVariables[category][color] = additionalColors[color]\n }\n }\n }\n }\n return colorsUsingCSSVariables\n },\n}\n"],"names":[],"mappings":";;;;;;;;;AAAA,CAAA,MAAM,WAAW,GAAG,WAAA;AACpB,CAAA,MAAM,OAAO,GAAG,WAAA;;AAEhB,CAAA,MAAM,WAAW,GAAG,UAAA;AACpB,CAAA,MAAM,YAAY,GAAG,MAAA;;AAErB,CAAA,MAAM,WAAW,GAAG;GAClB,KAAK,EAAE,OAAO;GACd,IAAI,EAAE,MAAM;AACd,GAAA;CACA,MAAM,kBAAkB,GAAG,WAAW,CAAC,MAAA;AACvC,CAAA,MAAM,SAAS,GAAG;GAChB,KAAK,EAAE,OAAO;GACd,KAAK,EAAE,OAAO;AAChB,GAAA;;AAEA,CAAA,MAAM,OAAO,GAAG,CAAC,GAAG,EAAE,IAAI,KAAK,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,EAAE,IAAI,EAAA;;AAE7E;AACA;AACA;CACA,MAAM,+BAA+B,GAAG,CAAC,EAAE,KAAK,EAAE,QAAQ,GAAG,EA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