@atom63/ui-react 0.2.0-beta.1 → 0.2.0-beta.10
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 +21 -0
- package/README.md +54 -50
- package/dist/{button-sktq-nvV.d.ts → button-CfLIHg-R.d.ts} +1 -1
- package/dist/chunk-GDUMA6FI.js +2678 -0
- package/dist/chunk-GDUMA6FI.js.map +1 -0
- package/dist/{chunk-STCXERLM.js → chunk-J77BAGTA.js} +8 -148
- package/dist/chunk-J77BAGTA.js.map +1 -0
- package/dist/chunk-NBHGMMQN.js +135 -0
- package/dist/chunk-NBHGMMQN.js.map +1 -0
- package/dist/{chunk-7VSPECOH.js → chunk-R67OZVA2.js} +4 -14
- package/dist/chunk-R67OZVA2.js.map +1 -0
- package/dist/chunk-UPPHQLZ2.js +18 -0
- package/dist/chunk-UPPHQLZ2.js.map +1 -0
- package/dist/{chunk-MXNO63TC.js → chunk-X5L5DEUZ.js} +597 -290
- package/dist/chunk-X5L5DEUZ.js.map +1 -0
- package/dist/{destination-link-C9NKeKLe.d.ts → destination-link-DMLeR-oF.d.ts} +1 -1
- package/dist/index-BDzW8upQ.d.ts +442 -0
- package/dist/index.d.ts +56 -454
- package/dist/index.js +402 -2987
- package/dist/index.js.map +1 -1
- package/dist/layout/index.js +4 -4
- package/dist/layout/index.js.map +1 -1
- package/dist/media/index.d.ts +15 -4
- package/dist/media/index.js +213 -46
- package/dist/media/index.js.map +1 -1
- package/dist/media/media-lightbox/parts/index.d.ts +23 -15
- package/dist/media/media-lightbox/parts/index.js +3 -2
- package/dist/preview/index.d.ts +16 -0
- package/dist/preview/index.js +6 -0
- package/dist/preview/index.js.map +1 -0
- package/dist/theme/index.d.ts +2 -2
- package/dist/theme/index.js +81 -36
- package/dist/theme/index.js.map +1 -1
- package/package.json +31 -27
- package/src/components/accordion/accordion.css +2 -4
- package/src/components/alert-dialog/alert-dialog.css +1 -1
- package/src/components/autocomplete/autocomplete.css +3 -7
- package/src/components/badge/badge.css +5 -8
- package/src/components/breadcrumb/breadcrumb.css +1 -2
- package/src/components/button/button.css +8 -6
- package/src/components/button-group/button-group.css +17 -1
- package/src/components/calendar/calendar.css +5 -8
- package/src/components/card/card.css +2 -2
- package/src/components/carousel/carousel.css +4 -8
- package/src/components/checkbox/checkbox.css +1 -1
- package/src/components/command/command.css +8 -0
- package/src/components/connected-panel/connected-panel.css +3 -2
- package/src/components/dialog/dialog.css +1 -1
- package/src/components/drawer/drawer.css +1 -1
- package/src/components/empty/empty.css +2 -2
- package/src/components/feedback-state/feedback-state.css +1 -1
- package/src/components/field/field.css +4 -4
- package/src/components/form/form.css +2 -2
- package/src/components/input/input.css +2 -6
- package/src/components/input-otp/input-otp.css +4 -11
- package/src/components/item/item.css +3 -3
- package/src/components/menu/menu.css +5 -4
- package/src/components/menubar/menubar.css +4 -1
- package/src/components/navigation-menu/navigation-menu.css +5 -1
- package/src/components/panel-setting-button/panel-setting-button.css +1 -1
- package/src/components/radio/radio.css +1 -1
- package/src/components/resizable/resizable.css +1 -1
- package/src/components/scroll-area/scroll-area.css +1 -2
- package/src/components/segmented-control/segmented-control.css +8 -1
- package/src/components/select/select.css +2 -6
- package/src/components/sidebar/sidebar.css +12 -12
- package/src/components/sidebar-nav-tree/sidebar-nav-tree.css +8 -8
- package/src/components/slider/slider.css +6 -6
- package/src/components/switch/switch.css +3 -3
- package/src/components/table/table.css +7 -1
- package/src/components/tabs/tabs.css +15 -1
- package/src/components/textarea/textarea.css +2 -6
- package/src/components/toggle/toggle.css +5 -4
- package/src/components/toggle-group/toggle-group.css +4 -4
- package/src/media/media-lightbox/media-lightbox.css +15 -5
- package/src/styles/index.css +1 -0
- package/src/styles/utilities.css +2253 -0
- package/dist/chunk-7VSPECOH.js.map +0 -1
- package/dist/chunk-MXNO63TC.js.map +0 -1
- package/dist/chunk-STCXERLM.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atom63/ui-react",
|
|
3
|
-
"version": "0.2.0-beta.
|
|
3
|
+
"version": "0.2.0-beta.10",
|
|
4
4
|
"description": "React components, layout primitives, media, and theme controls for the Atom63 design system",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/
|
|
8
|
+
"url": "git+https://github.com/atom63/atom63-design-system.git",
|
|
9
9
|
"directory": "packages/ui-react"
|
|
10
10
|
},
|
|
11
|
-
"homepage": "https://github.com/
|
|
11
|
+
"homepage": "https://github.com/atom63/atom63-design-system/tree/main/packages/ui-react#readme",
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/atom63/atom63-design-system/issues"
|
|
14
14
|
},
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public"
|
|
@@ -30,29 +30,30 @@
|
|
|
30
30
|
"style": "./src/styles/index.css",
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|
|
33
|
-
"
|
|
34
|
-
"typescript": "./src/index.ts",
|
|
33
|
+
"@atom63/source": "./src/index.ts",
|
|
35
34
|
"types": "./dist/index.d.ts",
|
|
36
35
|
"import": "./dist/index.js"
|
|
37
36
|
},
|
|
38
37
|
"./layout": {
|
|
39
|
-
"
|
|
40
|
-
"typescript": "./src/layout/index.ts",
|
|
38
|
+
"@atom63/source": "./src/layout/index.ts",
|
|
41
39
|
"types": "./dist/layout/index.d.ts",
|
|
42
40
|
"import": "./dist/layout/index.js"
|
|
43
41
|
},
|
|
44
42
|
"./media": {
|
|
45
|
-
"
|
|
46
|
-
"typescript": "./src/media/index.ts",
|
|
43
|
+
"@atom63/source": "./src/media/index.ts",
|
|
47
44
|
"types": "./dist/media/index.d.ts",
|
|
48
45
|
"import": "./dist/media/index.js"
|
|
49
46
|
},
|
|
50
47
|
"./media/lightbox": {
|
|
51
|
-
"
|
|
52
|
-
"typescript": "./src/media/media-lightbox/parts/index.ts",
|
|
48
|
+
"@atom63/source": "./src/media/media-lightbox/parts/index.ts",
|
|
53
49
|
"types": "./dist/media/media-lightbox/parts/index.d.ts",
|
|
54
50
|
"import": "./dist/media/media-lightbox/parts/index.js"
|
|
55
51
|
},
|
|
52
|
+
"./preview": {
|
|
53
|
+
"@atom63/source": "./src/preview/index.ts",
|
|
54
|
+
"types": "./dist/preview/index.d.ts",
|
|
55
|
+
"import": "./dist/preview/index.js"
|
|
56
|
+
},
|
|
56
57
|
"./recipes.css": "./src/styles/recipes.css",
|
|
57
58
|
"./recipes/media-lightbox.css": "./src/media/media-lightbox/media-lightbox.css",
|
|
58
59
|
"./recipes/accordion.css": "./src/components/accordion/accordion.css",
|
|
@@ -119,8 +120,7 @@
|
|
|
119
120
|
"./reset.css": "./src/styles/reset.css",
|
|
120
121
|
"./styles.css": "./src/styles/index.css",
|
|
121
122
|
"./theme": {
|
|
122
|
-
"
|
|
123
|
-
"typescript": "./src/theme/index.ts",
|
|
123
|
+
"@atom63/source": "./src/theme/index.ts",
|
|
124
124
|
"types": "./dist/theme/index.d.ts",
|
|
125
125
|
"import": "./dist/theme/index.js"
|
|
126
126
|
}
|
|
@@ -134,29 +134,29 @@
|
|
|
134
134
|
"src/**/*.css"
|
|
135
135
|
],
|
|
136
136
|
"dependencies": {
|
|
137
|
-
"@base-ui/react": "
|
|
137
|
+
"@base-ui/react": "1.6.0",
|
|
138
138
|
"clsx": "^2.1.1",
|
|
139
|
-
"date-fns": "^4.4.0",
|
|
140
139
|
"embla-carousel-react": "^8.6.0",
|
|
141
140
|
"input-otp": "^1.4.2",
|
|
142
141
|
"lucide-react": "^1.34.0",
|
|
143
142
|
"motion": "^13.1.1",
|
|
144
143
|
"react-day-picker": "^10.0.1",
|
|
145
|
-
"react-hook-form": "^7.81.0",
|
|
146
144
|
"react-resizable-panels": "^4.12.1",
|
|
147
145
|
"sonner": "^2.0.7",
|
|
148
146
|
"tailwind-merge": "^3.6.0",
|
|
149
|
-
"@atom63/
|
|
150
|
-
"@atom63/
|
|
147
|
+
"@atom63/ui-foundation": "0.1.1-beta.3",
|
|
148
|
+
"@atom63/styles": "0.1.0-beta.6"
|
|
151
149
|
},
|
|
152
150
|
"peerDependencies": {
|
|
153
151
|
"react": "^19.1.0",
|
|
154
|
-
"react-dom": "^19.1.0"
|
|
152
|
+
"react-dom": "^19.1.0",
|
|
153
|
+
"react-hook-form": "^7.81.0"
|
|
155
154
|
},
|
|
156
155
|
"devDependencies": {
|
|
157
156
|
"@eslint/js": "10.0.1",
|
|
158
|
-
"@storybook/addon-docs": "^10.
|
|
159
|
-
"@storybook/react-vite": "^10.
|
|
157
|
+
"@storybook/addon-docs": "^10.6.0",
|
|
158
|
+
"@storybook/react-vite": "^10.6.0",
|
|
159
|
+
"@tailwindcss/cli": "^4.3.2",
|
|
160
160
|
"@testing-library/jest-dom": "6.9.1",
|
|
161
161
|
"@testing-library/react": "16.3.2",
|
|
162
162
|
"@testing-library/user-event": "14.6.1",
|
|
@@ -170,19 +170,23 @@
|
|
|
170
170
|
"jsdom": "29.1.1",
|
|
171
171
|
"react": "^19.2.7",
|
|
172
172
|
"react-dom": "^19.2.7",
|
|
173
|
+
"react-hook-form": "^7.81.0",
|
|
174
|
+
"tailwindcss": "^4.3.2",
|
|
173
175
|
"tsup": "^8.3.5",
|
|
174
176
|
"typescript": "~5.8.3",
|
|
175
177
|
"typescript-eslint": "8.64.0",
|
|
176
|
-
"vitest": "4.1.
|
|
177
|
-
"@atom63/
|
|
178
|
-
"@atom63/
|
|
178
|
+
"vitest": "4.1.11",
|
|
179
|
+
"@atom63/eslint-config": "0.1.0",
|
|
180
|
+
"@atom63/tsconfig": "0.1.0"
|
|
179
181
|
},
|
|
180
182
|
"scripts": {
|
|
181
183
|
"build": "tsup",
|
|
182
184
|
"dev": "tsup --watch",
|
|
183
185
|
"typecheck": "tsc --noEmit",
|
|
184
|
-
"lint": "eslint . --cache --max-warnings
|
|
186
|
+
"lint": "eslint . --cache --max-warnings 11",
|
|
185
187
|
"test": "vitest run",
|
|
186
|
-
"test:watch": "vitest"
|
|
188
|
+
"test:watch": "vitest",
|
|
189
|
+
"generate:utilities": "node scripts/generate-utilities-css.mjs",
|
|
190
|
+
"check:utilities": "node scripts/generate-utilities-css.mjs --check"
|
|
187
191
|
}
|
|
188
192
|
}
|
|
@@ -77,10 +77,8 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
.a63-Accordion-trigger:focus-visible {
|
|
80
|
-
|
|
81
|
-
var(--a63-
|
|
82
|
-
0 0 0 var(--a63-trigger-focus-ring-width)
|
|
83
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
80
|
+
outline: var(--a63-trigger-focus-ring-width) solid
|
|
81
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
.a63-Accordion-trigger[data-disabled] {
|
|
@@ -42,9 +42,7 @@
|
|
|
42
42
|
line-height: 1;
|
|
43
43
|
appearance: none;
|
|
44
44
|
outline: none;
|
|
45
|
-
transition:
|
|
46
|
-
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
47
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
45
|
+
transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
.a63-Autocomplete-input::placeholder {
|
|
@@ -53,10 +51,8 @@
|
|
|
53
51
|
|
|
54
52
|
.a63-Autocomplete-input:focus-visible {
|
|
55
53
|
border-color: var(--a63-action-primary);
|
|
56
|
-
|
|
57
|
-
var(--a63-
|
|
58
|
-
0 0 0 var(--a63-control-focus-ring-width)
|
|
59
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
54
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
55
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
.a63-Autocomplete-input[data-has-start-addon] {
|
|
@@ -101,15 +101,15 @@
|
|
|
101
101
|
}
|
|
102
102
|
.a63-Badge[data-variant='info'] {
|
|
103
103
|
--badge-bg: color-mix(in oklch, var(--a63-status-info) 14%, transparent);
|
|
104
|
-
--badge-fg: var(--a63-
|
|
104
|
+
--badge-fg: var(--a63-badge-info-foreground);
|
|
105
105
|
}
|
|
106
106
|
.a63-Badge[data-variant='success'] {
|
|
107
107
|
--badge-bg: color-mix(in oklch, var(--a63-status-success) 14%, transparent);
|
|
108
|
-
--badge-fg: var(--a63-
|
|
108
|
+
--badge-fg: var(--a63-badge-success-foreground);
|
|
109
109
|
}
|
|
110
110
|
.a63-Badge[data-variant='warning'] {
|
|
111
111
|
--badge-bg: color-mix(in oklch, var(--a63-status-warning) 14%, transparent);
|
|
112
|
-
--badge-fg: var(--a63-
|
|
112
|
+
--badge-fg: var(--a63-badge-warning-foreground);
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
/* ── Palette variants (category hues via --a63-badge-* contract) ───────── */
|
|
@@ -215,9 +215,6 @@
|
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
.a63-Badge:focus-visible {
|
|
218
|
-
outline:
|
|
219
|
-
|
|
220
|
-
var(--a63-marker-shadow),
|
|
221
|
-
0 0 0 var(--a63-control-focus-ring-width)
|
|
222
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
218
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
219
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
223
220
|
}
|
|
@@ -42,9 +42,8 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
.a63-Breadcrumb-link:focus-visible {
|
|
45
|
-
outline: none;
|
|
46
45
|
border-radius: var(--radius-sm, 0.25rem);
|
|
47
|
-
|
|
46
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
48
47
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -169,7 +169,9 @@
|
|
|
169
169
|
border-radius: 0 0 50% 50% / 0 0 100% 100%;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.
|
|
172
|
+
/* Disabled buttons keep their resting look under the pointer. `:where()` keeps
|
|
173
|
+
the specificity of a plain `:hover`, so the rules that override it still do. */
|
|
174
|
+
.a63-Button:where(:not(:disabled, [data-disabled])):hover {
|
|
173
175
|
background-color: var(--button-state-hover-background);
|
|
174
176
|
border-color: var(--button-state-hover-border-color);
|
|
175
177
|
}
|
|
@@ -182,11 +184,11 @@
|
|
|
182
184
|
transform: var(--button-motion-press);
|
|
183
185
|
}
|
|
184
186
|
|
|
187
|
+
/* The ring is an outline, not a box-shadow layer: recipes that set a Button's
|
|
188
|
+
box-shadow (ButtonGroup cells, ScrollableList chevrons, ConnectedPanel
|
|
189
|
+
triggers) would otherwise replace it, and forced-colors mode drops shadows. */
|
|
185
190
|
.a63-Button:focus-visible {
|
|
186
|
-
|
|
187
|
-
var(--button-shadow),
|
|
188
|
-
var(--button-tint-drop),
|
|
189
|
-
0 0 0 var(--a63-control-focus-ring-width) var(--button-focus-ring);
|
|
191
|
+
outline: var(--a63-control-focus-ring-width) solid var(--button-focus-ring);
|
|
190
192
|
}
|
|
191
193
|
|
|
192
194
|
.a63-Button:disabled,
|
|
@@ -358,7 +360,7 @@
|
|
|
358
360
|
text-underline-offset: 4px;
|
|
359
361
|
}
|
|
360
362
|
|
|
361
|
-
.a63-Button[data-variant='link']:hover,
|
|
363
|
+
.a63-Button[data-variant='link']:where(:not(:disabled, [data-disabled])):hover,
|
|
362
364
|
.a63-Button[data-variant='link']:active,
|
|
363
365
|
.a63-Button[data-variant='link'][data-pressed] {
|
|
364
366
|
text-decoration: underline;
|
|
@@ -44,10 +44,26 @@
|
|
|
44
44
|
flex-direction: column;
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
/* Focused member floats above its neighbours
|
|
47
|
+
/* Focused member floats above its neighbours, and its ring sits inside its own
|
|
48
|
+
edge: the horizontal group scrolls (overflow-x), which would clip an outer
|
|
49
|
+
ring at the group's edges. */
|
|
48
50
|
.a63-ButtonGroup > *:focus-visible {
|
|
49
51
|
position: relative;
|
|
50
52
|
z-index: 1;
|
|
53
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* On a loud fill (primary, destructive, …) a brand ring drawn inside the cell
|
|
57
|
+
disappears into the fill, so it takes the label colour, which contrasts with
|
|
58
|
+
the fill by design. Quiet cells (listed below) keep the brand ring. */
|
|
59
|
+
.a63-ButtonGroup
|
|
60
|
+
> [data-button]:not(
|
|
61
|
+
[data-variant='ghost'],
|
|
62
|
+
[data-variant='link'],
|
|
63
|
+
[data-variant='secondary'],
|
|
64
|
+
[data-variant='outline']
|
|
65
|
+
):focus-visible {
|
|
66
|
+
outline-color: var(--button-foreground);
|
|
51
67
|
}
|
|
52
68
|
|
|
53
69
|
.a63-ButtonGroup > [data-slot] {
|
|
@@ -83,9 +83,7 @@
|
|
|
83
83
|
color: var(--a63-text-primary);
|
|
84
84
|
cursor: pointer;
|
|
85
85
|
outline: none;
|
|
86
|
-
transition:
|
|
87
|
-
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
88
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
86
|
+
transition: background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
89
87
|
}
|
|
90
88
|
.a63-Calendar-nav-button:not(:disabled):hover {
|
|
91
89
|
background-color: var(--a63-surface-control-hover);
|
|
@@ -95,7 +93,7 @@
|
|
|
95
93
|
opacity: 0.64;
|
|
96
94
|
}
|
|
97
95
|
.a63-Calendar-nav-button:focus-visible {
|
|
98
|
-
|
|
96
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
99
97
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
100
98
|
}
|
|
101
99
|
|
|
@@ -141,7 +139,7 @@
|
|
|
141
139
|
}
|
|
142
140
|
.a63-Calendar-dropdown-root:has(:focus) {
|
|
143
141
|
border-color: var(--a63-focus-ring);
|
|
144
|
-
|
|
142
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
145
143
|
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
146
144
|
}
|
|
147
145
|
.a63-Calendar-dropdown-root .a63-Calendar-chevron {
|
|
@@ -194,8 +192,7 @@
|
|
|
194
192
|
transition:
|
|
195
193
|
color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
196
194
|
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
197
|
-
border-radius var(--a63-control-feedback-duration) var(--a63-control-feedback-ease)
|
|
198
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
195
|
+
border-radius var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
199
196
|
}
|
|
200
197
|
|
|
201
198
|
/* Hover on any non-selected day. */
|
|
@@ -239,7 +236,7 @@
|
|
|
239
236
|
|
|
240
237
|
.a63-Calendar-day-button:focus-visible {
|
|
241
238
|
z-index: 1;
|
|
242
|
-
|
|
239
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
243
240
|
color-mix(in oklch, var(--a63-focus-ring) 50%, transparent);
|
|
244
241
|
}
|
|
245
242
|
|
|
@@ -312,7 +312,7 @@
|
|
|
312
312
|
display: flex;
|
|
313
313
|
align-items: center;
|
|
314
314
|
gap: var(--a63-space-2);
|
|
315
|
-
margin-
|
|
315
|
+
margin-inline-start: auto;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
318
|
/* ── Link wrapper (unclipped so interactive lift isn't cut off) ────────── */
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
outline: none;
|
|
326
326
|
}
|
|
327
327
|
.a63-CardLink:focus-visible {
|
|
328
|
-
|
|
328
|
+
outline: 2px solid var(--a63-focus-ring);
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
/* Responsive padding: once the CARD is wide enough, the `sm` step wins
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
display: flex;
|
|
24
24
|
}
|
|
25
25
|
.a63-Carousel-track[data-orientation='horizontal'] {
|
|
26
|
-
margin-
|
|
26
|
+
margin-inline-start: calc(var(--carousel-gutter) * -1);
|
|
27
27
|
}
|
|
28
28
|
.a63-Carousel-track[data-orientation='vertical'] {
|
|
29
29
|
flex-direction: column;
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
flex: 0 0 100%;
|
|
36
36
|
}
|
|
37
37
|
.a63-Carousel-item[data-orientation='horizontal'] {
|
|
38
|
-
padding-
|
|
38
|
+
padding-inline-start: var(--carousel-gutter);
|
|
39
39
|
}
|
|
40
40
|
.a63-Carousel-item[data-orientation='vertical'] {
|
|
41
41
|
padding-top: var(--carousel-gutter);
|
|
@@ -64,7 +64,6 @@
|
|
|
64
64
|
transition:
|
|
65
65
|
background-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
66
66
|
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
67
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
68
67
|
opacity var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
69
68
|
}
|
|
70
69
|
|
|
@@ -73,11 +72,8 @@
|
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
.a63-Carousel-nav:focus-visible {
|
|
76
|
-
|
|
77
|
-
var(--a63-
|
|
78
|
-
var(--a63-overlay-shadow),
|
|
79
|
-
0 0 0 var(--a63-control-focus-ring-width)
|
|
80
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
75
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
76
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
81
77
|
}
|
|
82
78
|
|
|
83
79
|
.a63-Carousel-nav:disabled {
|
|
@@ -78,6 +78,14 @@
|
|
|
78
78
|
align-items: center;
|
|
79
79
|
gap: var(--a63-space-2);
|
|
80
80
|
padding: 0.625rem 0.875rem;
|
|
81
|
+
border-radius: var(--a63-control-radius);
|
|
82
|
+
}
|
|
83
|
+
/* The search field has no chrome of its own, so the row rings as a field when
|
|
84
|
+
it holds keyboard focus; inset so the popup's rounded corners do not clip it. */
|
|
85
|
+
.a63-Command-input-wrapper:has(> .a63-Command-input:focus-visible) {
|
|
86
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
87
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
88
|
+
outline-offset: calc(-1 * var(--a63-space-1_5));
|
|
81
89
|
}
|
|
82
90
|
.a63-Command-input-icon {
|
|
83
91
|
display: inline-flex;
|
|
@@ -257,9 +257,10 @@
|
|
|
257
257
|
color: var(--a63-text-primary);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
/* The Button's outline ring, drawn inside the row: the panel clips its
|
|
261
|
+
children (`overflow: hidden`) to its rounded corners. */
|
|
260
262
|
.a63-ConnectedPanel-trigger:focus-visible {
|
|
261
|
-
|
|
262
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
263
|
+
outline-offset: calc(-1 * var(--a63-control-focus-ring-width));
|
|
263
264
|
}
|
|
264
265
|
|
|
265
266
|
/* Icon / text / chevron row lives inside the Button's label wrapper. */
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
text-underline-offset: 4px;
|
|
87
87
|
}
|
|
88
88
|
.a63-Empty-description a:hover {
|
|
89
|
-
color: var(--a63-
|
|
89
|
+
color: var(--a63-text-accent);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
/* ── Content ───────────────────────────────────────────────────────────── */
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
var(--a63-space-3) var(--a63-space-3);
|
|
128
128
|
border-radius: var(--radius-md);
|
|
129
129
|
background-color: color-mix(in oklch, var(--a63-surface-muted) 50%, transparent);
|
|
130
|
-
text-align:
|
|
130
|
+
text-align: start;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
.a63-Empty-errorText {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
color: var(--a63-text-primary);
|
|
74
74
|
}
|
|
75
75
|
.a63-Field[data-invalid='true'] {
|
|
76
|
-
color: var(--a63-
|
|
76
|
+
color: var(--a63-text-danger);
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
/* orientation: vertical (default) — stretch controls to the field width */
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
/* ── FieldDescription ──────────────────────────────────────────────────── */
|
|
191
191
|
.a63-FieldDescription {
|
|
192
192
|
margin: 0;
|
|
193
|
-
text-align:
|
|
193
|
+
text-align: start;
|
|
194
194
|
color: var(--a63-text-secondary);
|
|
195
195
|
font-family: var(--a63-control-font-family);
|
|
196
196
|
font-size: var(--a63-control-font-size-sm);
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
text-underline-offset: 4px;
|
|
219
219
|
}
|
|
220
220
|
.a63-FieldDescription a:hover {
|
|
221
|
-
color: var(--a63-
|
|
221
|
+
color: var(--a63-text-accent);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
/* ── FieldSeparator ────────────────────────────────────────────────────── */
|
|
@@ -245,7 +245,7 @@
|
|
|
245
245
|
|
|
246
246
|
/* ── FieldError ────────────────────────────────────────────────────────── */
|
|
247
247
|
.a63-FieldError {
|
|
248
|
-
color: var(--a63-
|
|
248
|
+
color: var(--a63-text-danger);
|
|
249
249
|
font-family: var(--a63-control-font-family);
|
|
250
250
|
font-size: var(--a63-control-font-size-sm);
|
|
251
251
|
font-weight: 400;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
/* FormLabel wraps Label (.a63-Label); flip to danger when the field errors. */
|
|
14
14
|
.a63-FormLabel[data-error='true'] {
|
|
15
|
-
color: var(--a63-
|
|
15
|
+
color: var(--a63-text-danger);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.a63-FormDescription {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
.a63-FormMessage {
|
|
27
27
|
margin: 0;
|
|
28
|
-
color: var(--a63-
|
|
28
|
+
color: var(--a63-text-danger);
|
|
29
29
|
font-family: var(--a63-control-font-family);
|
|
30
30
|
font-size: var(--a63-control-font-size-sm);
|
|
31
31
|
line-height: var(--typography-sm-line-height);
|
|
@@ -57,9 +57,7 @@
|
|
|
57
57
|
font-family: var(--a63-control-font-family);
|
|
58
58
|
font-size: max(var(--field-font-size), var(--a63-editable-font-size-min, 0px));
|
|
59
59
|
cursor: text;
|
|
60
|
-
transition:
|
|
61
|
-
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
62
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
60
|
+
transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
/* Drop the recessed field shadow (shadow={false}) — for inputs on translucent
|
|
@@ -134,9 +132,7 @@
|
|
|
134
132
|
.a63-Input:not([data-unstyled]):focus-within,
|
|
135
133
|
.a63-InputGroup:focus-within {
|
|
136
134
|
border-color: var(--field-focus-border);
|
|
137
|
-
|
|
138
|
-
var(--field-shadow),
|
|
139
|
-
0 0 0 var(--a63-control-focus-ring-width) var(--field-focus-ring);
|
|
135
|
+
outline: var(--a63-control-focus-ring-width) solid var(--field-focus-ring);
|
|
140
136
|
}
|
|
141
137
|
|
|
142
138
|
.a63-Input[data-invalid],
|
|
@@ -56,9 +56,7 @@
|
|
|
56
56
|
font-family: var(--a63-control-font-family);
|
|
57
57
|
font-size: max(var(--a63-control-font-size-md), var(--a63-editable-font-size-min, 0px));
|
|
58
58
|
outline: none;
|
|
59
|
-
transition:
|
|
60
|
-
border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease),
|
|
61
|
-
box-shadow var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
59
|
+
transition: border-color var(--a63-control-feedback-duration) var(--a63-control-feedback-ease);
|
|
62
60
|
}
|
|
63
61
|
|
|
64
62
|
/* Rounded outer corners + the missing leading border on the first slot. */
|
|
@@ -76,10 +74,8 @@
|
|
|
76
74
|
.a63-InputOTP-slot[data-active='true'] {
|
|
77
75
|
z-index: 1;
|
|
78
76
|
border-color: var(--otp-accent);
|
|
79
|
-
|
|
80
|
-
var(--a63-
|
|
81
|
-
0 0 0 var(--a63-control-focus-ring-width)
|
|
82
|
-
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
77
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
78
|
+
var(--a63-control-focus-ring-color, var(--a63-focus-ring));
|
|
83
79
|
}
|
|
84
80
|
|
|
85
81
|
/* Invalid state — recolor the border + active ring to danger. */
|
|
@@ -90,10 +86,7 @@
|
|
|
90
86
|
.a63-InputOTP-slot[aria-invalid='true'][data-active='true'],
|
|
91
87
|
.a63-InputOTP:has(.a63-InputOTP-input[aria-invalid='true']) .a63-InputOTP-slot[data-active='true'] {
|
|
92
88
|
border-color: var(--a63-action-danger);
|
|
93
|
-
|
|
94
|
-
var(--a63-field-shadow),
|
|
95
|
-
0 0 0 var(--a63-control-focus-ring-width)
|
|
96
|
-
color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
|
|
89
|
+
outline-color: color-mix(in oklch, var(--a63-action-danger) 35%, transparent);
|
|
97
90
|
}
|
|
98
91
|
|
|
99
92
|
/* Fake caret — a blinking hairline centered in the active empty slot. */
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
}
|
|
44
44
|
.a63-Item:focus-visible {
|
|
45
45
|
border-color: var(--a63-focus-ring);
|
|
46
|
-
|
|
46
|
+
outline: var(--a63-control-focus-ring-width) solid
|
|
47
47
|
color-mix(in oklch, var(--a63-focus-ring) 50%, transparent);
|
|
48
48
|
}
|
|
49
49
|
/* Interaction belongs to the rendered semantic element, never to a static row. */
|
|
@@ -183,7 +183,7 @@
|
|
|
183
183
|
font-size: var(--a63-control-font-size-sm);
|
|
184
184
|
font-weight: 400;
|
|
185
185
|
line-height: 1.5;
|
|
186
|
-
text-align:
|
|
186
|
+
text-align: start;
|
|
187
187
|
-webkit-line-clamp: 2;
|
|
188
188
|
line-clamp: 2;
|
|
189
189
|
-webkit-box-orient: vertical;
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
text-underline-offset: 4px;
|
|
198
198
|
}
|
|
199
199
|
.a63-ItemDescription a:hover {
|
|
200
|
-
color: var(--a63-
|
|
200
|
+
color: var(--a63-text-accent);
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
/* ── Actions / Header / Footer ──────────────────────────────────────────── */
|
|
@@ -106,7 +106,8 @@
|
|
|
106
106
|
background-color: var(--a63-menu-highlight-primary-background, var(--a63-action-primary));
|
|
107
107
|
color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
|
|
108
108
|
}
|
|
109
|
-
.a63-Menu-popup[data-tone='primary'] .a63-Menu-item[data-highlighted] svg
|
|
109
|
+
.a63-Menu-popup[data-tone='primary'] .a63-Menu-item[data-highlighted] svg,
|
|
110
|
+
.a63-Menu-popup[data-tone='primary'] .a63-Menu-item[data-highlighted] .a63-Menu-shortcut {
|
|
110
111
|
color: var(--a63-menu-highlight-primary-foreground, var(--a63-action-primary-foreground));
|
|
111
112
|
}
|
|
112
113
|
|
|
@@ -116,10 +117,10 @@
|
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
.a63-Menu-item[data-variant='destructive'] {
|
|
119
|
-
color: var(--a63-menu-destructive-foreground, var(--a63-
|
|
120
|
+
color: var(--a63-menu-destructive-foreground, var(--a63-text-danger));
|
|
120
121
|
}
|
|
121
122
|
.a63-Menu-item[data-variant='destructive'] svg {
|
|
122
|
-
color: var(--a63-menu-destructive-foreground, var(--a63-
|
|
123
|
+
color: var(--a63-menu-destructive-foreground, var(--a63-text-danger));
|
|
123
124
|
}
|
|
124
125
|
.a63-Menu-item[data-variant='destructive'] .a63-Menu-shortcut {
|
|
125
126
|
color: currentColor;
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
--a63-menu-destructive-highlight-background,
|
|
130
131
|
color-mix(in oklch, var(--a63-action-danger) 10%, transparent)
|
|
131
132
|
);
|
|
132
|
-
color: var(--a63-menu-destructive-foreground, var(--a63-
|
|
133
|
+
color: var(--a63-menu-destructive-foreground, var(--a63-text-danger));
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
/* ── Item indicator (checkbox / radio marker) ──────────────────────────── */
|