@cueplusplus/ui 0.15.0 → 0.16.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/CHANGELOG.md +258 -0
- package/README.md +26 -0
- package/dist/chat/message-list.js +2 -1
- package/dist/chrome/_tabs-scroll.d.ts +17 -1
- package/dist/chrome/_tabs-scroll.js +20 -3
- package/dist/chrome/app-bar.js +2 -1
- package/dist/chrome/band.js +3 -1
- package/dist/chrome/panel.js +2 -1
- package/dist/color/color-field.d.ts +2 -1
- package/dist/color/color-picker.d.ts +2 -1
- package/dist/date/date-field.d.ts +2 -1
- package/dist/date/date-picker.d.ts +2 -1
- package/dist/date/date-range-picker.d.ts +2 -1
- package/dist/date/time-field.d.ts +2 -1
- package/dist/forms/_chassis-size.d.ts +22 -0
- package/dist/forms/_chassis.d.ts +3 -10
- package/dist/forms/_chassis.js +2 -1
- package/dist/forms/autocomplete.d.ts +2 -1
- package/dist/forms/combobox.d.ts +2 -1
- package/dist/forms/env-var-input.d.ts +2 -1
- package/dist/forms/index.d.ts +2 -1
- package/dist/forms/input-group.d.ts +2 -1
- package/dist/forms/input.d.ts +2 -1
- package/dist/forms/multi-select.d.ts +2 -1
- package/dist/forms/otp-field.d.ts +2 -1
- package/dist/forms/password-input.d.ts +2 -1
- package/dist/forms/scrub-input.d.ts +2 -1
- package/dist/forms/search-input.d.ts +2 -1
- package/dist/forms/select.d.ts +2 -1
- package/dist/forms/select.js +2 -1
- package/dist/forms/tags-input.d.ts +2 -1
- package/dist/forms/toggle-group.d.ts +1 -1
- package/dist/forms/toggle.d.ts +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/instruments/log-viewer.js +2 -1
- package/dist/layout/card.js +3 -1
- package/dist/midi/musical-time-input.d.ts +2 -1
- package/dist/overlays/_surface.d.ts +1 -1
- package/dist/overlays/_surface.js +3 -1
- package/dist/primitives/button.js +2 -1
- package/dist/primitives/chip.d.ts +1 -1
- package/dist/system/_paint-elevation.js +9 -0
- package/dist/system/_paint-glass.js +46 -0
- package/dist/system/_paint-glow.js +32 -0
- package/dist/system/_paint-ground-pattern.js +30 -0
- package/dist/system/_paint-rim.js +41 -0
- package/dist/system/_paint-stroke-sunken.js +19 -0
- package/dist/system/_paint-stroke-surface-1.js +19 -0
- package/dist/system/_paint-stroke-surface-2.js +27 -0
- package/dist/system/_paint-texture.js +53 -0
- package/dist/system/theme-provider.d.ts +47 -36
- package/dist/system/theme-provider.js +13 -6
- package/manifest/components/alert-dialog.json +11 -0
- package/manifest/components/app-bar.json +4 -0
- package/manifest/components/autocomplete.json +11 -0
- package/manifest/components/band.json +8 -1
- package/manifest/components/button.json +4 -0
- package/manifest/components/card.json +6 -0
- package/manifest/components/channel-matrix.json +11 -0
- package/manifest/components/chart-tooltip-content.json +11 -0
- package/manifest/components/color-field.json +4 -0
- package/manifest/components/color-picker.json +4 -0
- package/manifest/components/combobox.json +11 -0
- package/manifest/components/command-palette.json +11 -0
- package/manifest/components/composer.json +4 -0
- package/manifest/components/context-menu.json +11 -0
- package/manifest/components/date-field.json +4 -0
- package/manifest/components/date-picker.json +4 -0
- package/manifest/components/date-range-picker.json +4 -0
- package/manifest/components/density.json +8 -2
- package/manifest/components/dialog.json +11 -0
- package/manifest/components/dmx-bar.json +11 -0
- package/manifest/components/dmx-strip.json +11 -0
- package/manifest/components/drawer.json +11 -0
- package/manifest/components/dropdown-menu.json +11 -0
- package/manifest/components/env-var-input.json +4 -0
- package/manifest/components/hover-card.json +11 -0
- package/manifest/components/input-group.json +4 -0
- package/manifest/components/input.json +4 -0
- package/manifest/components/log-viewer.json +7 -0
- package/manifest/components/menubar.json +11 -0
- package/manifest/components/message-list.json +7 -0
- package/manifest/components/multi-select.json +11 -0
- package/manifest/components/musical-time-input.json +4 -0
- package/manifest/components/navigation-menu.json +11 -0
- package/manifest/components/number-field.json +4 -0
- package/manifest/components/otp-field.json +4 -0
- package/manifest/components/panel-header.json +2 -0
- package/manifest/components/panel.json +2 -0
- package/manifest/components/password-input.json +4 -0
- package/manifest/components/popover.json +11 -0
- package/manifest/components/preview.json +8 -2
- package/manifest/components/scrollable-tabs-list.json +1 -0
- package/manifest/components/scrub-input.json +4 -0
- package/manifest/components/search-input.json +4 -0
- package/manifest/components/segmented-control.json +1 -0
- package/manifest/components/select.json +11 -0
- package/manifest/components/sheet.json +11 -0
- package/manifest/components/tabs.json +1 -0
- package/manifest/components/tags-input.json +11 -0
- package/manifest/components/textarea.json +4 -0
- package/manifest/components/theme-configurator.json +11 -0
- package/manifest/components/theme-provider.json +9 -3
- package/manifest/components/time-field.json +4 -0
- package/manifest/components/toast.json +11 -0
- package/manifest/components/toggle-group.json +1 -19
- package/manifest/components/toggle.json +0 -6
- package/manifest/components/toolbar.json +1 -0
- package/manifest/components/tooltip.json +11 -0
- package/manifest/manifest.json +59 -59
- package/manifest/tokens.json +21 -2
- package/package.json +5 -5
|
@@ -200,6 +200,17 @@
|
|
|
200
200
|
"--cue-font-mono",
|
|
201
201
|
"--cue-icon-md",
|
|
202
202
|
"--cue-icon-sm",
|
|
203
|
+
"--cue-paint-rim-width",
|
|
204
|
+
"--cue-paint-shade-far",
|
|
205
|
+
"--cue-paint-shade-hairline",
|
|
206
|
+
"--cue-paint-shade-near",
|
|
207
|
+
"--cue-paint-shadow-scale",
|
|
208
|
+
"--cue-paint-shadow-spread",
|
|
209
|
+
"--cue-paint-sheen-ink",
|
|
210
|
+
"--cue-paint-stroke-angle",
|
|
211
|
+
"--cue-paint-stroke-from",
|
|
212
|
+
"--cue-paint-stroke-to",
|
|
213
|
+
"--cue-paint-stroke-width",
|
|
203
214
|
"--cue-radius-control",
|
|
204
215
|
"--cue-radius-overlay",
|
|
205
216
|
"--cue-space-1",
|
|
@@ -169,6 +169,17 @@
|
|
|
169
169
|
"--cue-fg-subtle",
|
|
170
170
|
"--cue-font-mono",
|
|
171
171
|
"--cue-leading-ui",
|
|
172
|
+
"--cue-paint-rim-width",
|
|
173
|
+
"--cue-paint-shade-far",
|
|
174
|
+
"--cue-paint-shade-hairline",
|
|
175
|
+
"--cue-paint-shade-near",
|
|
176
|
+
"--cue-paint-shadow-scale",
|
|
177
|
+
"--cue-paint-shadow-spread",
|
|
178
|
+
"--cue-paint-sheen-ink",
|
|
179
|
+
"--cue-paint-stroke-angle",
|
|
180
|
+
"--cue-paint-stroke-from",
|
|
181
|
+
"--cue-paint-stroke-to",
|
|
182
|
+
"--cue-paint-stroke-width",
|
|
172
183
|
"--cue-radius-control",
|
|
173
184
|
"--cue-radius-overlay",
|
|
174
185
|
"--cue-scrim",
|
|
@@ -212,6 +212,17 @@
|
|
|
212
212
|
"--cue-font-mono",
|
|
213
213
|
"--cue-icon-sm",
|
|
214
214
|
"--cue-leading-ui",
|
|
215
|
+
"--cue-paint-rim-width",
|
|
216
|
+
"--cue-paint-shade-far",
|
|
217
|
+
"--cue-paint-shade-hairline",
|
|
218
|
+
"--cue-paint-shade-near",
|
|
219
|
+
"--cue-paint-shadow-scale",
|
|
220
|
+
"--cue-paint-shadow-spread",
|
|
221
|
+
"--cue-paint-sheen-ink",
|
|
222
|
+
"--cue-paint-stroke-angle",
|
|
223
|
+
"--cue-paint-stroke-from",
|
|
224
|
+
"--cue-paint-stroke-to",
|
|
225
|
+
"--cue-paint-stroke-width",
|
|
215
226
|
"--cue-radius-control",
|
|
216
227
|
"--cue-radius-overlay",
|
|
217
228
|
"--cue-scrim",
|
|
@@ -129,6 +129,17 @@
|
|
|
129
129
|
"--cue-font-sans",
|
|
130
130
|
"--cue-icon-sm",
|
|
131
131
|
"--cue-leading-ui",
|
|
132
|
+
"--cue-paint-rim-width",
|
|
133
|
+
"--cue-paint-shade-far",
|
|
134
|
+
"--cue-paint-shade-hairline",
|
|
135
|
+
"--cue-paint-shade-near",
|
|
136
|
+
"--cue-paint-shadow-scale",
|
|
137
|
+
"--cue-paint-shadow-spread",
|
|
138
|
+
"--cue-paint-sheen-ink",
|
|
139
|
+
"--cue-paint-stroke-angle",
|
|
140
|
+
"--cue-paint-stroke-from",
|
|
141
|
+
"--cue-paint-stroke-to",
|
|
142
|
+
"--cue-paint-stroke-width",
|
|
132
143
|
"--cue-radius-control",
|
|
133
144
|
"--cue-radius-overlay",
|
|
134
145
|
"--cue-scrim",
|
|
@@ -96,14 +96,20 @@
|
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"name": "paint",
|
|
99
|
-
"type": "\"none\"",
|
|
99
|
+
"type": "\"none\" | \"bevel\" | \"halo\" | \"hatch\" | \"lift\" | \"frost\" | \"grain\"",
|
|
100
100
|
"required": false,
|
|
101
101
|
"defaultValue": null,
|
|
102
102
|
"description": "A look pack for this subtree. Opt-in: a provider that names none stamps no\n`data-paint`, and a nested one inherits the pack stamped around it.",
|
|
103
103
|
"control": {
|
|
104
104
|
"kind": "enum",
|
|
105
105
|
"members": [
|
|
106
|
-
"none"
|
|
106
|
+
"none",
|
|
107
|
+
"bevel",
|
|
108
|
+
"halo",
|
|
109
|
+
"hatch",
|
|
110
|
+
"lift",
|
|
111
|
+
"frost",
|
|
112
|
+
"grain"
|
|
107
113
|
]
|
|
108
114
|
}
|
|
109
115
|
},
|
|
@@ -162,7 +168,7 @@
|
|
|
162
168
|
"type": "string",
|
|
163
169
|
"required": false,
|
|
164
170
|
"defaultValue": null,
|
|
165
|
-
"description": "The Content-Security-Policy nonce
|
|
171
|
+
"description": "The Content-Security-Policy nonce this provider hands on: to its own\ndensity-layer `<style>`, and — through Base UI's `CSPProvider` — to Base\nUI's scrollbar `<style>` and to the pre-hydration `<script>` a\n`<Slider thumbAlignment=\"edge\">` renders. List it in `script-src`, and in\nwhichever directive governs style elements: `style-src-elem` if the policy\nhas one, otherwise `style-src`. It does not reach `ThemeConfigurator`'s\n`<style>` or the application's pre-paint `<script>`.\n\nThe density layer — one `<style data-cue-overrides>` when\n`overrides.densities` yields a valid declaration (see\n{@link ThemeProviderProps.overrides}) — takes its nonce **from this prop\nalone**: not from an outer `CSPProvider`, and not from an outer\n`ThemeProvider`. A nested provider that sets its own `overrides.densities`\nneeds its own `nonce`.\n\nBase UI's scrollbar rule gets the nonce wherever React creates it in the\nbrowser. **It does not get it in server-rendered HTML** under a framework\nthat hands React a script-only nonce, which includes Next.js 16: React's\nserver renderer (19.2, and the canary Next.js 16 bundles) writes a\n`precedence` style's nonce only from its render option `nonce: { style }`.\nAllow that rule by hash, or turn on Base\nUI's `disableStyleElements` and ship the rule yourself;\n`docs/CONSUMING.md` §4.5 has both, with the hash.\n\n`prepaintScript()` returns a *string* the application renders in a\n`<script>` of its own, so put the same nonce on that element yourself.\n\n**An outer `CSPProvider` that sets `disableStyleElements` is switched off\ninside this provider once a nonce is given.** Base UI's `CSPProvider`\nbuilds its context from its own props alone, so the one rendered here\n*replaces* an outer one rather than extending it. Either leave this prop\nunset — only when no `overrides.densities` needs it and, wherever a\n`<Slider thumbAlignment=\"edge\">` renders, the outer provider carries the\nnonce — or render\n`<CSPProvider nonce={nonce} disableStyleElements>` again inside this\nprovider's children (with the nonce, or Base UI's pre-hydration script\nthere loses it), and again inside any nested provider given a nonce. An\napplication already rendering its own `CSPProvider` can leave this prop\nunset: Base UI's pre-hydration script takes the outer nonce, and so does\nits scrollbar rule wherever React creates it in the browser — the case\n`base-ui-nonce-outer-provider.test.tsx` pins — but the density layer then\nhas none.\n\n**A nonce cannot rescue a style ATTRIBUTE.** This provider's root always\ncarries one — `color-scheme` and `--cue-font-scale`, plus `fontFamilies`,\n`overrides.colors`, `overrides.fonts` and `style` where given — and many\ncomponents, and Base UI's form roots, render their own. A policy whose\n`style-src` (or, without one, `default-src`) does not allow all inline\nstyle — a nonce or a hash in it, or no `'unsafe-inline'` — therefore needs\nan explicit `style-src-attr 'unsafe-inline'`: a nonce or hash in the\ngoverning list makes the browser ignore `'unsafe-inline'`. The browser\nreports a refused attribute as a CSP violation; this library adds no\nwarning of its own.",
|
|
166
172
|
"control": {
|
|
167
173
|
"kind": "string"
|
|
168
174
|
}
|
|
@@ -81,6 +81,17 @@
|
|
|
81
81
|
"--cue-info",
|
|
82
82
|
"--cue-leading-ui",
|
|
83
83
|
"--cue-ok",
|
|
84
|
+
"--cue-paint-rim-width",
|
|
85
|
+
"--cue-paint-shade-far",
|
|
86
|
+
"--cue-paint-shade-hairline",
|
|
87
|
+
"--cue-paint-shade-near",
|
|
88
|
+
"--cue-paint-shadow-scale",
|
|
89
|
+
"--cue-paint-shadow-spread",
|
|
90
|
+
"--cue-paint-sheen-ink",
|
|
91
|
+
"--cue-paint-stroke-angle",
|
|
92
|
+
"--cue-paint-stroke-from",
|
|
93
|
+
"--cue-paint-stroke-to",
|
|
94
|
+
"--cue-paint-stroke-width",
|
|
84
95
|
"--cue-radius-control",
|
|
85
96
|
"--cue-radius-overlay",
|
|
86
97
|
"--cue-scrim",
|
|
@@ -85,25 +85,7 @@
|
|
|
85
85
|
"variants": {},
|
|
86
86
|
"defaultVariants": {},
|
|
87
87
|
"tokensUsed": [
|
|
88
|
-
"--cue-
|
|
89
|
-
"--cue-border-strong",
|
|
90
|
-
"--cue-control-lg",
|
|
91
|
-
"--cue-control-md",
|
|
92
|
-
"--cue-control-sm",
|
|
93
|
-
"--cue-danger",
|
|
94
|
-
"--cue-fg",
|
|
95
|
-
"--cue-fg-subtle",
|
|
96
|
-
"--cue-focus",
|
|
97
|
-
"--cue-font-mono",
|
|
98
|
-
"--cue-radius-control",
|
|
99
|
-
"--cue-space-1",
|
|
100
|
-
"--cue-space-3",
|
|
101
|
-
"--cue-space-4",
|
|
102
|
-
"--cue-space-5",
|
|
103
|
-
"--cue-sunken",
|
|
104
|
-
"--cue-text-body",
|
|
105
|
-
"--cue-text-label",
|
|
106
|
-
"--cue-text-ui"
|
|
88
|
+
"--cue-space-1"
|
|
107
89
|
],
|
|
108
90
|
"summary": "A cluster of toggles sharing one pressed state — and it may be empty.",
|
|
109
91
|
"examples": [
|
|
@@ -88,16 +88,11 @@
|
|
|
88
88
|
"tokensUsed": [
|
|
89
89
|
"--cue-accent",
|
|
90
90
|
"--cue-accent-soft",
|
|
91
|
-
"--cue-border",
|
|
92
|
-
"--cue-border-strong",
|
|
93
91
|
"--cue-control-lg",
|
|
94
92
|
"--cue-control-md",
|
|
95
93
|
"--cue-control-sm",
|
|
96
|
-
"--cue-danger",
|
|
97
94
|
"--cue-fg",
|
|
98
95
|
"--cue-fg-muted",
|
|
99
|
-
"--cue-fg-subtle",
|
|
100
|
-
"--cue-focus",
|
|
101
96
|
"--cue-font-mono",
|
|
102
97
|
"--cue-icon-md",
|
|
103
98
|
"--cue-icon-sm",
|
|
@@ -105,7 +100,6 @@
|
|
|
105
100
|
"--cue-space-3",
|
|
106
101
|
"--cue-space-4",
|
|
107
102
|
"--cue-space-5",
|
|
108
|
-
"--cue-sunken",
|
|
109
103
|
"--cue-surface-2",
|
|
110
104
|
"--cue-text-body",
|
|
111
105
|
"--cue-text-label",
|
|
@@ -148,6 +148,17 @@
|
|
|
148
148
|
"--cue-fg-subtle",
|
|
149
149
|
"--cue-font-mono",
|
|
150
150
|
"--cue-leading-ui",
|
|
151
|
+
"--cue-paint-rim-width",
|
|
152
|
+
"--cue-paint-shade-far",
|
|
153
|
+
"--cue-paint-shade-hairline",
|
|
154
|
+
"--cue-paint-shade-near",
|
|
155
|
+
"--cue-paint-shadow-scale",
|
|
156
|
+
"--cue-paint-shadow-spread",
|
|
157
|
+
"--cue-paint-sheen-ink",
|
|
158
|
+
"--cue-paint-stroke-angle",
|
|
159
|
+
"--cue-paint-stroke-from",
|
|
160
|
+
"--cue-paint-stroke-to",
|
|
161
|
+
"--cue-paint-stroke-width",
|
|
151
162
|
"--cue-radius-control",
|
|
152
163
|
"--cue-radius-overlay",
|
|
153
164
|
"--cue-scrim",
|