@atelier-ui/react 0.3.5 → 0.3.6
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 +25 -2
- package/package.json +4 -1
- package/src/lib/accordion/atl-accordion.d.ts +1 -1
- package/src/lib/accordion/atl-accordion.d.ts.map +1 -1
- package/src/lib/accordion/atl-accordion.js +1 -1
- package/src/lib/accordion/atl-accordion.js.map +1 -1
- package/src/lib/alert/atl-alert.d.ts +1 -1
- package/src/lib/alert/atl-alert.d.ts.map +1 -1
- package/src/lib/alert/atl-alert.js +1 -1
- package/src/lib/alert/atl-alert.js.map +1 -1
- package/src/lib/avatar/atl-avatar.d.ts +1 -1
- package/src/lib/avatar/atl-avatar.d.ts.map +1 -1
- package/src/lib/avatar/atl-avatar.js +1 -1
- package/src/lib/avatar/atl-avatar.js.map +1 -1
- package/src/lib/badge/atl-badge.d.ts +1 -1
- package/src/lib/badge/atl-badge.d.ts.map +1 -1
- package/src/lib/badge/atl-badge.js +1 -1
- package/src/lib/badge/atl-badge.js.map +1 -1
- package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts +1 -1
- package/src/lib/breadcrumbs/atl-breadcrumbs.d.ts.map +1 -1
- package/src/lib/breadcrumbs/atl-breadcrumbs.js +2 -2
- package/src/lib/breadcrumbs/atl-breadcrumbs.js.map +1 -1
- package/src/lib/button/atl-button.d.ts +1 -1
- package/src/lib/button/atl-button.d.ts.map +1 -1
- package/src/lib/button/atl-button.js +1 -1
- package/src/lib/button/atl-button.js.map +1 -1
- package/src/lib/card/atl-card.d.ts +1 -1
- package/src/lib/card/atl-card.d.ts.map +1 -1
- package/src/lib/card/atl-card.js +1 -1
- package/src/lib/card/atl-card.js.map +1 -1
- package/src/lib/chat/atl-chat.d.ts +1 -1
- package/src/lib/chat/atl-chat.d.ts.map +1 -1
- package/src/lib/chat/atl-chat.js +1 -1
- package/src/lib/chat/atl-chat.js.map +1 -1
- package/src/lib/checkbox/atl-checkbox.d.ts +1 -1
- package/src/lib/checkbox/atl-checkbox.d.ts.map +1 -1
- package/src/lib/checkbox/atl-checkbox.js +1 -1
- package/src/lib/checkbox/atl-checkbox.js.map +1 -1
- package/src/lib/code-block/atl-code-block.d.ts +1 -1
- package/src/lib/code-block/atl-code-block.d.ts.map +1 -1
- package/src/lib/code-block/atl-code-block.js +1 -1
- package/src/lib/code-block/atl-code-block.js.map +1 -1
- package/src/lib/combobox/atl-combobox.d.ts +1 -1
- package/src/lib/combobox/atl-combobox.d.ts.map +1 -1
- package/src/lib/combobox/atl-combobox.js +1 -1
- package/src/lib/combobox/atl-combobox.js.map +1 -1
- package/src/lib/dialog/atl-dialog.d.ts +1 -1
- package/src/lib/dialog/atl-dialog.d.ts.map +1 -1
- package/src/lib/dialog/atl-dialog.js +1 -1
- package/src/lib/dialog/atl-dialog.js.map +1 -1
- package/src/lib/drawer/atl-drawer.d.ts +1 -1
- package/src/lib/drawer/atl-drawer.d.ts.map +1 -1
- package/src/lib/drawer/atl-drawer.js +2 -2
- package/src/lib/drawer/atl-drawer.js.map +1 -1
- package/src/lib/icon/atl-icon.d.ts +1 -1
- package/src/lib/icon/atl-icon.d.ts.map +1 -1
- package/src/lib/icon/atl-icon.js +1 -1
- package/src/lib/icon/atl-icon.js.map +1 -1
- package/src/lib/input/atl-input.d.ts +1 -1
- package/src/lib/input/atl-input.d.ts.map +1 -1
- package/src/lib/input/atl-input.js +1 -1
- package/src/lib/input/atl-input.js.map +1 -1
- package/src/lib/menu/atl-menu.d.ts +2 -1
- package/src/lib/menu/atl-menu.d.ts.map +1 -1
- package/src/lib/menu/atl-menu.js +2 -1
- package/src/lib/menu/atl-menu.js.map +1 -1
- package/src/lib/pagination/atl-pagination.d.ts +1 -1
- package/src/lib/pagination/atl-pagination.d.ts.map +1 -1
- package/src/lib/pagination/atl-pagination.js +1 -1
- package/src/lib/pagination/atl-pagination.js.map +1 -1
- package/src/lib/progress/atl-progress.d.ts +1 -1
- package/src/lib/progress/atl-progress.d.ts.map +1 -1
- package/src/lib/progress/atl-progress.js +1 -1
- package/src/lib/progress/atl-progress.js.map +1 -1
- package/src/lib/radio/atl-radio.d.ts +1 -1
- package/src/lib/radio/atl-radio.d.ts.map +1 -1
- package/src/lib/radio/atl-radio.js +1 -1
- package/src/lib/radio/atl-radio.js.map +1 -1
- package/src/lib/radio-group/atl-radio-group.d.ts +1 -1
- package/src/lib/radio-group/atl-radio-group.d.ts.map +1 -1
- package/src/lib/radio-group/atl-radio-group.js +1 -1
- package/src/lib/radio-group/atl-radio-group.js.map +1 -1
- package/src/lib/select/atl-select.d.ts +2 -1
- package/src/lib/select/atl-select.d.ts.map +1 -1
- package/src/lib/select/atl-select.js +2 -1
- package/src/lib/select/atl-select.js.map +1 -1
- package/src/lib/skeleton/atl-skeleton.d.ts +1 -1
- package/src/lib/skeleton/atl-skeleton.d.ts.map +1 -1
- package/src/lib/skeleton/atl-skeleton.js +1 -1
- package/src/lib/skeleton/atl-skeleton.js.map +1 -1
- package/src/lib/stepper/atl-stepper.d.ts +1 -1
- package/src/lib/stepper/atl-stepper.d.ts.map +1 -1
- package/src/lib/stepper/atl-stepper.js +1 -1
- package/src/lib/stepper/atl-stepper.js.map +1 -1
- package/src/lib/table/atl-table.d.ts +1 -1
- package/src/lib/table/atl-table.d.ts.map +1 -1
- package/src/lib/table/atl-table.js +1 -1
- package/src/lib/table/atl-table.js.map +1 -1
- package/src/lib/tabs/atl-tabs.d.ts +1 -1
- package/src/lib/tabs/atl-tabs.d.ts.map +1 -1
- package/src/lib/tabs/atl-tabs.js +1 -1
- package/src/lib/tabs/atl-tabs.js.map +1 -1
- package/src/lib/textarea/atl-textarea.d.ts +1 -1
- package/src/lib/textarea/atl-textarea.d.ts.map +1 -1
- package/src/lib/textarea/atl-textarea.js +1 -1
- package/src/lib/textarea/atl-textarea.js.map +1 -1
- package/src/lib/toast/atl-toast.d.ts +1 -1
- package/src/lib/toast/atl-toast.d.ts.map +1 -1
- package/src/lib/toast/atl-toast.js +1 -1
- package/src/lib/toast/atl-toast.js.map +1 -1
- package/src/lib/toggle/atl-toggle.d.ts +1 -1
- package/src/lib/toggle/atl-toggle.d.ts.map +1 -1
- package/src/lib/toggle/atl-toggle.js +1 -1
- package/src/lib/toggle/atl-toggle.js.map +1 -1
- package/src/lib/tooltip/atl-tooltip.d.ts +2 -1
- package/src/lib/tooltip/atl-tooltip.d.ts.map +1 -1
- package/src/lib/tooltip/atl-tooltip.js +2 -1
- package/src/lib/tooltip/atl-tooltip.js.map +1 -1
- package/src/lib/accordion/atl-accordion.css +0 -145
- package/src/lib/alert/atl-alert.css +0 -102
- package/src/lib/avatar/atl-avatar.css +0 -181
- package/src/lib/badge/atl-badge.css +0 -74
- package/src/lib/breadcrumbs/atl-breadcrumbs.css +0 -99
- package/src/lib/button/atl-button.css +0 -173
- package/src/lib/card/atl-card.css +0 -91
- package/src/lib/chat/atl-chat.css +0 -506
- package/src/lib/checkbox/atl-checkbox.css +0 -151
- package/src/lib/code-block/atl-code-block.css +0 -136
- package/src/lib/combobox/atl-combobox.css +0 -256
- package/src/lib/dialog/atl-dialog.css +0 -198
- package/src/lib/drawer/atl-drawer.css +0 -265
- package/src/lib/icon/atl-icon.css +0 -47
- package/src/lib/input/atl-input.css +0 -121
- package/src/lib/menu/atl-menu.css +0 -122
- package/src/lib/pagination/atl-pagination.css +0 -101
- package/src/lib/progress/atl-progress.css +0 -84
- package/src/lib/radio/atl-radio.css +0 -92
- package/src/lib/radio-group/atl-radio-group.css +0 -46
- package/src/lib/select/atl-select.css +0 -124
- package/src/lib/skeleton/atl-skeleton.css +0 -71
- package/src/lib/stepper/atl-stepper.css +0 -199
- package/src/lib/table/atl-table.css +0 -257
- package/src/lib/tabs/atl-tabs.css +0 -161
- package/src/lib/textarea/atl-textarea.css +0 -119
- package/src/lib/toast/atl-toast.css +0 -168
- package/src/lib/toggle/atl-toggle.css +0 -138
- package/src/lib/tooltip/atl-tooltip.css +0 -97
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
/* Geometry contract: every size this component states is a border-box size.
|
|
2
|
-
* Declared with the component rather than as a global reset, so it ships in the
|
|
3
|
-
* same file as the sizes it governs and no consuming app has to supply one.
|
|
4
|
-
* Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
|
|
5
|
-
* See ADR-0043. */
|
|
6
|
-
.atl-code-block,
|
|
7
|
-
.atl-code-block * {
|
|
8
|
-
box-sizing: border-box;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
/* ============================================================
|
|
12
|
-
atl-code-block.css
|
|
13
|
-
============================================================ */
|
|
14
|
-
|
|
15
|
-
.atl-code-block {
|
|
16
|
-
display: block;
|
|
17
|
-
border: var(--ui-border-width) solid var(--ui-color-border);
|
|
18
|
-
border-radius: var(--ui-radius-lg);
|
|
19
|
-
overflow: hidden;
|
|
20
|
-
font-family: var(--ui-font-family);
|
|
21
|
-
/* The leading every descendant inherits, stated so the component keeps its
|
|
22
|
-
own rhythm rather than the consuming app's prose leading (ADR-0052).
|
|
23
|
-
Chrome around the code, so tight — the code element states the code leading itself. */
|
|
24
|
-
line-height: var(--ui-line-height-tight);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* ---------------------------------------------------------------------------
|
|
28
|
-
Header
|
|
29
|
-
--------------------------------------------------------------------------- */
|
|
30
|
-
|
|
31
|
-
.code-block-header {
|
|
32
|
-
display: flex;
|
|
33
|
-
align-items: center;
|
|
34
|
-
justify-content: space-between;
|
|
35
|
-
/* No block padding: the row is a centred flex line, so `min-height` alone
|
|
36
|
-
* decides the height. Authoring 12+12 around the 0.72rem mono label rendered
|
|
37
|
-
* 43px against a 40px token, and deriving the padding from the label's metrics
|
|
38
|
-
* only moves the guess — the label's line box is not the header's business.
|
|
39
|
-
* See ADR-0047. */
|
|
40
|
-
/* Stated, not inherited: an inherited line-height makes the box grow with the
|
|
41
|
-
* text metrics, which is how three controls measured right on one machine and
|
|
42
|
-
* wrong on another (ADR-0048). */
|
|
43
|
-
line-height: var(--ui-line-height-tight);
|
|
44
|
-
padding: 0 var(--ui-spacing-4);
|
|
45
|
-
background: var(--ui-color-surface-raised);
|
|
46
|
-
border-bottom: var(--ui-border-width) solid var(--ui-color-border);
|
|
47
|
-
min-height: var(--ui-control-height-md);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.code-block-label {
|
|
51
|
-
font-family: var(--ui-font-mono);
|
|
52
|
-
font-size: var(--ui-font-size-xs);
|
|
53
|
-
font-weight: var(--ui-font-weight-semibold);
|
|
54
|
-
letter-spacing: 0.03em;
|
|
55
|
-
color: var(--ui-color-text-muted);
|
|
56
|
-
text-transform: lowercase;
|
|
57
|
-
user-select: none;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* ---------------------------------------------------------------------------
|
|
61
|
-
Copy button
|
|
62
|
-
--------------------------------------------------------------------------- */
|
|
63
|
-
|
|
64
|
-
.code-block-copy {
|
|
65
|
-
display: inline-flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
gap: var(--ui-spacing-1);
|
|
68
|
-
padding: var(--ui-spacing-1) var(--ui-spacing-2);
|
|
69
|
-
border: var(--ui-border-width) solid var(--ui-color-border);
|
|
70
|
-
border-radius: var(--ui-radius-sm);
|
|
71
|
-
background: transparent;
|
|
72
|
-
color: var(--ui-color-text-muted);
|
|
73
|
-
font-family: inherit;
|
|
74
|
-
font-size: var(--ui-font-size-xs);
|
|
75
|
-
font-weight: var(--ui-font-weight-medium);
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
transition:
|
|
78
|
-
color var(--ui-transition-fast),
|
|
79
|
-
background var(--ui-transition-fast),
|
|
80
|
-
border-color var(--ui-transition-fast);
|
|
81
|
-
white-space: nowrap;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.code-block-copy:hover {
|
|
85
|
-
color: var(--ui-color-text);
|
|
86
|
-
background: var(--ui-color-surface);
|
|
87
|
-
border-color: var(--ui-color-input-border);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.code-block-copy:focus-visible {
|
|
91
|
-
outline: none;
|
|
92
|
-
box-shadow: var(--ui-focus-ring);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* ---------------------------------------------------------------------------
|
|
96
|
-
Code body
|
|
97
|
-
--------------------------------------------------------------------------- */
|
|
98
|
-
|
|
99
|
-
.code-block-body {
|
|
100
|
-
background: var(--ui-color-surface);
|
|
101
|
-
overflow-x: auto;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.code-block-pre {
|
|
105
|
-
margin: 0;
|
|
106
|
-
padding: var(--ui-spacing-4);
|
|
107
|
-
font: var(--ui-type-code);
|
|
108
|
-
color: var(--ui-color-text);
|
|
109
|
-
white-space: pre;
|
|
110
|
-
tab-size: 2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* ---------------------------------------------------------------------------
|
|
114
|
-
Line numbers
|
|
115
|
-
--------------------------------------------------------------------------- */
|
|
116
|
-
|
|
117
|
-
.code-line {
|
|
118
|
-
display: flex;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.code-line-number {
|
|
122
|
-
display: inline-block;
|
|
123
|
-
min-width: 2rem;
|
|
124
|
-
padding-right: var(--ui-spacing-3);
|
|
125
|
-
color: var(--ui-color-text-muted);
|
|
126
|
-
text-align: right;
|
|
127
|
-
user-select: none;
|
|
128
|
-
border-right: var(--ui-border-width) solid var(--ui-color-border);
|
|
129
|
-
margin-right: var(--ui-spacing-3);
|
|
130
|
-
flex-shrink: 0;
|
|
131
|
-
opacity: 0.6;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.code-line-text {
|
|
135
|
-
flex: 1;
|
|
136
|
-
}
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
/* Geometry contract: every size this component states is a border-box size.
|
|
2
|
-
* Declared with the component rather than as a global reset, so it ships in the
|
|
3
|
-
* same file as the sizes it governs and no consuming app has to supply one.
|
|
4
|
-
* Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
|
|
5
|
-
* See ADR-0043. */
|
|
6
|
-
:is(
|
|
7
|
-
.atl-combobox,
|
|
8
|
-
.atl-combobox-check,
|
|
9
|
-
.atl-combobox-error-message,
|
|
10
|
-
.atl-combobox-errors,
|
|
11
|
-
.atl-combobox-icon,
|
|
12
|
-
.atl-combobox-input,
|
|
13
|
-
.atl-combobox-no-results,
|
|
14
|
-
.atl-combobox-option,
|
|
15
|
-
.atl-combobox-panel,
|
|
16
|
-
.atl-combobox-wrapper
|
|
17
|
-
),
|
|
18
|
-
:is(
|
|
19
|
-
.atl-combobox,
|
|
20
|
-
.atl-combobox-check,
|
|
21
|
-
.atl-combobox-error-message,
|
|
22
|
-
.atl-combobox-errors,
|
|
23
|
-
.atl-combobox-icon,
|
|
24
|
-
.atl-combobox-input,
|
|
25
|
-
.atl-combobox-no-results,
|
|
26
|
-
.atl-combobox-option,
|
|
27
|
-
.atl-combobox-panel,
|
|
28
|
-
.atl-combobox-wrapper
|
|
29
|
-
)
|
|
30
|
-
* {
|
|
31
|
-
box-sizing: border-box;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* ============================================================
|
|
35
|
-
atl-combobox.css
|
|
36
|
-
============================================================ */
|
|
37
|
-
|
|
38
|
-
.atl-combobox {
|
|
39
|
-
display: block;
|
|
40
|
-
position: relative;
|
|
41
|
-
font-family: var(--ui-font-family);
|
|
42
|
-
/* The leading every descendant inherits, stated so the component keeps its
|
|
43
|
-
own rhythm rather than the consuming app's prose leading (ADR-0052).
|
|
44
|
-
A single-line field over a list of rows, so tight. */
|
|
45
|
-
line-height: var(--ui-line-height-tight);
|
|
46
|
-
font-size: var(--ui-font-size-md);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* ---------------------------------------------------------------------------
|
|
50
|
-
Input wrapper
|
|
51
|
-
--------------------------------------------------------------------------- */
|
|
52
|
-
.atl-combobox-wrapper {
|
|
53
|
-
position: relative;
|
|
54
|
-
display: flex;
|
|
55
|
-
align-items: center;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.atl-combobox-input {
|
|
59
|
-
width: 100%;
|
|
60
|
-
min-height: var(--ui-control-height-md);
|
|
61
|
-
box-sizing: border-box;
|
|
62
|
-
/* Control line-height plus padding derived from the height, so the box does not
|
|
63
|
-
* depend on which font is installed. Authored 0.625rem padding with an inherited
|
|
64
|
-
* line-height rendered 40px with Instrument Sans and 41px with the fallback — the
|
|
65
|
-
* defect only appeared in CI. See ADR-0048. */
|
|
66
|
-
line-height: var(--ui-line-height-tight);
|
|
67
|
-
padding: calc(
|
|
68
|
-
(
|
|
69
|
-
var(--ui-control-height-md) - var(--ui-line-height-tight) *
|
|
70
|
-
var(--ui-font-size-md)
|
|
71
|
-
) /
|
|
72
|
-
2 - var(--ui-border-width)
|
|
73
|
-
)
|
|
74
|
-
calc(var(--ui-spacing-4) + 1.25rem + var(--ui-spacing-5))
|
|
75
|
-
calc(
|
|
76
|
-
(
|
|
77
|
-
var(--ui-control-height-md) - var(--ui-line-height-tight) *
|
|
78
|
-
var(--ui-font-size-md)
|
|
79
|
-
) /
|
|
80
|
-
2 - var(--ui-border-width)
|
|
81
|
-
)
|
|
82
|
-
var(--ui-spacing-4);
|
|
83
|
-
font-family: inherit;
|
|
84
|
-
font-size: inherit;
|
|
85
|
-
color: var(--ui-color-text);
|
|
86
|
-
background-color: var(--ui-color-input-bg);
|
|
87
|
-
border: var(--ui-border-width) solid var(--ui-color-input-border);
|
|
88
|
-
border-radius: var(--ui-radius-md);
|
|
89
|
-
outline: none;
|
|
90
|
-
transition:
|
|
91
|
-
border-color var(--ui-transition-fast),
|
|
92
|
-
box-shadow var(--ui-transition-fast),
|
|
93
|
-
background-color var(--ui-transition-fast);
|
|
94
|
-
cursor: text;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.atl-combobox-input::placeholder {
|
|
98
|
-
color: var(--ui-color-placeholder);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.atl-combobox-input:hover:not(:disabled) {
|
|
102
|
-
border-color: var(--ui-color-input-border-hover);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.atl-combobox-input:focus-visible,
|
|
106
|
-
.atl-combobox.is-open .atl-combobox-input {
|
|
107
|
-
border-color: var(--ui-color-input-border-focus);
|
|
108
|
-
box-shadow: var(--ui-focus-ring);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.atl-combobox.is-invalid .atl-combobox-input {
|
|
112
|
-
border-color: var(--ui-color-input-border-invalid);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.atl-combobox.is-invalid .atl-combobox-input:focus-visible {
|
|
116
|
-
border-color: var(--ui-color-input-border-invalid);
|
|
117
|
-
box-shadow: var(--ui-focus-ring-danger);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.atl-combobox.is-disabled {
|
|
121
|
-
opacity: var(--ui-opacity-disabled);
|
|
122
|
-
cursor: not-allowed;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.atl-combobox.is-disabled .atl-combobox-input {
|
|
126
|
-
cursor: not-allowed;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
/* ---------------------------------------------------------------------------
|
|
130
|
-
Chevron icon
|
|
131
|
-
--------------------------------------------------------------------------- */
|
|
132
|
-
.atl-combobox-icon {
|
|
133
|
-
position: absolute;
|
|
134
|
-
inset-inline-end: var(--ui-spacing-4);
|
|
135
|
-
pointer-events: none;
|
|
136
|
-
color: var(--ui-color-text-muted);
|
|
137
|
-
transition: transform var(--ui-transition-fast);
|
|
138
|
-
display: flex;
|
|
139
|
-
align-items: center;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.atl-combobox.is-open .atl-combobox-icon {
|
|
143
|
-
transform: rotate(180deg);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/* ---------------------------------------------------------------------------
|
|
147
|
-
Panel
|
|
148
|
-
--------------------------------------------------------------------------- */
|
|
149
|
-
.atl-combobox-panel {
|
|
150
|
-
position: absolute;
|
|
151
|
-
left: 0;
|
|
152
|
-
top: calc(100% + var(--ui-spacing-2));
|
|
153
|
-
width: 100%;
|
|
154
|
-
max-height: 16rem;
|
|
155
|
-
overflow-y: auto;
|
|
156
|
-
margin: 0;
|
|
157
|
-
padding: var(--ui-spacing-2) 0;
|
|
158
|
-
background-color: var(--ui-color-surface-raised);
|
|
159
|
-
border: var(--ui-border-width) solid var(--ui-color-border);
|
|
160
|
-
border-radius: var(--ui-radius-md);
|
|
161
|
-
box-shadow: var(--ui-shadow-lg);
|
|
162
|
-
z-index: var(--ui-z-dropdown);
|
|
163
|
-
list-style: none;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
/* ---------------------------------------------------------------------------
|
|
167
|
-
Options
|
|
168
|
-
--------------------------------------------------------------------------- */
|
|
169
|
-
.atl-combobox-option {
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
justify-content: space-between;
|
|
173
|
-
/* Row recipe (ADR-0052): the height is stated, the block padding is zero and the
|
|
174
|
-
* content is centred. A row centres, a control pads — ADR-0041's derived-padding
|
|
175
|
-
* formula produces the wrong box here. The line-height is stated so the box does
|
|
176
|
-
* not follow the installed font (ADR-0048).
|
|
177
|
-
*/
|
|
178
|
-
min-height: var(--ui-row-height-sm);
|
|
179
|
-
padding-block: 0;
|
|
180
|
-
line-height: var(--ui-line-height-tight);
|
|
181
|
-
padding-inline: var(--ui-spacing-4);
|
|
182
|
-
cursor: pointer;
|
|
183
|
-
color: var(--ui-color-text);
|
|
184
|
-
font-size: var(--ui-font-size-md);
|
|
185
|
-
transition: background-color var(--ui-transition-fast);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.atl-combobox-option:hover:not(.is-disabled) {
|
|
189
|
-
background-color: var(--ui-color-surface-sunken);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.atl-combobox-option.is-active {
|
|
193
|
-
background-color: var(--ui-color-primary-light);
|
|
194
|
-
color: var(--ui-color-primary);
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.atl-combobox-option.is-selected {
|
|
198
|
-
font-weight: var(--ui-font-weight-semibold);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.atl-combobox-option.is-disabled {
|
|
202
|
-
opacity: var(--ui-opacity-disabled);
|
|
203
|
-
cursor: not-allowed;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
.atl-combobox-check {
|
|
207
|
-
color: var(--ui-color-primary);
|
|
208
|
-
flex-shrink: 0;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
/* ---------------------------------------------------------------------------
|
|
212
|
-
No results
|
|
213
|
-
--------------------------------------------------------------------------- */
|
|
214
|
-
.atl-combobox-no-results {
|
|
215
|
-
padding: var(--ui-spacing-4);
|
|
216
|
-
text-align: center;
|
|
217
|
-
color: var(--ui-color-text-muted);
|
|
218
|
-
font-size: var(--ui-font-size-sm);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/* ---------------------------------------------------------------------------
|
|
222
|
-
Errors
|
|
223
|
-
--------------------------------------------------------------------------- */
|
|
224
|
-
.atl-combobox-errors {
|
|
225
|
-
margin-top: var(--ui-spacing-2);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
.atl-combobox-error-message {
|
|
229
|
-
margin: 0;
|
|
230
|
-
font-size: var(--ui-font-size-sm);
|
|
231
|
-
color: var(--ui-color-error-text);
|
|
232
|
-
line-height: var(--ui-line-height-normal);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
/* Readonly state — content, not a control: the interactive edge goes away while
|
|
236
|
-
* the filled surface stays. Transparent rather than removed so the 1px border
|
|
237
|
-
* keeps its space and the height stays put (ADR-0045). */
|
|
238
|
-
.atl-combobox.is-readonly .atl-combobox-input {
|
|
239
|
-
border-color: transparent;
|
|
240
|
-
cursor: default;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/* The invalid indicator sits inline-end, left of the chevron, and the field reserves
|
|
244
|
-
* the space for it unconditionally so nothing shifts when the state flips. Slot:
|
|
245
|
-
* 16px inset + 16px chevron + 4px gap + 16px indicator + 4px = 56px.
|
|
246
|
-
* AtlInput and AtlTextarea already showed this indicator; carrying invalid on border
|
|
247
|
-
* colour alone left AtlSelect and AtlCombobox failing WCAG 1.4.1 whenever a consumer
|
|
248
|
-
* set invalid without passing errors (ADR-0055). */
|
|
249
|
-
.atl-combobox.is-invalid .invalid-icon {
|
|
250
|
-
position: absolute;
|
|
251
|
-
top: 50%;
|
|
252
|
-
transform: translateY(-50%);
|
|
253
|
-
inset-inline-end: calc(var(--ui-spacing-4) + var(--ui-spacing-5));
|
|
254
|
-
color: var(--ui-color-danger);
|
|
255
|
-
pointer-events: none;
|
|
256
|
-
}
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
/* Geometry contract: every size this component states is a border-box size.
|
|
2
|
-
* Declared with the component rather than as a global reset, so it ships in the
|
|
3
|
-
* same file as the sizes it governs and no consuming app has to supply one.
|
|
4
|
-
* Gated by check:box-sizing; the resulting boxes are measured by check:geometry.
|
|
5
|
-
* See ADR-0043. */
|
|
6
|
-
:is(.atl-dialog, .atl-dialog-content, .atl-dialog-footer, .atl-dialog-header),
|
|
7
|
-
:is(.atl-dialog, .atl-dialog-content, .atl-dialog-footer, .atl-dialog-header)
|
|
8
|
-
* {
|
|
9
|
-
box-sizing: border-box;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/* ── Native <dialog> reset + base ──────────────────────────────────────────── */
|
|
13
|
-
.atl-dialog {
|
|
14
|
-
all: unset;
|
|
15
|
-
/* Restated after `all: unset`, which resets the box model too — the component's
|
|
16
|
-
* geometry contract has the same specificity and loses on source order, so this
|
|
17
|
-
* element was content-box and 2px taller than its own CSS said (ADR-0051). */
|
|
18
|
-
box-sizing: border-box;
|
|
19
|
-
/* After `all: unset`, which would otherwise reset it. The library states its own
|
|
20
|
-
* typeface (ADR-0035); without this the dialog renders in the consuming app's
|
|
21
|
-
* font while its neighbours render Instrument Sans (ADR-0049). */
|
|
22
|
-
font-family: var(--ui-font-family);
|
|
23
|
-
/* The leading every descendant inherits. Stated here so the component keeps
|
|
24
|
-
its own vertical rhythm instead of adopting the consuming app's prose
|
|
25
|
-
leading — the defect that made the row boxes measure differently in a
|
|
26
|
-
Storybook page and in a docs page (ADR-0052). This one carries prose, so normal. */
|
|
27
|
-
line-height: var(--ui-line-height-normal);
|
|
28
|
-
position: fixed;
|
|
29
|
-
inset: 0;
|
|
30
|
-
margin: auto;
|
|
31
|
-
width: fit-content;
|
|
32
|
-
height: fit-content;
|
|
33
|
-
display: none; /* hidden by default; showModal() moves to top layer */
|
|
34
|
-
flex-direction: column;
|
|
35
|
-
max-width: 100vw;
|
|
36
|
-
max-height: calc(100dvh - var(--ui-spacing-8));
|
|
37
|
-
border-radius: var(--ui-radius-lg);
|
|
38
|
-
background: var(--ui-color-surface);
|
|
39
|
-
box-shadow: var(--ui-shadow-xl, 0 20px 60px rgba(0, 0, 0, 0.3));
|
|
40
|
-
color: var(--ui-color-text);
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
|
|
43
|
-
/* Open/close animation */
|
|
44
|
-
opacity: 0;
|
|
45
|
-
transform: scale(0.95);
|
|
46
|
-
transition:
|
|
47
|
-
opacity var(--ui-duration-slow) var(--ui-ease-out, ease-out),
|
|
48
|
-
transform var(--ui-duration-slow) var(--ui-ease-out, ease-out),
|
|
49
|
-
display var(--ui-duration-slow) allow-discrete,
|
|
50
|
-
overlay var(--ui-duration-slow) allow-discrete;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.atl-dialog[open] {
|
|
54
|
-
display: flex;
|
|
55
|
-
opacity: 1;
|
|
56
|
-
transform: scale(1);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
@starting-style {
|
|
60
|
-
.atl-dialog[open] {
|
|
61
|
-
opacity: 0;
|
|
62
|
-
transform: scale(0.95);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* ── Backdrop ────────────────────────────────────────────────────────────── */
|
|
67
|
-
.atl-dialog::backdrop {
|
|
68
|
-
background: var(--ui-color-overlay);
|
|
69
|
-
backdrop-filter: blur(2px);
|
|
70
|
-
transition:
|
|
71
|
-
opacity var(--ui-duration-slow) var(--ui-ease-out, ease-out),
|
|
72
|
-
display var(--ui-duration-slow) allow-discrete,
|
|
73
|
-
overlay var(--ui-duration-slow) allow-discrete;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
@starting-style {
|
|
77
|
-
.atl-dialog[open]::backdrop {
|
|
78
|
-
opacity: 0;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media (prefers-color-scheme: dark) {
|
|
83
|
-
.atl-dialog::backdrop {
|
|
84
|
-
background: var(--ui-color-overlay);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
[data-theme='dark'] .atl-dialog::backdrop {
|
|
89
|
-
background: var(--ui-color-overlay);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
/* ── Panel (inner wrapper) ───────────────────────────────────────────────── */
|
|
93
|
-
.panel {
|
|
94
|
-
display: flex;
|
|
95
|
-
flex-direction: column;
|
|
96
|
-
width: 100%;
|
|
97
|
-
max-height: inherit;
|
|
98
|
-
overflow: hidden;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/* ── Size variants ───────────────────────────────────────────────────────────
|
|
102
|
-
* Scoped to the dialog. React applies size-* on the <dialog class="atl-dialog">
|
|
103
|
-
* itself; Angular/Vue apply it on the inner .panel — hence the selector pair
|
|
104
|
-
* (`dialog > .panel` covers both, including Angular's emulated-scoped template,
|
|
105
|
-
* which never carries the `atl-dialog` class). Bare `.size-*` selectors leaked
|
|
106
|
-
* globally and resized unrelated elements (e.g. `atl-button size-md`). */
|
|
107
|
-
.atl-dialog.size-sm,
|
|
108
|
-
dialog > .panel.size-sm {
|
|
109
|
-
width: min(24rem, 90vw);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.atl-dialog.size-md,
|
|
113
|
-
dialog > .panel.size-md {
|
|
114
|
-
width: min(36rem, 90vw);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.atl-dialog.size-lg,
|
|
118
|
-
dialog > .panel.size-lg {
|
|
119
|
-
width: min(48rem, 90vw);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.atl-dialog.size-xl,
|
|
123
|
-
dialog > .panel.size-xl {
|
|
124
|
-
width: min(64rem, 90vw);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.atl-dialog.size-full,
|
|
128
|
-
dialog > .panel.size-full {
|
|
129
|
-
width: 100vw;
|
|
130
|
-
height: 100dvh;
|
|
131
|
-
max-width: 100vw;
|
|
132
|
-
max-height: 100dvh;
|
|
133
|
-
border-radius: 0;
|
|
134
|
-
margin: 0;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/* ── Sub-components ──────────────────────────────────────────────────────── */
|
|
138
|
-
.atl-dialog-header {
|
|
139
|
-
display: flex;
|
|
140
|
-
align-items: center;
|
|
141
|
-
justify-content: space-between;
|
|
142
|
-
padding: var(--ui-spacing-5) var(--ui-spacing-6);
|
|
143
|
-
border-bottom: var(--ui-border-width) solid var(--ui-color-border);
|
|
144
|
-
font-size: var(--ui-font-size-xl);
|
|
145
|
-
font-weight: var(--ui-font-weight-semibold);
|
|
146
|
-
letter-spacing: var(--ui-letter-spacing-tight);
|
|
147
|
-
color: var(--ui-color-text);
|
|
148
|
-
flex-shrink: 0;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.atl-dialog-content {
|
|
152
|
-
display: block;
|
|
153
|
-
padding: var(--ui-spacing-6);
|
|
154
|
-
overflow-y: auto;
|
|
155
|
-
flex: 1;
|
|
156
|
-
color: var(--ui-color-text);
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.atl-dialog-footer {
|
|
160
|
-
display: flex;
|
|
161
|
-
align-items: center;
|
|
162
|
-
justify-content: flex-end;
|
|
163
|
-
gap: var(--ui-spacing-3);
|
|
164
|
-
padding: var(--ui-spacing-5) var(--ui-spacing-6);
|
|
165
|
-
border-top: var(--ui-border-width) solid var(--ui-color-border);
|
|
166
|
-
flex-shrink: 0;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
/* ── Close button ──────────────────────────────────────────────────────────── */
|
|
170
|
-
.close-btn {
|
|
171
|
-
display: inline-flex;
|
|
172
|
-
align-items: center;
|
|
173
|
-
justify-content: center;
|
|
174
|
-
flex-shrink: 0;
|
|
175
|
-
width: var(--ui-control-height-sm);
|
|
176
|
-
height: var(--ui-control-height-sm);
|
|
177
|
-
padding: 0;
|
|
178
|
-
margin-left: var(--ui-spacing-3);
|
|
179
|
-
background: transparent;
|
|
180
|
-
border: none;
|
|
181
|
-
border-radius: var(--ui-radius-sm);
|
|
182
|
-
cursor: pointer;
|
|
183
|
-
color: var(--ui-color-text-muted);
|
|
184
|
-
transition:
|
|
185
|
-
background-color var(--ui-transition-fast),
|
|
186
|
-
color var(--ui-transition-fast);
|
|
187
|
-
line-height: 1;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
.close-btn:hover {
|
|
191
|
-
background-color: var(--ui-color-surface-sunken);
|
|
192
|
-
color: var(--ui-color-text);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.close-btn:focus-visible {
|
|
196
|
-
outline: none;
|
|
197
|
-
box-shadow: var(--ui-focus-ring);
|
|
198
|
-
}
|