@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,309 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "AUTO-GENERATED by packages/exponential-ui/scripts/generate-round2.ts — do not edit (inputs live there). Round 2 (docs/round-2-contract.md §2). Reduce + expand `tree`, then every node's DIRECTION (its own style `direction`, else its parent's; the root's parent = the surface) and its PHYSICAL text alignment (style `textAlign`, else a Text's `align`, else `start`; start/end resolved against the node's direction): src/direction.ts. A painter hands this to text layout (the Rust core's Visual carries the resolved align; the bidi paragraph direction = the node's direction).",
|
|
3
|
+
"cases": [
|
|
4
|
+
{
|
|
5
|
+
"name": "surface-ltr",
|
|
6
|
+
"surface": "ltr",
|
|
7
|
+
"tree": {
|
|
8
|
+
"id": "root",
|
|
9
|
+
"component": "Box",
|
|
10
|
+
"children": [
|
|
11
|
+
{
|
|
12
|
+
"id": "plain",
|
|
13
|
+
"component": "Text",
|
|
14
|
+
"props": {
|
|
15
|
+
"text": "Hello!"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"id": "end",
|
|
20
|
+
"component": "Text",
|
|
21
|
+
"props": {
|
|
22
|
+
"text": "Total",
|
|
23
|
+
"align": "end"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "center",
|
|
28
|
+
"component": "Text",
|
|
29
|
+
"props": {
|
|
30
|
+
"text": "Mid",
|
|
31
|
+
"align": "center"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"id": "style-wins",
|
|
36
|
+
"component": "Text",
|
|
37
|
+
"props": {
|
|
38
|
+
"text": "x",
|
|
39
|
+
"align": "start"
|
|
40
|
+
},
|
|
41
|
+
"style": {
|
|
42
|
+
"textAlign": "end"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"id": "physical",
|
|
47
|
+
"component": "Text",
|
|
48
|
+
"props": {
|
|
49
|
+
"text": "x"
|
|
50
|
+
},
|
|
51
|
+
"style": {
|
|
52
|
+
"textAlign": "left"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"id": "rtl-box",
|
|
57
|
+
"component": "Box",
|
|
58
|
+
"style": {
|
|
59
|
+
"direction": "rtl"
|
|
60
|
+
},
|
|
61
|
+
"children": [
|
|
62
|
+
{
|
|
63
|
+
"id": "rtl-plain",
|
|
64
|
+
"component": "Text",
|
|
65
|
+
"props": {
|
|
66
|
+
"text": "مرحبا"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"id": "rtl-end",
|
|
71
|
+
"component": "Text",
|
|
72
|
+
"props": {
|
|
73
|
+
"text": "x",
|
|
74
|
+
"align": "end"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "ltr-island",
|
|
79
|
+
"component": "Box",
|
|
80
|
+
"style": {
|
|
81
|
+
"direction": "ltr"
|
|
82
|
+
},
|
|
83
|
+
"children": [
|
|
84
|
+
{
|
|
85
|
+
"id": "island-text",
|
|
86
|
+
"component": "Text",
|
|
87
|
+
"props": {
|
|
88
|
+
"text": "code()"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"id": "rtl-heading",
|
|
95
|
+
"component": "Heading",
|
|
96
|
+
"props": {
|
|
97
|
+
"text": "عنوان",
|
|
98
|
+
"level": "h2"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
},
|
|
105
|
+
"expected": {
|
|
106
|
+
"root": {
|
|
107
|
+
"direction": "ltr",
|
|
108
|
+
"textAlign": "left"
|
|
109
|
+
},
|
|
110
|
+
"plain": {
|
|
111
|
+
"direction": "ltr",
|
|
112
|
+
"textAlign": "left"
|
|
113
|
+
},
|
|
114
|
+
"end": {
|
|
115
|
+
"direction": "ltr",
|
|
116
|
+
"textAlign": "right"
|
|
117
|
+
},
|
|
118
|
+
"center": {
|
|
119
|
+
"direction": "ltr",
|
|
120
|
+
"textAlign": "center"
|
|
121
|
+
},
|
|
122
|
+
"style-wins": {
|
|
123
|
+
"direction": "ltr",
|
|
124
|
+
"textAlign": "right"
|
|
125
|
+
},
|
|
126
|
+
"physical": {
|
|
127
|
+
"direction": "ltr",
|
|
128
|
+
"textAlign": "left"
|
|
129
|
+
},
|
|
130
|
+
"rtl-box": {
|
|
131
|
+
"direction": "rtl",
|
|
132
|
+
"textAlign": "right"
|
|
133
|
+
},
|
|
134
|
+
"rtl-plain": {
|
|
135
|
+
"direction": "rtl",
|
|
136
|
+
"textAlign": "right"
|
|
137
|
+
},
|
|
138
|
+
"rtl-end": {
|
|
139
|
+
"direction": "rtl",
|
|
140
|
+
"textAlign": "left"
|
|
141
|
+
},
|
|
142
|
+
"ltr-island": {
|
|
143
|
+
"direction": "ltr",
|
|
144
|
+
"textAlign": "left"
|
|
145
|
+
},
|
|
146
|
+
"island-text": {
|
|
147
|
+
"direction": "ltr",
|
|
148
|
+
"textAlign": "left"
|
|
149
|
+
},
|
|
150
|
+
"rtl-heading": {
|
|
151
|
+
"direction": "rtl",
|
|
152
|
+
"textAlign": "right"
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "surface-rtl",
|
|
158
|
+
"surface": "rtl",
|
|
159
|
+
"tree": {
|
|
160
|
+
"id": "root",
|
|
161
|
+
"component": "Box",
|
|
162
|
+
"children": [
|
|
163
|
+
{
|
|
164
|
+
"id": "plain",
|
|
165
|
+
"component": "Text",
|
|
166
|
+
"props": {
|
|
167
|
+
"text": "Hello!"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "end",
|
|
172
|
+
"component": "Text",
|
|
173
|
+
"props": {
|
|
174
|
+
"text": "Total",
|
|
175
|
+
"align": "end"
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "center",
|
|
180
|
+
"component": "Text",
|
|
181
|
+
"props": {
|
|
182
|
+
"text": "Mid",
|
|
183
|
+
"align": "center"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"id": "style-wins",
|
|
188
|
+
"component": "Text",
|
|
189
|
+
"props": {
|
|
190
|
+
"text": "x",
|
|
191
|
+
"align": "start"
|
|
192
|
+
},
|
|
193
|
+
"style": {
|
|
194
|
+
"textAlign": "end"
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"id": "physical",
|
|
199
|
+
"component": "Text",
|
|
200
|
+
"props": {
|
|
201
|
+
"text": "x"
|
|
202
|
+
},
|
|
203
|
+
"style": {
|
|
204
|
+
"textAlign": "left"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"id": "rtl-box",
|
|
209
|
+
"component": "Box",
|
|
210
|
+
"style": {
|
|
211
|
+
"direction": "rtl"
|
|
212
|
+
},
|
|
213
|
+
"children": [
|
|
214
|
+
{
|
|
215
|
+
"id": "rtl-plain",
|
|
216
|
+
"component": "Text",
|
|
217
|
+
"props": {
|
|
218
|
+
"text": "مرحبا"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "rtl-end",
|
|
223
|
+
"component": "Text",
|
|
224
|
+
"props": {
|
|
225
|
+
"text": "x",
|
|
226
|
+
"align": "end"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"id": "ltr-island",
|
|
231
|
+
"component": "Box",
|
|
232
|
+
"style": {
|
|
233
|
+
"direction": "ltr"
|
|
234
|
+
},
|
|
235
|
+
"children": [
|
|
236
|
+
{
|
|
237
|
+
"id": "island-text",
|
|
238
|
+
"component": "Text",
|
|
239
|
+
"props": {
|
|
240
|
+
"text": "code()"
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
]
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"id": "rtl-heading",
|
|
247
|
+
"component": "Heading",
|
|
248
|
+
"props": {
|
|
249
|
+
"text": "عنوان",
|
|
250
|
+
"level": "h2"
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
]
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
"expected": {
|
|
258
|
+
"root": {
|
|
259
|
+
"direction": "rtl",
|
|
260
|
+
"textAlign": "right"
|
|
261
|
+
},
|
|
262
|
+
"plain": {
|
|
263
|
+
"direction": "rtl",
|
|
264
|
+
"textAlign": "right"
|
|
265
|
+
},
|
|
266
|
+
"end": {
|
|
267
|
+
"direction": "rtl",
|
|
268
|
+
"textAlign": "left"
|
|
269
|
+
},
|
|
270
|
+
"center": {
|
|
271
|
+
"direction": "rtl",
|
|
272
|
+
"textAlign": "center"
|
|
273
|
+
},
|
|
274
|
+
"style-wins": {
|
|
275
|
+
"direction": "rtl",
|
|
276
|
+
"textAlign": "left"
|
|
277
|
+
},
|
|
278
|
+
"physical": {
|
|
279
|
+
"direction": "rtl",
|
|
280
|
+
"textAlign": "left"
|
|
281
|
+
},
|
|
282
|
+
"rtl-box": {
|
|
283
|
+
"direction": "rtl",
|
|
284
|
+
"textAlign": "right"
|
|
285
|
+
},
|
|
286
|
+
"rtl-plain": {
|
|
287
|
+
"direction": "rtl",
|
|
288
|
+
"textAlign": "right"
|
|
289
|
+
},
|
|
290
|
+
"rtl-end": {
|
|
291
|
+
"direction": "rtl",
|
|
292
|
+
"textAlign": "left"
|
|
293
|
+
},
|
|
294
|
+
"ltr-island": {
|
|
295
|
+
"direction": "ltr",
|
|
296
|
+
"textAlign": "left"
|
|
297
|
+
},
|
|
298
|
+
"island-text": {
|
|
299
|
+
"direction": "ltr",
|
|
300
|
+
"textAlign": "left"
|
|
301
|
+
},
|
|
302
|
+
"rtl-heading": {
|
|
303
|
+
"direction": "rtl",
|
|
304
|
+
"textAlign": "right"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "EXP-1324: the Text `shimmer` colours (catalog/style.json `textShimmer`). Inputs hand-written (colour, dark); `expected` = src/text-shimmer.ts textShimmer. The Rust core (`text_shimmer`) and every painter replay it.",
|
|
3
|
+
"cases": [
|
|
4
|
+
{
|
|
5
|
+
"name": "neutral dark muted-foreground",
|
|
6
|
+
"color": "#a1a1a1",
|
|
7
|
+
"dark": true,
|
|
8
|
+
"expected": {
|
|
9
|
+
"base": "#a1a1a1",
|
|
10
|
+
"highlight": "#ffffff",
|
|
11
|
+
"mid": "#cfcfcf",
|
|
12
|
+
"durationMs": 2000,
|
|
13
|
+
"angleDeg": 20,
|
|
14
|
+
"spreadPx": 60
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
"name": "neutral light muted-foreground",
|
|
19
|
+
"color": "#737373",
|
|
20
|
+
"dark": false,
|
|
21
|
+
"expected": {
|
|
22
|
+
"base": "#737373",
|
|
23
|
+
"highlight": "#73737333",
|
|
24
|
+
"mid": "#73737399",
|
|
25
|
+
"durationMs": 2000,
|
|
26
|
+
"angleDeg": 20,
|
|
27
|
+
"spreadPx": 60
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "dark foreground (lightness clamps to 1)",
|
|
32
|
+
"color": "#fafafa",
|
|
33
|
+
"dark": true,
|
|
34
|
+
"expected": {
|
|
35
|
+
"base": "#fafafa",
|
|
36
|
+
"highlight": "#ffffff",
|
|
37
|
+
"mid": "#fcfcfc",
|
|
38
|
+
"durationMs": 2000,
|
|
39
|
+
"angleDeg": 20,
|
|
40
|
+
"spreadPx": 60
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "a dark translucent colour gains alpha",
|
|
45
|
+
"color": "#ffffff80",
|
|
46
|
+
"dark": true,
|
|
47
|
+
"expected": {
|
|
48
|
+
"base": "#ffffff80",
|
|
49
|
+
"highlight": "#ffffffe6",
|
|
50
|
+
"mid": "#ffffffb3",
|
|
51
|
+
"durationMs": 2000,
|
|
52
|
+
"angleDeg": 20,
|
|
53
|
+
"spreadPx": 60
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "a dim colour lifts to the lightness floor",
|
|
58
|
+
"color": "#262626",
|
|
59
|
+
"dark": true,
|
|
60
|
+
"expected": {
|
|
61
|
+
"base": "#262626",
|
|
62
|
+
"highlight": "#bebebe",
|
|
63
|
+
"mid": "#6d6d6d",
|
|
64
|
+
"durationMs": 2000,
|
|
65
|
+
"angleDeg": 20,
|
|
66
|
+
"spreadPx": 60
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "a chromatic colour keeps its hue",
|
|
71
|
+
"color": "#ff6467",
|
|
72
|
+
"dark": true,
|
|
73
|
+
"expected": {
|
|
74
|
+
"base": "#ff6467",
|
|
75
|
+
"highlight": "#ffc7c4",
|
|
76
|
+
"mid": "#ff9594",
|
|
77
|
+
"durationMs": 2000,
|
|
78
|
+
"angleDeg": 20,
|
|
79
|
+
"spreadPx": 60
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "light destructive",
|
|
84
|
+
"color": "#e7000b",
|
|
85
|
+
"dark": false,
|
|
86
|
+
"expected": {
|
|
87
|
+
"base": "#e7000b",
|
|
88
|
+
"highlight": "#e7000b33",
|
|
89
|
+
"mid": "#e7000b99",
|
|
90
|
+
"durationMs": 2000,
|
|
91
|
+
"angleDeg": 20,
|
|
92
|
+
"spreadPx": 60
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
}
|