@joniguerini/lume 0.0.0-stage → 1.9.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/LICENSE +25 -0
- package/README.md +62 -2
- package/base.css +165 -0
- package/bin/lumeui.mjs +163 -0
- package/components/alert.css +156 -0
- package/components/banner.css +98 -0
- package/components/button.css +291 -0
- package/components/calendar.css +532 -0
- package/components/carousel.css +175 -0
- package/components/chart.css +813 -0
- package/components/chat.css +670 -0
- package/components/checkbox.css +212 -0
- package/components/chip.css +224 -0
- package/components/code.css +36 -0
- package/components/color-picker.css +192 -0
- package/components/command.css +148 -0
- package/components/content.css +211 -0
- package/components/editor.css +174 -0
- package/components/feedback.css +320 -0
- package/components/filters.css +103 -0
- package/components/form.css +455 -0
- package/components/image-viewer.css +237 -0
- package/components/layers.css +138 -0
- package/components/link.css +87 -0
- package/components/loading.css +260 -0
- package/components/menu.css +180 -0
- package/components/modal.css +209 -0
- package/components/navigation.css +507 -0
- package/components/notifications.css +186 -0
- package/components/number-field.css +52 -0
- package/components/otp.css +119 -0
- package/components/panel.css +208 -0
- package/components/picker.css +207 -0
- package/components/rating.css +143 -0
- package/components/resizable.css +173 -0
- package/components/scrollbar.css +110 -0
- package/components/select.css +477 -0
- package/components/shell.css +837 -0
- package/components/slider.css +189 -0
- package/components/sortable.css +287 -0
- package/components/surfaces.css +182 -0
- package/components/switch.css +115 -0
- package/components/table.css +228 -0
- package/components/tabs.css +190 -0
- package/components/tags.css +83 -0
- package/components/toast.css +164 -0
- package/components/toolbar.css +80 -0
- package/components/upload.css +181 -0
- package/ds.css +48 -0
- package/fonts/Geist-LICENSE.txt +92 -0
- package/fonts/Geist-Variable.woff2 +0 -0
- package/fonts/GeistSerif-Regular.woff2 +0 -0
- package/fonts/JetBrainsMono-LICENSE.txt +93 -0
- package/fonts/JetBrainsMono-Variable.woff2 +0 -0
- package/fonts.css +29 -0
- package/icons/icons.d.ts +5 -0
- package/icons/icons.js +266 -0
- package/js/back-to-top.d.ts +2 -0
- package/js/back-to-top.js +62 -0
- package/js/banner.js +87 -0
- package/js/calendar.d.ts +3 -0
- package/js/calendar.js +472 -0
- package/js/carousel.d.ts +2 -0
- package/js/carousel.js +258 -0
- package/js/charts/bar.js +361 -0
- package/js/charts/core.js +604 -0
- package/js/charts/donut.js +206 -0
- package/js/charts/figures.js +97 -0
- package/js/charts/heatmap.js +410 -0
- package/js/charts/line.js +268 -0
- package/js/charts/scatter.js +211 -0
- package/js/charts.d.ts +12 -0
- package/js/charts.js +27 -0
- package/js/code-block.d.ts +3 -0
- package/js/code-block.js +32 -0
- package/js/color-picker.d.ts +4 -0
- package/js/color-picker.js +448 -0
- package/js/command-palette.js +233 -0
- package/js/composer.js +573 -0
- package/js/context-menu.d.ts +2 -0
- package/js/context-menu.js +154 -0
- package/js/date-picker.d.ts +2 -0
- package/js/date-picker.js +430 -0
- package/js/drawer.js +48 -0
- package/js/editor.d.ts +5 -0
- package/js/editor.js +615 -0
- package/js/field-support.js +77 -0
- package/js/file-upload.d.ts +2 -0
- package/js/file-upload.js +230 -0
- package/js/filters.js +266 -0
- package/js/form.d.ts +2 -0
- package/js/form.js +409 -0
- package/js/i18n.d.ts +14 -0
- package/js/i18n.js +83 -0
- package/js/image-viewer.d.ts +4 -0
- package/js/image-viewer.js +275 -0
- package/js/menu.d.ts +4 -0
- package/js/menu.js +237 -0
- package/js/messages.js +908 -0
- package/js/modal.d.ts +7 -0
- package/js/modal.js +183 -0
- package/js/notifications.d.ts +4 -0
- package/js/notifications.js +204 -0
- package/js/number-field.d.ts +2 -0
- package/js/number-field.js +175 -0
- package/js/otp-field.d.ts +2 -0
- package/js/otp-field.js +107 -0
- package/js/pagination.d.ts +3 -0
- package/js/pagination.js +143 -0
- package/js/popover.d.ts +2 -0
- package/js/popover.js +155 -0
- package/js/progress-ring.js +48 -0
- package/js/rating.d.ts +3 -0
- package/js/rating.js +130 -0
- package/js/resizable.d.ts +2 -0
- package/js/resizable.js +311 -0
- package/js/scrollbar.d.ts +2 -0
- package/js/scrollbar.js +273 -0
- package/js/segmented.js +60 -0
- package/js/select.d.ts +3 -0
- package/js/select.js +784 -0
- package/js/shell.d.ts +6 -0
- package/js/shell.js +373 -0
- package/js/slider.d.ts +2 -0
- package/js/slider.js +89 -0
- package/js/sortable.d.ts +5 -0
- package/js/sortable.js +463 -0
- package/js/stepper.d.ts +2 -0
- package/js/stepper.js +72 -0
- package/js/tabs.js +99 -0
- package/js/tag-field.d.ts +2 -0
- package/js/tag-field.js +177 -0
- package/js/theme.d.ts +9 -0
- package/js/theme.js +114 -0
- package/js/time-picker.d.ts +2 -0
- package/js/time-picker.js +279 -0
- package/js/toast.d.ts +17 -0
- package/js/toast.js +171 -0
- package/js/toolbar.d.ts +2 -0
- package/js/toolbar.js +107 -0
- package/js/tooltip.d.ts +2 -0
- package/js/tooltip.js +208 -0
- package/js/tree.d.ts +2 -0
- package/js/tree.js +168 -0
- package/lume.css +11574 -0
- package/lume.d.ts +104 -0
- package/lume.js +67 -0
- package/package.json +66 -4
- package/react/Alert.d.ts +24 -0
- package/react/Alert.js +21 -0
- package/react/AppShell.d.ts +67 -0
- package/react/AppShell.js +94 -0
- package/react/Avatar.d.ts +39 -0
- package/react/Avatar.js +40 -0
- package/react/Badge.d.ts +17 -0
- package/react/Badge.js +10 -0
- package/react/Button.d.ts +32 -0
- package/react/Button.js +17 -0
- package/react/Calendar.d.ts +48 -0
- package/react/Calendar.js +67 -0
- package/react/Carousel.d.ts +30 -0
- package/react/Carousel.js +38 -0
- package/react/Charts.d.ts +186 -0
- package/react/Charts.js +58 -0
- package/react/Chip.d.ts +34 -0
- package/react/Chip.js +26 -0
- package/react/Choice.d.ts +72 -0
- package/react/Choice.js +51 -0
- package/react/ColorPicker.d.ts +43 -0
- package/react/ColorPicker.js +73 -0
- package/react/Content.d.ts +58 -0
- package/react/Content.js +42 -0
- package/react/Controls.d.ts +97 -0
- package/react/Controls.js +118 -0
- package/react/Editor.d.ts +28 -0
- package/react/Editor.js +57 -0
- package/react/Field.d.ts +90 -0
- package/react/Field.js +65 -0
- package/react/Form.d.ts +36 -0
- package/react/Form.js +45 -0
- package/react/Icon.d.ts +13 -0
- package/react/Icon.js +8 -0
- package/react/IconButton.d.ts +19 -0
- package/react/IconButton.js +12 -0
- package/react/ImageViewer.d.ts +20 -0
- package/react/ImageViewer.js +22 -0
- package/react/InlineAction.d.ts +15 -0
- package/react/InlineAction.js +12 -0
- package/react/Layers.d.ts +118 -0
- package/react/Layers.js +115 -0
- package/react/Link.d.ts +32 -0
- package/react/Link.js +26 -0
- package/react/Loading.d.ts +67 -0
- package/react/Loading.js +49 -0
- package/react/Navigation.d.ts +181 -0
- package/react/Navigation.js +197 -0
- package/react/Notices.d.ts +43 -0
- package/react/Notices.js +89 -0
- package/react/Panel.d.ts +57 -0
- package/react/Panel.js +33 -0
- package/react/Pickers.d.ts +83 -0
- package/react/Pickers.js +70 -0
- package/react/Rating.d.ts +39 -0
- package/react/Rating.js +41 -0
- package/react/Resizable.d.ts +44 -0
- package/react/Resizable.js +30 -0
- package/react/Select.d.ts +53 -0
- package/react/Select.js +79 -0
- package/react/Sortable.d.ts +52 -0
- package/react/Sortable.js +113 -0
- package/react/Table.d.ts +60 -0
- package/react/Table.js +34 -0
- package/react/Toolbar.d.ts +45 -0
- package/react/Toolbar.js +45 -0
- package/react/cx.d.ts +2 -0
- package/react/cx.js +5 -0
- package/react/icon-names.d.ts +1 -0
- package/react/icon-names.js +2 -0
- package/react/index.d.ts +42 -0
- package/react/index.js +52 -0
- package/react/useController.d.ts +8 -0
- package/react/useController.js +16 -0
- package/react/useLocale.d.ts +5 -0
- package/react/useLocale.js +15 -0
- package/tokens.css +739 -0
- package/tokens.js +4911 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Central de notificações — o sino abre a lista; o que a pessoa ainda não viu fica marcado.
|
|
3
|
+
* Montada por createNotificationCenter(sino, { items }) num .ds-popover; a marcação abaixo é a que o JS desenha.
|
|
4
|
+
*
|
|
5
|
+
* <button class="ds-icon-btn ds-notify-trigger" aria-label="Notificações, 2 não lidas">
|
|
6
|
+
* <ds-icon name="bell"></ds-icon><span class="ds-notify-trigger__count" aria-hidden="true">2</span>
|
|
7
|
+
* </button>
|
|
8
|
+
* <div class="ds-popover ds-notify-panel">
|
|
9
|
+
* <div class="ds-notify">
|
|
10
|
+
* <div class="ds-notify__header"><h2 class="ds-notify__title">Notificações</h2><button class="ds-inline-action">Marcar todas como lidas</button></div>
|
|
11
|
+
* <ul class="ds-notify__list" role="list">
|
|
12
|
+
* <li class="ds-notify__item" data-unread><a class="ds-notify__link" href="…">
|
|
13
|
+
* <span class="ds-notify__icon">…</span>
|
|
14
|
+
* <span class="ds-notify__body"><span class="ds-notify__item-title">…</span><span class="ds-notify__text">…</span><time class="ds-notify__time">há 5 min</time></span>
|
|
15
|
+
* <span class="ds-dot ds-notify__dot"></span>
|
|
16
|
+
* </a></li>
|
|
17
|
+
* </ul>
|
|
18
|
+
* </div>
|
|
19
|
+
* </div>
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/* Sino com o número */
|
|
23
|
+
.ds-notify-trigger {
|
|
24
|
+
position: relative;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ds-notify-trigger__count {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 2px;
|
|
30
|
+
right: 2px;
|
|
31
|
+
display: inline-grid;
|
|
32
|
+
place-items: center;
|
|
33
|
+
min-width: 16px;
|
|
34
|
+
height: 16px;
|
|
35
|
+
padding-inline: 4px;
|
|
36
|
+
border-radius: var(--ds-radius-full);
|
|
37
|
+
background: var(--ds-color-brand-indicator);
|
|
38
|
+
box-shadow: 0 0 0 2px var(--ds-notify-ring, var(--ds-color-bg-canvas));
|
|
39
|
+
color: var(--ds-color-fg-inverse);
|
|
40
|
+
font: var(--ds-font-weight-semibold) 0.625rem/1 var(--ds-font-family-sans);
|
|
41
|
+
font-variant-numeric: tabular-nums;
|
|
42
|
+
pointer-events: none;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ds-notify-trigger__count[hidden] {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Painel */
|
|
50
|
+
.ds-popover.ds-notify-panel {
|
|
51
|
+
width: min(380px, calc(100vw - 16px));
|
|
52
|
+
max-width: none;
|
|
53
|
+
padding: 0;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ds-notify-panel .ds-popover__body {
|
|
58
|
+
color: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.ds-notify {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
max-height: min(480px, calc(100dvh - 96px));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.ds-notify__header {
|
|
68
|
+
display: flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
gap: var(--ds-space-200);
|
|
72
|
+
min-height: 52px;
|
|
73
|
+
padding: var(--ds-space-100) var(--ds-space-150) var(--ds-space-100) var(--ds-space-250);
|
|
74
|
+
border-bottom: 1px solid var(--ds-color-border-subtle);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.ds-notify__title {
|
|
78
|
+
margin: 0;
|
|
79
|
+
font: var(--ds-text-label-md);
|
|
80
|
+
letter-spacing: var(--ds-text-label-md-tracking);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.ds-notify__list {
|
|
84
|
+
flex: 1;
|
|
85
|
+
min-height: 0;
|
|
86
|
+
margin: 0;
|
|
87
|
+
padding: var(--ds-space-075);
|
|
88
|
+
overflow-y: auto;
|
|
89
|
+
list-style: none;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ds-notify__link {
|
|
93
|
+
position: relative;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: flex-start;
|
|
96
|
+
gap: var(--ds-space-150);
|
|
97
|
+
width: 100%;
|
|
98
|
+
padding: var(--ds-space-150) var(--ds-space-250) var(--ds-space-150) var(--ds-space-150);
|
|
99
|
+
border-radius: var(--ds-radius-md);
|
|
100
|
+
color: var(--ds-color-fg-default);
|
|
101
|
+
text-align: start;
|
|
102
|
+
text-decoration: none;
|
|
103
|
+
transition: background-color var(--ds-duration-fast) var(--ds-easing-standard);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ds-notify__link:hover,
|
|
107
|
+
.ds-notify__link[data-state="hover"] {
|
|
108
|
+
background: var(--ds-color-bg-hover);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.ds-notify__icon {
|
|
112
|
+
flex: none;
|
|
113
|
+
display: grid;
|
|
114
|
+
place-items: center;
|
|
115
|
+
width: 32px;
|
|
116
|
+
height: 32px;
|
|
117
|
+
border-radius: var(--ds-radius-full);
|
|
118
|
+
background: var(--ds-color-bg-muted);
|
|
119
|
+
color: var(--ds-color-fg-muted);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ds-notify__icon--brand { background: var(--ds-color-brand-subtle); color: var(--ds-color-brand-fg); }
|
|
123
|
+
.ds-notify__icon--info { background: var(--ds-color-info-subtle); color: var(--ds-color-info-fg); }
|
|
124
|
+
.ds-notify__icon--success { background: var(--ds-color-success-subtle); color: var(--ds-color-success-fg); }
|
|
125
|
+
.ds-notify__icon--warning { background: var(--ds-color-warning-subtle); color: var(--ds-color-warning-fg); }
|
|
126
|
+
.ds-notify__icon--danger { background: var(--ds-color-danger-subtle); color: var(--ds-color-danger-fg); }
|
|
127
|
+
|
|
128
|
+
.ds-notify__body {
|
|
129
|
+
display: grid;
|
|
130
|
+
gap: 2px;
|
|
131
|
+
min-width: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.ds-notify__item-title {
|
|
135
|
+
font: var(--ds-text-label-md);
|
|
136
|
+
letter-spacing: var(--ds-text-label-md-tracking);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.ds-notify__text {
|
|
140
|
+
color: var(--ds-color-fg-muted);
|
|
141
|
+
font: var(--ds-text-body-sm);
|
|
142
|
+
letter-spacing: var(--ds-text-body-sm-tracking);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.ds-notify__time {
|
|
146
|
+
color: var(--ds-color-fg-subtle);
|
|
147
|
+
font: var(--ds-text-label-sm);
|
|
148
|
+
letter-spacing: var(--ds-text-label-sm-tracking);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* lida: o título perde o peso; não lida: o ponto do indicador à direita */
|
|
152
|
+
.ds-notify__item:not([data-unread]) .ds-notify__item-title {
|
|
153
|
+
color: var(--ds-color-fg-muted);
|
|
154
|
+
font-weight: var(--ds-font-weight-regular, 400);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.ds-notify__dot {
|
|
158
|
+
position: absolute;
|
|
159
|
+
top: calc(var(--ds-space-150) + 7px);
|
|
160
|
+
right: var(--ds-space-100);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.ds-notify__item:not([data-unread]) .ds-notify__dot {
|
|
164
|
+
display: none;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ds-notify__empty {
|
|
168
|
+
display: grid;
|
|
169
|
+
justify-items: center;
|
|
170
|
+
gap: var(--ds-space-100);
|
|
171
|
+
padding: var(--ds-space-500) var(--ds-space-300);
|
|
172
|
+
color: var(--ds-color-fg-muted);
|
|
173
|
+
font: var(--ds-text-body-sm);
|
|
174
|
+
letter-spacing: var(--ds-text-body-sm-tracking);
|
|
175
|
+
text-align: center;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ds-notify__empty svg {
|
|
179
|
+
color: var(--ds-color-fg-subtle);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
@media (prefers-reduced-motion: reduce) {
|
|
183
|
+
.ds-notify__link {
|
|
184
|
+
transition: none;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Campo numérico
|
|
3
|
+
* <div class="ds-field ds-number"><input class="ds-field__input" …></div> (os botões − e + vêm de ds/js/number-field.js)
|
|
4
|
+
*/
|
|
5
|
+
.ds-field.ds-number {
|
|
6
|
+
gap: var(--ds-space-050);
|
|
7
|
+
padding-inline: 5px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.ds-number > .ds-field__input {
|
|
11
|
+
width: 0;
|
|
12
|
+
text-align: center;
|
|
13
|
+
font-variant-numeric: tabular-nums;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.ds-number__btn {
|
|
17
|
+
flex: none;
|
|
18
|
+
display: grid;
|
|
19
|
+
place-items: center;
|
|
20
|
+
width: 30px;
|
|
21
|
+
height: 30px;
|
|
22
|
+
border-radius: var(--ds-radius-sm);
|
|
23
|
+
color: var(--ds-color-fg-muted);
|
|
24
|
+
transition:
|
|
25
|
+
background-color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
26
|
+
color var(--ds-duration-fast) var(--ds-easing-standard);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ds-number__btn:hover:not(:disabled),
|
|
30
|
+
.ds-number__btn[data-state="hover"]:not(:disabled) {
|
|
31
|
+
background: var(--ds-color-bg-hover);
|
|
32
|
+
color: var(--ds-color-fg-default);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ds-number__btn:disabled {
|
|
36
|
+
color: var(--ds-color-fg-disabled);
|
|
37
|
+
cursor: not-allowed;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.ds-field.ds-field--sm.ds-number {
|
|
41
|
+
padding-inline: 3px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ds-field--sm.ds-number .ds-number__btn {
|
|
45
|
+
width: 26px;
|
|
46
|
+
height: 26px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.ds-field--lg.ds-number .ds-number__btn {
|
|
50
|
+
width: 36px;
|
|
51
|
+
height: 36px;
|
|
52
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Código de verificação
|
|
3
|
+
* <div class="ds-otp"><input class="ds-otp__input" …></div> (as casas vêm de ds/js/otp-field.js)
|
|
4
|
+
* Estados forçáveis com data-state="focus" e data-error no .ds-otp, para documentação e testes.
|
|
5
|
+
*/
|
|
6
|
+
.ds-otp {
|
|
7
|
+
--_w: 44px;
|
|
8
|
+
--_h: var(--ds-size-control-lg);
|
|
9
|
+
position: relative;
|
|
10
|
+
display: inline-block;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* o input real fica por cima, invisível: é ele que recebe o toque, a digitação e o preenchimento automático */
|
|
15
|
+
.ds-otp__input {
|
|
16
|
+
position: absolute;
|
|
17
|
+
inset: 0;
|
|
18
|
+
z-index: 1;
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 100%;
|
|
21
|
+
border: 0;
|
|
22
|
+
background: none;
|
|
23
|
+
color: transparent;
|
|
24
|
+
caret-color: transparent;
|
|
25
|
+
opacity: 0;
|
|
26
|
+
cursor: text;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.ds-otp__boxes {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
gap: var(--ds-space-100);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.ds-otp__box {
|
|
36
|
+
position: relative;
|
|
37
|
+
flex: 0 1 var(--_w);
|
|
38
|
+
min-width: 0;
|
|
39
|
+
display: grid;
|
|
40
|
+
place-items: center;
|
|
41
|
+
width: var(--_w);
|
|
42
|
+
height: var(--_h);
|
|
43
|
+
border: 1px solid var(--ds-color-border-default);
|
|
44
|
+
border-radius: var(--ds-radius-md);
|
|
45
|
+
background: var(--ds-color-bg-field);
|
|
46
|
+
color: var(--ds-color-fg-default);
|
|
47
|
+
font: var(--ds-text-heading-sm);
|
|
48
|
+
font-family: var(--ds-font-family-sans);
|
|
49
|
+
font-variant-numeric: tabular-nums;
|
|
50
|
+
transition:
|
|
51
|
+
border-color var(--ds-duration-fast) var(--ds-easing-standard),
|
|
52
|
+
box-shadow var(--ds-duration-base) var(--ds-easing-standard);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ds-otp:hover .ds-otp__box,
|
|
56
|
+
.ds-otp[data-state="hover"] .ds-otp__box {
|
|
57
|
+
border-color: var(--ds-color-border-strong);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ds-otp__box[data-active],
|
|
61
|
+
.ds-otp[data-state="focus"] .ds-otp__box:first-child {
|
|
62
|
+
border-color: var(--ds-color-border-focus);
|
|
63
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-border-focus) 22%, transparent);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* cursor na casa vazia */
|
|
67
|
+
.ds-otp__box[data-active]:not([data-filled])::after {
|
|
68
|
+
content: "";
|
|
69
|
+
width: 1px;
|
|
70
|
+
height: 22px;
|
|
71
|
+
background: var(--ds-color-fg-default);
|
|
72
|
+
animation: ds-otp-caret 1.1s steps(1) infinite;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@keyframes ds-otp-caret {
|
|
76
|
+
50% { opacity: 0; }
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ds-otp__gap {
|
|
80
|
+
flex: none;
|
|
81
|
+
width: 10px;
|
|
82
|
+
height: 1px;
|
|
83
|
+
background: var(--ds-color-border-strong);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.ds-otp[data-error] .ds-otp__box,
|
|
87
|
+
.ds-otp:has(.ds-otp__input[aria-invalid="true"]) .ds-otp__box {
|
|
88
|
+
border-color: var(--ds-color-danger-solid);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ds-otp[data-error] .ds-otp__box[data-active],
|
|
92
|
+
.ds-otp:has(.ds-otp__input[aria-invalid="true"]) .ds-otp__box[data-active] {
|
|
93
|
+
box-shadow: 0 0 0 3px color-mix(in srgb, var(--ds-color-danger-solid) 22%, transparent);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.ds-otp:has(.ds-otp__input:disabled) {
|
|
97
|
+
opacity: var(--ds-opacity-disabled);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ds-otp__input:disabled {
|
|
101
|
+
cursor: not-allowed;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* em telas estreitas, as casas dividem a largura */
|
|
105
|
+
@media (max-width: 479.98px) {
|
|
106
|
+
.ds-otp {
|
|
107
|
+
--_w: 38px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.ds-otp__boxes {
|
|
111
|
+
gap: var(--ds-space-050);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@media (prefers-reduced-motion: reduce) {
|
|
116
|
+
.ds-otp__box[data-active]:not([data-filled])::after {
|
|
117
|
+
animation: none;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Painel — a superfície principal de conteúdo.
|
|
3
|
+
*
|
|
4
|
+
* <article class="ds-panel">
|
|
5
|
+
* <header class="ds-panel__header">
|
|
6
|
+
* <div><p class="ds-panel__eyebrow">Roteiro</p><h1 class="ds-panel__title">…</h1></div>
|
|
7
|
+
* <div class="ds-panel__actions">…ds-icon-btn…</div>
|
|
8
|
+
* <div class="ds-panel__aside">…ds-btn--ghost…</div>
|
|
9
|
+
* </header>
|
|
10
|
+
* <div class="ds-panel__toolbar">…ds-chip… <span class="ds-panel__meta">~30s</span></div>
|
|
11
|
+
* <div class="ds-panel__body"><section class="ds-section">…</section></div>
|
|
12
|
+
* <footer class="ds-panel__footer">…ds-btn--primary…</footer>
|
|
13
|
+
* </article>
|
|
14
|
+
*/
|
|
15
|
+
|
|
16
|
+
.ds-panel {
|
|
17
|
+
position: relative;
|
|
18
|
+
padding: var(--ds-space-500) var(--ds-space-600) var(--ds-space-600);
|
|
19
|
+
border-radius: var(--ds-radius-2xl);
|
|
20
|
+
background: var(--ds-color-bg-raised);
|
|
21
|
+
border: 1px solid var(--ds-color-border-subtle);
|
|
22
|
+
box-shadow: var(--ds-shadow-lg);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.ds-panel__header {
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
28
|
+
column-gap: var(--ds-space-300);
|
|
29
|
+
align-items: start;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ds-panel__eyebrow {
|
|
33
|
+
color: var(--ds-color-fg-subtle);
|
|
34
|
+
font: var(--ds-text-eyebrow);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ds-panel__title {
|
|
38
|
+
margin-top: var(--ds-space-075);
|
|
39
|
+
color: var(--ds-color-fg-default);
|
|
40
|
+
font: var(--ds-text-heading-lg);
|
|
41
|
+
letter-spacing: var(--ds-text-heading-lg-tracking);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ds-panel--hero .ds-panel__title {
|
|
45
|
+
font: var(--ds-text-display-sm);
|
|
46
|
+
letter-spacing: var(--ds-text-display-sm-tracking);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/* Compacto: para painéis laterais, gavetas e espaços menores */
|
|
50
|
+
.ds-panel--compact {
|
|
51
|
+
padding: var(--ds-space-300) var(--ds-space-300) var(--ds-space-400);
|
|
52
|
+
border-radius: var(--ds-radius-xl);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.ds-panel--compact .ds-panel__title {
|
|
56
|
+
font: var(--ds-text-heading-md);
|
|
57
|
+
letter-spacing: var(--ds-text-heading-md-tracking);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ds-panel--compact .ds-panel__toolbar,
|
|
61
|
+
.ds-panel--compact .ds-panel__body {
|
|
62
|
+
margin-top: var(--ds-space-300);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.ds-panel--compact .ds-panel__body {
|
|
66
|
+
gap: var(--ds-space-400);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ds-panel--compact .ds-panel__footer {
|
|
70
|
+
margin-top: var(--ds-space-400);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/* Plano: dentro de outra superfície elevada, sem sombra própria */
|
|
74
|
+
.ds-panel--flat {
|
|
75
|
+
background: var(--ds-color-bg-surface);
|
|
76
|
+
box-shadow: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ds-panel__actions {
|
|
80
|
+
display: flex;
|
|
81
|
+
gap: var(--ds-space-050);
|
|
82
|
+
margin: -2px -8px 0 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.ds-panel__aside {
|
|
86
|
+
grid-column: 2;
|
|
87
|
+
grid-row: 2;
|
|
88
|
+
justify-self: end;
|
|
89
|
+
margin: var(--ds-space-200) -12px 0 0;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.ds-panel__toolbar {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-wrap: wrap;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: var(--ds-space-100);
|
|
97
|
+
margin-top: var(--ds-space-400);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.ds-panel__spacer {
|
|
101
|
+
flex: 1;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.ds-panel__meta {
|
|
105
|
+
margin-inline-start: var(--ds-space-200);
|
|
106
|
+
color: var(--ds-color-fg-subtle);
|
|
107
|
+
font: var(--ds-text-body-sm);
|
|
108
|
+
font-variant-numeric: tabular-nums;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.ds-panel__body {
|
|
112
|
+
display: flex;
|
|
113
|
+
flex-direction: column;
|
|
114
|
+
gap: var(--ds-space-500);
|
|
115
|
+
margin-top: var(--ds-space-400);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.ds-panel__footer {
|
|
119
|
+
display: flex;
|
|
120
|
+
flex-wrap: wrap;
|
|
121
|
+
align-items: center;
|
|
122
|
+
gap: var(--ds-space-150);
|
|
123
|
+
margin-top: var(--ds-space-600);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/* Seção: carimbo + rótulo, texto, ações inline */
|
|
127
|
+
.ds-section__head {
|
|
128
|
+
display: flex;
|
|
129
|
+
align-items: baseline;
|
|
130
|
+
gap: var(--ds-space-150);
|
|
131
|
+
color: var(--ds-color-fg-subtle);
|
|
132
|
+
font: var(--ds-text-body-sm);
|
|
133
|
+
letter-spacing: var(--ds-text-body-sm-tracking);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ds-section__stamp {
|
|
137
|
+
min-width: 2.25ch;
|
|
138
|
+
font: var(--ds-text-caption);
|
|
139
|
+
font-variant-numeric: tabular-nums;
|
|
140
|
+
letter-spacing: 0.03em;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ds-section__text {
|
|
144
|
+
max-width: 68ch;
|
|
145
|
+
margin-top: var(--ds-space-150);
|
|
146
|
+
color: var(--ds-color-fg-default);
|
|
147
|
+
font: var(--ds-text-body-md);
|
|
148
|
+
letter-spacing: var(--ds-text-body-md-tracking);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ds-section__text + .ds-section__text {
|
|
152
|
+
margin-top: var(--ds-space-100);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.ds-section__text code {
|
|
156
|
+
padding: 1px 6px;
|
|
157
|
+
border-radius: var(--ds-radius-xs);
|
|
158
|
+
background: var(--ds-color-bg-hover);
|
|
159
|
+
font: var(--ds-text-code-sm);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.ds-section__actions {
|
|
163
|
+
display: flex;
|
|
164
|
+
flex-wrap: wrap;
|
|
165
|
+
gap: var(--ds-space-050) var(--ds-space-300);
|
|
166
|
+
margin-top: var(--ds-space-150);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@media (max-width: 767.98px) {
|
|
170
|
+
.ds-panel {
|
|
171
|
+
padding: var(--ds-space-300) var(--ds-space-250) var(--ds-space-400);
|
|
172
|
+
border-radius: var(--ds-radius-xl);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/* cabeçalho empilhado; ações no canto superior */
|
|
176
|
+
.ds-panel__header {
|
|
177
|
+
display: block;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.ds-panel__actions {
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: 14px;
|
|
183
|
+
right: 12px;
|
|
184
|
+
margin: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.ds-panel__eyebrow {
|
|
188
|
+
padding-inline-end: 88px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.ds-panel__title {
|
|
192
|
+
margin-top: var(--ds-space-150);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.ds-panel__aside {
|
|
196
|
+
margin: var(--ds-space-150) 0 0 -12px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.ds-panel--hero .ds-panel__title {
|
|
200
|
+
font: var(--ds-text-heading-xl);
|
|
201
|
+
letter-spacing: var(--ds-text-heading-xl-tracking);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ds-panel__meta {
|
|
205
|
+
width: 100%;
|
|
206
|
+
margin: var(--ds-space-050) 0 0;
|
|
207
|
+
}
|
|
208
|
+
}
|