@octavius2929-personal/design-system 0.11.0 → 0.13.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/index.cjs +491 -391
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +174 -123
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +42 -5
- package/dist/index.d.ts +42 -5
- package/dist/index.js +369 -271
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// src/theme/theme.css.ts
|
|
2
|
-
var colorVars = { bg1: "var(--bg1__e3grur28)", bg2: "var(--bg2__e3grur29)", bg3: "var(--bg3__e3grur2a)", bgInset: "var(--bgInset__e3grur2b)", fg1: "var(--fg1__e3grur2c)", fg2: "var(--fg2__e3grur2d)", fg3: "var(--fg3__e3grur2e)", fgOnAccent: "var(--fgOnAccent__e3grur2f)", border1: "var(--border1__e3grur2g)", border2: "var(--border2__e3grur2h)", borderStrong: "var(--borderStrong__e3grur2i)", accent: "var(--accent__e3grur2j)", accentHover: "var(--accentHover__e3grur2k)", accentSoft: "var(--accentSoft__e3grur2l)", ok: "var(--ok__e3grur2m)", warn: "var(--warn__e3grur2n)", danger: "var(--danger__e3grur2o)", info: "var(--
|
|
2
|
+
var colorVars = { bg1: "var(--bg1__e3grur28)", bg2: "var(--bg2__e3grur29)", bg3: "var(--bg3__e3grur2a)", bgInset: "var(--bgInset__e3grur2b)", fg1: "var(--fg1__e3grur2c)", fg2: "var(--fg2__e3grur2d)", fg3: "var(--fg3__e3grur2e)", fgOnAccent: "var(--fgOnAccent__e3grur2f)", border1: "var(--border1__e3grur2g)", border2: "var(--border2__e3grur2h)", borderStrong: "var(--borderStrong__e3grur2i)", accent: "var(--accent__e3grur2j)", accentHover: "var(--accentHover__e3grur2k)", accentSoft: "var(--accentSoft__e3grur2l)", ok: "var(--ok__e3grur2m)", warn: "var(--warn__e3grur2n)", danger: "var(--danger__e3grur2o)", dangerHover: "var(--dangerHover__e3grur2p)", dangerSoft: "var(--dangerSoft__e3grur2q)", info: "var(--info__e3grur2r)", focus: "var(--focus__e3grur2s)", scrim: "var(--scrim__e3grur2t)" };
|
|
3
3
|
var modeNames = ["light", "dark", "sepia", "contrast"];
|
|
4
4
|
var schemaNames = ["tinta"];
|
|
5
|
-
var themes = { tinta: { light: "
|
|
5
|
+
var themes = { tinta: { light: "theme_themes_tinta_light__e3grur2u", dark: "theme_themes_tinta_dark__e3grur2v", sepia: "theme_themes_tinta_sepia__e3grur2w", contrast: "theme_themes_tinta_contrast__e3grur2x" } };
|
|
6
6
|
var vars = { font: { display: "var(--font-display__e3grur0)", text: "var(--font-text__e3grur1)", mono: "var(--font-mono__e3grur2)", black: "var(--font-black__e3grur3)" }, text: { eyebrow: { size: "var(--text-eyebrow-size__e3grur4)", lineHeight: "var(--text-eyebrow-lineHeight__e3grur5)", weight: "var(--text-eyebrow-weight__e3grur6)", letterSpacing: "var(--text-eyebrow-letterSpacing__e3grur7)" }, display: { size: "var(--text-display-size__e3grur8)", lineHeight: "var(--text-display-lineHeight__e3grur9)", weight: "var(--text-display-weight__e3grura)", letterSpacing: "var(--text-display-letterSpacing__e3grurb)" }, h1: { size: "var(--text-h1-size__e3grurc)", lineHeight: "var(--text-h1-lineHeight__e3grurd)", weight: "var(--text-h1-weight__e3grure)", letterSpacing: "var(--text-h1-letterSpacing__e3grurf)" }, h2: { size: "var(--text-h2-size__e3grurg)", lineHeight: "var(--text-h2-lineHeight__e3grurh)", weight: "var(--text-h2-weight__e3gruri)", letterSpacing: "var(--text-h2-letterSpacing__e3grurj)" }, h3: { size: "var(--text-h3-size__e3grurk)", lineHeight: "var(--text-h3-lineHeight__e3grurl)", weight: "var(--text-h3-weight__e3grurm)", letterSpacing: "var(--text-h3-letterSpacing__e3grurn)" }, h4: { size: "var(--text-h4-size__e3gruro)", lineHeight: "var(--text-h4-lineHeight__e3grurp)", weight: "var(--text-h4-weight__e3grurq)", letterSpacing: "var(--text-h4-letterSpacing__e3grurr)" }, body: { size: "var(--text-body-size__e3grurs)", lineHeight: "var(--text-body-lineHeight__e3grurt)", weight: "var(--text-body-weight__e3gruru)", letterSpacing: "var(--text-body-letterSpacing__e3grurv)" }, lead: { size: "var(--text-lead-size__e3grurw)", lineHeight: "var(--text-lead-lineHeight__e3grurx)", weight: "var(--text-lead-weight__e3grury)", letterSpacing: "var(--text-lead-letterSpacing__e3grurz)" }, small: { size: "var(--text-small-size__e3grur10)", lineHeight: "var(--text-small-lineHeight__e3grur11)", weight: "var(--text-small-weight__e3grur12)", letterSpacing: "var(--text-small-letterSpacing__e3grur13)" }, caption: { size: "var(--text-caption-size__e3grur14)", lineHeight: "var(--text-caption-lineHeight__e3grur15)", weight: "var(--text-caption-weight__e3grur16)", letterSpacing: "var(--text-caption-letterSpacing__e3grur17)" } }, space: { s0: "var(--space-s0__e3grur18)", s1: "var(--space-s1__e3grur19)", s2: "var(--space-s2__e3grur1a)", s3: "var(--space-s3__e3grur1b)", s4: "var(--space-s4__e3grur1c)", s5: "var(--space-s5__e3grur1d)", s6: "var(--space-s6__e3grur1e)", s7: "var(--space-s7__e3grur1f)", s8: "var(--space-s8__e3grur1g)", s9: "var(--space-s9__e3grur1h)" }, radius: { none: "var(--radius-none__e3grur1i)", sm: "var(--radius-sm__e3grur1j)", md: "var(--radius-md__e3grur1k)", lg: "var(--radius-lg__e3grur1l)", base: "var(--radius-base__e3grur1m)", full: "var(--radius-full__e3grur1n)" }, border: { hair: "var(--border-hair__e3grur1o)", rule: "var(--border-rule__e3grur1p)", heavy: "var(--border-heavy__e3grur1q)" }, tracking: { tight: "var(--tracking-tight__e3grur1r)", normal: "var(--tracking-normal__e3grur1s)", wide: "var(--tracking-wide__e3grur1t)", wider: "var(--tracking-wider__e3grur1u)", widest: "var(--tracking-widest__e3grur1v)" }, weight: { light: "var(--weight-light__e3grur1w)", regular: "var(--weight-regular__e3grur1x)", medium: "var(--weight-medium__e3grur1y)", semibold: "var(--weight-semibold__e3grur1z)", bold: "var(--weight-bold__e3grur20)" }, dur: { fast: "var(--dur-fast__e3grur21)", base: "var(--dur-base__e3grur22)", slow: "var(--dur-slow__e3grur23)" }, ease: { ink: "var(--ease-ink__e3grur24)" }, shadow: { sm: "var(--shadow-sm__e3grur25)", md: "var(--shadow-md__e3grur26)", lg: "var(--shadow-lg__e3grur27)" }, color: colorVars };
|
|
7
7
|
|
|
8
8
|
// src/hooks/use-previous/index.ts
|
|
@@ -28,7 +28,7 @@ import { forwardRef } from "react";
|
|
|
28
28
|
|
|
29
29
|
// src/theme/styles/sprinkles/index.css.ts
|
|
30
30
|
import { createSprinkles as _ad221 } from "@vanilla-extract/sprinkles/createRuntimeSprinkles";
|
|
31
|
-
var sprinkles = _ad221({ conditions: void 0, styles: { p: { mappings: ["padding"] }, px: { mappings: ["paddingLeft", "paddingRight"] }, py: { mappings: ["paddingTop", "paddingBottom"] }, pt: { mappings: ["paddingTop"] }, pr: { mappings: ["paddingRight"] }, pb: { mappings: ["paddingBottom"] }, pl: { mappings: ["paddingLeft"] }, m: { mappings: ["marginTop", "marginRight", "marginBottom", "marginLeft"] }, mx: { mappings: ["marginLeft", "marginRight"] }, my: { mappings: ["marginTop", "marginBottom"] }, mt: { mappings: ["marginTop"] }, mr: { mappings: ["marginRight"] }, mb: { mappings: ["marginBottom"] }, ml: { mappings: ["marginLeft"] }, bg: { mappings: ["background"] }, radius: { mappings: ["borderRadius"] }, padding: { values: { s0: { defaultClass: "sprinkles_padding_s0__qhecrd0" }, s1: { defaultClass: "sprinkles_padding_s1__qhecrd1" }, s2: { defaultClass: "sprinkles_padding_s2__qhecrd2" }, s3: { defaultClass: "sprinkles_padding_s3__qhecrd3" }, s4: { defaultClass: "sprinkles_padding_s4__qhecrd4" }, s5: { defaultClass: "sprinkles_padding_s5__qhecrd5" }, s6: { defaultClass: "sprinkles_padding_s6__qhecrd6" }, s7: { defaultClass: "sprinkles_padding_s7__qhecrd7" }, s8: { defaultClass: "sprinkles_padding_s8__qhecrd8" }, s9: { defaultClass: "sprinkles_padding_s9__qhecrd9" } } }, paddingTop: { values: { s0: { defaultClass: "sprinkles_paddingTop_s0__qhecrda" }, s1: { defaultClass: "sprinkles_paddingTop_s1__qhecrdb" }, s2: { defaultClass: "sprinkles_paddingTop_s2__qhecrdc" }, s3: { defaultClass: "sprinkles_paddingTop_s3__qhecrdd" }, s4: { defaultClass: "sprinkles_paddingTop_s4__qhecrde" }, s5: { defaultClass: "sprinkles_paddingTop_s5__qhecrdf" }, s6: { defaultClass: "sprinkles_paddingTop_s6__qhecrdg" }, s7: { defaultClass: "sprinkles_paddingTop_s7__qhecrdh" }, s8: { defaultClass: "sprinkles_paddingTop_s8__qhecrdi" }, s9: { defaultClass: "sprinkles_paddingTop_s9__qhecrdj" } } }, paddingRight: { values: { s0: { defaultClass: "sprinkles_paddingRight_s0__qhecrdk" }, s1: { defaultClass: "sprinkles_paddingRight_s1__qhecrdl" }, s2: { defaultClass: "sprinkles_paddingRight_s2__qhecrdm" }, s3: { defaultClass: "sprinkles_paddingRight_s3__qhecrdn" }, s4: { defaultClass: "sprinkles_paddingRight_s4__qhecrdo" }, s5: { defaultClass: "sprinkles_paddingRight_s5__qhecrdp" }, s6: { defaultClass: "sprinkles_paddingRight_s6__qhecrdq" }, s7: { defaultClass: "sprinkles_paddingRight_s7__qhecrdr" }, s8: { defaultClass: "sprinkles_paddingRight_s8__qhecrds" }, s9: { defaultClass: "sprinkles_paddingRight_s9__qhecrdt" } } }, paddingBottom: { values: { s0: { defaultClass: "sprinkles_paddingBottom_s0__qhecrdu" }, s1: { defaultClass: "sprinkles_paddingBottom_s1__qhecrdv" }, s2: { defaultClass: "sprinkles_paddingBottom_s2__qhecrdw" }, s3: { defaultClass: "sprinkles_paddingBottom_s3__qhecrdx" }, s4: { defaultClass: "sprinkles_paddingBottom_s4__qhecrdy" }, s5: { defaultClass: "sprinkles_paddingBottom_s5__qhecrdz" }, s6: { defaultClass: "sprinkles_paddingBottom_s6__qhecrd10" }, s7: { defaultClass: "sprinkles_paddingBottom_s7__qhecrd11" }, s8: { defaultClass: "sprinkles_paddingBottom_s8__qhecrd12" }, s9: { defaultClass: "sprinkles_paddingBottom_s9__qhecrd13" } } }, paddingLeft: { values: { s0: { defaultClass: "sprinkles_paddingLeft_s0__qhecrd14" }, s1: { defaultClass: "sprinkles_paddingLeft_s1__qhecrd15" }, s2: { defaultClass: "sprinkles_paddingLeft_s2__qhecrd16" }, s3: { defaultClass: "sprinkles_paddingLeft_s3__qhecrd17" }, s4: { defaultClass: "sprinkles_paddingLeft_s4__qhecrd18" }, s5: { defaultClass: "sprinkles_paddingLeft_s5__qhecrd19" }, s6: { defaultClass: "sprinkles_paddingLeft_s6__qhecrd1a" }, s7: { defaultClass: "sprinkles_paddingLeft_s7__qhecrd1b" }, s8: { defaultClass: "sprinkles_paddingLeft_s8__qhecrd1c" }, s9: { defaultClass: "sprinkles_paddingLeft_s9__qhecrd1d" } } }, marginTop: { values: { s0: { defaultClass: "sprinkles_marginTop_s0__qhecrd1e" }, s1: { defaultClass: "sprinkles_marginTop_s1__qhecrd1f" }, s2: { defaultClass: "sprinkles_marginTop_s2__qhecrd1g" }, s3: { defaultClass: "sprinkles_marginTop_s3__qhecrd1h" }, s4: { defaultClass: "sprinkles_marginTop_s4__qhecrd1i" }, s5: { defaultClass: "sprinkles_marginTop_s5__qhecrd1j" }, s6: { defaultClass: "sprinkles_marginTop_s6__qhecrd1k" }, s7: { defaultClass: "sprinkles_marginTop_s7__qhecrd1l" }, s8: { defaultClass: "sprinkles_marginTop_s8__qhecrd1m" }, s9: { defaultClass: "sprinkles_marginTop_s9__qhecrd1n" } } }, marginRight: { values: { s0: { defaultClass: "sprinkles_marginRight_s0__qhecrd1o" }, s1: { defaultClass: "sprinkles_marginRight_s1__qhecrd1p" }, s2: { defaultClass: "sprinkles_marginRight_s2__qhecrd1q" }, s3: { defaultClass: "sprinkles_marginRight_s3__qhecrd1r" }, s4: { defaultClass: "sprinkles_marginRight_s4__qhecrd1s" }, s5: { defaultClass: "sprinkles_marginRight_s5__qhecrd1t" }, s6: { defaultClass: "sprinkles_marginRight_s6__qhecrd1u" }, s7: { defaultClass: "sprinkles_marginRight_s7__qhecrd1v" }, s8: { defaultClass: "sprinkles_marginRight_s8__qhecrd1w" }, s9: { defaultClass: "sprinkles_marginRight_s9__qhecrd1x" } } }, marginBottom: { values: { s0: { defaultClass: "sprinkles_marginBottom_s0__qhecrd1y" }, s1: { defaultClass: "sprinkles_marginBottom_s1__qhecrd1z" }, s2: { defaultClass: "sprinkles_marginBottom_s2__qhecrd20" }, s3: { defaultClass: "sprinkles_marginBottom_s3__qhecrd21" }, s4: { defaultClass: "sprinkles_marginBottom_s4__qhecrd22" }, s5: { defaultClass: "sprinkles_marginBottom_s5__qhecrd23" }, s6: { defaultClass: "sprinkles_marginBottom_s6__qhecrd24" }, s7: { defaultClass: "sprinkles_marginBottom_s7__qhecrd25" }, s8: { defaultClass: "sprinkles_marginBottom_s8__qhecrd26" }, s9: { defaultClass: "sprinkles_marginBottom_s9__qhecrd27" } } }, marginLeft: { values: { s0: { defaultClass: "sprinkles_marginLeft_s0__qhecrd28" }, s1: { defaultClass: "sprinkles_marginLeft_s1__qhecrd29" }, s2: { defaultClass: "sprinkles_marginLeft_s2__qhecrd2a" }, s3: { defaultClass: "sprinkles_marginLeft_s3__qhecrd2b" }, s4: { defaultClass: "sprinkles_marginLeft_s4__qhecrd2c" }, s5: { defaultClass: "sprinkles_marginLeft_s5__qhecrd2d" }, s6: { defaultClass: "sprinkles_marginLeft_s6__qhecrd2e" }, s7: { defaultClass: "sprinkles_marginLeft_s7__qhecrd2f" }, s8: { defaultClass: "sprinkles_marginLeft_s8__qhecrd2g" }, s9: { defaultClass: "sprinkles_marginLeft_s9__qhecrd2h" } } }, gap: { values: { s0: { defaultClass: "sprinkles_gap_s0__qhecrd2i" }, s1: { defaultClass: "sprinkles_gap_s1__qhecrd2j" }, s2: { defaultClass: "sprinkles_gap_s2__qhecrd2k" }, s3: { defaultClass: "sprinkles_gap_s3__qhecrd2l" }, s4: { defaultClass: "sprinkles_gap_s4__qhecrd2m" }, s5: { defaultClass: "sprinkles_gap_s5__qhecrd2n" }, s6: { defaultClass: "sprinkles_gap_s6__qhecrd2o" }, s7: { defaultClass: "sprinkles_gap_s7__qhecrd2p" }, s8: { defaultClass: "sprinkles_gap_s8__qhecrd2q" }, s9: { defaultClass: "sprinkles_gap_s9__qhecrd2r" } } }, rowGap: { values: { s0: { defaultClass: "sprinkles_rowGap_s0__qhecrd2s" }, s1: { defaultClass: "sprinkles_rowGap_s1__qhecrd2t" }, s2: { defaultClass: "sprinkles_rowGap_s2__qhecrd2u" }, s3: { defaultClass: "sprinkles_rowGap_s3__qhecrd2v" }, s4: { defaultClass: "sprinkles_rowGap_s4__qhecrd2w" }, s5: { defaultClass: "sprinkles_rowGap_s5__qhecrd2x" }, s6: { defaultClass: "sprinkles_rowGap_s6__qhecrd2y" }, s7: { defaultClass: "sprinkles_rowGap_s7__qhecrd2z" }, s8: { defaultClass: "sprinkles_rowGap_s8__qhecrd30" }, s9: { defaultClass: "sprinkles_rowGap_s9__qhecrd31" } } }, columnGap: { values: { s0: { defaultClass: "sprinkles_columnGap_s0__qhecrd32" }, s1: { defaultClass: "sprinkles_columnGap_s1__qhecrd33" }, s2: { defaultClass: "sprinkles_columnGap_s2__qhecrd34" }, s3: { defaultClass: "sprinkles_columnGap_s3__qhecrd35" }, s4: { defaultClass: "sprinkles_columnGap_s4__qhecrd36" }, s5: { defaultClass: "sprinkles_columnGap_s5__qhecrd37" }, s6: { defaultClass: "sprinkles_columnGap_s6__qhecrd38" }, s7: { defaultClass: "sprinkles_columnGap_s7__qhecrd39" }, s8: { defaultClass: "sprinkles_columnGap_s8__qhecrd3a" }, s9: { defaultClass: "sprinkles_columnGap_s9__qhecrd3b" } } }, background: { values: { bg1: { defaultClass: "sprinkles_background_bg1__qhecrd3c" }, bg2: { defaultClass: "sprinkles_background_bg2__qhecrd3d" }, bg3: { defaultClass: "sprinkles_background_bg3__qhecrd3e" }, bgInset: { defaultClass: "sprinkles_background_bgInset__qhecrd3f" }, fg1: { defaultClass: "sprinkles_background_fg1__qhecrd3g" }, fg2: { defaultClass: "sprinkles_background_fg2__qhecrd3h" }, fg3: { defaultClass: "sprinkles_background_fg3__qhecrd3i" }, fgOnAccent: { defaultClass: "sprinkles_background_fgOnAccent__qhecrd3j" }, border1: { defaultClass: "sprinkles_background_border1__qhecrd3k" }, border2: { defaultClass: "sprinkles_background_border2__qhecrd3l" }, borderStrong: { defaultClass: "sprinkles_background_borderStrong__qhecrd3m" }, accent: { defaultClass: "sprinkles_background_accent__qhecrd3n" }, accentHover: { defaultClass: "sprinkles_background_accentHover__qhecrd3o" }, accentSoft: { defaultClass: "sprinkles_background_accentSoft__qhecrd3p" }, ok: { defaultClass: "sprinkles_background_ok__qhecrd3q" }, warn: { defaultClass: "sprinkles_background_warn__qhecrd3r" }, danger: { defaultClass: "sprinkles_background_danger__qhecrd3s" }, info: { defaultClass: "sprinkles_background_info__qhecrd3t" }, focus: { defaultClass: "sprinkles_background_focus__qhecrd3u" }, scrim: { defaultClass: "sprinkles_background_scrim__qhecrd3v" } } }, color: { values: { bg1: { defaultClass: "sprinkles_color_bg1__qhecrd3w" }, bg2: { defaultClass: "sprinkles_color_bg2__qhecrd3x" }, bg3: { defaultClass: "sprinkles_color_bg3__qhecrd3y" }, bgInset: { defaultClass: "sprinkles_color_bgInset__qhecrd3z" }, fg1: { defaultClass: "sprinkles_color_fg1__qhecrd40" }, fg2: { defaultClass: "sprinkles_color_fg2__qhecrd41" }, fg3: { defaultClass: "sprinkles_color_fg3__qhecrd42" }, fgOnAccent: { defaultClass: "sprinkles_color_fgOnAccent__qhecrd43" }, border1: { defaultClass: "sprinkles_color_border1__qhecrd44" }, border2: { defaultClass: "sprinkles_color_border2__qhecrd45" }, borderStrong: { defaultClass: "sprinkles_color_borderStrong__qhecrd46" }, accent: { defaultClass: "sprinkles_color_accent__qhecrd47" }, accentHover: { defaultClass: "sprinkles_color_accentHover__qhecrd48" }, accentSoft: { defaultClass: "sprinkles_color_accentSoft__qhecrd49" }, ok: { defaultClass: "sprinkles_color_ok__qhecrd4a" }, warn: { defaultClass: "sprinkles_color_warn__qhecrd4b" }, danger: { defaultClass: "sprinkles_color_danger__qhecrd4c" }, info: { defaultClass: "sprinkles_color_info__qhecrd4d" }, focus: { defaultClass: "sprinkles_color_focus__qhecrd4e" }, scrim: { defaultClass: "sprinkles_color_scrim__qhecrd4f" } } }, borderRadius: { values: { none: { defaultClass: "sprinkles_borderRadius_none__qhecrd4g" }, sm: { defaultClass: "sprinkles_borderRadius_sm__qhecrd4h" }, md: { defaultClass: "sprinkles_borderRadius_md__qhecrd4i" }, lg: { defaultClass: "sprinkles_borderRadius_lg__qhecrd4j" }, base: { defaultClass: "sprinkles_borderRadius_base__qhecrd4k" }, full: { defaultClass: "sprinkles_borderRadius_full__qhecrd4l" } } }, display: { values: { block: { defaultClass: "sprinkles_display_block__qhecrd4m" }, "inline-block": { defaultClass: "sprinkles_display_inline-block__qhecrd4n" }, flex: { defaultClass: "sprinkles_display_flex__qhecrd4o" }, "inline-flex": { defaultClass: "sprinkles_display_inline-flex__qhecrd4p" }, grid: { defaultClass: "sprinkles_display_grid__qhecrd4q" }, none: { defaultClass: "sprinkles_display_none__qhecrd4r" } } }, flexDirection: { values: { row: { defaultClass: "sprinkles_flexDirection_row__qhecrd4s" }, column: { defaultClass: "sprinkles_flexDirection_column__qhecrd4t" }, "row-reverse": { defaultClass: "sprinkles_flexDirection_row-reverse__qhecrd4u" }, "column-reverse": { defaultClass: "sprinkles_flexDirection_column-reverse__qhecrd4v" } } }, alignItems: { values: { "flex-start": { defaultClass: "sprinkles_alignItems_flex-start__qhecrd4w" }, center: { defaultClass: "sprinkles_alignItems_center__qhecrd4x" }, "flex-end": { defaultClass: "sprinkles_alignItems_flex-end__qhecrd4y" }, stretch: { defaultClass: "sprinkles_alignItems_stretch__qhecrd4z" }, baseline: { defaultClass: "sprinkles_alignItems_baseline__qhecrd50" } } }, justifyContent: { values: { "flex-start": { defaultClass: "sprinkles_justifyContent_flex-start__qhecrd51" }, center: { defaultClass: "sprinkles_justifyContent_center__qhecrd52" }, "flex-end": { defaultClass: "sprinkles_justifyContent_flex-end__qhecrd53" }, "space-between": { defaultClass: "sprinkles_justifyContent_space-between__qhecrd54" }, "space-around": { defaultClass: "sprinkles_justifyContent_space-around__qhecrd55" }, "space-evenly": { defaultClass: "sprinkles_justifyContent_space-evenly__qhecrd56" } } }, flexWrap: { values: { nowrap: { defaultClass: "sprinkles_flexWrap_nowrap__qhecrd57" }, wrap: { defaultClass: "sprinkles_flexWrap_wrap__qhecrd58" } } } } });
|
|
31
|
+
var sprinkles = _ad221({ conditions: void 0, styles: { p: { mappings: ["padding"] }, px: { mappings: ["paddingLeft", "paddingRight"] }, py: { mappings: ["paddingTop", "paddingBottom"] }, pt: { mappings: ["paddingTop"] }, pr: { mappings: ["paddingRight"] }, pb: { mappings: ["paddingBottom"] }, pl: { mappings: ["paddingLeft"] }, m: { mappings: ["marginTop", "marginRight", "marginBottom", "marginLeft"] }, mx: { mappings: ["marginLeft", "marginRight"] }, my: { mappings: ["marginTop", "marginBottom"] }, mt: { mappings: ["marginTop"] }, mr: { mappings: ["marginRight"] }, mb: { mappings: ["marginBottom"] }, ml: { mappings: ["marginLeft"] }, bg: { mappings: ["background"] }, radius: { mappings: ["borderRadius"] }, padding: { values: { s0: { defaultClass: "sprinkles_padding_s0__qhecrd0" }, s1: { defaultClass: "sprinkles_padding_s1__qhecrd1" }, s2: { defaultClass: "sprinkles_padding_s2__qhecrd2" }, s3: { defaultClass: "sprinkles_padding_s3__qhecrd3" }, s4: { defaultClass: "sprinkles_padding_s4__qhecrd4" }, s5: { defaultClass: "sprinkles_padding_s5__qhecrd5" }, s6: { defaultClass: "sprinkles_padding_s6__qhecrd6" }, s7: { defaultClass: "sprinkles_padding_s7__qhecrd7" }, s8: { defaultClass: "sprinkles_padding_s8__qhecrd8" }, s9: { defaultClass: "sprinkles_padding_s9__qhecrd9" } } }, paddingTop: { values: { s0: { defaultClass: "sprinkles_paddingTop_s0__qhecrda" }, s1: { defaultClass: "sprinkles_paddingTop_s1__qhecrdb" }, s2: { defaultClass: "sprinkles_paddingTop_s2__qhecrdc" }, s3: { defaultClass: "sprinkles_paddingTop_s3__qhecrdd" }, s4: { defaultClass: "sprinkles_paddingTop_s4__qhecrde" }, s5: { defaultClass: "sprinkles_paddingTop_s5__qhecrdf" }, s6: { defaultClass: "sprinkles_paddingTop_s6__qhecrdg" }, s7: { defaultClass: "sprinkles_paddingTop_s7__qhecrdh" }, s8: { defaultClass: "sprinkles_paddingTop_s8__qhecrdi" }, s9: { defaultClass: "sprinkles_paddingTop_s9__qhecrdj" } } }, paddingRight: { values: { s0: { defaultClass: "sprinkles_paddingRight_s0__qhecrdk" }, s1: { defaultClass: "sprinkles_paddingRight_s1__qhecrdl" }, s2: { defaultClass: "sprinkles_paddingRight_s2__qhecrdm" }, s3: { defaultClass: "sprinkles_paddingRight_s3__qhecrdn" }, s4: { defaultClass: "sprinkles_paddingRight_s4__qhecrdo" }, s5: { defaultClass: "sprinkles_paddingRight_s5__qhecrdp" }, s6: { defaultClass: "sprinkles_paddingRight_s6__qhecrdq" }, s7: { defaultClass: "sprinkles_paddingRight_s7__qhecrdr" }, s8: { defaultClass: "sprinkles_paddingRight_s8__qhecrds" }, s9: { defaultClass: "sprinkles_paddingRight_s9__qhecrdt" } } }, paddingBottom: { values: { s0: { defaultClass: "sprinkles_paddingBottom_s0__qhecrdu" }, s1: { defaultClass: "sprinkles_paddingBottom_s1__qhecrdv" }, s2: { defaultClass: "sprinkles_paddingBottom_s2__qhecrdw" }, s3: { defaultClass: "sprinkles_paddingBottom_s3__qhecrdx" }, s4: { defaultClass: "sprinkles_paddingBottom_s4__qhecrdy" }, s5: { defaultClass: "sprinkles_paddingBottom_s5__qhecrdz" }, s6: { defaultClass: "sprinkles_paddingBottom_s6__qhecrd10" }, s7: { defaultClass: "sprinkles_paddingBottom_s7__qhecrd11" }, s8: { defaultClass: "sprinkles_paddingBottom_s8__qhecrd12" }, s9: { defaultClass: "sprinkles_paddingBottom_s9__qhecrd13" } } }, paddingLeft: { values: { s0: { defaultClass: "sprinkles_paddingLeft_s0__qhecrd14" }, s1: { defaultClass: "sprinkles_paddingLeft_s1__qhecrd15" }, s2: { defaultClass: "sprinkles_paddingLeft_s2__qhecrd16" }, s3: { defaultClass: "sprinkles_paddingLeft_s3__qhecrd17" }, s4: { defaultClass: "sprinkles_paddingLeft_s4__qhecrd18" }, s5: { defaultClass: "sprinkles_paddingLeft_s5__qhecrd19" }, s6: { defaultClass: "sprinkles_paddingLeft_s6__qhecrd1a" }, s7: { defaultClass: "sprinkles_paddingLeft_s7__qhecrd1b" }, s8: { defaultClass: "sprinkles_paddingLeft_s8__qhecrd1c" }, s9: { defaultClass: "sprinkles_paddingLeft_s9__qhecrd1d" } } }, marginTop: { values: { s0: { defaultClass: "sprinkles_marginTop_s0__qhecrd1e" }, s1: { defaultClass: "sprinkles_marginTop_s1__qhecrd1f" }, s2: { defaultClass: "sprinkles_marginTop_s2__qhecrd1g" }, s3: { defaultClass: "sprinkles_marginTop_s3__qhecrd1h" }, s4: { defaultClass: "sprinkles_marginTop_s4__qhecrd1i" }, s5: { defaultClass: "sprinkles_marginTop_s5__qhecrd1j" }, s6: { defaultClass: "sprinkles_marginTop_s6__qhecrd1k" }, s7: { defaultClass: "sprinkles_marginTop_s7__qhecrd1l" }, s8: { defaultClass: "sprinkles_marginTop_s8__qhecrd1m" }, s9: { defaultClass: "sprinkles_marginTop_s9__qhecrd1n" } } }, marginRight: { values: { s0: { defaultClass: "sprinkles_marginRight_s0__qhecrd1o" }, s1: { defaultClass: "sprinkles_marginRight_s1__qhecrd1p" }, s2: { defaultClass: "sprinkles_marginRight_s2__qhecrd1q" }, s3: { defaultClass: "sprinkles_marginRight_s3__qhecrd1r" }, s4: { defaultClass: "sprinkles_marginRight_s4__qhecrd1s" }, s5: { defaultClass: "sprinkles_marginRight_s5__qhecrd1t" }, s6: { defaultClass: "sprinkles_marginRight_s6__qhecrd1u" }, s7: { defaultClass: "sprinkles_marginRight_s7__qhecrd1v" }, s8: { defaultClass: "sprinkles_marginRight_s8__qhecrd1w" }, s9: { defaultClass: "sprinkles_marginRight_s9__qhecrd1x" } } }, marginBottom: { values: { s0: { defaultClass: "sprinkles_marginBottom_s0__qhecrd1y" }, s1: { defaultClass: "sprinkles_marginBottom_s1__qhecrd1z" }, s2: { defaultClass: "sprinkles_marginBottom_s2__qhecrd20" }, s3: { defaultClass: "sprinkles_marginBottom_s3__qhecrd21" }, s4: { defaultClass: "sprinkles_marginBottom_s4__qhecrd22" }, s5: { defaultClass: "sprinkles_marginBottom_s5__qhecrd23" }, s6: { defaultClass: "sprinkles_marginBottom_s6__qhecrd24" }, s7: { defaultClass: "sprinkles_marginBottom_s7__qhecrd25" }, s8: { defaultClass: "sprinkles_marginBottom_s8__qhecrd26" }, s9: { defaultClass: "sprinkles_marginBottom_s9__qhecrd27" } } }, marginLeft: { values: { s0: { defaultClass: "sprinkles_marginLeft_s0__qhecrd28" }, s1: { defaultClass: "sprinkles_marginLeft_s1__qhecrd29" }, s2: { defaultClass: "sprinkles_marginLeft_s2__qhecrd2a" }, s3: { defaultClass: "sprinkles_marginLeft_s3__qhecrd2b" }, s4: { defaultClass: "sprinkles_marginLeft_s4__qhecrd2c" }, s5: { defaultClass: "sprinkles_marginLeft_s5__qhecrd2d" }, s6: { defaultClass: "sprinkles_marginLeft_s6__qhecrd2e" }, s7: { defaultClass: "sprinkles_marginLeft_s7__qhecrd2f" }, s8: { defaultClass: "sprinkles_marginLeft_s8__qhecrd2g" }, s9: { defaultClass: "sprinkles_marginLeft_s9__qhecrd2h" } } }, gap: { values: { s0: { defaultClass: "sprinkles_gap_s0__qhecrd2i" }, s1: { defaultClass: "sprinkles_gap_s1__qhecrd2j" }, s2: { defaultClass: "sprinkles_gap_s2__qhecrd2k" }, s3: { defaultClass: "sprinkles_gap_s3__qhecrd2l" }, s4: { defaultClass: "sprinkles_gap_s4__qhecrd2m" }, s5: { defaultClass: "sprinkles_gap_s5__qhecrd2n" }, s6: { defaultClass: "sprinkles_gap_s6__qhecrd2o" }, s7: { defaultClass: "sprinkles_gap_s7__qhecrd2p" }, s8: { defaultClass: "sprinkles_gap_s8__qhecrd2q" }, s9: { defaultClass: "sprinkles_gap_s9__qhecrd2r" } } }, rowGap: { values: { s0: { defaultClass: "sprinkles_rowGap_s0__qhecrd2s" }, s1: { defaultClass: "sprinkles_rowGap_s1__qhecrd2t" }, s2: { defaultClass: "sprinkles_rowGap_s2__qhecrd2u" }, s3: { defaultClass: "sprinkles_rowGap_s3__qhecrd2v" }, s4: { defaultClass: "sprinkles_rowGap_s4__qhecrd2w" }, s5: { defaultClass: "sprinkles_rowGap_s5__qhecrd2x" }, s6: { defaultClass: "sprinkles_rowGap_s6__qhecrd2y" }, s7: { defaultClass: "sprinkles_rowGap_s7__qhecrd2z" }, s8: { defaultClass: "sprinkles_rowGap_s8__qhecrd30" }, s9: { defaultClass: "sprinkles_rowGap_s9__qhecrd31" } } }, columnGap: { values: { s0: { defaultClass: "sprinkles_columnGap_s0__qhecrd32" }, s1: { defaultClass: "sprinkles_columnGap_s1__qhecrd33" }, s2: { defaultClass: "sprinkles_columnGap_s2__qhecrd34" }, s3: { defaultClass: "sprinkles_columnGap_s3__qhecrd35" }, s4: { defaultClass: "sprinkles_columnGap_s4__qhecrd36" }, s5: { defaultClass: "sprinkles_columnGap_s5__qhecrd37" }, s6: { defaultClass: "sprinkles_columnGap_s6__qhecrd38" }, s7: { defaultClass: "sprinkles_columnGap_s7__qhecrd39" }, s8: { defaultClass: "sprinkles_columnGap_s8__qhecrd3a" }, s9: { defaultClass: "sprinkles_columnGap_s9__qhecrd3b" } } }, background: { values: { bg1: { defaultClass: "sprinkles_background_bg1__qhecrd3c" }, bg2: { defaultClass: "sprinkles_background_bg2__qhecrd3d" }, bg3: { defaultClass: "sprinkles_background_bg3__qhecrd3e" }, bgInset: { defaultClass: "sprinkles_background_bgInset__qhecrd3f" }, fg1: { defaultClass: "sprinkles_background_fg1__qhecrd3g" }, fg2: { defaultClass: "sprinkles_background_fg2__qhecrd3h" }, fg3: { defaultClass: "sprinkles_background_fg3__qhecrd3i" }, fgOnAccent: { defaultClass: "sprinkles_background_fgOnAccent__qhecrd3j" }, border1: { defaultClass: "sprinkles_background_border1__qhecrd3k" }, border2: { defaultClass: "sprinkles_background_border2__qhecrd3l" }, borderStrong: { defaultClass: "sprinkles_background_borderStrong__qhecrd3m" }, accent: { defaultClass: "sprinkles_background_accent__qhecrd3n" }, accentHover: { defaultClass: "sprinkles_background_accentHover__qhecrd3o" }, accentSoft: { defaultClass: "sprinkles_background_accentSoft__qhecrd3p" }, ok: { defaultClass: "sprinkles_background_ok__qhecrd3q" }, warn: { defaultClass: "sprinkles_background_warn__qhecrd3r" }, danger: { defaultClass: "sprinkles_background_danger__qhecrd3s" }, dangerHover: { defaultClass: "sprinkles_background_dangerHover__qhecrd3t" }, dangerSoft: { defaultClass: "sprinkles_background_dangerSoft__qhecrd3u" }, info: { defaultClass: "sprinkles_background_info__qhecrd3v" }, focus: { defaultClass: "sprinkles_background_focus__qhecrd3w" }, scrim: { defaultClass: "sprinkles_background_scrim__qhecrd3x" } } }, color: { values: { bg1: { defaultClass: "sprinkles_color_bg1__qhecrd3y" }, bg2: { defaultClass: "sprinkles_color_bg2__qhecrd3z" }, bg3: { defaultClass: "sprinkles_color_bg3__qhecrd40" }, bgInset: { defaultClass: "sprinkles_color_bgInset__qhecrd41" }, fg1: { defaultClass: "sprinkles_color_fg1__qhecrd42" }, fg2: { defaultClass: "sprinkles_color_fg2__qhecrd43" }, fg3: { defaultClass: "sprinkles_color_fg3__qhecrd44" }, fgOnAccent: { defaultClass: "sprinkles_color_fgOnAccent__qhecrd45" }, border1: { defaultClass: "sprinkles_color_border1__qhecrd46" }, border2: { defaultClass: "sprinkles_color_border2__qhecrd47" }, borderStrong: { defaultClass: "sprinkles_color_borderStrong__qhecrd48" }, accent: { defaultClass: "sprinkles_color_accent__qhecrd49" }, accentHover: { defaultClass: "sprinkles_color_accentHover__qhecrd4a" }, accentSoft: { defaultClass: "sprinkles_color_accentSoft__qhecrd4b" }, ok: { defaultClass: "sprinkles_color_ok__qhecrd4c" }, warn: { defaultClass: "sprinkles_color_warn__qhecrd4d" }, danger: { defaultClass: "sprinkles_color_danger__qhecrd4e" }, dangerHover: { defaultClass: "sprinkles_color_dangerHover__qhecrd4f" }, dangerSoft: { defaultClass: "sprinkles_color_dangerSoft__qhecrd4g" }, info: { defaultClass: "sprinkles_color_info__qhecrd4h" }, focus: { defaultClass: "sprinkles_color_focus__qhecrd4i" }, scrim: { defaultClass: "sprinkles_color_scrim__qhecrd4j" } } }, borderRadius: { values: { none: { defaultClass: "sprinkles_borderRadius_none__qhecrd4k" }, sm: { defaultClass: "sprinkles_borderRadius_sm__qhecrd4l" }, md: { defaultClass: "sprinkles_borderRadius_md__qhecrd4m" }, lg: { defaultClass: "sprinkles_borderRadius_lg__qhecrd4n" }, base: { defaultClass: "sprinkles_borderRadius_base__qhecrd4o" }, full: { defaultClass: "sprinkles_borderRadius_full__qhecrd4p" } } }, display: { values: { block: { defaultClass: "sprinkles_display_block__qhecrd4q" }, "inline-block": { defaultClass: "sprinkles_display_inline-block__qhecrd4r" }, flex: { defaultClass: "sprinkles_display_flex__qhecrd4s" }, "inline-flex": { defaultClass: "sprinkles_display_inline-flex__qhecrd4t" }, grid: { defaultClass: "sprinkles_display_grid__qhecrd4u" }, none: { defaultClass: "sprinkles_display_none__qhecrd4v" } } }, flexDirection: { values: { row: { defaultClass: "sprinkles_flexDirection_row__qhecrd4w" }, column: { defaultClass: "sprinkles_flexDirection_column__qhecrd4x" }, "row-reverse": { defaultClass: "sprinkles_flexDirection_row-reverse__qhecrd4y" }, "column-reverse": { defaultClass: "sprinkles_flexDirection_column-reverse__qhecrd4z" } } }, alignItems: { values: { "flex-start": { defaultClass: "sprinkles_alignItems_flex-start__qhecrd50" }, center: { defaultClass: "sprinkles_alignItems_center__qhecrd51" }, "flex-end": { defaultClass: "sprinkles_alignItems_flex-end__qhecrd52" }, stretch: { defaultClass: "sprinkles_alignItems_stretch__qhecrd53" }, baseline: { defaultClass: "sprinkles_alignItems_baseline__qhecrd54" } } }, justifyContent: { values: { "flex-start": { defaultClass: "sprinkles_justifyContent_flex-start__qhecrd55" }, center: { defaultClass: "sprinkles_justifyContent_center__qhecrd56" }, "flex-end": { defaultClass: "sprinkles_justifyContent_flex-end__qhecrd57" }, "space-between": { defaultClass: "sprinkles_justifyContent_space-between__qhecrd58" }, "space-around": { defaultClass: "sprinkles_justifyContent_space-around__qhecrd59" }, "space-evenly": { defaultClass: "sprinkles_justifyContent_space-evenly__qhecrd5a" } } }, flexWrap: { values: { nowrap: { defaultClass: "sprinkles_flexWrap_nowrap__qhecrd5b" }, wrap: { defaultClass: "sprinkles_flexWrap_wrap__qhecrd5c" } } } } });
|
|
32
32
|
|
|
33
33
|
// src/components/container/use-styles.ts
|
|
34
34
|
function useStyles(props) {
|
|
@@ -211,18 +211,65 @@ var Typography = TypographyForwarded;
|
|
|
211
211
|
// src/components/button/index.tsx
|
|
212
212
|
import { forwardRef as forwardRef3 } from "react";
|
|
213
213
|
|
|
214
|
+
// src/testing/states.ts
|
|
215
|
+
function states(map) {
|
|
216
|
+
const active2 = Object.keys(map).filter((key) => map[key]);
|
|
217
|
+
return active2.length > 0 ? active2.join(" ") : void 0;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// src/testing/use-test-id.ts
|
|
221
|
+
import { useMemo as useMemo4 } from "react";
|
|
222
|
+
|
|
223
|
+
// src/testing/compose.ts
|
|
224
|
+
function normalizeSegment(seg) {
|
|
225
|
+
return seg.trim().replace(/([a-z0-9])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
|
|
226
|
+
}
|
|
227
|
+
function composeTestId(parts) {
|
|
228
|
+
return parts.filter((p) => typeof p === "string" && p.trim() !== "").map(normalizeSegment).join("__");
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// src/testing/context/test-id-context.tsx
|
|
232
|
+
import { createContext as createContext2, useContext as useContext2, useMemo as useMemo3 } from "react";
|
|
233
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
234
|
+
var TestIdContext = createContext2([]);
|
|
235
|
+
function TestIdProvider({ context, children }) {
|
|
236
|
+
const parent = useContext2(TestIdContext);
|
|
237
|
+
const value = useMemo3(
|
|
238
|
+
() => [...parent, normalizeSegment(context)].filter((seg) => seg !== ""),
|
|
239
|
+
[parent, context]
|
|
240
|
+
);
|
|
241
|
+
return /* @__PURE__ */ jsx4(TestIdContext.Provider, { value, children });
|
|
242
|
+
}
|
|
243
|
+
function useTestIdContext() {
|
|
244
|
+
return useContext2(TestIdContext);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// src/testing/use-test-id.ts
|
|
248
|
+
function useTestId(type, ownTestId) {
|
|
249
|
+
const ctx = useTestIdContext();
|
|
250
|
+
const testId = composeTestId([type, ...ctx, ownTestId]);
|
|
251
|
+
return useMemo4(
|
|
252
|
+
() => ({
|
|
253
|
+
testId,
|
|
254
|
+
slot: (name) => `${testId}__${normalizeSegment(name)}`
|
|
255
|
+
}),
|
|
256
|
+
[testId]
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
214
260
|
// src/components/button/use-styles.ts
|
|
215
|
-
import { useMemo as
|
|
261
|
+
import { useMemo as useMemo5 } from "react";
|
|
216
262
|
|
|
217
263
|
// src/components/button/use-styles.css.ts
|
|
218
264
|
var full = "use-styles_full__1pbtill4";
|
|
219
265
|
var root = "use-styles_root__1pbtill0";
|
|
220
266
|
var size = { sm: "use-styles_size_sm__1pbtill1", md: "use-styles_size_md__1pbtill2", lg: "use-styles_size_lg__1pbtill3" };
|
|
221
|
-
var tone = { filledInk: "use-styles_tone_filledInk__1pbtill5", filledAccent: "use-styles_tone_filledAccent__1pbtill6", outlineInk: "use-styles_tone_outlineInk__1pbtill7", outlineAccent: "use-styles_tone_outlineAccent__1pbtill8", ghostInk: "use-styles_tone_ghostInk__1pbtill9", ghostAccent: "use-styles_tone_ghostAccent__1pbtilla" };
|
|
267
|
+
var tone = { filledInk: "use-styles_tone_filledInk__1pbtill5", filledAccent: "use-styles_tone_filledAccent__1pbtill6", outlineInk: "use-styles_tone_outlineInk__1pbtill7", outlineAccent: "use-styles_tone_outlineAccent__1pbtill8", ghostInk: "use-styles_tone_ghostInk__1pbtill9", ghostAccent: "use-styles_tone_ghostAccent__1pbtilla", filledDanger: "use-styles_tone_filledDanger__1pbtillb", outlineDanger: "use-styles_tone_outlineDanger__1pbtillc", ghostDanger: "use-styles_tone_ghostDanger__1pbtilld" };
|
|
222
268
|
|
|
223
269
|
// src/components/button/use-styles.ts
|
|
224
270
|
function toneKey(variant2, tone4) {
|
|
225
|
-
|
|
271
|
+
const Tone = `${tone4.charAt(0).toUpperCase()}${tone4.slice(1)}`;
|
|
272
|
+
return `${variant2}${Tone}`;
|
|
226
273
|
}
|
|
227
274
|
function useStyles3({
|
|
228
275
|
variant: variant2 = "filled",
|
|
@@ -232,7 +279,7 @@ function useStyles3({
|
|
|
232
279
|
className
|
|
233
280
|
}) {
|
|
234
281
|
const { themeClass } = useTheme();
|
|
235
|
-
const container =
|
|
282
|
+
const container = useMemo5(
|
|
236
283
|
() => [
|
|
237
284
|
themeClass,
|
|
238
285
|
root,
|
|
@@ -247,7 +294,7 @@ function useStyles3({
|
|
|
247
294
|
}
|
|
248
295
|
|
|
249
296
|
// src/components/button/index.tsx
|
|
250
|
-
import { jsx as
|
|
297
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
251
298
|
var ICON_SIZE = { sm: 14, md: 16, lg: 18 };
|
|
252
299
|
var Button = forwardRef3(function Button2({
|
|
253
300
|
variant: variant2,
|
|
@@ -258,23 +305,36 @@ var Button = forwardRef3(function Button2({
|
|
|
258
305
|
full: full2,
|
|
259
306
|
className,
|
|
260
307
|
type = "button",
|
|
308
|
+
testId,
|
|
261
309
|
children,
|
|
262
310
|
...rest
|
|
263
311
|
}, ref) {
|
|
264
312
|
const { container } = useStyles3({ variant: variant2, tone: tone4, size: size3, full: full2, className });
|
|
313
|
+
const { testId: dataTestId } = useTestId("button", testId);
|
|
265
314
|
const iconSize = ICON_SIZE[size3];
|
|
266
|
-
return /* @__PURE__ */ jsxs(
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
315
|
+
return /* @__PURE__ */ jsxs(
|
|
316
|
+
"button",
|
|
317
|
+
{
|
|
318
|
+
ref,
|
|
319
|
+
type,
|
|
320
|
+
className: container,
|
|
321
|
+
"data-testid": dataTestId,
|
|
322
|
+
"data-state": states({ disabled: rest.disabled }),
|
|
323
|
+
...rest,
|
|
324
|
+
children: [
|
|
325
|
+
StartIcon && /* @__PURE__ */ jsx5(StartIcon, { size: iconSize }),
|
|
326
|
+
children,
|
|
327
|
+
EndIcon && /* @__PURE__ */ jsx5(EndIcon, { size: iconSize })
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
);
|
|
271
331
|
});
|
|
272
332
|
|
|
273
333
|
// src/components/divider/index.tsx
|
|
274
334
|
import { forwardRef as forwardRef4 } from "react";
|
|
275
335
|
|
|
276
336
|
// src/components/divider/use-styles.ts
|
|
277
|
-
import { useMemo as
|
|
337
|
+
import { useMemo as useMemo6 } from "react";
|
|
278
338
|
|
|
279
339
|
// src/components/divider/use-styles.css.ts
|
|
280
340
|
var horizontal = "use-styles_horizontal__1n7v7yj1";
|
|
@@ -287,7 +347,7 @@ var vertical = "use-styles_vertical__1n7v7yj2";
|
|
|
287
347
|
// src/components/divider/use-styles.ts
|
|
288
348
|
function useStyles4({ vertical: vertical2, hasLabel }) {
|
|
289
349
|
const { themeClass } = useTheme();
|
|
290
|
-
const root24 =
|
|
350
|
+
const root24 = useMemo6(
|
|
291
351
|
() => [
|
|
292
352
|
themeClass,
|
|
293
353
|
root2,
|
|
@@ -299,25 +359,25 @@ function useStyles4({ vertical: vertical2, hasLabel }) {
|
|
|
299
359
|
}
|
|
300
360
|
|
|
301
361
|
// src/components/divider/index.tsx
|
|
302
|
-
import { jsx as
|
|
362
|
+
import { jsx as jsx6, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
303
363
|
var Divider = forwardRef4(function Divider2({ vertical: vertical2, label: label7, ...rest }, ref) {
|
|
304
364
|
const hasLabel = label7 != null;
|
|
305
365
|
const { root: root24, line: line2, label: labelClass } = useStyles4({ vertical: vertical2, hasLabel });
|
|
306
366
|
if (hasLabel) {
|
|
307
367
|
return /* @__PURE__ */ jsxs2("div", { ref, role: "separator", className: root24, ...rest, children: [
|
|
308
|
-
/* @__PURE__ */
|
|
309
|
-
/* @__PURE__ */
|
|
310
|
-
/* @__PURE__ */
|
|
368
|
+
/* @__PURE__ */ jsx6("span", { className: line2 }),
|
|
369
|
+
/* @__PURE__ */ jsx6("span", { className: labelClass, children: label7 }),
|
|
370
|
+
/* @__PURE__ */ jsx6("span", { className: line2 })
|
|
311
371
|
] });
|
|
312
372
|
}
|
|
313
|
-
return /* @__PURE__ */
|
|
373
|
+
return /* @__PURE__ */ jsx6("div", { ref, role: "separator", className: root24, ...rest });
|
|
314
374
|
});
|
|
315
375
|
|
|
316
376
|
// src/components/avatar/index.tsx
|
|
317
377
|
import { forwardRef as forwardRef5 } from "react";
|
|
318
378
|
|
|
319
379
|
// src/components/avatar/use-styles.ts
|
|
320
|
-
import { useMemo as
|
|
380
|
+
import { useMemo as useMemo7 } from "react";
|
|
321
381
|
|
|
322
382
|
// src/components/avatar/use-styles.css.ts
|
|
323
383
|
var root3 = "use-styles_root__1mn1rmu0";
|
|
@@ -331,7 +391,7 @@ function useStyles5({
|
|
|
331
391
|
className
|
|
332
392
|
}) {
|
|
333
393
|
const { themeClass } = useTheme();
|
|
334
|
-
const root24 =
|
|
394
|
+
const root24 = useMemo7(
|
|
335
395
|
() => [
|
|
336
396
|
themeClass,
|
|
337
397
|
root3,
|
|
@@ -345,17 +405,17 @@ function useStyles5({
|
|
|
345
405
|
}
|
|
346
406
|
|
|
347
407
|
// src/components/avatar/index.tsx
|
|
348
|
-
import { jsx as
|
|
408
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
349
409
|
var Avatar = forwardRef5(function Avatar2({ size: size3, filled, className, children, ...rest }, ref) {
|
|
350
410
|
const { root: root24 } = useStyles5({ size: size3, filled, className });
|
|
351
|
-
return /* @__PURE__ */
|
|
411
|
+
return /* @__PURE__ */ jsx7("span", { ref, className: root24, ...rest, children });
|
|
352
412
|
});
|
|
353
413
|
|
|
354
414
|
// src/components/badge/index.tsx
|
|
355
415
|
import { forwardRef as forwardRef6 } from "react";
|
|
356
416
|
|
|
357
417
|
// src/components/badge/use-styles.ts
|
|
358
|
-
import { useMemo as
|
|
418
|
+
import { useMemo as useMemo8 } from "react";
|
|
359
419
|
|
|
360
420
|
// src/components/badge/use-styles.css.ts
|
|
361
421
|
var dot = "use-styles_dot__1wpei6p1";
|
|
@@ -368,21 +428,21 @@ function useStyles6({
|
|
|
368
428
|
className
|
|
369
429
|
}) {
|
|
370
430
|
const { themeClass } = useTheme();
|
|
371
|
-
const root24 =
|
|
431
|
+
const root24 = useMemo8(
|
|
372
432
|
() => [themeClass, root4, className].filter(Boolean).join(" "),
|
|
373
433
|
[themeClass, className]
|
|
374
434
|
);
|
|
375
|
-
const dot3 =
|
|
435
|
+
const dot3 = useMemo8(() => [dot, tone2[tone4]].join(" "), [tone4]);
|
|
376
436
|
return { root: root24, dot: dot3 };
|
|
377
437
|
}
|
|
378
438
|
|
|
379
439
|
// src/components/badge/index.tsx
|
|
380
|
-
import { jsx as
|
|
440
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
381
441
|
var Badge = forwardRef6(function Badge2({ count, tone: tone4, className, children, ...rest }, ref) {
|
|
382
442
|
const { root: root24, dot: dot3 } = useStyles6({ tone: tone4, className });
|
|
383
443
|
return /* @__PURE__ */ jsxs3("span", { ref, className: root24, ...rest, children: [
|
|
384
444
|
children,
|
|
385
|
-
count != null && /* @__PURE__ */
|
|
445
|
+
count != null && /* @__PURE__ */ jsx8("span", { className: dot3, children: count })
|
|
386
446
|
] });
|
|
387
447
|
});
|
|
388
448
|
|
|
@@ -390,7 +450,7 @@ var Badge = forwardRef6(function Badge2({ count, tone: tone4, className, childre
|
|
|
390
450
|
import { forwardRef as forwardRef7 } from "react";
|
|
391
451
|
|
|
392
452
|
// src/components/progress/use-styles.ts
|
|
393
|
-
import { useMemo as
|
|
453
|
+
import { useMemo as useMemo9 } from "react";
|
|
394
454
|
|
|
395
455
|
// src/components/progress/use-styles.css.ts
|
|
396
456
|
var bar = "use-styles_bar__kbop7v3";
|
|
@@ -406,7 +466,7 @@ function useStyles7({
|
|
|
406
466
|
}) {
|
|
407
467
|
const { themeClass } = useTheme();
|
|
408
468
|
const indeterminate2 = value === void 0;
|
|
409
|
-
return
|
|
469
|
+
return useMemo9(() => {
|
|
410
470
|
const root24 = (...classes) => [themeClass, ...classes, className].filter(Boolean).join(" ");
|
|
411
471
|
if (variant2 === "circular") {
|
|
412
472
|
return { track: "", bar: "", spinner: root24(spinner) };
|
|
@@ -420,12 +480,12 @@ function useStyles7({
|
|
|
420
480
|
}
|
|
421
481
|
|
|
422
482
|
// src/components/progress/index.tsx
|
|
423
|
-
import { jsx as
|
|
483
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
424
484
|
var Progress = forwardRef7(function Progress2({ variant: variant2 = "linear", value, size: size3 = 20, className, ...rest }, ref) {
|
|
425
485
|
const { track: track4, bar: bar2, spinner: spinner2 } = useStyles7({ variant: variant2, value, className });
|
|
426
486
|
const indeterminate2 = value === void 0;
|
|
427
487
|
if (variant2 === "circular") {
|
|
428
|
-
return /* @__PURE__ */
|
|
488
|
+
return /* @__PURE__ */ jsx9(
|
|
429
489
|
"span",
|
|
430
490
|
{
|
|
431
491
|
ref,
|
|
@@ -439,7 +499,7 @@ var Progress = forwardRef7(function Progress2({ variant: variant2 = "linear", va
|
|
|
439
499
|
}
|
|
440
500
|
);
|
|
441
501
|
}
|
|
442
|
-
return /* @__PURE__ */
|
|
502
|
+
return /* @__PURE__ */ jsx9(
|
|
443
503
|
"div",
|
|
444
504
|
{
|
|
445
505
|
ref,
|
|
@@ -449,7 +509,7 @@ var Progress = forwardRef7(function Progress2({ variant: variant2 = "linear", va
|
|
|
449
509
|
"aria-valuemin": indeterminate2 ? void 0 : 0,
|
|
450
510
|
"aria-valuemax": indeterminate2 ? void 0 : 100,
|
|
451
511
|
...rest,
|
|
452
|
-
children: /* @__PURE__ */
|
|
512
|
+
children: /* @__PURE__ */ jsx9("div", { className: bar2, style: indeterminate2 ? void 0 : { width: `${value}%` } })
|
|
453
513
|
}
|
|
454
514
|
);
|
|
455
515
|
});
|
|
@@ -458,7 +518,7 @@ var Progress = forwardRef7(function Progress2({ variant: variant2 = "linear", va
|
|
|
458
518
|
import { forwardRef as forwardRef8 } from "react";
|
|
459
519
|
|
|
460
520
|
// src/components/icons/x/index.tsx
|
|
461
|
-
import { jsx as
|
|
521
|
+
import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
462
522
|
function XIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
463
523
|
return /* @__PURE__ */ jsxs4(
|
|
464
524
|
"svg",
|
|
@@ -475,15 +535,15 @@ function XIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
475
535
|
"aria-hidden": "true",
|
|
476
536
|
...rest,
|
|
477
537
|
children: [
|
|
478
|
-
/* @__PURE__ */
|
|
479
|
-
/* @__PURE__ */
|
|
538
|
+
/* @__PURE__ */ jsx10("path", { d: "M18 6 6 18" }),
|
|
539
|
+
/* @__PURE__ */ jsx10("path", { d: "m6 6 12 12" })
|
|
480
540
|
]
|
|
481
541
|
}
|
|
482
542
|
);
|
|
483
543
|
}
|
|
484
544
|
|
|
485
545
|
// src/components/chip/use-styles.ts
|
|
486
|
-
import { useMemo as
|
|
546
|
+
import { useMemo as useMemo10 } from "react";
|
|
487
547
|
|
|
488
548
|
// src/components/chip/use-styles.css.ts
|
|
489
549
|
var clickable = "use-styles_clickable__1axilf44";
|
|
@@ -499,7 +559,7 @@ function useStyles8({
|
|
|
499
559
|
clickable: clickable2
|
|
500
560
|
}) {
|
|
501
561
|
const { themeClass } = useTheme();
|
|
502
|
-
const root24 =
|
|
562
|
+
const root24 = useMemo10(
|
|
503
563
|
() => [
|
|
504
564
|
themeClass,
|
|
505
565
|
root5,
|
|
@@ -512,7 +572,7 @@ function useStyles8({
|
|
|
512
572
|
}
|
|
513
573
|
|
|
514
574
|
// src/components/chip/index.tsx
|
|
515
|
-
import { jsx as
|
|
575
|
+
import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
516
576
|
var Chip = forwardRef8(function Chip2({ selected: selected3, tone: tone4, onDelete, onClick, children, ...rest }, ref) {
|
|
517
577
|
const clickable2 = Boolean(onClick);
|
|
518
578
|
const { root: root24, deleteBtn: deleteBtn2 } = useStyles8({ selected: selected3, tone: tone4, clickable: clickable2 });
|
|
@@ -522,7 +582,7 @@ var Chip = forwardRef8(function Chip2({ selected: selected3, tone: tone4, onDele
|
|
|
522
582
|
};
|
|
523
583
|
return /* @__PURE__ */ jsxs5("span", { ref, className: root24, onClick, ...rest, children: [
|
|
524
584
|
children,
|
|
525
|
-
onDelete && /* @__PURE__ */
|
|
585
|
+
onDelete && /* @__PURE__ */ jsx11("button", { type: "button", className: deleteBtn2, "aria-label": "Remove", onClick: handleDelete, children: /* @__PURE__ */ jsx11(XIcon, { size: 13 }) })
|
|
526
586
|
] });
|
|
527
587
|
});
|
|
528
588
|
|
|
@@ -530,9 +590,9 @@ var Chip = forwardRef8(function Chip2({ selected: selected3, tone: tone4, onDele
|
|
|
530
590
|
import { forwardRef as forwardRef9 } from "react";
|
|
531
591
|
|
|
532
592
|
// src/components/icons/check/index.tsx
|
|
533
|
-
import { jsx as
|
|
593
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
534
594
|
function CheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
535
|
-
return /* @__PURE__ */
|
|
595
|
+
return /* @__PURE__ */ jsx12(
|
|
536
596
|
"svg",
|
|
537
597
|
{
|
|
538
598
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -546,13 +606,13 @@ function CheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
546
606
|
strokeLinejoin: "round",
|
|
547
607
|
"aria-hidden": "true",
|
|
548
608
|
...rest,
|
|
549
|
-
children: /* @__PURE__ */
|
|
609
|
+
children: /* @__PURE__ */ jsx12("path", { d: "M20 6 9 17l-5-5" })
|
|
550
610
|
}
|
|
551
611
|
);
|
|
552
612
|
}
|
|
553
613
|
|
|
554
614
|
// src/components/checkbox/use-styles.ts
|
|
555
|
-
import { useMemo as
|
|
615
|
+
import { useMemo as useMemo11 } from "react";
|
|
556
616
|
|
|
557
617
|
// src/components/checkbox/use-styles.css.ts
|
|
558
618
|
var box = "use-styles_box__9zoga91";
|
|
@@ -565,11 +625,11 @@ var root6 = "use-styles_root__9zoga90";
|
|
|
565
625
|
// src/components/checkbox/use-styles.ts
|
|
566
626
|
function useStyles9({ checked, disabled: disabled3 }) {
|
|
567
627
|
const { themeClass } = useTheme();
|
|
568
|
-
const root24 =
|
|
628
|
+
const root24 = useMemo11(
|
|
569
629
|
() => [themeClass, root6, disabled3 && disabled].filter(Boolean).join(" "),
|
|
570
630
|
[themeClass, disabled3]
|
|
571
631
|
);
|
|
572
|
-
const box2 =
|
|
632
|
+
const box2 = useMemo11(
|
|
573
633
|
() => [box, checked && boxChecked].filter(Boolean).join(" "),
|
|
574
634
|
[checked]
|
|
575
635
|
);
|
|
@@ -577,7 +637,7 @@ function useStyles9({ checked, disabled: disabled3 }) {
|
|
|
577
637
|
}
|
|
578
638
|
|
|
579
639
|
// src/components/checkbox/index.tsx
|
|
580
|
-
import { jsx as
|
|
640
|
+
import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
581
641
|
var Checkbox = forwardRef9(function Checkbox2({ checked = false, onChange, label: label7, disabled: disabled3 = false, id, ...rest }, ref) {
|
|
582
642
|
const { root: root24, input: input6, box: box2, check: check2 } = useStyles9({ checked, disabled: disabled3 });
|
|
583
643
|
const handleChange = (e) => {
|
|
@@ -585,7 +645,7 @@ var Checkbox = forwardRef9(function Checkbox2({ checked = false, onChange, label
|
|
|
585
645
|
onChange?.(e.target.checked);
|
|
586
646
|
};
|
|
587
647
|
return /* @__PURE__ */ jsxs6("label", { className: root24, children: [
|
|
588
|
-
/* @__PURE__ */
|
|
648
|
+
/* @__PURE__ */ jsx13(
|
|
589
649
|
"input",
|
|
590
650
|
{
|
|
591
651
|
ref,
|
|
@@ -598,7 +658,7 @@ var Checkbox = forwardRef9(function Checkbox2({ checked = false, onChange, label
|
|
|
598
658
|
...rest
|
|
599
659
|
}
|
|
600
660
|
),
|
|
601
|
-
/* @__PURE__ */
|
|
661
|
+
/* @__PURE__ */ jsx13("span", { className: box2, children: checked && /* @__PURE__ */ jsx13(CheckIcon, { size: 12, className: check2 }) }),
|
|
602
662
|
label7
|
|
603
663
|
] });
|
|
604
664
|
});
|
|
@@ -607,7 +667,7 @@ var Checkbox = forwardRef9(function Checkbox2({ checked = false, onChange, label
|
|
|
607
667
|
import { forwardRef as forwardRef10 } from "react";
|
|
608
668
|
|
|
609
669
|
// src/components/radio/use-styles.ts
|
|
610
|
-
import { useMemo as
|
|
670
|
+
import { useMemo as useMemo12 } from "react";
|
|
611
671
|
|
|
612
672
|
// src/components/radio/use-styles.css.ts
|
|
613
673
|
var circle = "use-styles_circle__vy61b42";
|
|
@@ -623,7 +683,7 @@ function useStyles10({
|
|
|
623
683
|
className
|
|
624
684
|
}) {
|
|
625
685
|
const { themeClass } = useTheme();
|
|
626
|
-
const root24 =
|
|
686
|
+
const root24 = useMemo12(
|
|
627
687
|
() => [themeClass, root7, disabled3 && disabled2, className].filter(Boolean).join(" "),
|
|
628
688
|
[themeClass, disabled3, className]
|
|
629
689
|
);
|
|
@@ -637,11 +697,11 @@ function useStyles10({
|
|
|
637
697
|
}
|
|
638
698
|
|
|
639
699
|
// src/components/radio/index.tsx
|
|
640
|
-
import { jsx as
|
|
700
|
+
import { jsx as jsx14, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
641
701
|
var Radio = forwardRef10(function Radio2({ checked, onChange, label: label7, name, value, disabled: disabled3, ...rest }, ref) {
|
|
642
702
|
const { root: root24, input: input6, circle: circle2, dot: dot3, label: labelClass } = useStyles10({ disabled: disabled3 });
|
|
643
703
|
return /* @__PURE__ */ jsxs7("label", { className: root24, children: [
|
|
644
|
-
/* @__PURE__ */
|
|
704
|
+
/* @__PURE__ */ jsx14(
|
|
645
705
|
"input",
|
|
646
706
|
{
|
|
647
707
|
ref,
|
|
@@ -655,8 +715,8 @@ var Radio = forwardRef10(function Radio2({ checked, onChange, label: label7, nam
|
|
|
655
715
|
...rest
|
|
656
716
|
}
|
|
657
717
|
),
|
|
658
|
-
/* @__PURE__ */
|
|
659
|
-
label7 != null && /* @__PURE__ */
|
|
718
|
+
/* @__PURE__ */ jsx14("span", { className: circle2, children: checked && /* @__PURE__ */ jsx14("span", { className: dot3 }) }),
|
|
719
|
+
label7 != null && /* @__PURE__ */ jsx14("span", { className: labelClass, children: label7 })
|
|
660
720
|
] });
|
|
661
721
|
});
|
|
662
722
|
|
|
@@ -664,7 +724,7 @@ var Radio = forwardRef10(function Radio2({ checked, onChange, label: label7, nam
|
|
|
664
724
|
import { forwardRef as forwardRef11 } from "react";
|
|
665
725
|
|
|
666
726
|
// src/components/switch/use-styles.ts
|
|
667
|
-
import { useMemo as
|
|
727
|
+
import { useMemo as useMemo13 } from "react";
|
|
668
728
|
|
|
669
729
|
// src/components/switch/use-styles.css.ts
|
|
670
730
|
var input3 = "surfaces_srOnly__1qa7atn0";
|
|
@@ -678,7 +738,7 @@ var trackChecked = "use-styles_trackChecked__1r6kem72";
|
|
|
678
738
|
// src/components/switch/use-styles.ts
|
|
679
739
|
function useStyles11({ checked }) {
|
|
680
740
|
const { themeClass } = useTheme();
|
|
681
|
-
return
|
|
741
|
+
return useMemo13(
|
|
682
742
|
() => ({
|
|
683
743
|
root: [themeClass, root8].filter(Boolean).join(" "),
|
|
684
744
|
input: input3,
|
|
@@ -691,11 +751,11 @@ function useStyles11({ checked }) {
|
|
|
691
751
|
}
|
|
692
752
|
|
|
693
753
|
// src/components/switch/index.tsx
|
|
694
|
-
import { jsx as
|
|
754
|
+
import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
695
755
|
var Switch = forwardRef11(function Switch2({ checked = false, onChange, label: label7, disabled: disabled3, ...rest }, ref) {
|
|
696
756
|
const { root: root24, input: input6, track: track4, knob: knob2, label: labelClass } = useStyles11({ checked });
|
|
697
757
|
return /* @__PURE__ */ jsxs8("label", { className: root24, children: [
|
|
698
|
-
/* @__PURE__ */
|
|
758
|
+
/* @__PURE__ */ jsx15(
|
|
699
759
|
"input",
|
|
700
760
|
{
|
|
701
761
|
ref,
|
|
@@ -712,8 +772,8 @@ var Switch = forwardRef11(function Switch2({ checked = false, onChange, label: l
|
|
|
712
772
|
...rest
|
|
713
773
|
}
|
|
714
774
|
),
|
|
715
|
-
/* @__PURE__ */
|
|
716
|
-
label7 != null && /* @__PURE__ */
|
|
775
|
+
/* @__PURE__ */ jsx15("span", { className: track4, children: /* @__PURE__ */ jsx15("span", { className: knob2 }) }),
|
|
776
|
+
label7 != null && /* @__PURE__ */ jsx15("span", { className: labelClass, children: label7 })
|
|
717
777
|
] });
|
|
718
778
|
});
|
|
719
779
|
|
|
@@ -724,7 +784,7 @@ import { forwardRef as forwardRef13 } from "react";
|
|
|
724
784
|
import { forwardRef as forwardRef12, useId } from "react";
|
|
725
785
|
|
|
726
786
|
// src/components/base-field/use-styles.ts
|
|
727
|
-
import { useMemo as
|
|
787
|
+
import { useMemo as useMemo14 } from "react";
|
|
728
788
|
|
|
729
789
|
// src/components/base-field/use-styles.css.ts
|
|
730
790
|
var field = "use-styles_field__1c3cgd3";
|
|
@@ -743,7 +803,7 @@ var trailingSlot = "use-styles_trailingSlot__1c3cgdb";
|
|
|
743
803
|
// src/components/base-field/use-styles.ts
|
|
744
804
|
function useStyles12({ error, hasStartIcon, hasTrailing, className }) {
|
|
745
805
|
const { themeClass } = useTheme();
|
|
746
|
-
return
|
|
806
|
+
return useMemo14(() => {
|
|
747
807
|
const root24 = [themeClass, root9].filter(Boolean).join(" ");
|
|
748
808
|
const labelText2 = [labelText, error && labelTextError].filter(Boolean).join(" ");
|
|
749
809
|
const input6 = [
|
|
@@ -767,8 +827,8 @@ function useStyles12({ error, hasStartIcon, hasTrailing, className }) {
|
|
|
767
827
|
}
|
|
768
828
|
|
|
769
829
|
// src/components/base-field/index.tsx
|
|
770
|
-
import { jsx as
|
|
771
|
-
var BaseField = forwardRef12(function BaseField2({ label: label7, help, error, startIcon: StartIcon, trailing: trailing2, id, className, children }, ref) {
|
|
830
|
+
import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
831
|
+
var BaseField = forwardRef12(function BaseField2({ label: label7, help, error, startIcon: StartIcon, trailing: trailing2, id, className, testId, children }, ref) {
|
|
772
832
|
const autoId = useId();
|
|
773
833
|
const controlId = id ?? autoId;
|
|
774
834
|
const errorMessage = error != null && error !== false && error !== true && error !== "" ? error : null;
|
|
@@ -781,27 +841,30 @@ var BaseField = forwardRef12(function BaseField2({ label: label7, help, error, s
|
|
|
781
841
|
hasTrailing: trailing2 != null,
|
|
782
842
|
className
|
|
783
843
|
});
|
|
844
|
+
const { testId: rootTestId, slot } = useTestId("field", testId);
|
|
784
845
|
const control = {
|
|
785
846
|
id: controlId,
|
|
786
847
|
className: classes.input,
|
|
787
848
|
ref,
|
|
788
849
|
"aria-describedby": messageId,
|
|
789
|
-
"aria-invalid": hasError ? true : void 0
|
|
850
|
+
"aria-invalid": hasError ? true : void 0,
|
|
851
|
+
"data-testid": slot("input")
|
|
790
852
|
};
|
|
791
|
-
return /* @__PURE__ */ jsxs9("div", { className: classes.root, children: [
|
|
792
|
-
label7 != null && /* @__PURE__ */
|
|
853
|
+
return /* @__PURE__ */ jsxs9("div", { className: classes.root, "data-testid": rootTestId, "data-state": states({ error: hasError }), children: [
|
|
854
|
+
label7 != null && /* @__PURE__ */ jsx16("label", { htmlFor: controlId, className: classes.labelText, "data-testid": slot("label"), children: label7 }),
|
|
793
855
|
/* @__PURE__ */ jsxs9("div", { className: classes.field, children: [
|
|
794
|
-
StartIcon != null && /* @__PURE__ */
|
|
856
|
+
StartIcon != null && /* @__PURE__ */ jsx16("span", { className: classes.startIconSlot, children: /* @__PURE__ */ jsx16(StartIcon, { size: 18 }) }),
|
|
795
857
|
children(control),
|
|
796
|
-
trailing2 != null && /* @__PURE__ */
|
|
858
|
+
trailing2 != null && /* @__PURE__ */ jsx16("span", { className: classes.trailingSlot, children: trailing2 })
|
|
797
859
|
] }),
|
|
798
860
|
message2 != null && // `aria-live` solo cuando el mensaje es un error: anuncia la validación al aparecer.
|
|
799
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ jsx16(
|
|
800
862
|
"span",
|
|
801
863
|
{
|
|
802
864
|
id: messageId,
|
|
803
865
|
className: classes.helpText,
|
|
804
866
|
"aria-live": errorMessage ? "polite" : void 0,
|
|
867
|
+
"data-testid": slot("message"),
|
|
805
868
|
children: message2
|
|
806
869
|
}
|
|
807
870
|
)
|
|
@@ -809,7 +872,7 @@ var BaseField = forwardRef12(function BaseField2({ label: label7, help, error, s
|
|
|
809
872
|
});
|
|
810
873
|
|
|
811
874
|
// src/components/text-field/index.tsx
|
|
812
|
-
import { jsx as
|
|
875
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
813
876
|
var TextField = forwardRef13(function TextField2({
|
|
814
877
|
label: label7,
|
|
815
878
|
help,
|
|
@@ -821,9 +884,11 @@ var TextField = forwardRef13(function TextField2({
|
|
|
821
884
|
onChange,
|
|
822
885
|
className,
|
|
823
886
|
id,
|
|
887
|
+
testId,
|
|
824
888
|
...rest
|
|
825
889
|
}, ref) {
|
|
826
|
-
|
|
890
|
+
const rawTestId = rest["data-testid"];
|
|
891
|
+
return /* @__PURE__ */ jsx17(
|
|
827
892
|
BaseField,
|
|
828
893
|
{
|
|
829
894
|
ref,
|
|
@@ -833,23 +898,26 @@ var TextField = forwardRef13(function TextField2({
|
|
|
833
898
|
startIcon,
|
|
834
899
|
id,
|
|
835
900
|
className,
|
|
901
|
+
testId,
|
|
836
902
|
children: ({ ref: controlRef, ...control }) => multiline ? (
|
|
837
903
|
// En multiline el control es un <textarea>: no reenviamos `controlRef` porque el
|
|
838
904
|
// tipo público de la ref es HTMLInputElement (la ref aplica solo a la rama <input>).
|
|
839
|
-
/* @__PURE__ */
|
|
905
|
+
/* @__PURE__ */ jsx17(
|
|
840
906
|
"textarea",
|
|
841
907
|
{
|
|
842
908
|
...rest,
|
|
843
909
|
...control,
|
|
910
|
+
"data-testid": rawTestId ?? control["data-testid"],
|
|
844
911
|
rows: rows ?? 4,
|
|
845
912
|
onChange: (e) => onChange?.(e.target.value)
|
|
846
913
|
}
|
|
847
914
|
)
|
|
848
|
-
) : /* @__PURE__ */
|
|
915
|
+
) : /* @__PURE__ */ jsx17(
|
|
849
916
|
"input",
|
|
850
917
|
{
|
|
851
918
|
...rest,
|
|
852
919
|
...control,
|
|
920
|
+
"data-testid": rawTestId ?? control["data-testid"],
|
|
853
921
|
ref: controlRef,
|
|
854
922
|
type,
|
|
855
923
|
onChange: (e) => onChange?.(e.target.value)
|
|
@@ -863,7 +931,7 @@ var TextField = forwardRef13(function TextField2({
|
|
|
863
931
|
import { forwardRef as forwardRef14, useState as useState3 } from "react";
|
|
864
932
|
|
|
865
933
|
// src/components/icons/eye/index.tsx
|
|
866
|
-
import { jsx as
|
|
934
|
+
import { jsx as jsx18, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
867
935
|
function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
868
936
|
return /* @__PURE__ */ jsxs10(
|
|
869
937
|
"svg",
|
|
@@ -880,15 +948,15 @@ function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
880
948
|
"aria-hidden": "true",
|
|
881
949
|
...rest,
|
|
882
950
|
children: [
|
|
883
|
-
/* @__PURE__ */
|
|
884
|
-
/* @__PURE__ */
|
|
951
|
+
/* @__PURE__ */ jsx18("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
952
|
+
/* @__PURE__ */ jsx18("circle", { cx: "12", cy: "12", r: "3" })
|
|
885
953
|
]
|
|
886
954
|
}
|
|
887
955
|
);
|
|
888
956
|
}
|
|
889
957
|
|
|
890
958
|
// src/components/icons/eye-off/index.tsx
|
|
891
|
-
import { jsx as
|
|
959
|
+
import { jsx as jsx19, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
892
960
|
function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
893
961
|
return /* @__PURE__ */ jsxs11(
|
|
894
962
|
"svg",
|
|
@@ -905,28 +973,28 @@ function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
905
973
|
"aria-hidden": "true",
|
|
906
974
|
...rest,
|
|
907
975
|
children: [
|
|
908
|
-
/* @__PURE__ */
|
|
909
|
-
/* @__PURE__ */
|
|
910
|
-
/* @__PURE__ */
|
|
911
|
-
/* @__PURE__ */
|
|
976
|
+
/* @__PURE__ */ jsx19("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
977
|
+
/* @__PURE__ */ jsx19("path", { d: "M10.73 5.08A10.43 10.43 0 0 1 12 5c7 0 10 7 10 7a13.16 13.16 0 0 1-1.67 2.68" }),
|
|
978
|
+
/* @__PURE__ */ jsx19("path", { d: "M6.61 6.61A13.526 13.526 0 0 0 2 12s3 7 10 7a9.74 9.74 0 0 0 5.39-1.61" }),
|
|
979
|
+
/* @__PURE__ */ jsx19("path", { d: "m2 2 20 20" })
|
|
912
980
|
]
|
|
913
981
|
}
|
|
914
982
|
);
|
|
915
983
|
}
|
|
916
984
|
|
|
917
985
|
// src/components/password-field/use-styles.ts
|
|
918
|
-
import { useMemo as
|
|
986
|
+
import { useMemo as useMemo15 } from "react";
|
|
919
987
|
|
|
920
988
|
// src/components/password-field/use-styles.css.ts
|
|
921
989
|
var revealButton = "use-styles_revealButton__rsu9d50";
|
|
922
990
|
|
|
923
991
|
// src/components/password-field/use-styles.ts
|
|
924
992
|
function useStyles13() {
|
|
925
|
-
return
|
|
993
|
+
return useMemo15(() => ({ revealButton }), []);
|
|
926
994
|
}
|
|
927
995
|
|
|
928
996
|
// src/components/password-field/index.tsx
|
|
929
|
-
import { jsx as
|
|
997
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
930
998
|
var PasswordField = forwardRef14(
|
|
931
999
|
function PasswordField2({ label: label7, help, error, startIcon, onChange, id, className, ...rest }, ref) {
|
|
932
1000
|
const [reveal, setReveal] = useState3(false);
|
|
@@ -937,7 +1005,7 @@ var PasswordField = forwardRef14(
|
|
|
937
1005
|
const handleToggleMouseDown = (e) => {
|
|
938
1006
|
e.preventDefault();
|
|
939
1007
|
};
|
|
940
|
-
const toggleButton = /* @__PURE__ */
|
|
1008
|
+
const toggleButton = /* @__PURE__ */ jsx20(
|
|
941
1009
|
"button",
|
|
942
1010
|
{
|
|
943
1011
|
type: "button",
|
|
@@ -946,10 +1014,10 @@ var PasswordField = forwardRef14(
|
|
|
946
1014
|
"aria-label": reveal ? "Ocultar contrase\xF1a" : "Mostrar contrase\xF1a",
|
|
947
1015
|
onMouseDown: handleToggleMouseDown,
|
|
948
1016
|
onClick: () => setReveal((r) => !r),
|
|
949
|
-
children: reveal ? /* @__PURE__ */
|
|
1017
|
+
children: reveal ? /* @__PURE__ */ jsx20(EyeOffIcon, { size: 18 }) : /* @__PURE__ */ jsx20(EyeIcon, { size: 18 })
|
|
950
1018
|
}
|
|
951
1019
|
);
|
|
952
|
-
return /* @__PURE__ */
|
|
1020
|
+
return /* @__PURE__ */ jsx20(
|
|
953
1021
|
BaseField,
|
|
954
1022
|
{
|
|
955
1023
|
ref,
|
|
@@ -960,7 +1028,7 @@ var PasswordField = forwardRef14(
|
|
|
960
1028
|
trailing: toggleButton,
|
|
961
1029
|
id,
|
|
962
1030
|
className,
|
|
963
|
-
children: (control) => /* @__PURE__ */
|
|
1031
|
+
children: (control) => /* @__PURE__ */ jsx20(
|
|
964
1032
|
"input",
|
|
965
1033
|
{
|
|
966
1034
|
...rest,
|
|
@@ -975,8 +1043,8 @@ var PasswordField = forwardRef14(
|
|
|
975
1043
|
);
|
|
976
1044
|
|
|
977
1045
|
// src/components/money-field/index.tsx
|
|
978
|
-
import { forwardRef as forwardRef15, useMemo as
|
|
979
|
-
import { jsx as
|
|
1046
|
+
import { forwardRef as forwardRef15, useMemo as useMemo16, useState as useState4 } from "react";
|
|
1047
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
980
1048
|
function parseAmount(raw) {
|
|
981
1049
|
const cleaned = raw.replace(/[^0-9.-]/g, "");
|
|
982
1050
|
if (cleaned === "" || cleaned === "-" || cleaned === ".") return null;
|
|
@@ -1000,7 +1068,7 @@ var MoneyField = forwardRef15(function MoneyField2({
|
|
|
1000
1068
|
}, ref) {
|
|
1001
1069
|
const [focused, setFocused] = useState4(false);
|
|
1002
1070
|
const [draft, setDraft] = useState4("");
|
|
1003
|
-
const formatter =
|
|
1071
|
+
const formatter = useMemo16(
|
|
1004
1072
|
() => new Intl.NumberFormat(locale, { style: "currency", currency }),
|
|
1005
1073
|
[locale, currency]
|
|
1006
1074
|
);
|
|
@@ -1016,7 +1084,7 @@ var MoneyField = forwardRef15(function MoneyField2({
|
|
|
1016
1084
|
onChange?.(parseAmount(draft));
|
|
1017
1085
|
onBlur?.(e);
|
|
1018
1086
|
};
|
|
1019
|
-
return /* @__PURE__ */
|
|
1087
|
+
return /* @__PURE__ */ jsx21(
|
|
1020
1088
|
BaseField,
|
|
1021
1089
|
{
|
|
1022
1090
|
ref,
|
|
@@ -1026,7 +1094,7 @@ var MoneyField = forwardRef15(function MoneyField2({
|
|
|
1026
1094
|
startIcon,
|
|
1027
1095
|
id,
|
|
1028
1096
|
className,
|
|
1029
|
-
children: (control) => /* @__PURE__ */
|
|
1097
|
+
children: (control) => /* @__PURE__ */ jsx21(
|
|
1030
1098
|
"input",
|
|
1031
1099
|
{
|
|
1032
1100
|
...rest,
|
|
@@ -1046,7 +1114,7 @@ var MoneyField = forwardRef15(function MoneyField2({
|
|
|
1046
1114
|
import { forwardRef as forwardRef16 } from "react";
|
|
1047
1115
|
|
|
1048
1116
|
// src/components/icon-button/use-styles.ts
|
|
1049
|
-
import { useMemo as
|
|
1117
|
+
import { useMemo as useMemo17 } from "react";
|
|
1050
1118
|
|
|
1051
1119
|
// src/components/icon-button/use-styles.css.ts
|
|
1052
1120
|
var accent = "use-styles_accent__18np0q02";
|
|
@@ -1059,7 +1127,7 @@ function useStyles14({
|
|
|
1059
1127
|
tone: tone4 = "ink"
|
|
1060
1128
|
}) {
|
|
1061
1129
|
const { themeClass } = useTheme();
|
|
1062
|
-
const root24 =
|
|
1130
|
+
const root24 = useMemo17(
|
|
1063
1131
|
() => [themeClass, root10, tone4 === "accent" && accent, active2 && active].filter(Boolean).join(" "),
|
|
1064
1132
|
[themeClass, active2, tone4]
|
|
1065
1133
|
);
|
|
@@ -1067,8 +1135,8 @@ function useStyles14({
|
|
|
1067
1135
|
}
|
|
1068
1136
|
|
|
1069
1137
|
// src/components/icon-button/index.tsx
|
|
1070
|
-
import { jsx as
|
|
1071
|
-
var IconButton = forwardRef16(function IconButton2({ icon: Icon, active: active2, tone: tone4, title, type = "button", ...rest }, ref) {
|
|
1138
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1139
|
+
var IconButton = forwardRef16(function IconButton2({ icon: Icon, active: active2, tone: tone4, title, type = "button", testId, ...rest }, ref) {
|
|
1072
1140
|
if (typeof process !== "undefined" && process.env.NODE_ENV !== "production") {
|
|
1073
1141
|
const restProps = rest;
|
|
1074
1142
|
const hasName = title.trim() !== "" || restProps["aria-label"] != null || restProps["aria-labelledby"] != null;
|
|
@@ -1077,14 +1145,28 @@ var IconButton = forwardRef16(function IconButton2({ icon: Icon, active: active2
|
|
|
1077
1145
|
}
|
|
1078
1146
|
}
|
|
1079
1147
|
const { root: root24 } = useStyles14({ active: active2, tone: tone4 });
|
|
1080
|
-
|
|
1148
|
+
const { testId: dataTestId } = useTestId("button", testId);
|
|
1149
|
+
return /* @__PURE__ */ jsx22(
|
|
1150
|
+
"button",
|
|
1151
|
+
{
|
|
1152
|
+
ref,
|
|
1153
|
+
type,
|
|
1154
|
+
className: root24,
|
|
1155
|
+
"aria-label": title,
|
|
1156
|
+
title,
|
|
1157
|
+
"data-testid": dataTestId,
|
|
1158
|
+
"data-state": states({ active: active2, disabled: rest.disabled }),
|
|
1159
|
+
...rest,
|
|
1160
|
+
children: /* @__PURE__ */ jsx22(Icon, { size: 18 })
|
|
1161
|
+
}
|
|
1162
|
+
);
|
|
1081
1163
|
});
|
|
1082
1164
|
|
|
1083
1165
|
// src/components/card/index.tsx
|
|
1084
1166
|
import { forwardRef as forwardRef17 } from "react";
|
|
1085
1167
|
|
|
1086
1168
|
// src/components/card/use-styles.ts
|
|
1087
|
-
import { useMemo as
|
|
1169
|
+
import { useMemo as useMemo18 } from "react";
|
|
1088
1170
|
|
|
1089
1171
|
// src/components/card/use-styles.css.ts
|
|
1090
1172
|
var body = "use-styles_body__1fuvd022";
|
|
@@ -1095,27 +1177,27 @@ var root11 = "use-styles_root__1fuvd020";
|
|
|
1095
1177
|
// src/components/card/use-styles.ts
|
|
1096
1178
|
function useStyles15() {
|
|
1097
1179
|
const { themeClass } = useTheme();
|
|
1098
|
-
const root24 =
|
|
1180
|
+
const root24 = useMemo18(() => `${themeClass} ${root11}`, [themeClass]);
|
|
1099
1181
|
return { root: root24, header, body, footer };
|
|
1100
1182
|
}
|
|
1101
1183
|
|
|
1102
1184
|
// src/components/card/index.tsx
|
|
1103
|
-
import { jsx as
|
|
1185
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1104
1186
|
var CardRoot = forwardRef17(function Card({ children, ...rest }, ref) {
|
|
1105
1187
|
const { root: root24 } = useStyles15();
|
|
1106
|
-
return /* @__PURE__ */
|
|
1188
|
+
return /* @__PURE__ */ jsx23("div", { ref, className: root24, ...rest, children });
|
|
1107
1189
|
});
|
|
1108
1190
|
function CardHeader({ children, ...rest }) {
|
|
1109
1191
|
const { header: header3 } = useStyles15();
|
|
1110
|
-
return /* @__PURE__ */
|
|
1192
|
+
return /* @__PURE__ */ jsx23("div", { className: header3, ...rest, children });
|
|
1111
1193
|
}
|
|
1112
1194
|
function CardBody({ children, ...rest }) {
|
|
1113
1195
|
const { body: body3 } = useStyles15();
|
|
1114
|
-
return /* @__PURE__ */
|
|
1196
|
+
return /* @__PURE__ */ jsx23("div", { className: body3, ...rest, children });
|
|
1115
1197
|
}
|
|
1116
1198
|
function CardFooter({ children, ...rest }) {
|
|
1117
1199
|
const { footer: footer2 } = useStyles15();
|
|
1118
|
-
return /* @__PURE__ */
|
|
1200
|
+
return /* @__PURE__ */ jsx23("div", { className: footer2, ...rest, children });
|
|
1119
1201
|
}
|
|
1120
1202
|
CardRoot.displayName = "Card";
|
|
1121
1203
|
CardHeader.displayName = "Card.Header";
|
|
@@ -1131,7 +1213,7 @@ var Card2 = Object.assign(CardRoot, {
|
|
|
1131
1213
|
import { forwardRef as forwardRef18 } from "react";
|
|
1132
1214
|
|
|
1133
1215
|
// src/components/icons/circle-check/index.tsx
|
|
1134
|
-
import { jsx as
|
|
1216
|
+
import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1135
1217
|
function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1136
1218
|
return /* @__PURE__ */ jsxs12(
|
|
1137
1219
|
"svg",
|
|
@@ -1148,15 +1230,15 @@ function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1148
1230
|
"aria-hidden": "true",
|
|
1149
1231
|
...rest,
|
|
1150
1232
|
children: [
|
|
1151
|
-
/* @__PURE__ */
|
|
1152
|
-
/* @__PURE__ */
|
|
1233
|
+
/* @__PURE__ */ jsx24("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1234
|
+
/* @__PURE__ */ jsx24("path", { d: "m9 12 2 2 4-4" })
|
|
1153
1235
|
]
|
|
1154
1236
|
}
|
|
1155
1237
|
);
|
|
1156
1238
|
}
|
|
1157
1239
|
|
|
1158
1240
|
// src/components/icons/circle-x/index.tsx
|
|
1159
|
-
import { jsx as
|
|
1241
|
+
import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1160
1242
|
function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1161
1243
|
return /* @__PURE__ */ jsxs13(
|
|
1162
1244
|
"svg",
|
|
@@ -1173,16 +1255,16 @@ function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1173
1255
|
"aria-hidden": "true",
|
|
1174
1256
|
...rest,
|
|
1175
1257
|
children: [
|
|
1176
|
-
/* @__PURE__ */
|
|
1177
|
-
/* @__PURE__ */
|
|
1178
|
-
/* @__PURE__ */
|
|
1258
|
+
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1259
|
+
/* @__PURE__ */ jsx25("path", { d: "m15 9-6 6" }),
|
|
1260
|
+
/* @__PURE__ */ jsx25("path", { d: "m9 9 6 6" })
|
|
1179
1261
|
]
|
|
1180
1262
|
}
|
|
1181
1263
|
);
|
|
1182
1264
|
}
|
|
1183
1265
|
|
|
1184
1266
|
// src/components/icons/info/index.tsx
|
|
1185
|
-
import { jsx as
|
|
1267
|
+
import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1186
1268
|
function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1187
1269
|
return /* @__PURE__ */ jsxs14(
|
|
1188
1270
|
"svg",
|
|
@@ -1199,16 +1281,16 @@ function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1199
1281
|
"aria-hidden": "true",
|
|
1200
1282
|
...rest,
|
|
1201
1283
|
children: [
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
/* @__PURE__ */
|
|
1284
|
+
/* @__PURE__ */ jsx26("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1285
|
+
/* @__PURE__ */ jsx26("path", { d: "M12 16v-4" }),
|
|
1286
|
+
/* @__PURE__ */ jsx26("path", { d: "M12 8h.01" })
|
|
1205
1287
|
]
|
|
1206
1288
|
}
|
|
1207
1289
|
);
|
|
1208
1290
|
}
|
|
1209
1291
|
|
|
1210
1292
|
// src/components/icons/triangle-alert/index.tsx
|
|
1211
|
-
import { jsx as
|
|
1293
|
+
import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1212
1294
|
function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1213
1295
|
return /* @__PURE__ */ jsxs15(
|
|
1214
1296
|
"svg",
|
|
@@ -1225,16 +1307,16 @@ function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1225
1307
|
"aria-hidden": "true",
|
|
1226
1308
|
...rest,
|
|
1227
1309
|
children: [
|
|
1228
|
-
/* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
1230
|
-
/* @__PURE__ */
|
|
1310
|
+
/* @__PURE__ */ jsx27("path", { d: "m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3Z" }),
|
|
1311
|
+
/* @__PURE__ */ jsx27("path", { d: "M12 9v4" }),
|
|
1312
|
+
/* @__PURE__ */ jsx27("path", { d: "M12 17h.01" })
|
|
1231
1313
|
]
|
|
1232
1314
|
}
|
|
1233
1315
|
);
|
|
1234
1316
|
}
|
|
1235
1317
|
|
|
1236
1318
|
// src/components/alert/use-styles.ts
|
|
1237
|
-
import { useMemo as
|
|
1319
|
+
import { useMemo as useMemo19 } from "react";
|
|
1238
1320
|
|
|
1239
1321
|
// src/components/alert/use-styles.css.ts
|
|
1240
1322
|
var content = "use-styles_content__ivsh6u6";
|
|
@@ -1248,7 +1330,7 @@ function useStyles16({
|
|
|
1248
1330
|
className
|
|
1249
1331
|
}) {
|
|
1250
1332
|
const { themeClass } = useTheme();
|
|
1251
|
-
const root24 =
|
|
1333
|
+
const root24 = useMemo19(
|
|
1252
1334
|
() => [themeClass, root12, severity[severity2], className].filter(Boolean).join(" "),
|
|
1253
1335
|
[themeClass, severity2, className]
|
|
1254
1336
|
);
|
|
@@ -1260,7 +1342,7 @@ function useStyles16({
|
|
|
1260
1342
|
}
|
|
1261
1343
|
|
|
1262
1344
|
// src/components/alert/index.tsx
|
|
1263
|
-
import { jsx as
|
|
1345
|
+
import { jsx as jsx28, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1264
1346
|
var defaultIcons = {
|
|
1265
1347
|
info: InfoIcon,
|
|
1266
1348
|
ok: CircleCheckIcon,
|
|
@@ -1271,10 +1353,10 @@ var Alert = forwardRef18(function Alert2({ severity: severity2 = "info", title,
|
|
|
1271
1353
|
const styles = useStyles16({ severity: severity2, className });
|
|
1272
1354
|
const IconComponent = icon ?? defaultIcons[severity2];
|
|
1273
1355
|
return /* @__PURE__ */ jsxs16("div", { ref, role: "alert", className: styles.root, ...rest, children: [
|
|
1274
|
-
/* @__PURE__ */
|
|
1356
|
+
/* @__PURE__ */ jsx28("span", { className: styles.iconSlot, children: /* @__PURE__ */ jsx28(IconComponent, {}) }),
|
|
1275
1357
|
/* @__PURE__ */ jsxs16("div", { className: styles.content, children: [
|
|
1276
|
-
title != null && /* @__PURE__ */
|
|
1277
|
-
children != null && /* @__PURE__ */
|
|
1358
|
+
title != null && /* @__PURE__ */ jsx28(Typography, { variant: "h4", children: title }),
|
|
1359
|
+
children != null && /* @__PURE__ */ jsx28(Typography, { variant: "body", color: "fg2", children })
|
|
1278
1360
|
] })
|
|
1279
1361
|
] });
|
|
1280
1362
|
});
|
|
@@ -1290,7 +1372,7 @@ import {
|
|
|
1290
1372
|
} from "react";
|
|
1291
1373
|
|
|
1292
1374
|
// src/components/tooltip/use-styles.ts
|
|
1293
|
-
import { useMemo as
|
|
1375
|
+
import { useMemo as useMemo20 } from "react";
|
|
1294
1376
|
|
|
1295
1377
|
// src/components/tooltip/use-styles.css.ts
|
|
1296
1378
|
var bubble = "use-styles_bubble__h9kvh1 surfaces_inkySurface__1qa7atn2";
|
|
@@ -1302,11 +1384,11 @@ function useStyles17({
|
|
|
1302
1384
|
placement: placement2 = "top"
|
|
1303
1385
|
}) {
|
|
1304
1386
|
const { themeClass } = useTheme();
|
|
1305
|
-
const wrapper4 =
|
|
1387
|
+
const wrapper4 = useMemo20(
|
|
1306
1388
|
() => [themeClass, wrapper].filter(Boolean).join(" "),
|
|
1307
1389
|
[themeClass]
|
|
1308
1390
|
);
|
|
1309
|
-
const bubble2 =
|
|
1391
|
+
const bubble2 = useMemo20(
|
|
1310
1392
|
() => [bubble, placement[placement2]].filter(Boolean).join(" "),
|
|
1311
1393
|
[placement2]
|
|
1312
1394
|
);
|
|
@@ -1314,7 +1396,7 @@ function useStyles17({
|
|
|
1314
1396
|
}
|
|
1315
1397
|
|
|
1316
1398
|
// src/components/tooltip/index.tsx
|
|
1317
|
-
import { jsx as
|
|
1399
|
+
import { jsx as jsx29, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1318
1400
|
var HIDE_DELAY = 120;
|
|
1319
1401
|
var Tooltip = forwardRef19(function Tooltip2({ label: label7, children, placement: placement2 }, ref) {
|
|
1320
1402
|
const [open, setOpen] = useState5(false);
|
|
@@ -1365,7 +1447,7 @@ var Tooltip = forwardRef19(function Tooltip2({ label: label7, children, placemen
|
|
|
1365
1447
|
onKeyDown: handleKeyDown,
|
|
1366
1448
|
children: [
|
|
1367
1449
|
trigger2,
|
|
1368
|
-
open && /* @__PURE__ */
|
|
1450
|
+
open && /* @__PURE__ */ jsx29(
|
|
1369
1451
|
"span",
|
|
1370
1452
|
{
|
|
1371
1453
|
id: tooltipId,
|
|
@@ -1385,9 +1467,9 @@ var Tooltip = forwardRef19(function Tooltip2({ label: label7, children, placemen
|
|
|
1385
1467
|
import { forwardRef as forwardRef20, useEffect as useEffect4, useId as useId3, useRef as useRef3, useState as useState6 } from "react";
|
|
1386
1468
|
|
|
1387
1469
|
// src/components/icons/chevron-down/index.tsx
|
|
1388
|
-
import { jsx as
|
|
1470
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
1389
1471
|
function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1390
|
-
return /* @__PURE__ */
|
|
1472
|
+
return /* @__PURE__ */ jsx30(
|
|
1391
1473
|
"svg",
|
|
1392
1474
|
{
|
|
1393
1475
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1401,13 +1483,13 @@ function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1401
1483
|
strokeLinejoin: "round",
|
|
1402
1484
|
"aria-hidden": "true",
|
|
1403
1485
|
...rest,
|
|
1404
|
-
children: /* @__PURE__ */
|
|
1486
|
+
children: /* @__PURE__ */ jsx30("path", { d: "m6 9 6 6 6-6" })
|
|
1405
1487
|
}
|
|
1406
1488
|
);
|
|
1407
1489
|
}
|
|
1408
1490
|
|
|
1409
1491
|
// src/components/select/use-styles.ts
|
|
1410
|
-
import { useMemo as
|
|
1492
|
+
import { useMemo as useMemo21 } from "react";
|
|
1411
1493
|
|
|
1412
1494
|
// src/components/select/use-styles.css.ts
|
|
1413
1495
|
var chevron = "use-styles_chevron__1w1czpb4";
|
|
@@ -1426,7 +1508,7 @@ function useStyles18({
|
|
|
1426
1508
|
open = false
|
|
1427
1509
|
}) {
|
|
1428
1510
|
const { themeClass } = useTheme();
|
|
1429
|
-
return
|
|
1511
|
+
return useMemo21(() => {
|
|
1430
1512
|
const chevron3 = [chevron, open && chevronOpen].filter(Boolean).join(" ");
|
|
1431
1513
|
return {
|
|
1432
1514
|
root: [themeClass, root13].filter(Boolean).join(" "),
|
|
@@ -1441,7 +1523,7 @@ function useStyles18({
|
|
|
1441
1523
|
}
|
|
1442
1524
|
|
|
1443
1525
|
// src/components/select/index.tsx
|
|
1444
|
-
import { jsx as
|
|
1526
|
+
import { jsx as jsx31, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1445
1527
|
var Select = forwardRef20(function Select2({ options, value, onChange, placeholder: placeholder2, label: label7, disabled: disabled3, ...rest }, ref) {
|
|
1446
1528
|
const [open, setOpen] = useState6(false);
|
|
1447
1529
|
const [activeIndex, setActiveIndex] = useState6(0);
|
|
@@ -1524,7 +1606,7 @@ var Select = forwardRef20(function Select2({ options, value, onChange, placehold
|
|
|
1524
1606
|
}
|
|
1525
1607
|
};
|
|
1526
1608
|
return /* @__PURE__ */ jsxs18("div", { ref: setRootRef, className: root24, ...rest, children: [
|
|
1527
|
-
label7 && /* @__PURE__ */
|
|
1609
|
+
label7 && /* @__PURE__ */ jsx31("span", { id: labelId, className: labelClass, children: label7 }),
|
|
1528
1610
|
/* @__PURE__ */ jsxs18(
|
|
1529
1611
|
"button",
|
|
1530
1612
|
{
|
|
@@ -1545,17 +1627,17 @@ var Select = forwardRef20(function Select2({ options, value, onChange, placehold
|
|
|
1545
1627
|
},
|
|
1546
1628
|
onKeyDown: handleKeyDown,
|
|
1547
1629
|
children: [
|
|
1548
|
-
selected3 ? selected3.label : /* @__PURE__ */
|
|
1549
|
-
/* @__PURE__ */
|
|
1630
|
+
selected3 ? selected3.label : /* @__PURE__ */ jsx31("span", { className: placeholderClass, children: placeholder2 }),
|
|
1631
|
+
/* @__PURE__ */ jsx31("span", { className: chevron3, children: /* @__PURE__ */ jsx31(ChevronDownIcon, { size: 18 }) })
|
|
1550
1632
|
]
|
|
1551
1633
|
}
|
|
1552
1634
|
),
|
|
1553
|
-
open && /* @__PURE__ */
|
|
1635
|
+
open && /* @__PURE__ */ jsx31("div", { className: menu2, role: "listbox", children: options.map((option2, index) => {
|
|
1554
1636
|
const isSelected = option2.value === value;
|
|
1555
1637
|
const isActive = index === activeIndex;
|
|
1556
1638
|
return (
|
|
1557
1639
|
// biome-ignore lint/a11y/useKeyWithClickEvents: keyboard nav lives on the trigger via aria-activedescendant; options are not focusable.
|
|
1558
|
-
/* @__PURE__ */
|
|
1640
|
+
/* @__PURE__ */ jsx31(
|
|
1559
1641
|
"div",
|
|
1560
1642
|
{
|
|
1561
1643
|
id: optionId(index),
|
|
@@ -1577,7 +1659,7 @@ var Select = forwardRef20(function Select2({ options, value, onChange, placehold
|
|
|
1577
1659
|
import { forwardRef as forwardRef21 } from "react";
|
|
1578
1660
|
|
|
1579
1661
|
// src/components/slider/use-styles.ts
|
|
1580
|
-
import { useMemo as
|
|
1662
|
+
import { useMemo as useMemo22 } from "react";
|
|
1581
1663
|
|
|
1582
1664
|
// src/components/slider/use-styles.css.ts
|
|
1583
1665
|
var input5 = "use-styles_input__okw59n3";
|
|
@@ -1591,7 +1673,7 @@ var wrapper2 = "use-styles_wrapper__okw59n6";
|
|
|
1591
1673
|
// src/components/slider/use-styles.ts
|
|
1592
1674
|
function useStyles19() {
|
|
1593
1675
|
const { themeClass } = useTheme();
|
|
1594
|
-
return
|
|
1676
|
+
return useMemo22(() => {
|
|
1595
1677
|
const root24 = [themeClass, root14].filter(Boolean).join(" ");
|
|
1596
1678
|
return {
|
|
1597
1679
|
wrapper: wrapper2,
|
|
@@ -1606,7 +1688,7 @@ function useStyles19() {
|
|
|
1606
1688
|
}
|
|
1607
1689
|
|
|
1608
1690
|
// src/components/slider/index.tsx
|
|
1609
|
-
import { jsx as
|
|
1691
|
+
import { jsx as jsx32, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1610
1692
|
var Slider = forwardRef21(function Slider2({ value = 0, onChange, min = 0, max = 100, step: step2 = 1, disabled: disabled3, label: label7, ...rest }, ref) {
|
|
1611
1693
|
const { wrapper: wrapper4, label: labelClass, root: root24, track: track4, range: range2, thumb: thumb2, input: input6 } = useStyles19();
|
|
1612
1694
|
const span = max - min;
|
|
@@ -1616,11 +1698,11 @@ var Slider = forwardRef21(function Slider2({ value = 0, onChange, min = 0, max =
|
|
|
1616
1698
|
onChange?.(Number(e.target.value));
|
|
1617
1699
|
};
|
|
1618
1700
|
return /* @__PURE__ */ jsxs19("span", { className: wrapper4, children: [
|
|
1619
|
-
label7 ? /* @__PURE__ */
|
|
1701
|
+
label7 ? /* @__PURE__ */ jsx32("span", { className: labelClass, children: label7 }) : null,
|
|
1620
1702
|
/* @__PURE__ */ jsxs19("span", { className: root24, children: [
|
|
1621
|
-
/* @__PURE__ */
|
|
1622
|
-
/* @__PURE__ */
|
|
1623
|
-
/* @__PURE__ */
|
|
1703
|
+
/* @__PURE__ */ jsx32("span", { className: track4 }),
|
|
1704
|
+
/* @__PURE__ */ jsx32("span", { className: range2, style: { width: `${clamped}%` } }),
|
|
1705
|
+
/* @__PURE__ */ jsx32(
|
|
1624
1706
|
"input",
|
|
1625
1707
|
{
|
|
1626
1708
|
ref,
|
|
@@ -1635,7 +1717,7 @@ var Slider = forwardRef21(function Slider2({ value = 0, onChange, min = 0, max =
|
|
|
1635
1717
|
...rest
|
|
1636
1718
|
}
|
|
1637
1719
|
),
|
|
1638
|
-
/* @__PURE__ */
|
|
1720
|
+
/* @__PURE__ */ jsx32("span", { className: thumb2, style: { left: `${clamped}%` } })
|
|
1639
1721
|
] })
|
|
1640
1722
|
] });
|
|
1641
1723
|
});
|
|
@@ -1644,7 +1726,7 @@ var Slider = forwardRef21(function Slider2({ value = 0, onChange, min = 0, max =
|
|
|
1644
1726
|
import { forwardRef as forwardRef22, useState as useState7 } from "react";
|
|
1645
1727
|
|
|
1646
1728
|
// src/components/accordion/use-styles.ts
|
|
1647
|
-
import { useMemo as
|
|
1729
|
+
import { useMemo as useMemo23 } from "react";
|
|
1648
1730
|
|
|
1649
1731
|
// src/components/accordion/use-styles.css.ts
|
|
1650
1732
|
var chevron2 = "use-styles_chevron__1cjrdh93";
|
|
@@ -1657,7 +1739,7 @@ var root15 = "use-styles_root__1cjrdh90";
|
|
|
1657
1739
|
// src/components/accordion/use-styles.ts
|
|
1658
1740
|
function useStyles20({ className }) {
|
|
1659
1741
|
const { themeClass } = useTheme();
|
|
1660
|
-
return
|
|
1742
|
+
return useMemo23(
|
|
1661
1743
|
() => ({
|
|
1662
1744
|
root: [themeClass, root15, className].filter(Boolean).join(" "),
|
|
1663
1745
|
item,
|
|
@@ -1670,7 +1752,7 @@ function useStyles20({ className }) {
|
|
|
1670
1752
|
}
|
|
1671
1753
|
|
|
1672
1754
|
// src/components/accordion/index.tsx
|
|
1673
|
-
import { jsx as
|
|
1755
|
+
import { jsx as jsx33, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1674
1756
|
var Accordion = forwardRef22(function Accordion2({ items, multiple = false, defaultOpen = [], className }, ref) {
|
|
1675
1757
|
const [open, setOpen] = useState7(defaultOpen);
|
|
1676
1758
|
const { root: root24, item: item3, header: header3, chevronFor, panel: panel3 } = useStyles20({ className });
|
|
@@ -1681,7 +1763,7 @@ var Accordion = forwardRef22(function Accordion2({ items, multiple = false, defa
|
|
|
1681
1763
|
return multiple ? [...current2, id] : [id];
|
|
1682
1764
|
});
|
|
1683
1765
|
};
|
|
1684
|
-
return /* @__PURE__ */
|
|
1766
|
+
return /* @__PURE__ */ jsx33("div", { ref, className: root24, children: items.map((it) => {
|
|
1685
1767
|
const isOpen = open.includes(it.id);
|
|
1686
1768
|
const panelId = `accordion-panel-${it.id}`;
|
|
1687
1769
|
const headerId = `accordion-header-${it.id}`;
|
|
@@ -1697,11 +1779,11 @@ var Accordion = forwardRef22(function Accordion2({ items, multiple = false, defa
|
|
|
1697
1779
|
onClick: () => toggle(it.id),
|
|
1698
1780
|
children: [
|
|
1699
1781
|
it.title,
|
|
1700
|
-
/* @__PURE__ */
|
|
1782
|
+
/* @__PURE__ */ jsx33(ChevronDownIcon, { className: chevronFor(isOpen) })
|
|
1701
1783
|
]
|
|
1702
1784
|
}
|
|
1703
1785
|
),
|
|
1704
|
-
isOpen && /* @__PURE__ */
|
|
1786
|
+
isOpen && /* @__PURE__ */ jsx33("div", { id: panelId, className: panel3, role: "region", "aria-labelledby": headerId, children: it.content })
|
|
1705
1787
|
] }, it.id);
|
|
1706
1788
|
}) });
|
|
1707
1789
|
});
|
|
@@ -1710,9 +1792,9 @@ var Accordion = forwardRef22(function Accordion2({ items, multiple = false, defa
|
|
|
1710
1792
|
import { Fragment, forwardRef as forwardRef23 } from "react";
|
|
1711
1793
|
|
|
1712
1794
|
// src/components/icons/chevron-right/index.tsx
|
|
1713
|
-
import { jsx as
|
|
1795
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
1714
1796
|
function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1715
|
-
return /* @__PURE__ */
|
|
1797
|
+
return /* @__PURE__ */ jsx34(
|
|
1716
1798
|
"svg",
|
|
1717
1799
|
{
|
|
1718
1800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1726,13 +1808,13 @@ function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1726
1808
|
strokeLinejoin: "round",
|
|
1727
1809
|
"aria-hidden": "true",
|
|
1728
1810
|
...rest,
|
|
1729
|
-
children: /* @__PURE__ */
|
|
1811
|
+
children: /* @__PURE__ */ jsx34("path", { d: "m9 18 6-6-6-6" })
|
|
1730
1812
|
}
|
|
1731
1813
|
);
|
|
1732
1814
|
}
|
|
1733
1815
|
|
|
1734
1816
|
// src/components/breadcrumbs/use-styles.ts
|
|
1735
|
-
import { useMemo as
|
|
1817
|
+
import { useMemo as useMemo24 } from "react";
|
|
1736
1818
|
|
|
1737
1819
|
// src/components/breadcrumbs/use-styles.css.ts
|
|
1738
1820
|
var crumb = "use-styles_crumb__7u0du61";
|
|
@@ -1743,7 +1825,7 @@ var separator = "use-styles_separator__7u0du63";
|
|
|
1743
1825
|
// src/components/breadcrumbs/use-styles.ts
|
|
1744
1826
|
function useStyles21({ className }) {
|
|
1745
1827
|
const { themeClass } = useTheme();
|
|
1746
|
-
const root24 =
|
|
1828
|
+
const root24 = useMemo24(
|
|
1747
1829
|
() => [themeClass, root16, className].filter(Boolean).join(" "),
|
|
1748
1830
|
[themeClass, className]
|
|
1749
1831
|
);
|
|
@@ -1751,15 +1833,15 @@ function useStyles21({ className }) {
|
|
|
1751
1833
|
}
|
|
1752
1834
|
|
|
1753
1835
|
// src/components/breadcrumbs/index.tsx
|
|
1754
|
-
import { jsx as
|
|
1836
|
+
import { jsx as jsx35, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1755
1837
|
var Breadcrumbs = forwardRef23(function Breadcrumbs2({ items, className, ...rest }, ref) {
|
|
1756
1838
|
const { root: root24, crumb: crumb2, current: current2, separator: separator2 } = useStyles21({ className });
|
|
1757
|
-
return /* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsx35("nav", { ref, "aria-label": "Breadcrumb", className: root24, ...rest, children: items.map((item3, index) => {
|
|
1758
1840
|
const isLast = index === items.length - 1;
|
|
1759
1841
|
const key = index;
|
|
1760
1842
|
return /* @__PURE__ */ jsxs21(Fragment, { children: [
|
|
1761
|
-
isLast ? /* @__PURE__ */
|
|
1762
|
-
!isLast && /* @__PURE__ */
|
|
1843
|
+
isLast ? /* @__PURE__ */ jsx35("span", { className: current2, "aria-current": "page", children: item3.label }) : item3.href ? /* @__PURE__ */ jsx35("a", { className: crumb2, href: item3.href, children: item3.label }) : /* @__PURE__ */ jsx35("span", { className: crumb2, children: item3.label }),
|
|
1844
|
+
!isLast && /* @__PURE__ */ jsx35("span", { className: separator2, children: /* @__PURE__ */ jsx35(ChevronRightIcon, { size: 14 }) })
|
|
1763
1845
|
] }, key);
|
|
1764
1846
|
}) });
|
|
1765
1847
|
});
|
|
@@ -1768,9 +1850,9 @@ var Breadcrumbs = forwardRef23(function Breadcrumbs2({ items, className, ...rest
|
|
|
1768
1850
|
import { forwardRef as forwardRef24 } from "react";
|
|
1769
1851
|
|
|
1770
1852
|
// src/components/icons/chevron-left/index.tsx
|
|
1771
|
-
import { jsx as
|
|
1853
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
1772
1854
|
function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1773
|
-
return /* @__PURE__ */
|
|
1855
|
+
return /* @__PURE__ */ jsx36(
|
|
1774
1856
|
"svg",
|
|
1775
1857
|
{
|
|
1776
1858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1784,13 +1866,13 @@ function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1784
1866
|
strokeLinejoin: "round",
|
|
1785
1867
|
"aria-hidden": "true",
|
|
1786
1868
|
...rest,
|
|
1787
|
-
children: /* @__PURE__ */
|
|
1869
|
+
children: /* @__PURE__ */ jsx36("path", { d: "m15 18-6-6 6-6" })
|
|
1788
1870
|
}
|
|
1789
1871
|
);
|
|
1790
1872
|
}
|
|
1791
1873
|
|
|
1792
1874
|
// src/components/pagination/use-styles.ts
|
|
1793
|
-
import { useMemo as
|
|
1875
|
+
import { useMemo as useMemo25 } from "react";
|
|
1794
1876
|
|
|
1795
1877
|
// src/components/pagination/use-styles.css.ts
|
|
1796
1878
|
var ellipsis = "use-styles_ellipsis__1azgzoh3";
|
|
@@ -1802,7 +1884,7 @@ var root17 = "use-styles_root__1azgzoh0";
|
|
|
1802
1884
|
// src/components/pagination/use-styles.ts
|
|
1803
1885
|
function useStyles22() {
|
|
1804
1886
|
const { themeClass } = useTheme();
|
|
1805
|
-
return
|
|
1887
|
+
return useMemo25(
|
|
1806
1888
|
() => ({
|
|
1807
1889
|
root: [themeClass, root17].filter(Boolean).join(" "),
|
|
1808
1890
|
pageBtnFor: (active2) => [pageBtn, active2 && pageActive].filter(Boolean).join(" "),
|
|
@@ -1814,7 +1896,7 @@ function useStyles22() {
|
|
|
1814
1896
|
}
|
|
1815
1897
|
|
|
1816
1898
|
// src/components/pagination/index.tsx
|
|
1817
|
-
import { jsx as
|
|
1899
|
+
import { jsx as jsx37, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1818
1900
|
function buildItems(count, page, siblingCount) {
|
|
1819
1901
|
const total = Math.max(1, count);
|
|
1820
1902
|
const first = 1;
|
|
@@ -1835,7 +1917,7 @@ var Pagination = forwardRef24(function Pagination2({ count, page = 1, onChange,
|
|
|
1835
1917
|
const items = buildItems(total, current2, siblingCount);
|
|
1836
1918
|
const go = (n) => onChange?.(Math.min(Math.max(1, n), total));
|
|
1837
1919
|
return /* @__PURE__ */ jsxs22("nav", { ref, className: root24, "aria-label": "Pagination", ...rest, children: [
|
|
1838
|
-
/* @__PURE__ */
|
|
1920
|
+
/* @__PURE__ */ jsx37(
|
|
1839
1921
|
"button",
|
|
1840
1922
|
{
|
|
1841
1923
|
type: "button",
|
|
@@ -1843,14 +1925,14 @@ var Pagination = forwardRef24(function Pagination2({ count, page = 1, onChange,
|
|
|
1843
1925
|
"aria-label": "Previous page",
|
|
1844
1926
|
disabled: current2 <= 1,
|
|
1845
1927
|
onClick: () => go(current2 - 1),
|
|
1846
|
-
children: /* @__PURE__ */
|
|
1928
|
+
children: /* @__PURE__ */ jsx37(ChevronLeftIcon, { size: 18 })
|
|
1847
1929
|
}
|
|
1848
1930
|
),
|
|
1849
1931
|
items.map(
|
|
1850
1932
|
(item3, index) => item3 === "ellipsis" ? (
|
|
1851
1933
|
// biome-ignore lint/suspicious/noArrayIndexKey: ellipsis position is stable per render
|
|
1852
|
-
/* @__PURE__ */
|
|
1853
|
-
) : /* @__PURE__ */
|
|
1934
|
+
/* @__PURE__ */ jsx37("span", { className: ellipsis2, children: "\u2026" }, `ellipsis-${index}`)
|
|
1935
|
+
) : /* @__PURE__ */ jsx37(
|
|
1854
1936
|
"button",
|
|
1855
1937
|
{
|
|
1856
1938
|
type: "button",
|
|
@@ -1862,7 +1944,7 @@ var Pagination = forwardRef24(function Pagination2({ count, page = 1, onChange,
|
|
|
1862
1944
|
item3
|
|
1863
1945
|
)
|
|
1864
1946
|
),
|
|
1865
|
-
/* @__PURE__ */
|
|
1947
|
+
/* @__PURE__ */ jsx37(
|
|
1866
1948
|
"button",
|
|
1867
1949
|
{
|
|
1868
1950
|
type: "button",
|
|
@@ -1870,7 +1952,7 @@ var Pagination = forwardRef24(function Pagination2({ count, page = 1, onChange,
|
|
|
1870
1952
|
"aria-label": "Next page",
|
|
1871
1953
|
disabled: current2 >= total,
|
|
1872
1954
|
onClick: () => go(current2 + 1),
|
|
1873
|
-
children: /* @__PURE__ */
|
|
1955
|
+
children: /* @__PURE__ */ jsx37(ChevronRightIcon, { size: 18 })
|
|
1874
1956
|
}
|
|
1875
1957
|
)
|
|
1876
1958
|
] });
|
|
@@ -1880,7 +1962,7 @@ var Pagination = forwardRef24(function Pagination2({ count, page = 1, onChange,
|
|
|
1880
1962
|
import { Fragment as Fragment2, forwardRef as forwardRef25 } from "react";
|
|
1881
1963
|
|
|
1882
1964
|
// src/components/stepper/use-styles.ts
|
|
1883
|
-
import { useMemo as
|
|
1965
|
+
import { useMemo as useMemo26 } from "react";
|
|
1884
1966
|
|
|
1885
1967
|
// src/components/stepper/use-styles.css.ts
|
|
1886
1968
|
var connector = "use-styles_connector__79pt4e7";
|
|
@@ -1895,7 +1977,7 @@ var step = "use-styles_step__79pt4e1";
|
|
|
1895
1977
|
// src/components/stepper/use-styles.ts
|
|
1896
1978
|
function useStyles23({ className }) {
|
|
1897
1979
|
const { themeClass } = useTheme();
|
|
1898
|
-
return
|
|
1980
|
+
return useMemo26(() => {
|
|
1899
1981
|
const root24 = [themeClass, root18, className].filter(Boolean).join(" ");
|
|
1900
1982
|
const markerFor = (state) => [
|
|
1901
1983
|
marker,
|
|
@@ -1908,20 +1990,20 @@ function useStyles23({ className }) {
|
|
|
1908
1990
|
}
|
|
1909
1991
|
|
|
1910
1992
|
// src/components/stepper/index.tsx
|
|
1911
|
-
import { jsx as
|
|
1993
|
+
import { jsx as jsx38, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1912
1994
|
var Stepper = forwardRef25(function Stepper2({ steps, active: active2 = 0, className, ...rest }, ref) {
|
|
1913
1995
|
const { root: root24, step: step2, connector: connector2, markerFor, labelFor } = useStyles23({ className });
|
|
1914
|
-
return /* @__PURE__ */
|
|
1996
|
+
return /* @__PURE__ */ jsx38("div", { ref, className: root24, ...rest, children: steps.map((s, index) => {
|
|
1915
1997
|
const state = index < active2 ? "done" : index === active2 ? "active" : "upcoming";
|
|
1916
1998
|
const isActive = state === "active";
|
|
1917
1999
|
return (
|
|
1918
2000
|
// biome-ignore lint/suspicious/noArrayIndexKey: steps are a static, ordered list with no stable id.
|
|
1919
2001
|
/* @__PURE__ */ jsxs23(Fragment2, { children: [
|
|
1920
2002
|
/* @__PURE__ */ jsxs23("div", { className: step2, "aria-current": isActive ? "step" : void 0, children: [
|
|
1921
|
-
/* @__PURE__ */
|
|
1922
|
-
/* @__PURE__ */
|
|
2003
|
+
/* @__PURE__ */ jsx38("span", { className: markerFor(state), children: state === "done" ? /* @__PURE__ */ jsx38(CheckIcon, { size: 14 }) : index + 1 }),
|
|
2004
|
+
/* @__PURE__ */ jsx38("span", { className: labelFor(isActive), children: s.label })
|
|
1923
2005
|
] }),
|
|
1924
|
-
index < steps.length - 1 && /* @__PURE__ */
|
|
2006
|
+
index < steps.length - 1 && /* @__PURE__ */ jsx38("span", { "data-part": "connector", className: connector2 })
|
|
1925
2007
|
] }, index)
|
|
1926
2008
|
);
|
|
1927
2009
|
}) });
|
|
@@ -1931,7 +2013,7 @@ var Stepper = forwardRef25(function Stepper2({ steps, active: active2 = 0, class
|
|
|
1931
2013
|
import { forwardRef as forwardRef26, useId as useId4, useRef as useRef4 } from "react";
|
|
1932
2014
|
|
|
1933
2015
|
// src/components/tabs/use-styles.ts
|
|
1934
|
-
import { useMemo as
|
|
2016
|
+
import { useMemo as useMemo27 } from "react";
|
|
1935
2017
|
|
|
1936
2018
|
// src/components/tabs/use-styles.css.ts
|
|
1937
2019
|
var panel2 = "use-styles_panel__1l4m7t43";
|
|
@@ -1942,7 +2024,7 @@ var tabActive = "use-styles_tabActive__1l4m7t42";
|
|
|
1942
2024
|
// src/components/tabs/use-styles.ts
|
|
1943
2025
|
function useStyles24() {
|
|
1944
2026
|
const { themeClass } = useTheme();
|
|
1945
|
-
return
|
|
2027
|
+
return useMemo27(() => {
|
|
1946
2028
|
const root24 = [themeClass, root19].filter(Boolean).join(" ");
|
|
1947
2029
|
const tabClass = (active2) => [tab, active2 && tabActive].filter(Boolean).join(" ");
|
|
1948
2030
|
return { root: root24, tab, tabClass, panel: panel2 };
|
|
@@ -1950,7 +2032,7 @@ function useStyles24() {
|
|
|
1950
2032
|
}
|
|
1951
2033
|
|
|
1952
2034
|
// src/components/tabs/index.tsx
|
|
1953
|
-
import { Fragment as Fragment3, jsx as
|
|
2035
|
+
import { Fragment as Fragment3, jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1954
2036
|
var Tabs = forwardRef26(function Tabs2({ items, value, onChange, ...rest }, ref) {
|
|
1955
2037
|
const { root: root24, tabClass, panel: panel3 } = useStyles24();
|
|
1956
2038
|
const baseId = useId4();
|
|
@@ -1987,10 +2069,10 @@ var Tabs = forwardRef26(function Tabs2({ items, value, onChange, ...rest }, ref)
|
|
|
1987
2069
|
}
|
|
1988
2070
|
};
|
|
1989
2071
|
return /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
1990
|
-
/* @__PURE__ */
|
|
2072
|
+
/* @__PURE__ */ jsx39("div", { ref, role: "tablist", className: root24, ...rest, children: items.map((item3, index) => {
|
|
1991
2073
|
const active2 = item3.value === value;
|
|
1992
2074
|
const tabbable = active2 || activeIndex === -1 && index === 0;
|
|
1993
|
-
return /* @__PURE__ */
|
|
2075
|
+
return /* @__PURE__ */ jsx39(
|
|
1994
2076
|
"button",
|
|
1995
2077
|
{
|
|
1996
2078
|
ref: (el) => {
|
|
@@ -2010,7 +2092,7 @@ var Tabs = forwardRef26(function Tabs2({ items, value, onChange, ...rest }, ref)
|
|
|
2010
2092
|
item3.value
|
|
2011
2093
|
);
|
|
2012
2094
|
}) }),
|
|
2013
|
-
hasPanels && items.map((item3) => /* @__PURE__ */
|
|
2095
|
+
hasPanels && items.map((item3) => /* @__PURE__ */ jsx39(
|
|
2014
2096
|
"div",
|
|
2015
2097
|
{
|
|
2016
2098
|
role: "tabpanel",
|
|
@@ -2037,7 +2119,7 @@ import {
|
|
|
2037
2119
|
} from "react";
|
|
2038
2120
|
|
|
2039
2121
|
// src/components/menu/use-styles.ts
|
|
2040
|
-
import { useMemo as
|
|
2122
|
+
import { useMemo as useMemo28 } from "react";
|
|
2041
2123
|
|
|
2042
2124
|
// src/components/menu/use-styles.css.ts
|
|
2043
2125
|
var danger = "use-styles_danger__1uyxaj3";
|
|
@@ -2048,7 +2130,7 @@ var wrapper3 = "use-styles_wrapper__1uyxaj0";
|
|
|
2048
2130
|
// src/components/menu/use-styles.ts
|
|
2049
2131
|
function useStyles25() {
|
|
2050
2132
|
const { themeClass } = useTheme();
|
|
2051
|
-
return
|
|
2133
|
+
return useMemo28(
|
|
2052
2134
|
() => ({
|
|
2053
2135
|
wrapper: [themeClass, wrapper3].filter(Boolean).join(" "),
|
|
2054
2136
|
list,
|
|
@@ -2060,13 +2142,14 @@ function useStyles25() {
|
|
|
2060
2142
|
}
|
|
2061
2143
|
|
|
2062
2144
|
// src/components/menu/index.tsx
|
|
2063
|
-
import { jsx as
|
|
2145
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
2064
2146
|
function assignRef(ref, value) {
|
|
2065
2147
|
if (typeof ref === "function") ref(value);
|
|
2066
2148
|
else if (ref) ref.current = value;
|
|
2067
2149
|
}
|
|
2068
|
-
var Menu = forwardRef27(function Menu2({ trigger: trigger2, items }, ref) {
|
|
2150
|
+
var Menu = forwardRef27(function Menu2({ trigger: trigger2, items, testId }, ref) {
|
|
2069
2151
|
const { wrapper: wrapper4, list: list2, item: item3, dangerItem } = useStyles25();
|
|
2152
|
+
const { testId: rootTestId, slot } = useTestId("menu", testId);
|
|
2070
2153
|
const [open, setOpen] = useState8(false);
|
|
2071
2154
|
const [alignEnd, setAlignEnd] = useState8(false);
|
|
2072
2155
|
const rootRef = useRef5(null);
|
|
@@ -2164,34 +2247,45 @@ var Menu = forwardRef27(function Menu2({ trigger: trigger2, items }, ref) {
|
|
|
2164
2247
|
setOpen((prev) => !prev);
|
|
2165
2248
|
}
|
|
2166
2249
|
});
|
|
2167
|
-
return /* @__PURE__ */ jsxs25(
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
"button",
|
|
2250
|
+
return /* @__PURE__ */ jsxs25(
|
|
2251
|
+
"div",
|
|
2252
|
+
{
|
|
2253
|
+
ref: setRootRef,
|
|
2254
|
+
className: wrapper4,
|
|
2255
|
+
"data-testid": rootTestId,
|
|
2256
|
+
"data-state": open ? "open" : "closed",
|
|
2257
|
+
children: [
|
|
2258
|
+
clonedTrigger,
|
|
2259
|
+
open && /* @__PURE__ */ jsx40(
|
|
2260
|
+
"div",
|
|
2179
2261
|
{
|
|
2180
|
-
|
|
2181
|
-
role: "
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2262
|
+
ref: listRef,
|
|
2263
|
+
role: "menu",
|
|
2264
|
+
className: list2,
|
|
2265
|
+
"data-align": alignEnd ? "end" : "start",
|
|
2266
|
+
"data-testid": slot("list"),
|
|
2267
|
+
onKeyDown: onMenuKeyDown,
|
|
2268
|
+
children: items.map((entry, index) => /* @__PURE__ */ jsx40(
|
|
2269
|
+
"button",
|
|
2270
|
+
{
|
|
2271
|
+
type: "button",
|
|
2272
|
+
role: "menuitem",
|
|
2273
|
+
tabIndex: -1,
|
|
2274
|
+
className: entry.danger ? dangerItem : item3,
|
|
2275
|
+
"data-testid": slot(`item-${index}`),
|
|
2276
|
+
onClick: () => {
|
|
2277
|
+
entry.onClick?.();
|
|
2278
|
+
setOpen(false);
|
|
2279
|
+
},
|
|
2280
|
+
children: entry.label
|
|
2281
|
+
},
|
|
2282
|
+
index
|
|
2283
|
+
))
|
|
2284
|
+
}
|
|
2285
|
+
)
|
|
2286
|
+
]
|
|
2287
|
+
}
|
|
2288
|
+
);
|
|
2195
2289
|
});
|
|
2196
2290
|
|
|
2197
2291
|
// src/components/dialog/index.tsx
|
|
@@ -2204,7 +2298,7 @@ import {
|
|
|
2204
2298
|
import { createPortal } from "react-dom";
|
|
2205
2299
|
|
|
2206
2300
|
// src/components/dialog/use-styles.ts
|
|
2207
|
-
import { useMemo as
|
|
2301
|
+
import { useMemo as useMemo29 } from "react";
|
|
2208
2302
|
|
|
2209
2303
|
// src/components/dialog/use-styles.css.ts
|
|
2210
2304
|
var actions = "use-styles_actions__5tstu83";
|
|
@@ -2215,7 +2309,7 @@ var surface = "use-styles_surface__5tstu81";
|
|
|
2215
2309
|
// src/components/dialog/use-styles.ts
|
|
2216
2310
|
function useStyles26() {
|
|
2217
2311
|
const { themeClass } = useTheme();
|
|
2218
|
-
return
|
|
2312
|
+
return useMemo29(
|
|
2219
2313
|
() => ({
|
|
2220
2314
|
overlay: [themeClass, overlay].filter(Boolean).join(" "),
|
|
2221
2315
|
surface,
|
|
@@ -2227,14 +2321,15 @@ function useStyles26() {
|
|
|
2227
2321
|
}
|
|
2228
2322
|
|
|
2229
2323
|
// src/components/dialog/index.tsx
|
|
2230
|
-
import { jsx as
|
|
2324
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2231
2325
|
var FOCUSABLE = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
2232
2326
|
function assignRef2(ref, value) {
|
|
2233
2327
|
if (typeof ref === "function") ref(value);
|
|
2234
2328
|
else if (ref) ref.current = value;
|
|
2235
2329
|
}
|
|
2236
|
-
var Dialog = forwardRef28(function Dialog2({ open, onClose, title, actions: actions3, children }, ref) {
|
|
2330
|
+
var Dialog = forwardRef28(function Dialog2({ open, onClose, title, actions: actions3, children, testId }, ref) {
|
|
2237
2331
|
const { overlay: overlay2, surface: surface2, body: body3, actions: actionsClass } = useStyles26();
|
|
2332
|
+
const { testId: rootTestId, slot } = useTestId("dialog", testId);
|
|
2238
2333
|
const surfaceRef = useRef6(null);
|
|
2239
2334
|
const setSurfaceRef = (node) => {
|
|
2240
2335
|
surfaceRef.current = node;
|
|
@@ -2295,7 +2390,7 @@ var Dialog = forwardRef28(function Dialog2({ open, onClose, title, actions: acti
|
|
|
2295
2390
|
};
|
|
2296
2391
|
return createPortal(
|
|
2297
2392
|
// biome-ignore lint/a11y/useKeyWithClickEvents: ESC handled by a document keydown listener.
|
|
2298
|
-
/* @__PURE__ */
|
|
2393
|
+
/* @__PURE__ */ jsx41("div", { className: overlay2, "data-testid": slot("overlay"), onClick: onClose, children: /* @__PURE__ */ jsxs26(
|
|
2299
2394
|
"div",
|
|
2300
2395
|
{
|
|
2301
2396
|
ref: setSurfaceRef,
|
|
@@ -2304,12 +2399,13 @@ var Dialog = forwardRef28(function Dialog2({ open, onClose, title, actions: acti
|
|
|
2304
2399
|
"aria-modal": "true",
|
|
2305
2400
|
"aria-labelledby": titleId,
|
|
2306
2401
|
tabIndex: -1,
|
|
2402
|
+
"data-testid": rootTestId,
|
|
2307
2403
|
onClick: stop,
|
|
2308
2404
|
onKeyDown: onSurfaceKeyDown,
|
|
2309
2405
|
children: [
|
|
2310
|
-
title != null && /* @__PURE__ */
|
|
2311
|
-
children != null && /* @__PURE__ */
|
|
2312
|
-
actions3 != null && /* @__PURE__ */
|
|
2406
|
+
title != null && /* @__PURE__ */ jsx41(Typography, { variant: "h3", as: "h2", id: titleId, children: title }),
|
|
2407
|
+
children != null && /* @__PURE__ */ jsx41("div", { className: body3, children: /* @__PURE__ */ jsx41(Typography, { variant: "body", color: "fg2", children }) }),
|
|
2408
|
+
actions3 != null && /* @__PURE__ */ jsx41("div", { className: actionsClass, children: actions3 })
|
|
2313
2409
|
]
|
|
2314
2410
|
}
|
|
2315
2411
|
) }),
|
|
@@ -2322,7 +2418,7 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
2322
2418
|
import { createPortal as createPortal2 } from "react-dom";
|
|
2323
2419
|
|
|
2324
2420
|
// src/components/snackbar/use-styles.ts
|
|
2325
|
-
import { useMemo as
|
|
2421
|
+
import { useMemo as useMemo30 } from "react";
|
|
2326
2422
|
|
|
2327
2423
|
// src/components/snackbar/use-styles.css.ts
|
|
2328
2424
|
var closeBtn = "use-styles_closeBtn__ihzsep2";
|
|
@@ -2332,7 +2428,7 @@ var root20 = "use-styles_root__ihzsep0 surfaces_inkySurface__1qa7atn2";
|
|
|
2332
2428
|
// src/components/snackbar/use-styles.ts
|
|
2333
2429
|
function useStyles27() {
|
|
2334
2430
|
const { themeClass } = useTheme();
|
|
2335
|
-
return
|
|
2431
|
+
return useMemo30(
|
|
2336
2432
|
() => ({
|
|
2337
2433
|
root: [themeClass, root20].filter(Boolean).join(" "),
|
|
2338
2434
|
message,
|
|
@@ -2343,15 +2439,15 @@ function useStyles27() {
|
|
|
2343
2439
|
}
|
|
2344
2440
|
|
|
2345
2441
|
// src/components/snackbar/index.tsx
|
|
2346
|
-
import { jsx as
|
|
2442
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2347
2443
|
var Snackbar = forwardRef29(function Snackbar2({ open, message: message2, action, onClose }, ref) {
|
|
2348
2444
|
const { root: root24, message: messageClass, closeBtn: closeBtn2 } = useStyles27();
|
|
2349
2445
|
if (!open || typeof document === "undefined") return null;
|
|
2350
2446
|
return createPortal2(
|
|
2351
2447
|
/* @__PURE__ */ jsxs27("div", { ref, role: "status", className: root24, children: [
|
|
2352
|
-
/* @__PURE__ */
|
|
2448
|
+
/* @__PURE__ */ jsx42("span", { className: messageClass, children: message2 }),
|
|
2353
2449
|
action,
|
|
2354
|
-
onClose && /* @__PURE__ */
|
|
2450
|
+
onClose && /* @__PURE__ */ jsx42("button", { type: "button", "aria-label": "Close", className: closeBtn2, onClick: onClose, children: /* @__PURE__ */ jsx42(XIcon, { size: 18 }) })
|
|
2355
2451
|
] }),
|
|
2356
2452
|
document.body
|
|
2357
2453
|
);
|
|
@@ -2361,7 +2457,7 @@ var Snackbar = forwardRef29(function Snackbar2({ open, message: message2, action
|
|
|
2361
2457
|
import { forwardRef as forwardRef30 } from "react";
|
|
2362
2458
|
|
|
2363
2459
|
// src/components/table/use-styles.ts
|
|
2364
|
-
import { useMemo as
|
|
2460
|
+
import { useMemo as useMemo31 } from "react";
|
|
2365
2461
|
|
|
2366
2462
|
// src/components/table/use-styles.css.ts
|
|
2367
2463
|
var alignRight = "use-styles_alignRight__1n2cz6i3";
|
|
@@ -2373,7 +2469,7 @@ var th = "use-styles_th__1n2cz6i1";
|
|
|
2373
2469
|
// src/components/table/use-styles.ts
|
|
2374
2470
|
function useStyles28({ className }) {
|
|
2375
2471
|
const { themeClass } = useTheme();
|
|
2376
|
-
const root24 =
|
|
2472
|
+
const root24 = useMemo31(
|
|
2377
2473
|
() => [themeClass, root21, className].filter(Boolean).join(" "),
|
|
2378
2474
|
[themeClass, className]
|
|
2379
2475
|
);
|
|
@@ -2387,15 +2483,15 @@ function useStyles28({ className }) {
|
|
|
2387
2483
|
}
|
|
2388
2484
|
|
|
2389
2485
|
// src/components/table/index.tsx
|
|
2390
|
-
import { jsx as
|
|
2486
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2391
2487
|
function TableInner({ columns, rows, getRowKey, className, caption: caption2, ...rest }, ref) {
|
|
2392
2488
|
const { root: root24, th: th2, td: td2, alignRight: alignRight2, caption: captionClass } = useStyles28({ className });
|
|
2393
2489
|
const headClass = (column) => column.align === "right" ? `${th2} ${alignRight2}` : th2;
|
|
2394
2490
|
const cellClass = (column) => column.align === "right" ? `${td2} ${alignRight2}` : td2;
|
|
2395
2491
|
return /* @__PURE__ */ jsxs28("table", { ref, className: root24, ...rest, children: [
|
|
2396
|
-
caption2 != null && /* @__PURE__ */
|
|
2397
|
-
/* @__PURE__ */
|
|
2398
|
-
/* @__PURE__ */
|
|
2492
|
+
caption2 != null && /* @__PURE__ */ jsx43("caption", { className: captionClass, children: caption2 }),
|
|
2493
|
+
/* @__PURE__ */ jsx43("thead", { children: /* @__PURE__ */ jsx43("tr", { children: columns.map((column) => /* @__PURE__ */ jsx43("th", { scope: "col", className: headClass(column), children: column.header }, column.key)) }) }),
|
|
2494
|
+
/* @__PURE__ */ jsx43("tbody", { children: rows.map((row, index) => /* @__PURE__ */ jsx43("tr", { children: columns.map((column) => /* @__PURE__ */ jsx43("td", { className: cellClass(column), children: column.render ? column.render(row) : String(row[column.key]) }, column.key)) }, getRowKey ? getRowKey(row, index) : index)) })
|
|
2399
2495
|
] });
|
|
2400
2496
|
}
|
|
2401
2497
|
var TableForwarded = forwardRef30(TableInner);
|
|
@@ -2406,7 +2502,7 @@ var Table = TableForwarded;
|
|
|
2406
2502
|
import { forwardRef as forwardRef31 } from "react";
|
|
2407
2503
|
|
|
2408
2504
|
// src/components/app-bar/use-styles.ts
|
|
2409
|
-
import { useMemo as
|
|
2505
|
+
import { useMemo as useMemo32 } from "react";
|
|
2410
2506
|
|
|
2411
2507
|
// src/components/app-bar/use-styles.css.ts
|
|
2412
2508
|
var actions2 = "use-styles_actions__1h133nh2";
|
|
@@ -2416,7 +2512,7 @@ var root22 = "use-styles_root__1h133nh0";
|
|
|
2416
2512
|
// src/components/app-bar/use-styles.ts
|
|
2417
2513
|
function useStyles29({ className }) {
|
|
2418
2514
|
const { themeClass } = useTheme();
|
|
2419
|
-
const root24 =
|
|
2515
|
+
const root24 = useMemo32(
|
|
2420
2516
|
() => [themeClass, root22, className].filter(Boolean).join(" "),
|
|
2421
2517
|
[themeClass, className]
|
|
2422
2518
|
);
|
|
@@ -2424,13 +2520,13 @@ function useStyles29({ className }) {
|
|
|
2424
2520
|
}
|
|
2425
2521
|
|
|
2426
2522
|
// src/components/app-bar/index.tsx
|
|
2427
|
-
import { jsx as
|
|
2523
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2428
2524
|
var AppBar = forwardRef31(function AppBar2({ brand: brand2, actions: actions3, className, children, ...rest }, ref) {
|
|
2429
2525
|
const styles = useStyles29({ className });
|
|
2430
2526
|
return /* @__PURE__ */ jsxs29("header", { ref, className: styles.root, ...rest, children: [
|
|
2431
|
-
brand2 !== void 0 ? /* @__PURE__ */
|
|
2527
|
+
brand2 !== void 0 ? /* @__PURE__ */ jsx44("div", { className: styles.brand, children: brand2 }) : null,
|
|
2432
2528
|
children,
|
|
2433
|
-
actions3 !== void 0 ? /* @__PURE__ */
|
|
2529
|
+
actions3 !== void 0 ? /* @__PURE__ */ jsx44("div", { className: styles.actions, children: actions3 }) : null
|
|
2434
2530
|
] });
|
|
2435
2531
|
});
|
|
2436
2532
|
|
|
@@ -2438,7 +2534,7 @@ var AppBar = forwardRef31(function AppBar2({ brand: brand2, actions: actions3, c
|
|
|
2438
2534
|
import { forwardRef as forwardRef32 } from "react";
|
|
2439
2535
|
|
|
2440
2536
|
// src/components/list-item/use-styles.ts
|
|
2441
|
-
import { useMemo as
|
|
2537
|
+
import { useMemo as useMemo33 } from "react";
|
|
2442
2538
|
|
|
2443
2539
|
// src/components/list-item/use-styles.css.ts
|
|
2444
2540
|
var content2 = "use-styles_content__kbreq13";
|
|
@@ -2453,7 +2549,7 @@ function useStyles30({
|
|
|
2453
2549
|
className
|
|
2454
2550
|
}) {
|
|
2455
2551
|
const { themeClass } = useTheme();
|
|
2456
|
-
const root24 =
|
|
2552
|
+
const root24 = useMemo33(
|
|
2457
2553
|
() => [themeClass, root23, selected3 && selected2, className].filter(Boolean).join(" "),
|
|
2458
2554
|
[themeClass, selected3, className]
|
|
2459
2555
|
);
|
|
@@ -2461,20 +2557,20 @@ function useStyles30({
|
|
|
2461
2557
|
}
|
|
2462
2558
|
|
|
2463
2559
|
// src/components/list-item/index.tsx
|
|
2464
|
-
import { jsx as
|
|
2560
|
+
import { jsx as jsx45, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2465
2561
|
var ListItem = forwardRef32(function ListItem2({ leading: leading2, trailing: trailing2, selected: selected3, className, children, ...rest }, ref) {
|
|
2466
2562
|
const styles = useStyles30({ selected: selected3, className });
|
|
2467
2563
|
return /* @__PURE__ */ jsxs30("div", { ref, className: styles.root, ...rest, children: [
|
|
2468
|
-
leading2 != null && /* @__PURE__ */
|
|
2469
|
-
/* @__PURE__ */
|
|
2470
|
-
trailing2 != null && /* @__PURE__ */
|
|
2564
|
+
leading2 != null && /* @__PURE__ */ jsx45("span", { className: styles.leading, children: leading2 }),
|
|
2565
|
+
/* @__PURE__ */ jsx45("span", { className: styles.content, children }),
|
|
2566
|
+
trailing2 != null && /* @__PURE__ */ jsx45("span", { className: styles.trailing, children: trailing2 })
|
|
2471
2567
|
] });
|
|
2472
2568
|
});
|
|
2473
2569
|
|
|
2474
2570
|
// src/components/icons/chevron-up/index.tsx
|
|
2475
|
-
import { jsx as
|
|
2571
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
2476
2572
|
function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2477
|
-
return /* @__PURE__ */
|
|
2573
|
+
return /* @__PURE__ */ jsx46(
|
|
2478
2574
|
"svg",
|
|
2479
2575
|
{
|
|
2480
2576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2488,13 +2584,13 @@ function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2488
2584
|
strokeLinejoin: "round",
|
|
2489
2585
|
"aria-hidden": "true",
|
|
2490
2586
|
...rest,
|
|
2491
|
-
children: /* @__PURE__ */
|
|
2587
|
+
children: /* @__PURE__ */ jsx46("path", { d: "m18 15-6-6-6 6" })
|
|
2492
2588
|
}
|
|
2493
2589
|
);
|
|
2494
2590
|
}
|
|
2495
2591
|
|
|
2496
2592
|
// src/components/icons/search/index.tsx
|
|
2497
|
-
import { jsx as
|
|
2593
|
+
import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2498
2594
|
function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2499
2595
|
return /* @__PURE__ */ jsxs31(
|
|
2500
2596
|
"svg",
|
|
@@ -2511,15 +2607,15 @@ function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2511
2607
|
"aria-hidden": "true",
|
|
2512
2608
|
...rest,
|
|
2513
2609
|
children: [
|
|
2514
|
-
/* @__PURE__ */
|
|
2515
|
-
/* @__PURE__ */
|
|
2610
|
+
/* @__PURE__ */ jsx47("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2611
|
+
/* @__PURE__ */ jsx47("path", { d: "m21 21-4.3-4.3" })
|
|
2516
2612
|
]
|
|
2517
2613
|
}
|
|
2518
2614
|
);
|
|
2519
2615
|
}
|
|
2520
2616
|
|
|
2521
2617
|
// src/components/icons/plus/index.tsx
|
|
2522
|
-
import { jsx as
|
|
2618
|
+
import { jsx as jsx48, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2523
2619
|
function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2524
2620
|
return /* @__PURE__ */ jsxs32(
|
|
2525
2621
|
"svg",
|
|
@@ -2536,17 +2632,17 @@ function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2536
2632
|
"aria-hidden": "true",
|
|
2537
2633
|
...rest,
|
|
2538
2634
|
children: [
|
|
2539
|
-
/* @__PURE__ */
|
|
2540
|
-
/* @__PURE__ */
|
|
2635
|
+
/* @__PURE__ */ jsx48("path", { d: "M5 12h14" }),
|
|
2636
|
+
/* @__PURE__ */ jsx48("path", { d: "M12 5v14" })
|
|
2541
2637
|
]
|
|
2542
2638
|
}
|
|
2543
2639
|
);
|
|
2544
2640
|
}
|
|
2545
2641
|
|
|
2546
2642
|
// src/components/icons/minus/index.tsx
|
|
2547
|
-
import { jsx as
|
|
2643
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
2548
2644
|
function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2549
|
-
return /* @__PURE__ */
|
|
2645
|
+
return /* @__PURE__ */ jsx49(
|
|
2550
2646
|
"svg",
|
|
2551
2647
|
{
|
|
2552
2648
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2560,13 +2656,13 @@ function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2560
2656
|
strokeLinejoin: "round",
|
|
2561
2657
|
"aria-hidden": "true",
|
|
2562
2658
|
...rest,
|
|
2563
|
-
children: /* @__PURE__ */
|
|
2659
|
+
children: /* @__PURE__ */ jsx49("path", { d: "M5 12h14" })
|
|
2564
2660
|
}
|
|
2565
2661
|
);
|
|
2566
2662
|
}
|
|
2567
2663
|
|
|
2568
2664
|
// src/components/icons/more-horizontal/index.tsx
|
|
2569
|
-
import { jsx as
|
|
2665
|
+
import { jsx as jsx50, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
2570
2666
|
function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2571
2667
|
return /* @__PURE__ */ jsxs33(
|
|
2572
2668
|
"svg",
|
|
@@ -2583,9 +2679,9 @@ function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2583
2679
|
"aria-hidden": "true",
|
|
2584
2680
|
...rest,
|
|
2585
2681
|
children: [
|
|
2586
|
-
/* @__PURE__ */
|
|
2587
|
-
/* @__PURE__ */
|
|
2588
|
-
/* @__PURE__ */
|
|
2682
|
+
/* @__PURE__ */ jsx50("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2683
|
+
/* @__PURE__ */ jsx50("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2684
|
+
/* @__PURE__ */ jsx50("circle", { cx: "5", cy: "12", r: "1" })
|
|
2589
2685
|
]
|
|
2590
2686
|
}
|
|
2591
2687
|
);
|
|
@@ -2633,6 +2729,7 @@ export {
|
|
|
2633
2729
|
Switch,
|
|
2634
2730
|
Table,
|
|
2635
2731
|
Tabs,
|
|
2732
|
+
TestIdProvider,
|
|
2636
2733
|
TextField,
|
|
2637
2734
|
ThemeProvider,
|
|
2638
2735
|
Tooltip,
|
|
@@ -2646,6 +2743,7 @@ export {
|
|
|
2646
2743
|
vars as theme,
|
|
2647
2744
|
themes,
|
|
2648
2745
|
usePrevious,
|
|
2746
|
+
useTestId,
|
|
2649
2747
|
useTheme,
|
|
2650
2748
|
useToggle
|
|
2651
2749
|
};
|