@faast-app/ui 0.8.0 → 0.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/dist/components/Badge.d.ts +30 -3
- package/dist/components/Badge.js +7 -2
- package/dist/components/BarraFlotante.d.ts +72 -0
- package/dist/components/BarraFlotante.js +190 -0
- package/dist/components/Button.d.ts +14 -3
- package/dist/components/Button.js +4 -4
- package/dist/components/FormField.d.ts +13 -1
- package/dist/components/FormField.js +4 -2
- package/dist/components/Glass.d.ts +22 -0
- package/dist/components/Glass.js +18 -0
- package/dist/components/Icon.d.ts +1 -1
- package/dist/components/Icon.js +15 -1
- package/dist/components/Input.d.ts +12 -0
- package/dist/components/Input.js +6 -6
- package/dist/components/Stepper.d.ts +12 -1
- package/dist/components/Stepper.js +3 -2
- package/dist/components/SummaryCard.d.ts +90 -0
- package/dist/components/SummaryCard.js +85 -0
- package/dist/components/Toast.d.ts +50 -4
- package/dist/components/Toast.js +21 -10
- package/dist/index.d.ts +14 -6
- package/dist/index.js +4 -0
- package/dist/kit/catalogo.html +1043 -5
- package/dist/kit/faast-kit.css +967 -3
- package/dist/kit/markup.json +92 -1
- package/dist/styles.css +932 -2
- package/dist/utils/barraOverflow.d.ts +18 -0
- package/dist/utils/barraOverflow.js +25 -0
- package/package.json +3 -3
package/dist/kit/catalogo.html
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
<head>
|
|
4
4
|
<meta charset="utf-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
6
|
-
<title>FaaST UI 0.
|
|
6
|
+
<title>FaaST UI 0.9.0 - Kit de propuestas</title>
|
|
7
7
|
<style>/*
|
|
8
|
-
* @faast-app/ui 0.
|
|
8
|
+
* @faast-app/ui 0.9.0 - faast-kit.css (generated, do not edit).
|
|
9
9
|
* One file for static HTML proposals: Inter (latin, OFL-1.1) + @faast-app/tokens +
|
|
10
10
|
* @faast-app/themes (light/dark via data-theme) + base + component styles.
|
|
11
11
|
* Applications import the separate stylesheets instead (see the README).
|
|
@@ -129,6 +129,7 @@
|
|
|
129
129
|
--faast-size-touch-target: 2.75rem;
|
|
130
130
|
--faast-size-control: 2.75rem;
|
|
131
131
|
--faast-size-control-compact: 2.25rem;
|
|
132
|
+
--faast-size-control-lg: 3rem;
|
|
132
133
|
--faast-size-top-bar: 3.5rem;
|
|
133
134
|
--faast-size-sidebar: 15rem;
|
|
134
135
|
--faast-size-measure: 40rem;
|
|
@@ -137,10 +138,15 @@
|
|
|
137
138
|
--faast-radius-sm: 0.375rem;
|
|
138
139
|
--faast-radius-md: 0.5rem;
|
|
139
140
|
--faast-radius-lg: 0.75rem;
|
|
141
|
+
--faast-radius-xl: 1.25rem;
|
|
140
142
|
--faast-radius-full: 9999px;
|
|
141
143
|
--faast-shadow-none: none;
|
|
142
144
|
--faast-shadow-overlay: 0 8px 24px rgb(0 0 0 / 0.12), 0 2px 6px rgb(0 0 0 / 0.08);
|
|
143
145
|
--faast-shadow-overlay-dark: 0 8px 24px rgb(0 0 0 / 0.55), 0 2px 6px rgb(0 0 0 / 0.4);
|
|
146
|
+
--faast-glass-alpha-bar: 88%;
|
|
147
|
+
--faast-glass-alpha-pop: 92%;
|
|
148
|
+
--faast-glass-blur: 20px;
|
|
149
|
+
--faast-glass-saturate: 1.4;
|
|
144
150
|
--faast-breakpoint-sm: 480px;
|
|
145
151
|
--faast-breakpoint-md: 768px;
|
|
146
152
|
--faast-breakpoint-lg: 1024px;
|
|
@@ -152,6 +158,7 @@
|
|
|
152
158
|
--faast-ease-exit: cubic-bezier(0.3, 0, 1, 1);
|
|
153
159
|
--faast-z-base: 0;
|
|
154
160
|
--faast-z-sticky: 100;
|
|
161
|
+
--faast-z-flyout: 150;
|
|
155
162
|
--faast-z-drawer: 200;
|
|
156
163
|
--faast-z-overlay: 300;
|
|
157
164
|
--faast-z-dialog: 400;
|
|
@@ -171,6 +178,7 @@
|
|
|
171
178
|
--faast-bg-selected: #EDEDED;
|
|
172
179
|
--faast-bg-inverse: #151515;
|
|
173
180
|
--faast-bg-brand: #151515;
|
|
181
|
+
--faast-bg-veil: #F2F6EF;
|
|
174
182
|
--faast-text-primary: #151515;
|
|
175
183
|
--faast-text-secondary: #5C5C5C;
|
|
176
184
|
--faast-text-tertiary: #6A6A6A;
|
|
@@ -187,6 +195,14 @@
|
|
|
187
195
|
--faast-accent-hover: #5A8F1B;
|
|
188
196
|
--faast-accent-subtle: #F3F9EB;
|
|
189
197
|
--faast-accent-text: #457014;
|
|
198
|
+
--faast-accent-soft: #ADEA75;
|
|
199
|
+
--faast-accent-on-soft: #151515;
|
|
200
|
+
--faast-accent-soft-glass: #DDF6C5;
|
|
201
|
+
--faast-accent-soft-shape-a: #C1EF96;
|
|
202
|
+
--faast-accent-soft-shape-b: #BAED8B;
|
|
203
|
+
--faast-accent-tint: #ECF5E5;
|
|
204
|
+
--faast-accent-tenue: #F8FBF5;
|
|
205
|
+
--faast-accent-row: #F2F8ED;
|
|
190
206
|
--faast-action-primary-bg: #151515;
|
|
191
207
|
--faast-action-primary-bg-hover: #333333;
|
|
192
208
|
--faast-action-primary-fg: #FFFFFF;
|
|
@@ -240,6 +256,7 @@
|
|
|
240
256
|
--faast-bg-selected: #262626;
|
|
241
257
|
--faast-bg-inverse: #F5F5F5;
|
|
242
258
|
--faast-bg-brand: #151515;
|
|
259
|
+
--faast-bg-veil: #11140F;
|
|
243
260
|
--faast-text-primary: #F5F5F5;
|
|
244
261
|
--faast-text-secondary: #B5B5B5;
|
|
245
262
|
--faast-text-tertiary: #8F8F8F;
|
|
@@ -256,6 +273,14 @@
|
|
|
256
273
|
--faast-accent-hover: #8BC244;
|
|
257
274
|
--faast-accent-subtle: #15240A;
|
|
258
275
|
--faast-accent-text: #8BC244;
|
|
276
|
+
--faast-accent-soft: #ADEA75;
|
|
277
|
+
--faast-accent-on-soft: #151515;
|
|
278
|
+
--faast-accent-soft-glass: #DDF6C5;
|
|
279
|
+
--faast-accent-soft-shape-a: #C1EF96;
|
|
280
|
+
--faast-accent-soft-shape-b: #BAED8B;
|
|
281
|
+
--faast-accent-tint: #242D1D;
|
|
282
|
+
--faast-accent-tenue: #1A1D18;
|
|
283
|
+
--faast-accent-row: #1D2119;
|
|
259
284
|
--faast-action-primary-bg: #F5F5F5;
|
|
260
285
|
--faast-action-primary-bg-hover: #D4D4D4;
|
|
261
286
|
--faast-action-primary-fg: #151515;
|
|
@@ -309,6 +334,7 @@
|
|
|
309
334
|
--faast-bg-selected: #262626;
|
|
310
335
|
--faast-bg-inverse: #F5F5F5;
|
|
311
336
|
--faast-bg-brand: #151515;
|
|
337
|
+
--faast-bg-veil: #11140F;
|
|
312
338
|
--faast-text-primary: #F5F5F5;
|
|
313
339
|
--faast-text-secondary: #B5B5B5;
|
|
314
340
|
--faast-text-tertiary: #8F8F8F;
|
|
@@ -325,6 +351,14 @@
|
|
|
325
351
|
--faast-accent-hover: #8BC244;
|
|
326
352
|
--faast-accent-subtle: #15240A;
|
|
327
353
|
--faast-accent-text: #8BC244;
|
|
354
|
+
--faast-accent-soft: #ADEA75;
|
|
355
|
+
--faast-accent-on-soft: #151515;
|
|
356
|
+
--faast-accent-soft-glass: #DDF6C5;
|
|
357
|
+
--faast-accent-soft-shape-a: #C1EF96;
|
|
358
|
+
--faast-accent-soft-shape-b: #BAED8B;
|
|
359
|
+
--faast-accent-tint: #242D1D;
|
|
360
|
+
--faast-accent-tenue: #1A1D18;
|
|
361
|
+
--faast-accent-row: #1D2119;
|
|
328
362
|
--faast-action-primary-bg: #F5F5F5;
|
|
329
363
|
--faast-action-primary-bg-hover: #D4D4D4;
|
|
330
364
|
--faast-action-primary-fg: #151515;
|
|
@@ -490,6 +524,19 @@ select {
|
|
|
490
524
|
}
|
|
491
525
|
}
|
|
492
526
|
|
|
527
|
+
/*
|
|
528
|
+
* Large control (DSN-005 N15): 48px on every pointer, opt-in. `size="lg"` on Button,
|
|
529
|
+
* `controlSize="lg"` on Input/TextField/PasswordField, or `data-densidad="amplia"` on any
|
|
530
|
+
* ancestor for every button and field inside it. It comes after the blocks above so it wins
|
|
531
|
+
* over the compact (fine pointer) height; md and compact are unchanged.
|
|
532
|
+
*/
|
|
533
|
+
.faast-button--lg,
|
|
534
|
+
.faast-input--lg,
|
|
535
|
+
[data-densidad='amplia'] .faast-button,
|
|
536
|
+
[data-densidad='amplia'] .faast-input {
|
|
537
|
+
--faast-control-h: var(--faast-size-control-lg);
|
|
538
|
+
}
|
|
539
|
+
|
|
493
540
|
/* ---------- Button ---------- */
|
|
494
541
|
.faast-button {
|
|
495
542
|
display: inline-flex;
|
|
@@ -556,6 +603,10 @@ select {
|
|
|
556
603
|
.faast-button--full {
|
|
557
604
|
width: 100%;
|
|
558
605
|
}
|
|
606
|
+
/* Capsule shape (DSN-005 N14): only the radius changes. The focus outline follows it. */
|
|
607
|
+
.faast-button--pill {
|
|
608
|
+
border-radius: var(--faast-radius-full);
|
|
609
|
+
}
|
|
559
610
|
.faast-button:disabled {
|
|
560
611
|
cursor: not-allowed;
|
|
561
612
|
background-color: var(--faast-bg-sunken);
|
|
@@ -801,6 +852,111 @@ select {
|
|
|
801
852
|
border-color: var(--faast-border-default);
|
|
802
853
|
cursor: not-allowed;
|
|
803
854
|
}
|
|
855
|
+
/*
|
|
856
|
+
* Field with the message inside (DSN-005 N11): one box (1px border-strong, danger-fg when
|
|
857
|
+
* invalid) around the control and, under a border-subtle rule, the message: icon, title in ink
|
|
858
|
+
* and detail in text-secondary. No tinted background. The control loses its own border.
|
|
859
|
+
*/
|
|
860
|
+
.faast-field__box {
|
|
861
|
+
min-width: 0;
|
|
862
|
+
border: 1px solid var(--faast-border-strong);
|
|
863
|
+
border-radius: var(--faast-radius-sm);
|
|
864
|
+
background-color: var(--faast-bg-surface);
|
|
865
|
+
transition: border-color var(--faast-duration-fast) var(--faast-ease-standard);
|
|
866
|
+
}
|
|
867
|
+
.faast-field__box:hover {
|
|
868
|
+
border-color: var(--faast-text-secondary);
|
|
869
|
+
}
|
|
870
|
+
.faast-field--inside .faast-input,
|
|
871
|
+
.faast-field--inside .faast-input:hover:not(:disabled),
|
|
872
|
+
.faast-field--inside .faast-input:focus-visible,
|
|
873
|
+
.faast-field--inside .faast-input[aria-invalid='true'],
|
|
874
|
+
.faast-field--inside .faast-input:disabled {
|
|
875
|
+
border: 0;
|
|
876
|
+
background-color: transparent;
|
|
877
|
+
outline: 0;
|
|
878
|
+
}
|
|
879
|
+
/* The box adds its own 1px border on each side: the control gives that 2px back so the
|
|
880
|
+
outer height is exactly the control height (48, 44 or 36), the same as its neighbours. */
|
|
881
|
+
.faast-field--inside .faast-input {
|
|
882
|
+
min-height: calc(var(--faast-control-h) - 2px);
|
|
883
|
+
}
|
|
884
|
+
/* Autofill (password managers) must not paint the control: it keeps the box colours, so the
|
|
885
|
+
message under it stays in the same surface. A long transition delays the browser's own
|
|
886
|
+
background; the inset shadow covers it where the delay is ignored. */
|
|
887
|
+
.faast-field--inside .faast-input:-webkit-autofill,
|
|
888
|
+
.faast-field--inside .faast-input:-webkit-autofill:hover,
|
|
889
|
+
.faast-field--inside .faast-input:-webkit-autofill:focus {
|
|
890
|
+
-webkit-text-fill-color: var(--faast-text-primary);
|
|
891
|
+
caret-color: var(--faast-text-primary);
|
|
892
|
+
box-shadow: inset 0 0 0 100vmax var(--faast-bg-surface);
|
|
893
|
+
transition: background-color 600000s 0s;
|
|
894
|
+
}
|
|
895
|
+
.faast-field--inside .faast-input:autofill,
|
|
896
|
+
.faast-field--inside .faast-input:autofill:hover,
|
|
897
|
+
.faast-field--inside .faast-input:autofill:focus {
|
|
898
|
+
-webkit-text-fill-color: var(--faast-text-primary);
|
|
899
|
+
caret-color: var(--faast-text-primary);
|
|
900
|
+
box-shadow: inset 0 0 0 100vmax var(--faast-bg-surface);
|
|
901
|
+
transition: background-color 600000s 0s;
|
|
902
|
+
}
|
|
903
|
+
/* Focus is shown on the box, only while the control itself has keyboard focus. */
|
|
904
|
+
.faast-field__box:has(.faast-input:focus-visible) {
|
|
905
|
+
outline: 2px solid var(--faast-focus-ring);
|
|
906
|
+
outline-offset: 1px;
|
|
907
|
+
border-color: var(--faast-focus-ring);
|
|
908
|
+
}
|
|
909
|
+
.faast-field__box:has(.faast-input:read-only),
|
|
910
|
+
.faast-field__box:has(.faast-input:disabled) {
|
|
911
|
+
background-color: var(--faast-bg-sunken);
|
|
912
|
+
}
|
|
913
|
+
.faast-field__box:has(.faast-input:disabled),
|
|
914
|
+
.faast-field__box:has(.faast-input:disabled):hover {
|
|
915
|
+
border-color: var(--faast-border-default);
|
|
916
|
+
cursor: not-allowed;
|
|
917
|
+
}
|
|
918
|
+
/* Invalid: also a control that points at a message elsewhere (aria-invalid + aria-describedby). */
|
|
919
|
+
.faast-field__box:has(.faast-input[aria-invalid='true']),
|
|
920
|
+
.faast-field__box:has(.faast-input[aria-invalid='true']):hover,
|
|
921
|
+
.faast-field__box:has(.faast-input[aria-invalid='true']:focus-visible) {
|
|
922
|
+
border-color: var(--faast-status-danger-fg);
|
|
923
|
+
}
|
|
924
|
+
.faast-field--inside .faast-input:disabled {
|
|
925
|
+
color: var(--faast-text-disabled);
|
|
926
|
+
}
|
|
927
|
+
.faast-field__message {
|
|
928
|
+
display: flex;
|
|
929
|
+
align-items: flex-start;
|
|
930
|
+
gap: var(--faast-space-2);
|
|
931
|
+
margin: 0;
|
|
932
|
+
padding: var(--faast-space-2) var(--faast-space-3) var(--faast-space-3);
|
|
933
|
+
border-top: 1px solid var(--faast-border-subtle);
|
|
934
|
+
font-size: var(--faast-font-size-sm);
|
|
935
|
+
line-height: var(--faast-line-height-snug);
|
|
936
|
+
}
|
|
937
|
+
.faast-field__message .faast-icon {
|
|
938
|
+
/* Centre the 16px icon on the first text line (line height minus icon, halved). */
|
|
939
|
+
margin-top: calc((var(--faast-font-size-sm) * var(--faast-line-height-snug) - 1rem) / 2);
|
|
940
|
+
color: var(--faast-status-danger-fg);
|
|
941
|
+
}
|
|
942
|
+
.faast-field__message-text {
|
|
943
|
+
display: grid;
|
|
944
|
+
min-width: 0;
|
|
945
|
+
/* A long unbroken string (an e-mail, an id) wraps instead of pushing the box wider. */
|
|
946
|
+
overflow-wrap: anywhere;
|
|
947
|
+
}
|
|
948
|
+
.faast-field__message-title {
|
|
949
|
+
font-weight: var(--faast-font-weight-medium);
|
|
950
|
+
color: var(--faast-text-primary);
|
|
951
|
+
}
|
|
952
|
+
.faast-field__message-detail {
|
|
953
|
+
color: var(--faast-text-secondary);
|
|
954
|
+
}
|
|
955
|
+
@media (prefers-reduced-motion: reduce) {
|
|
956
|
+
.faast-field__box {
|
|
957
|
+
transition: none;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
804
960
|
.faast-textarea {
|
|
805
961
|
padding: var(--faast-space-2) var(--faast-space-3);
|
|
806
962
|
resize: vertical;
|
|
@@ -1696,9 +1852,15 @@ html:has(.faast-dialog[open]:modal) {
|
|
|
1696
1852
|
.faast-table--cards .faast-table__row--selected > .faast-table__th {
|
|
1697
1853
|
background-color: transparent;
|
|
1698
1854
|
}
|
|
1855
|
+
/* Default placement: a full-width line. At specificity (0,1,0) on purpose (DSN-001 L-1): the
|
|
1856
|
+
slot rules below ([data-slot], 0,2,0) must be able to place select, title and status in
|
|
1857
|
+
their own columns. With the old (0,3,0) selector this rule won and stacked them on row 1. */
|
|
1858
|
+
.faast-table--cards
|
|
1859
|
+
:where(.faast-table__row > .faast-table__cell, .faast-table__row > .faast-table__th) {
|
|
1860
|
+
grid-column: 1 / -1;
|
|
1861
|
+
}
|
|
1699
1862
|
.faast-table--cards .faast-table__row > .faast-table__cell,
|
|
1700
1863
|
.faast-table--cards .faast-table__row > .faast-table__th {
|
|
1701
|
-
grid-column: 1 / -1;
|
|
1702
1864
|
min-width: 0;
|
|
1703
1865
|
padding: 0;
|
|
1704
1866
|
border: 0;
|
|
@@ -1873,9 +2035,15 @@ html:has(.faast-dialog[open]:modal) {
|
|
|
1873
2035
|
.faast-table--cards-lg .faast-table__row--selected > .faast-table__th {
|
|
1874
2036
|
background-color: transparent;
|
|
1875
2037
|
}
|
|
2038
|
+
/* Default placement: a full-width line. At specificity (0,1,0) on purpose (DSN-001 L-1): the
|
|
2039
|
+
slot rules below ([data-slot], 0,2,0) must be able to place select, title and status in
|
|
2040
|
+
their own columns. With the old (0,3,0) selector this rule won and stacked them on row 1. */
|
|
2041
|
+
.faast-table--cards-lg
|
|
2042
|
+
:where(.faast-table__row > .faast-table__cell, .faast-table__row > .faast-table__th) {
|
|
2043
|
+
grid-column: 1 / -1;
|
|
2044
|
+
}
|
|
1876
2045
|
.faast-table--cards-lg .faast-table__row > .faast-table__cell,
|
|
1877
2046
|
.faast-table--cards-lg .faast-table__row > .faast-table__th {
|
|
1878
|
-
grid-column: 1 / -1;
|
|
1879
2047
|
min-width: 0;
|
|
1880
2048
|
padding: 0;
|
|
1881
2049
|
border: 0;
|
|
@@ -2453,6 +2621,11 @@ html:has(.faast-shell) {
|
|
|
2453
2621
|
--faast-input-wrap-h: var(--faast-size-control-compact);
|
|
2454
2622
|
}
|
|
2455
2623
|
}
|
|
2624
|
+
/* Large field (DSN-005 N15): the trailing action grows with it (48px minus the 2px insets). */
|
|
2625
|
+
.faast-input-wrap--lg,
|
|
2626
|
+
[data-densidad='amplia'] .faast-input-wrap {
|
|
2627
|
+
--faast-input-wrap-h: var(--faast-size-control-lg);
|
|
2628
|
+
}
|
|
2456
2629
|
.faast-input-wrap__leading {
|
|
2457
2630
|
position: absolute;
|
|
2458
2631
|
top: 50%;
|
|
@@ -2812,6 +2985,22 @@ html:has(.faast-shell) {
|
|
|
2812
2985
|
gap: var(--faast-space-2);
|
|
2813
2986
|
pointer-events: none;
|
|
2814
2987
|
}
|
|
2988
|
+
/*
|
|
2989
|
+
* ToastProvider placement="top": under the floating bar, 8px (space-2) below its real outer height
|
|
2990
|
+
* (--faast-nav-bar-outer-height). --faast-toaster-top overrides it.
|
|
2991
|
+
*/
|
|
2992
|
+
.faast-toaster--top {
|
|
2993
|
+
top: var(
|
|
2994
|
+
--faast-toaster-top,
|
|
2995
|
+
calc(
|
|
2996
|
+
max(var(--faast-nav-bar-margin), var(--faast-safe-top)) + var(--faast-nav-bar-outer-height) +
|
|
2997
|
+
var(--faast-space-2)
|
|
2998
|
+
)
|
|
2999
|
+
);
|
|
3000
|
+
right: var(--faast-space-2);
|
|
3001
|
+
bottom: auto;
|
|
3002
|
+
left: var(--faast-space-2);
|
|
3003
|
+
}
|
|
2815
3004
|
.faast-toast {
|
|
2816
3005
|
display: flex;
|
|
2817
3006
|
align-items: center;
|
|
@@ -2850,6 +3039,12 @@ html:has(.faast-shell) {
|
|
|
2850
3039
|
transform: translateY(0.5rem);
|
|
2851
3040
|
}
|
|
2852
3041
|
}
|
|
3042
|
+
@keyframes faast-toast-in-down {
|
|
3043
|
+
from {
|
|
3044
|
+
opacity: 0;
|
|
3045
|
+
transform: translateY(-0.5rem);
|
|
3046
|
+
}
|
|
3047
|
+
}
|
|
2853
3048
|
|
|
2854
3049
|
/* ---------- OptionList ---------- */
|
|
2855
3050
|
.faast-option-list {
|
|
@@ -3468,6 +3663,10 @@ html:has(.faast-shell) {
|
|
|
3468
3663
|
display: none;
|
|
3469
3664
|
}
|
|
3470
3665
|
}
|
|
3666
|
+
/* variant="compact": the compact form at any window width (wins over the rule above). */
|
|
3667
|
+
.faast-stepper--compact .faast-stepper__compact {
|
|
3668
|
+
display: block;
|
|
3669
|
+
}
|
|
3471
3670
|
@media (prefers-reduced-motion: reduce) {
|
|
3472
3671
|
.faast-stepper__bar > span {
|
|
3473
3672
|
transition: none;
|
|
@@ -4220,6 +4419,279 @@ html:has(.faast-shell) {
|
|
|
4220
4419
|
}
|
|
4221
4420
|
}
|
|
4222
4421
|
|
|
4422
|
+
/* ---------- SummaryCard (DSN-001 RPT-01) ---------- */
|
|
4423
|
+
/* One headline figure with a notch in the top-right corner. The notch is a radial mask on a
|
|
4424
|
+
decorative layer (.faast-summary-card__surface), so the round action that sits in it is NOT
|
|
4425
|
+
clipped and the shape follows the theme: no image, no SVG. */
|
|
4426
|
+
.faast-summary-card {
|
|
4427
|
+
--faast-summary-card-radius: var(--faast-radius-xl);
|
|
4428
|
+
/* Radius of the cut and distance of its centre from the top and right edges. The action is
|
|
4429
|
+
centred on that point. */
|
|
4430
|
+
--faast-summary-card-notch: 2.125rem;
|
|
4431
|
+
--faast-summary-card-notch-at: 1.625rem;
|
|
4432
|
+
position: relative;
|
|
4433
|
+
min-width: 0;
|
|
4434
|
+
margin: 0;
|
|
4435
|
+
/* The card owns its ink: it sits on bg.surface (bg.sunken for sm), so its text is text.primary
|
|
4436
|
+
whatever the container around it sets. Without this it inherits the colour of the page and,
|
|
4437
|
+
inside a themed container (a tenant, a dark section), it can be the colour of its own
|
|
4438
|
+
background. The featured card sets on-soft on its content below. */
|
|
4439
|
+
color: var(--faast-text-primary);
|
|
4440
|
+
/* The shadow follows the silhouette (notch included), which a box-shadow cannot do. Opt out
|
|
4441
|
+
with --faast-summary-card-shadow: none. light-dark() reads the theme's color-scheme. */
|
|
4442
|
+
filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.06)) drop-shadow(0 14px 16px rgb(0 0 0 / 0.09));
|
|
4443
|
+
filter: var(
|
|
4444
|
+
--faast-summary-card-shadow,
|
|
4445
|
+
drop-shadow(0 1px 1px light-dark(rgb(0 0 0 / 0.06), rgb(0 0 0 / 0.5)))
|
|
4446
|
+
drop-shadow(0 14px 16px light-dark(rgb(0 0 0 / 0.09), rgb(0 0 0 / 0.7)))
|
|
4447
|
+
);
|
|
4448
|
+
transition: transform var(--faast-duration-base) var(--faast-ease-standard);
|
|
4449
|
+
}
|
|
4450
|
+
.faast-summary-card--sm {
|
|
4451
|
+
--faast-summary-card-radius: var(--faast-radius-lg);
|
|
4452
|
+
/* Flat mini card (the one in the Liquidación dialog of the prototype): no shadow, so it does
|
|
4453
|
+
not read as a card inside a card. */
|
|
4454
|
+
filter: none;
|
|
4455
|
+
}
|
|
4456
|
+
.faast-summary-card__surface {
|
|
4457
|
+
position: absolute;
|
|
4458
|
+
inset: 0;
|
|
4459
|
+
overflow: hidden;
|
|
4460
|
+
border-radius: var(--faast-summary-card-radius);
|
|
4461
|
+
background-color: var(--faast-bg-surface);
|
|
4462
|
+
}
|
|
4463
|
+
/* sm: `bg.sunken` with a subtle border and without the diagonal blocks. */
|
|
4464
|
+
.faast-summary-card--sm > .faast-summary-card__surface {
|
|
4465
|
+
border: 1px solid var(--faast-border-subtle);
|
|
4466
|
+
background-color: var(--faast-bg-sunken);
|
|
4467
|
+
}
|
|
4468
|
+
.faast-summary-card--sm .faast-summary-card__shape {
|
|
4469
|
+
display: none;
|
|
4470
|
+
}
|
|
4471
|
+
.faast-summary-card:has(.faast-summary-card__action) > .faast-summary-card__surface {
|
|
4472
|
+
-webkit-mask-image: radial-gradient(
|
|
4473
|
+
circle var(--faast-summary-card-notch) at calc(100% - var(--faast-summary-card-notch-at))
|
|
4474
|
+
var(--faast-summary-card-notch-at),
|
|
4475
|
+
transparent 0 98%,
|
|
4476
|
+
currentcolor 100%
|
|
4477
|
+
);
|
|
4478
|
+
mask-image: radial-gradient(
|
|
4479
|
+
circle var(--faast-summary-card-notch) at calc(100% - var(--faast-summary-card-notch-at))
|
|
4480
|
+
var(--faast-summary-card-notch-at),
|
|
4481
|
+
transparent 0 98%,
|
|
4482
|
+
currentcolor 100%
|
|
4483
|
+
);
|
|
4484
|
+
}
|
|
4485
|
+
/* Two diagonal blocks, decorative only (they carry no meaning). */
|
|
4486
|
+
.faast-summary-card__shape {
|
|
4487
|
+
position: absolute;
|
|
4488
|
+
inset: 0 0 0 auto;
|
|
4489
|
+
width: 64%;
|
|
4490
|
+
background-color: var(--faast-bg-sunken);
|
|
4491
|
+
clip-path: polygon(44% 0, 100% 0, 100% 100%, 12% 100%);
|
|
4492
|
+
}
|
|
4493
|
+
.faast-summary-card__shape::after {
|
|
4494
|
+
content: '';
|
|
4495
|
+
position: absolute;
|
|
4496
|
+
inset: 0 auto 0 0;
|
|
4497
|
+
width: 100%;
|
|
4498
|
+
background-color: var(--faast-bg-hover);
|
|
4499
|
+
clip-path: polygon(0 0, 34% 0, 0 100%);
|
|
4500
|
+
}
|
|
4501
|
+
.faast-summary-card__content {
|
|
4502
|
+
position: relative;
|
|
4503
|
+
display: grid;
|
|
4504
|
+
gap: var(--faast-space-3);
|
|
4505
|
+
align-content: start;
|
|
4506
|
+
height: 100%;
|
|
4507
|
+
min-width: 0;
|
|
4508
|
+
padding: var(--faast-space-5);
|
|
4509
|
+
}
|
|
4510
|
+
.faast-summary-card--sm .faast-summary-card__content {
|
|
4511
|
+
gap: var(--faast-space-2);
|
|
4512
|
+
padding: var(--faast-space-4);
|
|
4513
|
+
}
|
|
4514
|
+
.faast-summary-card__top {
|
|
4515
|
+
display: flex;
|
|
4516
|
+
align-items: center;
|
|
4517
|
+
gap: var(--faast-space-3);
|
|
4518
|
+
min-width: 0;
|
|
4519
|
+
}
|
|
4520
|
+
/* Keep the title clear of the notch. */
|
|
4521
|
+
.faast-summary-card:has(.faast-summary-card__action) .faast-summary-card__top {
|
|
4522
|
+
padding-right: var(--faast-space-10);
|
|
4523
|
+
}
|
|
4524
|
+
.faast-summary-card__icon {
|
|
4525
|
+
display: inline-grid;
|
|
4526
|
+
place-items: center;
|
|
4527
|
+
flex: none;
|
|
4528
|
+
width: 2.25rem;
|
|
4529
|
+
height: 2.25rem;
|
|
4530
|
+
border-radius: var(--faast-radius-full);
|
|
4531
|
+
background-color: var(--faast-accent-tint);
|
|
4532
|
+
color: var(--faast-accent-text);
|
|
4533
|
+
}
|
|
4534
|
+
.faast-summary-card--sm .faast-summary-card__icon {
|
|
4535
|
+
width: 2rem;
|
|
4536
|
+
height: 2rem;
|
|
4537
|
+
}
|
|
4538
|
+
.faast-summary-card__title {
|
|
4539
|
+
flex: 1;
|
|
4540
|
+
min-width: 0;
|
|
4541
|
+
margin: 0;
|
|
4542
|
+
font-size: var(--faast-font-size-md);
|
|
4543
|
+
font-weight: var(--faast-font-weight-medium);
|
|
4544
|
+
letter-spacing: -0.01em;
|
|
4545
|
+
line-height: var(--faast-line-height-snug);
|
|
4546
|
+
}
|
|
4547
|
+
.faast-summary-card--sm .faast-summary-card__title {
|
|
4548
|
+
font-size: var(--faast-font-size-sm);
|
|
4549
|
+
}
|
|
4550
|
+
.faast-summary-card__value {
|
|
4551
|
+
margin: var(--faast-space-2) 0 0;
|
|
4552
|
+
font-size: calc(var(--faast-font-size-3xl) * 0.95);
|
|
4553
|
+
font-weight: var(--faast-font-weight-medium);
|
|
4554
|
+
letter-spacing: -0.035em;
|
|
4555
|
+
line-height: 1.05;
|
|
4556
|
+
overflow-wrap: anywhere;
|
|
4557
|
+
}
|
|
4558
|
+
.faast-summary-card--sm .faast-summary-card__value {
|
|
4559
|
+
margin-top: 0;
|
|
4560
|
+
font-size: var(--faast-font-size-2xl);
|
|
4561
|
+
letter-spacing: -0.03em;
|
|
4562
|
+
line-height: 1.1;
|
|
4563
|
+
}
|
|
4564
|
+
.faast-summary-card__unit {
|
|
4565
|
+
margin-left: var(--faast-space-2);
|
|
4566
|
+
color: var(--faast-text-secondary);
|
|
4567
|
+
font-size: var(--faast-font-size-xs);
|
|
4568
|
+
font-weight: var(--faast-font-weight-medium);
|
|
4569
|
+
letter-spacing: 0.02em;
|
|
4570
|
+
}
|
|
4571
|
+
.faast-summary-card__footer {
|
|
4572
|
+
display: flex;
|
|
4573
|
+
flex-wrap: wrap;
|
|
4574
|
+
align-items: center;
|
|
4575
|
+
gap: var(--faast-space-2);
|
|
4576
|
+
min-width: 0;
|
|
4577
|
+
margin: 0;
|
|
4578
|
+
color: var(--faast-text-secondary);
|
|
4579
|
+
font-size: var(--faast-font-size-xs);
|
|
4580
|
+
}
|
|
4581
|
+
.faast-summary-card__note {
|
|
4582
|
+
display: flex;
|
|
4583
|
+
align-items: center;
|
|
4584
|
+
gap: var(--faast-space-1);
|
|
4585
|
+
margin: 0;
|
|
4586
|
+
color: var(--faast-text-secondary);
|
|
4587
|
+
font-size: var(--faast-font-size-xs);
|
|
4588
|
+
}
|
|
4589
|
+
.faast-summary-card__note-icon {
|
|
4590
|
+
display: inline-flex;
|
|
4591
|
+
}
|
|
4592
|
+
/* Placeholder of the value while busy: one line of the value's own height (its line-height). */
|
|
4593
|
+
.faast-summary-card__value-placeholder {
|
|
4594
|
+
width: 68%;
|
|
4595
|
+
height: calc(1em * 1.05);
|
|
4596
|
+
height: 1lh;
|
|
4597
|
+
}
|
|
4598
|
+
/* Placeholder of the note while busy: one line of its own height. */
|
|
4599
|
+
.faast-summary-card__note-placeholder {
|
|
4600
|
+
width: 45%;
|
|
4601
|
+
height: calc(1em * var(--faast-line-height-normal));
|
|
4602
|
+
height: 1lh;
|
|
4603
|
+
}
|
|
4604
|
+
/* The round action, centred in the notch. */
|
|
4605
|
+
.faast-summary-card__action {
|
|
4606
|
+
position: absolute;
|
|
4607
|
+
top: calc(var(--faast-summary-card-notch-at) - var(--faast-size-touch-target) / 2);
|
|
4608
|
+
right: calc(var(--faast-summary-card-notch-at) - var(--faast-size-touch-target) / 2);
|
|
4609
|
+
display: inline-grid;
|
|
4610
|
+
place-items: center;
|
|
4611
|
+
width: var(--faast-size-touch-target);
|
|
4612
|
+
height: var(--faast-size-touch-target);
|
|
4613
|
+
padding: 0;
|
|
4614
|
+
border: 0;
|
|
4615
|
+
border-radius: var(--faast-radius-full);
|
|
4616
|
+
background-color: var(--faast-bg-surface);
|
|
4617
|
+
box-shadow: 0 0 0 1px var(--faast-border-subtle);
|
|
4618
|
+
color: var(--faast-text-primary);
|
|
4619
|
+
cursor: pointer;
|
|
4620
|
+
text-decoration: none;
|
|
4621
|
+
transition:
|
|
4622
|
+
background-color var(--faast-duration-fast) var(--faast-ease-standard),
|
|
4623
|
+
color var(--faast-duration-fast) var(--faast-ease-standard),
|
|
4624
|
+
transform var(--faast-duration-fast) var(--faast-ease-standard);
|
|
4625
|
+
}
|
|
4626
|
+
.faast-summary-card__action:hover {
|
|
4627
|
+
background-color: var(--faast-accent-soft);
|
|
4628
|
+
color: var(--faast-accent-on-soft);
|
|
4629
|
+
}
|
|
4630
|
+
.faast-summary-card__action:active {
|
|
4631
|
+
transform: scale(0.94);
|
|
4632
|
+
}
|
|
4633
|
+
.faast-summary-card__action[aria-disabled='true'] {
|
|
4634
|
+
opacity: 0.5;
|
|
4635
|
+
cursor: progress;
|
|
4636
|
+
}
|
|
4637
|
+
/* A card with an action lifts a little on hover; one without is not interactive and stays put. */
|
|
4638
|
+
.faast-summary-card:has(.faast-summary-card__action):hover {
|
|
4639
|
+
transform: translateY(-2px);
|
|
4640
|
+
}
|
|
4641
|
+
/* Featured: the soft brand colour. Text and icons on it are on-soft, never text-on-accent. */
|
|
4642
|
+
.faast-summary-card--featured > .faast-summary-card__surface {
|
|
4643
|
+
background-color: var(--faast-accent-soft);
|
|
4644
|
+
}
|
|
4645
|
+
/* The featured sm keeps the 1px border of sm, transparent, so it measures the same as the plain one. */
|
|
4646
|
+
.faast-summary-card--sm.faast-summary-card--featured > .faast-summary-card__surface {
|
|
4647
|
+
border-color: transparent;
|
|
4648
|
+
}
|
|
4649
|
+
.faast-summary-card--featured .faast-summary-card__shape {
|
|
4650
|
+
background-color: var(--faast-accent-soft-shape-a);
|
|
4651
|
+
}
|
|
4652
|
+
.faast-summary-card--featured .faast-summary-card__shape::after {
|
|
4653
|
+
background-color: var(--faast-accent-soft-shape-b);
|
|
4654
|
+
}
|
|
4655
|
+
.faast-summary-card--featured .faast-summary-card__content,
|
|
4656
|
+
.faast-summary-card--featured .faast-summary-card__unit,
|
|
4657
|
+
.faast-summary-card--featured .faast-summary-card__footer,
|
|
4658
|
+
.faast-summary-card--featured .faast-summary-card__note {
|
|
4659
|
+
color: var(--faast-accent-on-soft);
|
|
4660
|
+
}
|
|
4661
|
+
.faast-summary-card--featured .faast-summary-card__icon {
|
|
4662
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4663
|
+
color: var(--faast-accent-on-soft);
|
|
4664
|
+
}
|
|
4665
|
+
/* A Badge inside the featured card becomes a glass chip: no border, no status colour. */
|
|
4666
|
+
.faast-summary-card--featured .faast-badge {
|
|
4667
|
+
border-color: transparent;
|
|
4668
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4669
|
+
color: var(--faast-accent-on-soft);
|
|
4670
|
+
}
|
|
4671
|
+
.faast-summary-card--featured .faast-summary-card__action:hover {
|
|
4672
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4673
|
+
}
|
|
4674
|
+
/* Placeholders on the featured card are glass, not the grey of the page surfaces. */
|
|
4675
|
+
.faast-summary-card--featured .faast-skeleton {
|
|
4676
|
+
background-color: var(--faast-accent-soft-glass);
|
|
4677
|
+
}
|
|
4678
|
+
@media (prefers-reduced-motion: reduce) {
|
|
4679
|
+
.faast-summary-card,
|
|
4680
|
+
.faast-summary-card__action {
|
|
4681
|
+
transition: none;
|
|
4682
|
+
}
|
|
4683
|
+
.faast-summary-card:has(.faast-summary-card__action):hover,
|
|
4684
|
+
.faast-summary-card__action:active {
|
|
4685
|
+
transform: none;
|
|
4686
|
+
}
|
|
4687
|
+
}
|
|
4688
|
+
@media (forced-colors: active) {
|
|
4689
|
+
/* The fills disappear in forced colours: keep the silhouette with a border on the surface. */
|
|
4690
|
+
.faast-summary-card__surface {
|
|
4691
|
+
border: 1px solid CanvasText;
|
|
4692
|
+
}
|
|
4693
|
+
}
|
|
4694
|
+
|
|
4223
4695
|
/* ---------- Timeline ---------- */
|
|
4224
4696
|
.faast-timeline {
|
|
4225
4697
|
margin: 0;
|
|
@@ -5133,6 +5605,498 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5133
5605
|
min-height: 40px;
|
|
5134
5606
|
}
|
|
5135
5607
|
}
|
|
5608
|
+
|
|
5609
|
+
/* ---------- StatusBadge variant="dot": status as text (dot + words, no pill) ---------- */
|
|
5610
|
+
/*
|
|
5611
|
+
* Colours are the `status-*-fg` roles (4.5:1 on bg-surface), never `status-*-solid`: the vivid
|
|
5612
|
+
* amber and green fills do not reach 3:1 on the page ground. `neutral` is ink: the dot uses
|
|
5613
|
+
* `text-secondary`. The label always stays in `text-primary`.
|
|
5614
|
+
*/
|
|
5615
|
+
.faast-status-text {
|
|
5616
|
+
--faast-status-text-tone: var(--faast-text-secondary);
|
|
5617
|
+
display: inline-grid;
|
|
5618
|
+
justify-items: start;
|
|
5619
|
+
gap: var(--faast-space-1);
|
|
5620
|
+
color: var(--faast-text-primary);
|
|
5621
|
+
}
|
|
5622
|
+
.faast-status-text--success {
|
|
5623
|
+
--faast-status-text-tone: var(--faast-status-success-fg);
|
|
5624
|
+
}
|
|
5625
|
+
.faast-status-text--warning {
|
|
5626
|
+
--faast-status-text-tone: var(--faast-status-warning-fg);
|
|
5627
|
+
}
|
|
5628
|
+
.faast-status-text--danger {
|
|
5629
|
+
--faast-status-text-tone: var(--faast-status-danger-fg);
|
|
5630
|
+
}
|
|
5631
|
+
.faast-status-text--info {
|
|
5632
|
+
--faast-status-text-tone: var(--faast-status-info-fg);
|
|
5633
|
+
}
|
|
5634
|
+
.faast-status-text--violet {
|
|
5635
|
+
--faast-status-text-tone: var(--faast-status-violet-fg);
|
|
5636
|
+
}
|
|
5637
|
+
.faast-status-text--warning,
|
|
5638
|
+
.faast-status-text--danger {
|
|
5639
|
+
font-weight: var(--faast-font-weight-medium);
|
|
5640
|
+
}
|
|
5641
|
+
.faast-status-text__line {
|
|
5642
|
+
display: inline-flex;
|
|
5643
|
+
align-items: center;
|
|
5644
|
+
gap: var(--faast-space-2);
|
|
5645
|
+
white-space: nowrap;
|
|
5646
|
+
}
|
|
5647
|
+
.faast-status-text__dot {
|
|
5648
|
+
flex: none;
|
|
5649
|
+
box-sizing: border-box;
|
|
5650
|
+
width: 0.5rem;
|
|
5651
|
+
height: 0.5rem;
|
|
5652
|
+
border: 1.5px solid var(--faast-status-text-tone);
|
|
5653
|
+
border-radius: var(--faast-radius-full);
|
|
5654
|
+
background-color: transparent;
|
|
5655
|
+
}
|
|
5656
|
+
.faast-status-text--solid .faast-status-text__dot {
|
|
5657
|
+
background-color: var(--faast-status-text-tone);
|
|
5658
|
+
}
|
|
5659
|
+
.faast-status-text__note {
|
|
5660
|
+
font-size: var(--faast-font-size-xs);
|
|
5661
|
+
font-weight: var(--faast-font-weight-regular);
|
|
5662
|
+
color: var(--faast-text-secondary);
|
|
5663
|
+
}
|
|
5664
|
+
.faast-status-text--warning .faast-status-text__note,
|
|
5665
|
+
.faast-status-text--danger .faast-status-text__note {
|
|
5666
|
+
color: var(--faast-status-text-tone);
|
|
5667
|
+
}
|
|
5668
|
+
@media (forced-colors: active) {
|
|
5669
|
+
.faast-status-text__dot {
|
|
5670
|
+
border-color: CanvasText;
|
|
5671
|
+
}
|
|
5672
|
+
.faast-status-text--solid .faast-status-text__dot {
|
|
5673
|
+
background-color: CanvasText;
|
|
5674
|
+
}
|
|
5675
|
+
}
|
|
5676
|
+
|
|
5677
|
+
/* ---------- Glass material (Glass, glassClassName) ---------- */
|
|
5678
|
+
/*
|
|
5679
|
+
* For layers that FLOAT only. Solid by default; the translucent blur is an enhancement. The
|
|
5680
|
+
* opaque colour is the `bg-surface` role, so light, dark and tenant themes need nothing else.
|
|
5681
|
+
* No radius and no shadow here: the floating layer sets them.
|
|
5682
|
+
*/
|
|
5683
|
+
.faast-glass {
|
|
5684
|
+
background-color: var(--faast-bg-surface);
|
|
5685
|
+
border: 1px solid var(--faast-border-default);
|
|
5686
|
+
}
|
|
5687
|
+
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
|
|
5688
|
+
.faast-glass {
|
|
5689
|
+
background-color: color-mix(
|
|
5690
|
+
in srgb,
|
|
5691
|
+
var(--faast-bg-surface) var(--faast-glass-alpha-bar),
|
|
5692
|
+
transparent
|
|
5693
|
+
);
|
|
5694
|
+
-webkit-backdrop-filter: blur(var(--faast-glass-blur)) saturate(var(--faast-glass-saturate));
|
|
5695
|
+
backdrop-filter: blur(var(--faast-glass-blur)) saturate(var(--faast-glass-saturate));
|
|
5696
|
+
}
|
|
5697
|
+
.faast-glass--pop {
|
|
5698
|
+
background-color: color-mix(
|
|
5699
|
+
in srgb,
|
|
5700
|
+
var(--faast-bg-surface) var(--faast-glass-alpha-pop),
|
|
5701
|
+
transparent
|
|
5702
|
+
);
|
|
5703
|
+
}
|
|
5704
|
+
}
|
|
5705
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
5706
|
+
.faast-glass,
|
|
5707
|
+
.faast-glass--pop {
|
|
5708
|
+
background-color: var(--faast-bg-surface);
|
|
5709
|
+
-webkit-backdrop-filter: none;
|
|
5710
|
+
backdrop-filter: none;
|
|
5711
|
+
}
|
|
5712
|
+
}
|
|
5713
|
+
/* "Reducir transparencia" switch: the app sets data-vidrio="solido" on <html> (or a subtree). */
|
|
5714
|
+
[data-vidrio='solido'] .faast-glass,
|
|
5715
|
+
[data-vidrio='solido'] .faast-glass--pop {
|
|
5716
|
+
background-color: var(--faast-bg-surface);
|
|
5717
|
+
-webkit-backdrop-filter: none;
|
|
5718
|
+
backdrop-filter: none;
|
|
5719
|
+
}
|
|
5720
|
+
|
|
5721
|
+
/* ---------- Toast variant="flotante" (glass notice) ---------- */
|
|
5722
|
+
/*
|
|
5723
|
+
* Sits after the glass block on purpose: `faast-glass` (same specificity) gives the translucent
|
|
5724
|
+
* background and the border, and wins over the dark background of `.faast-toast`. The material,
|
|
5725
|
+
* its solid fallbacks and the 92% opacity come from `faast-glass faast-glass--pop`.
|
|
5726
|
+
*/
|
|
5727
|
+
.faast-toast--flotante {
|
|
5728
|
+
max-width: min(36rem, 100%);
|
|
5729
|
+
min-height: 0;
|
|
5730
|
+
padding: var(--faast-space-3) var(--faast-space-4);
|
|
5731
|
+
border-radius: var(--faast-radius-xl);
|
|
5732
|
+
color: var(--faast-text-primary);
|
|
5733
|
+
font-size: var(--faast-font-size-md);
|
|
5734
|
+
line-height: var(--faast-line-height-snug);
|
|
5735
|
+
animation-name: faast-toast-in-down;
|
|
5736
|
+
}
|
|
5737
|
+
.faast-toast--flotante:has(.faast-toast__close) {
|
|
5738
|
+
padding-right: var(--faast-space-2);
|
|
5739
|
+
}
|
|
5740
|
+
.faast-toast--flotante .faast-toast__message {
|
|
5741
|
+
padding-block: 0;
|
|
5742
|
+
text-wrap: balance;
|
|
5743
|
+
}
|
|
5744
|
+
/* A 20px box for the icon or the 16px ring, so the text does not move from waiting to done. */
|
|
5745
|
+
.faast-toast--flotante .faast-toast__icon {
|
|
5746
|
+
display: grid;
|
|
5747
|
+
flex: none;
|
|
5748
|
+
place-items: center;
|
|
5749
|
+
width: 1.25rem;
|
|
5750
|
+
height: 1.25rem;
|
|
5751
|
+
color: var(--faast-text-secondary);
|
|
5752
|
+
}
|
|
5753
|
+
.faast-toast--flotante.faast-toast--success .faast-toast__icon {
|
|
5754
|
+
color: var(--faast-status-success-fg);
|
|
5755
|
+
}
|
|
5756
|
+
.faast-toast--flotante .faast-toast__close:hover:not(:disabled) {
|
|
5757
|
+
background-color: var(--faast-bg-hover);
|
|
5758
|
+
opacity: 1;
|
|
5759
|
+
}
|
|
5760
|
+
@media (max-width: 639.98px) {
|
|
5761
|
+
.faast-toast--flotante {
|
|
5762
|
+
width: 100%;
|
|
5763
|
+
}
|
|
5764
|
+
}
|
|
5765
|
+
|
|
5766
|
+
/* ---------- Floating bar (BarraFlotante, BarraMarca, BarraModulos, BarraHerramientas) ---------- */
|
|
5767
|
+
/*
|
|
5768
|
+
* A glass capsule 12px from the top edge. Colours come only from theme roles, so tenant themes
|
|
5769
|
+
* (createTenantTheme) drive `accent-*` and `text-on-accent`. Text on the glass uses
|
|
5770
|
+
* `text-primary` and `text-secondary` only (`text-tertiary` fails 4.5:1 over a black backdrop).
|
|
5771
|
+
*/
|
|
5772
|
+
:root {
|
|
5773
|
+
--faast-nav-bar-height: var(--faast-size-top-bar);
|
|
5774
|
+
--faast-nav-bar-margin: var(--faast-space-3);
|
|
5775
|
+
/*
|
|
5776
|
+
* Outer height of the bar as drawn: the brand link keeps the 44px touch target at every width,
|
|
5777
|
+
* plus the 8px padding above and below and the 1px glass border on each side = 62px, never
|
|
5778
|
+
* under --faast-nav-bar-height (the 56px minimum). What sits under the bar (the top notice
|
|
5779
|
+
* region) is measured from this one: the minimum alone left the notice 2px from the real bar.
|
|
5780
|
+
*/
|
|
5781
|
+
--faast-nav-bar-outer-height: max(
|
|
5782
|
+
var(--faast-nav-bar-height),
|
|
5783
|
+
calc(var(--faast-size-touch-target) + var(--faast-space-2) * 2 + 2px)
|
|
5784
|
+
);
|
|
5785
|
+
}
|
|
5786
|
+
/* Anchors and focused fields never end up under the bar: bar + both margins + a breath. */
|
|
5787
|
+
:root:has(.faast-bar-wrap) {
|
|
5788
|
+
scroll-padding-top: calc(
|
|
5789
|
+
var(--faast-nav-bar-height) + var(--faast-nav-bar-margin) * 2 + var(--faast-space-4)
|
|
5790
|
+
);
|
|
5791
|
+
}
|
|
5792
|
+
.faast-bar-wrap {
|
|
5793
|
+
position: sticky;
|
|
5794
|
+
top: max(var(--faast-nav-bar-margin), var(--faast-safe-top));
|
|
5795
|
+
z-index: var(--faast-z-flyout);
|
|
5796
|
+
margin-top: var(--faast-nav-bar-margin);
|
|
5797
|
+
}
|
|
5798
|
+
.faast-bar {
|
|
5799
|
+
position: relative;
|
|
5800
|
+
display: flex;
|
|
5801
|
+
align-items: center;
|
|
5802
|
+
gap: var(--faast-space-2);
|
|
5803
|
+
min-height: var(--faast-nav-bar-height);
|
|
5804
|
+
padding: var(--faast-space-2) var(--faast-space-2) var(--faast-space-2) var(--faast-space-4);
|
|
5805
|
+
border-radius: var(--faast-radius-xl);
|
|
5806
|
+
transition: box-shadow var(--faast-duration-slow) var(--faast-ease-standard);
|
|
5807
|
+
}
|
|
5808
|
+
.faast-bar[data-elevada] {
|
|
5809
|
+
box-shadow: var(--faast-overlay-shadow);
|
|
5810
|
+
}
|
|
5811
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5812
|
+
.faast-bar {
|
|
5813
|
+
transition: none;
|
|
5814
|
+
}
|
|
5815
|
+
}
|
|
5816
|
+
.faast-bar__brand {
|
|
5817
|
+
display: inline-flex;
|
|
5818
|
+
align-items: center;
|
|
5819
|
+
flex: none;
|
|
5820
|
+
color: inherit;
|
|
5821
|
+
text-decoration: none;
|
|
5822
|
+
min-height: var(--faast-size-touch-target);
|
|
5823
|
+
margin-right: var(--faast-space-3);
|
|
5824
|
+
border-radius: var(--faast-radius-sm);
|
|
5825
|
+
}
|
|
5826
|
+
.faast-bar__brand:focus-visible {
|
|
5827
|
+
outline: 2px solid var(--faast-focus-ring);
|
|
5828
|
+
outline-offset: 2px;
|
|
5829
|
+
}
|
|
5830
|
+
.faast-bar__nav {
|
|
5831
|
+
flex: 1 1 0;
|
|
5832
|
+
min-width: 0;
|
|
5833
|
+
}
|
|
5834
|
+
.faast-bar__list {
|
|
5835
|
+
display: flex;
|
|
5836
|
+
align-items: center;
|
|
5837
|
+
gap: var(--faast-space-1);
|
|
5838
|
+
margin: 0;
|
|
5839
|
+
padding: 0;
|
|
5840
|
+
list-style: none;
|
|
5841
|
+
}
|
|
5842
|
+
/* Invisible copy of the whole list the overflow is measured on (aria-hidden). */
|
|
5843
|
+
.faast-bar__measure {
|
|
5844
|
+
position: absolute;
|
|
5845
|
+
left: 0;
|
|
5846
|
+
top: 0;
|
|
5847
|
+
width: max-content;
|
|
5848
|
+
height: 0;
|
|
5849
|
+
overflow: hidden;
|
|
5850
|
+
visibility: hidden;
|
|
5851
|
+
pointer-events: none;
|
|
5852
|
+
}
|
|
5853
|
+
.faast-bar__item {
|
|
5854
|
+
display: inline-flex;
|
|
5855
|
+
align-items: center;
|
|
5856
|
+
gap: var(--faast-space-1);
|
|
5857
|
+
min-height: var(--faast-size-touch-target);
|
|
5858
|
+
padding: 0 var(--faast-space-3);
|
|
5859
|
+
border: 0;
|
|
5860
|
+
border-radius: var(--faast-radius-sm);
|
|
5861
|
+
background: transparent;
|
|
5862
|
+
color: var(--faast-text-secondary);
|
|
5863
|
+
font: inherit;
|
|
5864
|
+
font-size: var(--faast-font-size-sm);
|
|
5865
|
+
font-weight: var(--faast-font-weight-medium);
|
|
5866
|
+
text-decoration: none;
|
|
5867
|
+
white-space: nowrap;
|
|
5868
|
+
cursor: pointer;
|
|
5869
|
+
transition:
|
|
5870
|
+
background-color var(--faast-duration-fast) var(--faast-ease-standard),
|
|
5871
|
+
color var(--faast-duration-fast) var(--faast-ease-standard);
|
|
5872
|
+
}
|
|
5873
|
+
@media (min-width: 768px) and (pointer: fine) {
|
|
5874
|
+
.faast-bar__item,
|
|
5875
|
+
.faast-bar__tools .faast-icon-button {
|
|
5876
|
+
min-height: var(--faast-size-control-compact);
|
|
5877
|
+
}
|
|
5878
|
+
.faast-bar__tools .faast-icon-button {
|
|
5879
|
+
height: var(--faast-size-control-compact);
|
|
5880
|
+
}
|
|
5881
|
+
}
|
|
5882
|
+
/*
|
|
5883
|
+
* A long module name must never push "Más" or the tools out of reach: the list shrinks and the
|
|
5884
|
+
* label of a link ends in an ellipsis (the full text stays in the DOM and the accessible name).
|
|
5885
|
+
*/
|
|
5886
|
+
.faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) {
|
|
5887
|
+
min-width: 0;
|
|
5888
|
+
max-width: 100%;
|
|
5889
|
+
}
|
|
5890
|
+
.faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) > li {
|
|
5891
|
+
flex: 0 1 auto;
|
|
5892
|
+
min-width: 0;
|
|
5893
|
+
}
|
|
5894
|
+
.faast-bar__nav > .faast-bar__list:not(.faast-bar__measure) > .faast-bar__more {
|
|
5895
|
+
flex: none;
|
|
5896
|
+
}
|
|
5897
|
+
.faast-bar__nav .faast-bar__item {
|
|
5898
|
+
max-width: 100%;
|
|
5899
|
+
}
|
|
5900
|
+
.faast-bar__label {
|
|
5901
|
+
min-width: 0;
|
|
5902
|
+
overflow: hidden;
|
|
5903
|
+
text-overflow: ellipsis;
|
|
5904
|
+
}
|
|
5905
|
+
.faast-bar__item:hover {
|
|
5906
|
+
background-color: var(--faast-bg-hover);
|
|
5907
|
+
color: var(--faast-text-primary);
|
|
5908
|
+
}
|
|
5909
|
+
.faast-bar__item[aria-current='page'] {
|
|
5910
|
+
background-color: var(--faast-bg-selected);
|
|
5911
|
+
color: var(--faast-text-primary);
|
|
5912
|
+
}
|
|
5913
|
+
.faast-bar__item[aria-expanded='true'] {
|
|
5914
|
+
background-color: var(--faast-bg-hover);
|
|
5915
|
+
color: var(--faast-text-primary);
|
|
5916
|
+
}
|
|
5917
|
+
.faast-bar__item:focus-visible,
|
|
5918
|
+
.faast-bar__tools .faast-icon-button:focus-visible,
|
|
5919
|
+
.faast-bar__tools .faast-button:focus-visible {
|
|
5920
|
+
outline: 2px solid var(--faast-focus-ring);
|
|
5921
|
+
outline-offset: 2px;
|
|
5922
|
+
}
|
|
5923
|
+
.faast-bar__tools {
|
|
5924
|
+
display: flex;
|
|
5925
|
+
align-items: center;
|
|
5926
|
+
gap: var(--faast-space-1);
|
|
5927
|
+
flex: none;
|
|
5928
|
+
}
|
|
5929
|
+
/* The list of modules lives in the sheet below 768px. */
|
|
5930
|
+
.faast-bar__menu-btn {
|
|
5931
|
+
display: none;
|
|
5932
|
+
min-width: var(--faast-size-touch-target);
|
|
5933
|
+
justify-content: center;
|
|
5934
|
+
}
|
|
5935
|
+
@media (max-width: 767.98px) {
|
|
5936
|
+
.faast-bar__nav {
|
|
5937
|
+
display: none;
|
|
5938
|
+
}
|
|
5939
|
+
.faast-bar__menu-btn {
|
|
5940
|
+
display: inline-flex;
|
|
5941
|
+
margin-inline-start: auto;
|
|
5942
|
+
}
|
|
5943
|
+
}
|
|
5944
|
+
/*
|
|
5945
|
+
* Very narrow phones (320px is a WCAG 1.4.10 reflow width): the bar gives back padding and gaps,
|
|
5946
|
+
* and "Módulos" shows only its icon (its name stays for assistive technology). 44px targets stay.
|
|
5947
|
+
*/
|
|
5948
|
+
@media (max-width: 479.98px) {
|
|
5949
|
+
.faast-bar {
|
|
5950
|
+
gap: var(--faast-space-1);
|
|
5951
|
+
padding-left: var(--faast-space-3);
|
|
5952
|
+
}
|
|
5953
|
+
.faast-bar__brand {
|
|
5954
|
+
margin-right: var(--faast-space-1);
|
|
5955
|
+
}
|
|
5956
|
+
.faast-bar[data-marca='banda'] .faast-bar__brand {
|
|
5957
|
+
padding: 0 var(--faast-space-2);
|
|
5958
|
+
}
|
|
5959
|
+
.faast-bar__menu-label {
|
|
5960
|
+
position: absolute;
|
|
5961
|
+
width: 1px;
|
|
5962
|
+
height: 1px;
|
|
5963
|
+
overflow: hidden;
|
|
5964
|
+
clip-path: inset(50%);
|
|
5965
|
+
white-space: nowrap;
|
|
5966
|
+
}
|
|
5967
|
+
}
|
|
5968
|
+
/* The phone sheet floats, so it takes the same 20px as the bar on its top corners. */
|
|
5969
|
+
@media (max-width: 767.98px) {
|
|
5970
|
+
.faast-dialog.faast-bar__sheet {
|
|
5971
|
+
border-radius: var(--faast-radius-xl) var(--faast-radius-xl) 0 0;
|
|
5972
|
+
}
|
|
5973
|
+
}
|
|
5974
|
+
/*
|
|
5975
|
+
* "Más (n)" list: same radius and shadow as the bar, glass at the `pop` level. It is rendered as
|
|
5976
|
+
* a sibling of the bar's `header` inside `.faast-bar-wrap` (so its own blur sees the page, not
|
|
5977
|
+
* the bar's glass) and anchors to the wrap, whose right edge is the bar's.
|
|
5978
|
+
*/
|
|
5979
|
+
.faast-bar__pop {
|
|
5980
|
+
position: absolute;
|
|
5981
|
+
top: calc(100% + var(--faast-space-2));
|
|
5982
|
+
right: 0;
|
|
5983
|
+
z-index: var(--faast-z-flyout);
|
|
5984
|
+
min-width: 15rem;
|
|
5985
|
+
max-width: calc(100vw - 2 * var(--faast-space-4));
|
|
5986
|
+
padding: var(--faast-space-2);
|
|
5987
|
+
border-radius: var(--faast-radius-xl);
|
|
5988
|
+
box-shadow: var(--faast-overlay-shadow);
|
|
5989
|
+
/* Taller than the window? It scrolls inside, keeping a margin under it (bar + 3 margins + gap). */
|
|
5990
|
+
max-height: calc(
|
|
5991
|
+
100dvh - var(--faast-nav-bar-height) - var(--faast-nav-bar-margin) * 3 - var(--faast-space-2)
|
|
5992
|
+
);
|
|
5993
|
+
overflow-y: auto;
|
|
5994
|
+
overscroll-behavior: contain;
|
|
5995
|
+
}
|
|
5996
|
+
.faast-bar__pop-list,
|
|
5997
|
+
.faast-bar__sheet-list {
|
|
5998
|
+
display: grid;
|
|
5999
|
+
margin: 0;
|
|
6000
|
+
padding: 0;
|
|
6001
|
+
list-style: none;
|
|
6002
|
+
}
|
|
6003
|
+
.faast-bar__pop-list .faast-bar__item,
|
|
6004
|
+
.faast-bar__sheet-list .faast-bar__item {
|
|
6005
|
+
width: 100%;
|
|
6006
|
+
justify-content: space-between;
|
|
6007
|
+
color: var(--faast-text-primary);
|
|
6008
|
+
font-weight: var(--faast-font-weight-regular);
|
|
6009
|
+
}
|
|
6010
|
+
.faast-bar__sheet-list .faast-bar__item {
|
|
6011
|
+
min-height: var(--faast-size-touch-target);
|
|
6012
|
+
}
|
|
6013
|
+
|
|
6014
|
+
/* Brand variant "filo": a 2px edge in the brand colour on the bottom border. */
|
|
6015
|
+
.faast-bar[data-marca='filo']::after {
|
|
6016
|
+
content: '';
|
|
6017
|
+
position: absolute;
|
|
6018
|
+
left: var(--faast-radius-xl);
|
|
6019
|
+
right: var(--faast-radius-xl);
|
|
6020
|
+
bottom: -1px;
|
|
6021
|
+
height: 2px;
|
|
6022
|
+
border-radius: var(--faast-radius-full);
|
|
6023
|
+
background-color: var(--faast-accent-base);
|
|
6024
|
+
pointer-events: none;
|
|
6025
|
+
}
|
|
6026
|
+
|
|
6027
|
+
/*
|
|
6028
|
+
* Brand variant "banda": the bar is the brand colour; the logo sits on a bg-surface plate.
|
|
6029
|
+
* The current module is a 17% pill (the prototype used 18%: with the FaaST green over a pure
|
|
6030
|
+
* black backdrop 18% gives 4.49:1; 17% gives 4.60:1, asserted in @faast-app/themes).
|
|
6031
|
+
*/
|
|
6032
|
+
.faast-bar[data-marca='banda'] {
|
|
6033
|
+
background-color: var(--faast-accent-base);
|
|
6034
|
+
border-color: var(--faast-accent-base);
|
|
6035
|
+
color: var(--faast-text-on-accent);
|
|
6036
|
+
}
|
|
6037
|
+
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
|
|
6038
|
+
.faast-bar[data-marca='banda'] {
|
|
6039
|
+
background-color: color-mix(in srgb, var(--faast-accent-base) 94%, transparent);
|
|
6040
|
+
}
|
|
6041
|
+
}
|
|
6042
|
+
@media (prefers-reduced-transparency: reduce) {
|
|
6043
|
+
.faast-bar[data-marca='banda'] {
|
|
6044
|
+
background-color: var(--faast-accent-base);
|
|
6045
|
+
}
|
|
6046
|
+
}
|
|
6047
|
+
[data-vidrio='solido'] .faast-bar[data-marca='banda'] {
|
|
6048
|
+
background-color: var(--faast-accent-base);
|
|
6049
|
+
}
|
|
6050
|
+
.faast-bar[data-marca='banda'][data-elevada] {
|
|
6051
|
+
border-color: var(--faast-accent-hover);
|
|
6052
|
+
}
|
|
6053
|
+
.faast-bar[data-marca='banda'] .faast-bar__brand {
|
|
6054
|
+
padding: 0 var(--faast-space-3);
|
|
6055
|
+
background-color: var(--faast-bg-surface);
|
|
6056
|
+
}
|
|
6057
|
+
.faast-bar[data-marca='banda'] .faast-bar__item,
|
|
6058
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button,
|
|
6059
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-button--ghost {
|
|
6060
|
+
color: var(--faast-text-on-accent);
|
|
6061
|
+
}
|
|
6062
|
+
.faast-bar[data-marca='banda'] .faast-bar__item:hover,
|
|
6063
|
+
.faast-bar[data-marca='banda'] .faast-bar__item[aria-expanded='true'],
|
|
6064
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button:hover:not(:disabled),
|
|
6065
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-button--ghost:hover:not(:disabled) {
|
|
6066
|
+
background-color: color-mix(in srgb, var(--faast-text-on-accent) 12%, transparent);
|
|
6067
|
+
color: var(--faast-text-on-accent);
|
|
6068
|
+
}
|
|
6069
|
+
.faast-bar[data-marca='banda'] .faast-bar__item[aria-current='page'] {
|
|
6070
|
+
background-color: color-mix(in srgb, var(--faast-text-on-accent) 17%, transparent);
|
|
6071
|
+
color: var(--faast-text-on-accent);
|
|
6072
|
+
font-weight: var(--faast-font-weight-semibold);
|
|
6073
|
+
}
|
|
6074
|
+
.faast-bar[data-marca='banda'] .faast-bar__item:focus-visible,
|
|
6075
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-icon-button:focus-visible,
|
|
6076
|
+
.faast-bar[data-marca='banda'] .faast-bar__tools .faast-button:focus-visible {
|
|
6077
|
+
outline-color: var(--faast-text-on-accent);
|
|
6078
|
+
}
|
|
6079
|
+
/* The "Más" list is a glass pop-over on bg-surface even over the brand band. */
|
|
6080
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item {
|
|
6081
|
+
color: var(--faast-text-primary);
|
|
6082
|
+
}
|
|
6083
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item:hover {
|
|
6084
|
+
background-color: var(--faast-bg-hover);
|
|
6085
|
+
color: var(--faast-text-primary);
|
|
6086
|
+
}
|
|
6087
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item[aria-current='page'] {
|
|
6088
|
+
background-color: var(--faast-bg-selected);
|
|
6089
|
+
color: var(--faast-text-primary);
|
|
6090
|
+
font-weight: var(--faast-font-weight-medium);
|
|
6091
|
+
}
|
|
6092
|
+
.faast-bar[data-marca='banda'] .faast-bar__pop .faast-bar__item:focus-visible {
|
|
6093
|
+
outline-color: var(--faast-focus-ring);
|
|
6094
|
+
}
|
|
6095
|
+
@media (forced-colors: active) {
|
|
6096
|
+
.faast-bar[data-marca='filo']::after {
|
|
6097
|
+
background-color: Highlight;
|
|
6098
|
+
}
|
|
6099
|
+
}
|
|
5136
6100
|
</style>
|
|
5137
6101
|
<style>
|
|
5138
6102
|
.kit-page { max-width: 1120px; margin: 0 auto; padding: var(--faast-space-6) var(--faast-space-4) var(--faast-space-16); }
|
|
@@ -5153,7 +6117,7 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5153
6117
|
<header class="kit-head">
|
|
5154
6118
|
<div>
|
|
5155
6119
|
<h1>Kit de propuestas</h1>
|
|
5156
|
-
<p>@faast-app/ui 0.
|
|
6120
|
+
<p>@faast-app/ui 0.9.0. Markup real de los componentes: copia y adapta el contenido, no las clases.</p>
|
|
5157
6121
|
</div>
|
|
5158
6122
|
<button type="button" class="faast-button faast-button--secondary" id="kit-theme">Cambiar Tema</button>
|
|
5159
6123
|
</header>
|
|
@@ -5164,6 +6128,12 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5164
6128
|
<div class="kit-stage"><div style="display:flex;flex-wrap:wrap;gap:12px"><button type="button" class="faast-button faast-button--primary faast-button--md"><span class="faast-button__label">Guardar Cambios</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md"><span class="faast-button__label">Cancelar</span></button><button type="button" class="faast-button faast-button--ghost faast-button--md"><span class="faast-button__label">Ver Detalle</span></button><button type="button" class="faast-button faast-button--danger faast-button--md"><span class="faast-button__label">Anular Operación</span></button><button type="button" class="faast-button faast-button--primary faast-button--sm"><span class="faast-button__label">Aplicar</span></button><button type="button" class="faast-button faast-button--primary faast-button--md faast-button--loading" aria-busy="true" aria-disabled="true"><span role="status" class="faast-spinner faast-spinner--sm"><span class="faast-spinner__ring" aria-hidden="true"></span><span class="faast-sr-only">Cargando…</span></span><span class="faast-button__label">Enviando</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md" disabled=""><span class="faast-button__label">No Disponible</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md"><span class="faast-button__label">Continuar</span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right faast-icon" focusable="false" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></button></div></div>
|
|
5165
6129
|
<details><summary>Markup</summary><pre><code><div style="display:flex;flex-wrap:wrap;gap:12px"><button type="button" class="faast-button faast-button--primary faast-button--md"><span class="faast-button__label">Guardar Cambios</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md"><span class="faast-button__label">Cancelar</span></button><button type="button" class="faast-button faast-button--ghost faast-button--md"><span class="faast-button__label">Ver Detalle</span></button><button type="button" class="faast-button faast-button--danger faast-button--md"><span class="faast-button__label">Anular Operación</span></button><button type="button" class="faast-button faast-button--primary faast-button--sm"><span class="faast-button__label">Aplicar</span></button><button type="button" class="faast-button faast-button--primary faast-button--md faast-button--loading" aria-busy="true" aria-disabled="true"><span role="status" class="faast-spinner faast-spinner--sm"><span class="faast-spinner__ring" aria-hidden="true"></span><span class="faast-sr-only">Cargando…</span></span><span class="faast-button__label">Enviando</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md" disabled=""><span class="faast-button__label">No Disponible</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md"><span class="faast-button__label">Continuar</span><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-right faast-icon" focusable="false" aria-hidden="true"><path d="M5 12h14"></path><path d="m12 5 7 7-7 7"></path></svg></button></div></code></pre></details>
|
|
5166
6130
|
</section>
|
|
6131
|
+
<section class="kit-example" id="button-pill">
|
|
6132
|
+
<h3>Button shape pill (cápsula)</h3>
|
|
6133
|
+
<p class="kit-note">Solo para superficies cuyo contrato pide botones cápsula (el acceso). Cambia únicamente el radio (--faast-radius-full); color, alto y estados son los del Button.</p>
|
|
6134
|
+
<div class="kit-stage" style="max-width:384px"><div style="display:grid;gap:12px"><button type="button" class="faast-button faast-button--primary faast-button--md faast-button--pill faast-button--full"><span class="faast-button__label">Ingresar</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md faast-button--pill faast-button--full"><span class="faast-button__label">Iniciar Sesión con Microsoft</span></button><button type="button" class="faast-button faast-button--ghost faast-button--md faast-button--pill faast-button--full"><span class="faast-button__label">Usar Usuario y Contraseña</span></button></div></div>
|
|
6135
|
+
<details><summary>Markup</summary><pre><code><div style="display:grid;gap:12px"><button type="button" class="faast-button faast-button--primary faast-button--md faast-button--pill faast-button--full"><span class="faast-button__label">Ingresar</span></button><button type="button" class="faast-button faast-button--secondary faast-button--md faast-button--pill faast-button--full"><span class="faast-button__label">Iniciar Sesión con Microsoft</span></button><button type="button" class="faast-button faast-button--ghost faast-button--md faast-button--pill faast-button--full"><span class="faast-button__label">Usar Usuario y Contraseña</span></button></div></code></pre></details>
|
|
6136
|
+
</section>
|
|
5167
6137
|
<section class="kit-example" id="chip">
|
|
5168
6138
|
<h3>Chip</h3>
|
|
5169
6139
|
<p class="kit-note">Filtro que se activa o filtro aplicado que se quita.</p>
|
|
@@ -5176,6 +6146,12 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5176
6146
|
<div class="kit-stage"><div class="faast-segmented-wrap"><span id="_R_0_-label" class="faast-segmented__label">Moneda</span><div role="radiogroup" aria-labelledby="_R_0_-label" class="faast-segmented"><button type="button" role="radio" aria-checked="true" tabindex="0" class="faast-segmented__option"><span>S/</span><span class="faast-segmented__hint">PEN</span></button><button type="button" role="radio" aria-checked="false" tabindex="-1" class="faast-segmented__option"><span>US$</span><span class="faast-segmented__hint">USD</span></button></div></div></div>
|
|
5177
6147
|
<details><summary>Markup</summary><pre><code><div class="faast-segmented-wrap"><span id="_R_0_-label" class="faast-segmented__label">Moneda</span><div role="radiogroup" aria-labelledby="_R_0_-label" class="faast-segmented"><button type="button" role="radio" aria-checked="true" tabindex="0" class="faast-segmented__option"><span>S/</span><span class="faast-segmented__hint">PEN</span></button><button type="button" role="radio" aria-checked="false" tabindex="-1" class="faast-segmented__option"><span>US$</span><span class="faast-segmented__hint">USD</span></button></div></div></code></pre></details>
|
|
5178
6148
|
</section>
|
|
6149
|
+
<section class="kit-example" id="icons-rpt-10">
|
|
6150
|
+
<h3>Icon: imprimir, favorito, billetera, capas, llave, flecha diagonal y menú de acciones</h3>
|
|
6151
|
+
<p class="kit-note">Siete íconos nuevos de la lista permitida (DSN-001 RPT-10). La estrella va contorneada y, ya marcada como favorita, con fill="currentColor" (el botón que la contiene lleva aria-pressed y el nombre). Decorativos con aria-hidden: el botón lleva el nombre accesible.</p>
|
|
6152
|
+
<div class="kit-stage"><div style="display:flex;flex-wrap:wrap;gap:16px;align-items:center"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-printer faast-icon" focusable="false" aria-hidden="true"><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><path d="M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6"></path><rect x="6" y="14" width="12" height="8" rx="1"></rect></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star faast-icon" focusable="false" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wallet faast-icon" focusable="false" aria-hidden="true"><path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"></path><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layers lucide-layers-3 faast-icon" focusable="false" aria-hidden="true"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wrench faast-icon" focusable="false" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-ellipsis lucide-more-horizontal faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg><button type="button" class="faast-icon-button faast-icon-button--ghost" aria-pressed="true" aria-label="Quitar de Favoritos"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star faast-icon" focusable="false" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></div></div>
|
|
6153
|
+
<details><summary>Markup</summary><pre><code><div style="display:flex;flex-wrap:wrap;gap:16px;align-items:center"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-printer faast-icon" focusable="false" aria-hidden="true"><path d="M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"></path><path d="M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6"></path><rect x="6" y="14" width="12" height="8" rx="1"></rect></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star faast-icon" focusable="false" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wallet faast-icon" focusable="false" aria-hidden="true"><path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"></path><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layers lucide-layers-3 faast-icon" focusable="false" aria-hidden="true"><path d="M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z"></path><path d="M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12"></path><path d="M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wrench faast-icon" focusable="false" aria-hidden="true"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-ellipsis lucide-more-horizontal faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="1"></circle><circle cx="19" cy="12" r="1"></circle><circle cx="5" cy="12" r="1"></circle></svg><button type="button" class="faast-icon-button faast-icon-button--ghost" aria-pressed="true" aria-label="Quitar de Favoritos"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-star faast-icon" focusable="false" aria-hidden="true"><path d="M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z"></path></svg></button></div></code></pre></details>
|
|
6154
|
+
</section>
|
|
5179
6155
|
<h2>Formularios</h2>
|
|
5180
6156
|
<section class="kit-example" id="text-field">
|
|
5181
6157
|
<h3>TextField, Select, Textarea</h3>
|
|
@@ -5183,6 +6159,18 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5183
6159
|
<div class="kit-stage" style="max-width:420px"><div style="display:grid;gap:16px"><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_1_">RUC del proveedor<span class="faast-field__required"> (obligatorio)</span></label><input type="text" class="faast-input" inputMode="numeric" id="faast-field-_R_1_" required="" aria-describedby="faast-field-_R_1_-hint" value="20512345678"/><p class="faast-field__hint" id="faast-field-_R_1_-hint">11 dígitos, sin guiones.</p><p class="faast-field__error" id="faast-field-_R_1_-error" aria-live="polite"></p></div><div class="faast-field faast-field--invalid"><label class="faast-field__label" for="faast-field-_R_2_">Correo de contacto</label><span class="faast-input-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail faast-icon faast-input-wrap__leading" focusable="false" aria-hidden="true"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect></svg><input type="text" class="faast-input faast-input--leading" id="faast-field-_R_2_" aria-describedby="faast-field-_R_2_-error" aria-invalid="true" value="tesoreria@"/></span><p class="faast-field__error" id="faast-field-_R_2_-error" aria-live="polite">Escribe un correo completo, por ejemplo tesoreria@empresa.pe.</p></div><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_3_">Banco de destino</label><span class="faast-select"><select class="faast-input faast-select__control" id="faast-field-_R_3_" aria-describedby="faast-field-_R_3_-hint"><option value="">Selecciona…</option><option value="bcp" selected="">BCP</option><option value="bbva">BBVA</option><option value="ibk">Interbank</option></select><span class="faast-select__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down faast-icon" focusable="false" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></span></span><p class="faast-field__hint" id="faast-field-_R_3_-hint">Solo bancos habilitados para tu empresa.</p><p class="faast-field__error" id="faast-field-_R_3_-error" aria-live="polite"></p></div><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_4_">Observación</label><textarea rows="3" class="faast-input faast-textarea" id="faast-field-_R_4_">Factura reemitida el 04/11/2026.</textarea><p class="faast-field__error" id="faast-field-_R_4_-error" aria-live="polite"></p></div></div></div>
|
|
5184
6160
|
<details><summary>Markup</summary><pre><code><div style="display:grid;gap:16px"><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_1_">RUC del proveedor<span class="faast-field__required"> (obligatorio)</span></label><input type="text" class="faast-input" inputMode="numeric" id="faast-field-_R_1_" required="" aria-describedby="faast-field-_R_1_-hint" value="20512345678"/><p class="faast-field__hint" id="faast-field-_R_1_-hint">11 dígitos, sin guiones.</p><p class="faast-field__error" id="faast-field-_R_1_-error" aria-live="polite"></p></div><div class="faast-field faast-field--invalid"><label class="faast-field__label" for="faast-field-_R_2_">Correo de contacto</label><span class="faast-input-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail faast-icon faast-input-wrap__leading" focusable="false" aria-hidden="true"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect></svg><input type="text" class="faast-input faast-input--leading" id="faast-field-_R_2_" aria-describedby="faast-field-_R_2_-error" aria-invalid="true" value="tesoreria@"/></span><p class="faast-field__error" id="faast-field-_R_2_-error" aria-live="polite">Escribe un correo completo, por ejemplo tesoreria@empresa.pe.</p></div><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_3_">Banco de destino</label><span class="faast-select"><select class="faast-input faast-select__control" id="faast-field-_R_3_" aria-describedby="faast-field-_R_3_-hint"><option value="">Selecciona…</option><option value="bcp" selected="">BCP</option><option value="bbva">BBVA</option><option value="ibk">Interbank</option></select><span class="faast-select__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down faast-icon" focusable="false" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></span></span><p class="faast-field__hint" id="faast-field-_R_3_-hint">Solo bancos habilitados para tu empresa.</p><p class="faast-field__error" id="faast-field-_R_3_-error" aria-live="polite"></p></div><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_4_">Observación</label><textarea rows="3" class="faast-input faast-textarea" id="faast-field-_R_4_">Factura reemitida el 04/11/2026.</textarea><p class="faast-field__error" id="faast-field-_R_4_-error" aria-live="polite"></p></div></div></code></pre></details>
|
|
5185
6161
|
</section>
|
|
6162
|
+
<section class="kit-example" id="control-lg">
|
|
6163
|
+
<h3>Controles de 48 px</h3>
|
|
6164
|
+
<p class="kit-note">Button size="lg" y controlSize="lg" en TextField y PasswordField; o data-densidad="amplia" en un contenedor. Solo para superficies cuyo contrato fija 48 px (el acceso); el resto sigue en 44 px (36 px con puntero fino).</p>
|
|
6165
|
+
<div class="kit-stage" style="max-width:384px"><div style="display:grid;gap:16px"><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_1_">Usuario</label><input type="text" class="faast-input faast-input--lg" id="faast-field-_R_1_" value="tesoreria@empresa.pe"/><p class="faast-field__error" id="faast-field-_R_1_-error" aria-live="polite"></p></div><div class="faast-field"><label class="faast-field__label" for="faast-password-_R_2_">Contraseña</label><span class="faast-input-wrap faast-input-wrap--lg"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock faast-icon faast-input-wrap__leading" focusable="false" aria-hidden="true"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg><input type="password" class="faast-input faast-input--leading faast-input--trailing faast-input--lg" autoComplete="current-password" autoCapitalize="none" autoCorrect="off" spellCheck="false" id="faast-password-_R_2_"/><span class="faast-input-wrap__trailing"><button type="button" aria-label="Mostrar contraseña" title="Mostrar contraseña" class="faast-icon-button faast-icon-button--ghost" aria-pressed="false" aria-controls="faast-password-_R_2_" data-testid="password-visibility-toggle"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye faast-icon" focusable="false" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></span><p class="faast-field__error" id="faast-password-_R_2_-error" aria-live="polite"></p></div><button type="button" class="faast-button faast-button--primary faast-button--lg faast-button--full"><span class="faast-button__label">Ingresar</span></button></div></div>
|
|
6166
|
+
<details><summary>Markup</summary><pre><code><div style="display:grid;gap:16px"><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_1_">Usuario</label><input type="text" class="faast-input faast-input--lg" id="faast-field-_R_1_" value="tesoreria@empresa.pe"/><p class="faast-field__error" id="faast-field-_R_1_-error" aria-live="polite"></p></div><div class="faast-field"><label class="faast-field__label" for="faast-password-_R_2_">Contraseña</label><span class="faast-input-wrap faast-input-wrap--lg"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock faast-icon faast-input-wrap__leading" focusable="false" aria-hidden="true"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg><input type="password" class="faast-input faast-input--leading faast-input--trailing faast-input--lg" autoComplete="current-password" autoCapitalize="none" autoCorrect="off" spellCheck="false" id="faast-password-_R_2_"/><span class="faast-input-wrap__trailing"><button type="button" aria-label="Mostrar contraseña" title="Mostrar contraseña" class="faast-icon-button faast-icon-button--ghost" aria-pressed="false" aria-controls="faast-password-_R_2_" data-testid="password-visibility-toggle"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye faast-icon" focusable="false" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></span><p class="faast-field__error" id="faast-password-_R_2_-error" aria-live="polite"></p></div><button type="button" class="faast-button faast-button--primary faast-button--lg faast-button--full"><span class="faast-button__label">Ingresar</span></button></div></code></pre></details>
|
|
6167
|
+
</section>
|
|
6168
|
+
<section class="kit-example" id="field-message-inside">
|
|
6169
|
+
<h3>Campo con el mensaje dentro</h3>
|
|
6170
|
+
<p class="kit-note">messagePlacement="inside": una sola caja (borde border-strong, status-danger-fg si hay error) con el control sin borde propio y, bajo una línea border-subtle, el mensaje: ícono, título en tinta y detalle en text-secondary. Sin fondo teñido. role="alert". El otro campo apunta al mismo mensaje con aria-invalid y aria-describedby, para no decir cuál falló.</p>
|
|
6171
|
+
<div class="kit-stage" style="max-width:384px"><div style="display:grid;gap:16px"><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_1_">Usuario</label><input type="text" class="faast-input" aria-invalid="true" aria-describedby="kit-clave-error" id="faast-field-_R_1_" value="tesoreria@empresa.pe"/><p class="faast-field__error" id="faast-field-_R_1_-error" aria-live="polite"></p></div><div class="faast-field faast-field--invalid faast-field--inside"><label class="faast-field__label" for="kit-clave">Contraseña</label><div class="faast-field__box"><span class="faast-input-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock faast-icon faast-input-wrap__leading" focusable="false" aria-hidden="true"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg><input type="password" class="faast-input faast-input--leading faast-input--trailing" autoComplete="current-password" autoCapitalize="none" autoCorrect="off" spellCheck="false" aria-describedby="kit-clave-error" id="kit-clave" aria-invalid="true" value="clave-equivocada"/><span class="faast-input-wrap__trailing"><button type="button" aria-label="Mostrar contraseña" title="Mostrar contraseña" class="faast-icon-button faast-icon-button--ghost" aria-pressed="false" aria-controls="kit-clave" data-testid="password-visibility-toggle"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye faast-icon" focusable="false" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></span><div class="faast-field__message" id="kit-clave-error" role="alert"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-alert lucide-alert-circle faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><line x1="12" x2="12" y1="8" y2="12"></line><line x1="12" x2="12.01" y1="16" y2="16"></line></svg><span class="faast-field__message-text"><span class="faast-field__message-title">No pudimos iniciar tu sesión.</span><span class="faast-field__message-detail">Revisa tu usuario y contraseña e inténtalo de nuevo.</span></span></div></div></div></div></div>
|
|
6172
|
+
<details><summary>Markup</summary><pre><code><div style="display:grid;gap:16px"><div class="faast-field"><label class="faast-field__label" for="faast-field-_R_1_">Usuario</label><input type="text" class="faast-input" aria-invalid="true" aria-describedby="kit-clave-error" id="faast-field-_R_1_" value="tesoreria@empresa.pe"/><p class="faast-field__error" id="faast-field-_R_1_-error" aria-live="polite"></p></div><div class="faast-field faast-field--invalid faast-field--inside"><label class="faast-field__label" for="kit-clave">Contraseña</label><div class="faast-field__box"><span class="faast-input-wrap"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock faast-icon faast-input-wrap__leading" focusable="false" aria-hidden="true"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg><input type="password" class="faast-input faast-input--leading faast-input--trailing" autoComplete="current-password" autoCapitalize="none" autoCorrect="off" spellCheck="false" aria-describedby="kit-clave-error" id="kit-clave" aria-invalid="true" value="clave-equivocada"/><span class="faast-input-wrap__trailing"><button type="button" aria-label="Mostrar contraseña" title="Mostrar contraseña" class="faast-icon-button faast-icon-button--ghost" aria-pressed="false" aria-controls="kit-clave" data-testid="password-visibility-toggle"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye faast-icon" focusable="false" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></span><div class="faast-field__message" id="kit-clave-error" role="alert"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-alert lucide-alert-circle faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><line x1="12" x2="12" y1="8" y2="12"></line><line x1="12" x2="12.01" y1="16" y2="16"></line></svg><span class="faast-field__message-text"><span class="faast-field__message-title">No pudimos iniciar tu sesión.</span><span class="faast-field__message-detail">Revisa tu usuario y contraseña e inténtalo de nuevo.</span></span></div></div></div></div></code></pre></details>
|
|
6173
|
+
</section>
|
|
5186
6174
|
<section class="kit-example" id="choice">
|
|
5187
6175
|
<h3>Checkbox, Radio, Switch</h3>
|
|
5188
6176
|
|
|
@@ -5196,6 +6184,12 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5196
6184
|
<div class="kit-stage"><div style="display:flex;flex-wrap:wrap;gap:8px;align-items:center"><span class="faast-badge faast-badge--success faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Desembolsada</span><span class="faast-badge faast-badge--info faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>En evaluación</span><span class="faast-badge faast-badge--violet faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Aprobada</span><span class="faast-badge faast-badge--warning faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Observada</span><span class="faast-badge faast-badge--danger faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Rechazada</span><span class="faast-badge faast-badge--neutral faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Borrador</span><span class="faast-badge faast-badge--neutral">12</span><span class="faast-badge faast-badge--neutral faast-badge--tag">XML</span></div></div>
|
|
5197
6185
|
<details><summary>Markup</summary><pre><code><div style="display:flex;flex-wrap:wrap;gap:8px;align-items:center"><span class="faast-badge faast-badge--success faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Desembolsada</span><span class="faast-badge faast-badge--info faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>En evaluación</span><span class="faast-badge faast-badge--violet faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Aprobada</span><span class="faast-badge faast-badge--warning faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Observada</span><span class="faast-badge faast-badge--danger faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Rechazada</span><span class="faast-badge faast-badge--neutral faast-status-badge"><span class="faast-status-badge__dot" aria-hidden="true"></span>Borrador</span><span class="faast-badge faast-badge--neutral">12</span><span class="faast-badge faast-badge--neutral faast-badge--tag">XML</span></div></code></pre></details>
|
|
5198
6186
|
</section>
|
|
6187
|
+
<section class="kit-example" id="status-text">
|
|
6188
|
+
<h3>StatusBadge variant="dot" (estado en texto)</h3>
|
|
6189
|
+
<p class="kit-note">Punto de 8 px + palabra, sin píldora. Punto hueco = en curso, lleno = ya definido. Color solo donde hay que actuar (Observada, Rechazada) o hay un resultado (Desembolsada); «En evaluación» y «Aprobada» van en tinta (status neutral). Con la paleta de la biblioteca serían info y violet.</p>
|
|
6190
|
+
<div class="kit-stage"><div style="display:flex;flex-wrap:wrap;gap:16px 32px;align-items:start"><span class="faast-status-text faast-status-text--neutral faast-status-text--hollow"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>En evaluación</span></span><span class="faast-status-text faast-status-text--neutral faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Aprobada</span></span><span class="faast-status-text faast-status-text--warning faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Observada</span><span class="faast-status-text__note">Vence hoy a las 18:00</span></span><span class="faast-status-text faast-status-text--success faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Desembolsada</span></span><span class="faast-status-text faast-status-text--danger faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Rechazada</span></span></div></div>
|
|
6191
|
+
<details><summary>Markup</summary><pre><code><div style="display:flex;flex-wrap:wrap;gap:16px 32px;align-items:start"><span class="faast-status-text faast-status-text--neutral faast-status-text--hollow"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>En evaluación</span></span><span class="faast-status-text faast-status-text--neutral faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Aprobada</span></span><span class="faast-status-text faast-status-text--warning faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Observada</span><span class="faast-status-text__note">Vence hoy a las 18:00</span></span><span class="faast-status-text faast-status-text--success faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Desembolsada</span></span><span class="faast-status-text faast-status-text--danger faast-status-text--solid"><span class="faast-status-text__line"><span class="faast-status-text__dot" aria-hidden="true"></span>Rechazada</span></span></div></code></pre></details>
|
|
6192
|
+
</section>
|
|
5199
6193
|
<section class="kit-example" id="alert">
|
|
5200
6194
|
<h3>Alert</h3>
|
|
5201
6195
|
|
|
@@ -5228,6 +6222,18 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5228
6222
|
<div class="kit-stage"><div class="faast-stat-tiles" role="group" aria-label="Totales en soles"><dl class="faast-stat-tiles__grid" style="--faast-stat-columns:4"><div class="faast-stat-tile faast-stat-tile--info"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">En evaluación</span></dt><dd class="faast-stat-tile__value faast-num">S/ 27,750.75</dd><dd class="faast-stat-tile__caption">2 operaciones</dd></div><div class="faast-stat-tile faast-stat-tile--violet"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">Aprobada</span></dt><dd class="faast-stat-tile__value faast-num">S/ 8,000.00</dd><dd class="faast-stat-tile__caption">1 operación</dd></div><div class="faast-stat-tile faast-stat-tile--accent"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">Desembolsada</span></dt><dd class="faast-stat-tile__value faast-num">S/ 68,010.90</dd><dd class="faast-stat-tile__caption">2 operaciones</dd></div><div class="faast-stat-tile faast-stat-tile--warning"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">Observada</span></dt><dd class="faast-stat-tile__value faast-num">S/ 5,120.00</dd><dd class="faast-stat-tile__caption">1 operación</dd></div></dl></div></div>
|
|
5229
6223
|
<details><summary>Markup</summary><pre><code><div class="faast-stat-tiles" role="group" aria-label="Totales en soles"><dl class="faast-stat-tiles__grid" style="--faast-stat-columns:4"><div class="faast-stat-tile faast-stat-tile--info"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">En evaluación</span></dt><dd class="faast-stat-tile__value faast-num">S/ 27,750.75</dd><dd class="faast-stat-tile__caption">2 operaciones</dd></div><div class="faast-stat-tile faast-stat-tile--violet"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">Aprobada</span></dt><dd class="faast-stat-tile__value faast-num">S/ 8,000.00</dd><dd class="faast-stat-tile__caption">1 operación</dd></div><div class="faast-stat-tile faast-stat-tile--accent"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">Desembolsada</span></dt><dd class="faast-stat-tile__value faast-num">S/ 68,010.90</dd><dd class="faast-stat-tile__caption">2 operaciones</dd></div><div class="faast-stat-tile faast-stat-tile--warning"><dt class="faast-stat-tile__label"><span class="faast-stat-tile__marker" aria-hidden="true"></span><span class="faast-stat-tile__label-text">Observada</span></dt><dd class="faast-stat-tile__value faast-num">S/ 5,120.00</dd><dd class="faast-stat-tile__caption">1 operación</dd></div></dl></div></code></pre></details>
|
|
5230
6224
|
</section>
|
|
6225
|
+
<section class="kit-example" id="summary-card">
|
|
6226
|
+
<h3>SummaryCard con muesca</h3>
|
|
6227
|
+
<p class="kit-note">Una cifra principal con su título, código de moneda, pie y, en la esquina, un botón circular dentro de una muesca (máscara radial, sin imágenes) que lleva a la lista detrás de la cifra. UNA tarjeta protagonista (variant="featured", color suave de la marca: accent.soft) por grupo; el texto sobre ella es accent.onSoft. La cifra llega formateada por la app (Intl) y nunca se calcula aquí. Sin SummaryCardAction no hay muesca ni elevación al pasar el cursor. La grilla de tres columnas es de la aplicación (la tarjeta no la define).</p>
|
|
6228
|
+
<div class="kit-stage" style="max-width:960px"><div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(16rem, 1fr));gap:16px"><article aria-labelledby="_R_1_" class="faast-summary-card faast-summary-card--featured"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coins faast-icon" focusable="false" aria-hidden="true"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48"></path><path d="M15 6h1v4"></path><path d="m6.134 14.768.866-.5 2 3.464"></path><circle cx="16" cy="8" r="6"></circle></svg></span><h2 id="_R_1_" class="faast-summary-card__title">Saldo Documento</h2></div><p class="faast-summary-card__value faast-num">5.935.306.693<span class="faast-summary-card__unit">COP</span></p><div class="faast-summary-card__footer"><span class="faast-badge faast-badge--neutral">+2,2 %</span><span>frente a hace 4 semanas</span></div><p class="faast-summary-card__note"><span class="faast-summary-card__note-icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw faast-icon" focusable="false" aria-hidden="true"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg></span>Actualizado a las 14:32</p><button aria-label="Ver documentos con saldo" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article><article aria-labelledby="_R_2_" class="faast-summary-card"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-text faast-icon" focusable="false" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><h2 id="_R_2_" class="faast-summary-card__title">Monto Financiado</h2></div><p class="faast-summary-card__value faast-num">5.241.196.387<span class="faast-summary-card__unit">COP</span></p><div class="faast-summary-card__footer"><span class="faast-badge faast-badge--success">88,3 % del monto</span><span>de 83 documentos</span></div><button aria-label="Ver documentos financiados" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article><article aria-labelledby="_R_3_" class="faast-summary-card"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar faast-icon" focusable="false" aria-hidden="true"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg></span><h2 id="_R_3_" class="faast-summary-card__title">Monto Documento</h2></div><p class="faast-summary-card__value faast-num">5.937.461.333<span class="faast-summary-card__unit">COP</span></p><div class="faast-summary-card__footer"><span class="faast-badge faast-badge--info">83 documentos</span><span>13 clientes</span></div><button aria-label="Ver todos los documentos" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article></div></div>
|
|
6229
|
+
<details><summary>Markup</summary><pre><code><div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(16rem, 1fr));gap:16px"><article aria-labelledby="_R_1_" class="faast-summary-card faast-summary-card--featured"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coins faast-icon" focusable="false" aria-hidden="true"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48"></path><path d="M15 6h1v4"></path><path d="m6.134 14.768.866-.5 2 3.464"></path><circle cx="16" cy="8" r="6"></circle></svg></span><h2 id="_R_1_" class="faast-summary-card__title">Saldo Documento</h2></div><p class="faast-summary-card__value faast-num">5.935.306.693<span class="faast-summary-card__unit">COP</span></p><div class="faast-summary-card__footer"><span class="faast-badge faast-badge--neutral">+2,2 %</span><span>frente a hace 4 semanas</span></div><p class="faast-summary-card__note"><span class="faast-summary-card__note-icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-refresh-cw faast-icon" focusable="false" aria-hidden="true"><path d="M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8"></path><path d="M21 3v5h-5"></path><path d="M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16"></path><path d="M8 16H3v5"></path></svg></span>Actualizado a las 14:32</p><button aria-label="Ver documentos con saldo" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article><article aria-labelledby="_R_2_" class="faast-summary-card"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-text faast-icon" focusable="false" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="M10 9H8"></path><path d="M16 13H8"></path><path d="M16 17H8"></path></svg></span><h2 id="_R_2_" class="faast-summary-card__title">Monto Financiado</h2></div><p class="faast-summary-card__value faast-num">5.241.196.387<span class="faast-summary-card__unit">COP</span></p><div class="faast-summary-card__footer"><span class="faast-badge faast-badge--success">88,3 % del monto</span><span>de 83 documentos</span></div><button aria-label="Ver documentos financiados" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article><article aria-labelledby="_R_3_" class="faast-summary-card"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar faast-icon" focusable="false" aria-hidden="true"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg></span><h2 id="_R_3_" class="faast-summary-card__title">Monto Documento</h2></div><p class="faast-summary-card__value faast-num">5.937.461.333<span class="faast-summary-card__unit">COP</span></p><div class="faast-summary-card__footer"><span class="faast-badge faast-badge--info">83 documentos</span><span>13 clientes</span></div><button aria-label="Ver todos los documentos" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article></div></code></pre></details>
|
|
6230
|
+
</section>
|
|
6231
|
+
<section class="kit-example" id="summary-card-states">
|
|
6232
|
+
<h3>SummaryCard: tamaño sm, cargando, sin dato y sin acción</h3>
|
|
6233
|
+
<p class="kit-note">size="sm" (minitarjeta plana para un diálogo o un panel denso: bg.sunken, borde subtle, sin sombra ni bloques diagonales; con variant="featured", color suave de la marca) se muestra aquí sobre una superficie de diálogo. busy: aria-busy, la cifra, el pie y la nota se reemplazan por marcas del mismo tamaño (la tarjeta no cambia de alto) y la acción queda en pausa. Cifra ausente: "—" y se lee "Sin dato". Sin acción: sin muesca.</p>
|
|
6234
|
+
<div class="kit-stage" style="max-width:960px"><div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr));gap:16px"><div style="display:grid;gap:12px;align-content:start;padding:16px;border:1px solid var(--faast-border-subtle);border-radius:var(--faast-radius-xl);background:var(--faast-bg-surface)"><article aria-labelledby="_R_5_" class="faast-summary-card faast-summary-card--sm"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wallet faast-icon" focusable="false" aria-hidden="true"><path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"></path><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"></path></svg></span><h3 id="_R_5_" class="faast-summary-card__title">Saldo Pendiente</h3></div><p class="faast-summary-card__value faast-num">22.101.230<span class="faast-summary-card__unit">COP</span></p></div></article><article aria-labelledby="_R_9_" class="faast-summary-card faast-summary-card--featured faast-summary-card--sm"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coins faast-icon" focusable="false" aria-hidden="true"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48"></path><path d="M15 6h1v4"></path><path d="m6.134 14.768.866-.5 2 3.464"></path><circle cx="16" cy="8" r="6"></circle></svg></span><h3 id="_R_9_" class="faast-summary-card__title">Total Abonado</h3></div><p class="faast-summary-card__value faast-num">3.250.000<span class="faast-summary-card__unit">COP</span></p></div></article></div><article aria-labelledby="_R_2_" aria-busy="true" class="faast-summary-card faast-summary-card--featured"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coins faast-icon" focusable="false" aria-hidden="true"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48"></path><path d="M15 6h1v4"></path><path d="m6.134 14.768.866-.5 2 3.464"></path><circle cx="16" cy="8" r="6"></circle></svg></span><h2 id="_R_2_" class="faast-summary-card__title">Saldo Documento</h2></div><p class="faast-summary-card__value faast-num"><span class="faast-skeleton faast-skeleton--md faast-summary-card__value-placeholder" aria-hidden="true"></span><span class="faast-sr-only">Cargando…</span></p><div class="faast-summary-card__footer"><span aria-hidden="true" class="faast-skeleton faast-skeleton--full" style="width:55%;height:1.5rem"></span></div><button aria-label="Ver documentos con saldo" aria-disabled="true" tabindex="-1" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article><article aria-labelledby="_R_3_" class="faast-summary-card"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar faast-icon" focusable="false" aria-hidden="true"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg></span><h2 id="_R_3_" class="faast-summary-card__title">Monto Documento</h2></div><p class="faast-summary-card__value faast-num"><span aria-hidden="true">—</span><span class="faast-sr-only">Sin dato</span></p><div class="faast-summary-card__footer">Sin documentos en el período</div></div></article></div></div>
|
|
6235
|
+
<details><summary>Markup</summary><pre><code><div style="display:grid;grid-template-columns:repeat(auto-fit, minmax(14rem, 1fr));gap:16px"><div style="display:grid;gap:12px;align-content:start;padding:16px;border:1px solid var(--faast-border-subtle);border-radius:var(--faast-radius-xl);background:var(--faast-bg-surface)"><article aria-labelledby="_R_5_" class="faast-summary-card faast-summary-card--sm"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-wallet faast-icon" focusable="false" aria-hidden="true"><path d="M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1"></path><path d="M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4"></path></svg></span><h3 id="_R_5_" class="faast-summary-card__title">Saldo Pendiente</h3></div><p class="faast-summary-card__value faast-num">22.101.230<span class="faast-summary-card__unit">COP</span></p></div></article><article aria-labelledby="_R_9_" class="faast-summary-card faast-summary-card--featured faast-summary-card--sm"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coins faast-icon" focusable="false" aria-hidden="true"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48"></path><path d="M15 6h1v4"></path><path d="m6.134 14.768.866-.5 2 3.464"></path><circle cx="16" cy="8" r="6"></circle></svg></span><h3 id="_R_9_" class="faast-summary-card__title">Total Abonado</h3></div><p class="faast-summary-card__value faast-num">3.250.000<span class="faast-summary-card__unit">COP</span></p></div></article></div><article aria-labelledby="_R_2_" aria-busy="true" class="faast-summary-card faast-summary-card--featured"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-coins faast-icon" focusable="false" aria-hidden="true"><path d="M13.744 17.736a6 6 0 1 1-7.48-7.48"></path><path d="M15 6h1v4"></path><path d="m6.134 14.768.866-.5 2 3.464"></path><circle cx="16" cy="8" r="6"></circle></svg></span><h2 id="_R_2_" class="faast-summary-card__title">Saldo Documento</h2></div><p class="faast-summary-card__value faast-num"><span class="faast-skeleton faast-skeleton--md faast-summary-card__value-placeholder" aria-hidden="true"></span><span class="faast-sr-only">Cargando…</span></p><div class="faast-summary-card__footer"><span aria-hidden="true" class="faast-skeleton faast-skeleton--full" style="width:55%;height:1.5rem"></span></div><button aria-label="Ver documentos con saldo" aria-disabled="true" tabindex="-1" class="faast-summary-card__action" type="button"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-up-right faast-icon" focusable="false" aria-hidden="true"><path d="M7 7h10v10"></path><path d="M7 17 17 7"></path></svg></button></div></article><article aria-labelledby="_R_3_" class="faast-summary-card"><span class="faast-summary-card__surface" aria-hidden="true"><span class="faast-summary-card__shape"></span></span><div class="faast-summary-card__content"><div class="faast-summary-card__top"><span class="faast-summary-card__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-calendar faast-icon" focusable="false" aria-hidden="true"><path d="M8 2v3"></path><path d="M16 2v3"></path><rect x="3" y="3" width="18" height="18" rx="2"></rect><path d="M3 9h18"></path></svg></span><h2 id="_R_3_" class="faast-summary-card__title">Monto Documento</h2></div><p class="faast-summary-card__value faast-num"><span aria-hidden="true">—</span><span class="faast-sr-only">Sin dato</span></p><div class="faast-summary-card__footer">Sin documentos en el período</div></div></article></div></code></pre></details>
|
|
6236
|
+
</section>
|
|
5231
6237
|
<section class="kit-example" id="table">
|
|
5232
6238
|
<h3>Table</h3>
|
|
5233
6239
|
<p class="kit-note">Montos a la derecha con cifras tabulares; estado en palabras.</p>
|
|
@@ -5247,6 +6253,12 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5247
6253
|
<div class="kit-stage"><nav aria-label="Progreso de la solicitud" class="faast-stepper"><ol class="faast-stepper__list"><li class="faast-stepper__step faast-stepper__step--done"><span class="faast-stepper__marker" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check faast-icon" focusable="false" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span><span class="faast-stepper__label">Selecciona tus facturas</span><span class="faast-sr-only">, completado</span></li><li class="faast-stepper__step faast-stepper__step--current" aria-current="step"><span class="faast-stepper__marker" aria-hidden="true">2</span><span class="faast-stepper__label">Revisa la liquidación</span><span class="faast-sr-only">, paso actual</span></li><li class="faast-stepper__step faast-stepper__step--pending"><span class="faast-stepper__marker" aria-hidden="true">3</span><span class="faast-stepper__label">Envía tu solicitud</span><span class="faast-sr-only">, pendiente</span></li></ol><div class="faast-stepper__compact"><p class="faast-stepper__compact-text"><b>Paso 2 de 3</b> · Revisa la liquidación</p><div class="faast-stepper__bar" aria-hidden="true"><span style="width:67%"></span></div></div></nav></div>
|
|
5248
6254
|
<details><summary>Markup</summary><pre><code><nav aria-label="Progreso de la solicitud" class="faast-stepper"><ol class="faast-stepper__list"><li class="faast-stepper__step faast-stepper__step--done"><span class="faast-stepper__marker" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check faast-icon" focusable="false" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span><span class="faast-stepper__label">Selecciona tus facturas</span><span class="faast-sr-only">, completado</span></li><li class="faast-stepper__step faast-stepper__step--current" aria-current="step"><span class="faast-stepper__marker" aria-hidden="true">2</span><span class="faast-stepper__label">Revisa la liquidación</span><span class="faast-sr-only">, paso actual</span></li><li class="faast-stepper__step faast-stepper__step--pending"><span class="faast-stepper__marker" aria-hidden="true">3</span><span class="faast-stepper__label">Envía tu solicitud</span><span class="faast-sr-only">, pendiente</span></li></ol><div class="faast-stepper__compact"><p class="faast-stepper__compact-text"><b>Paso 2 de 3</b> · Revisa la liquidación</p><div class="faast-stepper__bar" aria-hidden="true"><span style="width:67%"></span></div></div></nav></code></pre></details>
|
|
5249
6255
|
</section>
|
|
6256
|
+
<section class="kit-example" id="stepper-compact">
|
|
6257
|
+
<h3>Stepper compacto</h3>
|
|
6258
|
+
<p class="kit-note">variant="compact": siempre la forma compacta ("Paso 2 de 4 · Verificación" y una barra fina), sin mirar el ancho de la ventana; no renderiza la lista. Para paneles angostos (el acceso mide 384 px en cualquier ventana). La barra es decorativa (aria-hidden); el texto lleva la información.</p>
|
|
6259
|
+
<div class="kit-stage" style="max-width:384px"><nav aria-label="Avance" class="faast-stepper faast-stepper--compact"><div class="faast-stepper__compact"><p class="faast-stepper__compact-text"><b>Paso 2 de 4</b> · Verificación</p><div class="faast-stepper__bar" aria-hidden="true"><span style="width:50%"></span></div></div></nav></div>
|
|
6260
|
+
<details><summary>Markup</summary><pre><code><nav aria-label="Avance" class="faast-stepper faast-stepper--compact"><div class="faast-stepper__compact"><p class="faast-stepper__compact-text"><b>Paso 2 de 4</b> · Verificación</p><div class="faast-stepper__bar" aria-hidden="true"><span style="width:50%"></span></div></div></nav></code></pre></details>
|
|
6261
|
+
</section>
|
|
5250
6262
|
<section class="kit-example" id="timeline">
|
|
5251
6263
|
<h3>Timeline</h3>
|
|
5252
6264
|
|
|
@@ -5254,12 +6266,38 @@ html:has(.faast-welcome-dialog[open]:modal) {
|
|
|
5254
6266
|
<details><summary>Markup</summary><pre><code><ol class="faast-timeline" aria-label="Seguimiento de la operación"><li class="faast-timeline__item faast-timeline__item--done"><span class="faast-timeline__dot" aria-hidden="true"></span><p class="faast-timeline__title">Operación enviada<span class="faast-sr-only">. Completado</span></p><p class="faast-timeline__meta">02/11/2026</p></li><li class="faast-timeline__item faast-timeline__item--current" aria-current="step"><span class="faast-timeline__dot" aria-hidden="true"></span><p class="faast-timeline__title">En evaluación<span class="faast-sr-only">. En curso</span></p><p class="faast-timeline__meta">En curso</p></li><li class="faast-timeline__item faast-timeline__item--pending"><span class="faast-timeline__dot" aria-hidden="true"></span><p class="faast-timeline__title">Desembolso a proveedores<span class="faast-sr-only">. Pendiente</span></p><p class="faast-timeline__meta">Pendiente</p></li></ol></code></pre></details>
|
|
5255
6267
|
</section>
|
|
5256
6268
|
<h2>Navegación</h2>
|
|
6269
|
+
<section class="kit-example" id="floating-bar">
|
|
6270
|
+
<h3>BarraFlotante, BarraMarca, BarraModulos, BarraHerramientas</h3>
|
|
6271
|
+
<p class="kit-note">Cápsula de vidrio a 12 px del borde (sticky). marca="filo": barra neutra con un filo de 2 px en el color de marca; marca="banda": la barra en el color de marca con texto text-on-accent y el logo sobre una placa bg-surface. Lo que no cabe pasa a «Más (n)» desde el final; el módulo activo nunca pasa. Bajo 768 px los módulos van a una hoja desde el botón «Módulos». La sombra aparece solo cuando hay contenido por debajo (data-elevada). Los colores salen de createTenantTheme.</p>
|
|
6272
|
+
<div class="kit-stage"><div style="display:grid;gap:16px"><div class="faast-bar-wrap"><header class="faast-bar faast-glass" data-marca="filo"><a class="faast-bar__brand" aria-label="FaaST.app, ir al inicio" href="#"><span style="font-weight:600">FaaST</span></a><nav class="faast-bar__nav" aria-label="Principal"><ul class="faast-bar__list"><li><a class="faast-bar__item" href="#" aria-current="page"><span class="faast-bar__label">Factoring</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Confirming</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Ordering</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Clientes</span></a></li></ul><ul class="faast-bar__list faast-bar__measure" aria-hidden="true"><li><span class="faast-bar__item" data-measure="item" aria-current="page">Factoring</span></li><li><span class="faast-bar__item" data-measure="item">Confirming</span></li><li><span class="faast-bar__item" data-measure="item">Ordering</span></li><li><span class="faast-bar__item" data-measure="item">Clientes</span></li><li><span class="faast-bar__item" data-measure="more">Más (4)<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down faast-icon" focusable="false" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></span></li></ul></nav><button type="button" class="faast-bar__item faast-bar__menu-btn" aria-haspopup="dialog"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu faast-icon" focusable="false" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg><span class="faast-bar__menu-label">Módulos</span></button><div class="faast-bar__tools"><button type="button" aria-label="Avisos" title="Avisos" class="faast-icon-button faast-icon-button--ghost"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bell faast-icon" focusable="false" aria-hidden="true"><path d="M10.268 21a2 2 0 0 0 3.464 0"></path><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"></path></svg></button><span class="faast-avatar faast-avatar--32" translate="no" aria-hidden="true"><span aria-hidden="true">VR</span></span></div></header></div><div class="faast-bar-wrap"><header class="faast-bar faast-glass" data-marca="banda"><a class="faast-bar__brand" aria-label="FaaST.app, ir al inicio" href="#"><span style="font-weight:600">FaaST</span></a><nav class="faast-bar__nav" aria-label="Principal"><ul class="faast-bar__list"><li><a class="faast-bar__item" href="#" aria-current="page"><span class="faast-bar__label">Factoring</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Confirming</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Ordering</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Clientes</span></a></li></ul><ul class="faast-bar__list faast-bar__measure" aria-hidden="true"><li><span class="faast-bar__item" data-measure="item" aria-current="page">Factoring</span></li><li><span class="faast-bar__item" data-measure="item">Confirming</span></li><li><span class="faast-bar__item" data-measure="item">Ordering</span></li><li><span class="faast-bar__item" data-measure="item">Clientes</span></li><li><span class="faast-bar__item" data-measure="more">Más (4)<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down faast-icon" focusable="false" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></span></li></ul></nav><button type="button" class="faast-bar__item faast-bar__menu-btn" aria-haspopup="dialog"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu faast-icon" focusable="false" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg><span class="faast-bar__menu-label">Módulos</span></button><div class="faast-bar__tools"><button type="button" aria-label="Avisos" title="Avisos" class="faast-icon-button faast-icon-button--ghost"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bell faast-icon" focusable="false" aria-hidden="true"><path d="M10.268 21a2 2 0 0 0 3.464 0"></path><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"></path></svg></button><span class="faast-avatar faast-avatar--32" translate="no" aria-hidden="true"><span aria-hidden="true">VR</span></span></div></header></div></div></div>
|
|
6273
|
+
<details><summary>Markup</summary><pre><code><div style="display:grid;gap:16px"><div class="faast-bar-wrap"><header class="faast-bar faast-glass" data-marca="filo"><a class="faast-bar__brand" aria-label="FaaST.app, ir al inicio" href="#"><span style="font-weight:600">FaaST</span></a><nav class="faast-bar__nav" aria-label="Principal"><ul class="faast-bar__list"><li><a class="faast-bar__item" href="#" aria-current="page"><span class="faast-bar__label">Factoring</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Confirming</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Ordering</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Clientes</span></a></li></ul><ul class="faast-bar__list faast-bar__measure" aria-hidden="true"><li><span class="faast-bar__item" data-measure="item" aria-current="page">Factoring</span></li><li><span class="faast-bar__item" data-measure="item">Confirming</span></li><li><span class="faast-bar__item" data-measure="item">Ordering</span></li><li><span class="faast-bar__item" data-measure="item">Clientes</span></li><li><span class="faast-bar__item" data-measure="more">Más (4)<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down faast-icon" focusable="false" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></span></li></ul></nav><button type="button" class="faast-bar__item faast-bar__menu-btn" aria-haspopup="dialog"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu faast-icon" focusable="false" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg><span class="faast-bar__menu-label">Módulos</span></button><div class="faast-bar__tools"><button type="button" aria-label="Avisos" title="Avisos" class="faast-icon-button faast-icon-button--ghost"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bell faast-icon" focusable="false" aria-hidden="true"><path d="M10.268 21a2 2 0 0 0 3.464 0"></path><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"></path></svg></button><span class="faast-avatar faast-avatar--32" translate="no" aria-hidden="true"><span aria-hidden="true">VR</span></span></div></header></div><div class="faast-bar-wrap"><header class="faast-bar faast-glass" data-marca="banda"><a class="faast-bar__brand" aria-label="FaaST.app, ir al inicio" href="#"><span style="font-weight:600">FaaST</span></a><nav class="faast-bar__nav" aria-label="Principal"><ul class="faast-bar__list"><li><a class="faast-bar__item" href="#" aria-current="page"><span class="faast-bar__label">Factoring</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Confirming</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Ordering</span></a></li><li><a class="faast-bar__item" href="#"><span class="faast-bar__label">Clientes</span></a></li></ul><ul class="faast-bar__list faast-bar__measure" aria-hidden="true"><li><span class="faast-bar__item" data-measure="item" aria-current="page">Factoring</span></li><li><span class="faast-bar__item" data-measure="item">Confirming</span></li><li><span class="faast-bar__item" data-measure="item">Ordering</span></li><li><span class="faast-bar__item" data-measure="item">Clientes</span></li><li><span class="faast-bar__item" data-measure="more">Más (4)<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down faast-icon" focusable="false" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></span></li></ul></nav><button type="button" class="faast-bar__item faast-bar__menu-btn" aria-haspopup="dialog"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-menu faast-icon" focusable="false" aria-hidden="true"><path d="M4 5h16"></path><path d="M4 12h16"></path><path d="M4 19h16"></path></svg><span class="faast-bar__menu-label">Módulos</span></button><div class="faast-bar__tools"><button type="button" aria-label="Avisos" title="Avisos" class="faast-icon-button faast-icon-button--ghost"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-bell faast-icon" focusable="false" aria-hidden="true"><path d="M10.268 21a2 2 0 0 0 3.464 0"></path><path d="M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326"></path></svg></button><span class="faast-avatar faast-avatar--32" translate="no" aria-hidden="true"><span aria-hidden="true">VR</span></span></div></header></div></div></code></pre></details>
|
|
6274
|
+
</section>
|
|
5257
6275
|
<section class="kit-example" id="navigation">
|
|
5258
6276
|
<h3>SideNav, NavItem</h3>
|
|
5259
6277
|
<p class="kit-note">Dentro de AppShell ocupa la barra lateral de 240px (cajón en teléfonos).</p>
|
|
5260
6278
|
<div class="kit-stage" style="max-width:240px"><nav aria-label="Principal" class="faast-sidenav"><div class="faast-nav-section"><ul class="faast-nav-section__list"><li><a class="faast-nav-item faast-nav-item--active" aria-current="page" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard faast-icon" focusable="false" aria-hidden="true"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg></span><span class="faast-nav-item__label">Resumen</span></a></li><li><a class="faast-nav-item" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-check faast-icon" focusable="false" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="m9 15 2 2 4-4"></path></svg></span><span class="faast-nav-item__label">Operaciones</span><span class="faast-nav-item__badge"><span class="faast-badge faast-badge--neutral">4</span></span></a></li><li><a class="faast-nav-item" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users faast-icon" focusable="false" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle></svg></span><span class="faast-nav-item__label">Proveedores</span></a></li></ul></div><div class="faast-nav-section"><p class="faast-nav-section__title">Cuenta</p><ul class="faast-nav-section__list"><li><a class="faast-nav-item" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings faast-icon" focusable="false" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></span><span class="faast-nav-item__label">Configuración</span></a></li></ul></div></nav></div>
|
|
5261
6279
|
<details><summary>Markup</summary><pre><code><nav aria-label="Principal" class="faast-sidenav"><div class="faast-nav-section"><ul class="faast-nav-section__list"><li><a class="faast-nav-item faast-nav-item--active" aria-current="page" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-layout-dashboard faast-icon" focusable="false" aria-hidden="true"><rect width="7" height="9" x="3" y="3" rx="1"></rect><rect width="7" height="5" x="14" y="3" rx="1"></rect><rect width="7" height="9" x="14" y="12" rx="1"></rect><rect width="7" height="5" x="3" y="16" rx="1"></rect></svg></span><span class="faast-nav-item__label">Resumen</span></a></li><li><a class="faast-nav-item" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-file-check faast-icon" focusable="false" aria-hidden="true"><path d="M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z"></path><path d="M14 2v5a1 1 0 0 0 1 1h5"></path><path d="m9 15 2 2 4-4"></path></svg></span><span class="faast-nav-item__label">Operaciones</span><span class="faast-nav-item__badge"><span class="faast-badge faast-badge--neutral">4</span></span></a></li><li><a class="faast-nav-item" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-users faast-icon" focusable="false" aria-hidden="true"><path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path><path d="M16 3.128a4 4 0 0 1 0 7.744"></path><path d="M22 21v-2a4 4 0 0 0-3-3.87"></path><circle cx="9" cy="7" r="4"></circle></svg></span><span class="faast-nav-item__label">Proveedores</span></a></li></ul></div><div class="faast-nav-section"><p class="faast-nav-section__title">Cuenta</p><ul class="faast-nav-section__list"><li><a class="faast-nav-item" href="#"><span class="faast-nav-item__icon"><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-settings faast-icon" focusable="false" aria-hidden="true"><path d="M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915"></path><circle cx="12" cy="12" r="3"></circle></svg></span><span class="faast-nav-item__label">Configuración</span></a></li></ul></div></nav></code></pre></details>
|
|
5262
6280
|
</section>
|
|
6281
|
+
<h2>Superficies</h2>
|
|
6282
|
+
<section class="kit-example" id="radius-layers">
|
|
6283
|
+
<h3>Radios y capas</h3>
|
|
6284
|
+
<p class="kit-note">Controles 6 px (--faast-radius-sm), superficies de página 8 px (--faast-radius-md), capas que flotan 20 px (--faast-radius-xl). Una sola sombra (--faast-overlay-shadow), solo en lo que flota. --faast-z-flyout (150) va entre sticky y drawer.</p>
|
|
6285
|
+
<div class="kit-stage"><div style="display:grid;gap:16px"><div style="padding:16px;border:1px solid var(--faast-border-default);background:var(--faast-bg-surface);color:var(--faast-text-primary);border-radius:var(--faast-radius-sm);box-shadow:none">Control (6 px)</div><div style="padding:16px;border:1px solid var(--faast-border-default);background:var(--faast-bg-surface);color:var(--faast-text-primary);border-radius:var(--faast-radius-md);box-shadow:none">Superficie de página (8 px)</div><div style="padding:16px;border:1px solid var(--faast-border-default);background:var(--faast-bg-surface);color:var(--faast-text-primary);border-radius:var(--faast-radius-xl);box-shadow:var(--faast-overlay-shadow)">Capa que flota (20 px)</div></div></div>
|
|
6286
|
+
<details><summary>Markup</summary><pre><code><div style="display:grid;gap:16px"><div style="padding:16px;border:1px solid var(--faast-border-default);background:var(--faast-bg-surface);color:var(--faast-text-primary);border-radius:var(--faast-radius-sm);box-shadow:none">Control (6 px)</div><div style="padding:16px;border:1px solid var(--faast-border-default);background:var(--faast-bg-surface);color:var(--faast-text-primary);border-radius:var(--faast-radius-md);box-shadow:none">Superficie de página (8 px)</div><div style="padding:16px;border:1px solid var(--faast-border-default);background:var(--faast-bg-surface);color:var(--faast-text-primary);border-radius:var(--faast-radius-xl);box-shadow:var(--faast-overlay-shadow)">Capa que flota (20 px)</div></div></code></pre></details>
|
|
6287
|
+
</section>
|
|
6288
|
+
<section class="kit-example" id="glass">
|
|
6289
|
+
<h3>Glass</h3>
|
|
6290
|
+
<p class="kit-note">Material de vidrio: solo para capas que flotan (barra, menús, aviso flotante). Nunca el lienzo ni el contenido. Sólido con prefers-reduced-transparency o data-vidrio="solido" en <html>. No fija radio ni sombra: la capa los pone (radio y --faast-overlay-shadow).</p>
|
|
6291
|
+
<div class="kit-stage"><div style="padding:24px;background:repeating-linear-gradient(135deg, var(--faast-status-info-solid) 0 16px, var(--faast-status-warning-solid) 16px 32px)"><div class="faast-glass" style="padding:12px 16px;border-radius:var(--faast-radius-xl);box-shadow:var(--faast-overlay-shadow)"><p style="margin:0;color:var(--faast-text-primary)">Barra flotante</p><p style="margin:0;color:var(--faast-text-secondary)">Texto secundario</p></div></div></div>
|
|
6292
|
+
<details><summary>Markup</summary><pre><code><div style="padding:24px;background:repeating-linear-gradient(135deg, var(--faast-status-info-solid) 0 16px, var(--faast-status-warning-solid) 16px 32px)"><div class="faast-glass" style="padding:12px 16px;border-radius:var(--faast-radius-xl);box-shadow:var(--faast-overlay-shadow)"><p style="margin:0;color:var(--faast-text-primary)">Barra flotante</p><p style="margin:0;color:var(--faast-text-secondary)">Texto secundario</p></div></div></code></pre></details>
|
|
6293
|
+
</section>
|
|
6294
|
+
<h2>Avisos</h2>
|
|
6295
|
+
<section class="kit-example" id="toast-flotante">
|
|
6296
|
+
<h3>Aviso flotante de vidrio</h3>
|
|
6297
|
+
<p class="kit-note">Toast variant="flotante": aviso breve en vidrio (faast-glass--pop, 92 %) bajo la barra flotante, role="status", sin mover el foco. Información (ícono text-secondary), éxito (tone="success") y espera (pending: anillo decorativo, nunca un Spinner con role="status" dentro). persistent no tiene temporizador ni cierre; closable={false} oculta el botón. En la aplicación la región superior (ToastProvider placement="top") queda 8 px bajo la barra flotante tal como se dibuja (--faast-nav-bar-outer-height, 62 px con controles de 44 px); --faast-toaster-top es el gancho opcional. Aquí se muestran en reposo, dentro de la región superior.</p>
|
|
6298
|
+
<div class="kit-stage" style="max-width:576px"><div style="padding:24px;background:repeating-linear-gradient(135deg, var(--faast-status-info-solid) 0 16px, var(--faast-status-warning-solid) 16px 32px)"><section class="faast-toaster faast-toaster--top" aria-label="Notificaciones" style="position:static;pointer-events:auto"><div role="status" aria-live="polite" aria-atomic="true" class="faast-toast faast-toast--flotante faast-glass faast-glass--pop" data-testid="toast"><span class="faast-toast__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 16v-4"></path><path d="M12 8h.01"></path></svg></span><span class="faast-toast__message">Te quedan 2 códigos de recuperación. Genera nuevos desde tu perfil.</span></div><div role="status" aria-live="polite" aria-atomic="true" class="faast-toast faast-toast--flotante faast-glass faast-glass--pop" data-testid="toast"><span class="faast-toast__icon" aria-hidden="true"><span class="faast-spinner faast-spinner--sm"><span class="faast-spinner__ring"></span></span></span><span class="faast-toast__message">Estamos reconectando tu sesión. Puedes seguir trabajando.</span></div><div role="status" aria-live="polite" aria-atomic="true" class="faast-toast faast-toast--flotante faast-glass faast-glass--pop faast-toast--success" data-testid="toast"><span class="faast-toast__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-check lucide-check-circle-2 faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="m16 9-5.5 5.5L8 12"></path></svg></span><span class="faast-toast__message">Sesión reconectada.</span></div></section></div></div>
|
|
6299
|
+
<details><summary>Markup</summary><pre><code><div style="padding:24px;background:repeating-linear-gradient(135deg, var(--faast-status-info-solid) 0 16px, var(--faast-status-warning-solid) 16px 32px)"><section class="faast-toaster faast-toaster--top" aria-label="Notificaciones" style="position:static;pointer-events:auto"><div role="status" aria-live="polite" aria-atomic="true" class="faast-toast faast-toast--flotante faast-glass faast-glass--pop" data-testid="toast"><span class="faast-toast__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-info faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 16v-4"></path><path d="M12 8h.01"></path></svg></span><span class="faast-toast__message">Te quedan 2 códigos de recuperación. Genera nuevos desde tu perfil.</span></div><div role="status" aria-live="polite" aria-atomic="true" class="faast-toast faast-toast--flotante faast-glass faast-glass--pop" data-testid="toast"><span class="faast-toast__icon" aria-hidden="true"><span class="faast-spinner faast-spinner--sm"><span class="faast-spinner__ring"></span></span></span><span class="faast-toast__message">Estamos reconectando tu sesión. Puedes seguir trabajando.</span></div><div role="status" aria-live="polite" aria-atomic="true" class="faast-toast faast-toast--flotante faast-glass faast-glass--pop faast-toast--success" data-testid="toast"><span class="faast-toast__icon" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-circle-check lucide-check-circle-2 faast-icon" focusable="false" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="m16 9-5.5 5.5L8 12"></path></svg></span><span class="faast-toast__message">Sesión reconectada.</span></div></section></div></code></pre></details>
|
|
6300
|
+
</section>
|
|
5263
6301
|
<h2>Identidad</h2>
|
|
5264
6302
|
<section class="kit-example" id="identity">
|
|
5265
6303
|
<h3>Avatar, Spinner</h3>
|