@agent-ui-kit/web-components 0.0.14 → 0.0.15
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/dist/agent-ui.css +1 -1
- package/dist/api.colors.json +2 -2
- package/dist/api.colors.yaml +2 -2
- package/dist/api.components.json +4570 -1641
- package/dist/api.tokens.json +34 -2
- package/dist/api.tokens.yaml +26 -2
- package/dist/chunks/{agent-C72JZNe6.js → agent-BF_R_HJk.js} +65 -61
- package/dist/chunks/{agent-C72JZNe6.js.map → agent-BF_R_HJk.js.map} +1 -1
- package/dist/chunks/{empty-state-5M3uR5CM.js → meter-Dju8ik6C.js} +1169 -934
- package/dist/chunks/meter-Dju8ik6C.js.map +1 -0
- package/dist/components/agent.js +6 -6
- package/dist/components/avatar/avatar.d.ts +0 -0
- package/dist/components/badge/badge.d.ts +0 -0
- package/dist/components/bar/bar.d.ts +0 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +2 -0
- package/dist/components/button-group/button-group.d.ts +0 -0
- package/dist/components/code/code.d.ts +0 -0
- package/dist/components/color-area/color-area.d.ts +2 -1
- package/dist/components/color-picker/color-picker.d.ts +1 -0
- package/dist/components/color-picker/oklch-utils.d.ts +18 -0
- package/dist/components/color-slider/color-slider.d.ts +1 -1
- package/dist/components/color-swatch/color-swatch.d.ts +0 -0
- package/dist/components/content/content.d.ts +0 -0
- package/dist/components/description-list/description-list.d.ts +0 -0
- package/dist/components/divider/divider.d.ts +0 -0
- package/dist/components/editor.js +1 -1
- package/dist/components/fieldset/fieldset.d.ts +0 -0
- package/dist/components/footer/footer.d.ts +0 -0
- package/dist/components/graph.js +1 -1
- package/dist/components/grid/grid.d.ts +0 -0
- package/dist/components/header/header.d.ts +0 -0
- package/dist/components/heading/heading.d.ts +0 -0
- package/dist/components/input-group/input-group.d.ts +0 -0
- package/dist/components/inset/inset.d.ts +0 -0
- package/dist/components/kbd/kbd.d.ts +0 -0
- package/dist/components/stack/stack.d.ts +0 -0
- package/dist/components/stat/stat.d.ts +4 -0
- package/dist/components/text/text.d.ts +0 -0
- package/dist/components/time-field/time-field.d.ts +1 -0
- package/dist/components/wrap/wrap.d.ts +0 -0
- package/dist/components.js +114 -127
- package/dist/components.js.map +1 -1
- package/dist/docs/blocks/login-two-column.yaml +6 -6
- package/dist/docs/blocks/profile-card.yaml +5 -5
- package/dist/docs/components/accordion-item.yaml +13 -21
- package/dist/docs/components/accordion.yaml +23 -29
- package/dist/docs/components/agent-activity.yaml +27 -39
- package/dist/docs/components/agent-feed.yaml +15 -22
- package/dist/docs/components/agent-input.yaml +238 -0
- package/dist/docs/components/agent-message.yaml +29 -48
- package/dist/docs/components/agent-panel.yaml +21 -24
- package/dist/docs/components/agent-prompt.yaml +28 -46
- package/dist/docs/components/agent-seeds.yaml +15 -23
- package/dist/docs/components/agent-text.yaml +14 -24
- package/dist/docs/components/agent-thread.yaml +15 -24
- package/dist/docs/components/alert.yaml +41 -39
- package/dist/docs/components/avatar-group.yaml +72 -45
- package/dist/docs/components/avatar.yaml +99 -0
- package/dist/docs/components/badge.yaml +110 -0
- package/dist/docs/components/bar.yaml +84 -0
- package/dist/docs/components/breadcrumb-item.yaml +8 -17
- package/dist/docs/components/breadcrumb.yaml +60 -25
- package/dist/docs/components/button-group.yaml +93 -0
- package/dist/docs/components/button.yaml +177 -261
- package/dist/docs/components/calendar-picker.yaml +14 -34
- package/dist/docs/components/calendar-range-picker.yaml +11 -29
- package/dist/docs/components/calendar.yaml +11 -29
- package/dist/docs/components/canvas.yaml +44 -61
- package/dist/docs/components/checkbox.yaml +37 -49
- package/dist/docs/components/chip.yaml +88 -54
- package/dist/docs/components/code-block.yaml +54 -53
- package/dist/docs/components/code.yaml +37 -0
- package/dist/docs/components/color-area.yaml +119 -0
- package/dist/docs/components/color-field.yaml +121 -0
- package/dist/docs/components/color-picker.yaml +64 -38
- package/dist/docs/components/color-slider.yaml +153 -0
- package/dist/docs/components/color-swatch.yaml +98 -0
- package/dist/docs/components/command.yaml +13 -18
- package/dist/docs/components/container.yaml +83 -73
- package/dist/docs/components/content.yaml +100 -0
- package/dist/docs/components/context-menu.yaml +11 -20
- package/dist/docs/components/date-field.yaml +81 -33
- package/dist/docs/components/description-list.yaml +81 -0
- package/dist/docs/components/disclosure-group.yaml +61 -42
- package/dist/docs/components/disclosure.yaml +60 -46
- package/dist/docs/components/divider.yaml +63 -0
- package/dist/docs/components/dropdown-menu.yaml +16 -25
- package/dist/docs/components/feed.yaml +15 -24
- package/dist/docs/components/field.yaml +50 -71
- package/dist/docs/components/fieldset.yaml +92 -0
- package/dist/docs/components/footer.yaml +147 -0
- package/dist/docs/components/grid.yaml +87 -0
- package/dist/docs/components/gripper.yaml +11 -23
- package/dist/docs/components/header.yaml +168 -0
- package/dist/docs/components/heading.yaml +54 -0
- package/dist/docs/components/hover-card.yaml +17 -25
- package/dist/docs/components/icon.yaml +32 -65
- package/dist/docs/components/input-group.yaml +102 -0
- package/dist/docs/components/input-otp.yaml +20 -19
- package/dist/docs/components/input.yaml +92 -132
- package/dist/docs/components/inset.yaml +59 -0
- package/dist/docs/components/kbd.yaml +57 -0
- package/dist/docs/components/link.yaml +36 -45
- package/dist/docs/components/meter.yaml +27 -38
- package/dist/docs/components/nav-item.yaml +51 -40
- package/dist/docs/components/noodles.yaml +72 -104
- package/dist/docs/components/option.yaml +12 -23
- package/dist/docs/components/pagination.yaml +21 -18
- package/dist/docs/components/pane.yaml +18 -32
- package/dist/docs/components/panes.yaml +19 -27
- package/dist/docs/components/progress-circle.yaml +64 -55
- package/dist/docs/components/progress.yaml +35 -51
- package/dist/docs/components/radio-group.yaml +99 -40
- package/dist/docs/components/radio.yaml +40 -41
- package/dist/docs/components/range.yaml +24 -27
- package/dist/docs/components/segmented-control.yaml +58 -17
- package/dist/docs/components/select.yaml +80 -100
- package/dist/docs/components/skeleton.yaml +39 -39
- package/dist/docs/components/sparkline.yaml +28 -45
- package/dist/docs/components/spinner.yaml +32 -33
- package/dist/docs/components/stack.yaml +126 -0
- package/dist/docs/components/stepper.yaml +31 -38
- package/dist/docs/components/switch.yaml +36 -47
- package/dist/docs/components/tab-panel.yaml +27 -18
- package/dist/docs/components/tab.yaml +25 -22
- package/dist/docs/components/table-header.yaml +22 -12
- package/dist/docs/components/tabs.yaml +103 -20
- package/dist/docs/components/tag-group.yaml +63 -47
- package/dist/docs/components/text.yaml +67 -0
- package/dist/docs/components/textarea.yaml +43 -60
- package/dist/docs/components/time-field.yaml +74 -33
- package/dist/docs/components/toast.yaml +13 -30
- package/dist/docs/components/tooltip.yaml +56 -49
- package/dist/docs/components/tree-item.yaml +9 -10
- package/dist/docs/components/tree.yaml +127 -10
- package/dist/docs/components/wrap.yaml +60 -0
- package/dist/docs/traits/toggle-theme.yaml +34 -0
- package/dist/element.js +1 -1
- package/dist/icons.js +79 -59
- package/dist/icons.js.map +1 -1
- package/dist/reactivity.js +2 -2
- package/dist/register.d.ts +0 -1
- package/dist/register.js +258 -244
- package/dist/register.js.map +1 -1
- package/dist/store.js +1 -1
- package/dist/traits/toggle-theme/toggle-theme.d.ts +0 -0
- package/dist/traits/toggle-theme/toggle-theme.trait.d.ts +2 -0
- package/dist/traits.js +528 -485
- package/dist/traits.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/empty-state-5M3uR5CM.js.map +0 -1
|
@@ -1,78 +1,104 @@
|
|
|
1
1
|
name: aui-color-picker
|
|
2
2
|
tag: aui-color-picker
|
|
3
3
|
type: component
|
|
4
|
-
summary: Compound color picker composing area,
|
|
5
|
-
description:
|
|
6
|
-
A unified color picker
|
|
7
|
-
aui-color-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
internally, converting to/from HSL for the area and slider controls.
|
|
4
|
+
summary: Compound OKLCH color picker composing area, labeled slider rows, and output copy buttons.
|
|
5
|
+
description: |
|
|
6
|
+
A unified color picker using OKLCH as the native internal color model. Stamps and syncs:
|
|
7
|
+
- aui-color-area (2D chroma+lightness surface)
|
|
8
|
+
- Four labeled slider rows (H/C/L/A) each showing [label][slider][value]
|
|
9
|
+
- Two output rows with OKLCH string + hex string and aui-copy-button for each
|
|
11
10
|
|
|
11
|
+
All sub-components sync bidirectionally — changing any part updates the others. Parses both oklch() and hex color values as input, converting internally to OKLCH. The alpha slider row is hidden unless the `alpha` attribute is set.
|
|
12
12
|
base: AgentElement
|
|
13
|
-
|
|
14
13
|
attributes:
|
|
15
14
|
value:
|
|
16
15
|
syntax: key-value
|
|
17
16
|
type: string
|
|
18
17
|
default: "#000000"
|
|
19
|
-
description: Current color value
|
|
18
|
+
description: Current color value. Accepts oklch() string or hex format.
|
|
20
19
|
format:
|
|
21
20
|
syntax: key-value
|
|
22
21
|
type: string
|
|
23
|
-
default:
|
|
24
|
-
description:
|
|
25
|
-
|
|
22
|
+
default: oklch
|
|
23
|
+
description: Primary output format (oklch or hex). Controls the value attribute serialization.
|
|
24
|
+
alpha:
|
|
26
25
|
syntax: boolean
|
|
27
26
|
type: boolean
|
|
28
27
|
default: false
|
|
29
|
-
description: Show the alpha transparency slider.
|
|
28
|
+
description: Show the alpha transparency slider row.
|
|
30
29
|
disabled:
|
|
31
30
|
syntax: boolean
|
|
32
31
|
type: boolean
|
|
33
32
|
default: false
|
|
34
33
|
description: Disables all sub-components.
|
|
35
|
-
|
|
36
34
|
tokens:
|
|
37
35
|
- name: --aui-color-picker-gap
|
|
38
36
|
default: calc(var(--aui-space) * 2)
|
|
39
|
-
description: Gap between
|
|
37
|
+
description: Gap between the area, slider block, and output block.
|
|
40
38
|
- name: --aui-color-picker-area-height
|
|
41
39
|
default: 10rem
|
|
42
40
|
description: Height of the color area surface.
|
|
43
41
|
- name: --aui-color-picker-width
|
|
44
|
-
default:
|
|
42
|
+
default: 16rem
|
|
45
43
|
description: Width of the entire picker.
|
|
46
|
-
|
|
44
|
+
- name: --aui-color-picker-slider-height
|
|
45
|
+
default: 16px
|
|
46
|
+
description: Height of the slider tracks.
|
|
47
|
+
- name: --aui-color-picker-border-radius
|
|
48
|
+
default: var(--aui-radius)
|
|
49
|
+
description: Border radius for area, slider tracks, and output rows.
|
|
50
|
+
internal-structure:
|
|
51
|
+
- element: aui-color-area
|
|
52
|
+
attr: data-color-picker-area
|
|
53
|
+
description: 2D chroma+lightness picking surface.
|
|
54
|
+
- element: div
|
|
55
|
+
attr: data-color-picker-sliders
|
|
56
|
+
description: Container for the four slider rows.
|
|
57
|
+
- element: div
|
|
58
|
+
attr: data-color-picker-slider-row
|
|
59
|
+
description: Single row containing [label][slider][value].
|
|
60
|
+
- element: span
|
|
61
|
+
attr: data-color-picker-slider-label
|
|
62
|
+
description: Single-character channel label (H, C, L, A). Mono font.
|
|
63
|
+
- element: span
|
|
64
|
+
attr: data-color-picker-slider-value
|
|
65
|
+
description: Numeric readout for the slider value. Mono font.
|
|
66
|
+
- element: div
|
|
67
|
+
attr: data-color-picker-output
|
|
68
|
+
description: Container for OKLCH and hex output rows.
|
|
69
|
+
- element: div
|
|
70
|
+
attr: data-color-picker-output-group
|
|
71
|
+
description: Single output row with value text and copy button.
|
|
72
|
+
- element: span
|
|
73
|
+
attr: data-color-picker-value
|
|
74
|
+
description: Formatted color string (OKLCH or hex).
|
|
75
|
+
- element: aui-copy-button
|
|
76
|
+
description: Copy button for the adjacent color string (size="sm").
|
|
47
77
|
a11y:
|
|
48
78
|
role: group
|
|
49
79
|
keyboard:
|
|
50
|
-
ArrowKeys: Control the active sub-component (area
|
|
51
|
-
|
|
80
|
+
ArrowKeys: Control the active sub-component (area or slider).
|
|
52
81
|
events:
|
|
53
82
|
change:
|
|
54
|
-
description:
|
|
55
|
-
Fired when the color changes via any sub-component.
|
|
56
|
-
Detail contains { value, h, s, l, a }.
|
|
57
|
-
|
|
83
|
+
description: |
|
|
84
|
+
Fired when the color changes via any sub-component. Detail contains { value, l, c, h, a }.
|
|
58
85
|
dependencies:
|
|
59
86
|
- aui-color-area
|
|
60
87
|
- aui-color-slider
|
|
61
|
-
- aui-
|
|
62
|
-
|
|
88
|
+
- aui-copy-button
|
|
63
89
|
composition:
|
|
64
|
-
parents:
|
|
90
|
+
parents:
|
|
91
|
+
- aui-container
|
|
92
|
+
- any
|
|
65
93
|
children: []
|
|
66
|
-
|
|
67
94
|
examples:
|
|
68
|
-
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
-
|
|
77
|
-
|
|
78
|
-
description: Disabled color picker.
|
|
95
|
+
- description: Basic color picker with initial blue value (hex input)
|
|
96
|
+
html: <aui-color-picker value="#3b82f6"></aui-color-picker>
|
|
97
|
+
- description: Color picker with OKLCH input
|
|
98
|
+
html: <aui-color-picker value="oklch(0.65 0.2 250)"></aui-color-picker>
|
|
99
|
+
- description: Color picker with alpha transparency slider
|
|
100
|
+
html: <aui-color-picker value="oklch(0.65 0.2 15 / 0.8)" alpha></aui-color-picker>
|
|
101
|
+
- description: Color picker with hex format output
|
|
102
|
+
html: <aui-color-picker value="#10b981" format="hex"></aui-color-picker>
|
|
103
|
+
- description: Disabled color picker
|
|
104
|
+
html: <aui-color-picker value="#10b981" disabled></aui-color-picker>
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
name: aui-color-slider
|
|
2
|
+
tag: aui-color-slider
|
|
3
|
+
type: component
|
|
4
|
+
summary: Single-axis gradient slider for an OKLCH color channel (hue, chroma, lightness, or alpha).
|
|
5
|
+
description: |
|
|
6
|
+
A one-dimensional slider that controls a specific OKLCH color channel. The track renders a computed gradient using hex color stops for the selected channel:
|
|
7
|
+
- **hue** — perceptual rainbow at current lightness and chroma (0-360, step 1)
|
|
8
|
+
- **chroma** — saturation range at current L and H (0-0.4, step 0.004)
|
|
9
|
+
- **lightness** — luminance range at current C and H (0-1, step 0.01)
|
|
10
|
+
- **alpha** — transparency gradient over checkerboard at current color (0-1, step 0.01)
|
|
11
|
+
|
|
12
|
+
Pointer drag and keyboard arrow navigation with Shift for 10x step. Values are snapped to the channel step size.
|
|
13
|
+
base: AgentElement
|
|
14
|
+
attributes:
|
|
15
|
+
channel:
|
|
16
|
+
syntax: key-value
|
|
17
|
+
type: string
|
|
18
|
+
default: hue
|
|
19
|
+
description: Which color channel to control (hue, chroma, lightness, alpha).
|
|
20
|
+
value:
|
|
21
|
+
syntax: key-value
|
|
22
|
+
type: string
|
|
23
|
+
default: "0"
|
|
24
|
+
description: Current channel value.
|
|
25
|
+
min:
|
|
26
|
+
syntax: key-value
|
|
27
|
+
type: string
|
|
28
|
+
default: ""
|
|
29
|
+
description: Minimum value. Defaults to channel minimum (0).
|
|
30
|
+
max:
|
|
31
|
+
syntax: key-value
|
|
32
|
+
type: string
|
|
33
|
+
default: ""
|
|
34
|
+
description: Maximum value. Defaults to channel maximum (360 for hue, 0.4 for chroma, 1 for lightness/alpha).
|
|
35
|
+
hue:
|
|
36
|
+
syntax: key-value
|
|
37
|
+
type: string
|
|
38
|
+
default: "0"
|
|
39
|
+
description: Reference hue for gradient rendering (used by chroma/lightness/alpha channels).
|
|
40
|
+
chroma:
|
|
41
|
+
syntax: key-value
|
|
42
|
+
type: string
|
|
43
|
+
default: "0.15"
|
|
44
|
+
description: Reference chroma for gradient rendering (used by hue/lightness/alpha channels).
|
|
45
|
+
lightness:
|
|
46
|
+
syntax: key-value
|
|
47
|
+
type: string
|
|
48
|
+
default: "0.65"
|
|
49
|
+
description: Reference lightness for gradient rendering (used by hue/chroma/alpha channels).
|
|
50
|
+
disabled:
|
|
51
|
+
syntax: boolean
|
|
52
|
+
type: boolean
|
|
53
|
+
default: false
|
|
54
|
+
description: Prevents interaction. Dims visually.
|
|
55
|
+
a11y:
|
|
56
|
+
role: slider (on thumb element)
|
|
57
|
+
keyboard:
|
|
58
|
+
ArrowRight: "Increase by step (Shift: 10x)."
|
|
59
|
+
ArrowLeft: "Decrease by step (Shift: 10x)."
|
|
60
|
+
Home: Set to minimum.
|
|
61
|
+
End: Set to maximum.
|
|
62
|
+
aria:
|
|
63
|
+
aria-valuenow: Current value.
|
|
64
|
+
aria-valuemin: Channel minimum.
|
|
65
|
+
aria-valuemax: Channel maximum.
|
|
66
|
+
aria-label: Channel name (capitalized).
|
|
67
|
+
tokens:
|
|
68
|
+
- name: --aui-color-slider-height
|
|
69
|
+
default: var(--aui-color-picker-slider-height, 16px)
|
|
70
|
+
description: Total height of the slider.
|
|
71
|
+
- name: --aui-color-slider-track-radius
|
|
72
|
+
default: var(--aui-color-picker-border-radius, var(--aui-radius-sm, 4px))
|
|
73
|
+
description: Track corner radius.
|
|
74
|
+
- name: --aui-color-slider-thumb-size
|
|
75
|
+
default: 16px
|
|
76
|
+
description: Thumb diameter.
|
|
77
|
+
- name: --aui-color-slider-thumb-border
|
|
78
|
+
default: 2px solid white
|
|
79
|
+
description: Thumb border.
|
|
80
|
+
- name: --aui-color-slider-thumb-shadow
|
|
81
|
+
default: 0 0 0 1px rgba(0,0,0,0.3), 0 1px 3px rgba(0,0,0,0.2)
|
|
82
|
+
description: Thumb drop shadow.
|
|
83
|
+
internal-structure:
|
|
84
|
+
- element: div
|
|
85
|
+
attr: data-color-slider-track
|
|
86
|
+
description: Gradient track element. Background set dynamically via computed hex stops.
|
|
87
|
+
- element: div
|
|
88
|
+
attr: data-color-slider-thumb
|
|
89
|
+
description: Draggable thumb positioned via --_pct custom property.
|
|
90
|
+
composition:
|
|
91
|
+
parents:
|
|
92
|
+
- aui-color-picker
|
|
93
|
+
- aui-stack
|
|
94
|
+
- aui-container
|
|
95
|
+
- div
|
|
96
|
+
children: []
|
|
97
|
+
context: |
|
|
98
|
+
Used inside aui-color-picker in labeled rows (H/C/L/A). Multiple sliders can also be stacked independently for individual channel editing.
|
|
99
|
+
examples:
|
|
100
|
+
- description: Hue slider (0-360 at L=0.65 C=0.15)
|
|
101
|
+
html: <aui-color-slider channel="hue" value="250" lightness="0.65" chroma="0.15"></aui-color-slider>
|
|
102
|
+
- description: Hue slider at 0 (red)
|
|
103
|
+
html: |-
|
|
104
|
+
<aui-color-slider channel="hue" value="0" lightness="0.65" chroma="0.2"></aui-color-slider>
|
|
105
|
+
|
|
106
|
+
<!-- ===============================================================
|
|
107
|
+
CHROMA CHANNEL
|
|
108
|
+
=============================================================== -->
|
|
109
|
+
- description: Chroma slider at hue 250
|
|
110
|
+
html: <aui-color-slider channel="chroma" value="0.2" hue="250" lightness="0.65"></aui-color-slider>
|
|
111
|
+
- description: Chroma slider at hue 145 (green)
|
|
112
|
+
html: |-
|
|
113
|
+
<aui-color-slider channel="chroma" value="0.18" hue="145" lightness="0.7"></aui-color-slider>
|
|
114
|
+
|
|
115
|
+
<!-- ===============================================================
|
|
116
|
+
LIGHTNESS CHANNEL
|
|
117
|
+
=============================================================== -->
|
|
118
|
+
- description: Lightness slider at hue 250
|
|
119
|
+
html: |-
|
|
120
|
+
<aui-color-slider channel="lightness" value="0.65" hue="250" chroma="0.2"></aui-color-slider>
|
|
121
|
+
|
|
122
|
+
<!-- ===============================================================
|
|
123
|
+
ALPHA CHANNEL
|
|
124
|
+
=============================================================== -->
|
|
125
|
+
- description: Alpha slider with checkerboard
|
|
126
|
+
html: |-
|
|
127
|
+
<aui-color-slider channel="alpha" value="0.8" hue="250" chroma="0.2" lightness="0.65"></aui-color-slider>
|
|
128
|
+
|
|
129
|
+
<!-- ===============================================================
|
|
130
|
+
CUSTOM WIDTH
|
|
131
|
+
=============================================================== -->
|
|
132
|
+
- description: Full-width hue slider
|
|
133
|
+
html: |-
|
|
134
|
+
<aui-color-slider channel="hue" value="200" lightness="0.65" chroma="0.15" style="width: 100%;"></aui-color-slider>
|
|
135
|
+
|
|
136
|
+
<!-- ===============================================================
|
|
137
|
+
DISABLED
|
|
138
|
+
=============================================================== -->
|
|
139
|
+
- description: Disabled hue slider
|
|
140
|
+
html: |-
|
|
141
|
+
<aui-color-slider channel="hue" value="250" lightness="0.65" chroma="0.15" disabled></aui-color-slider>
|
|
142
|
+
|
|
143
|
+
<!-- ===============================================================
|
|
144
|
+
GROUP -- all channels together
|
|
145
|
+
=============================================================== -->
|
|
146
|
+
- description: All four channel sliders together
|
|
147
|
+
html: |-
|
|
148
|
+
<aui-stack gap="3">
|
|
149
|
+
<aui-color-slider channel="hue" value="250" lightness="0.65" chroma="0.2" style="width: 100%;"></aui-color-slider>
|
|
150
|
+
<aui-color-slider channel="chroma" value="0.2" hue="250" lightness="0.65" style="width: 100%;"></aui-color-slider>
|
|
151
|
+
<aui-color-slider channel="lightness" value="0.65" hue="250" chroma="0.2" style="width: 100%;"></aui-color-slider>
|
|
152
|
+
<aui-color-slider channel="alpha" value="1" hue="250" chroma="0.2" lightness="0.65" style="width: 100%;"></aui-color-slider>
|
|
153
|
+
</aui-stack>
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
name: aui-color-swatch
|
|
2
|
+
tag: aui-color-swatch
|
|
3
|
+
type: element
|
|
4
|
+
summary: Color preview square with checkerboard transparency support.
|
|
5
|
+
description: |
|
|
6
|
+
CSS-only element that renders a small color preview with a checkerboard background for transparency support. Use in color palettes, swatch pickers, and color field previews. Color is set via --aui-color-swatch-value custom property.
|
|
7
|
+
presentational:
|
|
8
|
+
size:
|
|
9
|
+
syntax: key-value
|
|
10
|
+
attribute: size
|
|
11
|
+
cascades: false
|
|
12
|
+
default: md
|
|
13
|
+
values:
|
|
14
|
+
- sm
|
|
15
|
+
- md
|
|
16
|
+
- lg
|
|
17
|
+
description: |
|
|
18
|
+
Swatch dimensions. sm = 16px, md = 24px (default), lg = 32px.
|
|
19
|
+
modifiers:
|
|
20
|
+
round:
|
|
21
|
+
syntax: boolean
|
|
22
|
+
description: |
|
|
23
|
+
Renders as a circle instead of a rounded square.
|
|
24
|
+
selected:
|
|
25
|
+
syntax: boolean
|
|
26
|
+
description: |
|
|
27
|
+
Shows a selection ring around the swatch using box-shadow with accent color.
|
|
28
|
+
custom_properties:
|
|
29
|
+
--aui-color-swatch-value:
|
|
30
|
+
default: transparent
|
|
31
|
+
description: The color to display in the swatch.
|
|
32
|
+
content:
|
|
33
|
+
model: empty
|
|
34
|
+
accepts: []
|
|
35
|
+
required: false
|
|
36
|
+
description: |
|
|
37
|
+
No content — swatch is a visual indicator only. Color is set via the --aui-color-swatch-value custom property.
|
|
38
|
+
composition:
|
|
39
|
+
parents:
|
|
40
|
+
- aui-stack
|
|
41
|
+
- aui-wrap
|
|
42
|
+
- aui-grid
|
|
43
|
+
- div
|
|
44
|
+
children: null
|
|
45
|
+
context: |
|
|
46
|
+
Use in color palette grids, inline color previews, and swatch picker rows. Group multiple swatches in aui-wrap for wrapping palette layouts.
|
|
47
|
+
tokens:
|
|
48
|
+
sizing:
|
|
49
|
+
- width / height (16px, 24px, 32px)
|
|
50
|
+
color:
|
|
51
|
+
- --aui-border
|
|
52
|
+
- --aui-control
|
|
53
|
+
- --aui-surface
|
|
54
|
+
- --aui-accent-500
|
|
55
|
+
- --aui-color-swatch-value
|
|
56
|
+
shape:
|
|
57
|
+
- --aui-radius-sm
|
|
58
|
+
examples:
|
|
59
|
+
- description: Basic blue swatch
|
|
60
|
+
html: '<aui-color-swatch style="--aui-color-swatch-value: #3b82f6"></aui-color-swatch>'
|
|
61
|
+
- description: Color palette row
|
|
62
|
+
html: |-
|
|
63
|
+
<aui-wrap gap="2">
|
|
64
|
+
<aui-color-swatch style="--aui-color-swatch-value: #ef4444"></aui-color-swatch>
|
|
65
|
+
<aui-color-swatch style="--aui-color-swatch-value: #f97316"></aui-color-swatch>
|
|
66
|
+
<aui-color-swatch style="--aui-color-swatch-value: #eab308"></aui-color-swatch>
|
|
67
|
+
<aui-color-swatch style="--aui-color-swatch-value: #22c55e"></aui-color-swatch>
|
|
68
|
+
<aui-color-swatch style="--aui-color-swatch-value: #3b82f6"></aui-color-swatch>
|
|
69
|
+
<aui-color-swatch style="--aui-color-swatch-value: #a855f7"></aui-color-swatch>
|
|
70
|
+
</aui-wrap>
|
|
71
|
+
- description: Round swatches
|
|
72
|
+
html: |-
|
|
73
|
+
<aui-wrap gap="2">
|
|
74
|
+
<aui-color-swatch round style="--aui-color-swatch-value: #ef4444"></aui-color-swatch>
|
|
75
|
+
<aui-color-swatch round style="--aui-color-swatch-value: #3b82f6"></aui-color-swatch>
|
|
76
|
+
<aui-color-swatch round style="--aui-color-swatch-value: #22c55e"></aui-color-swatch>
|
|
77
|
+
</aui-wrap>
|
|
78
|
+
- description: All three sizes
|
|
79
|
+
html: |-
|
|
80
|
+
<aui-wrap gap="2">
|
|
81
|
+
<aui-color-swatch size="sm" style="--aui-color-swatch-value: #3b82f6"></aui-color-swatch>
|
|
82
|
+
<aui-color-swatch style="--aui-color-swatch-value: #3b82f6"></aui-color-swatch>
|
|
83
|
+
<aui-color-swatch size="lg" style="--aui-color-swatch-value: #3b82f6"></aui-color-swatch>
|
|
84
|
+
</aui-wrap>
|
|
85
|
+
- description: Transparent colors showing checkerboard
|
|
86
|
+
html: |-
|
|
87
|
+
<aui-wrap gap="2">
|
|
88
|
+
<aui-color-swatch style="--aui-color-swatch-value: rgba(59, 130, 246, 0.5)"></aui-color-swatch>
|
|
89
|
+
<aui-color-swatch style="--aui-color-swatch-value: rgba(239, 68, 68, 0.3)"></aui-color-swatch>
|
|
90
|
+
<aui-color-swatch style="--aui-color-swatch-value: transparent"></aui-color-swatch>
|
|
91
|
+
</aui-wrap>
|
|
92
|
+
- description: Selected state with accent ring
|
|
93
|
+
html: |-
|
|
94
|
+
<aui-wrap gap="2">
|
|
95
|
+
<aui-color-swatch selected style="--aui-color-swatch-value: #3b82f6"></aui-color-swatch>
|
|
96
|
+
<aui-color-swatch style="--aui-color-swatch-value: #ef4444"></aui-color-swatch>
|
|
97
|
+
<aui-color-swatch style="--aui-color-swatch-value: #22c55e"></aui-color-swatch>
|
|
98
|
+
</aui-wrap>
|
|
@@ -2,14 +2,9 @@ name: aui-command
|
|
|
2
2
|
tag: aui-command
|
|
3
3
|
type: component
|
|
4
4
|
summary: Command palette with search, keyboard navigation, and grouping.
|
|
5
|
-
description:
|
|
6
|
-
Root component for the command palette. Composes aui-command-input
|
|
7
|
-
(search), aui-command-list (scrollable results), aui-command-item
|
|
8
|
-
(actions), aui-command-group (grouping), and aui-command-empty
|
|
9
|
-
(no results). Place inside aui-dialog for modal usage.
|
|
10
|
-
|
|
5
|
+
description: |
|
|
6
|
+
Root component for the command palette. Composes aui-command-input (search), aui-command-list (scrollable results), aui-command-item (actions), aui-command-group (grouping), and aui-command-empty (no results). Place inside aui-dialog for modal usage.
|
|
11
7
|
base: AgentElement
|
|
12
|
-
|
|
13
8
|
a11y:
|
|
14
9
|
role: search
|
|
15
10
|
keyboard:
|
|
@@ -19,13 +14,11 @@ a11y:
|
|
|
19
14
|
End: Highlight last item.
|
|
20
15
|
Enter: Select highlighted item.
|
|
21
16
|
Escape: Dismiss (fires dismiss event).
|
|
22
|
-
|
|
23
17
|
events:
|
|
24
18
|
select:
|
|
25
19
|
description: Fired when an item is selected. detail contains value, label, item.
|
|
26
20
|
dismiss:
|
|
27
21
|
description: Fired on Escape key. Parent dialog can listen to close.
|
|
28
|
-
|
|
29
22
|
tokens:
|
|
30
23
|
- name: --aui-command-background
|
|
31
24
|
default: var(--aui-modal, var(--aui-doc))
|
|
@@ -42,13 +35,17 @@ tokens:
|
|
|
42
35
|
- name: --aui-command-gap
|
|
43
36
|
default: var(--aui-space)
|
|
44
37
|
description: Gap between command palette sections.
|
|
45
|
-
|
|
46
38
|
composition:
|
|
47
|
-
parents:
|
|
48
|
-
|
|
49
|
-
|
|
39
|
+
parents:
|
|
40
|
+
- aui-dialog
|
|
41
|
+
- any
|
|
42
|
+
children:
|
|
43
|
+
- aui-command-input
|
|
44
|
+
- aui-command-list
|
|
45
|
+
- aui-command-empty
|
|
50
46
|
examples:
|
|
51
|
-
-
|
|
47
|
+
- description: Command palette with grouped items and search
|
|
48
|
+
html: |-
|
|
52
49
|
<aui-command max-width="prose">
|
|
53
50
|
<aui-command-input placeholder="Type a command…"></aui-command-input>
|
|
54
51
|
<aui-command-list>
|
|
@@ -65,9 +62,8 @@ examples:
|
|
|
65
62
|
</aui-command-list>
|
|
66
63
|
<aui-command-empty>No results found.</aui-command-empty>
|
|
67
64
|
</aui-command>
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
- html: |
|
|
65
|
+
- description: Simple flat command palette
|
|
66
|
+
html: |-
|
|
71
67
|
<aui-command max-width="md">
|
|
72
68
|
<aui-command-input placeholder="Search actions…"></aui-command-input>
|
|
73
69
|
<aui-command-list>
|
|
@@ -78,4 +74,3 @@ examples:
|
|
|
78
74
|
</aui-command-list>
|
|
79
75
|
<aui-command-empty>No matching commands.</aui-command-empty>
|
|
80
76
|
</aui-command>
|
|
81
|
-
description: Simple flat command palette.
|