@adia-ai/web-components 0.8.41 → 0.8.42
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/CHANGELOG.md +21 -0
- package/MIGRATION.md +187 -0
- package/USAGE.md +4 -4
- package/components/action-list/action-item.a2ui.json +8 -3
- package/components/action-list/action-item.yaml +25 -7
- package/components/action-list/action-list.class.js +68 -6
- package/components/action-list/action-list.d.ts +3 -1
- package/components/chart/chart.a2ui.json +18 -3
- package/components/chart/chart.class.js +58 -16
- package/components/chart/chart.d.ts +9 -3
- package/components/chart/chart.yaml +35 -3
- package/components/chart-legend/chart-legend.a2ui.json +6 -1
- package/components/chart-legend/chart-legend.class.js +59 -6
- package/components/chart-legend/chart-legend.css +5 -2
- package/components/chart-legend/chart-legend.d.ts +3 -1
- package/components/chart-legend/chart-legend.yaml +15 -1
- package/components/color-area/color-area.a2ui.json +148 -0
- package/components/color-area/color-area.class.js +657 -0
- package/components/color-area/color-area.css +188 -0
- package/components/color-area/color-area.d.ts +66 -0
- package/components/color-area/color-area.examples.md +19 -0
- package/components/color-area/color-area.js +17 -0
- package/components/color-area/color-area.yaml +183 -0
- package/components/color-input/color-input.a2ui.json +5 -5
- package/components/color-input/color-input.class.js +9 -6
- package/components/color-input/color-input.css +1 -1
- package/components/color-input/color-input.js +2 -2
- package/components/color-input/color-input.yaml +14 -12
- package/components/color-picker/color-picker.a2ui.json +15 -12
- package/components/color-picker/color-picker.class.js +24 -633
- package/components/color-picker/color-picker.css +14 -182
- package/components/color-picker/color-picker.yaml +41 -41
- package/components/description-list/description-list.a2ui.json +1 -1
- package/components/description-list/description-list.css +1 -1
- package/components/description-list/description-list.d.ts +1 -1
- package/components/description-list/description-list.yaml +1 -1
- package/components/field/field.a2ui.json +1 -1
- package/components/field/field.class.js +4 -1
- package/components/field/field.yaml +1 -1
- package/components/index.js +1 -0
- package/components/integration-card/integration-card.examples.md +2 -1
- package/components/menu/menu-item.a2ui.json +8 -3
- package/components/menu/menu-item.yaml +24 -3
- package/components/menu/menu.class.js +34 -6
- package/components/menu/menu.d.ts +3 -1
- package/components/pane/pane.a2ui.json +11 -1
- package/components/pane/pane.class.js +32 -3
- package/components/pane/pane.css +15 -10
- package/components/pane/pane.d.ts +10 -7
- package/components/pane/pane.yaml +15 -1
- package/components/swatch/swatch.yaml +1 -1
- package/components/table-toolbar/table-toolbar.class.js +15 -3
- package/core/icons.js +5 -0
- package/custom-elements.json +191 -16
- package/dist/theme-provider.min.js +1 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +89 -89
- package/dist/web-components.sheet.js +1 -1
- package/index.d.ts +12 -1
- package/package.json +1 -1
- package/patterns/admin-shell/admin-shell.examples.html +2 -2
- package/patterns/form-system/form-system.examples.html +1 -1
- package/styles/components.css +1 -0
|
@@ -7,20 +7,22 @@ category: input
|
|
|
7
7
|
version: 1
|
|
8
8
|
description: |-
|
|
9
9
|
Compact form-bearing color input — opens a popover-anchored
|
|
10
|
-
`<color-
|
|
10
|
+
`<color-area-ui>` from an inline swatch button. §302 (v0.5.12,
|
|
11
11
|
FEEDBACK-29 re-bucket from v0.6.0). Canonicalizes the USAGE.md §221f
|
|
12
|
-
Option B recipe (popover + button + color-
|
|
12
|
+
Option B recipe (popover + button + color-area) into a single
|
|
13
13
|
form-associated tag for inline form contexts (settings drawer "source
|
|
14
|
-
color" field, swatch-row inline-edit, etc.).
|
|
14
|
+
color" field, swatch-row inline-edit, etc.). Composes `<color-area-ui>`
|
|
15
|
+
(ADR-0063, gh#1563 — renamed from `<color-picker-ui>`, which is now a
|
|
16
|
+
deprecated alias); `color-input-ui`'s own tag/name is unaffected.
|
|
15
17
|
# Per ADR-0027 — primitives that programmatically create other primitives
|
|
16
18
|
# do NOT auto-import them. The consumer (or demo shell) explicitly imports
|
|
17
19
|
# the composed primitives. This element creates `<button-ui>` +
|
|
18
|
-
# `<popover-ui>` + `<color-
|
|
20
|
+
# `<popover-ui>` + `<color-area-ui>` light-DOM children but assumes the
|
|
19
21
|
# consumer has already imported their auto-register modules.
|
|
20
22
|
composes:
|
|
21
23
|
- button-ui
|
|
22
24
|
- popover-ui
|
|
23
|
-
- color-
|
|
25
|
+
- color-area-ui
|
|
24
26
|
props:
|
|
25
27
|
name:
|
|
26
28
|
description: Form field name.
|
|
@@ -44,7 +46,7 @@ props:
|
|
|
44
46
|
default: false
|
|
45
47
|
reflect: true
|
|
46
48
|
placement:
|
|
47
|
-
description: Popover placement relative to the trigger. Default `bottom` centers the color-
|
|
49
|
+
description: Popover placement relative to the trigger. Default `bottom` centers the color-area panel under the swatch button (ADR-0034 Rule 2 — panel wider than trigger).
|
|
48
50
|
type: string
|
|
49
51
|
default: bottom
|
|
50
52
|
reflect: true
|
|
@@ -64,7 +66,7 @@ props:
|
|
|
64
66
|
reflect: true
|
|
65
67
|
maxChroma:
|
|
66
68
|
description: |
|
|
67
|
-
Generation constraint forwarded to the inner `<color-
|
|
69
|
+
Generation constraint forwarded to the inner `<color-area-ui>` (v0.5.13
|
|
68
70
|
§-TBD, FB-33 §1). Clamp the OKLCH chroma channel to at most this value.
|
|
69
71
|
Default Infinity (no constraint).
|
|
70
72
|
type: number
|
|
@@ -146,7 +148,7 @@ a2ui:
|
|
|
146
148
|
rules:
|
|
147
149
|
- >-
|
|
148
150
|
Use <color-input-ui> for any form-row color field — it
|
|
149
|
-
canonicalizes the popover + button + color-
|
|
151
|
+
canonicalizes the popover + button + color-area recipe and is
|
|
150
152
|
the only form-bearing color primitive. Do not hand-roll the
|
|
151
153
|
composition; reach for color-input-ui directly.
|
|
152
154
|
- >-
|
|
@@ -158,17 +160,17 @@ a2ui:
|
|
|
158
160
|
- >-
|
|
159
161
|
For brand-palette constraints, set [maxChroma] / [minL] / [maxL]
|
|
160
162
|
/ [hueDriftMax] (with [baseHue]) on the host — they forward to
|
|
161
|
-
the inner <color-
|
|
163
|
+
the inner <color-area-ui> and clamp generation. Useful for
|
|
162
164
|
Tokens-Studio-style guarded color generation.
|
|
163
165
|
- >-
|
|
164
|
-
Use <color-
|
|
166
|
+
Use <color-area-ui> DIRECTLY (no color-input-ui wrapper) only
|
|
165
167
|
for full-surface editors where the picker IS the page (e.g.
|
|
166
168
|
Tokens Studio main canvas). For inline form-row use, always
|
|
167
169
|
reach for <color-input-ui>.
|
|
168
170
|
- >-
|
|
169
171
|
Per ADR-0027 (cross-primitive composition imports), consumer
|
|
170
172
|
pages MUST explicitly import <button-ui>, <popover-ui>, and
|
|
171
|
-
<color-
|
|
173
|
+
<color-area-ui> before <color-input-ui>. The primitive composes
|
|
172
174
|
them but does NOT auto-register them.
|
|
173
175
|
anti_patterns: []
|
|
174
176
|
examples:
|
|
@@ -209,7 +211,7 @@ synonyms:
|
|
|
209
211
|
inline-color-picker:
|
|
210
212
|
- color-input
|
|
211
213
|
related:
|
|
212
|
-
- color-
|
|
214
|
+
- color-area
|
|
213
215
|
- popover
|
|
214
216
|
- button
|
|
215
217
|
- swatch
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
3
|
"$id": "https://adiaui.dev/a2ui/v0_9/components/ColorPicker.json",
|
|
4
4
|
"title": "ColorPicker",
|
|
5
|
-
"description": "
|
|
5
|
+
"description": "DEPRECATED (ADR-0063, gh#1563, gh#1377 B11) — `-picker` is reserved for the outer, trigger + popover, form-associated composite shape (`calendar-picker-ui` / `date-range-picker-ui` / `datetime-picker-ui` / `time-picker-ui`); `color-picker-ui` was the sole violator, playing `calendar-grid-ui`'s inline-substrate role under a `-picker` name. `<color-picker-ui>` is now a thin `UIColorArea` subclass (see color-picker.class.js) rather than an independent implementation — every prop/event/token is inherited unchanged from `<color-area-ui>`. Existing markup keeps working, but new markup should reach for `<color-area-ui>` directly. See `<color-area-ui>` for the full contract.",
|
|
6
6
|
"type": "object",
|
|
7
7
|
"allOf": [
|
|
8
8
|
{
|
|
@@ -71,7 +71,13 @@
|
|
|
71
71
|
],
|
|
72
72
|
"unevaluatedProperties": false,
|
|
73
73
|
"x-adiaui": {
|
|
74
|
-
"anti_patterns": [
|
|
74
|
+
"anti_patterns": [
|
|
75
|
+
{
|
|
76
|
+
"fix": "{\"component\": \"ColorArea\", \"name\": \"brand\"}\n",
|
|
77
|
+
"why": "ColorPicker is deprecated (ADR-0063, gh#1563) — new generation should\nreach for ColorArea instead.\n",
|
|
78
|
+
"wrong": "{\"component\": \"ColorPicker\", \"name\": \"brand\"}\n"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
75
81
|
"category": "input",
|
|
76
82
|
"composes": [
|
|
77
83
|
"slider-ui"
|
|
@@ -95,14 +101,9 @@
|
|
|
95
101
|
},
|
|
96
102
|
"examples": [
|
|
97
103
|
{
|
|
98
|
-
"description": "
|
|
99
|
-
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"sec\"\n ]\n },\n {\n \"id\": \"sec\",\n \"component\": \"Section\",\n \"children\": [\n \"cp\"\n ]\n },\n {\n \"id\": \"cp\",\n \"component\": \"ColorPicker\",\n \"value\": \"#6366f1\"\n }\n]",
|
|
100
|
-
"name": "color-picker-demo"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"description": "Color picker with swatch selection in a card.",
|
|
104
|
+
"description": "Deprecated tag — prefer ColorArea's own \"color-area-demo\" example for NEW markup.",
|
|
104
105
|
"a2ui": "[\n {\n \"id\": \"root\",\n \"component\": \"Card\",\n \"children\": [\n \"sec\"\n ]\n },\n {\n \"id\": \"sec\",\n \"component\": \"Section\",\n \"children\": [\n \"cp\"\n ]\n },\n {\n \"id\": \"cp\",\n \"component\": \"ColorPicker\",\n \"value\": \"#3b82f6\"\n }\n]",
|
|
105
|
-
"name": "color-picker-
|
|
106
|
+
"name": "color-picker-legacy"
|
|
106
107
|
}
|
|
107
108
|
],
|
|
108
109
|
"keywords": [
|
|
@@ -114,6 +115,7 @@
|
|
|
114
115
|
"name": "UIColorPicker",
|
|
115
116
|
"parts": {},
|
|
116
117
|
"related": [
|
|
118
|
+
"color-area",
|
|
117
119
|
"grid",
|
|
118
120
|
"button"
|
|
119
121
|
],
|
|
@@ -129,17 +131,18 @@
|
|
|
129
131
|
"name": "disabled"
|
|
130
132
|
}
|
|
131
133
|
],
|
|
132
|
-
"status": "
|
|
134
|
+
"status": "deprecated",
|
|
133
135
|
"synonyms": {
|
|
134
136
|
"color-picker": [
|
|
135
137
|
"color-canvas",
|
|
136
138
|
"color-surface",
|
|
137
|
-
"swatch-picker"
|
|
139
|
+
"swatch-picker",
|
|
140
|
+
"color-area"
|
|
138
141
|
]
|
|
139
142
|
},
|
|
140
143
|
"tag": "color-picker-ui",
|
|
141
144
|
"tokens": {},
|
|
142
145
|
"traits": [],
|
|
143
|
-
"version":
|
|
146
|
+
"version": 2
|
|
144
147
|
}
|
|
145
148
|
}
|