@arbor-css/core 0.0.110 → 0.0.112

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 (81) hide show
  1. package/dist/getStructuredTokensMap.test.js +1 -1
  2. package/dist/getStructuredTokensMap.test.js.map +1 -1
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +1 -0
  6. package/dist/index.js.map +1 -1
  7. package/dist/presets/arborPreset/modeSchema/global.d.ts +119 -31
  8. package/dist/presets/arborPreset/modeSchema/global.d.ts.map +1 -1
  9. package/dist/presets/arborPreset/modeSchema/global.js +117 -31
  10. package/dist/presets/arborPreset/modeSchema/global.js.map +1 -1
  11. package/dist/presets/arborPreset/modeSchema/intents/action.d.ts +3 -3
  12. package/dist/presets/arborPreset/modeSchema/intents/common.d.ts +1 -1
  13. package/dist/presets/arborPreset/modeSchema/intents/common.js +1 -1
  14. package/dist/presets/arborPreset/modeSchema/intents/common.js.map +1 -1
  15. package/dist/presets/arborPreset/modeSchema/intents/control.d.ts +1 -1
  16. package/dist/presets/arborPreset/modeSchema/intents/surface.d.ts +3 -3
  17. package/dist/presets/arborPreset/modeSchema/modeSchema.d.ts +124 -38
  18. package/dist/presets/arborPreset/modeSchema/modeSchema.d.ts.map +1 -1
  19. package/dist/presets/arborPreset/modeValues/color/compile.d.ts +3 -7
  20. package/dist/presets/arborPreset/modeValues/color/compile.d.ts.map +1 -1
  21. package/dist/presets/arborPreset/modeValues/color/compile.js +3 -3
  22. package/dist/presets/arborPreset/modeValues/color/compile.js.map +1 -1
  23. package/dist/presets/arborPreset/modeValues/color/compile.test.js +1 -1
  24. package/dist/presets/arborPreset/modeValues/color/compile.test.js.map +1 -1
  25. package/dist/presets/arborPreset/modeValues/intents.d.ts.map +1 -1
  26. package/dist/presets/arborPreset/modeValues/intents.js +6 -6
  27. package/dist/presets/arborPreset/modeValues/intents.js.map +1 -1
  28. package/dist/presets/arborPreset/modeValues/semantics.d.ts +3 -1
  29. package/dist/presets/arborPreset/modeValues/semantics.d.ts.map +1 -1
  30. package/dist/presets/arborPreset/modeValues/semantics.js +14 -14
  31. package/dist/presets/arborPreset/modeValues/semantics.js.map +1 -1
  32. package/dist/presets/arborPreset/modeValues/shadow/index.d.ts +2 -9
  33. package/dist/presets/arborPreset/modeValues/shadow/index.d.ts.map +1 -1
  34. package/dist/presets/arborPreset/modeValues/shadow/index.js +4 -4
  35. package/dist/presets/arborPreset/modeValues/shadow/index.js.map +1 -1
  36. package/dist/presets/arborPreset/modeValues/spacing/index.d.ts +4 -20
  37. package/dist/presets/arborPreset/modeValues/spacing/index.d.ts.map +1 -1
  38. package/dist/presets/arborPreset/modeValues/spacing/index.js +1 -1
  39. package/dist/presets/arborPreset/modeValues/spacing/index.js.map +1 -1
  40. package/dist/presets/arborPreset/modeValues/typography/index.d.ts +5 -36
  41. package/dist/presets/arborPreset/modeValues/typography/index.d.ts.map +1 -1
  42. package/dist/presets/arborPreset/modeValues/typography/index.js +5 -5
  43. package/dist/presets/arborPreset/modeValues/typography/index.js.map +1 -1
  44. package/dist/presets/arborPreset/preset.d.ts +225 -49
  45. package/dist/presets/arborPreset/preset.d.ts.map +1 -1
  46. package/dist/presets/arborPreset/preset.js +63 -31
  47. package/dist/presets/arborPreset/preset.js.map +1 -1
  48. package/dist/presets/basicPreset/commonFunctions.js +1 -1
  49. package/dist/presets/basicPreset/commonFunctions.js.map +1 -1
  50. package/dist/presets/basicPreset/mixins.d.ts.map +1 -1
  51. package/dist/presets/basicPreset/preset.d.ts.map +1 -1
  52. package/dist/runtime/components/ColorSwatch.d.ts.map +1 -1
  53. package/dist/runtime/components/ColorSwatch.js +3 -0
  54. package/dist/runtime/components/ColorSwatch.js.map +1 -1
  55. package/dist/runtime/components/FunctionsList.js +1 -1
  56. package/dist/runtime/components/MixinsList.js +1 -1
  57. package/dist/runtime/components/ModeGraph.d.ts.map +1 -1
  58. package/dist/runtime/components/ModeGraph.js +20 -13
  59. package/dist/runtime/components/ModeGraph.js.map +1 -1
  60. package/dist/runtime/components/SystemDemo.d.ts +2 -0
  61. package/dist/runtime/components/SystemDemo.d.ts.map +1 -0
  62. package/dist/runtime/components/SystemDemo.js +32 -0
  63. package/dist/runtime/components/SystemDemo.js.map +1 -0
  64. package/dist/runtime/components/index.d.ts.map +1 -1
  65. package/dist/runtime/components/index.js +2 -0
  66. package/dist/runtime/components/index.js.map +1 -1
  67. package/dist/runtime/tokenGroups.d.ts.map +1 -1
  68. package/dist/stylesheet/generateStylesheet.test.js +3 -3
  69. package/dist/stylesheet/generateStylesheet.test.js.map +1 -1
  70. package/dist/util/buildModeTokenGraph.test.js +2 -2
  71. package/dist/util/buildModeTokenGraph.test.js.map +1 -1
  72. package/dist/util/flattenAndApplyTokenValues.d.ts +2 -1
  73. package/dist/util/flattenAndApplyTokenValues.d.ts.map +1 -1
  74. package/dist/util/flattenAndApplyTokenValues.js.map +1 -1
  75. package/dist/util/resolveComputedTokenValue.test.js +6 -6
  76. package/dist/util/resolveComputedTokenValue.test.js.map +1 -1
  77. package/package.json +8 -8
  78. package/dist/util/printTokens.d.ts +0 -5
  79. package/dist/util/printTokens.d.ts.map +0 -1
  80. package/dist/util/printTokens.js +0 -6
  81. package/dist/util/printTokens.js.map +0 -1
@@ -1,36 +1,20 @@
1
- import { Css, CssInterpolation } from '@arbor-css/css-eval';
2
- import { Token } from '@arbor-css/tokens';
1
+ import { Css } from '@arbor-css/css-eval';
2
+ import { ArborModeGlobalTokens } from '../../modeSchema/global.js';
3
3
  export declare const defaultSpacingLevels: readonly ["2xs", "xs", "sm", "md", "lg", "xl", "2xl", "3xl"];
4
4
  export type DefaultSpacingLevel = (typeof defaultSpacingLevels)[number];
5
5
  export interface SpacingConfig<TSpacingLevel extends string = DefaultSpacingLevel> {
6
6
  levels?: Record<TSpacingLevel, string | number>;
7
7
  defaultLevel?: TSpacingLevel;
8
- /**
9
- * The "base" number of the scale equation - a linear scalar
10
- * multiplier. Set this to scale by some linear factor if
11
- * scaleExponent is "1"
12
- */
13
- scaleBase?: CssInterpolation;
14
- /**
15
- * The exponent of the scale equation - the rate of exponential growth.
16
- * `scaleBase` is raised to this exponent before being multiplied by the base spacing size.
17
- * Set this to "1" to scale linearly by the `scaleBase` factor, or set it to a value greater than "1" to have exponential growth.
18
- */
19
- scaleExponent?: CssInterpolation;
8
+ roundToPixel?: boolean;
20
9
  }
21
10
  export type CompiledSpacing<TSpacingLevel extends string = DefaultSpacingLevel> = {
22
11
  [K in TSpacingLevel]: string | Css;
23
12
  } & {
24
13
  $root: string | Css;
25
14
  };
26
- type RequiredTokens = {
27
- baseSpacingSize: Token;
28
- baseFontSize: Token;
29
- };
30
15
  /**
31
16
  * Given configuration for spacing sizes and the default
32
17
  * level name, produces a range of spacing sizes.
33
18
  */
34
- export declare function compileSpacing<TSpacingLevel extends string = DefaultSpacingLevel>(config: SpacingConfig<TSpacingLevel>, $: RequiredTokens): CompiledSpacing<TSpacingLevel>;
35
- export {};
19
+ export declare function compileSpacing<TSpacingLevel extends string = DefaultSpacingLevel>(config: SpacingConfig<TSpacingLevel>, $: ArborModeGlobalTokens): CompiledSpacing<TSpacingLevel>;
36
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presets/arborPreset/modeValues/spacing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,GAAG,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,eAAO,MAAM,oBAAoB,8DASvB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,WAAW,aAAa,CAC7B,aAAa,SAAS,MAAM,GAAG,mBAAmB;IAElD,MAAM,CAAC,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAChD,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B;;;;OAIG;IACH,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,gBAAgB,CAAC;CACjC;AAED,MAAM,MAAM,eAAe,CAC1B,aAAa,SAAS,MAAM,GAAG,mBAAmB,IAC/C;KACF,CAAC,IAAI,aAAa,GAAG,MAAM,GAAG,GAAG;CAClC,GAAG;IACH,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF,KAAK,cAAc,GAAG;IACrB,eAAe,EAAE,KAAK,CAAC;IACvB,YAAY,EAAE,KAAK,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,aAAa,SAAS,MAAM,GAAG,mBAAmB,EAElD,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,EACpC,CAAC,EAAE,cAAc,GACf,eAAe,CAAC,aAAa,CAAC,CAiChC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presets/arborPreset/modeValues/spacing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,eAAO,MAAM,oBAAoB,8DASvB,CAAC;AACX,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAExE,MAAM,WAAW,aAAa,CAC7B,aAAa,SAAS,MAAM,GAAG,mBAAmB;IAElD,MAAM,CAAC,EAAE,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;IAChD,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,MAAM,eAAe,CAC1B,aAAa,SAAS,MAAM,GAAG,mBAAmB,IAC/C;KACF,CAAC,IAAI,aAAa,GAAG,MAAM,GAAG,GAAG;CAClC,GAAG;IACH,KAAK,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,cAAc,CAC7B,aAAa,SAAS,MAAM,GAAG,mBAAmB,EAElD,MAAM,EAAE,aAAa,CAAC,aAAa,CAAC,EACpC,CAAC,EAAE,qBAAqB,GACtB,eAAe,CAAC,aAAa,CAAC,CAiChC"}
@@ -30,7 +30,7 @@ export function compileSpacing(config, $) {
30
30
  const step = i - baseIndex;
31
31
  acc[nameCast] =
32
32
  levelConfig ??
33
- css `calc(${$.baseSpacingSize} * pow(${config.scaleBase ?? 2}, ${config.scaleExponent ?? 1} * ${step}))`;
33
+ css `calc(${config.roundToPixel ? 'round(' : ''}${$.spacing.baseSize} * pow(${[$.spacing.scaleBase, 2]}, ${[$.spacing.scaleExponentStep, 1]} * ${step})${config.roundToPixel ? ', 1px)' : ''})`;
34
34
  return acc;
35
35
  }, {});
36
36
  const defaultLevel = config.defaultLevel ?? levelNames[baseIndex];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presets/arborPreset/modeValues/spacing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAyB,MAAM,qBAAqB,CAAC;AAGjE,MAAM,CAAC,MAAM,oBAAoB,GAAG;IACnC,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,KAAK;CACI,CAAC;AAmCX;;;GAGG;AACH,MAAM,UAAU,cAAc,CAG7B,MAAoC,EACpC,CAAiB;IAEjB,MAAM,UAAU,GACf,MAAM,CAAC,MAAM,CAAC,CAAC;QACd,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC;QAC3B,CAAC,CAAE,oBAAmD,CAAC;IAExD,MAAM,SAAS;IACd,uCAAuC;IACvC,MAAM,CAAC,YAAY,C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ChM,OAAO,GAAG,CAAC;IACZ,CAAC,EACD,EAAyC,CACP,CAAC;IACpC,MAAM,YAAY,GACjB,MAAM,CAAC,YAAY,IAAK,UAAU,CAAC,SAAS,CAAmB,CAAC;IAEjE,OAAO;QACN,GAAG,MAAM;QACT,KAAK,EAAE,MAAM,CAAC,YAAY,CAAC;KAC3B,CAAC;AACH,CAAC"}
@@ -1,14 +1,11 @@
1
1
  import { Css, CssInterpolation } from '@arbor-css/css-eval';
2
2
  import { Token } from '@arbor-css/tokens';
3
+ import { ArborModeGlobalTokens } from '../../modeSchema/global.js';
3
4
  export interface TypographyLevel {
4
5
  size: string | Css;
5
6
  lineHeight: CssInterpolation;
6
7
  letterSpacing: string | Css;
7
8
  }
8
- export interface RequiredTokens {
9
- density: Token;
10
- whenDark: Token;
11
- }
12
9
  export declare function isTypographyLevel(value: any): value is TypographyLevel;
13
10
  export type CompiledTypography<TLevels extends string = DefaultTypographyLevel> = {
14
11
  [K in TLevels]: TypographyLevel;
@@ -20,37 +17,9 @@ export type DefaultTypographyLevel = (typeof defaultTypographyLevels)[number];
20
17
  export type TypographyConfig<TLevels extends string = DefaultTypographyLevel> = {
21
18
  levels?: Record<TLevels, Partial<TypographyLevel>>;
22
19
  defaultLevel?: TLevels;
23
- weightStep?: CssInterpolation;
24
- lineHeightStep?: CssInterpolation;
25
- minWeight?: CssInterpolation;
26
- maxWeight?: CssInterpolation;
27
- baseWeight?: CssInterpolation;
28
- minLineHeight?: CssInterpolation;
29
- maxLineHeight?: CssInterpolation;
30
- baseLineHeight?: CssInterpolation;
31
- minSize?: string | Css;
32
- maxSize?: string | Css;
33
- /**
34
- * Size is scaled exponentially; this is the "base" (the
35
- * number being scaled).
36
- */
37
- sizeBase?: string | Css;
38
- /**
39
- * Multiplied with the step index to produce an exponent
40
- * for scaling sizeBase. The result is multiplied with
41
- * the default font size.
42
- */
43
- sizeExponentStep?: CssInterpolation;
44
- letterSpacingStep?: CssInterpolation;
45
- minLetterSpacing?: string | Css;
46
- maxLetterSpacing?: string | Css;
47
- baseLetterSpacing?: string | Css;
48
- /**
49
- * Apply an adjustment to font weight in dark mode to compensate for the irradiation illusion.
50
- * Defaults to 0. Adjusting weight can lead to irregular font size between light and dark mode;
51
- * prefer adjusting GRAD in variable fonts.
52
- */
53
- darkModeWeightAdjustment?: CssInterpolation;
20
+ roundToPixel?: boolean;
54
21
  };
55
- export declare function compileTypography<TLevels extends string = DefaultTypographyLevel>(config: TypographyConfig<TLevels>, tokens: RequiredTokens): CompiledTypography<TLevels>;
22
+ export declare function compileTypography<TLevels extends string = DefaultTypographyLevel>(config: TypographyConfig<TLevels>, tokens: ArborModeGlobalTokens, systemTokens: {
23
+ whenDark: Token;
24
+ }): CompiledTypography<TLevels>;
56
25
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presets/arborPreset/modeValues/typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,GAAG,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,GAAG,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC9B,OAAO,EAAE,KAAK,CAAC;IAEf,QAAQ,EAAE,KAAK,CAAC;CAChB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,eAAe,CAOtE;AAED,MAAM,MAAM,kBAAkB,CAC7B,OAAO,SAAS,MAAM,GAAG,sBAAsB,IAC5C;KACF,CAAC,IAAI,OAAO,GAAG,eAAe;CAC/B,GAAG;IACH,MAAM,EAAE,MAAM,CACX,MAAM,GACN,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,QAAQ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S,MAAM,GAAG,sBAAsB,EAE/C,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,EACjC,MAAM,EAAE,cAAc,GACpB,kBAAkB,CAAC,OAAO,CAAC,CAiD7B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/presets/arborPreset/modeValues/typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,GAAG,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC/B,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;IACnB,UAAU,EAAE,gBAAgB,CAAC;IAC7B,aAAa,EAAE,MAAM,GAAG,GAAG,CAAC;CAC5B;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,GAAG,KAAK,IAAI,eAAe,CAOtE;AAED,MAAM,MAAM,kBAAkB,CAC7B,OAAO,SAAS,MAAM,GAAG,sBAAsB,IAC5C;KACF,CAAC,IAAI,OAAO,GAAG,eAAe;CAC/B,GAAG;IACH,MAAM,EAAE,MAAM,CACX,MAAM,GACN,YAAY,GACZ,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,MAAM,GACN,WAAW,GACX,OAAO,EACT,MAAM,GAAG,GAAG,CACZ,CAAC;CACF,CAAC;AAEF,eAAO,MAAM,uBAAuB,4EAW1B,CAAC;AACX,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E,MAAM,MAAM,gBAAgB,CAAC,OAAO,SAAS,MAAM,GAAG,sBAAsB,IAC3E;IACC,MAAM,CAAC,EAAE,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEH,wBAAgB,iBAAiB,CAChC,OAAO,SAAS,MAAM,GAAG,sBAAsB,EAE/C,MAAM,EAAE,gBAAgB,CAAC,OAAO,CAAC,EACjC,MAAM,EAAE,qBAAqB,EAC7B,YAAY,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAA;CAAE,GAC/B,kBAAkB,CAAC,OAAO,CAAC,CAiD7B"}
@@ -17,7 +17,7 @@ export const defaultTypographyLevels = [
17
17
  '5xl',
18
18
  '6xl',
19
19
  ];
20
- export function compileTypography(config, tokens) {
20
+ export function compileTypography(config, tokens, systemTokens) {
21
21
  const levelNames = config.levels ?
22
22
  Object.keys(config.levels)
23
23
  : defaultTypographyLevels;
@@ -32,9 +32,9 @@ export function compileTypography(config, tokens) {
32
32
  const nameCast = name;
33
33
  const levelConfig = config.levels?.[nameCast] ?? {};
34
34
  acc[nameCast] = {
35
- size: css `calc(clamp(${config.minSize ?? '0.75rem'}, 1rem * pow(${config.sizeBase ?? 1.125}, (${i - baseIndex} * ${config.sizeExponentStep ?? 1})) / ${[tokens.density, 1]}, ${config.maxSize ?? '3rem'}))`,
36
- lineHeight: css `calc(clamp(${config.minLineHeight ?? 0.75}, (${config.baseLineHeight ?? 1.5} - ${config.lineHeightStep ?? 0.5} * ${i - baseIndex}), ${config.maxLineHeight ?? 2}))`,
37
- letterSpacing: css `calc(clamp(${config.minLetterSpacing ?? 0}, (${config.baseLetterSpacing ?? 0} + ${config.letterSpacingStep ?? 0} * ${i - baseIndex}), ${config.maxLetterSpacing ?? 0}))`,
35
+ size: css `calc(${config.roundToPixel ? 'round(' : ''}clamp(${tokens.typography.minFontSize ?? '0.75rem'}, 1rem * pow(${tokens.typography.fontSizeScaleBase ?? 1.125}, (${i - baseIndex} * ${tokens.typography.fontSizeScaleExponentStep ?? 1})) / ${[tokens.spacing.density, 1]}, ${tokens.typography.maxFontSize ?? '3rem'})${config.roundToPixel ? ', 1px)' : ''})`,
36
+ lineHeight: css `calc(clamp(${tokens.typography.minLineHeight ?? 0.75}, (${tokens.typography.baseLineHeight ?? 1.5} - ${tokens.typography.lineHeightStep ?? 0.5} * ${i - baseIndex}), ${tokens.typography.maxLineHeight ?? 2}))`,
37
+ letterSpacing: css `calc(clamp(${tokens.typography.minLetterSpacing ?? 0}, (${tokens.typography.baseLetterSpacing ?? 0} + ${tokens.typography.letterSpacingStep ?? 0} * ${i - baseIndex}), ${tokens.typography.maxLetterSpacing ?? 0}))`,
38
38
  ...levelConfig,
39
39
  };
40
40
  return acc;
@@ -49,7 +49,7 @@ export function compileTypography(config, tokens) {
49
49
  ].reduce((acc, weightName, i) => {
50
50
  const stepsFromNormal = i - 2; // normal is the 3rd item in the list (index 2)
51
51
  acc[weightName] =
52
- css `calc(clamp(${config.minWeight ?? 100}, ${config.baseWeight ?? 400} + ${config.weightStep ?? 100} * ${stepsFromNormal} - (${tokens.whenDark} * ${config.darkModeWeightAdjustment ?? 0}), ${config.maxWeight ?? 900}))`;
52
+ css `calc(clamp(${tokens.typography.minWeight ?? 100}, ${tokens.typography.baseWeight ?? 400} + ${tokens.typography.weightStep ?? 100} * ${stepsFromNormal} - (${systemTokens.whenDark} * ${tokens.typography.darkModeWeightAdjustment ?? 0}), ${tokens.typography.maxWeight ?? 900}))`;
53
53
  return acc;
54
54
  }, {});
55
55
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presets/arborPreset/modeValues/typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAyB,MAAM,qBAAqB,CAAC;AAejE,MAAM,UAAU,iBAAiB,CAAC,KAAU;IAC3C,OAAO,CACN,KAAK;QACL,MAAM,IAAI,KAAK;QACf,YAAY,IAAI,KAAK;QACrB,eAAe,IAAI,KAAK,CACxB,CAAC;AACH,CAAC;AAqBD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACtC,IAAI;IACJ,IAAI;IACJ,IAAI;I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,MAAM,MAAM,CAAC,cAAc,IAAI,GAAG,MAAM,CAAC,GAAG,SAAS,MAAM,MAAM,CAAC,aAAa,IAAI,CAAC,IAAI;YACnL,aAAa,EAAE,GAAG,CAAA,cAAc,MAAM,CAAC,gBAAgB,IAAI,CAAC,MAAM,MAAM,CAAC,iBAAiB,IAAI,CAAC,MAAM,MAAM,CAAC,iBAAiB,IAAI,CAAC,MAAM,CAAC,GAAG,SAAS,MAAM,MAAM,CAAC,gBAAgB,IAAI,CAAC,IAAI;YAC3L,GAAG,WAAW;SACd,CAAC;QACF,OAAO,GAAG,CAAC;IACZ,CAAC,EACD,EAAsC,CACP,CAAC;IAEjC,MAAM,OAAO,GAAG;QACf,MAAM;QACN,OAAO;QACP,QAAQ;QACR,UAAU;QACV,MAAM;QACN,OAAO;KACP,CAAC,MAAM,CACP,CAAC,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE;QACtB,MAAM,eAAe,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,+CAA+C;QAC9E,GAAG,CAAC,UAAgD,CAAC;YACpD,GAAG,CAAA,cAAc,MAAM,CAAC,SAAS,IAAI,GAAG,KAAK,MAAM,CAAC,UAAU,IAAI,GAAG,MAAM,MAAM,CAAC,UAAU,IAAI,GAAG,MAAM,eAAe,OAAO,MAAM,CAAC,QAAQ,MAAM,MAAM,CAAC,wBAAwB,IAAI,CAAC,MAAM,MAAM,CAAC,SAAS,IAAI,GAAG,IAAI,CAAC;QAC3N,OAAO,GAAG,CAAC;IACZ,CAAC,EACD,EAA8D,CAC9D,CAAC;IAEF,OAAO;QACN,GAAG,MAAM;QACT,MAAM,EAAE,OAAO;KACf,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/presets/arborPreset/modeValues/typography/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAyB,MAAM,qBAAqB,CAAC;AAUjE,MAAM,UAAU,iBAAiB,CAAC,KAAU;IAC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AG,KAAK,MAAM,CAAC,UAAU,CAAC,UAAU,IAAI,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC,UAAU,IAAI,GAAG,MAAM,eAAe,OAAO,YAAY,CAAC,QAAQ,MAAM,MAAM,CAAC,UAAU,CAAC,wBAAwB,IAAI,CAAC,MAAM,MAAM,CAAC,UAAU,CAAC,SAAS,IAAI,GAAG,IAAI,CAAC;QACxR,OAAO,GAAG,CAAC;IACZ,CAAC,EACD,EAA8D,CAC9D,CAAC;IAEF,OAAO;QACN,GAAG,MAAM;QACT,MAAM,EAAE,OAAO;KACf,CAAC;AACH,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { CssInterpolation } from '@arbor-css/css-eval';
1
2
  import { ArborPrefixConfig } from '@arbor-css/globals';
2
3
  import { ModeValues } from '@arbor-css/modes';
3
4
  import { ArborModeSchema } from './modeSchema/modeSchema.js';
@@ -10,13 +11,102 @@ export interface ArborPresetConfig<TRanges extends string, TRangeStepNames exten
10
11
  color: CompileColorsOptions<TRanges, TRangeStepNames> & {
11
12
  mainColor: string;
12
13
  defaultScheme?: 'light' | 'dark';
14
+ /**
15
+ * This saturation tuning value affects every color used in
16
+ * your mode. It multiplies with any per-color-range saturation
17
+ * values you set up. Default is 0.5.
18
+ *
19
+ * Any valid CSS number value can be used here.
20
+ */
21
+ globalSaturation?: CssInterpolation;
22
+ };
23
+ typography?: TypographyConfig & {
24
+ /**
25
+ * Specify a global font size. This is not recommended;
26
+ * the default "1em" respects the end user's font size
27
+ * preference. If customized, consider still using
28
+ * em units.
29
+ *
30
+ * Any valid CSS font-size value can be used here.
31
+ */
32
+ defaultFontSize?: CssInterpolation;
33
+ fontSizeScaleBase?: CssInterpolation;
34
+ fontSizeScaleExponentStep?: CssInterpolation;
35
+ baseLetterSpacing?: CssInterpolation;
36
+ baseLineHeight?: CssInterpolation;
37
+ weightStep?: CssInterpolation;
38
+ baseWeight?: CssInterpolation;
39
+ darkModeWeightAdjustment?: CssInterpolation;
40
+ letterSpacingStep?: CssInterpolation;
41
+ minLetterSpacing?: CssInterpolation;
42
+ maxLetterSpacing?: CssInterpolation;
43
+ lineHeightStep?: CssInterpolation;
44
+ maxFontSize?: CssInterpolation;
45
+ maxLineHeight?: CssInterpolation;
46
+ maxWeight?: CssInterpolation;
47
+ minFontSize?: CssInterpolation;
48
+ minLineHeight?: CssInterpolation;
49
+ minWeight?: CssInterpolation;
50
+ };
51
+ spacing?: SpacingConfig & {
52
+ /**
53
+ * This density tuning value affects all spacing (and font size) tokens
54
+ * used in your mode. It multiplies with any per-token density
55
+ * adjustments to create the final spacing or size value.
56
+ *
57
+ * Larger density values create *more dense* UIs,
58
+ * meaning smaller spacing and text. The default is 1.
59
+ *
60
+ * Any valid CSS number value can be used here.
61
+ */
62
+ globalDensity?: CssInterpolation;
63
+ /**
64
+ * This is the root size of your spacing scale, from which
65
+ * other values are derived. Default is "8px"
66
+ *
67
+ * Any valid CSS length value can be used here.
68
+ */
69
+ baseSize?: CssInterpolation;
70
+ scaleBase?: CssInterpolation;
71
+ scaleExponentStep?: CssInterpolation;
72
+ };
73
+ shadow?: ShadowConfig & {
74
+ /**
75
+ * Controls the spread amount of all shadows used in the mode.
76
+ * A value from 0 to 1 is recommended.
77
+ * Any valid CSS number value can be used here.
78
+ */
79
+ globalSpread?: CssInterpolation;
80
+ /**
81
+ * Controls the blur amount of all shadows used in the mode.
82
+ * A value from 0 to 1 is recommended.
83
+ * Any valid CSS number value can be used here.
84
+ */
85
+ globalBlur?: CssInterpolation;
86
+ /**
87
+ * When no shadow color is specified, this is the default.
88
+ * Any valid CSS color value can be used here.
89
+ */
90
+ defaultColor?: CssInterpolation;
91
+ };
92
+ shape?: {
93
+ /**
94
+ * Influences the thickness of borders. Default is 1.
95
+ * Any valid CSS number value can be used here.
96
+ */
97
+ lineWidth?: CssInterpolation;
98
+ /**
99
+ * Globally influences the corner radius values of
100
+ * used in the mode. Roundness also has an influence
101
+ * on the padding of intent tokens. Default is 1.
102
+ * A value from 0 to 2 is recommended, but this is all
103
+ * relative and the default is somewhat arbitrary to begin with.
104
+ * Any valid CSS number value can be used here.
105
+ */
106
+ roundness?: CssInterpolation;
13
107
  };
14
- typography?: TypographyConfig;
15
- spacing?: SpacingConfig;
16
- shadow?: ShadowConfig;
17
108
  easing?: ModeValues<ArborModeSchema['easing']>;
18
109
  duration?: ModeValues<ArborModeSchema['duration']>;
19
- globals?: Partial<ModeValues<ArborModeSchema['global']>>;
20
110
  /**
21
111
  * Turns off the automatic bundled @mode-light, @mode-dark, and @mode-inverted.
22
112
  */
@@ -55,41 +145,127 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
55
145
  };
56
146
  } & {
57
147
  global: {
58
- density: {
59
- purpose: "scalar";
60
- description: "A scaling factor for density. Higher density means smaller, tighter spacing and size";
61
- };
62
- saturation: {
63
- purpose: "scalar";
64
- description: "Applies global saturation adjustments to all colors";
65
- };
66
- roundness: {
67
- purpose: "scalar";
68
- description: "Controls the roundness of corners. Larger roundness values also may affect padding.";
69
- };
70
- shadowSpread: {
71
- purpose: "scalar";
72
- description: "Controls the spread size of all shadows.";
73
- };
74
- shadowBlur: {
75
- purpose: "scalar";
76
- description: "Controls the blur scaling of all shadows.";
148
+ color: {
149
+ saturation: {
150
+ purpose: "scalar";
151
+ description: "Applies global saturation adjustments to all colors";
152
+ };
77
153
  };
78
- lineWidth: {
79
- purpose: "scalar";
80
- description: "Controls the width of lines used for borders, etc.";
154
+ spacing: {
155
+ density: {
156
+ purpose: "scalar";
157
+ description: "A scaling factor for density. Higher density means smaller, tighter spacing and size";
158
+ };
159
+ baseSize: {
160
+ purpose: "spacing";
161
+ description: "Defines the base spacing unit used to derive spacing and layout tokens.";
162
+ };
163
+ scaleBase: {
164
+ purpose: "scalar";
165
+ description: "The \"base\" number of the scale equation - a linear scalar multiplier. Set this to scale by some linear factor if scaleExponent is \"1\"";
166
+ };
167
+ scaleExponentStep: {
168
+ purpose: "scalar";
169
+ description: "The exponent of the scale equation - the rate of exponential growth. `scaleBase` is raised to this exponent before being multiplied by the base spacing size. Set this to \"1\" to scale linearly by the `scaleBase` factor, or set it to a value greater than \"1\" to have exponential growth.";
170
+ };
81
171
  };
82
- baseFontSize: {
83
- purpose: "font-size";
84
- description: "Defines the root font size used to derive typography tokens.";
172
+ shape: {
173
+ roundness: {
174
+ purpose: "scalar";
175
+ description: "Controls the roundness of corners. Larger roundness values also may affect padding.";
176
+ };
177
+ lineWidth: {
178
+ purpose: "scalar";
179
+ description: "Controls the width of lines used for borders, etc.";
180
+ };
85
181
  };
86
- baseSpacingSize: {
87
- purpose: "spacing";
88
- description: "Defines the base spacing unit used to derive spacing and layout tokens.";
182
+ shadow: {
183
+ spread: {
184
+ purpose: "scalar";
185
+ description: "Controls the spread size of all shadows.";
186
+ };
187
+ blur: {
188
+ purpose: "scalar";
189
+ description: "Controls the blur scaling of all shadows.";
190
+ };
191
+ color: {
192
+ purpose: "color";
193
+ description: "Provides the default shadow color used when a shadow token does not supply its own color.";
194
+ };
89
195
  };
90
- defaultShadowColor: {
91
- purpose: "color";
92
- description: "Provides the default shadow color used when a shadow token does not supply its own color.";
196
+ typography: {
197
+ baseFontSize: {
198
+ purpose: "font-size";
199
+ description: "Defines the root font size used to derive typography tokens.";
200
+ };
201
+ weightStep: {
202
+ purpose: "scalar";
203
+ description: "The amount of font weight change between each typography level. This is multiplied by the level index to determine how much to adjust font weight at each level.";
204
+ };
205
+ minWeight: {
206
+ purpose: "scalar";
207
+ description: "The minimum font weight to use in the typography scale.";
208
+ };
209
+ maxWeight: {
210
+ purpose: "scalar";
211
+ description: "The maximum font weight to use in the typography scale.";
212
+ };
213
+ baseWeight: {
214
+ purpose: "scalar";
215
+ description: "The base font weight from which to calculate typography levels. This is typically the \"normal\" font weight (e.g. 400), and level adjustments are applied as positive or negative offsets from this base.";
216
+ };
217
+ lineHeightStep: {
218
+ purpose: "scalar";
219
+ description: "The amount of line height change between each typography level. This is multiplied by the level index to determine how much to adjust line height at each level.";
220
+ };
221
+ minLineHeight: {
222
+ purpose: "scalar";
223
+ description: "The minimum line height to use in the typography scale.";
224
+ };
225
+ maxLineHeight: {
226
+ purpose: "scalar";
227
+ description: "The maximum line height to use in the typography scale.";
228
+ };
229
+ baseLineHeight: {
230
+ purpose: "scalar";
231
+ description: "The base line height from which to calculate typography levels. This is typically the line height used at the default typography level, and level adjustments are applied as positive or negative offsets from this base.";
232
+ };
233
+ minFontSize: {
234
+ purpose: "font-size";
235
+ description: "The minimum font size to use in the typography scale.";
236
+ };
237
+ maxFontSize: {
238
+ purpose: "font-size";
239
+ description: "The maximum font size to use in the typography scale.";
240
+ };
241
+ fontSizeScaleBase: {
242
+ purpose: "scalar";
243
+ description: "The \"base\" number of the font size scale equation - a linear scalar multiplier. Set this to scale by some linear factor if sizeExponent is \"1\"";
244
+ };
245
+ fontSizeScaleExponentStep: {
246
+ purpose: "scalar";
247
+ description: "The exponent of the font size scale equation - the rate of exponential growth. `fontSizeScaleBase` is raised to this exponent before being multiplied by the base font size. Set this to \"1\" to scale linearly by the `fontSizeScaleBase` factor, or set it to a value greater than \"1\" to have exponential growth.";
248
+ };
249
+ letterSpacingStep: {
250
+ purpose: "scalar";
251
+ description: "The amount of letter spacing change between each typography level. This is multiplied by the level index to determine how much to adjust letter spacing at each level.";
252
+ };
253
+ minLetterSpacing: {
254
+ purpose: "spacing";
255
+ description: "The minimum letter spacing to use in the typography scale.";
256
+ };
257
+ maxLetterSpacing: {
258
+ purpose: "spacing";
259
+ description: "The maximum letter spacing to use in the typography scale.";
260
+ };
261
+ baseLetterSpacing: {
262
+ purpose: "spacing";
263
+ description: "The base letter spacing from which to calculate typography levels. This is typically the letter spacing used at the default typography level, and level adjustments are applied as positive or negative offsets from this base.";
264
+ };
265
+ darkModeWeightAdjustment: {
266
+ purpose: "scalar";
267
+ description: "An adjustment applied to font weight when in dark mode to compensate for the irradiation illusion. This is typically a negative value to reduce font weight in dark mode, but it can be positive if your theme has very light text and you want to increase weight in dark mode.";
268
+ };
93
269
  };
94
270
  };
95
271
  primitive: {
@@ -522,7 +698,7 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
522
698
  description: "Foreground color";
523
699
  };
524
700
  bg: {
525
- purpose: "other";
701
+ purpose: "background";
526
702
  description: "Background - can be a color or a more complex value like a gradient or image";
527
703
  };
528
704
  borderColor: {
@@ -545,7 +721,7 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
545
721
  description: "Foreground color";
546
722
  };
547
723
  bg: {
548
- purpose: "other";
724
+ purpose: "background";
549
725
  description: "Background - can be a color or a more complex value like a gradient or image";
550
726
  };
551
727
  borderColor: {
@@ -568,7 +744,7 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
568
744
  description: "Foreground color";
569
745
  };
570
746
  bg: {
571
- purpose: "other";
747
+ purpose: "background";
572
748
  description: "Background - can be a color or a more complex value like a gradient or image";
573
749
  };
574
750
  borderColor: {
@@ -592,7 +768,7 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
592
768
  description: "Foreground color";
593
769
  };
594
770
  bg: {
595
- purpose: "other";
771
+ purpose: "background";
596
772
  description: "Background - can be a color or a more complex value like a gradient or image";
597
773
  };
598
774
  borderColor: {
@@ -660,7 +836,7 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
660
836
  description: "Foreground color";
661
837
  };
662
838
  bg: {
663
- purpose: "other";
839
+ purpose: "background";
664
840
  description: "Background - can be a color or a more complex value like a gradient or image";
665
841
  };
666
842
  borderColor: {
@@ -683,7 +859,7 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
683
859
  description: "Foreground color";
684
860
  };
685
861
  bg: {
686
- purpose: "other";
862
+ purpose: "background";
687
863
  description: "Background - can be a color or a more complex value like a gradient or image";
688
864
  };
689
865
  borderColor: {
@@ -706,7 +882,7 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
706
882
  description: "Foreground color";
707
883
  };
708
884
  bg: {
709
- purpose: "other";
885
+ purpose: "background";
710
886
  description: "Background - can be a color or a more complex value like a gradient or image";
711
887
  };
712
888
  borderColor: {
@@ -2289,8 +2465,8 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
2289
2465
  [x: string]: /*elided*/ any;
2290
2466
  $root?: undefined;
2291
2467
  }>;
2292
- }, "border" | "control" | "borderLighter" | "borderHeavier" | "borderDesaturated" | "borderSaturated" | "borderFaded" | "actionPrimary" | "actionSecondary" | "actionAmbient" | "surfacePrimary" | "surfaceSecondary" | "surfaceAmbient" | "textPrimary" | "textSecondary" | "textAmbient"> & {
2293
- border: import("@arbor-css/functions").ArborMixin<readonly ["--color"], {
2468
+ }, "borderColor" | "borderColorLighter" | "borderColorHeavier" | "borderColorDesaturated" | "borderColorSaturated" | "borderColorFaded" | "control" | "actionPrimary" | "actionSecondary" | "actionAmbient" | "surfacePrimary" | "surfaceSecondary" | "surfaceAmbient" | "textPrimary" | "textSecondary" | "textAmbient"> & {
2469
+ borderColor: import("@arbor-css/functions").ArborMixin<readonly ["--color"], {
2294
2470
  applied: {
2295
2471
  "@@TOKEN@@": true;
2296
2472
  name: string;
@@ -2439,35 +2615,35 @@ export declare const presetArbor: <TRanges extends string, TRangeStepNames exten
2439
2615
  };
2440
2616
  };
2441
2617
  }>;
2442
- borderLighter: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2618
+ borderColorLighter: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2443
2619
  readonly name: "--source";
2444
2620
  readonly fallback: string;
2445
2621
  }], {
2446
2622
  [x: string]: /*elided*/ any;
2447
2623
  $root?: undefined;
2448
2624
  }>;
2449
- borderHeavier: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2625
+ borderColorHeavier: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2450
2626
  readonly name: "--source";
2451
2627
  readonly fallback: string;
2452
2628
  }], {
2453
2629
  [x: string]: /*elided*/ any;
2454
2630
  $root?: undefined;
2455
2631
  }>;
2456
- borderDesaturated: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2632
+ borderColorDesaturated: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2457
2633
  readonly name: "--source";
2458
2634
  readonly fallback: string;
2459
2635
  }], {
2460
2636
  [x: string]: /*elided*/ any;
2461
2637
  $root?: undefined;
2462
2638
  }>;
2463
- borderSaturated: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2639
+ borderColorSaturated: import("@arbor-css/functions").ArborMixin<readonly ["--step", {
2464
2640
  readonly name: "--source";
2465
2641
  readonly fallback: string;
2466
2642
  }], {
2467
2643
  [x: string]: /*elided*/ any;
2468
2644
  $root?: undefined;
2469
2645
  }>;
2470
- borderFaded: import("@arbor-css/functions").ArborMixin<readonly ["--opacity", {
2646
+ borderColorFaded: import("@arbor-css/functions").ArborMixin<readonly ["--opacity", {
2471
2647
  readonly name: "--source";
2472
2648
  readonly fallback: string;
2473
2649
  }], {
@@ -1 +1 @@
1
- {"version":3,"file":"preset.d.ts","sourceRoot":"","sources":["../../../src/presets/arborPreset/preset.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAI9C,OAAO,EACN,eAAe,EAEf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEN,oBAAoB,EACpB,gBAAgB,EAChB,MAAM,6BAA6B,CAAC;AAgBrC,OAAO,EAAkB,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAkB,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAEN,gBAAgB,EAChB,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,iBAAiB,CACjC,OAAO,SAAS,MAAM,EACtB,eAAe,SAAS,MAAM,GAAG,gBAAgB;IAEjD,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,KAAK,EAAE,oBAAoB,CAAC,OAAO,EAAE,eAAe,CAAC,GAAG;QAC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