@exponential-at/ui 0.0.0-stage → 0.1.0
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.
- package/LICENSE +201 -0
- package/NOTICE +54 -0
- package/README.md +360 -2
- package/catalog/a11y.json +668 -0
- package/catalog/basic-map.json +104 -0
- package/catalog/code.json +58 -0
- package/catalog/core.catalog.json +4752 -0
- package/catalog/core.schema.json +22667 -0
- package/catalog/host.json +64 -0
- package/catalog/layout.json +20 -0
- package/catalog/limits.json +9 -0
- package/catalog/locale.json +48 -0
- package/catalog/macros.json +3417 -0
- package/catalog/recipes.json +61 -0
- package/catalog/strings.json +72 -0
- package/catalog/style.json +128 -0
- package/catalog/theme.schema.json +42543 -0
- package/catalog/tokens.json +47 -0
- package/conformance/README.md +217 -0
- package/conformance/baseline.ts +101 -0
- package/conformance/browser-page.ts +146 -0
- package/conformance/browser-suites.ts +683 -0
- package/conformance/compare.ts +201 -0
- package/conformance/dom.ts +96 -0
- package/conformance/dump.ts +163 -0
- package/conformance/fonts.json +154 -0
- package/conformance/manifest.json +224 -0
- package/conformance/parity-compare.ts +191 -0
- package/conformance/parity-report.schema.json +73 -0
- package/conformance/parity.ts +412 -0
- package/conformance/pixel.ts +177 -0
- package/conformance/primitives-page.ts +49 -0
- package/conformance/report.schema.json +66 -0
- package/conformance/run.ts +118 -0
- package/dist/chunks/index-98npjvsd.js +3940 -0
- package/dist/chunks/index-98npjvsd.js.map +27 -0
- package/dist/chunks/index-gwkt14w3.js +7314 -0
- package/dist/chunks/index-gwkt14w3.js.map +10 -0
- package/dist/chunks/index-njt7yzzm.js +134 -0
- package/dist/chunks/index-njt7yzzm.js.map +9 -0
- package/dist/chunks/index-we7va6v6.js +7984 -0
- package/dist/chunks/index-we7va6v6.js.map +15 -0
- package/dist/chunks/index-xrm6f7wc.js +2563 -0
- package/dist/chunks/index-xrm6f7wc.js.map +10 -0
- package/dist/conformance.js +182749 -0
- package/dist/conformance.js.map +10 -0
- package/dist/entries/prompt.js +251 -0
- package/dist/entries/prompt.js.map +11 -0
- package/dist/entries/schema.js +1725 -0
- package/dist/entries/schema.js.map +11 -0
- package/dist/host/index.js +122 -0
- package/dist/host/index.js.map +9 -0
- package/dist/index.js +3213 -0
- package/dist/index.js.map +27 -0
- package/dist/types/src/a11y.d.ts +21 -0
- package/dist/types/src/animation.d.ts +76 -0
- package/dist/types/src/basic-map.d.ts +38 -0
- package/dist/types/src/builder.d.ts +50 -0
- package/dist/types/src/catalog.d.ts +54 -0
- package/dist/types/src/catalog.described.d.ts +33 -0
- package/dist/types/src/catalog.generated.d.ts +829 -0
- package/dist/types/src/chart.d.ts +46 -0
- package/dist/types/src/code.d.ts +44 -0
- package/dist/types/src/color.d.ts +20 -0
- package/dist/types/src/conformance.d.ts +39 -0
- package/dist/types/src/connector/app.d.ts +14 -0
- package/dist/types/src/connector/connector.d.ts +77 -0
- package/dist/types/src/connector/index.d.ts +4 -0
- package/dist/types/src/css.d.ts +29 -0
- package/dist/types/src/define.d.ts +66 -0
- package/dist/types/src/direction.d.ts +16 -0
- package/dist/types/src/dynamic.d.ts +159 -0
- package/dist/types/src/entries/prompt.d.ts +11 -0
- package/dist/types/src/entries/schema.d.ts +8 -0
- package/dist/types/src/expr.d.ts +71 -0
- package/dist/types/src/extension.d.ts +4 -0
- package/dist/types/src/format.d.ts +112 -0
- package/dist/types/src/geometry.d.ts +40 -0
- package/dist/types/src/host/contract.d.ts +188 -0
- package/dist/types/src/host/decoders.d.ts +61 -0
- package/dist/types/src/host/index.d.ts +11 -0
- package/dist/types/src/host/package.d.ts +58 -0
- package/dist/types/src/host/policy.d.ts +105 -0
- package/dist/types/src/host/router.d.ts +34 -0
- package/dist/types/src/host/runtime.d.ts +205 -0
- package/dist/types/src/host/sources.d.ts +15 -0
- package/dist/types/src/host/transports.d.ts +109 -0
- package/dist/types/src/index.d.ts +63 -0
- package/dist/types/src/layout.d.ts +20 -0
- package/dist/types/src/limits.d.ts +21 -0
- package/dist/types/src/list.d.ts +133 -0
- package/dist/types/src/locale.d.ts +22 -0
- package/dist/types/src/macros.d.ts +29 -0
- package/dist/types/src/overlay.d.ts +27 -0
- package/dist/types/src/prompt.d.ts +44 -0
- package/dist/types/src/recipes.d.ts +17 -0
- package/dist/types/src/reducer.d.ts +41 -0
- package/dist/types/src/resizable.d.ts +38 -0
- package/dist/types/src/schema.d.ts +7 -0
- package/dist/types/src/strings.d.ts +13 -0
- package/dist/types/src/style.d.ts +201 -0
- package/dist/types/src/test-preload.d.ts +1 -0
- package/dist/types/src/text-shimmer.d.ts +24 -0
- package/dist/types/src/theme-types.d.ts +162 -0
- package/dist/types/src/theme.d.ts +73 -0
- package/dist/types/src/themes.d.ts +22 -0
- package/dist/types/src/tree-guides.d.ts +17 -0
- package/dist/types/src/types.d.ts +314 -0
- package/dist/types/src/validate.d.ts +31 -0
- package/dist/types/src/web/base-css.d.ts +1 -0
- package/dist/types/src/web/box-css.d.ts +55 -0
- package/dist/types/src/web/coerce.d.ts +32 -0
- package/dist/types/src/web/data.d.ts +105 -0
- package/dist/types/src/web/dates.d.ts +12 -0
- package/dist/types/src/web/form.d.ts +44 -0
- package/dist/types/src/web/host-types.d.ts +119 -0
- package/dist/types/src/web/index.d.ts +28 -0
- package/dist/types/src/web/inputs.d.ts +55 -0
- package/dist/types/src/web/list.d.ts +13 -0
- package/dist/types/src/web/listbox.d.ts +14 -0
- package/dist/types/src/web/markdown.d.ts +96 -0
- package/dist/types/src/web/media.d.ts +62 -0
- package/dist/types/src/web/parts.d.ts +4 -0
- package/dist/types/src/web/primitives/alert-dialog.d.ts +10 -0
- package/dist/types/src/web/primitives/alert.d.ts +9 -0
- package/dist/types/src/web/primitives/avatar-color.d.ts +2 -0
- package/dist/types/src/web/primitives/avatar.d.ts +13 -0
- package/dist/types/src/web/primitives/badge.d.ts +10 -0
- package/dist/types/src/web/primitives/breadcrumb.d.ts +10 -0
- package/dist/types/src/web/primitives/button.d.ts +6 -0
- package/dist/types/src/web/primitives/calendar.d.ts +43 -0
- package/dist/types/src/web/primitives/card.d.ts +9 -0
- package/dist/types/src/web/primitives/checkbox.d.ts +5 -0
- package/dist/types/src/web/primitives/choice-tiles.d.ts +32 -0
- package/dist/types/src/web/primitives/cn.d.ts +3 -0
- package/dist/types/src/web/primitives/code-block.d.ts +24 -0
- package/dist/types/src/web/primitives/command.d.ts +134 -0
- package/dist/types/src/web/primitives/context-ring.d.ts +24 -0
- package/dist/types/src/web/primitives/dialog-arms.d.ts +6 -0
- package/dist/types/src/web/primitives/dialog.d.ts +24 -0
- package/dist/types/src/web/primitives/disclosure-header.d.ts +5 -0
- package/dist/types/src/web/primitives/dock.d.ts +42 -0
- package/dist/types/src/web/primitives/dropdown-menu.d.ts +14 -0
- package/dist/types/src/web/primitives/empty-state.d.ts +15 -0
- package/dist/types/src/web/primitives/glass-card.d.ts +4 -0
- package/dist/types/src/web/primitives/hover-card.d.ts +7 -0
- package/dist/types/src/web/primitives/icon-disc.d.ts +12 -0
- package/dist/types/src/web/primitives/index.d.ts +48 -0
- package/dist/types/src/web/primitives/input.d.ts +5 -0
- package/dist/types/src/web/primitives/kbd.d.ts +4 -0
- package/dist/types/src/web/primitives/label.d.ts +3 -0
- package/dist/types/src/web/primitives/menu-surface.d.ts +17 -0
- package/dist/types/src/web/primitives/meter.d.ts +21 -0
- package/dist/types/src/web/primitives/popover.d.ts +3 -0
- package/dist/types/src/web/primitives/progress-ring.d.ts +5 -0
- package/dist/types/src/web/primitives/progress.d.ts +8 -0
- package/dist/types/src/web/primitives/scroll-area.d.ts +49 -0
- package/dist/types/src/web/primitives/segmented-control.d.ts +5 -0
- package/dist/types/src/web/primitives/select.d.ts +47 -0
- package/dist/types/src/web/primitives/separator.d.ts +3 -0
- package/dist/types/src/web/primitives/sheet-chrome.d.ts +4 -0
- package/dist/types/src/web/primitives/sheet.d.ts +20 -0
- package/dist/types/src/web/primitives/skeleton.d.ts +3 -0
- package/dist/types/src/web/primitives/spinner.d.ts +3 -0
- package/dist/types/src/web/primitives/switch.d.ts +4 -0
- package/dist/types/src/web/primitives/table.d.ts +11 -0
- package/dist/types/src/web/primitives/tabs.d.ts +13 -0
- package/dist/types/src/web/primitives/textarea.d.ts +3 -0
- package/dist/types/src/web/primitives/toast.d.ts +163 -0
- package/dist/types/src/web/primitives/tooltip.d.ts +3 -0
- package/dist/types/src/web/primitives/truncate.d.ts +7 -0
- package/dist/types/src/web/primitives/typeahead-portal.d.ts +12 -0
- package/dist/types/src/web/share.d.ts +6 -0
- package/dist/types/src/web/table.d.ts +20 -0
- package/dist/types/src/web/theme-css.d.ts +69 -0
- package/dist/types/src/web/urls.d.ts +21 -0
- package/dist/web/index.js +2303 -0
- package/dist/web/index.js.map +26 -0
- package/dist/web/primitives/index.js +1450 -0
- package/dist/web/primitives/index.js.map +57 -0
- package/docs/components.generated.json +6238 -0
- package/docs/round-1-contract.md +679 -0
- package/docs/round-2-contract.md +476 -0
- package/docs/round-3-contract.md +174 -0
- package/docs/themes.generated.json +3503 -0
- package/fixtures/animations.json +2890 -0
- package/fixtures/bench-list.json +58 -0
- package/fixtures/bind-time.json +30664 -0
- package/fixtures/catalog-basic-map.json +1692 -0
- package/fixtures/catalog-components.json +9323 -0
- package/fixtures/catalog-extension.json +620 -0
- package/fixtures/catalog-macros.json +36370 -0
- package/fixtures/code-tokens.json +1993 -0
- package/fixtures/conformance-baseline.json +55544 -0
- package/fixtures/conformance-cases.json +49 -0
- package/fixtures/conformance-known.json +2123 -0
- package/fixtures/control-geometry.json +4200 -0
- package/fixtures/dashboard.data.json +74 -0
- package/fixtures/dashboard.json +752 -0
- package/fixtures/demo-surface.json +47 -0
- package/fixtures/format.json +870 -0
- package/fixtures/host-policy.json +1067 -0
- package/fixtures/host-router.json +1152 -0
- package/fixtures/host-transport.json +590 -0
- package/fixtures/interactions-round1.json +773 -0
- package/fixtures/kitchen-sink.expanded.json +10844 -0
- package/fixtures/kitchen-sink.json +3049 -0
- package/fixtures/layout-geometry-round1.json +7278 -0
- package/fixtures/layout-geometry.json +2072 -0
- package/fixtures/overlay-geometry.json +272 -0
- package/fixtures/primitive-specimens.json +58 -0
- package/fixtures/prompt-budget.json +33 -0
- package/fixtures/resizable.json +714 -0
- package/fixtures/round4-contract.json +2985 -0
- package/fixtures/specimens.json +9832 -0
- package/fixtures/style-conditions.json +336 -0
- package/fixtures/template-items.json +2215 -0
- package/fixtures/text-direction.json +309 -0
- package/fixtures/text-shimmer.json +96 -0
- package/fixtures/theme-extends.json +573 -0
- package/fixtures/theme-invalid.json +1296 -0
- package/fixtures/theme-recipes.json +58600 -0
- package/fixtures/theme-resolved.json +23949 -0
- package/fixtures/toast-stack.json +215 -0
- package/fixtures/tree-guides.json +224 -0
- package/fixtures/virtual-list.json +733 -0
- package/generated/ExponentialUICatalog.generated.kt +67 -0
- package/generated/ExponentialUICatalog.generated.swift +67 -0
- package/generated/ExponentialUIThemes.generated.kt +23 -0
- package/generated/ExponentialUIThemes.generated.swift +23 -0
- package/generated/catalog.descriptions.generated.rs +6 -0
- package/generated/catalog.generated.rs +80 -0
- package/generated/catalog.themes.generated.rs +34 -0
- package/generated/core.descriptions.json +2505 -0
- package/generated/core.runtime.json +3609 -0
- package/package.json +87 -4
- package/themes/exponential.recipes.json +49 -0
- package/themes/exponential.theme.json +755 -0
- package/themes/neutral.theme.json +5676 -0
- package/themes/orange.theme.json +43 -0
- package/themes/playful.theme.json +219 -0
- package/vendor/a2ui/LICENSE.txt +203 -0
- package/vendor/a2ui/README.md +27 -0
- package/vendor/a2ui/v0_9/basic_catalog.json +1387 -0
- package/vendor/a2ui/v0_9/basic_catalog_rules.txt +5 -0
- package/vendor/a2ui/v0_9/client_capabilities.json +97 -0
- package/vendor/a2ui/v0_9/client_to_server.json +104 -0
- package/vendor/a2ui/v0_9/common_types.json +315 -0
- package/vendor/a2ui/v0_9/server_to_client.json +132 -0
- package/vendor/json-render/LICENSE.txt +201 -0
- package/vendor/json-render/README.md +13 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "Round 1 (docs/round-1-contract.md §2): the STYLE CONDITION contract. Inputs hand-written (name, style, contexts); `expected` is filled by scripts/generate.ts from src/style.ts resolveConditions: the base keys, then every matching @media block in SOURCE order, then :hover, :focus-visible, :pressed (pressed wins). Sizes are the SURFACE box; min-* = size >= N, max-* = size < N; a $breakpoint token resolves through the context's breakpoints (the file's when absent; an unknown token never matches); orientation portrait = height >= width (landscape when the height is unknown). Token VALUES pass through untouched (the theme resolves them after). Every renderer replays it.",
|
|
3
|
+
"breakpoints": {
|
|
4
|
+
"sm": 640,
|
|
5
|
+
"md": 768,
|
|
6
|
+
"lg": 1024,
|
|
7
|
+
"xl": 1280
|
|
8
|
+
},
|
|
9
|
+
"cases": [
|
|
10
|
+
{
|
|
11
|
+
"name": "min-width in px and as a breakpoint token",
|
|
12
|
+
"style": {
|
|
13
|
+
"gap": 4,
|
|
14
|
+
"@media (min-width: 600px)": {
|
|
15
|
+
"gap": 8
|
|
16
|
+
},
|
|
17
|
+
"@media (min-width: $breakpoint.lg)": {
|
|
18
|
+
"gap": 16
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"contexts": [
|
|
22
|
+
{
|
|
23
|
+
"label": "phone",
|
|
24
|
+
"width": 320
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"label": "exactly 600",
|
|
28
|
+
"width": 600
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"label": "lg",
|
|
32
|
+
"width": 1024
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"label": "xl",
|
|
36
|
+
"width": 1440
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"expected": [
|
|
40
|
+
{
|
|
41
|
+
"gap": 4
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"gap": 8
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"gap": 16
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"gap": 16
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "max-width is strict, so min-width N and max-width N never overlap",
|
|
56
|
+
"style": {
|
|
57
|
+
"display": "flex",
|
|
58
|
+
"@media (max-width: $breakpoint.md)": {
|
|
59
|
+
"display": "none"
|
|
60
|
+
},
|
|
61
|
+
"@media (min-width: $breakpoint.md)": {
|
|
62
|
+
"gap": 12
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"contexts": [
|
|
66
|
+
{
|
|
67
|
+
"label": "767",
|
|
68
|
+
"width": 767
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"label": "768",
|
|
72
|
+
"width": 768
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
|
+
"expected": [
|
|
76
|
+
{
|
|
77
|
+
"display": "none"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"display": "flex",
|
|
81
|
+
"gap": 12
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "blocks apply in source order: the later one wins",
|
|
87
|
+
"style": {
|
|
88
|
+
"padding": 0,
|
|
89
|
+
"@media (min-width: 400px)": {
|
|
90
|
+
"padding": 8
|
|
91
|
+
},
|
|
92
|
+
"@media (max-width: 1000px)": {
|
|
93
|
+
"padding": 4
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"contexts": [
|
|
97
|
+
{
|
|
98
|
+
"label": "both match",
|
|
99
|
+
"width": 500
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"label": "only min-width",
|
|
103
|
+
"width": 1200
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"label": "only max-width",
|
|
107
|
+
"width": 300
|
|
108
|
+
}
|
|
109
|
+
],
|
|
110
|
+
"expected": [
|
|
111
|
+
{
|
|
112
|
+
"padding": 4
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"padding": 8
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"padding": 4
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "height and orientation",
|
|
124
|
+
"style": {
|
|
125
|
+
"flexDirection": "row",
|
|
126
|
+
"@media (min-height: 500px)": {
|
|
127
|
+
"gap": 12
|
|
128
|
+
},
|
|
129
|
+
"@media (max-height: 500px)": {
|
|
130
|
+
"gap": 4
|
|
131
|
+
},
|
|
132
|
+
"@media (orientation: portrait)": {
|
|
133
|
+
"flexDirection": "column"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"contexts": [
|
|
137
|
+
{
|
|
138
|
+
"label": "portrait phone",
|
|
139
|
+
"width": 400,
|
|
140
|
+
"height": 800
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"label": "landscape phone",
|
|
144
|
+
"width": 800,
|
|
145
|
+
"height": 400
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"label": "square",
|
|
149
|
+
"width": 500,
|
|
150
|
+
"height": 500
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"label": "height unknown",
|
|
154
|
+
"width": 800
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"expected": [
|
|
158
|
+
{
|
|
159
|
+
"flexDirection": "column",
|
|
160
|
+
"gap": 12
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"flexDirection": "row",
|
|
164
|
+
"gap": 4
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"flexDirection": "column",
|
|
168
|
+
"gap": 12
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"flexDirection": "row"
|
|
172
|
+
}
|
|
173
|
+
]
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "hover capability and reduced motion",
|
|
177
|
+
"style": {
|
|
178
|
+
"transition": "$motion.fast",
|
|
179
|
+
"@media (hover: hover)": {
|
|
180
|
+
"cursor": "pointer"
|
|
181
|
+
},
|
|
182
|
+
"@media (hover: none)": {
|
|
183
|
+
"minHeight": 44
|
|
184
|
+
},
|
|
185
|
+
"@media (prefers-reduced-motion: reduce)": {
|
|
186
|
+
"transform": "scale(1)"
|
|
187
|
+
},
|
|
188
|
+
"@media (prefers-reduced-motion: no-preference)": {
|
|
189
|
+
"transform": "scale(1.02)"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"contexts": [
|
|
193
|
+
{
|
|
194
|
+
"label": "mouse",
|
|
195
|
+
"width": 1024,
|
|
196
|
+
"hover": true
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
"label": "touch",
|
|
200
|
+
"width": 390,
|
|
201
|
+
"hover": false
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"label": "mouse, reduced motion",
|
|
205
|
+
"width": 1024,
|
|
206
|
+
"hover": true,
|
|
207
|
+
"reducedMotion": true
|
|
208
|
+
}
|
|
209
|
+
],
|
|
210
|
+
"expected": [
|
|
211
|
+
{
|
|
212
|
+
"transition": "$motion.fast",
|
|
213
|
+
"cursor": "pointer",
|
|
214
|
+
"transform": "scale(1.02)"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"transition": "$motion.fast",
|
|
218
|
+
"minHeight": 44,
|
|
219
|
+
"transform": "scale(1.02)"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"transition": "$motion.fast",
|
|
223
|
+
"cursor": "pointer",
|
|
224
|
+
"transform": "scale(1)"
|
|
225
|
+
}
|
|
226
|
+
]
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"name": "states apply after every media block; pressed wins",
|
|
230
|
+
"style": {
|
|
231
|
+
"opacity": 1,
|
|
232
|
+
"@media (min-width: 600px)": {
|
|
233
|
+
"opacity": 0.9
|
|
234
|
+
},
|
|
235
|
+
":pressed": {
|
|
236
|
+
"opacity": 0.6
|
|
237
|
+
},
|
|
238
|
+
":hover": {
|
|
239
|
+
"opacity": 0.8,
|
|
240
|
+
"backgroundColor": "$color.accent"
|
|
241
|
+
},
|
|
242
|
+
":focus-visible": {
|
|
243
|
+
"borderColor": "$color.ring"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"contexts": [
|
|
247
|
+
{
|
|
248
|
+
"label": "idle wide",
|
|
249
|
+
"width": 700
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"label": "hover",
|
|
253
|
+
"width": 700,
|
|
254
|
+
"states": [
|
|
255
|
+
"hover"
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"label": "hover + pressed",
|
|
260
|
+
"width": 700,
|
|
261
|
+
"states": [
|
|
262
|
+
"hover",
|
|
263
|
+
"pressed"
|
|
264
|
+
]
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"label": "keyboard focus, narrow",
|
|
268
|
+
"width": 300,
|
|
269
|
+
"states": [
|
|
270
|
+
"focus-visible"
|
|
271
|
+
]
|
|
272
|
+
}
|
|
273
|
+
],
|
|
274
|
+
"expected": [
|
|
275
|
+
{
|
|
276
|
+
"opacity": 0.9
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"opacity": 0.8,
|
|
280
|
+
"backgroundColor": "$color.accent"
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"opacity": 0.6,
|
|
284
|
+
"backgroundColor": "$color.accent"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
"opacity": 1,
|
|
288
|
+
"borderColor": "$color.ring"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "the theme's breakpoints decide; an unknown token never matches",
|
|
294
|
+
"style": {
|
|
295
|
+
"gap": 4,
|
|
296
|
+
"@media (min-width: $breakpoint.md)": {
|
|
297
|
+
"gap": 8
|
|
298
|
+
},
|
|
299
|
+
"@media (min-width: $breakpoint.huge)": {
|
|
300
|
+
"gap": 99
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"contexts": [
|
|
304
|
+
{
|
|
305
|
+
"label": "700 with the default md (768)",
|
|
306
|
+
"width": 700
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"label": "700 with a theme whose md is 600",
|
|
310
|
+
"width": 700,
|
|
311
|
+
"breakpoints": {
|
|
312
|
+
"sm": 480,
|
|
313
|
+
"md": 600,
|
|
314
|
+
"lg": 900,
|
|
315
|
+
"xl": 1200
|
|
316
|
+
}
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"label": "5000",
|
|
320
|
+
"width": 5000
|
|
321
|
+
}
|
|
322
|
+
],
|
|
323
|
+
"expected": [
|
|
324
|
+
{
|
|
325
|
+
"gap": 4
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"gap": 8
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
"gap": 8
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
]
|
|
336
|
+
}
|