@m3e/core 1.1.0 → 1.1.2

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.
@@ -17,105 +17,6 @@
17
17
  }
18
18
  ]
19
19
  },
20
- {
21
- "kind": "javascript-module",
22
- "path": "src/anchoring/AnchorOptions.ts",
23
- "declarations": [],
24
- "exports": []
25
- },
26
- {
27
- "kind": "javascript-module",
28
- "path": "src/anchoring/AnchorPosition.ts",
29
- "declarations": [],
30
- "exports": []
31
- },
32
- {
33
- "kind": "javascript-module",
34
- "path": "src/anchoring/index.ts",
35
- "declarations": [],
36
- "exports": [
37
- {
38
- "kind": "js",
39
- "name": "*",
40
- "declaration": {
41
- "name": "*",
42
- "package": "\"./AnchorOptions\""
43
- }
44
- },
45
- {
46
- "kind": "js",
47
- "name": "*",
48
- "declaration": {
49
- "name": "*",
50
- "package": "\"./AnchorPosition\""
51
- }
52
- },
53
- {
54
- "kind": "js",
55
- "name": "*",
56
- "declaration": {
57
- "name": "*",
58
- "package": "\"./positionAnchor\""
59
- }
60
- }
61
- ]
62
- },
63
- {
64
- "kind": "javascript-module",
65
- "path": "src/anchoring/positionAnchor.ts",
66
- "declarations": [
67
- {
68
- "kind": "function",
69
- "name": "positionAnchor",
70
- "return": {
71
- "type": {
72
- "text": "Promise<() => void>"
73
- }
74
- },
75
- "parameters": [
76
- {
77
- "name": "target",
78
- "type": {
79
- "text": "HTMLElement"
80
- },
81
- "description": "The element to position."
82
- },
83
- {
84
- "name": "anchor",
85
- "type": {
86
- "text": "HTMLElement"
87
- },
88
- "description": "The element in which to anchor `target`."
89
- },
90
- {
91
- "name": "options",
92
- "type": {
93
- "text": "AnchorOptions"
94
- },
95
- "description": "Options that control positioning relative to the anchor."
96
- },
97
- {
98
- "name": "update",
99
- "type": {
100
- "text": "((x: number, y: number, position: AnchorPosition) => void)"
101
- },
102
- "description": "Callback used to position `target`."
103
- }
104
- ],
105
- "description": "Positions an element relative to an anchor element."
106
- }
107
- ],
108
- "exports": [
109
- {
110
- "kind": "js",
111
- "name": "positionAnchor",
112
- "declaration": {
113
- "name": "positionAnchor",
114
- "module": "src/anchoring/positionAnchor.ts"
115
- }
116
- }
117
- ]
118
- },
119
20
  {
120
21
  "kind": "javascript-module",
121
22
  "path": "src/a11y/aria-reference.ts",
@@ -999,6 +900,105 @@
999
900
  }
1000
901
  ]
1001
902
  },
903
+ {
904
+ "kind": "javascript-module",
905
+ "path": "src/anchoring/AnchorOptions.ts",
906
+ "declarations": [],
907
+ "exports": []
908
+ },
909
+ {
910
+ "kind": "javascript-module",
911
+ "path": "src/anchoring/AnchorPosition.ts",
912
+ "declarations": [],
913
+ "exports": []
914
+ },
915
+ {
916
+ "kind": "javascript-module",
917
+ "path": "src/anchoring/index.ts",
918
+ "declarations": [],
919
+ "exports": [
920
+ {
921
+ "kind": "js",
922
+ "name": "*",
923
+ "declaration": {
924
+ "name": "*",
925
+ "package": "\"./AnchorOptions\""
926
+ }
927
+ },
928
+ {
929
+ "kind": "js",
930
+ "name": "*",
931
+ "declaration": {
932
+ "name": "*",
933
+ "package": "\"./AnchorPosition\""
934
+ }
935
+ },
936
+ {
937
+ "kind": "js",
938
+ "name": "*",
939
+ "declaration": {
940
+ "name": "*",
941
+ "package": "\"./positionAnchor\""
942
+ }
943
+ }
944
+ ]
945
+ },
946
+ {
947
+ "kind": "javascript-module",
948
+ "path": "src/anchoring/positionAnchor.ts",
949
+ "declarations": [
950
+ {
951
+ "kind": "function",
952
+ "name": "positionAnchor",
953
+ "return": {
954
+ "type": {
955
+ "text": "Promise<() => void>"
956
+ }
957
+ },
958
+ "parameters": [
959
+ {
960
+ "name": "target",
961
+ "type": {
962
+ "text": "HTMLElement"
963
+ },
964
+ "description": "The element to position."
965
+ },
966
+ {
967
+ "name": "anchor",
968
+ "type": {
969
+ "text": "HTMLElement"
970
+ },
971
+ "description": "The element in which to anchor `target`."
972
+ },
973
+ {
974
+ "name": "options",
975
+ "type": {
976
+ "text": "AnchorOptions"
977
+ },
978
+ "description": "Options that control positioning relative to the anchor."
979
+ },
980
+ {
981
+ "name": "update",
982
+ "type": {
983
+ "text": "((x: number, y: number, position: AnchorPosition) => void)"
984
+ },
985
+ "description": "Callback used to position `target`."
986
+ }
987
+ ],
988
+ "description": "Positions an element relative to an anchor element."
989
+ }
990
+ ],
991
+ "exports": [
992
+ {
993
+ "kind": "js",
994
+ "name": "positionAnchor",
995
+ "declaration": {
996
+ "name": "positionAnchor",
997
+ "module": "src/anchoring/positionAnchor.ts"
998
+ }
999
+ }
1000
+ ]
1001
+ },
1002
1002
  {
1003
1003
  "kind": "javascript-module",
1004
1004
  "path": "src/bidi/Directionality.ts",
@@ -8473,102 +8473,34 @@
8473
8473
  },
8474
8474
  {
8475
8475
  "kind": "javascript-module",
8476
- "path": "src/shared/directives/index.ts",
8477
- "declarations": [],
8478
- "exports": [
8479
- {
8480
- "kind": "js",
8481
- "name": "*",
8482
- "declaration": {
8483
- "name": "*",
8484
- "package": "\"./safeStyleMap\""
8485
- }
8486
- }
8487
- ]
8488
- },
8489
- {
8490
- "kind": "javascript-module",
8491
- "path": "src/shared/directives/safeStyleMap.ts",
8476
+ "path": "src/shared/primitives/CollapsibleElement.ts",
8492
8477
  "declarations": [
8493
8478
  {
8494
8479
  "kind": "class",
8495
- "description": "",
8496
- "name": "SafeStyleMapDirective",
8480
+ "description": "A container used to expand and collapse content.",
8481
+ "name": "M3eCollapsibleElement",
8482
+ "cssProperties": [
8483
+ {
8484
+ "description": "The duration of the expand / collapse animation.",
8485
+ "name": "--m3e-collapsible-animation-duration"
8486
+ }
8487
+ ],
8488
+ "slots": [
8489
+ {
8490
+ "description": "Renders the collapsible content.",
8491
+ "name": ""
8492
+ }
8493
+ ],
8497
8494
  "members": [
8498
8495
  {
8499
8496
  "kind": "field",
8500
- "name": "_previousStyleProperties",
8497
+ "name": "#slotChanged",
8498
+ "privacy": "private",
8501
8499
  "type": {
8502
- "text": "Set<string> | undefined"
8500
+ "text": "boolean"
8503
8501
  },
8504
- "privacy": "private"
8505
- }
8506
- ],
8507
- "superclass": {
8508
- "name": "Directive",
8509
- "package": "lit/directive.js"
8510
- }
8511
- },
8512
- {
8513
- "kind": "variable",
8514
- "name": "safeStyleMap",
8515
- "description": "A directive that applies CSS properties to an element.\r\n\r\n`safeStyleMap` can only be used in the `style` attribute and must be the only\r\nexpression in the attribute. It takes the property names in the\r\nStyleInfostyleInfo object and adds the properties to the inline\r\nstyle of the element.\r\n\r\nProperty names with dashes (`-`) are assumed to be valid CSS\r\nproperty names and set on the element's style object using `setProperty()`.\r\nNames without dashes are assumed to be camelCased JavaScript property names\r\nand set on the element's style object using property assignment, allowing the\r\nstyle object to translate JavaScript-style names to CSS property names.\r\n\r\nFor example `safeStyleMap({backgroundColor: 'red', 'border-top': '5px', '--size':\r\n'0'})` sets the `background-color`, `border-top` and `--size` properties.",
8516
- "parameters": [
8517
- {
8518
- "name": "styleInfo"
8519
- }
8520
- ]
8521
- }
8522
- ],
8523
- "exports": [
8524
- {
8525
- "kind": "js",
8526
- "name": "safeStyleMap",
8527
- "declaration": {
8528
- "name": "safeStyleMap",
8529
- "module": "src/shared/directives/safeStyleMap.ts"
8530
- }
8531
- },
8532
- {
8533
- "kind": "js",
8534
- "name": "SafeStyleMapDirective",
8535
- "declaration": {
8536
- "name": "SafeStyleMapDirective",
8537
- "module": "src/shared/directives/safeStyleMap.ts"
8538
- }
8539
- }
8540
- ]
8541
- },
8542
- {
8543
- "kind": "javascript-module",
8544
- "path": "src/shared/primitives/CollapsibleElement.ts",
8545
- "declarations": [
8546
- {
8547
- "kind": "class",
8548
- "description": "A container used to expand and collapse content.",
8549
- "name": "M3eCollapsibleElement",
8550
- "cssProperties": [
8551
- {
8552
- "description": "The duration of the expand / collapse animation.",
8553
- "name": "--m3e-collapsible-animation-duration"
8554
- }
8555
- ],
8556
- "slots": [
8557
- {
8558
- "description": "Renders the collapsible content.",
8559
- "name": ""
8560
- }
8561
- ],
8562
- "members": [
8563
- {
8564
- "kind": "field",
8565
- "name": "#slotChanged",
8566
- "privacy": "private",
8567
- "type": {
8568
- "text": "boolean"
8569
- },
8570
- "default": "false"
8571
- },
8502
+ "default": "false"
8503
+ },
8572
8504
  {
8573
8505
  "kind": "field",
8574
8506
  "name": "#hasOpened",
@@ -10901,312 +10833,308 @@
10901
10833
  },
10902
10834
  {
10903
10835
  "kind": "javascript-module",
10904
- "path": "src/shared/utils/forcedColorsActive.ts",
10905
- "declarations": [
10906
- {
10907
- "kind": "function",
10908
- "name": "forcedColorsActive",
10909
- "return": {
10910
- "type": {
10911
- "text": "boolean"
10912
- }
10913
- },
10914
- "description": "Determines whether forced colors are active."
10915
- }
10916
- ],
10836
+ "path": "src/shared/directives/index.ts",
10837
+ "declarations": [],
10917
10838
  "exports": [
10918
10839
  {
10919
10840
  "kind": "js",
10920
- "name": "forcedColorsActive",
10841
+ "name": "*",
10921
10842
  "declaration": {
10922
- "name": "forcedColorsActive",
10923
- "module": "src/shared/utils/forcedColorsActive.ts"
10843
+ "name": "*",
10844
+ "package": "\"./safeStyleMap\""
10924
10845
  }
10925
10846
  }
10926
10847
  ]
10927
10848
  },
10928
10849
  {
10929
10850
  "kind": "javascript-module",
10930
- "path": "src/shared/utils/generateClipPaths.ts",
10851
+ "path": "src/shared/directives/safeStyleMap.ts",
10931
10852
  "declarations": [
10932
10853
  {
10933
- "kind": "function",
10934
- "name": "generateClipPaths",
10935
- "return": {
10936
- "type": {
10937
- "text": "string[]"
10938
- }
10939
- },
10940
- "parameters": [
10941
- {
10942
- "name": "paths",
10943
- "type": {
10944
- "text": "string[]"
10945
- },
10946
- "description": "The SVG path data to convert to normalized clip paths."
10947
- },
10854
+ "kind": "class",
10855
+ "description": "",
10856
+ "name": "SafeStyleMapDirective",
10857
+ "members": [
10948
10858
  {
10949
- "name": "maxPoints",
10859
+ "kind": "field",
10860
+ "name": "_previousStyleProperties",
10950
10861
  "type": {
10951
- "text": "number"
10862
+ "text": "Set<string> | undefined"
10952
10863
  },
10953
- "description": "The maximum number of points to which to normalize paths."
10864
+ "privacy": "private"
10954
10865
  }
10955
10866
  ],
10956
- "description": "Generates normalized clip paths from SVG path data."
10867
+ "superclass": {
10868
+ "name": "Directive",
10869
+ "package": "lit/directive.js"
10870
+ }
10871
+ },
10872
+ {
10873
+ "kind": "variable",
10874
+ "name": "safeStyleMap",
10875
+ "description": "A directive that applies CSS properties to an element.\r\n\r\n`safeStyleMap` can only be used in the `style` attribute and must be the only\r\nexpression in the attribute. It takes the property names in the\r\nStyleInfostyleInfo object and adds the properties to the inline\r\nstyle of the element.\r\n\r\nProperty names with dashes (`-`) are assumed to be valid CSS\r\nproperty names and set on the element's style object using `setProperty()`.\r\nNames without dashes are assumed to be camelCased JavaScript property names\r\nand set on the element's style object using property assignment, allowing the\r\nstyle object to translate JavaScript-style names to CSS property names.\r\n\r\nFor example `safeStyleMap({backgroundColor: 'red', 'border-top': '5px', '--size':\r\n'0'})` sets the `background-color`, `border-top` and `--size` properties.",
10876
+ "parameters": [
10877
+ {
10878
+ "name": "styleInfo"
10879
+ }
10880
+ ]
10957
10881
  }
10958
10882
  ],
10959
10883
  "exports": [
10960
10884
  {
10961
10885
  "kind": "js",
10962
- "name": "generateClipPaths",
10886
+ "name": "safeStyleMap",
10963
10887
  "declaration": {
10964
- "name": "generateClipPaths",
10965
- "module": "src/shared/utils/generateClipPaths.ts"
10888
+ "name": "safeStyleMap",
10889
+ "module": "src/shared/directives/safeStyleMap.ts"
10890
+ }
10891
+ },
10892
+ {
10893
+ "kind": "js",
10894
+ "name": "SafeStyleMapDirective",
10895
+ "declaration": {
10896
+ "name": "SafeStyleMapDirective",
10897
+ "module": "src/shared/directives/safeStyleMap.ts"
10966
10898
  }
10967
10899
  }
10968
10900
  ]
10969
10901
  },
10970
10902
  {
10971
10903
  "kind": "javascript-module",
10972
- "path": "src/shared/utils/getTextContent.ts",
10904
+ "path": "src/shared/tokens/ColorToken.ts",
10973
10905
  "declarations": [
10974
10906
  {
10975
- "kind": "function",
10976
- "name": "getTextContent",
10977
- "return": {
10978
- "type": {
10979
- "text": "string"
10980
- }
10907
+ "kind": "variable",
10908
+ "name": "ColorToken",
10909
+ "type": {
10910
+ "text": "{\r\n /** High-emphasis fills, texts, and icons against surface. */\r\n primary: unsafeCSS(\"var(--md-sys-color-primary, #6750A4)\"),\r\n\r\n /** Text and icons against primary. */\r\n onPrimary: unsafeCSS(\"var(--md-sys-color-on-primary, #FFFFFF)\"),\r\n\r\n /** Standout fill color against surface, for key components. */\r\n primaryContainer: unsafeCSS(\"var(--md-sys-color-primary-container, #EADDFF)\"),\r\n\r\n /** Text and icons against primary container. */\r\n onPrimaryContainer: unsafeCSS(\"var(--md-sys-color-on-primary-container, #4F378B)\"),\r\n\r\n /** High-emphasis fills, texts, and icons that maintain the same tone in light and dark themes. */\r\n primaryFixed: unsafeCSS(\"var(--md-sys-color-primary-fixed, #EADDFF)\"),\r\n\r\n /** High-emphasis fills, texts, and icons that maintain the same stronger tone in light and dark themes. */\r\n primaryFixedDim: unsafeCSS(\"var(--md-sys-color-primary-fixed-dim, #D0BCFF)\"),\r\n\r\n /** Text and icons against fixed primary. */\r\n onPrimaryFixed: unsafeCSS(\"var(--md-sys-color-on-primary-fixed, #21005D)\"),\r\n\r\n /** Lower-emphasis text and icons against fixed primary. */\r\n onPrimaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-primary-fixed-variant, #4F378B)\"),\r\n\r\n /** Less prominent fills, text, and icons against surface. */\r\n secondary: unsafeCSS(\"var(--md-sys-color-secondary, #625B71)\"),\r\n\r\n /** Text and icons against secondary. */\r\n onSecondary: unsafeCSS(\"var(--md-sys-color-on-secondary, #FFFFFF)\"),\r\n\r\n /** Less prominent fill color against surface, for recessive components. */\r\n secondaryContainer: unsafeCSS(\"var(--md-sys-color-secondary-container, #E8DEF8)\"),\r\n\r\n /** Text and icons against secondary container. */\r\n onSecondaryContainer: unsafeCSS(\"var(--md-sys-color-on-secondary-container, #4A4458)\"),\r\n\r\n /** Less prominent fills, texts, and icons that maintain the same tone in light and dark themes. */\r\n secondaryFixed: unsafeCSS(\"var(--md-sys-color-secondary-fixed, #E8DEF8)\"),\r\n\r\n /** Less prominent fills, texts, and icons that maintain the same stronger tone in light and dark themes. */\r\n secondaryFixedDim: unsafeCSS(\"var(--md-sys-color-secondary-fixed-dim, #CCC2DC)\"),\r\n\r\n /** Text and icons against fixed secondary. */\r\n onSecondaryFixed: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed, #1D192B)\"),\r\n\r\n /** Lower-emphasis text and icons against fixed secondary. */\r\n onSecondaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed-variant, #4A4458)\"),\r\n\r\n /** Complementary fills, text, and icons against surface. */\r\n tertiary: unsafeCSS(\"var(--md-sys-color-tertiary, #7D5260)\"),\r\n\r\n /** Text and icons against tertiary. */\r\n onTertiary: unsafeCSS(\"var(--md-sys-color-on-tertiary, #FFFFFF)\"),\r\n\r\n /** Complementary container color against surface. */\r\n tertiaryContainer: unsafeCSS(\"var(--md-sys-color-tertiary-container, #FFD8E4)\"),\r\n\r\n /** Text and icons against tertiary container. */\r\n onTertiaryContainer: unsafeCSS(\"var(--md-sys-color-on-tertiary-container, #633B48)\"),\r\n\r\n /** Complementary fills, texts, and icons that maintain the same tone in light and dark themes. */\r\n tertiaryFixed: unsafeCSS(\"var(--md-sys-color-tertiary-fixed, #FFD8E4)\"),\r\n\r\n /** Complementary fills, texts, and icons that maintain the same stronger tone in light and dark themes. */\r\n tertiaryFixedDim: unsafeCSS(\"var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)\"),\r\n\r\n /** Text and icons against fixed tertiary. */\r\n onTertiaryFixed: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed, #31111D)\"),\r\n\r\n /** Lower-emphasis text and icons against fixed tertiary. */\r\n onTertiaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed-variant, #633B48)\"),\r\n\r\n /** Attention-grabbing color against surface for fills, icons, and text, indicating urgency. */\r\n error: unsafeCSS(\"var(--md-sys-color-error, #B3261E)\"),\r\n\r\n /** Text and icons against error. */\r\n onError: unsafeCSS(\"var(--md-sys-color-on-error, #FFFFFF)\"),\r\n\r\n /** Attention-grabbing fill color against surface. */\r\n errorContainer: unsafeCSS(\"var(--md-sys-color-error-container, #F9DEDC)\"),\r\n\r\n /** Text and icons against error container. */\r\n onErrorContainer: unsafeCSS(\"var(--md-sys-color-on-error-container, #8C1D18)\"),\r\n\r\n /** Default color for backgrounds. */\r\n surface: unsafeCSS(\"var(--md-sys-color-surface, #FEF7FF)\"),\r\n\r\n /** Text and icons against any surface color. */\r\n onSurface: unsafeCSS(\"var(--md-sys-color-on-surface, #1D1B20)\"),\r\n\r\n /** Lower-emphasis color for text and icons against any surface color. */\r\n onSurfaceVariant: unsafeCSS(\"var(--md-sys-color-on-surface-variant, #49454F)\"),\r\n\r\n /** Lowest-emphasis container color. */\r\n surfaceContainerLowest: unsafeCSS(\"var(--md-sys-color-surface-container-lowest, #FFFFFF)\"),\r\n\r\n /** Low-emphasis container color. */\r\n surfaceContainerLow: unsafeCSS(\"var(--md-sys-color-surface-container-low, #F7F2FA)\"),\r\n\r\n /** Default container color. */\r\n surfaceContainer: unsafeCSS(\"var(--md-sys-color-surface-container, #F3EDF7)\"),\r\n\r\n /** High-emphasis container color. */\r\n surfaceContainerHigh: unsafeCSS(\"var(--md-sys-color-surface-container-high, #ECE6F0)\"),\r\n\r\n /** Highest-emphasis container color. */\r\n surfaceContainerHighest: unsafeCSS(\"var(--md-sys-color-surface-container-highest, #E6E0E9)\"),\r\n\r\n /** Dimmest surface color in light and dark themes. */\r\n surfaceDim: unsafeCSS(\"var(--md-sys-color-surface-dim, #DED8E1)\"),\r\n\r\n /** Brightest surface color in light and dark themes. */\r\n surfaceBright: unsafeCSS(\"var(--md-sys-color-surface-bright, #FEF7FF)\"),\r\n\r\n /** Alternate surface color, can be used for active states. */\r\n surfaceVariant: unsafeCSS(\"var(--md-sys-color-surface-variant, #E7E0EC)\"),\r\n\r\n /** Background fills for elements which contrast against surface. */\r\n inverseSurface: unsafeCSS(\"var(--md-sys-color-inverse-surface, #322F35)\"),\r\n\r\n /** Text and icons against inverse surface. */\r\n inverseOnSurface: unsafeCSS(\"var(--md-sys-color-inverse-on-surface, #F5EFF7)\"),\r\n\r\n /** Primary text and icons against inverse surface. */\r\n inversePrimary: unsafeCSS(\"var(--md-sys-color-inverse-primary, #D0BCFF)\"),\r\n\r\n /** Important boundaries, such as a text field outline. */\r\n outline: unsafeCSS(\"var(--md-sys-color-outline, #79747E)\"),\r\n\r\n /** Decorative elements, such as dividers. */\r\n outlineVariant: unsafeCSS(\"var(--md-sys-color-outline-variant, #CAC4D0)\"),\r\n\r\n /** Elevation shadow color. */\r\n shadow: unsafeCSS(\"var(--md-sys-color-shadow, #000000)\"),\r\n\r\n /** Backdrop which obscures underlying content. */\r\n scrim: unsafeCSS(\"var(--md-sys-color-scrim, #000000)\"),\r\n}"
10981
10911
  },
10982
- "parameters": [
10983
- {
10984
- "name": "node",
10985
- "type": {
10986
- "text": "Node"
10987
- },
10988
- "description": "The node for which to get text content."
10989
- },
10990
- {
10991
- "name": "trim",
10992
- "default": "false",
10993
- "type": {
10994
- "text": "boolean"
10995
- },
10996
- "description": "A value indicating whether to trim content.",
10997
- "optional": true
10998
- }
10999
- ],
11000
- "description": "Gets the text content of a given node, including slotted content."
10912
+ "default": "{ /** High-emphasis fills, texts, and icons against surface. */ primary: unsafeCSS(\"var(--md-sys-color-primary, #6750A4)\"), /** Text and icons against primary. */ onPrimary: unsafeCSS(\"var(--md-sys-color-on-primary, #FFFFFF)\"), /** Standout fill color against surface, for key components. */ primaryContainer: unsafeCSS(\"var(--md-sys-color-primary-container, #EADDFF)\"), /** Text and icons against primary container. */ onPrimaryContainer: unsafeCSS(\"var(--md-sys-color-on-primary-container, #4F378B)\"), /** High-emphasis fills, texts, and icons that maintain the same tone in light and dark themes. */ primaryFixed: unsafeCSS(\"var(--md-sys-color-primary-fixed, #EADDFF)\"), /** High-emphasis fills, texts, and icons that maintain the same stronger tone in light and dark themes. */ primaryFixedDim: unsafeCSS(\"var(--md-sys-color-primary-fixed-dim, #D0BCFF)\"), /** Text and icons against fixed primary. */ onPrimaryFixed: unsafeCSS(\"var(--md-sys-color-on-primary-fixed, #21005D)\"), /** Lower-emphasis text and icons against fixed primary. */ onPrimaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-primary-fixed-variant, #4F378B)\"), /** Less prominent fills, text, and icons against surface. */ secondary: unsafeCSS(\"var(--md-sys-color-secondary, #625B71)\"), /** Text and icons against secondary. */ onSecondary: unsafeCSS(\"var(--md-sys-color-on-secondary, #FFFFFF)\"), /** Less prominent fill color against surface, for recessive components. */ secondaryContainer: unsafeCSS(\"var(--md-sys-color-secondary-container, #E8DEF8)\"), /** Text and icons against secondary container. */ onSecondaryContainer: unsafeCSS(\"var(--md-sys-color-on-secondary-container, #4A4458)\"), /** Less prominent fills, texts, and icons that maintain the same tone in light and dark themes. */ secondaryFixed: unsafeCSS(\"var(--md-sys-color-secondary-fixed, #E8DEF8)\"), /** Less prominent fills, texts, and icons that maintain the same stronger tone in light and dark themes. */ secondaryFixedDim: unsafeCSS(\"var(--md-sys-color-secondary-fixed-dim, #CCC2DC)\"), /** Text and icons against fixed secondary. */ onSecondaryFixed: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed, #1D192B)\"), /** Lower-emphasis text and icons against fixed secondary. */ onSecondaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed-variant, #4A4458)\"), /** Complementary fills, text, and icons against surface. */ tertiary: unsafeCSS(\"var(--md-sys-color-tertiary, #7D5260)\"), /** Text and icons against tertiary. */ onTertiary: unsafeCSS(\"var(--md-sys-color-on-tertiary, #FFFFFF)\"), /** Complementary container color against surface. */ tertiaryContainer: unsafeCSS(\"var(--md-sys-color-tertiary-container, #FFD8E4)\"), /** Text and icons against tertiary container. */ onTertiaryContainer: unsafeCSS(\"var(--md-sys-color-on-tertiary-container, #633B48)\"), /** Complementary fills, texts, and icons that maintain the same tone in light and dark themes. */ tertiaryFixed: unsafeCSS(\"var(--md-sys-color-tertiary-fixed, #FFD8E4)\"), /** Complementary fills, texts, and icons that maintain the same stronger tone in light and dark themes. */ tertiaryFixedDim: unsafeCSS(\"var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)\"), /** Text and icons against fixed tertiary. */ onTertiaryFixed: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed, #31111D)\"), /** Lower-emphasis text and icons against fixed tertiary. */ onTertiaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed-variant, #633B48)\"), /** Attention-grabbing color against surface for fills, icons, and text, indicating urgency. */ error: unsafeCSS(\"var(--md-sys-color-error, #B3261E)\"), /** Text and icons against error. */ onError: unsafeCSS(\"var(--md-sys-color-on-error, #FFFFFF)\"), /** Attention-grabbing fill color against surface. */ errorContainer: unsafeCSS(\"var(--md-sys-color-error-container, #F9DEDC)\"), /** Text and icons against error container. */ onErrorContainer: unsafeCSS(\"var(--md-sys-color-on-error-container, #8C1D18)\"), /** Default color for backgrounds. */ surface: unsafeCSS(\"var(--md-sys-color-surface, #FEF7FF)\"), /** Text and icons against any surface color. */ onSurface: unsafeCSS(\"var(--md-sys-color-on-surface, #1D1B20)\"), /** Lower-emphasis color for text and icons against any surface color. */ onSurfaceVariant: unsafeCSS(\"var(--md-sys-color-on-surface-variant, #49454F)\"), /** Lowest-emphasis container color. */ surfaceContainerLowest: unsafeCSS(\"var(--md-sys-color-surface-container-lowest, #FFFFFF)\"), /** Low-emphasis container color. */ surfaceContainerLow: unsafeCSS(\"var(--md-sys-color-surface-container-low, #F7F2FA)\"), /** Default container color. */ surfaceContainer: unsafeCSS(\"var(--md-sys-color-surface-container, #F3EDF7)\"), /** High-emphasis container color. */ surfaceContainerHigh: unsafeCSS(\"var(--md-sys-color-surface-container-high, #ECE6F0)\"), /** Highest-emphasis container color. */ surfaceContainerHighest: unsafeCSS(\"var(--md-sys-color-surface-container-highest, #E6E0E9)\"), /** Dimmest surface color in light and dark themes. */ surfaceDim: unsafeCSS(\"var(--md-sys-color-surface-dim, #DED8E1)\"), /** Brightest surface color in light and dark themes. */ surfaceBright: unsafeCSS(\"var(--md-sys-color-surface-bright, #FEF7FF)\"), /** Alternate surface color, can be used for active states. */ surfaceVariant: unsafeCSS(\"var(--md-sys-color-surface-variant, #E7E0EC)\"), /** Background fills for elements which contrast against surface. */ inverseSurface: unsafeCSS(\"var(--md-sys-color-inverse-surface, #322F35)\"), /** Text and icons against inverse surface. */ inverseOnSurface: unsafeCSS(\"var(--md-sys-color-inverse-on-surface, #F5EFF7)\"), /** Primary text and icons against inverse surface. */ inversePrimary: unsafeCSS(\"var(--md-sys-color-inverse-primary, #D0BCFF)\"), /** Important boundaries, such as a text field outline. */ outline: unsafeCSS(\"var(--md-sys-color-outline, #79747E)\"), /** Decorative elements, such as dividers. */ outlineVariant: unsafeCSS(\"var(--md-sys-color-outline-variant, #CAC4D0)\"), /** Elevation shadow color. */ shadow: unsafeCSS(\"var(--md-sys-color-shadow, #000000)\"), /** Backdrop which obscures underlying content. */ scrim: unsafeCSS(\"var(--md-sys-color-scrim, #000000)\"), }",
10913
+ "description": "Design tokens that control color."
11001
10914
  }
11002
10915
  ],
11003
10916
  "exports": [
11004
10917
  {
11005
10918
  "kind": "js",
11006
- "name": "getTextContent",
10919
+ "name": "ColorToken",
11007
10920
  "declaration": {
11008
- "name": "getTextContent",
11009
- "module": "src/shared/utils/getTextContent.ts"
10921
+ "name": "ColorToken",
10922
+ "module": "src/shared/tokens/ColorToken.ts"
11010
10923
  }
11011
10924
  }
11012
10925
  ]
11013
10926
  },
11014
10927
  {
11015
10928
  "kind": "javascript-module",
11016
- "path": "src/shared/utils/guid.ts",
10929
+ "path": "src/shared/tokens/DensityToken.ts",
11017
10930
  "declarations": [
11018
10931
  {
11019
- "kind": "function",
11020
- "name": "guid",
11021
- "return": {
11022
- "type": {
11023
- "text": "string"
11024
- }
10932
+ "kind": "variable",
10933
+ "name": "DensityToken",
10934
+ "type": {
10935
+ "text": "{\r\n ..._DensityToken,\r\n\r\n /**\r\n * Creates a CSS `calc` that calculates a dimension based on density.\r\n * @param {number} minScale The minimum supported scale.\r\n * @returns {CSSResult} A CSS `calc` used to calculate a dimension based on density.\r\n */\r\n calc(minScale: number): CSSResult {\r\n return unsafeCSS(`calc(max(${minScale}, ${_DensityToken.scale}) * ${_DensityToken.size})`);\r\n },\r\n}"
11025
10936
  },
11026
- "description": "Generates a new globally unique identifier (GUID)."
10937
+ "default": "{ ..._DensityToken, /** * Creates a CSS `calc` that calculates a dimension based on density. * @param {number} minScale The minimum supported scale. * @returns {CSSResult} A CSS `calc` used to calculate a dimension based on density. */ calc(minScale: number): CSSResult { return unsafeCSS(`calc(max(${minScale}, ${_DensityToken.scale}) * ${_DensityToken.size})`); }, }",
10938
+ "description": "Design tokens that control density."
11027
10939
  }
11028
10940
  ],
11029
10941
  "exports": [
11030
10942
  {
11031
10943
  "kind": "js",
11032
- "name": "guid",
10944
+ "name": "DensityToken",
11033
10945
  "declaration": {
11034
- "name": "guid",
11035
- "module": "src/shared/utils/guid.ts"
10946
+ "name": "DensityToken",
10947
+ "module": "src/shared/tokens/DensityToken.ts"
11036
10948
  }
11037
10949
  }
11038
10950
  ]
11039
10951
  },
11040
10952
  {
11041
10953
  "kind": "javascript-module",
11042
- "path": "src/shared/utils/hasAssignedNodes.ts",
10954
+ "path": "src/shared/tokens/DesignToken.ts",
11043
10955
  "declarations": [
11044
10956
  {
11045
- "kind": "function",
11046
- "name": "hasAssignedNodes",
11047
- "return": {
11048
- "type": {
11049
- "text": "boolean"
11050
- }
10957
+ "kind": "variable",
10958
+ "name": "DesignToken",
10959
+ "type": {
10960
+ "text": "{\r\n /** Design tokens that control color. */\r\n color: ColorToken,\r\n\r\n /** Design tokens that control elevation. */\r\n elevation: ElevationToken,\r\n\r\n /** Design tokens that control motion. */\r\n motion: MotionToken,\r\n\r\n /** Design tokens that control shape. */\r\n shape: ShapeToken,\r\n\r\n /** Design tokens that control state layer. */\r\n state: StateToken,\r\n\r\n /** Design tokens that control typescale. */\r\n typescale: TypescaleToken,\r\n\r\n /** Design tokens that control scrollbars. */\r\n scrollbar: ScrollbarToken,\r\n\r\n /** Design tokens that control density. */\r\n density: DensityToken,\r\n}"
11051
10961
  },
11052
- "parameters": [
11053
- {
11054
- "name": "slot",
11055
- "type": {
11056
- "text": "HTMLSlotElement"
11057
- },
11058
- "description": "The slot to test."
11059
- }
11060
- ],
11061
- "description": "Determines whether a slot has any assigned nodes."
10962
+ "default": "{ /** Design tokens that control color. */ color: ColorToken, /** Design tokens that control elevation. */ elevation: ElevationToken, /** Design tokens that control motion. */ motion: MotionToken, /** Design tokens that control shape. */ shape: ShapeToken, /** Design tokens that control state layer. */ state: StateToken, /** Design tokens that control typescale. */ typescale: TypescaleToken, /** Design tokens that control scrollbars. */ scrollbar: ScrollbarToken, /** Design tokens that control density. */ density: DensityToken, }",
10963
+ "description": "Design tokens used to style components."
11062
10964
  }
11063
10965
  ],
11064
10966
  "exports": [
11065
10967
  {
11066
10968
  "kind": "js",
11067
- "name": "hasAssignedNodes",
10969
+ "name": "DesignToken",
11068
10970
  "declaration": {
11069
- "name": "hasAssignedNodes",
11070
- "module": "src/shared/utils/hasAssignedNodes.ts"
10971
+ "name": "DesignToken",
10972
+ "module": "src/shared/tokens/DesignToken.ts"
11071
10973
  }
11072
10974
  }
11073
10975
  ]
11074
10976
  },
11075
10977
  {
11076
10978
  "kind": "javascript-module",
11077
- "path": "src/shared/utils/index.ts",
11078
- "declarations": [],
10979
+ "path": "src/shared/tokens/ElevationToken.ts",
10980
+ "declarations": [
10981
+ {
10982
+ "kind": "variable",
10983
+ "name": "ElevationToken",
10984
+ "type": {
10985
+ "text": "{\r\n /** Level 0 elevation. */\r\n level0: unsafeCSS(`var(--md-sys-elevation-level0, ${elevation(0)})`),\r\n\r\n /** Level 1 elevation. */\r\n level1: unsafeCSS(`var(--md-sys-elevation-level1, ${elevation(1)})`),\r\n\r\n /** Level 2 elevation. */\r\n level2: unsafeCSS(`var(--md-sys-elevation-level2, ${elevation(3)})`),\r\n\r\n /** Level 3 elevation. */\r\n level3: unsafeCSS(`var(--md-sys-elevation-level3, ${elevation(6)})`),\r\n\r\n /** Level 4 elevation. */\r\n level4: unsafeCSS(`var(--md-sys-elevation-level4, ${elevation(8)})`),\r\n\r\n /** Level 5 elevation. */\r\n level5: unsafeCSS(`var(--md-sys-elevation-level5, ${elevation(12)})`),\r\n}"
10986
+ },
10987
+ "default": "{ /** Level 0 elevation. */ level0: unsafeCSS(`var(--md-sys-elevation-level0, ${elevation(0)})`), /** Level 1 elevation. */ level1: unsafeCSS(`var(--md-sys-elevation-level1, ${elevation(1)})`), /** Level 2 elevation. */ level2: unsafeCSS(`var(--md-sys-elevation-level2, ${elevation(3)})`), /** Level 3 elevation. */ level3: unsafeCSS(`var(--md-sys-elevation-level3, ${elevation(6)})`), /** Level 4 elevation. */ level4: unsafeCSS(`var(--md-sys-elevation-level4, ${elevation(8)})`), /** Level 5 elevation. */ level5: unsafeCSS(`var(--md-sys-elevation-level5, ${elevation(12)})`), }",
10988
+ "description": "Design tokens that control elevation."
10989
+ }
10990
+ ],
11079
10991
  "exports": [
11080
10992
  {
11081
10993
  "kind": "js",
11082
- "name": "*",
10994
+ "name": "ElevationToken",
11083
10995
  "declaration": {
11084
- "name": "*",
11085
- "package": "\"./forcedColorsActive\""
10996
+ "name": "ElevationToken",
10997
+ "module": "src/shared/tokens/ElevationToken.ts"
11086
10998
  }
11087
- },
10999
+ }
11000
+ ]
11001
+ },
11002
+ {
11003
+ "kind": "javascript-module",
11004
+ "path": "src/shared/tokens/index.ts",
11005
+ "declarations": [],
11006
+ "exports": [
11088
11007
  {
11089
11008
  "kind": "js",
11090
11009
  "name": "*",
11091
11010
  "declaration": {
11092
11011
  "name": "*",
11093
- "package": "\"./generateClipPaths\""
11012
+ "package": "\"./DesignToken\""
11094
11013
  }
11095
- },
11096
- {
11097
- "kind": "js",
11098
- "name": "*",
11099
- "declaration": {
11100
- "name": "*",
11101
- "package": "\"./getTextContent\""
11102
- }
11103
- },
11014
+ }
11015
+ ]
11016
+ },
11017
+ {
11018
+ "kind": "javascript-module",
11019
+ "path": "src/shared/tokens/MotionToken.ts",
11020
+ "declarations": [
11104
11021
  {
11105
- "kind": "js",
11106
- "name": "*",
11107
- "declaration": {
11108
- "name": "*",
11109
- "package": "\"./guid\""
11110
- }
11111
- },
11022
+ "kind": "variable",
11023
+ "name": "MotionToken",
11024
+ "type": {
11025
+ "text": "{\r\n /** Design tokens that control transition effects. */\r\n easing: EasingToken,\r\n\r\n /** Design tokens that control transition duration. */\r\n duration: DurationToken,\r\n\r\n /** Design tokens that control spring effects. */\r\n spring: SpringToken,\r\n}"
11026
+ },
11027
+ "default": "{ /** Design tokens that control transition effects. */ easing: EasingToken, /** Design tokens that control transition duration. */ duration: DurationToken, /** Design tokens that control spring effects. */ spring: SpringToken, }",
11028
+ "description": "Design tokens that control motion."
11029
+ }
11030
+ ],
11031
+ "exports": [
11112
11032
  {
11113
11033
  "kind": "js",
11114
- "name": "*",
11034
+ "name": "MotionToken",
11115
11035
  "declaration": {
11116
- "name": "*",
11117
- "package": "\"./hasAssignedNodes\""
11036
+ "name": "MotionToken",
11037
+ "module": "src/shared/tokens/MotionToken.ts"
11118
11038
  }
11119
- },
11039
+ }
11040
+ ]
11041
+ },
11042
+ {
11043
+ "kind": "javascript-module",
11044
+ "path": "src/shared/tokens/ScrollbarToken.ts",
11045
+ "declarations": [
11046
+ {
11047
+ "kind": "variable",
11048
+ "name": "ScrollbarToken",
11049
+ "type": {
11050
+ "text": "{\r\n /** Width of a standard scrollbar. */\r\n width: unsafeCSS(`var(--m3e-scrollbar-width, auto)`),\r\n\r\n /** Width of a thin scrollbar. */\r\n thinWidth: unsafeCSS(`var(--m3e-scrollbar-thin-width, thin)`),\r\n\r\n /** Color of a scrollbar. */\r\n color: unsafeCSS(`var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)`),\r\n}"
11051
+ },
11052
+ "default": "{ /** Width of a standard scrollbar. */ width: unsafeCSS(`var(--m3e-scrollbar-width, auto)`), /** Width of a thin scrollbar. */ thinWidth: unsafeCSS(`var(--m3e-scrollbar-thin-width, thin)`), /** Color of a scrollbar. */ color: unsafeCSS(`var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)`), }",
11053
+ "description": "Design tokens that control scrollbars."
11054
+ }
11055
+ ],
11056
+ "exports": [
11120
11057
  {
11121
11058
  "kind": "js",
11122
- "name": "*",
11059
+ "name": "ScrollbarToken",
11123
11060
  "declaration": {
11124
- "name": "*",
11125
- "package": "\"./prefersReducedMotion\""
11061
+ "name": "ScrollbarToken",
11062
+ "module": "src/shared/tokens/ScrollbarToken.ts"
11126
11063
  }
11127
- },
11064
+ }
11065
+ ]
11066
+ },
11067
+ {
11068
+ "kind": "javascript-module",
11069
+ "path": "src/shared/tokens/ShapeToken.ts",
11070
+ "declarations": [
11071
+ {
11072
+ "kind": "variable",
11073
+ "name": "ShapeToken",
11074
+ "type": {
11075
+ "text": "{\r\n corner: {\r\n /** Fully rounded symmetric shape. */\r\n full: unsafeCSS(\"var(--md-sys-shape-corner-full, 624.9375rem)\"),\r\n\r\n /** Extra large rounded asymmetric shape directed towards the top. */\r\n extraLargeTop: unsafeCSS(\r\n `var(--md-sys-shape-corner-extra-large-top, ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none})`\r\n ),\r\n\r\n /** Extra large rounded symmetric shape. */\r\n extraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-large, ${CornerValue.extraLarge})`),\r\n\r\n /** Extra large rounded asymmetric shape directed towards the end. */\r\n extraLargeEnd: unsafeCSS(\r\n `${CornerValue.none} ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none}`\r\n ),\r\n\r\n /** Extra large rounded asymmetric shape directed towards the start. */\r\n extraLargeStart: unsafeCSS(\r\n `${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraLarge}`\r\n ),\r\n\r\n /** Large rounded asymmetric shape directed towards the top. */\r\n largeTop: unsafeCSS(\r\n `var(--md-sys-shape-corner-large-top, ${CornerValue.large} ${CornerValue.large} ${CornerValue.none} ${CornerValue.none})`\r\n ),\r\n\r\n /** Large rounded asymmetric shape directed towards the end. */\r\n largeEnd: unsafeCSS(\r\n `var(--md-sys-shape-corner-large-end, ${CornerValue.none} ${CornerValue.large} ${CornerValue.large} ${CornerValue.none})`\r\n ),\r\n\r\n /** Large rounded asymmetric shape directed towards the start. */\r\n largeStart: unsafeCSS(\r\n `var(--md-sys-shape-corner-large-end, ${CornerValue.large} ${CornerValue.none} ${CornerValue.none} ${CornerValue.large})`\r\n ),\r\n\r\n /** Large rounded symmetric shape. */\r\n large: unsafeCSS(`var(--md-sys-shape-corner-large, ${CornerValue.large})`),\r\n\r\n /** Medium rounded symmetric shape. */\r\n medium: unsafeCSS(`var(--md-sys-shape-corner-medium, ${CornerValue.medium})`),\r\n\r\n /** Medium rounded asymmetric shape directed towards the top. */\r\n mediumTop: unsafeCSS(`${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none} ${CornerValue.none}`),\r\n\r\n /** Medium rounded asymmetric shape directed towards the end. */\r\n mediumEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none}`),\r\n\r\n /** Medium rounded asymmetric shape directed towards the start. */\r\n mediumStart: unsafeCSS(`${CornerValue.medium} ${CornerValue.none} ${CornerValue.none} ${CornerValue.medium}`),\r\n\r\n /** Small rounded symmetric shape. */\r\n small: unsafeCSS(`var(--md-sys-shape-corner-small, ${CornerValue.small})`),\r\n\r\n /** Small rounded asymmetric shape directed towards the top. */\r\n smallTop: unsafeCSS(`${CornerValue.small} ${CornerValue.small} ${CornerValue.none} ${CornerValue.none}`),\r\n\r\n /** Small rounded asymmetric shape directed towards the end. */\r\n smallEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.small} ${CornerValue.small} ${CornerValue.none}`),\r\n\r\n /** Small rounded asymmetric shape directed towards the start. */\r\n smallStart: unsafeCSS(`${CornerValue.small} ${CornerValue.none} ${CornerValue.none} ${CornerValue.small}`),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the top. */\r\n extraSmallTop: unsafeCSS(\r\n `var(--md-sys-shape-corner-extra-small-top, ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none})`\r\n ),\r\n\r\n /** Extra small rounded symmetric shape. */\r\n extraSmall: unsafeCSS(`var(--md-sys-shape-corner-extra-small, ${CornerValue.extraSmall})`),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the end. */\r\n extraSmallEnd: unsafeCSS(\r\n `${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none}`\r\n ),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the start. */\r\n extraSmallStart: unsafeCSS(\r\n `${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall}`\r\n ),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the bottom. */\r\n extraSmallBottom: unsafeCSS(\r\n `${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall}`\r\n ),\r\n\r\n /** No rounding. */\r\n none: unsafeCSS(`var(--md-sys-shape-corner-none, ${CornerValue.none})`),\r\n\r\n /** Increased large rounded symmetric shape. */\r\n largeIncreased: unsafeCSS(`var(--md-sys-shape-corner-large-increased, ${CornerValue.largeIncreased})`),\r\n\r\n /** Increased extra large rounded symmetric shape. */\r\n extraLargeIncreased: unsafeCSS(\r\n `var(--md-sys-shape-corner-extra-large-increased, ${CornerValue.extraLargeIncreased})`\r\n ),\r\n\r\n /** Extra extra large rounded symmetric shape. */\r\n extraExtraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-extra-large, ${CornerValue.extraExtraLarge})`),\r\n\r\n /** Design tokens that control specific corners. */\r\n value: CornerValue,\r\n },\r\n}"
11076
+ },
11077
+ "default": "{ corner: { /** Fully rounded symmetric shape. */ full: unsafeCSS(\"var(--md-sys-shape-corner-full, 624.9375rem)\"), /** Extra large rounded asymmetric shape directed towards the top. */ extraLargeTop: unsafeCSS( `var(--md-sys-shape-corner-extra-large-top, ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none})` ), /** Extra large rounded symmetric shape. */ extraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-large, ${CornerValue.extraLarge})`), /** Extra large rounded asymmetric shape directed towards the end. */ extraLargeEnd: unsafeCSS( `${CornerValue.none} ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none}` ), /** Extra large rounded asymmetric shape directed towards the start. */ extraLargeStart: unsafeCSS( `${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraLarge}` ), /** Large rounded asymmetric shape directed towards the top. */ largeTop: unsafeCSS( `var(--md-sys-shape-corner-large-top, ${CornerValue.large} ${CornerValue.large} ${CornerValue.none} ${CornerValue.none})` ), /** Large rounded asymmetric shape directed towards the end. */ largeEnd: unsafeCSS( `var(--md-sys-shape-corner-large-end, ${CornerValue.none} ${CornerValue.large} ${CornerValue.large} ${CornerValue.none})` ), /** Large rounded asymmetric shape directed towards the start. */ largeStart: unsafeCSS( `var(--md-sys-shape-corner-large-end, ${CornerValue.large} ${CornerValue.none} ${CornerValue.none} ${CornerValue.large})` ), /** Large rounded symmetric shape. */ large: unsafeCSS(`var(--md-sys-shape-corner-large, ${CornerValue.large})`), /** Medium rounded symmetric shape. */ medium: unsafeCSS(`var(--md-sys-shape-corner-medium, ${CornerValue.medium})`), /** Medium rounded asymmetric shape directed towards the top. */ mediumTop: unsafeCSS(`${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none} ${CornerValue.none}`), /** Medium rounded asymmetric shape directed towards the end. */ mediumEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none}`), /** Medium rounded asymmetric shape directed towards the start. */ mediumStart: unsafeCSS(`${CornerValue.medium} ${CornerValue.none} ${CornerValue.none} ${CornerValue.medium}`), /** Small rounded symmetric shape. */ small: unsafeCSS(`var(--md-sys-shape-corner-small, ${CornerValue.small})`), /** Small rounded asymmetric shape directed towards the top. */ smallTop: unsafeCSS(`${CornerValue.small} ${CornerValue.small} ${CornerValue.none} ${CornerValue.none}`), /** Small rounded asymmetric shape directed towards the end. */ smallEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.small} ${CornerValue.small} ${CornerValue.none}`), /** Small rounded asymmetric shape directed towards the start. */ smallStart: unsafeCSS(`${CornerValue.small} ${CornerValue.none} ${CornerValue.none} ${CornerValue.small}`), /** Extra small rounded asymmetric shape directed towards the top. */ extraSmallTop: unsafeCSS( `var(--md-sys-shape-corner-extra-small-top, ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none})` ), /** Extra small rounded symmetric shape. */ extraSmall: unsafeCSS(`var(--md-sys-shape-corner-extra-small, ${CornerValue.extraSmall})`), /** Extra small rounded asymmetric shape directed towards the end. */ extraSmallEnd: unsafeCSS( `${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none}` ), /** Extra small rounded asymmetric shape directed towards the start. */ extraSmallStart: unsafeCSS( `${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall}` ), /** Extra small rounded asymmetric shape directed towards the bottom. */ extraSmallBottom: unsafeCSS( `${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall}` ), /** No rounding. */ none: unsafeCSS(`var(--md-sys-shape-corner-none, ${CornerValue.none})`), /** Increased large rounded symmetric shape. */ largeIncreased: unsafeCSS(`var(--md-sys-shape-corner-large-increased, ${CornerValue.largeIncreased})`), /** Increased extra large rounded symmetric shape. */ extraLargeIncreased: unsafeCSS( `var(--md-sys-shape-corner-extra-large-increased, ${CornerValue.extraLargeIncreased})` ), /** Extra extra large rounded symmetric shape. */ extraExtraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-extra-large, ${CornerValue.extraExtraLarge})`), /** Design tokens that control specific corners. */ value: CornerValue, }, }",
11078
+ "description": "Design tokens that control shape."
11079
+ }
11080
+ ],
11081
+ "exports": [
11128
11082
  {
11129
11083
  "kind": "js",
11130
- "name": "*",
11084
+ "name": "ShapeToken",
11131
11085
  "declaration": {
11132
- "name": "*",
11133
- "package": "\"./scrollIntoViewIfNeeded\""
11086
+ "name": "ShapeToken",
11087
+ "module": "src/shared/tokens/ShapeToken.ts"
11134
11088
  }
11135
11089
  }
11136
11090
  ]
11137
11091
  },
11138
11092
  {
11139
11093
  "kind": "javascript-module",
11140
- "path": "src/shared/utils/prefersReducedMotion.ts",
11094
+ "path": "src/shared/tokens/StateToken.ts",
11141
11095
  "declarations": [
11142
11096
  {
11143
- "kind": "function",
11144
- "name": "prefersReducedMotion",
11145
- "return": {
11146
- "type": {
11147
- "text": "boolean"
11148
- }
11097
+ "kind": "variable",
11098
+ "name": "StateToken",
11099
+ "type": {
11100
+ "text": "{\r\n /** Opacity of the state layer on focus. */\r\n focusStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-focus-state-layer-opacity, 10%)\"),\r\n\r\n /** Opacity of the state layer on hover. */\r\n hoverStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-hover-state-layer-opacity, 8%)\"),\r\n\r\n /** Opacity of the state layer on pressed. */\r\n pressedStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-pressed-state-layer-opacity, 10%)\"),\r\n}"
11149
11101
  },
11150
- "description": "Determines whether reduced motion is preferred."
11102
+ "default": "{ /** Opacity of the state layer on focus. */ focusStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-focus-state-layer-opacity, 10%)\"), /** Opacity of the state layer on hover. */ hoverStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-hover-state-layer-opacity, 8%)\"), /** Opacity of the state layer on pressed. */ pressedStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-pressed-state-layer-opacity, 10%)\"), }",
11103
+ "description": "Design tokens that control state layer."
11151
11104
  }
11152
11105
  ],
11153
11106
  "exports": [
11154
11107
  {
11155
11108
  "kind": "js",
11156
- "name": "prefersReducedMotion",
11109
+ "name": "StateToken",
11157
11110
  "declaration": {
11158
- "name": "prefersReducedMotion",
11159
- "module": "src/shared/utils/prefersReducedMotion.ts"
11111
+ "name": "StateToken",
11112
+ "module": "src/shared/tokens/StateToken.ts"
11160
11113
  }
11161
11114
  }
11162
11115
  ]
11163
11116
  },
11164
11117
  {
11165
11118
  "kind": "javascript-module",
11166
- "path": "src/shared/utils/scrollIntoViewIfNeeded.ts",
11119
+ "path": "src/shared/tokens/TypescaleToken.ts",
11167
11120
  "declarations": [
11168
11121
  {
11169
- "kind": "function",
11170
- "name": "scrollIntoViewIfNeeded",
11171
- "return": {
11172
- "type": {
11173
- "text": "void"
11174
- }
11122
+ "kind": "variable",
11123
+ "name": "TypescaleToken",
11124
+ "type": {
11125
+ "text": "{\r\n /** Standard typescale variant. */\r\n standard: {\r\n /** Short, important text or numerals. */\r\n display: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-display-large-font-size, 3.5625rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-large-line-height, 4rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-display-large-tracking, 0.015625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-size, 2.8125rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-line-height, 3.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-display-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-display-small-font-size, 2.25rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-small-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-small-line-height, 2.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-display-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Short, high-emphasis text on smaller screens. */\r\n headline: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-size, 2rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-line-height, 2.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-headline-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-size, 1.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-line-height, 2.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-headline-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-size, 1.5rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-line-height, 2rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-headline-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Medium-emphasis text that remains relatively short. */\r\n title: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-title-large-font-size, 1.375rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-large-line-height, 1.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-title-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-line-height, 1.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-title-medium-tracking, 0.009375rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-title-small-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-small-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-title-small-tracking, 0.00625rem)\"),\r\n },\r\n },\r\n\r\n /** Longer passages of text. */\r\n body: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-body-large-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-large-line-height, 1.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-body-large-tracking, 0.03125rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-body-medium-tracking, 0.015625rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-body-small-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-small-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-body-small-tracking, 0.025rem)\"),\r\n },\r\n },\r\n\r\n /** Smaller, utilitarian text. */\r\n label: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-label-large-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-large-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-label-large-tracking, 0.00625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-label-medium-tracking, 0.03125rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-label-small-font-size, 0.6875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-label-small-tracking, 0.03125rem)\"),\r\n },\r\n },\r\n },\r\n\r\n /** Emphasized typescale variant. */\r\n emphasized: {\r\n /** Short, important text or numerals. */\r\n display: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Short, high-emphasis text on smaller screens. */\r\n headline: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Medium-emphasis text that remains relatively short. */\r\n title: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)\"),\r\n },\r\n },\r\n\r\n /** Longer passages of text. */\r\n body: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)\"),\r\n },\r\n },\r\n\r\n /** Smaller, utilitarian text. */\r\n label: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)\"),\r\n },\r\n },\r\n },\r\n}"
11175
11126
  },
11176
- "parameters": [
11177
- {
11178
- "name": "element",
11179
- "type": {
11180
- "text": "HTMLElement"
11181
- },
11182
- "description": "The element to scroll into view."
11183
- },
11184
- {
11185
- "name": "scrollContainer",
11186
- "type": {
11187
- "text": "HTMLElement"
11188
- },
11189
- "description": "The scrollable container."
11190
- },
11191
- {
11192
- "name": "options",
11193
- "optional": true,
11194
- "type": {
11195
- "text": "ScrollIntoViewOptions"
11196
- },
11197
- "description": "Options used to scroll into view."
11198
- }
11199
- ],
11200
- "description": "If needed, scrolls an element into view within a given scroll container."
11127
+ "default": "{ /** Standard typescale variant. */ standard: { /** Short, important text or numerals. */ display: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-display-large-font-size, 3.5625rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-large-line-height, 4rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-display-large-tracking, 0.015625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-size, 2.8125rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-line-height, 3.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-display-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-display-small-font-size, 2.25rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-small-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-small-line-height, 2.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-display-small-tracking, 0)\"), }, }, /** Short, high-emphasis text on smaller screens. */ headline: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-size, 2rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-line-height, 2.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-headline-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-size, 1.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-line-height, 2.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-headline-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-size, 1.5rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-line-height, 2rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-headline-small-tracking, 0)\"), }, }, /** Medium-emphasis text that remains relatively short. */ title: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-title-large-font-size, 1.375rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-large-line-height, 1.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-title-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-line-height, 1.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-title-medium-tracking, 0.009375rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-title-small-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-small-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-title-small-tracking, 0.00625rem)\"), }, }, /** Longer passages of text. */ body: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-body-large-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-large-line-height, 1.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-body-large-tracking, 0.03125rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-body-medium-tracking, 0.015625rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-body-small-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-small-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-body-small-tracking, 0.025rem)\"), }, }, /** Smaller, utilitarian text. */ label: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-label-large-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-large-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-label-large-tracking, 0.00625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-label-medium-tracking, 0.03125rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-label-small-font-size, 0.6875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-label-small-tracking, 0.03125rem)\"), }, }, }, /** Emphasized typescale variant. */ emphasized: { /** Short, important text or numerals. */ display: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-tracking, 0)\"), }, }, /** Short, high-emphasis text on smaller screens. */ headline: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-tracking, 0)\"), }, }, /** Medium-emphasis text that remains relatively short. */ title: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)\"), }, }, /** Longer passages of text. */ body: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)\"), }, }, /** Smaller, utilitarian text. */ label: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)\"), }, }, }, }",
11128
+ "description": "Design tokens that control typescale."
11201
11129
  }
11202
11130
  ],
11203
11131
  "exports": [
11204
11132
  {
11205
11133
  "kind": "js",
11206
- "name": "scrollIntoViewIfNeeded",
11134
+ "name": "TypescaleToken",
11207
11135
  "declaration": {
11208
- "name": "scrollIntoViewIfNeeded",
11209
- "module": "src/shared/utils/scrollIntoViewIfNeeded.ts"
11136
+ "name": "TypescaleToken",
11137
+ "module": "src/shared/tokens/TypescaleToken.ts"
11210
11138
  }
11211
11139
  }
11212
11140
  ]
@@ -13755,240 +13683,312 @@
13755
13683
  },
13756
13684
  {
13757
13685
  "kind": "javascript-module",
13758
- "path": "src/shared/tokens/ColorToken.ts",
13686
+ "path": "src/shared/utils/forcedColorsActive.ts",
13759
13687
  "declarations": [
13760
13688
  {
13761
- "kind": "variable",
13762
- "name": "ColorToken",
13763
- "type": {
13764
- "text": "{\r\n /** High-emphasis fills, texts, and icons against surface. */\r\n primary: unsafeCSS(\"var(--md-sys-color-primary, #6750A4)\"),\r\n\r\n /** Text and icons against primary. */\r\n onPrimary: unsafeCSS(\"var(--md-sys-color-on-primary, #FFFFFF)\"),\r\n\r\n /** Standout fill color against surface, for key components. */\r\n primaryContainer: unsafeCSS(\"var(--md-sys-color-primary-container, #EADDFF)\"),\r\n\r\n /** Text and icons against primary container. */\r\n onPrimaryContainer: unsafeCSS(\"var(--md-sys-color-on-primary-container, #4F378B)\"),\r\n\r\n /** High-emphasis fills, texts, and icons that maintain the same tone in light and dark themes. */\r\n primaryFixed: unsafeCSS(\"var(--md-sys-color-primary-fixed, #EADDFF)\"),\r\n\r\n /** High-emphasis fills, texts, and icons that maintain the same stronger tone in light and dark themes. */\r\n primaryFixedDim: unsafeCSS(\"var(--md-sys-color-primary-fixed-dim, #D0BCFF)\"),\r\n\r\n /** Text and icons against fixed primary. */\r\n onPrimaryFixed: unsafeCSS(\"var(--md-sys-color-on-primary-fixed, #21005D)\"),\r\n\r\n /** Lower-emphasis text and icons against fixed primary. */\r\n onPrimaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-primary-fixed-variant, #4F378B)\"),\r\n\r\n /** Less prominent fills, text, and icons against surface. */\r\n secondary: unsafeCSS(\"var(--md-sys-color-secondary, #625B71)\"),\r\n\r\n /** Text and icons against secondary. */\r\n onSecondary: unsafeCSS(\"var(--md-sys-color-on-secondary, #FFFFFF)\"),\r\n\r\n /** Less prominent fill color against surface, for recessive components. */\r\n secondaryContainer: unsafeCSS(\"var(--md-sys-color-secondary-container, #E8DEF8)\"),\r\n\r\n /** Text and icons against secondary container. */\r\n onSecondaryContainer: unsafeCSS(\"var(--md-sys-color-on-secondary-container, #4A4458)\"),\r\n\r\n /** Less prominent fills, texts, and icons that maintain the same tone in light and dark themes. */\r\n secondaryFixed: unsafeCSS(\"var(--md-sys-color-secondary-fixed, #E8DEF8)\"),\r\n\r\n /** Less prominent fills, texts, and icons that maintain the same stronger tone in light and dark themes. */\r\n secondaryFixedDim: unsafeCSS(\"var(--md-sys-color-secondary-fixed-dim, #CCC2DC)\"),\r\n\r\n /** Text and icons against fixed secondary. */\r\n onSecondaryFixed: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed, #1D192B)\"),\r\n\r\n /** Lower-emphasis text and icons against fixed secondary. */\r\n onSecondaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed-variant, #4A4458)\"),\r\n\r\n /** Complementary fills, text, and icons against surface. */\r\n tertiary: unsafeCSS(\"var(--md-sys-color-tertiary, #7D5260)\"),\r\n\r\n /** Text and icons against tertiary. */\r\n onTertiary: unsafeCSS(\"var(--md-sys-color-on-tertiary, #FFFFFF)\"),\r\n\r\n /** Complementary container color against surface. */\r\n tertiaryContainer: unsafeCSS(\"var(--md-sys-color-tertiary-container, #FFD8E4)\"),\r\n\r\n /** Text and icons against tertiary container. */\r\n onTertiaryContainer: unsafeCSS(\"var(--md-sys-color-on-tertiary-container, #633B48)\"),\r\n\r\n /** Complementary fills, texts, and icons that maintain the same tone in light and dark themes. */\r\n tertiaryFixed: unsafeCSS(\"var(--md-sys-color-tertiary-fixed, #FFD8E4)\"),\r\n\r\n /** Complementary fills, texts, and icons that maintain the same stronger tone in light and dark themes. */\r\n tertiaryFixedDim: unsafeCSS(\"var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)\"),\r\n\r\n /** Text and icons against fixed tertiary. */\r\n onTertiaryFixed: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed, #31111D)\"),\r\n\r\n /** Lower-emphasis text and icons against fixed tertiary. */\r\n onTertiaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed-variant, #633B48)\"),\r\n\r\n /** Attention-grabbing color against surface for fills, icons, and text, indicating urgency. */\r\n error: unsafeCSS(\"var(--md-sys-color-error, #B3261E)\"),\r\n\r\n /** Text and icons against error. */\r\n onError: unsafeCSS(\"var(--md-sys-color-on-error, #FFFFFF)\"),\r\n\r\n /** Attention-grabbing fill color against surface. */\r\n errorContainer: unsafeCSS(\"var(--md-sys-color-error-container, #F9DEDC)\"),\r\n\r\n /** Text and icons against error container. */\r\n onErrorContainer: unsafeCSS(\"var(--md-sys-color-on-error-container, #8C1D18)\"),\r\n\r\n /** Default color for backgrounds. */\r\n surface: unsafeCSS(\"var(--md-sys-color-surface, #FEF7FF)\"),\r\n\r\n /** Text and icons against any surface color. */\r\n onSurface: unsafeCSS(\"var(--md-sys-color-on-surface, #1D1B20)\"),\r\n\r\n /** Lower-emphasis color for text and icons against any surface color. */\r\n onSurfaceVariant: unsafeCSS(\"var(--md-sys-color-on-surface-variant, #49454F)\"),\r\n\r\n /** Lowest-emphasis container color. */\r\n surfaceContainerLowest: unsafeCSS(\"var(--md-sys-color-surface-container-lowest, #FFFFFF)\"),\r\n\r\n /** Low-emphasis container color. */\r\n surfaceContainerLow: unsafeCSS(\"var(--md-sys-color-surface-container-low, #F7F2FA)\"),\r\n\r\n /** Default container color. */\r\n surfaceContainer: unsafeCSS(\"var(--md-sys-color-surface-container, #F3EDF7)\"),\r\n\r\n /** High-emphasis container color. */\r\n surfaceContainerHigh: unsafeCSS(\"var(--md-sys-color-surface-container-high, #ECE6F0)\"),\r\n\r\n /** Highest-emphasis container color. */\r\n surfaceContainerHighest: unsafeCSS(\"var(--md-sys-color-surface-container-highest, #E6E0E9)\"),\r\n\r\n /** Dimmest surface color in light and dark themes. */\r\n surfaceDim: unsafeCSS(\"var(--md-sys-color-surface-dim, #DED8E1)\"),\r\n\r\n /** Brightest surface color in light and dark themes. */\r\n surfaceBright: unsafeCSS(\"var(--md-sys-color-surface-bright, #FEF7FF)\"),\r\n\r\n /** Alternate surface color, can be used for active states. */\r\n surfaceVariant: unsafeCSS(\"var(--md-sys-color-surface-variant, #E7E0EC)\"),\r\n\r\n /** Background fills for elements which contrast against surface. */\r\n inverseSurface: unsafeCSS(\"var(--md-sys-color-inverse-surface, #322F35)\"),\r\n\r\n /** Text and icons against inverse surface. */\r\n inverseOnSurface: unsafeCSS(\"var(--md-sys-color-inverse-on-surface, #F5EFF7)\"),\r\n\r\n /** Primary text and icons against inverse surface. */\r\n inversePrimary: unsafeCSS(\"var(--md-sys-color-inverse-primary, #D0BCFF)\"),\r\n\r\n /** Important boundaries, such as a text field outline. */\r\n outline: unsafeCSS(\"var(--md-sys-color-outline, #79747E)\"),\r\n\r\n /** Decorative elements, such as dividers. */\r\n outlineVariant: unsafeCSS(\"var(--md-sys-color-outline-variant, #CAC4D0)\"),\r\n\r\n /** Elevation shadow color. */\r\n shadow: unsafeCSS(\"var(--md-sys-color-shadow, #000000)\"),\r\n\r\n /** Backdrop which obscures underlying content. */\r\n scrim: unsafeCSS(\"var(--md-sys-color-scrim, #000000)\"),\r\n}"
13689
+ "kind": "function",
13690
+ "name": "forcedColorsActive",
13691
+ "return": {
13692
+ "type": {
13693
+ "text": "boolean"
13694
+ }
13765
13695
  },
13766
- "default": "{ /** High-emphasis fills, texts, and icons against surface. */ primary: unsafeCSS(\"var(--md-sys-color-primary, #6750A4)\"), /** Text and icons against primary. */ onPrimary: unsafeCSS(\"var(--md-sys-color-on-primary, #FFFFFF)\"), /** Standout fill color against surface, for key components. */ primaryContainer: unsafeCSS(\"var(--md-sys-color-primary-container, #EADDFF)\"), /** Text and icons against primary container. */ onPrimaryContainer: unsafeCSS(\"var(--md-sys-color-on-primary-container, #4F378B)\"), /** High-emphasis fills, texts, and icons that maintain the same tone in light and dark themes. */ primaryFixed: unsafeCSS(\"var(--md-sys-color-primary-fixed, #EADDFF)\"), /** High-emphasis fills, texts, and icons that maintain the same stronger tone in light and dark themes. */ primaryFixedDim: unsafeCSS(\"var(--md-sys-color-primary-fixed-dim, #D0BCFF)\"), /** Text and icons against fixed primary. */ onPrimaryFixed: unsafeCSS(\"var(--md-sys-color-on-primary-fixed, #21005D)\"), /** Lower-emphasis text and icons against fixed primary. */ onPrimaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-primary-fixed-variant, #4F378B)\"), /** Less prominent fills, text, and icons against surface. */ secondary: unsafeCSS(\"var(--md-sys-color-secondary, #625B71)\"), /** Text and icons against secondary. */ onSecondary: unsafeCSS(\"var(--md-sys-color-on-secondary, #FFFFFF)\"), /** Less prominent fill color against surface, for recessive components. */ secondaryContainer: unsafeCSS(\"var(--md-sys-color-secondary-container, #E8DEF8)\"), /** Text and icons against secondary container. */ onSecondaryContainer: unsafeCSS(\"var(--md-sys-color-on-secondary-container, #4A4458)\"), /** Less prominent fills, texts, and icons that maintain the same tone in light and dark themes. */ secondaryFixed: unsafeCSS(\"var(--md-sys-color-secondary-fixed, #E8DEF8)\"), /** Less prominent fills, texts, and icons that maintain the same stronger tone in light and dark themes. */ secondaryFixedDim: unsafeCSS(\"var(--md-sys-color-secondary-fixed-dim, #CCC2DC)\"), /** Text and icons against fixed secondary. */ onSecondaryFixed: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed, #1D192B)\"), /** Lower-emphasis text and icons against fixed secondary. */ onSecondaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-secondary-fixed-variant, #4A4458)\"), /** Complementary fills, text, and icons against surface. */ tertiary: unsafeCSS(\"var(--md-sys-color-tertiary, #7D5260)\"), /** Text and icons against tertiary. */ onTertiary: unsafeCSS(\"var(--md-sys-color-on-tertiary, #FFFFFF)\"), /** Complementary container color against surface. */ tertiaryContainer: unsafeCSS(\"var(--md-sys-color-tertiary-container, #FFD8E4)\"), /** Text and icons against tertiary container. */ onTertiaryContainer: unsafeCSS(\"var(--md-sys-color-on-tertiary-container, #633B48)\"), /** Complementary fills, texts, and icons that maintain the same tone in light and dark themes. */ tertiaryFixed: unsafeCSS(\"var(--md-sys-color-tertiary-fixed, #FFD8E4)\"), /** Complementary fills, texts, and icons that maintain the same stronger tone in light and dark themes. */ tertiaryFixedDim: unsafeCSS(\"var(--md-sys-color-tertiary-fixed-dim, #EFB8C8)\"), /** Text and icons against fixed tertiary. */ onTertiaryFixed: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed, #31111D)\"), /** Lower-emphasis text and icons against fixed tertiary. */ onTertiaryFixedVariant: unsafeCSS(\"var(--md-sys-color-on-tertiary-fixed-variant, #633B48)\"), /** Attention-grabbing color against surface for fills, icons, and text, indicating urgency. */ error: unsafeCSS(\"var(--md-sys-color-error, #B3261E)\"), /** Text and icons against error. */ onError: unsafeCSS(\"var(--md-sys-color-on-error, #FFFFFF)\"), /** Attention-grabbing fill color against surface. */ errorContainer: unsafeCSS(\"var(--md-sys-color-error-container, #F9DEDC)\"), /** Text and icons against error container. */ onErrorContainer: unsafeCSS(\"var(--md-sys-color-on-error-container, #8C1D18)\"), /** Default color for backgrounds. */ surface: unsafeCSS(\"var(--md-sys-color-surface, #FEF7FF)\"), /** Text and icons against any surface color. */ onSurface: unsafeCSS(\"var(--md-sys-color-on-surface, #1D1B20)\"), /** Lower-emphasis color for text and icons against any surface color. */ onSurfaceVariant: unsafeCSS(\"var(--md-sys-color-on-surface-variant, #49454F)\"), /** Lowest-emphasis container color. */ surfaceContainerLowest: unsafeCSS(\"var(--md-sys-color-surface-container-lowest, #FFFFFF)\"), /** Low-emphasis container color. */ surfaceContainerLow: unsafeCSS(\"var(--md-sys-color-surface-container-low, #F7F2FA)\"), /** Default container color. */ surfaceContainer: unsafeCSS(\"var(--md-sys-color-surface-container, #F3EDF7)\"), /** High-emphasis container color. */ surfaceContainerHigh: unsafeCSS(\"var(--md-sys-color-surface-container-high, #ECE6F0)\"), /** Highest-emphasis container color. */ surfaceContainerHighest: unsafeCSS(\"var(--md-sys-color-surface-container-highest, #E6E0E9)\"), /** Dimmest surface color in light and dark themes. */ surfaceDim: unsafeCSS(\"var(--md-sys-color-surface-dim, #DED8E1)\"), /** Brightest surface color in light and dark themes. */ surfaceBright: unsafeCSS(\"var(--md-sys-color-surface-bright, #FEF7FF)\"), /** Alternate surface color, can be used for active states. */ surfaceVariant: unsafeCSS(\"var(--md-sys-color-surface-variant, #E7E0EC)\"), /** Background fills for elements which contrast against surface. */ inverseSurface: unsafeCSS(\"var(--md-sys-color-inverse-surface, #322F35)\"), /** Text and icons against inverse surface. */ inverseOnSurface: unsafeCSS(\"var(--md-sys-color-inverse-on-surface, #F5EFF7)\"), /** Primary text and icons against inverse surface. */ inversePrimary: unsafeCSS(\"var(--md-sys-color-inverse-primary, #D0BCFF)\"), /** Important boundaries, such as a text field outline. */ outline: unsafeCSS(\"var(--md-sys-color-outline, #79747E)\"), /** Decorative elements, such as dividers. */ outlineVariant: unsafeCSS(\"var(--md-sys-color-outline-variant, #CAC4D0)\"), /** Elevation shadow color. */ shadow: unsafeCSS(\"var(--md-sys-color-shadow, #000000)\"), /** Backdrop which obscures underlying content. */ scrim: unsafeCSS(\"var(--md-sys-color-scrim, #000000)\"), }",
13767
- "description": "Design tokens that control color."
13696
+ "description": "Determines whether forced colors are active."
13768
13697
  }
13769
13698
  ],
13770
13699
  "exports": [
13771
13700
  {
13772
13701
  "kind": "js",
13773
- "name": "ColorToken",
13702
+ "name": "forcedColorsActive",
13774
13703
  "declaration": {
13775
- "name": "ColorToken",
13776
- "module": "src/shared/tokens/ColorToken.ts"
13704
+ "name": "forcedColorsActive",
13705
+ "module": "src/shared/utils/forcedColorsActive.ts"
13777
13706
  }
13778
13707
  }
13779
13708
  ]
13780
13709
  },
13781
13710
  {
13782
13711
  "kind": "javascript-module",
13783
- "path": "src/shared/tokens/DensityToken.ts",
13712
+ "path": "src/shared/utils/generateClipPaths.ts",
13784
13713
  "declarations": [
13785
13714
  {
13786
- "kind": "variable",
13787
- "name": "DensityToken",
13788
- "type": {
13789
- "text": "{\r\n ..._DensityToken,\r\n\r\n /**\r\n * Creates a CSS `calc` that calculates a dimension based on density.\r\n * @param {number} minScale The minimum supported scale.\r\n * @returns {CSSResult} A CSS `calc` used to calculate a dimension based on density.\r\n */\r\n calc(minScale: number): CSSResult {\r\n return unsafeCSS(`calc(max(${minScale}, ${_DensityToken.scale}) * ${_DensityToken.size})`);\r\n },\r\n}"
13715
+ "kind": "function",
13716
+ "name": "generateClipPaths",
13717
+ "return": {
13718
+ "type": {
13719
+ "text": "string[]"
13720
+ }
13790
13721
  },
13791
- "default": "{ ..._DensityToken, /** * Creates a CSS `calc` that calculates a dimension based on density. * @param {number} minScale The minimum supported scale. * @returns {CSSResult} A CSS `calc` used to calculate a dimension based on density. */ calc(minScale: number): CSSResult { return unsafeCSS(`calc(max(${minScale}, ${_DensityToken.scale}) * ${_DensityToken.size})`); }, }",
13792
- "description": "Design tokens that control density."
13722
+ "parameters": [
13723
+ {
13724
+ "name": "paths",
13725
+ "type": {
13726
+ "text": "string[]"
13727
+ },
13728
+ "description": "The SVG path data to convert to normalized clip paths."
13729
+ },
13730
+ {
13731
+ "name": "maxPoints",
13732
+ "type": {
13733
+ "text": "number"
13734
+ },
13735
+ "description": "The maximum number of points to which to normalize paths."
13736
+ }
13737
+ ],
13738
+ "description": "Generates normalized clip paths from SVG path data."
13793
13739
  }
13794
13740
  ],
13795
13741
  "exports": [
13796
13742
  {
13797
13743
  "kind": "js",
13798
- "name": "DensityToken",
13744
+ "name": "generateClipPaths",
13799
13745
  "declaration": {
13800
- "name": "DensityToken",
13801
- "module": "src/shared/tokens/DensityToken.ts"
13746
+ "name": "generateClipPaths",
13747
+ "module": "src/shared/utils/generateClipPaths.ts"
13802
13748
  }
13803
13749
  }
13804
13750
  ]
13805
13751
  },
13806
13752
  {
13807
13753
  "kind": "javascript-module",
13808
- "path": "src/shared/tokens/DesignToken.ts",
13754
+ "path": "src/shared/utils/getTextContent.ts",
13809
13755
  "declarations": [
13810
13756
  {
13811
- "kind": "variable",
13812
- "name": "DesignToken",
13813
- "type": {
13814
- "text": "{\r\n /** Design tokens that control color. */\r\n color: ColorToken,\r\n\r\n /** Design tokens that control elevation. */\r\n elevation: ElevationToken,\r\n\r\n /** Design tokens that control motion. */\r\n motion: MotionToken,\r\n\r\n /** Design tokens that control shape. */\r\n shape: ShapeToken,\r\n\r\n /** Design tokens that control state layer. */\r\n state: StateToken,\r\n\r\n /** Design tokens that control typescale. */\r\n typescale: TypescaleToken,\r\n\r\n /** Design tokens that control scrollbars. */\r\n scrollbar: ScrollbarToken,\r\n\r\n /** Design tokens that control density. */\r\n density: DensityToken,\r\n}"
13757
+ "kind": "function",
13758
+ "name": "getTextContent",
13759
+ "return": {
13760
+ "type": {
13761
+ "text": "string"
13762
+ }
13815
13763
  },
13816
- "default": "{ /** Design tokens that control color. */ color: ColorToken, /** Design tokens that control elevation. */ elevation: ElevationToken, /** Design tokens that control motion. */ motion: MotionToken, /** Design tokens that control shape. */ shape: ShapeToken, /** Design tokens that control state layer. */ state: StateToken, /** Design tokens that control typescale. */ typescale: TypescaleToken, /** Design tokens that control scrollbars. */ scrollbar: ScrollbarToken, /** Design tokens that control density. */ density: DensityToken, }",
13817
- "description": "Design tokens used to style components."
13764
+ "parameters": [
13765
+ {
13766
+ "name": "node",
13767
+ "type": {
13768
+ "text": "Node"
13769
+ },
13770
+ "description": "The node for which to get text content."
13771
+ },
13772
+ {
13773
+ "name": "trim",
13774
+ "default": "false",
13775
+ "type": {
13776
+ "text": "boolean"
13777
+ },
13778
+ "description": "A value indicating whether to trim content.",
13779
+ "optional": true
13780
+ }
13781
+ ],
13782
+ "description": "Gets the text content of a given node, including slotted content."
13818
13783
  }
13819
13784
  ],
13820
13785
  "exports": [
13821
13786
  {
13822
13787
  "kind": "js",
13823
- "name": "DesignToken",
13788
+ "name": "getTextContent",
13824
13789
  "declaration": {
13825
- "name": "DesignToken",
13826
- "module": "src/shared/tokens/DesignToken.ts"
13790
+ "name": "getTextContent",
13791
+ "module": "src/shared/utils/getTextContent.ts"
13827
13792
  }
13828
13793
  }
13829
13794
  ]
13830
13795
  },
13831
13796
  {
13832
13797
  "kind": "javascript-module",
13833
- "path": "src/shared/tokens/ElevationToken.ts",
13798
+ "path": "src/shared/utils/guid.ts",
13834
13799
  "declarations": [
13835
13800
  {
13836
- "kind": "variable",
13837
- "name": "ElevationToken",
13838
- "type": {
13839
- "text": "{\r\n /** Level 0 elevation. */\r\n level0: unsafeCSS(`var(--md-sys-elevation-level0, ${elevation(0)})`),\r\n\r\n /** Level 1 elevation. */\r\n level1: unsafeCSS(`var(--md-sys-elevation-level1, ${elevation(1)})`),\r\n\r\n /** Level 2 elevation. */\r\n level2: unsafeCSS(`var(--md-sys-elevation-level2, ${elevation(3)})`),\r\n\r\n /** Level 3 elevation. */\r\n level3: unsafeCSS(`var(--md-sys-elevation-level3, ${elevation(6)})`),\r\n\r\n /** Level 4 elevation. */\r\n level4: unsafeCSS(`var(--md-sys-elevation-level4, ${elevation(8)})`),\r\n\r\n /** Level 5 elevation. */\r\n level5: unsafeCSS(`var(--md-sys-elevation-level5, ${elevation(12)})`),\r\n}"
13801
+ "kind": "function",
13802
+ "name": "guid",
13803
+ "return": {
13804
+ "type": {
13805
+ "text": "string"
13806
+ }
13840
13807
  },
13841
- "default": "{ /** Level 0 elevation. */ level0: unsafeCSS(`var(--md-sys-elevation-level0, ${elevation(0)})`), /** Level 1 elevation. */ level1: unsafeCSS(`var(--md-sys-elevation-level1, ${elevation(1)})`), /** Level 2 elevation. */ level2: unsafeCSS(`var(--md-sys-elevation-level2, ${elevation(3)})`), /** Level 3 elevation. */ level3: unsafeCSS(`var(--md-sys-elevation-level3, ${elevation(6)})`), /** Level 4 elevation. */ level4: unsafeCSS(`var(--md-sys-elevation-level4, ${elevation(8)})`), /** Level 5 elevation. */ level5: unsafeCSS(`var(--md-sys-elevation-level5, ${elevation(12)})`), }",
13842
- "description": "Design tokens that control elevation."
13808
+ "description": "Generates a new globally unique identifier (GUID)."
13843
13809
  }
13844
13810
  ],
13845
13811
  "exports": [
13846
13812
  {
13847
13813
  "kind": "js",
13848
- "name": "ElevationToken",
13849
- "declaration": {
13850
- "name": "ElevationToken",
13851
- "module": "src/shared/tokens/ElevationToken.ts"
13852
- }
13853
- }
13854
- ]
13855
- },
13856
- {
13857
- "kind": "javascript-module",
13858
- "path": "src/shared/tokens/index.ts",
13859
- "declarations": [],
13860
- "exports": [
13861
- {
13862
- "kind": "js",
13863
- "name": "*",
13814
+ "name": "guid",
13864
13815
  "declaration": {
13865
- "name": "*",
13866
- "package": "\"./DesignToken\""
13816
+ "name": "guid",
13817
+ "module": "src/shared/utils/guid.ts"
13867
13818
  }
13868
13819
  }
13869
13820
  ]
13870
13821
  },
13871
13822
  {
13872
13823
  "kind": "javascript-module",
13873
- "path": "src/shared/tokens/MotionToken.ts",
13824
+ "path": "src/shared/utils/hasAssignedNodes.ts",
13874
13825
  "declarations": [
13875
13826
  {
13876
- "kind": "variable",
13877
- "name": "MotionToken",
13878
- "type": {
13879
- "text": "{\r\n /** Design tokens that control transition effects. */\r\n easing: EasingToken,\r\n\r\n /** Design tokens that control transition duration. */\r\n duration: DurationToken,\r\n\r\n /** Design tokens that control spring effects. */\r\n spring: SpringToken,\r\n}"
13827
+ "kind": "function",
13828
+ "name": "hasAssignedNodes",
13829
+ "return": {
13830
+ "type": {
13831
+ "text": "boolean"
13832
+ }
13880
13833
  },
13881
- "default": "{ /** Design tokens that control transition effects. */ easing: EasingToken, /** Design tokens that control transition duration. */ duration: DurationToken, /** Design tokens that control spring effects. */ spring: SpringToken, }",
13882
- "description": "Design tokens that control motion."
13834
+ "parameters": [
13835
+ {
13836
+ "name": "slot",
13837
+ "type": {
13838
+ "text": "HTMLSlotElement"
13839
+ },
13840
+ "description": "The slot to test."
13841
+ }
13842
+ ],
13843
+ "description": "Determines whether a slot has any assigned nodes."
13883
13844
  }
13884
13845
  ],
13885
13846
  "exports": [
13886
13847
  {
13887
13848
  "kind": "js",
13888
- "name": "MotionToken",
13849
+ "name": "hasAssignedNodes",
13889
13850
  "declaration": {
13890
- "name": "MotionToken",
13891
- "module": "src/shared/tokens/MotionToken.ts"
13851
+ "name": "hasAssignedNodes",
13852
+ "module": "src/shared/utils/hasAssignedNodes.ts"
13892
13853
  }
13893
13854
  }
13894
13855
  ]
13895
13856
  },
13896
13857
  {
13897
13858
  "kind": "javascript-module",
13898
- "path": "src/shared/tokens/ScrollbarToken.ts",
13899
- "declarations": [
13900
- {
13901
- "kind": "variable",
13902
- "name": "ScrollbarToken",
13903
- "type": {
13904
- "text": "{\r\n /** Width of a standard scrollbar. */\r\n width: unsafeCSS(`var(--m3e-scrollbar-width, auto)`),\r\n\r\n /** Width of a thin scrollbar. */\r\n thinWidth: unsafeCSS(`var(--m3e-scrollbar-thin-width, thin)`),\r\n\r\n /** Color of a scrollbar. */\r\n color: unsafeCSS(`var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)`),\r\n}"
13905
- },
13906
- "default": "{ /** Width of a standard scrollbar. */ width: unsafeCSS(`var(--m3e-scrollbar-width, auto)`), /** Width of a thin scrollbar. */ thinWidth: unsafeCSS(`var(--m3e-scrollbar-thin-width, thin)`), /** Color of a scrollbar. */ color: unsafeCSS(`var(--m3e-scrollbar-thumb-color, #938f94) var(--m3e-scrollbar-track-color, transparent)`), }",
13907
- "description": "Design tokens that control scrollbars."
13908
- }
13909
- ],
13859
+ "path": "src/shared/utils/index.ts",
13860
+ "declarations": [],
13910
13861
  "exports": [
13911
13862
  {
13912
13863
  "kind": "js",
13913
- "name": "ScrollbarToken",
13864
+ "name": "*",
13914
13865
  "declaration": {
13915
- "name": "ScrollbarToken",
13916
- "module": "src/shared/tokens/ScrollbarToken.ts"
13866
+ "name": "*",
13867
+ "package": "\"./forcedColorsActive\""
13917
13868
  }
13918
- }
13919
- ]
13920
- },
13921
- {
13922
- "kind": "javascript-module",
13923
- "path": "src/shared/tokens/ShapeToken.ts",
13924
- "declarations": [
13869
+ },
13925
13870
  {
13926
- "kind": "variable",
13927
- "name": "ShapeToken",
13928
- "type": {
13929
- "text": "{\r\n corner: {\r\n /** Fully rounded symmetric shape. */\r\n full: unsafeCSS(\"var(--md-sys-shape-corner-full, 624.9375rem)\"),\r\n\r\n /** Extra large rounded asymmetric shape directed towards the top. */\r\n extraLargeTop: unsafeCSS(\r\n `var(--md-sys-shape-corner-extra-large-top, ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none})`\r\n ),\r\n\r\n /** Extra large rounded symmetric shape. */\r\n extraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-large, ${CornerValue.extraLarge})`),\r\n\r\n /** Extra large rounded asymmetric shape directed towards the end. */\r\n extraLargeEnd: unsafeCSS(\r\n `${CornerValue.none} ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none}`\r\n ),\r\n\r\n /** Extra large rounded asymmetric shape directed towards the start. */\r\n extraLargeStart: unsafeCSS(\r\n `${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraLarge}`\r\n ),\r\n\r\n /** Large rounded asymmetric shape directed towards the top. */\r\n largeTop: unsafeCSS(\r\n `var(--md-sys-shape-corner-large-top, ${CornerValue.large} ${CornerValue.large} ${CornerValue.none} ${CornerValue.none})`\r\n ),\r\n\r\n /** Large rounded asymmetric shape directed towards the end. */\r\n largeEnd: unsafeCSS(\r\n `var(--md-sys-shape-corner-large-end, ${CornerValue.none} ${CornerValue.large} ${CornerValue.large} ${CornerValue.none})`\r\n ),\r\n\r\n /** Large rounded asymmetric shape directed towards the start. */\r\n largeStart: unsafeCSS(\r\n `var(--md-sys-shape-corner-large-end, ${CornerValue.large} ${CornerValue.none} ${CornerValue.none} ${CornerValue.large})`\r\n ),\r\n\r\n /** Large rounded symmetric shape. */\r\n large: unsafeCSS(`var(--md-sys-shape-corner-large, ${CornerValue.large})`),\r\n\r\n /** Medium rounded symmetric shape. */\r\n medium: unsafeCSS(`var(--md-sys-shape-corner-medium, ${CornerValue.medium})`),\r\n\r\n /** Medium rounded asymmetric shape directed towards the top. */\r\n mediumTop: unsafeCSS(`${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none} ${CornerValue.none}`),\r\n\r\n /** Medium rounded asymmetric shape directed towards the end. */\r\n mediumEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none}`),\r\n\r\n /** Medium rounded asymmetric shape directed towards the start. */\r\n mediumStart: unsafeCSS(`${CornerValue.medium} ${CornerValue.none} ${CornerValue.none} ${CornerValue.medium}`),\r\n\r\n /** Small rounded symmetric shape. */\r\n small: unsafeCSS(`var(--md-sys-shape-corner-small, ${CornerValue.small})`),\r\n\r\n /** Small rounded asymmetric shape directed towards the top. */\r\n smallTop: unsafeCSS(`${CornerValue.small} ${CornerValue.small} ${CornerValue.none} ${CornerValue.none}`),\r\n\r\n /** Small rounded asymmetric shape directed towards the end. */\r\n smallEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.small} ${CornerValue.small} ${CornerValue.none}`),\r\n\r\n /** Small rounded asymmetric shape directed towards the start. */\r\n smallStart: unsafeCSS(`${CornerValue.small} ${CornerValue.none} ${CornerValue.none} ${CornerValue.small}`),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the top. */\r\n extraSmallTop: unsafeCSS(\r\n `var(--md-sys-shape-corner-extra-small-top, ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none})`\r\n ),\r\n\r\n /** Extra small rounded symmetric shape. */\r\n extraSmall: unsafeCSS(`var(--md-sys-shape-corner-extra-small, ${CornerValue.extraSmall})`),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the end. */\r\n extraSmallEnd: unsafeCSS(\r\n `${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none}`\r\n ),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the start. */\r\n extraSmallStart: unsafeCSS(\r\n `${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall}`\r\n ),\r\n\r\n /** Extra small rounded asymmetric shape directed towards the bottom. */\r\n extraSmallBottom: unsafeCSS(\r\n `${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall}`\r\n ),\r\n\r\n /** No rounding. */\r\n none: unsafeCSS(`var(--md-sys-shape-corner-none, ${CornerValue.none})`),\r\n\r\n /** Increased large rounded symmetric shape. */\r\n largeIncreased: unsafeCSS(`var(--md-sys-shape-corner-large-increased, ${CornerValue.largeIncreased})`),\r\n\r\n /** Increased extra large rounded symmetric shape. */\r\n extraLargeIncreased: unsafeCSS(\r\n `var(--md-sys-shape-corner-extra-large-increased, ${CornerValue.extraLargeIncreased})`\r\n ),\r\n\r\n /** Extra extra large rounded symmetric shape. */\r\n extraExtraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-extra-large, ${CornerValue.extraExtraLarge})`),\r\n\r\n /** Design tokens that control specific corners. */\r\n value: CornerValue,\r\n },\r\n}"
13930
- },
13931
- "default": "{ corner: { /** Fully rounded symmetric shape. */ full: unsafeCSS(\"var(--md-sys-shape-corner-full, 624.9375rem)\"), /** Extra large rounded asymmetric shape directed towards the top. */ extraLargeTop: unsafeCSS( `var(--md-sys-shape-corner-extra-large-top, ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none})` ), /** Extra large rounded symmetric shape. */ extraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-large, ${CornerValue.extraLarge})`), /** Extra large rounded asymmetric shape directed towards the end. */ extraLargeEnd: unsafeCSS( `${CornerValue.none} ${CornerValue.extraLarge} ${CornerValue.extraLarge} ${CornerValue.none}` ), /** Extra large rounded asymmetric shape directed towards the start. */ extraLargeStart: unsafeCSS( `${CornerValue.extraLarge} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraLarge}` ), /** Large rounded asymmetric shape directed towards the top. */ largeTop: unsafeCSS( `var(--md-sys-shape-corner-large-top, ${CornerValue.large} ${CornerValue.large} ${CornerValue.none} ${CornerValue.none})` ), /** Large rounded asymmetric shape directed towards the end. */ largeEnd: unsafeCSS( `var(--md-sys-shape-corner-large-end, ${CornerValue.none} ${CornerValue.large} ${CornerValue.large} ${CornerValue.none})` ), /** Large rounded asymmetric shape directed towards the start. */ largeStart: unsafeCSS( `var(--md-sys-shape-corner-large-end, ${CornerValue.large} ${CornerValue.none} ${CornerValue.none} ${CornerValue.large})` ), /** Large rounded symmetric shape. */ large: unsafeCSS(`var(--md-sys-shape-corner-large, ${CornerValue.large})`), /** Medium rounded symmetric shape. */ medium: unsafeCSS(`var(--md-sys-shape-corner-medium, ${CornerValue.medium})`), /** Medium rounded asymmetric shape directed towards the top. */ mediumTop: unsafeCSS(`${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none} ${CornerValue.none}`), /** Medium rounded asymmetric shape directed towards the end. */ mediumEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.medium} ${CornerValue.medium} ${CornerValue.none}`), /** Medium rounded asymmetric shape directed towards the start. */ mediumStart: unsafeCSS(`${CornerValue.medium} ${CornerValue.none} ${CornerValue.none} ${CornerValue.medium}`), /** Small rounded symmetric shape. */ small: unsafeCSS(`var(--md-sys-shape-corner-small, ${CornerValue.small})`), /** Small rounded asymmetric shape directed towards the top. */ smallTop: unsafeCSS(`${CornerValue.small} ${CornerValue.small} ${CornerValue.none} ${CornerValue.none}`), /** Small rounded asymmetric shape directed towards the end. */ smallEnd: unsafeCSS(`${CornerValue.none} ${CornerValue.small} ${CornerValue.small} ${CornerValue.none}`), /** Small rounded asymmetric shape directed towards the start. */ smallStart: unsafeCSS(`${CornerValue.small} ${CornerValue.none} ${CornerValue.none} ${CornerValue.small}`), /** Extra small rounded asymmetric shape directed towards the top. */ extraSmallTop: unsafeCSS( `var(--md-sys-shape-corner-extra-small-top, ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none})` ), /** Extra small rounded symmetric shape. */ extraSmall: unsafeCSS(`var(--md-sys-shape-corner-extra-small, ${CornerValue.extraSmall})`), /** Extra small rounded asymmetric shape directed towards the end. */ extraSmallEnd: unsafeCSS( `${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall} ${CornerValue.none}` ), /** Extra small rounded asymmetric shape directed towards the start. */ extraSmallStart: unsafeCSS( `${CornerValue.extraSmall} ${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall}` ), /** Extra small rounded asymmetric shape directed towards the bottom. */ extraSmallBottom: unsafeCSS( `${CornerValue.none} ${CornerValue.none} ${CornerValue.extraSmall} ${CornerValue.extraSmall}` ), /** No rounding. */ none: unsafeCSS(`var(--md-sys-shape-corner-none, ${CornerValue.none})`), /** Increased large rounded symmetric shape. */ largeIncreased: unsafeCSS(`var(--md-sys-shape-corner-large-increased, ${CornerValue.largeIncreased})`), /** Increased extra large rounded symmetric shape. */ extraLargeIncreased: unsafeCSS( `var(--md-sys-shape-corner-extra-large-increased, ${CornerValue.extraLargeIncreased})` ), /** Extra extra large rounded symmetric shape. */ extraExtraLarge: unsafeCSS(`var(--md-sys-shape-corner-extra-extra-large, ${CornerValue.extraExtraLarge})`), /** Design tokens that control specific corners. */ value: CornerValue, }, }",
13932
- "description": "Design tokens that control shape."
13933
- }
13934
- ],
13935
- "exports": [
13871
+ "kind": "js",
13872
+ "name": "*",
13873
+ "declaration": {
13874
+ "name": "*",
13875
+ "package": "\"./generateClipPaths\""
13876
+ }
13877
+ },
13936
13878
  {
13937
13879
  "kind": "js",
13938
- "name": "ShapeToken",
13880
+ "name": "*",
13939
13881
  "declaration": {
13940
- "name": "ShapeToken",
13941
- "module": "src/shared/tokens/ShapeToken.ts"
13882
+ "name": "*",
13883
+ "package": "\"./getTextContent\""
13884
+ }
13885
+ },
13886
+ {
13887
+ "kind": "js",
13888
+ "name": "*",
13889
+ "declaration": {
13890
+ "name": "*",
13891
+ "package": "\"./guid\""
13892
+ }
13893
+ },
13894
+ {
13895
+ "kind": "js",
13896
+ "name": "*",
13897
+ "declaration": {
13898
+ "name": "*",
13899
+ "package": "\"./hasAssignedNodes\""
13900
+ }
13901
+ },
13902
+ {
13903
+ "kind": "js",
13904
+ "name": "*",
13905
+ "declaration": {
13906
+ "name": "*",
13907
+ "package": "\"./prefersReducedMotion\""
13908
+ }
13909
+ },
13910
+ {
13911
+ "kind": "js",
13912
+ "name": "*",
13913
+ "declaration": {
13914
+ "name": "*",
13915
+ "package": "\"./scrollIntoViewIfNeeded\""
13942
13916
  }
13943
13917
  }
13944
13918
  ]
13945
13919
  },
13946
13920
  {
13947
13921
  "kind": "javascript-module",
13948
- "path": "src/shared/tokens/StateToken.ts",
13922
+ "path": "src/shared/utils/prefersReducedMotion.ts",
13949
13923
  "declarations": [
13950
13924
  {
13951
- "kind": "variable",
13952
- "name": "StateToken",
13953
- "type": {
13954
- "text": "{\r\n /** Opacity of the state layer on focus. */\r\n focusStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-focus-state-layer-opacity, 10%)\"),\r\n\r\n /** Opacity of the state layer on hover. */\r\n hoverStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-hover-state-layer-opacity, 8%)\"),\r\n\r\n /** Opacity of the state layer on pressed. */\r\n pressedStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-pressed-state-layer-opacity, 10%)\"),\r\n}"
13925
+ "kind": "function",
13926
+ "name": "prefersReducedMotion",
13927
+ "return": {
13928
+ "type": {
13929
+ "text": "boolean"
13930
+ }
13955
13931
  },
13956
- "default": "{ /** Opacity of the state layer on focus. */ focusStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-focus-state-layer-opacity, 10%)\"), /** Opacity of the state layer on hover. */ hoverStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-hover-state-layer-opacity, 8%)\"), /** Opacity of the state layer on pressed. */ pressedStateLayerOpacity: unsafeCSS(\"var(--md-sys-state-pressed-state-layer-opacity, 10%)\"), }",
13957
- "description": "Design tokens that control state layer."
13932
+ "description": "Determines whether reduced motion is preferred."
13958
13933
  }
13959
13934
  ],
13960
13935
  "exports": [
13961
13936
  {
13962
13937
  "kind": "js",
13963
- "name": "StateToken",
13938
+ "name": "prefersReducedMotion",
13964
13939
  "declaration": {
13965
- "name": "StateToken",
13966
- "module": "src/shared/tokens/StateToken.ts"
13940
+ "name": "prefersReducedMotion",
13941
+ "module": "src/shared/utils/prefersReducedMotion.ts"
13967
13942
  }
13968
13943
  }
13969
13944
  ]
13970
13945
  },
13971
13946
  {
13972
13947
  "kind": "javascript-module",
13973
- "path": "src/shared/tokens/TypescaleToken.ts",
13948
+ "path": "src/shared/utils/scrollIntoViewIfNeeded.ts",
13974
13949
  "declarations": [
13975
13950
  {
13976
- "kind": "variable",
13977
- "name": "TypescaleToken",
13978
- "type": {
13979
- "text": "{\r\n /** Standard typescale variant. */\r\n standard: {\r\n /** Short, important text or numerals. */\r\n display: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-display-large-font-size, 3.5625rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-large-line-height, 4rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-display-large-tracking, 0.015625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-size, 2.8125rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-line-height, 3.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-display-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-display-small-font-size, 2.25rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-small-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-small-line-height, 2.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-display-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Short, high-emphasis text on smaller screens. */\r\n headline: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-size, 2rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-line-height, 2.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-headline-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-size, 1.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-line-height, 2.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-headline-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-size, 1.5rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-line-height, 2rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-headline-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Medium-emphasis text that remains relatively short. */\r\n title: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-title-large-font-size, 1.375rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-large-line-height, 1.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-title-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-line-height, 1.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-title-medium-tracking, 0.009375rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-title-small-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-small-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-title-small-tracking, 0.00625rem)\"),\r\n },\r\n },\r\n\r\n /** Longer passages of text. */\r\n body: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-body-large-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-large-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-large-line-height, 1.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-body-large-tracking, 0.03125rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-body-medium-tracking, 0.015625rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-body-small-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-small-font-weight, 400)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-body-small-tracking, 0.025rem)\"),\r\n },\r\n },\r\n\r\n /** Smaller, utilitarian text. */\r\n label: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-label-large-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-large-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-label-large-tracking, 0.00625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-label-medium-tracking, 0.03125rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-label-small-font-size, 0.6875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-label-small-tracking, 0.03125rem)\"),\r\n },\r\n },\r\n },\r\n\r\n /** Emphasized typescale variant. */\r\n emphasized: {\r\n /** Short, important text or numerals. */\r\n display: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Short, high-emphasis text on smaller screens. */\r\n headline: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-tracking, 0)\"),\r\n },\r\n },\r\n\r\n /** Medium-emphasis text that remains relatively short. */\r\n title: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-tracking, 0)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)\"),\r\n },\r\n },\r\n\r\n /** Longer passages of text. */\r\n body: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-weight, 500)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)\"),\r\n },\r\n },\r\n\r\n /** Smaller, utilitarian text. */\r\n label: {\r\n large: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)\"),\r\n },\r\n medium: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)\"),\r\n },\r\n small: {\r\n fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)\"),\r\n fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-weight, 700)\"),\r\n lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)\"),\r\n tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)\"),\r\n },\r\n },\r\n },\r\n}"
13951
+ "kind": "function",
13952
+ "name": "scrollIntoViewIfNeeded",
13953
+ "return": {
13954
+ "type": {
13955
+ "text": "void"
13956
+ }
13980
13957
  },
13981
- "default": "{ /** Standard typescale variant. */ standard: { /** Short, important text or numerals. */ display: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-display-large-font-size, 3.5625rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-large-line-height, 4rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-display-large-tracking, 0.015625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-size, 2.8125rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-medium-line-height, 3.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-display-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-display-small-font-size, 2.25rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-display-small-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-display-small-line-height, 2.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-display-small-tracking, 0)\"), }, }, /** Short, high-emphasis text on smaller screens. */ headline: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-size, 2rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-large-line-height, 2.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-headline-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-size, 1.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-medium-line-height, 2.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-headline-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-size, 1.5rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-headline-small-line-height, 2rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-headline-small-tracking, 0)\"), }, }, /** Medium-emphasis text that remains relatively short. */ title: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-title-large-font-size, 1.375rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-large-line-height, 1.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-title-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-medium-line-height, 1.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-title-medium-tracking, 0.009375rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-title-small-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-title-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-title-small-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-title-small-tracking, 0.00625rem)\"), }, }, /** Longer passages of text. */ body: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-body-large-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-large-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-large-line-height, 1.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-body-large-tracking, 0.03125rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-medium-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-body-medium-tracking, 0.015625rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-body-small-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-body-small-font-weight, 400)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-body-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-body-small-tracking, 0.025rem)\"), }, }, /** Smaller, utilitarian text. */ label: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-label-large-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-large-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-label-large-tracking, 0.00625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-medium-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-label-medium-tracking, 0.03125rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-label-small-font-size, 0.6875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-label-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-label-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-label-small-tracking, 0.03125rem)\"), }, }, }, /** Emphasized typescale variant. */ emphasized: { /** Short, important text or numerals. */ display: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-size, 3.5625rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-line-height, 4rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-large-tracking, 0.015625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-size, 2.8125rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-line-height, 3.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-size, 2.25rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-line-height, 2.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-display-small-tracking, 0)\"), }, }, /** Short, high-emphasis text on smaller screens. */ headline: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-size, 2rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-line-height, 2.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-size, 1.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-line-height, 2.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-medium-tracking, 0)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-size, 1.5rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-line-height, 2rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-headline-small-tracking, 0)\"), }, }, /** Medium-emphasis text that remains relatively short. */ title: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-size, 1.375rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-line-height, 1.75rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-large-tracking, 0)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-line-height, 3.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-medium-tracking, 0.009375rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-title-small-tracking, 0.00625rem)\"), }, }, /** Longer passages of text. */ body: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-size, 1rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-line-height, 1.5rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-large-tracking, 0.03125rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-medium-tracking, 0.015625rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-font-weight, 500)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-body-small-tracking, 0.025rem)\"), }, }, /** Smaller, utilitarian text. */ label: { large: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-size, 0.875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-line-height, 1.25rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-large-tracking, 0.00625rem)\"), }, medium: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-size, 0.75rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-medium-tracking, 0.03125rem)\"), }, small: { fontSize: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-size, 0.6875rem)\"), fontWeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-font-weight, 700)\"), lineHeight: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-line-height, 1rem)\"), tracking: unsafeCSS(\"var(--md-sys-typescale-emphasized-label-small-tracking, 0.03125rem)\"), }, }, }, }",
13982
- "description": "Design tokens that control typescale."
13958
+ "parameters": [
13959
+ {
13960
+ "name": "element",
13961
+ "type": {
13962
+ "text": "HTMLElement"
13963
+ },
13964
+ "description": "The element to scroll into view."
13965
+ },
13966
+ {
13967
+ "name": "scrollContainer",
13968
+ "type": {
13969
+ "text": "HTMLElement"
13970
+ },
13971
+ "description": "The scrollable container."
13972
+ },
13973
+ {
13974
+ "name": "options",
13975
+ "optional": true,
13976
+ "type": {
13977
+ "text": "ScrollIntoViewOptions"
13978
+ },
13979
+ "description": "Options used to scroll into view."
13980
+ }
13981
+ ],
13982
+ "description": "If needed, scrolls an element into view within a given scroll container."
13983
13983
  }
13984
13984
  ],
13985
13985
  "exports": [
13986
13986
  {
13987
13987
  "kind": "js",
13988
- "name": "TypescaleToken",
13988
+ "name": "scrollIntoViewIfNeeded",
13989
13989
  "declaration": {
13990
- "name": "TypescaleToken",
13991
- "module": "src/shared/tokens/TypescaleToken.ts"
13990
+ "name": "scrollIntoViewIfNeeded",
13991
+ "module": "src/shared/utils/scrollIntoViewIfNeeded.ts"
13992
13992
  }
13993
13993
  }
13994
13994
  ]