@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.
Files changed (63) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/MIGRATION.md +187 -0
  3. package/USAGE.md +4 -4
  4. package/components/action-list/action-item.a2ui.json +8 -3
  5. package/components/action-list/action-item.yaml +25 -7
  6. package/components/action-list/action-list.class.js +68 -6
  7. package/components/action-list/action-list.d.ts +3 -1
  8. package/components/chart/chart.a2ui.json +18 -3
  9. package/components/chart/chart.class.js +58 -16
  10. package/components/chart/chart.d.ts +9 -3
  11. package/components/chart/chart.yaml +35 -3
  12. package/components/chart-legend/chart-legend.a2ui.json +6 -1
  13. package/components/chart-legend/chart-legend.class.js +59 -6
  14. package/components/chart-legend/chart-legend.css +5 -2
  15. package/components/chart-legend/chart-legend.d.ts +3 -1
  16. package/components/chart-legend/chart-legend.yaml +15 -1
  17. package/components/color-area/color-area.a2ui.json +148 -0
  18. package/components/color-area/color-area.class.js +657 -0
  19. package/components/color-area/color-area.css +188 -0
  20. package/components/color-area/color-area.d.ts +66 -0
  21. package/components/color-area/color-area.examples.md +19 -0
  22. package/components/color-area/color-area.js +17 -0
  23. package/components/color-area/color-area.yaml +183 -0
  24. package/components/color-input/color-input.a2ui.json +5 -5
  25. package/components/color-input/color-input.class.js +9 -6
  26. package/components/color-input/color-input.css +1 -1
  27. package/components/color-input/color-input.js +2 -2
  28. package/components/color-input/color-input.yaml +14 -12
  29. package/components/color-picker/color-picker.a2ui.json +15 -12
  30. package/components/color-picker/color-picker.class.js +24 -633
  31. package/components/color-picker/color-picker.css +14 -182
  32. package/components/color-picker/color-picker.yaml +41 -41
  33. package/components/description-list/description-list.a2ui.json +1 -1
  34. package/components/description-list/description-list.css +1 -1
  35. package/components/description-list/description-list.d.ts +1 -1
  36. package/components/description-list/description-list.yaml +1 -1
  37. package/components/field/field.a2ui.json +1 -1
  38. package/components/field/field.class.js +4 -1
  39. package/components/field/field.yaml +1 -1
  40. package/components/index.js +1 -0
  41. package/components/integration-card/integration-card.examples.md +2 -1
  42. package/components/menu/menu-item.a2ui.json +8 -3
  43. package/components/menu/menu-item.yaml +24 -3
  44. package/components/menu/menu.class.js +34 -6
  45. package/components/menu/menu.d.ts +3 -1
  46. package/components/pane/pane.a2ui.json +11 -1
  47. package/components/pane/pane.class.js +32 -3
  48. package/components/pane/pane.css +15 -10
  49. package/components/pane/pane.d.ts +10 -7
  50. package/components/pane/pane.yaml +15 -1
  51. package/components/swatch/swatch.yaml +1 -1
  52. package/components/table-toolbar/table-toolbar.class.js +15 -3
  53. package/core/icons.js +5 -0
  54. package/custom-elements.json +191 -16
  55. package/dist/theme-provider.min.js +1 -1
  56. package/dist/web-components.min.css +1 -1
  57. package/dist/web-components.min.js +89 -89
  58. package/dist/web-components.sheet.js +1 -1
  59. package/index.d.ts +12 -1
  60. package/package.json +1 -1
  61. package/patterns/admin-shell/admin-shell.examples.html +2 -2
  62. package/patterns/form-system/form-system.examples.html +1 -1
  63. 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-picker-ui>` from an inline swatch button. §302 (v0.5.12,
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-picker) into a single
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-picker-ui>` light-DOM children but assumes the
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-picker-ui
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-picker panel under the swatch button (ADR-0034 Rule 2 — panel wider than trigger).
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-picker-ui>` (v0.5.13
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-picker recipe and is
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-picker-ui> and clamp generation. Useful for
163
+ the inner <color-area-ui> and clamp generation. Useful for
162
164
  Tokens-Studio-style guarded color generation.
163
165
  - >-
164
- Use <color-picker-ui> DIRECTLY (no color-input-ui wrapper) only
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-picker-ui> before <color-input-ui>. The primitive composes
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-picker
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": "OKLCH-native color picker with 2D area and H/C/L sliders. Form-associated input emitting OKLCH color strings; canonical color authoring surface in the AdiaUI token system. Use for color input in design tools or theming UIs; for simple color swatches use <swatch-ui> or <color-input-ui> instead.",
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": "Color picker card with a color picker component for selecting colors with swatches.",
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-panel"
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": "stable",
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": 1
146
+ "version": 2
144
147
  }
145
148
  }