@octavius2929-personal/design-system 0.23.0 → 0.23.2
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/index.cjs +21 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +21 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -293,7 +293,13 @@ var tokens = {
|
|
|
293
293
|
// Roles tipográficos: tamaño/interlineado/peso/tracking listos para typography.css.ts.
|
|
294
294
|
text: {
|
|
295
295
|
eyebrow: { size: "0.694rem", lineHeight: "1.2", weight: "500", letterSpacing: "0.14em" },
|
|
296
|
-
|
|
296
|
+
// Escala fluida: ~43px en 375px (entra en móvil), cotea en 5.6rem (≈90px) desde ~1200px.
|
|
297
|
+
display: {
|
|
298
|
+
size: "clamp(2.75rem, 1.4rem + 5.6vw, 5.6rem)",
|
|
299
|
+
lineHeight: "1.05",
|
|
300
|
+
weight: "600",
|
|
301
|
+
letterSpacing: "-0.01em"
|
|
302
|
+
},
|
|
297
303
|
h1: { size: "2.9rem", lineHeight: "1.05", weight: "600", letterSpacing: "-0.01em" },
|
|
298
304
|
h2: { size: "2.1rem", lineHeight: "1.2", weight: "600", letterSpacing: "0" },
|
|
299
305
|
h3: { size: "1.563rem", lineHeight: "1.2", weight: "500", letterSpacing: "0" },
|
|
@@ -2003,7 +2009,17 @@ function useStyles18({
|
|
|
2003
2009
|
|
|
2004
2010
|
// src/components/select/index.tsx
|
|
2005
2011
|
var import_jsx_runtime31 = require("react/jsx-runtime");
|
|
2006
|
-
var Select = (0, import_react43.forwardRef)(function Select2({
|
|
2012
|
+
var Select = (0, import_react43.forwardRef)(function Select2({
|
|
2013
|
+
options,
|
|
2014
|
+
value,
|
|
2015
|
+
onChange,
|
|
2016
|
+
placeholder: placeholder2,
|
|
2017
|
+
label: label7,
|
|
2018
|
+
disabled: disabled3,
|
|
2019
|
+
"aria-label": ariaLabel,
|
|
2020
|
+
"aria-labelledby": ariaLabelledBy,
|
|
2021
|
+
...rest
|
|
2022
|
+
}, ref) {
|
|
2007
2023
|
const [open, setOpen] = (0, import_react43.useState)(false);
|
|
2008
2024
|
const [activeIndex, setActiveIndex] = (0, import_react43.useState)(0);
|
|
2009
2025
|
const rootRef = (0, import_react43.useRef)(null);
|
|
@@ -2015,6 +2031,7 @@ var Select = (0, import_react43.forwardRef)(function Select2({ options, value, o
|
|
|
2015
2031
|
const baseId = (0, import_react43.useId)();
|
|
2016
2032
|
const labelId = `${baseId}-label`;
|
|
2017
2033
|
const optionId = (index) => `${baseId}-option-${index}`;
|
|
2034
|
+
const triggerLabelledBy = [label7 ? labelId : null, ariaLabelledBy].filter(Boolean).join(" ") || void 0;
|
|
2018
2035
|
const {
|
|
2019
2036
|
root: root24,
|
|
2020
2037
|
label: labelClass,
|
|
@@ -2094,7 +2111,8 @@ var Select = (0, import_react43.forwardRef)(function Select2({ options, value, o
|
|
|
2094
2111
|
disabled: disabled3,
|
|
2095
2112
|
"aria-haspopup": "listbox",
|
|
2096
2113
|
"aria-expanded": open,
|
|
2097
|
-
"aria-
|
|
2114
|
+
"aria-label": ariaLabel,
|
|
2115
|
+
"aria-labelledby": triggerLabelledBy,
|
|
2098
2116
|
"aria-activedescendant": open ? optionId(activeIndex) : void 0,
|
|
2099
2117
|
onClick: () => {
|
|
2100
2118
|
if (disabled3) return;
|