@studiolxd/brand 49.18.0 → 49.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +206 -0
- package/dist/_shared/tokens.js +59 -0
- package/dist/_types/atoms/Autocomplete/Autocomplete.d.ts +83 -0
- package/dist/_types/atoms/List/List.d.ts +20 -0
- package/dist/_types/atoms/NumberInput/NumberInput.d.ts +33 -2
- package/dist/_types/atoms/Text/Text.d.ts +12 -2
- package/dist/_types/molecules/AutocompleteField/AutocompleteField.d.ts +57 -0
- package/dist/_types/molecules/NumberInputField/NumberInputField.d.ts +14 -2
- package/dist/autocomplete-field.css +1 -0
- package/dist/autocomplete-field.js +58 -0
- package/dist/autocomplete.css +1 -0
- package/dist/autocomplete.js +145 -0
- package/dist/brand.css +122 -1
- package/dist/list.css +1 -1
- package/dist/list.js +39 -13
- package/dist/number-input-field.js +22 -19
- package/dist/number-input.css +1 -1
- package/dist/number-input.js +54 -44
- package/dist/text.css +1 -1
- package/dist/text.js +6 -5
- package/dist/toaster.js +23 -20
- package/dist/tokens.css +126 -1
- package/package.json +16 -2
- package/src/tokens/components/autocomplete.css +40 -0
- package/src/tokens/components/autocomplete.ts +7 -0
- package/src/tokens/components/number-input.css +5 -0
- package/src/tokens/components/number-input.ts +2 -2
- package/src/tokens/components/text-inline.css +3 -0
- package/src/tokens/components/text.css +9 -0
- package/src/tokens/index.css +2 -0
- package/src/tokens/molecules/autocomplete-field.css +17 -0
- package/src/tokens/molecules/autocomplete-field.ts +8 -0
- package/src/tokens/scss/_index.legacy.scss +2 -0
- package/src/tokens/scss/_index.scss +2 -0
- package/src/tokens/scss/components/_autocomplete.scss +37 -0
- package/src/tokens/scss/components/_number-input.scss +5 -0
- package/src/tokens/scss/components/_text-inline.scss +2 -0
- package/src/tokens/scss/components/_text.scss +7 -0
- package/src/tokens/scss/molecules/_autocomplete-field.scss +14 -0
- package/src/tokens/surface-dark-derived.css +12 -0
- package/src/tokens/surface-invert.css +15 -0
- package/src/tokens/surface-light.css +15 -0
- package/src/tokens/surface-public.css +7 -0
- package/src/tokens/tokens.json +59 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studiolxd/brand",
|
|
3
|
-
"version": "49.
|
|
3
|
+
"version": "49.20.0",
|
|
4
4
|
"description": "El sistema de diseño de Studio LXD: componentes React, tokens y documentación de la suite SLXD.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -94,6 +94,16 @@
|
|
|
94
94
|
"import": "./dist/async-select-field.js",
|
|
95
95
|
"default": "./dist/async-select-field.js"
|
|
96
96
|
},
|
|
97
|
+
"./autocomplete": {
|
|
98
|
+
"types": "./dist/_types/atoms/Autocomplete/Autocomplete.d.ts",
|
|
99
|
+
"import": "./dist/autocomplete.js",
|
|
100
|
+
"default": "./dist/autocomplete.js"
|
|
101
|
+
},
|
|
102
|
+
"./autocomplete-field": {
|
|
103
|
+
"types": "./dist/_types/molecules/AutocompleteField/AutocompleteField.d.ts",
|
|
104
|
+
"import": "./dist/autocomplete-field.js",
|
|
105
|
+
"default": "./dist/autocomplete-field.js"
|
|
106
|
+
},
|
|
97
107
|
"./avatar": {
|
|
98
108
|
"types": "./dist/_types/atoms/Avatar/Avatar.d.ts",
|
|
99
109
|
"import": "./dist/avatar.js",
|
|
@@ -932,12 +942,15 @@
|
|
|
932
942
|
"preview": "vite preview",
|
|
933
943
|
"build:tokens": "node sd.config.mjs",
|
|
934
944
|
"build:email-assets": "node scripts/build-email-assets.mjs",
|
|
945
|
+
"build:native-fonts": "python3 scripts/build-native-fonts.py",
|
|
946
|
+
"build:native-icons": "node scripts/build-native-icons.mjs",
|
|
947
|
+
"native:parity": "node scripts/native-parity.mjs",
|
|
935
948
|
"storybook": "storybook dev -p 6006",
|
|
936
949
|
"build-storybook": "storybook build",
|
|
937
950
|
"chromatic": "chromatic --exit-zero-on-changes",
|
|
938
951
|
"test": "vitest run --project unit --project components",
|
|
939
952
|
"test:stories": "vitest run --project storybook",
|
|
940
|
-
"build:all": "pnpm build:tokens && pnpm build:lib && pnpm build:css && pnpm build:tokens-css && pnpm build:fonts-css && pnpm build:icons && pnpm build:email-assets",
|
|
953
|
+
"build:all": "pnpm build:tokens && pnpm build:lib && pnpm build:css && pnpm build:tokens-css && pnpm build:fonts-css && pnpm build:icons && pnpm build:email-assets && pnpm build:native-icons",
|
|
941
954
|
"release:check": "node scripts/release-check.mjs",
|
|
942
955
|
"release:npm": "node scripts/publish-npm.mjs"
|
|
943
956
|
},
|
|
@@ -978,6 +991,7 @@
|
|
|
978
991
|
"@vitejs/plugin-react": "^6.0.1",
|
|
979
992
|
"@vitest/browser-playwright": "^4.1.2",
|
|
980
993
|
"@vitest/coverage-v8": "^4.1.2",
|
|
994
|
+
"ajv": "^8.18.0",
|
|
981
995
|
"chromatic": "^18.5.0",
|
|
982
996
|
"eslint": "^9.39.4",
|
|
983
997
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--autocomplete-border-style: var(--async-select-border-style); /** Hereda de `async-select.border-style`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
7
|
+
--autocomplete-disabled-cursor: var(--async-select-disabled-cursor); /** Hereda de `async-select.disabled-cursor`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
8
|
+
--autocomplete-content-max-height: var(--async-select-content-max-height); /** Hereda de `async-select.content-max-height`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
9
|
+
--autocomplete-bg: var(--async-select-bg); /** Hereda de `async-select.bg`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
10
|
+
--autocomplete-content-bg: var(--async-select-content-bg); /** Hereda de `async-select.content-bg`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
11
|
+
--autocomplete-content-gap: var(--async-select-content-gap); /** Hereda de `async-select.content-gap`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
12
|
+
--autocomplete-content-z-index: var(--async-select-content-z-index); /** Hereda de `async-select.content-z-index`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
13
|
+
--autocomplete-font-family: var(--async-select-font-family); /** Hereda de `async-select.font-family`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
14
|
+
--autocomplete-font-size: var(--async-select-font-size); /** Hereda de `async-select.font-size`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
15
|
+
--autocomplete-height: var(--async-select-height); /** Hereda de `async-select.height`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
16
|
+
--autocomplete-item-padding-block: var(--async-select-item-padding-block); /** Hereda de `async-select.item-padding-block`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
17
|
+
--autocomplete-lg-font-size: var(--async-select-lg-font-size); /** Hereda de `async-select.lg-font-size`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
18
|
+
--autocomplete-lg-height: var(--async-select-lg-height); /** Hereda de `async-select.lg-height`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
19
|
+
--autocomplete-lg-item-padding-block: var(--async-select-lg-item-padding-block); /** Hereda de `async-select.lg-item-padding-block`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
20
|
+
--autocomplete-lg-padding-inline: var(--async-select-lg-padding-inline); /** Hereda de `async-select.lg-padding-inline`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
21
|
+
--autocomplete-sm-font-size: var(--async-select-sm-font-size); /** Hereda de `async-select.sm-font-size`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
22
|
+
--autocomplete-sm-height: var(--async-select-sm-height); /** Hereda de `async-select.sm-height`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
23
|
+
--autocomplete-sm-item-padding-block: var(--async-select-sm-item-padding-block); /** Hereda de `async-select.sm-item-padding-block`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
24
|
+
--autocomplete-sm-padding-inline: var(--async-select-sm-padding-inline); /** Hereda de `async-select.sm-padding-inline`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
25
|
+
--autocomplete-item-selected-font-weight: var(--async-select-item-selected-font-weight); /** Peso de la sugerencia que coincide con el texto escrito */
|
|
26
|
+
--autocomplete-border-color: var(--async-select-border-color); /** Hereda de `async-select.border-color`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
27
|
+
--autocomplete-border-radius: var(--async-select-border-radius); /** Hereda de `async-select.border-radius`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
28
|
+
--autocomplete-border-width: var(--async-select-border-width); /** Hereda de `async-select.border-width`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
29
|
+
--autocomplete-color: var(--async-select-color); /** Hereda de `async-select.color`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
30
|
+
--autocomplete-content-border-color: var(--async-select-content-border-color); /** Hereda de `async-select.content-border-color`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
31
|
+
--autocomplete-error-border-color: var(--async-select-error-border-color); /** Hereda de `async-select.error-border-color`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
32
|
+
--autocomplete-focus-ring-color: var(--async-select-focus-ring-color); /** Hereda de `async-select.focus-ring-color`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
33
|
+
--autocomplete-focus-ring-width: var(--async-select-focus-ring-width); /** Hereda de `async-select.focus-ring-width`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
34
|
+
--autocomplete-font-weight: var(--async-select-font-weight); /** Hereda de `async-select.font-weight`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
35
|
+
--autocomplete-item-highlighted-bg: var(--async-select-item-highlighted-bg); /** Hereda de `async-select.item-highlighted-bg`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
36
|
+
--autocomplete-item-highlighted-color: var(--async-select-item-highlighted-color); /** Hereda de `async-select.item-highlighted-color`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
37
|
+
--autocomplete-line-height: var(--async-select-line-height); /** Hereda de `async-select.line-height`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
38
|
+
--autocomplete-padding-inline: var(--async-select-padding-inline); /** Hereda de `async-select.padding-inline`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
39
|
+
--autocomplete-placeholder-color: var(--async-select-placeholder-color); /** Hereda de `async-select.placeholder-color`: el autocompletado tiene la misma cara que el buscador y el Select */
|
|
40
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import tokens from '../../../tokens/component/autocomplete.json';
|
|
2
|
+
import { flattenTokens } from '../utils';
|
|
3
|
+
|
|
4
|
+
const all = flattenTokens(tokens as never);
|
|
5
|
+
|
|
6
|
+
export const autocompleteFaceTokens = all.filter(t => !t.name.startsWith('--autocomplete-surface-dark-'));
|
|
7
|
+
export const autocompleteDarkTokens = all.filter(t => t.name.startsWith('--autocomplete-surface-dark-'));
|
|
@@ -7,6 +7,10 @@
|
|
|
7
7
|
--number-input-btn-bg: transparent; /** Fondo de los botones */
|
|
8
8
|
--number-input-btn-width: var(--spacing-6); /** Ancho de los botones +/− */
|
|
9
9
|
--number-input-disabled-cursor: var(--input-disabled-cursor); /** Cursor cuando deshabilitado */
|
|
10
|
+
--number-input-compact-height: var(--size-component-sm); /** Altura — compacto (fila de lista): la talla mínima del sistema */
|
|
11
|
+
--number-input-compact-btn-width: var(--spacing-5); /** Ancho de los botones +/− — compacto. En nativo la zona táctil se amplía a 44 pt / 48 dp sin cambiar este ancho */
|
|
12
|
+
--number-input-compact-field-width: var(--size-component-md); /** Ancho de la cifra — compacto: lo justo para 2–3 dígitos. El control no se estira */
|
|
13
|
+
--number-input-compact-padding-inline: var(--spacing-1); /** Padding horizontal de la cifra — compacto */
|
|
10
14
|
--number-input-bg: var(--input-bg); /** Fondo del contenedor */
|
|
11
15
|
--number-input-font-family: var(--input-font-family); /** Font family */
|
|
12
16
|
--number-input-font-size: var(--input-font-size); /** Font size */
|
|
@@ -24,6 +28,7 @@
|
|
|
24
28
|
--number-input-lg-font-size: var(--input-lg-font-size); /** Font size — lg */
|
|
25
29
|
--number-input-lg-height: var(--input-lg-height); /** Altura — lg */
|
|
26
30
|
--number-input-lg-padding-inline: var(--input-lg-padding-inline); /** Padding horizontal — lg */
|
|
31
|
+
--number-input-compact-font-size: var(--input-sm-font-size); /** Font size — compacto */
|
|
27
32
|
--number-input-border-radius: var(--input-border-radius); /** Border radius del contenedor */
|
|
28
33
|
--number-input-border-width: var(--input-border-width); /** Grosor del borde */
|
|
29
34
|
--number-input-border-color: var(--input-border-color); /** Color del borde */
|
|
@@ -3,9 +3,9 @@ import { flattenTokens } from '../utils';
|
|
|
3
3
|
|
|
4
4
|
const all = flattenTokens(numberInput as never);
|
|
5
5
|
|
|
6
|
-
export const numberInputBaseTokens = all.filter(t => !t.name.match(/--number-input-(focus|error|disabled|sm|lg|btn-hover|btn-separator|disabled)/));
|
|
6
|
+
export const numberInputBaseTokens = all.filter(t => !t.name.match(/--number-input-(focus|error|disabled|sm|lg|btn-hover|btn-separator|disabled|compact)/));
|
|
7
7
|
export const numberInputBtnTokens = all.filter(t => t.name.includes('btn'));
|
|
8
8
|
export const numberInputFocusTokens = all.filter(t => t.name.includes('focus'));
|
|
9
9
|
export const numberInputErrorTokens = all.filter(t => t.name.includes('error'));
|
|
10
10
|
export const numberInputDisabledTokens = all.filter(t => t.name.includes('disabled'));
|
|
11
|
-
export const numberInputSizeTokens = all.filter(t => t.name.match(/--number-input-(sm|lg)-/));
|
|
11
|
+
export const numberInputSizeTokens = all.filter(t => t.name.match(/--number-input-(sm|lg|compact)-/));
|
|
@@ -7,12 +7,15 @@
|
|
|
7
7
|
--text-inline-muted-color: var(--color-text-muted-on-light); /** Texto secundario en línea: una aclaración, un metadato */
|
|
8
8
|
--text-inline-destructive-color: var(--color-destructive-text-on-light); /** Énfasis en línea con intención destructiva: la palabra que dice que algo se pierde. Es tinta sobre la superficie, nunca un relleno */
|
|
9
9
|
--text-inline-success-color: var(--color-success-text-on-light); /** Énfasis en línea con intención de logro */
|
|
10
|
+
--text-inline-strikethrough-color: var(--color-text-muted-on-light); /** Texto tachado: lo que ya está hecho (un producto en el carrito) o ya no vale. Atenuado como el texto secundario; con un `tone` manda el tono */
|
|
11
|
+
--text-inline-strikethrough-thickness: var(--border-width-default); /** Grosor de la línea del tachado: el de los demás trazos del sistema */
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
.surface-dark,
|
|
13
15
|
.surface-invert,
|
|
14
16
|
[data-theme="dark"],
|
|
15
17
|
html.dark {
|
|
18
|
+
--text-inline-strikethrough-color: var(--color-text-muted-on-dark); /** Texto tachado — surface-dark */
|
|
16
19
|
--text-inline-muted-color: var(--color-text-muted-on-dark); /** Texto secundario en línea — surface-dark */
|
|
17
20
|
--text-inline-destructive-color: var(--color-destructive-text-on-dark); /** Énfasis destructivo — surface-dark */
|
|
18
21
|
--text-inline-success-color: var(--color-success-text-on-dark); /** Énfasis de logro — surface-dark */
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
--text-paragraph-large-line-height: var(--line-height-snug); /** Large paragraph line height */
|
|
35
35
|
--text-list-gap: var(--spacing-2); /** Spacing between list items (8px) */
|
|
36
36
|
--text-list-padding-inline-start: var(--spacing-6); /** Left indent for list (32px) */
|
|
37
|
+
--text-list-item-gap: var(--spacing-3); /** Aire entre el contenido de una fila y su accesorio final (trailing) (12px) */
|
|
37
38
|
--text-font-weight: var(--font-weight-default); /** Default font weight */
|
|
38
39
|
--text-color: var(--color-text-on-light); /** Default text color */
|
|
39
40
|
--text-background: var(--color-background-light); /** Fondo del lienzo de página (body) */
|
|
@@ -59,6 +60,10 @@
|
|
|
59
60
|
--text-list-font-size: var(--text-font-size); /** List font size */
|
|
60
61
|
--text-list-line-height: var(--text-line-height); /** List line height */
|
|
61
62
|
--text-list-letter-spacing: var(--text-letter-spacing); /** List letter spacing */
|
|
63
|
+
--text-list-secondary-font-size: var(--text-paragraph-small-font-size); /** Línea secundaria de una fila: un peldaño por debajo del cuerpo */
|
|
64
|
+
--text-list-secondary-line-height: var(--text-paragraph-small-line-height); /** Interlineado de la línea secundaria de una fila */
|
|
65
|
+
--text-list-secondary-color: var(--color-text-muted-on-light); /** Color atenuado de la línea secundaria de una fila */
|
|
66
|
+
--text-list-separator-spacing: var(--separator-spacing-md); /** Aire a cada lado de la línea entre filas */
|
|
62
67
|
--text-h1-font-weight: var(--text-heading-font-weight); /** H1 font weight */
|
|
63
68
|
--text-h1-color: var(--text-heading-color); /** H1 color */
|
|
64
69
|
--text-h2-font-weight: var(--text-heading-font-weight); /** H2 font weight */
|
|
@@ -73,6 +78,8 @@
|
|
|
73
78
|
--text-h6-color: var(--text-heading-color); /** H6 color */
|
|
74
79
|
--text-list-font-weight: var(--text-font-weight); /** List font weight */
|
|
75
80
|
--text-list-color: var(--text-color); /** List text color */
|
|
81
|
+
--text-list-separator-color: var(--separator-color); /** Línea entre filas de una lista con separadores */
|
|
82
|
+
--text-list-separator-thickness: var(--separator-thickness); /** Grosor de la línea entre filas */
|
|
76
83
|
}
|
|
77
84
|
|
|
78
85
|
.surface-dark,
|
|
@@ -88,4 +95,6 @@ html.dark {
|
|
|
88
95
|
--text-h5-color: var(--color-text-on-dark); /** H5 color — surface-dark */
|
|
89
96
|
--text-h6-color: var(--color-text-on-dark); /** H6 color — surface-dark */
|
|
90
97
|
--text-list-color: var(--color-text-on-dark); /** List color — surface-dark */
|
|
98
|
+
--text-list-secondary-color: var(--color-text-muted-on-dark); /** Línea secundaria de una fila — surface-dark */
|
|
99
|
+
--text-list-separator-color: var(--separator-color); /** Línea entre filas — surface-dark */
|
|
91
100
|
}
|
package/src/tokens/index.css
CHANGED
|
@@ -58,6 +58,7 @@
|
|
|
58
58
|
@import "./molecules/select-field.css";
|
|
59
59
|
@import "./molecules/multi-select-field.css";
|
|
60
60
|
@import "./molecules/async-select-field.css";
|
|
61
|
+
@import "./molecules/autocomplete-field.css";
|
|
61
62
|
@import "./molecules/async-multi-select-field.css";
|
|
62
63
|
@import "./molecules/input-phone-field.css";
|
|
63
64
|
@import "./components/otp-input.css";
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
@import "./components/select.css";
|
|
68
69
|
@import "./components/multi-select.css";
|
|
69
70
|
@import "./components/async-select.css";
|
|
71
|
+
@import "./components/autocomplete.css";
|
|
70
72
|
@import "./components/async-multi-select.css";
|
|
71
73
|
@import "./components/avatar.css";
|
|
72
74
|
@import "./components/input-phone.css";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
:root {
|
|
6
|
+
--autocomplete-field-gap: var(--async-select-field-gap); /** Espacio entre label, control, helper y error */
|
|
7
|
+
--autocomplete-field-error-font-family: var(--async-select-field-error-font-family); /** Font family del mensaje de error */
|
|
8
|
+
--autocomplete-field-error-line-height: var(--async-select-field-error-line-height); /** Line height del mensaje de error */
|
|
9
|
+
--autocomplete-field-helper-font-family: var(--async-select-field-helper-font-family); /** Font family del texto de ayuda */
|
|
10
|
+
--autocomplete-field-helper-line-height: var(--async-select-field-helper-line-height); /** Line height del texto de ayuda */
|
|
11
|
+
--autocomplete-field-error-font-size: var(--async-select-field-error-font-size); /** Font size del mensaje de error */
|
|
12
|
+
--autocomplete-field-error-font-weight: var(--async-select-field-error-font-weight); /** Font weight del mensaje de error */
|
|
13
|
+
--autocomplete-field-error-color: var(--async-select-field-error-color); /** Color del mensaje de error */
|
|
14
|
+
--autocomplete-field-helper-font-size: var(--async-select-field-helper-font-size); /** Font size del texto de ayuda */
|
|
15
|
+
--autocomplete-field-helper-font-weight: var(--async-select-field-helper-font-weight); /** Font weight del texto de ayuda */
|
|
16
|
+
--autocomplete-field-helper-color: var(--async-select-field-helper-color); /** Color del texto de ayuda */
|
|
17
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import tokens from '../../../tokens/molecule/autocomplete-field.json';
|
|
2
|
+
import { flattenTokens } from '../utils';
|
|
3
|
+
|
|
4
|
+
const all = flattenTokens(tokens as never);
|
|
5
|
+
|
|
6
|
+
export const autocompleteFieldBaseTokens = all.filter(t => t.name === '--autocomplete-field-gap');
|
|
7
|
+
export const autocompleteFieldErrorTokens = all.filter(t => t.name.startsWith('--autocomplete-field-error-'));
|
|
8
|
+
export const autocompleteFieldHelperTokens = all.filter(t => t.name.startsWith('--autocomplete-field-helper-'));
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
@import 'components/select';
|
|
44
44
|
@import 'components/multi-select';
|
|
45
45
|
@import 'components/async-select';
|
|
46
|
+
@import 'components/autocomplete';
|
|
46
47
|
@import 'components/async-multi-select';
|
|
47
48
|
@import 'components/avatar';
|
|
48
49
|
@import 'components/input-phone';
|
|
@@ -147,6 +148,7 @@
|
|
|
147
148
|
@import 'components/otp-input';
|
|
148
149
|
@import 'molecules/otp-field';
|
|
149
150
|
@import 'molecules/async-select-field';
|
|
151
|
+
@import 'molecules/autocomplete-field';
|
|
150
152
|
@import 'molecules/async-multi-select-field';
|
|
151
153
|
@import 'molecules/chart';
|
|
152
154
|
@import 'components/sparkline';
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
@forward 'components/select';
|
|
44
44
|
@forward 'components/multi-select';
|
|
45
45
|
@forward 'components/async-select';
|
|
46
|
+
@forward 'components/autocomplete';
|
|
46
47
|
@forward 'components/async-multi-select';
|
|
47
48
|
@forward 'components/avatar';
|
|
48
49
|
@forward 'components/input-phone';
|
|
@@ -147,6 +148,7 @@
|
|
|
147
148
|
@forward 'components/otp-input';
|
|
148
149
|
@forward 'molecules/otp-field';
|
|
149
150
|
@forward 'molecules/async-select-field';
|
|
151
|
+
@forward 'molecules/autocomplete-field';
|
|
150
152
|
@forward 'molecules/async-multi-select-field';
|
|
151
153
|
@forward 'molecules/chart';
|
|
152
154
|
@forward 'components/sparkline';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
// Do not edit directly, this file was auto-generated.
|
|
3
|
+
|
|
4
|
+
$lxd-autocomplete-bg: #ffffff; // Hereda de `async-select.bg`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
5
|
+
$lxd-autocomplete-border-color: #111e30; // Hereda de `async-select.border-color`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
6
|
+
$lxd-autocomplete-border-radius: 0px; // Hereda de `async-select.border-radius`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
7
|
+
$lxd-autocomplete-border-style: solid; // Hereda de `async-select.border-style`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
8
|
+
$lxd-autocomplete-border-width: 1px; // Hereda de `async-select.border-width`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
9
|
+
$lxd-autocomplete-disabled-cursor: not-allowed; // Hereda de `async-select.disabled-cursor`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
10
|
+
$lxd-autocomplete-color: #111e30; // Hereda de `async-select.color`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
11
|
+
$lxd-autocomplete-content-bg: #ffffff; // Hereda de `async-select.content-bg`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
12
|
+
$lxd-autocomplete-content-border-color: #111e30; // Hereda de `async-select.content-border-color`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
13
|
+
$lxd-autocomplete-content-gap: 0.5rem; // Hereda de `async-select.content-gap`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
14
|
+
$lxd-autocomplete-content-z-index: 400; // Hereda de `async-select.content-z-index`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
15
|
+
$lxd-autocomplete-content-max-height: var(--available-height); // Hereda de `async-select.content-max-height`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
16
|
+
$lxd-autocomplete-error-border-color: #b30000; // Hereda de `async-select.error-border-color`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
17
|
+
$lxd-autocomplete-focus-ring-color: #111e30; // Hereda de `async-select.focus-ring-color`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
18
|
+
$lxd-autocomplete-focus-ring-width: 2px; // Hereda de `async-select.focus-ring-width`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
19
|
+
$lxd-autocomplete-font-family: "Google Sans Flex", system-ui, sans-serif; // Hereda de `async-select.font-family`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
20
|
+
$lxd-autocomplete-font-size: 1rem; // Hereda de `async-select.font-size`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
21
|
+
$lxd-autocomplete-font-weight: 300; // Hereda de `async-select.font-weight`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
22
|
+
$lxd-autocomplete-height: 2.5rem; // Hereda de `async-select.height`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
23
|
+
$lxd-autocomplete-item-highlighted-bg: #111e30; // Hereda de `async-select.item-highlighted-bg`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
24
|
+
$lxd-autocomplete-item-highlighted-color: #ffffff; // Hereda de `async-select.item-highlighted-color`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
25
|
+
$lxd-autocomplete-item-padding-block: 0.5rem; // Hereda de `async-select.item-padding-block`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
26
|
+
$lxd-autocomplete-lg-font-size: 1.25rem; // Hereda de `async-select.lg-font-size`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
27
|
+
$lxd-autocomplete-lg-height: 3rem; // Hereda de `async-select.lg-height`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
28
|
+
$lxd-autocomplete-lg-item-padding-block: 0.75rem; // Hereda de `async-select.lg-item-padding-block`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
29
|
+
$lxd-autocomplete-lg-padding-inline: 1.5rem; // Hereda de `async-select.lg-padding-inline`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
30
|
+
$lxd-autocomplete-line-height: 1; // Hereda de `async-select.line-height`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
31
|
+
$lxd-autocomplete-padding-inline: 1rem; // Hereda de `async-select.padding-inline`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
32
|
+
$lxd-autocomplete-placeholder-color: #4a4a4a; // Hereda de `async-select.placeholder-color`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
33
|
+
$lxd-autocomplete-sm-font-size: 0.875rem; // Hereda de `async-select.sm-font-size`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
34
|
+
$lxd-autocomplete-sm-height: 2rem; // Hereda de `async-select.sm-height`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
35
|
+
$lxd-autocomplete-sm-item-padding-block: 0.25rem; // Hereda de `async-select.sm-item-padding-block`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
36
|
+
$lxd-autocomplete-sm-padding-inline: 0.5rem; // Hereda de `async-select.sm-padding-inline`: el autocompletado tiene la misma cara que el buscador y el Select
|
|
37
|
+
$lxd-autocomplete-item-selected-font-weight: 500; // Peso de la sugerencia que coincide con el texto escrito
|
|
@@ -41,3 +41,8 @@ $lxd-number-input-sm-padding-inline: 0.75rem; // Padding horizontal — sm
|
|
|
41
41
|
$lxd-number-input-lg-font-size: 1.25rem; // Font size — lg
|
|
42
42
|
$lxd-number-input-lg-height: 3rem; // Altura — lg
|
|
43
43
|
$lxd-number-input-lg-padding-inline: 1.5rem; // Padding horizontal — lg
|
|
44
|
+
$lxd-number-input-compact-height: 2rem; // Altura — compacto (fila de lista): la talla mínima del sistema
|
|
45
|
+
$lxd-number-input-compact-font-size: 0.875rem; // Font size — compacto
|
|
46
|
+
$lxd-number-input-compact-btn-width: 1.5rem; // Ancho de los botones +/− — compacto. En nativo la zona táctil se amplía a 44 pt / 48 dp sin cambiar este ancho
|
|
47
|
+
$lxd-number-input-compact-field-width: 2.5rem; // Ancho de la cifra — compacto: lo justo para 2–3 dígitos. El control no se estira
|
|
48
|
+
$lxd-number-input-compact-padding-inline: 0.25rem; // Padding horizontal de la cifra — compacto
|
|
@@ -5,3 +5,5 @@ $lxd-text-inline-emphasis-font-weight: 500; // Peso del énfasis fuerte en líne
|
|
|
5
5
|
$lxd-text-inline-muted-color: #4a4a4a; // Texto secundario en línea: una aclaración, un metadato
|
|
6
6
|
$lxd-text-inline-destructive-color: #b30000; // Énfasis en línea con intención destructiva: la palabra que dice que algo se pierde. Es tinta sobre la superficie, nunca un relleno
|
|
7
7
|
$lxd-text-inline-success-color: #006616; // Énfasis en línea con intención de logro
|
|
8
|
+
$lxd-text-inline-strikethrough-color: #4a4a4a; // Texto tachado: lo que ya está hecho (un producto en el carrito) o ya no vale. Atenuado como el texto secundario; con un `tone` manda el tono
|
|
9
|
+
$lxd-text-inline-strikethrough-thickness: 1px; // Grosor de la línea del tachado: el de los demás trazos del sistema
|
|
@@ -71,3 +71,10 @@ $lxd-text-list-color: #111e30; // List text color
|
|
|
71
71
|
$lxd-text-list-letter-spacing: 0em; // List letter spacing
|
|
72
72
|
$lxd-text-list-gap: 0.5rem; // Spacing between list items (8px)
|
|
73
73
|
$lxd-text-list-padding-inline-start: 2rem; // Left indent for list (32px)
|
|
74
|
+
$lxd-text-list-item-gap: 0.75rem; // Aire entre el contenido de una fila y su accesorio final (trailing) (12px)
|
|
75
|
+
$lxd-text-list-secondary-font-size: 0.875rem; // Línea secundaria de una fila: un peldaño por debajo del cuerpo
|
|
76
|
+
$lxd-text-list-secondary-line-height: 1.65; // Interlineado de la línea secundaria de una fila
|
|
77
|
+
$lxd-text-list-secondary-color: #4a4a4a; // Color atenuado de la línea secundaria de una fila
|
|
78
|
+
$lxd-text-list-separator-color: #111e30; // Línea entre filas de una lista con separadores
|
|
79
|
+
$lxd-text-list-separator-thickness: 1px; // Grosor de la línea entre filas
|
|
80
|
+
$lxd-text-list-separator-spacing: 0.5rem; // Aire a cada lado de la línea entre filas
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
// Do not edit directly, this file was auto-generated.
|
|
3
|
+
|
|
4
|
+
$lxd-autocomplete-field-gap: 0.5rem; // Espacio entre label, control, helper y error
|
|
5
|
+
$lxd-autocomplete-field-error-font-family: "Google Sans Flex", system-ui, sans-serif; // Font family del mensaje de error
|
|
6
|
+
$lxd-autocomplete-field-error-font-size: 0.875rem; // Font size del mensaje de error
|
|
7
|
+
$lxd-autocomplete-field-error-font-weight: 300; // Font weight del mensaje de error
|
|
8
|
+
$lxd-autocomplete-field-error-line-height: 1.5; // Line height del mensaje de error
|
|
9
|
+
$lxd-autocomplete-field-error-color: #b30000; // Color del mensaje de error
|
|
10
|
+
$lxd-autocomplete-field-helper-font-family: "Google Sans Flex", system-ui, sans-serif; // Font family del texto de ayuda
|
|
11
|
+
$lxd-autocomplete-field-helper-font-size: 0.875rem; // Font size del texto de ayuda
|
|
12
|
+
$lxd-autocomplete-field-helper-font-weight: 300; // Font weight del texto de ayuda
|
|
13
|
+
$lxd-autocomplete-field-helper-line-height: 1.5; // Line height del texto de ayuda
|
|
14
|
+
$lxd-autocomplete-field-helper-color: #111e30; // Color del texto de ayuda
|
|
@@ -28,6 +28,16 @@ html.dark {
|
|
|
28
28
|
--async-select-error-border-color: var(--select-error-border-color);
|
|
29
29
|
--async-select-focus-ring-color: var(--select-focus-ring-color);
|
|
30
30
|
--async-select-placeholder-color: var(--multi-select-placeholder-color);
|
|
31
|
+
--autocomplete-bg: var(--async-select-bg);
|
|
32
|
+
--autocomplete-border-color: var(--async-select-border-color);
|
|
33
|
+
--autocomplete-color: var(--async-select-color);
|
|
34
|
+
--autocomplete-content-bg: var(--async-select-content-bg);
|
|
35
|
+
--autocomplete-content-border-color: var(--async-select-content-border-color);
|
|
36
|
+
--autocomplete-error-border-color: var(--async-select-error-border-color);
|
|
37
|
+
--autocomplete-focus-ring-color: var(--async-select-focus-ring-color);
|
|
38
|
+
--autocomplete-item-highlighted-bg: var(--async-select-item-highlighted-bg);
|
|
39
|
+
--autocomplete-item-highlighted-color: var(--async-select-item-highlighted-color);
|
|
40
|
+
--autocomplete-placeholder-color: var(--async-select-placeholder-color);
|
|
31
41
|
--card-selectable-focus-ring-color: var(--button-primary-focus-ring-color);
|
|
32
42
|
--code-bg: var(--code-block-bg);
|
|
33
43
|
--code-color: var(--code-block-color);
|
|
@@ -60,6 +70,8 @@ html.dark {
|
|
|
60
70
|
--popover-border-color: var(--floating-panel-border-color);
|
|
61
71
|
--user-menu-content-bg: var(--floating-panel-bg);
|
|
62
72
|
--user-menu-content-border-color: var(--floating-panel-border-color);
|
|
73
|
+
--autocomplete-field-error-color: var(--async-select-field-error-color);
|
|
74
|
+
--autocomplete-field-helper-color: var(--async-select-field-helper-color);
|
|
63
75
|
--calendar-year-color: var(--calendar-day-color);
|
|
64
76
|
--calendar-year-current-color: var(--calendar-today-color);
|
|
65
77
|
--calendar-year-selected-bg: var(--calendar-selected-bg);
|
|
@@ -55,6 +55,16 @@ html.dark .surface-invert {
|
|
|
55
55
|
--async-select-item-highlighted-color: var(--select-item-highlighted-color);
|
|
56
56
|
--async-select-placeholder-color: var(--multi-select-placeholder-color);
|
|
57
57
|
--async-select-empty-color: var(--color-text-muted-on-light);
|
|
58
|
+
--autocomplete-bg: var(--async-select-bg);
|
|
59
|
+
--autocomplete-border-color: var(--async-select-border-color);
|
|
60
|
+
--autocomplete-color: var(--async-select-color);
|
|
61
|
+
--autocomplete-content-bg: var(--async-select-content-bg);
|
|
62
|
+
--autocomplete-content-border-color: var(--async-select-content-border-color);
|
|
63
|
+
--autocomplete-error-border-color: var(--async-select-error-border-color);
|
|
64
|
+
--autocomplete-focus-ring-color: var(--async-select-focus-ring-color);
|
|
65
|
+
--autocomplete-item-highlighted-bg: var(--async-select-item-highlighted-bg);
|
|
66
|
+
--autocomplete-item-highlighted-color: var(--async-select-item-highlighted-color);
|
|
67
|
+
--autocomplete-placeholder-color: var(--async-select-placeholder-color);
|
|
58
68
|
--avatar-initials-bg: var(--color-primary);
|
|
59
69
|
--avatar-initials-color: var(--color-text-on-dark);
|
|
60
70
|
--breadcrumb-separator-color: var(--color-text-on-light);
|
|
@@ -382,6 +392,7 @@ html.dark .surface-invert {
|
|
|
382
392
|
--text-inline-muted-color: var(--color-text-muted-on-light);
|
|
383
393
|
--text-inline-destructive-color: var(--color-destructive-text-on-light);
|
|
384
394
|
--text-inline-success-color: var(--color-success-text-on-light);
|
|
395
|
+
--text-inline-strikethrough-color: var(--color-text-muted-on-light);
|
|
385
396
|
--text-color: var(--color-text-on-light);
|
|
386
397
|
--text-background: var(--color-background-light);
|
|
387
398
|
--text-h1-color: var(--text-heading-color);
|
|
@@ -391,6 +402,8 @@ html.dark .surface-invert {
|
|
|
391
402
|
--text-h5-color: var(--text-heading-color);
|
|
392
403
|
--text-h6-color: var(--text-heading-color);
|
|
393
404
|
--text-list-color: var(--text-color);
|
|
405
|
+
--text-list-secondary-color: var(--color-text-muted-on-light);
|
|
406
|
+
--text-list-separator-color: var(--separator-color);
|
|
394
407
|
--textarea-bg: var(--color-white);
|
|
395
408
|
--textarea-color: var(--color-text-on-light);
|
|
396
409
|
--textarea-border-color: var(--color-primary);
|
|
@@ -436,6 +449,8 @@ html.dark .surface-invert {
|
|
|
436
449
|
--async-multi-select-field-helper-color: var(--form-helper-color);
|
|
437
450
|
--async-select-field-error-color: var(--form-error-color);
|
|
438
451
|
--async-select-field-helper-color: var(--form-helper-color);
|
|
452
|
+
--autocomplete-field-error-color: var(--async-select-field-error-color);
|
|
453
|
+
--autocomplete-field-helper-color: var(--async-select-field-helper-color);
|
|
439
454
|
--avatar-upload-ring-color: var(--color-primary);
|
|
440
455
|
--avatar-upload-hint-color: var(--form-helper-color);
|
|
441
456
|
--avatar-upload-error-color: var(--form-error-color);
|
|
@@ -56,6 +56,16 @@ html.dark .surface-light {
|
|
|
56
56
|
--async-select-item-highlighted-color: var(--select-item-highlighted-color);
|
|
57
57
|
--async-select-placeholder-color: var(--multi-select-placeholder-color);
|
|
58
58
|
--async-select-empty-color: var(--color-text-muted-on-light);
|
|
59
|
+
--autocomplete-bg: var(--async-select-bg);
|
|
60
|
+
--autocomplete-border-color: var(--async-select-border-color);
|
|
61
|
+
--autocomplete-color: var(--async-select-color);
|
|
62
|
+
--autocomplete-content-bg: var(--async-select-content-bg);
|
|
63
|
+
--autocomplete-content-border-color: var(--async-select-content-border-color);
|
|
64
|
+
--autocomplete-error-border-color: var(--async-select-error-border-color);
|
|
65
|
+
--autocomplete-focus-ring-color: var(--async-select-focus-ring-color);
|
|
66
|
+
--autocomplete-item-highlighted-bg: var(--async-select-item-highlighted-bg);
|
|
67
|
+
--autocomplete-item-highlighted-color: var(--async-select-item-highlighted-color);
|
|
68
|
+
--autocomplete-placeholder-color: var(--async-select-placeholder-color);
|
|
59
69
|
--avatar-initials-bg: var(--color-primary);
|
|
60
70
|
--avatar-initials-color: var(--color-text-on-dark);
|
|
61
71
|
--breadcrumb-separator-color: var(--color-text-on-light);
|
|
@@ -383,6 +393,7 @@ html.dark .surface-light {
|
|
|
383
393
|
--text-inline-muted-color: var(--color-text-muted-on-light);
|
|
384
394
|
--text-inline-destructive-color: var(--color-destructive-text-on-light);
|
|
385
395
|
--text-inline-success-color: var(--color-success-text-on-light);
|
|
396
|
+
--text-inline-strikethrough-color: var(--color-text-muted-on-light);
|
|
386
397
|
--text-color: var(--color-text-on-light);
|
|
387
398
|
--text-background: var(--color-background-light);
|
|
388
399
|
--text-h1-color: var(--text-heading-color);
|
|
@@ -392,6 +403,8 @@ html.dark .surface-light {
|
|
|
392
403
|
--text-h5-color: var(--text-heading-color);
|
|
393
404
|
--text-h6-color: var(--text-heading-color);
|
|
394
405
|
--text-list-color: var(--text-color);
|
|
406
|
+
--text-list-secondary-color: var(--color-text-muted-on-light);
|
|
407
|
+
--text-list-separator-color: var(--separator-color);
|
|
395
408
|
--textarea-bg: var(--color-white);
|
|
396
409
|
--textarea-color: var(--color-text-on-light);
|
|
397
410
|
--textarea-border-color: var(--color-primary);
|
|
@@ -437,6 +450,8 @@ html.dark .surface-light {
|
|
|
437
450
|
--async-multi-select-field-helper-color: var(--form-helper-color);
|
|
438
451
|
--async-select-field-error-color: var(--form-error-color);
|
|
439
452
|
--async-select-field-helper-color: var(--form-helper-color);
|
|
453
|
+
--autocomplete-field-error-color: var(--async-select-field-error-color);
|
|
454
|
+
--autocomplete-field-helper-color: var(--async-select-field-helper-color);
|
|
440
455
|
--avatar-upload-ring-color: var(--color-primary);
|
|
441
456
|
--avatar-upload-hint-color: var(--form-helper-color);
|
|
442
457
|
--avatar-upload-error-color: var(--form-error-color);
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
--async-select-height: var(--async-select-lg-height);
|
|
17
17
|
--async-select-item-padding-block: var(--async-select-lg-item-padding-block);
|
|
18
18
|
--async-select-padding-inline: var(--async-select-lg-padding-inline);
|
|
19
|
+
--autocomplete-font-size: var(--autocomplete-lg-font-size);
|
|
20
|
+
--autocomplete-height: var(--autocomplete-lg-height);
|
|
21
|
+
--autocomplete-item-padding-block: var(--autocomplete-lg-item-padding-block);
|
|
22
|
+
--autocomplete-padding-inline: var(--autocomplete-lg-padding-inline);
|
|
19
23
|
--button-height: var(--button-lg-height);
|
|
20
24
|
--button-padding-inline: var(--button-lg-padding-inline);
|
|
21
25
|
--button-font-size: var(--button-lg-font-size);
|
|
@@ -177,12 +181,15 @@
|
|
|
177
181
|
--text-h6-font-size: var(--text-size-3);
|
|
178
182
|
--text-list-font-size: var(--text-font-size);
|
|
179
183
|
--text-list-line-height: var(--text-line-height);
|
|
184
|
+
--text-list-secondary-font-size: var(--text-paragraph-small-font-size);
|
|
180
185
|
--assistant-message-model-font-size: var(--text-paragraph-small-font-size);
|
|
181
186
|
--assistant-message-timestamp-font-size: var(--text-paragraph-small-font-size);
|
|
182
187
|
--async-multi-select-field-error-font-size: var(--form-error-font-size);
|
|
183
188
|
--async-multi-select-field-helper-font-size: var(--form-helper-font-size);
|
|
184
189
|
--async-select-field-error-font-size: var(--form-error-font-size);
|
|
185
190
|
--async-select-field-helper-font-size: var(--form-helper-font-size);
|
|
191
|
+
--autocomplete-field-error-font-size: var(--async-select-field-error-font-size);
|
|
192
|
+
--autocomplete-field-helper-font-size: var(--async-select-field-helper-font-size);
|
|
186
193
|
--avatar-upload-hint-font-size: var(--form-helper-font-size);
|
|
187
194
|
--avatar-upload-error-font-size: var(--form-error-font-size);
|
|
188
195
|
--banner-font-size: var(--text-font-size);
|
package/src/tokens/tokens.json
CHANGED
|
@@ -314,6 +314,40 @@
|
|
|
314
314
|
"--async-select-empty-font-family": "\"Google Sans Flex\", system-ui, sans-serif",
|
|
315
315
|
"--async-select-empty-font-size": "1rem",
|
|
316
316
|
"--async-select-empty-color": "#4a4a4a",
|
|
317
|
+
"--autocomplete-bg": "#ffffff",
|
|
318
|
+
"--autocomplete-border-color": "#111e30",
|
|
319
|
+
"--autocomplete-border-radius": "0px",
|
|
320
|
+
"--autocomplete-border-style": "solid",
|
|
321
|
+
"--autocomplete-border-width": "1px",
|
|
322
|
+
"--autocomplete-disabled-cursor": "not-allowed",
|
|
323
|
+
"--autocomplete-color": "#111e30",
|
|
324
|
+
"--autocomplete-content-bg": "#ffffff",
|
|
325
|
+
"--autocomplete-content-border-color": "#111e30",
|
|
326
|
+
"--autocomplete-content-gap": "0.5rem",
|
|
327
|
+
"--autocomplete-content-z-index": "400",
|
|
328
|
+
"--autocomplete-content-max-height": "var(--available-height)",
|
|
329
|
+
"--autocomplete-error-border-color": "#b30000",
|
|
330
|
+
"--autocomplete-focus-ring-color": "#111e30",
|
|
331
|
+
"--autocomplete-focus-ring-width": "2px",
|
|
332
|
+
"--autocomplete-font-family": "\"Google Sans Flex\", system-ui, sans-serif",
|
|
333
|
+
"--autocomplete-font-size": "1rem",
|
|
334
|
+
"--autocomplete-font-weight": "300",
|
|
335
|
+
"--autocomplete-height": "2.5rem",
|
|
336
|
+
"--autocomplete-item-highlighted-bg": "#111e30",
|
|
337
|
+
"--autocomplete-item-highlighted-color": "#ffffff",
|
|
338
|
+
"--autocomplete-item-padding-block": "0.5rem",
|
|
339
|
+
"--autocomplete-lg-font-size": "1.25rem",
|
|
340
|
+
"--autocomplete-lg-height": "3rem",
|
|
341
|
+
"--autocomplete-lg-item-padding-block": "0.75rem",
|
|
342
|
+
"--autocomplete-lg-padding-inline": "1.5rem",
|
|
343
|
+
"--autocomplete-line-height": "1",
|
|
344
|
+
"--autocomplete-padding-inline": "1rem",
|
|
345
|
+
"--autocomplete-placeholder-color": "#4a4a4a",
|
|
346
|
+
"--autocomplete-sm-font-size": "0.875rem",
|
|
347
|
+
"--autocomplete-sm-height": "2rem",
|
|
348
|
+
"--autocomplete-sm-item-padding-block": "0.25rem",
|
|
349
|
+
"--autocomplete-sm-padding-inline": "0.5rem",
|
|
350
|
+
"--autocomplete-item-selected-font-weight": "500",
|
|
317
351
|
"--avatar-size-sm": "2rem",
|
|
318
352
|
"--avatar-size-md": "2.5rem",
|
|
319
353
|
"--avatar-size-lg": "3rem",
|
|
@@ -1282,6 +1316,11 @@
|
|
|
1282
1316
|
"--number-input-lg-font-size": "1.25rem",
|
|
1283
1317
|
"--number-input-lg-height": "3rem",
|
|
1284
1318
|
"--number-input-lg-padding-inline": "1.5rem",
|
|
1319
|
+
"--number-input-compact-height": "2rem",
|
|
1320
|
+
"--number-input-compact-font-size": "0.875rem",
|
|
1321
|
+
"--number-input-compact-btn-width": "1.5rem",
|
|
1322
|
+
"--number-input-compact-field-width": "2.5rem",
|
|
1323
|
+
"--number-input-compact-padding-inline": "0.25rem",
|
|
1285
1324
|
"--org-switcher-trigger-padding-block": "0.5rem",
|
|
1286
1325
|
"--org-switcher-trigger-padding-inline": "0.75rem",
|
|
1287
1326
|
"--org-switcher-trigger-gap": "0.75rem",
|
|
@@ -1833,6 +1872,8 @@
|
|
|
1833
1872
|
"--text-inline-muted-color": "#4a4a4a",
|
|
1834
1873
|
"--text-inline-destructive-color": "#b30000",
|
|
1835
1874
|
"--text-inline-success-color": "#006616",
|
|
1875
|
+
"--text-inline-strikethrough-color": "#4a4a4a",
|
|
1876
|
+
"--text-inline-strikethrough-thickness": "1px",
|
|
1836
1877
|
"--text-font-family": "\"Google Sans Flex\", system-ui, sans-serif",
|
|
1837
1878
|
"--text-font-size": "1rem",
|
|
1838
1879
|
"--text-font-weight": "300",
|
|
@@ -1903,6 +1944,13 @@
|
|
|
1903
1944
|
"--text-list-letter-spacing": "0em",
|
|
1904
1945
|
"--text-list-gap": "0.5rem",
|
|
1905
1946
|
"--text-list-padding-inline-start": "2rem",
|
|
1947
|
+
"--text-list-item-gap": "0.75rem",
|
|
1948
|
+
"--text-list-secondary-font-size": "0.875rem",
|
|
1949
|
+
"--text-list-secondary-line-height": "1.65",
|
|
1950
|
+
"--text-list-secondary-color": "#4a4a4a",
|
|
1951
|
+
"--text-list-separator-color": "#111e30",
|
|
1952
|
+
"--text-list-separator-thickness": "1px",
|
|
1953
|
+
"--text-list-separator-spacing": "0.5rem",
|
|
1906
1954
|
"--textarea-border-radius": "0px",
|
|
1907
1955
|
"--textarea-border-width": "1px",
|
|
1908
1956
|
"--textarea-border-style": "solid",
|
|
@@ -2116,6 +2164,17 @@
|
|
|
2116
2164
|
"--async-select-field-helper-font-weight": "300",
|
|
2117
2165
|
"--async-select-field-helper-line-height": "1.5",
|
|
2118
2166
|
"--async-select-field-helper-color": "#111e30",
|
|
2167
|
+
"--autocomplete-field-gap": "0.5rem",
|
|
2168
|
+
"--autocomplete-field-error-font-family": "\"Google Sans Flex\", system-ui, sans-serif",
|
|
2169
|
+
"--autocomplete-field-error-font-size": "0.875rem",
|
|
2170
|
+
"--autocomplete-field-error-font-weight": "300",
|
|
2171
|
+
"--autocomplete-field-error-line-height": "1.5",
|
|
2172
|
+
"--autocomplete-field-error-color": "#b30000",
|
|
2173
|
+
"--autocomplete-field-helper-font-family": "\"Google Sans Flex\", system-ui, sans-serif",
|
|
2174
|
+
"--autocomplete-field-helper-font-size": "0.875rem",
|
|
2175
|
+
"--autocomplete-field-helper-font-weight": "300",
|
|
2176
|
+
"--autocomplete-field-helper-line-height": "1.5",
|
|
2177
|
+
"--autocomplete-field-helper-color": "#111e30",
|
|
2119
2178
|
"--avatar-upload-gap": "1rem",
|
|
2120
2179
|
"--avatar-upload-body-gap": "0.5rem",
|
|
2121
2180
|
"--avatar-upload-ring-width": "2px",
|