@octavius2929-personal/design-system 0.7.1 → 0.8.1
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 +343 -291
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +689 -115
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +100 -51
- package/dist/index.d.ts +100 -51
- package/dist/index.js +306 -254
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var colorVars = { bg1: "var(--bg1__e3grur28)", bg2: "var(--bg2__e3grur29)", bg3:
|
|
|
3
3
|
var modeNames = ["light", "dark", "sepia", "contrast"];
|
|
4
4
|
var schemaNames = ["tinta"];
|
|
5
5
|
var themes = { tinta: { light: "theme_themes_tinta_light__e3grur2s", dark: "theme_themes_tinta_dark__e3grur2t", sepia: "theme_themes_tinta_sepia__e3grur2u", contrast: "theme_themes_tinta_contrast__e3grur2v" } };
|
|
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: {
|
|
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
|
|
9
9
|
import { useEffect, useRef } from "react";
|
|
@@ -23,12 +23,39 @@ function useToggle(initial = false) {
|
|
|
23
23
|
return [on, toggle, setOn];
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
// src/theme/styles/sprinkles/index.css.ts
|
|
27
|
+
import { createSprinkles as _ad221 } from "@vanilla-extract/sprinkles/createRuntimeSprinkles";
|
|
28
|
+
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" } } } } });
|
|
29
|
+
|
|
30
|
+
// src/components/container/use-styles.ts
|
|
31
|
+
function useStyles(props) {
|
|
32
|
+
const styleProps = {};
|
|
33
|
+
const rest = {};
|
|
34
|
+
for (const key of Object.keys(props)) {
|
|
35
|
+
const value = props[key];
|
|
36
|
+
if (sprinkles.properties.has(key)) {
|
|
37
|
+
styleProps[key] = value;
|
|
38
|
+
} else {
|
|
39
|
+
rest[key] = value;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return { className: sprinkles(styleProps), rest };
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// src/components/container/index.tsx
|
|
46
|
+
import { jsx } from "react/jsx-runtime";
|
|
47
|
+
function Container({ as, ...props }) {
|
|
48
|
+
const Component = as ?? "div";
|
|
49
|
+
const { className, rest } = useStyles(props);
|
|
50
|
+
return /* @__PURE__ */ jsx(Component, { ...rest, className });
|
|
51
|
+
}
|
|
52
|
+
|
|
26
53
|
// src/components/typography/use-styles.ts
|
|
27
54
|
import { useMemo as useMemo2 } from "react";
|
|
28
55
|
|
|
29
56
|
// src/theme/context/theme-context.tsx
|
|
30
57
|
import { createContext, useContext, useEffect as useEffect2, useMemo, useState as useState2 } from "react";
|
|
31
|
-
import { jsx } from "react/jsx-runtime";
|
|
58
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
32
59
|
var noop = () => {
|
|
33
60
|
};
|
|
34
61
|
var DEFAULT_VALUE = {
|
|
@@ -111,7 +138,7 @@ function ThemeProvider({
|
|
|
111
138
|
}),
|
|
112
139
|
[schema, mode, preference]
|
|
113
140
|
);
|
|
114
|
-
return /* @__PURE__ */
|
|
141
|
+
return /* @__PURE__ */ jsx2(ThemeContext.Provider, { value, children });
|
|
115
142
|
}
|
|
116
143
|
function useTheme() {
|
|
117
144
|
return useContext(ThemeContext) ?? DEFAULT_VALUE;
|
|
@@ -126,7 +153,7 @@ var base = "use-styles_base__d74jf60";
|
|
|
126
153
|
var color = { fg1: "use-styles_color_fg1__d74jf61", fg2: "use-styles_color_fg2__d74jf62", fg3: "use-styles_color_fg3__d74jf63", accent: "use-styles_color_accent__d74jf64", danger: "use-styles_color_danger__d74jf65", ok: "use-styles_color_ok__d74jf66", warn: "use-styles_color_warn__d74jf67", info: "use-styles_color_info__d74jf68" };
|
|
127
154
|
|
|
128
155
|
// src/components/typography/use-styles.ts
|
|
129
|
-
function
|
|
156
|
+
function useStyles2({
|
|
130
157
|
variant: variant2,
|
|
131
158
|
color: color2,
|
|
132
159
|
align: align2
|
|
@@ -146,7 +173,7 @@ function useStyles({
|
|
|
146
173
|
}
|
|
147
174
|
|
|
148
175
|
// src/components/typography/index.tsx
|
|
149
|
-
import { jsx as
|
|
176
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
150
177
|
var defaultElement = {
|
|
151
178
|
display: "h1",
|
|
152
179
|
h1: "h1",
|
|
@@ -169,8 +196,8 @@ function Typography({
|
|
|
169
196
|
...rest
|
|
170
197
|
}) {
|
|
171
198
|
const Component = as ?? defaultElement[variant2];
|
|
172
|
-
const { text: text2 } =
|
|
173
|
-
return /* @__PURE__ */
|
|
199
|
+
const { text: text2 } = useStyles2({ variant: variant2, color: color2, align: align2 });
|
|
200
|
+
return /* @__PURE__ */ jsx3(Component, { ...rest, className: text2 });
|
|
174
201
|
}
|
|
175
202
|
|
|
176
203
|
// src/components/button/use-styles.ts
|
|
@@ -186,7 +213,7 @@ var tone = { filledInk: "use-styles_tone_filledInk__1pbtill5", filledAccent: "us
|
|
|
186
213
|
function toneKey(variant2, tone4) {
|
|
187
214
|
return `${variant2}${tone4 === "ink" ? "Ink" : "Accent"}`;
|
|
188
215
|
}
|
|
189
|
-
function
|
|
216
|
+
function useStyles3({
|
|
190
217
|
variant: variant2 = "filled",
|
|
191
218
|
tone: tone4 = "ink",
|
|
192
219
|
size: size3 = "md",
|
|
@@ -209,7 +236,7 @@ function useStyles2({
|
|
|
209
236
|
}
|
|
210
237
|
|
|
211
238
|
// src/components/button/index.tsx
|
|
212
|
-
import { jsx as
|
|
239
|
+
import { jsx as jsx4, jsxs } from "react/jsx-runtime";
|
|
213
240
|
var ICON_SIZE = { sm: 14, md: 16, lg: 18 };
|
|
214
241
|
function Button({
|
|
215
242
|
variant: variant2,
|
|
@@ -222,12 +249,12 @@ function Button({
|
|
|
222
249
|
children,
|
|
223
250
|
...rest
|
|
224
251
|
}) {
|
|
225
|
-
const { container } =
|
|
252
|
+
const { container } = useStyles3({ variant: variant2, tone: tone4, size: size3, full: full2, className });
|
|
226
253
|
const iconSize = ICON_SIZE[size3];
|
|
227
254
|
return /* @__PURE__ */ jsxs("button", { className: container, ...rest, children: [
|
|
228
|
-
StartIcon && /* @__PURE__ */
|
|
255
|
+
StartIcon && /* @__PURE__ */ jsx4(StartIcon, { size: iconSize }),
|
|
229
256
|
children,
|
|
230
|
-
EndIcon && /* @__PURE__ */
|
|
257
|
+
EndIcon && /* @__PURE__ */ jsx4(EndIcon, { size: iconSize })
|
|
231
258
|
] });
|
|
232
259
|
}
|
|
233
260
|
|
|
@@ -243,7 +270,7 @@ var root2 = "use-styles_root__1n7v7yj0";
|
|
|
243
270
|
var vertical = "use-styles_vertical__1n7v7yj2";
|
|
244
271
|
|
|
245
272
|
// src/components/divider/use-styles.ts
|
|
246
|
-
function
|
|
273
|
+
function useStyles4({ vertical: vertical2, hasLabel }) {
|
|
247
274
|
const { themeClass } = useTheme();
|
|
248
275
|
const root24 = useMemo4(
|
|
249
276
|
() => [
|
|
@@ -257,18 +284,18 @@ function useStyles3({ vertical: vertical2, hasLabel }) {
|
|
|
257
284
|
}
|
|
258
285
|
|
|
259
286
|
// src/components/divider/index.tsx
|
|
260
|
-
import { jsx as
|
|
287
|
+
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
261
288
|
function Divider({ vertical: vertical2, label: label7, ...rest }) {
|
|
262
289
|
const hasLabel = label7 != null;
|
|
263
|
-
const { root: root24, line: line2, label: labelClass } =
|
|
290
|
+
const { root: root24, line: line2, label: labelClass } = useStyles4({ vertical: vertical2, hasLabel });
|
|
264
291
|
if (hasLabel) {
|
|
265
292
|
return /* @__PURE__ */ jsxs2("div", { role: "separator", className: root24, ...rest, children: [
|
|
266
|
-
/* @__PURE__ */
|
|
267
|
-
/* @__PURE__ */
|
|
268
|
-
/* @__PURE__ */
|
|
293
|
+
/* @__PURE__ */ jsx5("span", { className: line2 }),
|
|
294
|
+
/* @__PURE__ */ jsx5("span", { className: labelClass, children: label7 }),
|
|
295
|
+
/* @__PURE__ */ jsx5("span", { className: line2 })
|
|
269
296
|
] });
|
|
270
297
|
}
|
|
271
|
-
return /* @__PURE__ */
|
|
298
|
+
return /* @__PURE__ */ jsx5("div", { role: "separator", className: root24, ...rest });
|
|
272
299
|
}
|
|
273
300
|
|
|
274
301
|
// src/components/avatar/use-styles.ts
|
|
@@ -280,7 +307,7 @@ var size2 = { sm: "use-styles_size_sm__1mn1rmu1", md: "use-styles_size_md__1mn1r
|
|
|
280
307
|
var variant = { "default": "use-styles_variant_default__1mn1rmu4", filled: "use-styles_variant_filled__1mn1rmu5" };
|
|
281
308
|
|
|
282
309
|
// src/components/avatar/use-styles.ts
|
|
283
|
-
function
|
|
310
|
+
function useStyles5({
|
|
284
311
|
size: size3 = "md",
|
|
285
312
|
filled,
|
|
286
313
|
className
|
|
@@ -300,10 +327,10 @@ function useStyles4({
|
|
|
300
327
|
}
|
|
301
328
|
|
|
302
329
|
// src/components/avatar/index.tsx
|
|
303
|
-
import { jsx as
|
|
330
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
304
331
|
function Avatar({ size: size3, filled, className, children, ...rest }) {
|
|
305
|
-
const { root: root24 } =
|
|
306
|
-
return /* @__PURE__ */
|
|
332
|
+
const { root: root24 } = useStyles5({ size: size3, filled, className });
|
|
333
|
+
return /* @__PURE__ */ jsx6("span", { className: root24, ...rest, children });
|
|
307
334
|
}
|
|
308
335
|
|
|
309
336
|
// src/components/badge/use-styles.ts
|
|
@@ -315,7 +342,7 @@ var root4 = "use-styles_root__1wpei6p0";
|
|
|
315
342
|
var tone2 = { ink: "use-styles_tone_ink__1wpei6p2", accent: "use-styles_tone_accent__1wpei6p3" };
|
|
316
343
|
|
|
317
344
|
// src/components/badge/use-styles.ts
|
|
318
|
-
function
|
|
345
|
+
function useStyles6({
|
|
319
346
|
tone: tone4 = "ink",
|
|
320
347
|
className
|
|
321
348
|
}) {
|
|
@@ -329,12 +356,12 @@ function useStyles5({
|
|
|
329
356
|
}
|
|
330
357
|
|
|
331
358
|
// src/components/badge/index.tsx
|
|
332
|
-
import { jsx as
|
|
359
|
+
import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
333
360
|
function Badge({ count, tone: tone4, className, children, ...rest }) {
|
|
334
|
-
const { root: root24, dot: dot3 } =
|
|
361
|
+
const { root: root24, dot: dot3 } = useStyles6({ tone: tone4, className });
|
|
335
362
|
return /* @__PURE__ */ jsxs3("span", { className: root24, ...rest, children: [
|
|
336
363
|
children,
|
|
337
|
-
count != null && /* @__PURE__ */
|
|
364
|
+
count != null && /* @__PURE__ */ jsx7("span", { className: dot3, children: count })
|
|
338
365
|
] });
|
|
339
366
|
}
|
|
340
367
|
|
|
@@ -348,7 +375,7 @@ var spinner = "use-styles_spinner__kbop7v5";
|
|
|
348
375
|
var track = "use-styles_track__kbop7v2";
|
|
349
376
|
|
|
350
377
|
// src/components/progress/use-styles.ts
|
|
351
|
-
function
|
|
378
|
+
function useStyles7({
|
|
352
379
|
variant: variant2 = "linear",
|
|
353
380
|
value,
|
|
354
381
|
className
|
|
@@ -369,7 +396,7 @@ function useStyles6({
|
|
|
369
396
|
}
|
|
370
397
|
|
|
371
398
|
// src/components/progress/index.tsx
|
|
372
|
-
import { jsx as
|
|
399
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
373
400
|
function Progress({
|
|
374
401
|
variant: variant2 = "linear",
|
|
375
402
|
value,
|
|
@@ -377,10 +404,10 @@ function Progress({
|
|
|
377
404
|
className,
|
|
378
405
|
...rest
|
|
379
406
|
}) {
|
|
380
|
-
const { track: track4, bar: bar2, spinner: spinner2 } =
|
|
407
|
+
const { track: track4, bar: bar2, spinner: spinner2 } = useStyles7({ variant: variant2, value, className });
|
|
381
408
|
const indeterminate2 = value === void 0;
|
|
382
409
|
if (variant2 === "circular") {
|
|
383
|
-
return /* @__PURE__ */
|
|
410
|
+
return /* @__PURE__ */ jsx8(
|
|
384
411
|
"span",
|
|
385
412
|
{
|
|
386
413
|
className: spinner2,
|
|
@@ -393,7 +420,7 @@ function Progress({
|
|
|
393
420
|
}
|
|
394
421
|
);
|
|
395
422
|
}
|
|
396
|
-
return /* @__PURE__ */
|
|
423
|
+
return /* @__PURE__ */ jsx8(
|
|
397
424
|
"div",
|
|
398
425
|
{
|
|
399
426
|
className: track4,
|
|
@@ -402,13 +429,13 @@ function Progress({
|
|
|
402
429
|
"aria-valuemin": indeterminate2 ? void 0 : 0,
|
|
403
430
|
"aria-valuemax": indeterminate2 ? void 0 : 100,
|
|
404
431
|
...rest,
|
|
405
|
-
children: /* @__PURE__ */
|
|
432
|
+
children: /* @__PURE__ */ jsx8("div", { className: bar2, style: indeterminate2 ? void 0 : { width: `${value}%` } })
|
|
406
433
|
}
|
|
407
434
|
);
|
|
408
435
|
}
|
|
409
436
|
|
|
410
437
|
// src/components/icons/x/index.tsx
|
|
411
|
-
import { jsx as
|
|
438
|
+
import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
412
439
|
function XIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
413
440
|
return /* @__PURE__ */ jsxs4(
|
|
414
441
|
"svg",
|
|
@@ -425,8 +452,8 @@ function XIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
425
452
|
"aria-hidden": "true",
|
|
426
453
|
...rest,
|
|
427
454
|
children: [
|
|
428
|
-
/* @__PURE__ */
|
|
429
|
-
/* @__PURE__ */
|
|
455
|
+
/* @__PURE__ */ jsx9("path", { d: "M18 6 6 18" }),
|
|
456
|
+
/* @__PURE__ */ jsx9("path", { d: "m6 6 12 12" })
|
|
430
457
|
]
|
|
431
458
|
}
|
|
432
459
|
);
|
|
@@ -443,7 +470,7 @@ var selected = "use-styles_selected__1axilf43";
|
|
|
443
470
|
var tone3 = { ink: "use-styles_tone_ink__1axilf41", accent: "use-styles_tone_accent__1axilf42" };
|
|
444
471
|
|
|
445
472
|
// src/components/chip/use-styles.ts
|
|
446
|
-
function
|
|
473
|
+
function useStyles8({
|
|
447
474
|
selected: selected3,
|
|
448
475
|
tone: tone4 = "ink",
|
|
449
476
|
clickable: clickable2
|
|
@@ -462,24 +489,24 @@ function useStyles7({
|
|
|
462
489
|
}
|
|
463
490
|
|
|
464
491
|
// src/components/chip/index.tsx
|
|
465
|
-
import { jsx as
|
|
492
|
+
import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
466
493
|
function Chip({ selected: selected3, tone: tone4, onDelete, onClick, children, ...rest }) {
|
|
467
494
|
const clickable2 = Boolean(onClick);
|
|
468
|
-
const { root: root24, deleteBtn: deleteBtn2 } =
|
|
495
|
+
const { root: root24, deleteBtn: deleteBtn2 } = useStyles8({ selected: selected3, tone: tone4, clickable: clickable2 });
|
|
469
496
|
const handleDelete = (event) => {
|
|
470
497
|
event.stopPropagation();
|
|
471
498
|
onDelete?.();
|
|
472
499
|
};
|
|
473
500
|
return /* @__PURE__ */ jsxs5("span", { className: root24, onClick, ...rest, children: [
|
|
474
501
|
children,
|
|
475
|
-
onDelete && /* @__PURE__ */
|
|
502
|
+
onDelete && /* @__PURE__ */ jsx10("button", { type: "button", className: deleteBtn2, "aria-label": "Remove", onClick: handleDelete, children: /* @__PURE__ */ jsx10(XIcon, { size: 13 }) })
|
|
476
503
|
] });
|
|
477
504
|
}
|
|
478
505
|
|
|
479
506
|
// src/components/icons/check/index.tsx
|
|
480
|
-
import { jsx as
|
|
507
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
481
508
|
function CheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
482
|
-
return /* @__PURE__ */
|
|
509
|
+
return /* @__PURE__ */ jsx11(
|
|
483
510
|
"svg",
|
|
484
511
|
{
|
|
485
512
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -493,7 +520,7 @@ function CheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
493
520
|
strokeLinejoin: "round",
|
|
494
521
|
"aria-hidden": "true",
|
|
495
522
|
...rest,
|
|
496
|
-
children: /* @__PURE__ */
|
|
523
|
+
children: /* @__PURE__ */ jsx11("path", { d: "M20 6 9 17l-5-5" })
|
|
497
524
|
}
|
|
498
525
|
);
|
|
499
526
|
}
|
|
@@ -506,11 +533,11 @@ var box = "use-styles_box__9zoga91";
|
|
|
506
533
|
var boxChecked = "use-styles_boxChecked__9zoga92";
|
|
507
534
|
var check = "use-styles_check__9zoga93";
|
|
508
535
|
var disabled = "use-styles_disabled__9zoga94";
|
|
509
|
-
var input = "
|
|
536
|
+
var input = "surfaces_srOnly__1qa7atn0";
|
|
510
537
|
var root6 = "use-styles_root__9zoga90";
|
|
511
538
|
|
|
512
539
|
// src/components/checkbox/use-styles.ts
|
|
513
|
-
function
|
|
540
|
+
function useStyles9({ checked, disabled: disabled3 }) {
|
|
514
541
|
const { themeClass } = useTheme();
|
|
515
542
|
const root24 = useMemo9(
|
|
516
543
|
() => [themeClass, root6, disabled3 && disabled].filter(Boolean).join(" "),
|
|
@@ -524,7 +551,7 @@ function useStyles8({ checked, disabled: disabled3 }) {
|
|
|
524
551
|
}
|
|
525
552
|
|
|
526
553
|
// src/components/checkbox/index.tsx
|
|
527
|
-
import { jsx as
|
|
554
|
+
import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
528
555
|
function Checkbox({
|
|
529
556
|
checked = false,
|
|
530
557
|
onChange,
|
|
@@ -532,13 +559,13 @@ function Checkbox({
|
|
|
532
559
|
disabled: disabled3 = false,
|
|
533
560
|
id
|
|
534
561
|
}) {
|
|
535
|
-
const { root: root24, input: input6, box: box2, check: check2 } =
|
|
562
|
+
const { root: root24, input: input6, box: box2, check: check2 } = useStyles9({ checked, disabled: disabled3 });
|
|
536
563
|
const handleChange = (e) => {
|
|
537
564
|
if (disabled3) return;
|
|
538
565
|
onChange?.(e.target.checked);
|
|
539
566
|
};
|
|
540
567
|
return /* @__PURE__ */ jsxs6("label", { className: root24, children: [
|
|
541
|
-
/* @__PURE__ */
|
|
568
|
+
/* @__PURE__ */ jsx12(
|
|
542
569
|
"input",
|
|
543
570
|
{
|
|
544
571
|
type: "checkbox",
|
|
@@ -549,7 +576,7 @@ function Checkbox({
|
|
|
549
576
|
onChange: handleChange
|
|
550
577
|
}
|
|
551
578
|
),
|
|
552
|
-
/* @__PURE__ */
|
|
579
|
+
/* @__PURE__ */ jsx12("span", { className: box2, children: checked && /* @__PURE__ */ jsx12(CheckIcon, { size: 12, className: check2 }) }),
|
|
553
580
|
label7
|
|
554
581
|
] });
|
|
555
582
|
}
|
|
@@ -561,12 +588,12 @@ import { useMemo as useMemo10 } from "react";
|
|
|
561
588
|
var circle = "use-styles_circle__vy61b42";
|
|
562
589
|
var disabled2 = "use-styles_disabled__vy61b41";
|
|
563
590
|
var dot2 = "use-styles_dot__vy61b43";
|
|
564
|
-
var input2 = "
|
|
591
|
+
var input2 = "surfaces_srOnly__1qa7atn0";
|
|
565
592
|
var label2 = "use-styles_label__vy61b44";
|
|
566
593
|
var root7 = "use-styles_root__vy61b40";
|
|
567
594
|
|
|
568
595
|
// src/components/radio/use-styles.ts
|
|
569
|
-
function
|
|
596
|
+
function useStyles10({
|
|
570
597
|
disabled: disabled3,
|
|
571
598
|
className
|
|
572
599
|
}) {
|
|
@@ -585,11 +612,11 @@ function useStyles9({
|
|
|
585
612
|
}
|
|
586
613
|
|
|
587
614
|
// src/components/radio/index.tsx
|
|
588
|
-
import { jsx as
|
|
615
|
+
import { jsx as jsx13, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
589
616
|
function Radio({ checked, onChange, label: label7, name, value, disabled: disabled3 }) {
|
|
590
|
-
const { root: root24, input: input6, circle: circle2, dot: dot3, label: labelClass } =
|
|
617
|
+
const { root: root24, input: input6, circle: circle2, dot: dot3, label: labelClass } = useStyles10({ disabled: disabled3 });
|
|
591
618
|
return /* @__PURE__ */ jsxs7("label", { className: root24, children: [
|
|
592
|
-
/* @__PURE__ */
|
|
619
|
+
/* @__PURE__ */ jsx13(
|
|
593
620
|
"input",
|
|
594
621
|
{
|
|
595
622
|
className: input6,
|
|
@@ -601,8 +628,8 @@ function Radio({ checked, onChange, label: label7, name, value, disabled: disabl
|
|
|
601
628
|
onChange
|
|
602
629
|
}
|
|
603
630
|
),
|
|
604
|
-
/* @__PURE__ */
|
|
605
|
-
label7 != null && /* @__PURE__ */
|
|
631
|
+
/* @__PURE__ */ jsx13("span", { className: circle2, children: checked && /* @__PURE__ */ jsx13("span", { className: dot3 }) }),
|
|
632
|
+
label7 != null && /* @__PURE__ */ jsx13("span", { className: labelClass, children: label7 })
|
|
606
633
|
] });
|
|
607
634
|
}
|
|
608
635
|
|
|
@@ -610,7 +637,7 @@ function Radio({ checked, onChange, label: label7, name, value, disabled: disabl
|
|
|
610
637
|
import { useMemo as useMemo11 } from "react";
|
|
611
638
|
|
|
612
639
|
// src/components/switch/use-styles.css.ts
|
|
613
|
-
var input3 = "
|
|
640
|
+
var input3 = "surfaces_srOnly__1qa7atn0";
|
|
614
641
|
var knob = "use-styles_knob__1r6kem73";
|
|
615
642
|
var knobChecked = "use-styles_knobChecked__1r6kem74";
|
|
616
643
|
var label3 = "use-styles_label__1r6kem75";
|
|
@@ -619,7 +646,7 @@ var track2 = "use-styles_track__1r6kem71";
|
|
|
619
646
|
var trackChecked = "use-styles_trackChecked__1r6kem72";
|
|
620
647
|
|
|
621
648
|
// src/components/switch/use-styles.ts
|
|
622
|
-
function
|
|
649
|
+
function useStyles11({ checked }) {
|
|
623
650
|
const { themeClass } = useTheme();
|
|
624
651
|
return useMemo11(
|
|
625
652
|
() => ({
|
|
@@ -634,11 +661,11 @@ function useStyles10({ checked }) {
|
|
|
634
661
|
}
|
|
635
662
|
|
|
636
663
|
// src/components/switch/index.tsx
|
|
637
|
-
import { jsx as
|
|
664
|
+
import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
638
665
|
function Switch({ checked = false, onChange, label: label7, disabled: disabled3 }) {
|
|
639
|
-
const { root: root24, input: input6, track: track4, knob: knob2, label: labelClass } =
|
|
666
|
+
const { root: root24, input: input6, track: track4, knob: knob2, label: labelClass } = useStyles11({ checked });
|
|
640
667
|
return /* @__PURE__ */ jsxs8("label", { className: root24, children: [
|
|
641
|
-
/* @__PURE__ */
|
|
668
|
+
/* @__PURE__ */ jsx14(
|
|
642
669
|
"input",
|
|
643
670
|
{
|
|
644
671
|
type: "checkbox",
|
|
@@ -653,8 +680,8 @@ function Switch({ checked = false, onChange, label: label7, disabled: disabled3
|
|
|
653
680
|
}
|
|
654
681
|
}
|
|
655
682
|
),
|
|
656
|
-
/* @__PURE__ */
|
|
657
|
-
label7 != null && /* @__PURE__ */
|
|
683
|
+
/* @__PURE__ */ jsx14("span", { className: track4, children: /* @__PURE__ */ jsx14("span", { className: knob2 }) }),
|
|
684
|
+
label7 != null && /* @__PURE__ */ jsx14("span", { className: labelClass, children: label7 })
|
|
658
685
|
] });
|
|
659
686
|
}
|
|
660
687
|
|
|
@@ -679,7 +706,7 @@ var startIconSlot = "use-styles_startIconSlot__1c3cgda";
|
|
|
679
706
|
var trailingSlot = "use-styles_trailingSlot__1c3cgdb";
|
|
680
707
|
|
|
681
708
|
// src/components/base-field/use-styles.ts
|
|
682
|
-
function
|
|
709
|
+
function useStyles12({ error, hasStartIcon, hasTrailing, className }) {
|
|
683
710
|
const { themeClass } = useTheme();
|
|
684
711
|
return useMemo12(() => {
|
|
685
712
|
const root24 = [themeClass, root9].filter(Boolean).join(" ");
|
|
@@ -705,7 +732,7 @@ function useStyles11({ error, hasStartIcon, hasTrailing, className }) {
|
|
|
705
732
|
}
|
|
706
733
|
|
|
707
734
|
// src/components/base-field/index.tsx
|
|
708
|
-
import { jsx as
|
|
735
|
+
import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
709
736
|
function BaseField({
|
|
710
737
|
label: label7,
|
|
711
738
|
help,
|
|
@@ -719,7 +746,7 @@ function BaseField({
|
|
|
719
746
|
const autoId = useId();
|
|
720
747
|
const controlId = id ?? autoId;
|
|
721
748
|
const helpId = help != null ? `${controlId}-help` : void 0;
|
|
722
|
-
const classes =
|
|
749
|
+
const classes = useStyles12({
|
|
723
750
|
error,
|
|
724
751
|
hasStartIcon: StartIcon != null,
|
|
725
752
|
hasTrailing: trailing2 != null,
|
|
@@ -732,18 +759,18 @@ function BaseField({
|
|
|
732
759
|
"aria-invalid": error ? true : void 0
|
|
733
760
|
};
|
|
734
761
|
return /* @__PURE__ */ jsxs9("div", { className: classes.root, children: [
|
|
735
|
-
label7 != null && /* @__PURE__ */
|
|
762
|
+
label7 != null && /* @__PURE__ */ jsx15("label", { htmlFor: controlId, className: classes.labelText, children: label7 }),
|
|
736
763
|
/* @__PURE__ */ jsxs9("div", { className: classes.field, children: [
|
|
737
|
-
StartIcon != null && /* @__PURE__ */
|
|
764
|
+
StartIcon != null && /* @__PURE__ */ jsx15("span", { className: classes.startIconSlot, children: /* @__PURE__ */ jsx15(StartIcon, { size: 18 }) }),
|
|
738
765
|
children(control),
|
|
739
|
-
trailing2 != null && /* @__PURE__ */
|
|
766
|
+
trailing2 != null && /* @__PURE__ */ jsx15("span", { className: classes.trailingSlot, children: trailing2 })
|
|
740
767
|
] }),
|
|
741
|
-
help != null && /* @__PURE__ */
|
|
768
|
+
help != null && /* @__PURE__ */ jsx15("span", { id: helpId, className: classes.helpText, children: help })
|
|
742
769
|
] });
|
|
743
770
|
}
|
|
744
771
|
|
|
745
772
|
// src/components/text-field/index.tsx
|
|
746
|
-
import { jsx as
|
|
773
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
747
774
|
function TextField({
|
|
748
775
|
label: label7,
|
|
749
776
|
help,
|
|
@@ -757,7 +784,7 @@ function TextField({
|
|
|
757
784
|
id,
|
|
758
785
|
...rest
|
|
759
786
|
}) {
|
|
760
|
-
return /* @__PURE__ */
|
|
787
|
+
return /* @__PURE__ */ jsx16(
|
|
761
788
|
BaseField,
|
|
762
789
|
{
|
|
763
790
|
label: label7,
|
|
@@ -766,7 +793,7 @@ function TextField({
|
|
|
766
793
|
startIcon,
|
|
767
794
|
id,
|
|
768
795
|
className,
|
|
769
|
-
children: (control) => multiline ? /* @__PURE__ */
|
|
796
|
+
children: (control) => multiline ? /* @__PURE__ */ jsx16(
|
|
770
797
|
"textarea",
|
|
771
798
|
{
|
|
772
799
|
...rest,
|
|
@@ -774,7 +801,7 @@ function TextField({
|
|
|
774
801
|
rows: rows ?? 4,
|
|
775
802
|
onChange: (e) => onChange?.(e.target.value)
|
|
776
803
|
}
|
|
777
|
-
) : /* @__PURE__ */
|
|
804
|
+
) : /* @__PURE__ */ jsx16(
|
|
778
805
|
"input",
|
|
779
806
|
{
|
|
780
807
|
...rest,
|
|
@@ -791,7 +818,7 @@ function TextField({
|
|
|
791
818
|
import { useState as useState3 } from "react";
|
|
792
819
|
|
|
793
820
|
// src/components/icons/eye/index.tsx
|
|
794
|
-
import { jsx as
|
|
821
|
+
import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
795
822
|
function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
796
823
|
return /* @__PURE__ */ jsxs10(
|
|
797
824
|
"svg",
|
|
@@ -808,15 +835,15 @@ function EyeIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
808
835
|
"aria-hidden": "true",
|
|
809
836
|
...rest,
|
|
810
837
|
children: [
|
|
811
|
-
/* @__PURE__ */
|
|
812
|
-
/* @__PURE__ */
|
|
838
|
+
/* @__PURE__ */ jsx17("path", { d: "M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z" }),
|
|
839
|
+
/* @__PURE__ */ jsx17("circle", { cx: "12", cy: "12", r: "3" })
|
|
813
840
|
]
|
|
814
841
|
}
|
|
815
842
|
);
|
|
816
843
|
}
|
|
817
844
|
|
|
818
845
|
// src/components/icons/eye-off/index.tsx
|
|
819
|
-
import { jsx as
|
|
846
|
+
import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
820
847
|
function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
821
848
|
return /* @__PURE__ */ jsxs11(
|
|
822
849
|
"svg",
|
|
@@ -833,10 +860,10 @@ function EyeOffIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
833
860
|
"aria-hidden": "true",
|
|
834
861
|
...rest,
|
|
835
862
|
children: [
|
|
836
|
-
/* @__PURE__ */
|
|
837
|
-
/* @__PURE__ */
|
|
838
|
-
/* @__PURE__ */
|
|
839
|
-
/* @__PURE__ */
|
|
863
|
+
/* @__PURE__ */ jsx18("path", { d: "M9.88 9.88a3 3 0 1 0 4.24 4.24" }),
|
|
864
|
+
/* @__PURE__ */ jsx18("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" }),
|
|
865
|
+
/* @__PURE__ */ jsx18("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" }),
|
|
866
|
+
/* @__PURE__ */ jsx18("path", { d: "m2 2 20 20" })
|
|
840
867
|
]
|
|
841
868
|
}
|
|
842
869
|
);
|
|
@@ -849,12 +876,12 @@ import { useMemo as useMemo13 } from "react";
|
|
|
849
876
|
var revealButton = "use-styles_revealButton__rsu9d50";
|
|
850
877
|
|
|
851
878
|
// src/components/password-field/use-styles.ts
|
|
852
|
-
function
|
|
879
|
+
function useStyles13() {
|
|
853
880
|
return useMemo13(() => ({ revealButton }), []);
|
|
854
881
|
}
|
|
855
882
|
|
|
856
883
|
// src/components/password-field/index.tsx
|
|
857
|
-
import { jsx as
|
|
884
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
858
885
|
function PasswordField({
|
|
859
886
|
label: label7,
|
|
860
887
|
help,
|
|
@@ -866,14 +893,14 @@ function PasswordField({
|
|
|
866
893
|
...rest
|
|
867
894
|
}) {
|
|
868
895
|
const [reveal, setReveal] = useState3(false);
|
|
869
|
-
const classes =
|
|
896
|
+
const classes = useStyles13();
|
|
870
897
|
const handleChange = (e) => {
|
|
871
898
|
onChange?.(e.target.value);
|
|
872
899
|
};
|
|
873
900
|
const handleToggleMouseDown = (e) => {
|
|
874
901
|
e.preventDefault();
|
|
875
902
|
};
|
|
876
|
-
const toggleButton = /* @__PURE__ */
|
|
903
|
+
const toggleButton = /* @__PURE__ */ jsx19(
|
|
877
904
|
"button",
|
|
878
905
|
{
|
|
879
906
|
type: "button",
|
|
@@ -882,10 +909,10 @@ function PasswordField({
|
|
|
882
909
|
"aria-label": reveal ? "Ocultar contrase\xF1a" : "Mostrar contrase\xF1a",
|
|
883
910
|
onMouseDown: handleToggleMouseDown,
|
|
884
911
|
onClick: () => setReveal((r) => !r),
|
|
885
|
-
children: reveal ? /* @__PURE__ */
|
|
912
|
+
children: reveal ? /* @__PURE__ */ jsx19(EyeOffIcon, { size: 18 }) : /* @__PURE__ */ jsx19(EyeIcon, { size: 18 })
|
|
886
913
|
}
|
|
887
914
|
);
|
|
888
|
-
return /* @__PURE__ */
|
|
915
|
+
return /* @__PURE__ */ jsx19(
|
|
889
916
|
BaseField,
|
|
890
917
|
{
|
|
891
918
|
label: label7,
|
|
@@ -895,14 +922,14 @@ function PasswordField({
|
|
|
895
922
|
trailing: toggleButton,
|
|
896
923
|
id,
|
|
897
924
|
className,
|
|
898
|
-
children: (control) => /* @__PURE__ */
|
|
925
|
+
children: (control) => /* @__PURE__ */ jsx19("input", { ...rest, ...control, type: reveal ? "text" : "password", onChange: handleChange })
|
|
899
926
|
}
|
|
900
927
|
);
|
|
901
928
|
}
|
|
902
929
|
|
|
903
930
|
// src/components/money-field/index.tsx
|
|
904
931
|
import { useMemo as useMemo14, useState as useState4 } from "react";
|
|
905
|
-
import { jsx as
|
|
932
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
906
933
|
function parseAmount(raw) {
|
|
907
934
|
const cleaned = raw.replace(/[^0-9.-]/g, "");
|
|
908
935
|
if (cleaned === "" || cleaned === "-" || cleaned === ".") return null;
|
|
@@ -942,7 +969,7 @@ function MoneyField({
|
|
|
942
969
|
onChange?.(parseAmount(draft));
|
|
943
970
|
onBlur?.(e);
|
|
944
971
|
};
|
|
945
|
-
return /* @__PURE__ */
|
|
972
|
+
return /* @__PURE__ */ jsx20(
|
|
946
973
|
BaseField,
|
|
947
974
|
{
|
|
948
975
|
label: label7,
|
|
@@ -951,7 +978,7 @@ function MoneyField({
|
|
|
951
978
|
startIcon,
|
|
952
979
|
id,
|
|
953
980
|
className,
|
|
954
|
-
children: (control) => /* @__PURE__ */
|
|
981
|
+
children: (control) => /* @__PURE__ */ jsx20(
|
|
955
982
|
"input",
|
|
956
983
|
{
|
|
957
984
|
...rest,
|
|
@@ -976,7 +1003,7 @@ var active = "use-styles_active__18np0q01";
|
|
|
976
1003
|
var root10 = "use-styles_root__18np0q00";
|
|
977
1004
|
|
|
978
1005
|
// src/components/icon-button/use-styles.ts
|
|
979
|
-
function
|
|
1006
|
+
function useStyles14({
|
|
980
1007
|
active: active2 = false,
|
|
981
1008
|
tone: tone4 = "ink"
|
|
982
1009
|
}) {
|
|
@@ -989,10 +1016,10 @@ function useStyles13({
|
|
|
989
1016
|
}
|
|
990
1017
|
|
|
991
1018
|
// src/components/icon-button/index.tsx
|
|
992
|
-
import { jsx as
|
|
1019
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
993
1020
|
function IconButton({ icon: Icon, active: active2, tone: tone4, title, ...rest }) {
|
|
994
|
-
const { root: root24 } =
|
|
995
|
-
return /* @__PURE__ */
|
|
1021
|
+
const { root: root24 } = useStyles14({ active: active2, tone: tone4 });
|
|
1022
|
+
return /* @__PURE__ */ jsx21("button", { className: root24, "aria-label": title, title, ...rest, children: /* @__PURE__ */ jsx21(Icon, { size: 18 }) });
|
|
996
1023
|
}
|
|
997
1024
|
|
|
998
1025
|
// src/components/card/use-styles.ts
|
|
@@ -1005,29 +1032,29 @@ var header = "use-styles_header__1fuvd021";
|
|
|
1005
1032
|
var root11 = "use-styles_root__1fuvd020";
|
|
1006
1033
|
|
|
1007
1034
|
// src/components/card/use-styles.ts
|
|
1008
|
-
function
|
|
1035
|
+
function useStyles15() {
|
|
1009
1036
|
const { themeClass } = useTheme();
|
|
1010
1037
|
const root24 = useMemo16(() => `${themeClass} ${root11}`, [themeClass]);
|
|
1011
1038
|
return { root: root24, header, body, footer };
|
|
1012
1039
|
}
|
|
1013
1040
|
|
|
1014
1041
|
// src/components/card/index.tsx
|
|
1015
|
-
import { jsx as
|
|
1042
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1016
1043
|
function CardRoot({ children, ...rest }) {
|
|
1017
|
-
const { root: root24 } =
|
|
1018
|
-
return /* @__PURE__ */
|
|
1044
|
+
const { root: root24 } = useStyles15();
|
|
1045
|
+
return /* @__PURE__ */ jsx22("div", { className: root24, ...rest, children });
|
|
1019
1046
|
}
|
|
1020
1047
|
function CardHeader({ children, ...rest }) {
|
|
1021
|
-
const { header: header3 } =
|
|
1022
|
-
return /* @__PURE__ */
|
|
1048
|
+
const { header: header3 } = useStyles15();
|
|
1049
|
+
return /* @__PURE__ */ jsx22("div", { className: header3, ...rest, children });
|
|
1023
1050
|
}
|
|
1024
1051
|
function CardBody({ children, ...rest }) {
|
|
1025
|
-
const { body: body3 } =
|
|
1026
|
-
return /* @__PURE__ */
|
|
1052
|
+
const { body: body3 } = useStyles15();
|
|
1053
|
+
return /* @__PURE__ */ jsx22("div", { className: body3, ...rest, children });
|
|
1027
1054
|
}
|
|
1028
1055
|
function CardFooter({ children, ...rest }) {
|
|
1029
|
-
const { footer: footer2 } =
|
|
1030
|
-
return /* @__PURE__ */
|
|
1056
|
+
const { footer: footer2 } = useStyles15();
|
|
1057
|
+
return /* @__PURE__ */ jsx22("div", { className: footer2, ...rest, children });
|
|
1031
1058
|
}
|
|
1032
1059
|
CardRoot.displayName = "Card";
|
|
1033
1060
|
CardHeader.displayName = "Card.Header";
|
|
@@ -1040,7 +1067,7 @@ var Card = Object.assign(CardRoot, {
|
|
|
1040
1067
|
});
|
|
1041
1068
|
|
|
1042
1069
|
// src/components/icons/circle-check/index.tsx
|
|
1043
|
-
import { jsx as
|
|
1070
|
+
import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
1044
1071
|
function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1045
1072
|
return /* @__PURE__ */ jsxs12(
|
|
1046
1073
|
"svg",
|
|
@@ -1057,15 +1084,15 @@ function CircleCheckIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1057
1084
|
"aria-hidden": "true",
|
|
1058
1085
|
...rest,
|
|
1059
1086
|
children: [
|
|
1060
|
-
/* @__PURE__ */
|
|
1061
|
-
/* @__PURE__ */
|
|
1087
|
+
/* @__PURE__ */ jsx23("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1088
|
+
/* @__PURE__ */ jsx23("path", { d: "m9 12 2 2 4-4" })
|
|
1062
1089
|
]
|
|
1063
1090
|
}
|
|
1064
1091
|
);
|
|
1065
1092
|
}
|
|
1066
1093
|
|
|
1067
1094
|
// src/components/icons/circle-x/index.tsx
|
|
1068
|
-
import { jsx as
|
|
1095
|
+
import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
1069
1096
|
function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1070
1097
|
return /* @__PURE__ */ jsxs13(
|
|
1071
1098
|
"svg",
|
|
@@ -1082,16 +1109,16 @@ function CircleXIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1082
1109
|
"aria-hidden": "true",
|
|
1083
1110
|
...rest,
|
|
1084
1111
|
children: [
|
|
1085
|
-
/* @__PURE__ */
|
|
1086
|
-
/* @__PURE__ */
|
|
1087
|
-
/* @__PURE__ */
|
|
1112
|
+
/* @__PURE__ */ jsx24("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1113
|
+
/* @__PURE__ */ jsx24("path", { d: "m15 9-6 6" }),
|
|
1114
|
+
/* @__PURE__ */ jsx24("path", { d: "m9 9 6 6" })
|
|
1088
1115
|
]
|
|
1089
1116
|
}
|
|
1090
1117
|
);
|
|
1091
1118
|
}
|
|
1092
1119
|
|
|
1093
1120
|
// src/components/icons/info/index.tsx
|
|
1094
|
-
import { jsx as
|
|
1121
|
+
import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
1095
1122
|
function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1096
1123
|
return /* @__PURE__ */ jsxs14(
|
|
1097
1124
|
"svg",
|
|
@@ -1108,16 +1135,16 @@ function InfoIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1108
1135
|
"aria-hidden": "true",
|
|
1109
1136
|
...rest,
|
|
1110
1137
|
children: [
|
|
1111
|
-
/* @__PURE__ */
|
|
1112
|
-
/* @__PURE__ */
|
|
1113
|
-
/* @__PURE__ */
|
|
1138
|
+
/* @__PURE__ */ jsx25("circle", { cx: "12", cy: "12", r: "10" }),
|
|
1139
|
+
/* @__PURE__ */ jsx25("path", { d: "M12 16v-4" }),
|
|
1140
|
+
/* @__PURE__ */ jsx25("path", { d: "M12 8h.01" })
|
|
1114
1141
|
]
|
|
1115
1142
|
}
|
|
1116
1143
|
);
|
|
1117
1144
|
}
|
|
1118
1145
|
|
|
1119
1146
|
// src/components/icons/triangle-alert/index.tsx
|
|
1120
|
-
import { jsx as
|
|
1147
|
+
import { jsx as jsx26, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
1121
1148
|
function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1122
1149
|
return /* @__PURE__ */ jsxs15(
|
|
1123
1150
|
"svg",
|
|
@@ -1134,9 +1161,9 @@ function TriangleAlertIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1134
1161
|
"aria-hidden": "true",
|
|
1135
1162
|
...rest,
|
|
1136
1163
|
children: [
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */
|
|
1139
|
-
/* @__PURE__ */
|
|
1164
|
+
/* @__PURE__ */ jsx26("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" }),
|
|
1165
|
+
/* @__PURE__ */ jsx26("path", { d: "M12 9v4" }),
|
|
1166
|
+
/* @__PURE__ */ jsx26("path", { d: "M12 17h.01" })
|
|
1140
1167
|
]
|
|
1141
1168
|
}
|
|
1142
1169
|
);
|
|
@@ -1152,7 +1179,7 @@ var root12 = "use-styles_root__ivsh6u0";
|
|
|
1152
1179
|
var severity = { info: "use-styles_severity_info__ivsh6u1", ok: "use-styles_severity_ok__ivsh6u2", warn: "use-styles_severity_warn__ivsh6u3", danger: "use-styles_severity_danger__ivsh6u4" };
|
|
1153
1180
|
|
|
1154
1181
|
// src/components/alert/use-styles.ts
|
|
1155
|
-
function
|
|
1182
|
+
function useStyles16({
|
|
1156
1183
|
severity: severity2 = "info",
|
|
1157
1184
|
className
|
|
1158
1185
|
}) {
|
|
@@ -1169,7 +1196,7 @@ function useStyles15({
|
|
|
1169
1196
|
}
|
|
1170
1197
|
|
|
1171
1198
|
// src/components/alert/index.tsx
|
|
1172
|
-
import { jsx as
|
|
1199
|
+
import { jsx as jsx27, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
1173
1200
|
var defaultIcons = {
|
|
1174
1201
|
info: InfoIcon,
|
|
1175
1202
|
ok: CircleCheckIcon,
|
|
@@ -1184,13 +1211,13 @@ function Alert({
|
|
|
1184
1211
|
children,
|
|
1185
1212
|
...rest
|
|
1186
1213
|
}) {
|
|
1187
|
-
const styles =
|
|
1214
|
+
const styles = useStyles16({ severity: severity2, className });
|
|
1188
1215
|
const IconComponent = icon ?? defaultIcons[severity2];
|
|
1189
1216
|
return /* @__PURE__ */ jsxs16("div", { role: "alert", className: styles.root, ...rest, children: [
|
|
1190
|
-
/* @__PURE__ */
|
|
1217
|
+
/* @__PURE__ */ jsx27("span", { className: styles.iconSlot, children: /* @__PURE__ */ jsx27(IconComponent, {}) }),
|
|
1191
1218
|
/* @__PURE__ */ jsxs16("div", { className: styles.content, children: [
|
|
1192
|
-
title != null && /* @__PURE__ */
|
|
1193
|
-
children != null && /* @__PURE__ */
|
|
1219
|
+
title != null && /* @__PURE__ */ jsx27(Typography, { variant: "h4", children: title }),
|
|
1220
|
+
children != null && /* @__PURE__ */ jsx27(Typography, { variant: "body", color: "fg2", children })
|
|
1194
1221
|
] })
|
|
1195
1222
|
] });
|
|
1196
1223
|
}
|
|
@@ -1202,12 +1229,12 @@ import { cloneElement, useId as useId2, useState as useState5 } from "react";
|
|
|
1202
1229
|
import { useMemo as useMemo18 } from "react";
|
|
1203
1230
|
|
|
1204
1231
|
// src/components/tooltip/use-styles.css.ts
|
|
1205
|
-
var bubble = "use-styles_bubble__h9kvh1
|
|
1232
|
+
var bubble = "use-styles_bubble__h9kvh1 surfaces_inkySurface__1qa7atn2";
|
|
1206
1233
|
var placement = { top: "use-styles_placement_top__h9kvh2", bottom: "use-styles_placement_bottom__h9kvh3" };
|
|
1207
1234
|
var wrapper = "use-styles_wrapper__h9kvh0";
|
|
1208
1235
|
|
|
1209
1236
|
// src/components/tooltip/use-styles.ts
|
|
1210
|
-
function
|
|
1237
|
+
function useStyles17({
|
|
1211
1238
|
placement: placement2 = "top"
|
|
1212
1239
|
}) {
|
|
1213
1240
|
const { themeClass } = useTheme();
|
|
@@ -1223,11 +1250,11 @@ function useStyles16({
|
|
|
1223
1250
|
}
|
|
1224
1251
|
|
|
1225
1252
|
// src/components/tooltip/index.tsx
|
|
1226
|
-
import { jsx as
|
|
1253
|
+
import { jsx as jsx28, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
1227
1254
|
function Tooltip({ label: label7, children, placement: placement2 }) {
|
|
1228
1255
|
const [open, setOpen] = useState5(false);
|
|
1229
1256
|
const tooltipId = useId2();
|
|
1230
|
-
const { wrapper: wrapper4, bubble: bubble2 } =
|
|
1257
|
+
const { wrapper: wrapper4, bubble: bubble2 } = useStyles17({ placement: placement2 });
|
|
1231
1258
|
const show = () => setOpen(true);
|
|
1232
1259
|
const hide = () => setOpen(false);
|
|
1233
1260
|
const previousDescribedBy = children.props["aria-describedby"];
|
|
@@ -1235,7 +1262,7 @@ function Tooltip({ label: label7, children, placement: placement2 }) {
|
|
|
1235
1262
|
const trigger2 = cloneElement(children, { "aria-describedby": describedBy });
|
|
1236
1263
|
return /* @__PURE__ */ jsxs17("span", { className: wrapper4, onMouseEnter: show, onMouseLeave: hide, onFocus: show, onBlur: hide, children: [
|
|
1237
1264
|
trigger2,
|
|
1238
|
-
open && /* @__PURE__ */
|
|
1265
|
+
open && /* @__PURE__ */ jsx28("span", { id: tooltipId, role: "tooltip", className: bubble2, children: label7 })
|
|
1239
1266
|
] });
|
|
1240
1267
|
}
|
|
1241
1268
|
|
|
@@ -1243,9 +1270,9 @@ function Tooltip({ label: label7, children, placement: placement2 }) {
|
|
|
1243
1270
|
import { useEffect as useEffect3, useId as useId3, useRef as useRef2, useState as useState6 } from "react";
|
|
1244
1271
|
|
|
1245
1272
|
// src/components/icons/chevron-down/index.tsx
|
|
1246
|
-
import { jsx as
|
|
1273
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1247
1274
|
function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1248
|
-
return /* @__PURE__ */
|
|
1275
|
+
return /* @__PURE__ */ jsx29(
|
|
1249
1276
|
"svg",
|
|
1250
1277
|
{
|
|
1251
1278
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1259,7 +1286,7 @@ function ChevronDownIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1259
1286
|
strokeLinejoin: "round",
|
|
1260
1287
|
"aria-hidden": "true",
|
|
1261
1288
|
...rest,
|
|
1262
|
-
children: /* @__PURE__ */
|
|
1289
|
+
children: /* @__PURE__ */ jsx29("path", { d: "m6 9 6 6 6-6" })
|
|
1263
1290
|
}
|
|
1264
1291
|
);
|
|
1265
1292
|
}
|
|
@@ -1271,7 +1298,7 @@ import { useMemo as useMemo19 } from "react";
|
|
|
1271
1298
|
var chevron = "use-styles_chevron__1w1czpb4";
|
|
1272
1299
|
var chevronOpen = "use-styles_chevronOpen__1w1czpb5";
|
|
1273
1300
|
var label4 = "use-styles_label__1w1czpb1";
|
|
1274
|
-
var menu = "use-styles_menu__1w1czpb6
|
|
1301
|
+
var menu = "use-styles_menu__1w1czpb6 surfaces_panelSurface__1qa7atn1";
|
|
1275
1302
|
var option = "use-styles_option__1w1czpb7";
|
|
1276
1303
|
var optionActive = "use-styles_optionActive__1w1czpb9";
|
|
1277
1304
|
var optionSelected = "use-styles_optionSelected__1w1czpb8";
|
|
@@ -1280,7 +1307,7 @@ var root13 = "use-styles_root__1w1czpb0";
|
|
|
1280
1307
|
var trigger = "use-styles_trigger__1w1czpb2";
|
|
1281
1308
|
|
|
1282
1309
|
// src/components/select/use-styles.ts
|
|
1283
|
-
function
|
|
1310
|
+
function useStyles18({
|
|
1284
1311
|
open = false
|
|
1285
1312
|
}) {
|
|
1286
1313
|
const { themeClass } = useTheme();
|
|
@@ -1299,7 +1326,7 @@ function useStyles17({
|
|
|
1299
1326
|
}
|
|
1300
1327
|
|
|
1301
1328
|
// src/components/select/index.tsx
|
|
1302
|
-
import { jsx as
|
|
1329
|
+
import { jsx as jsx30, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
1303
1330
|
function Select({ options, value, onChange, placeholder: placeholder2, label: label7, disabled: disabled3 }) {
|
|
1304
1331
|
const [open, setOpen] = useState6(false);
|
|
1305
1332
|
const [activeIndex, setActiveIndex] = useState6(0);
|
|
@@ -1315,7 +1342,7 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1315
1342
|
chevron: chevron3,
|
|
1316
1343
|
menu: menu2,
|
|
1317
1344
|
optionClass
|
|
1318
|
-
} =
|
|
1345
|
+
} = useStyles18({ open });
|
|
1319
1346
|
useEffect3(() => {
|
|
1320
1347
|
if (!open) return;
|
|
1321
1348
|
const onPointerDown = (event) => {
|
|
@@ -1377,7 +1404,7 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1377
1404
|
}
|
|
1378
1405
|
};
|
|
1379
1406
|
return /* @__PURE__ */ jsxs18("div", { ref: rootRef, className: root24, children: [
|
|
1380
|
-
label7 && /* @__PURE__ */
|
|
1407
|
+
label7 && /* @__PURE__ */ jsx30("span", { id: labelId, className: labelClass, children: label7 }),
|
|
1381
1408
|
/* @__PURE__ */ jsxs18(
|
|
1382
1409
|
"button",
|
|
1383
1410
|
{
|
|
@@ -1398,17 +1425,17 @@ function Select({ options, value, onChange, placeholder: placeholder2, label: la
|
|
|
1398
1425
|
},
|
|
1399
1426
|
onKeyDown: handleKeyDown,
|
|
1400
1427
|
children: [
|
|
1401
|
-
selected3 ? selected3.label : /* @__PURE__ */
|
|
1402
|
-
/* @__PURE__ */
|
|
1428
|
+
selected3 ? selected3.label : /* @__PURE__ */ jsx30("span", { className: placeholderClass, children: placeholder2 }),
|
|
1429
|
+
/* @__PURE__ */ jsx30("span", { className: chevron3, children: /* @__PURE__ */ jsx30(ChevronDownIcon, { size: 18 }) })
|
|
1403
1430
|
]
|
|
1404
1431
|
}
|
|
1405
1432
|
),
|
|
1406
|
-
open && /* @__PURE__ */
|
|
1433
|
+
open && /* @__PURE__ */ jsx30("div", { className: menu2, role: "listbox", children: options.map((option2, index) => {
|
|
1407
1434
|
const isSelected = option2.value === value;
|
|
1408
1435
|
const isActive = index === activeIndex;
|
|
1409
1436
|
return (
|
|
1410
1437
|
// biome-ignore lint/a11y/useKeyWithClickEvents: keyboard nav lives on the trigger via aria-activedescendant; options are not focusable.
|
|
1411
|
-
/* @__PURE__ */
|
|
1438
|
+
/* @__PURE__ */ jsx30(
|
|
1412
1439
|
"div",
|
|
1413
1440
|
{
|
|
1414
1441
|
id: optionId(index),
|
|
@@ -1439,7 +1466,7 @@ var track3 = "use-styles_track__okw59n1";
|
|
|
1439
1466
|
var wrapper2 = "use-styles_wrapper__okw59n6";
|
|
1440
1467
|
|
|
1441
1468
|
// src/components/slider/use-styles.ts
|
|
1442
|
-
function
|
|
1469
|
+
function useStyles19() {
|
|
1443
1470
|
const { themeClass } = useTheme();
|
|
1444
1471
|
return useMemo20(() => {
|
|
1445
1472
|
const root24 = [themeClass, root14].filter(Boolean).join(" ");
|
|
@@ -1456,7 +1483,7 @@ function useStyles18() {
|
|
|
1456
1483
|
}
|
|
1457
1484
|
|
|
1458
1485
|
// src/components/slider/index.tsx
|
|
1459
|
-
import { jsx as
|
|
1486
|
+
import { jsx as jsx31, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
1460
1487
|
function Slider({
|
|
1461
1488
|
value = 0,
|
|
1462
1489
|
onChange,
|
|
@@ -1466,7 +1493,7 @@ function Slider({
|
|
|
1466
1493
|
disabled: disabled3,
|
|
1467
1494
|
label: label7
|
|
1468
1495
|
}) {
|
|
1469
|
-
const { wrapper: wrapper4, label: labelClass, root: root24, track: track4, range: range2, thumb: thumb2, input: input6 } =
|
|
1496
|
+
const { wrapper: wrapper4, label: labelClass, root: root24, track: track4, range: range2, thumb: thumb2, input: input6 } = useStyles19();
|
|
1470
1497
|
const span = max - min;
|
|
1471
1498
|
const percent = span > 0 ? (value - min) / span * 100 : 0;
|
|
1472
1499
|
const clamped = Math.max(0, Math.min(100, percent));
|
|
@@ -1474,11 +1501,11 @@ function Slider({
|
|
|
1474
1501
|
onChange?.(Number(e.target.value));
|
|
1475
1502
|
};
|
|
1476
1503
|
return /* @__PURE__ */ jsxs19("span", { className: wrapper4, children: [
|
|
1477
|
-
label7 ? /* @__PURE__ */
|
|
1504
|
+
label7 ? /* @__PURE__ */ jsx31("span", { className: labelClass, children: label7 }) : null,
|
|
1478
1505
|
/* @__PURE__ */ jsxs19("span", { className: root24, children: [
|
|
1479
|
-
/* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
/* @__PURE__ */
|
|
1506
|
+
/* @__PURE__ */ jsx31("span", { className: track4 }),
|
|
1507
|
+
/* @__PURE__ */ jsx31("span", { className: range2, style: { width: `${clamped}%` } }),
|
|
1508
|
+
/* @__PURE__ */ jsx31(
|
|
1482
1509
|
"input",
|
|
1483
1510
|
{
|
|
1484
1511
|
className: input6,
|
|
@@ -1491,7 +1518,7 @@ function Slider({
|
|
|
1491
1518
|
onChange: handleChange
|
|
1492
1519
|
}
|
|
1493
1520
|
),
|
|
1494
|
-
/* @__PURE__ */
|
|
1521
|
+
/* @__PURE__ */ jsx31("span", { className: thumb2, style: { left: `${clamped}%` } })
|
|
1495
1522
|
] })
|
|
1496
1523
|
] });
|
|
1497
1524
|
}
|
|
@@ -1511,7 +1538,7 @@ var panel = "use-styles_panel__1cjrdh95";
|
|
|
1511
1538
|
var root15 = "use-styles_root__1cjrdh90";
|
|
1512
1539
|
|
|
1513
1540
|
// src/components/accordion/use-styles.ts
|
|
1514
|
-
function
|
|
1541
|
+
function useStyles20({ className }) {
|
|
1515
1542
|
const { themeClass } = useTheme();
|
|
1516
1543
|
return useMemo21(
|
|
1517
1544
|
() => ({
|
|
@@ -1526,7 +1553,7 @@ function useStyles19({ className }) {
|
|
|
1526
1553
|
}
|
|
1527
1554
|
|
|
1528
1555
|
// src/components/accordion/index.tsx
|
|
1529
|
-
import { jsx as
|
|
1556
|
+
import { jsx as jsx32, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1530
1557
|
function Accordion({
|
|
1531
1558
|
items,
|
|
1532
1559
|
multiple = false,
|
|
@@ -1534,7 +1561,7 @@ function Accordion({
|
|
|
1534
1561
|
className
|
|
1535
1562
|
}) {
|
|
1536
1563
|
const [open, setOpen] = useState7(defaultOpen);
|
|
1537
|
-
const { root: root24, item: item3, header: header3, chevronFor, panel: panel2 } =
|
|
1564
|
+
const { root: root24, item: item3, header: header3, chevronFor, panel: panel2 } = useStyles20({ className });
|
|
1538
1565
|
const toggle = (id) => {
|
|
1539
1566
|
setOpen((current2) => {
|
|
1540
1567
|
const isOpen = current2.includes(id);
|
|
@@ -1542,7 +1569,7 @@ function Accordion({
|
|
|
1542
1569
|
return multiple ? [...current2, id] : [id];
|
|
1543
1570
|
});
|
|
1544
1571
|
};
|
|
1545
|
-
return /* @__PURE__ */
|
|
1572
|
+
return /* @__PURE__ */ jsx32("div", { className: root24, children: items.map((it) => {
|
|
1546
1573
|
const isOpen = open.includes(it.id);
|
|
1547
1574
|
const panelId = `accordion-panel-${it.id}`;
|
|
1548
1575
|
const headerId = `accordion-header-${it.id}`;
|
|
@@ -1558,11 +1585,11 @@ function Accordion({
|
|
|
1558
1585
|
onClick: () => toggle(it.id),
|
|
1559
1586
|
children: [
|
|
1560
1587
|
it.title,
|
|
1561
|
-
/* @__PURE__ */
|
|
1588
|
+
/* @__PURE__ */ jsx32(ChevronDownIcon, { className: chevronFor(isOpen) })
|
|
1562
1589
|
]
|
|
1563
1590
|
}
|
|
1564
1591
|
),
|
|
1565
|
-
isOpen && /* @__PURE__ */
|
|
1592
|
+
isOpen && /* @__PURE__ */ jsx32("div", { id: panelId, className: panel2, role: "region", "aria-labelledby": headerId, children: it.content })
|
|
1566
1593
|
] }, it.id);
|
|
1567
1594
|
}) });
|
|
1568
1595
|
}
|
|
@@ -1571,9 +1598,9 @@ function Accordion({
|
|
|
1571
1598
|
import { Fragment } from "react";
|
|
1572
1599
|
|
|
1573
1600
|
// src/components/icons/chevron-right/index.tsx
|
|
1574
|
-
import { jsx as
|
|
1601
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
1575
1602
|
function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1576
|
-
return /* @__PURE__ */
|
|
1603
|
+
return /* @__PURE__ */ jsx33(
|
|
1577
1604
|
"svg",
|
|
1578
1605
|
{
|
|
1579
1606
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1587,7 +1614,7 @@ function ChevronRightIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1587
1614
|
strokeLinejoin: "round",
|
|
1588
1615
|
"aria-hidden": "true",
|
|
1589
1616
|
...rest,
|
|
1590
|
-
children: /* @__PURE__ */
|
|
1617
|
+
children: /* @__PURE__ */ jsx33("path", { d: "m9 18 6-6-6-6" })
|
|
1591
1618
|
}
|
|
1592
1619
|
);
|
|
1593
1620
|
}
|
|
@@ -1602,7 +1629,7 @@ var root16 = "use-styles_root__7u0du60";
|
|
|
1602
1629
|
var separator = "use-styles_separator__7u0du63";
|
|
1603
1630
|
|
|
1604
1631
|
// src/components/breadcrumbs/use-styles.ts
|
|
1605
|
-
function
|
|
1632
|
+
function useStyles21({ className }) {
|
|
1606
1633
|
const { themeClass } = useTheme();
|
|
1607
1634
|
const root24 = useMemo22(
|
|
1608
1635
|
() => [themeClass, root16, className].filter(Boolean).join(" "),
|
|
@@ -1612,23 +1639,23 @@ function useStyles20({ className }) {
|
|
|
1612
1639
|
}
|
|
1613
1640
|
|
|
1614
1641
|
// src/components/breadcrumbs/index.tsx
|
|
1615
|
-
import { jsx as
|
|
1642
|
+
import { jsx as jsx34, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
1616
1643
|
function Breadcrumbs({ items, className, ...rest }) {
|
|
1617
|
-
const { root: root24, crumb: crumb2, current: current2, separator: separator2 } =
|
|
1618
|
-
return /* @__PURE__ */
|
|
1644
|
+
const { root: root24, crumb: crumb2, current: current2, separator: separator2 } = useStyles21({ className });
|
|
1645
|
+
return /* @__PURE__ */ jsx34("nav", { "aria-label": "Breadcrumb", className: root24, ...rest, children: items.map((item3, index) => {
|
|
1619
1646
|
const isLast = index === items.length - 1;
|
|
1620
1647
|
const key = index;
|
|
1621
1648
|
return /* @__PURE__ */ jsxs21(Fragment, { children: [
|
|
1622
|
-
isLast ? /* @__PURE__ */
|
|
1623
|
-
!isLast && /* @__PURE__ */
|
|
1649
|
+
isLast ? /* @__PURE__ */ jsx34("span", { className: current2, "aria-current": "page", children: item3.label }) : item3.href ? /* @__PURE__ */ jsx34("a", { className: crumb2, href: item3.href, children: item3.label }) : /* @__PURE__ */ jsx34("span", { className: crumb2, children: item3.label }),
|
|
1650
|
+
!isLast && /* @__PURE__ */ jsx34("span", { className: separator2, children: /* @__PURE__ */ jsx34(ChevronRightIcon, { size: 14 }) })
|
|
1624
1651
|
] }, key);
|
|
1625
1652
|
}) });
|
|
1626
1653
|
}
|
|
1627
1654
|
|
|
1628
1655
|
// src/components/icons/chevron-left/index.tsx
|
|
1629
|
-
import { jsx as
|
|
1656
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
1630
1657
|
function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
1631
|
-
return /* @__PURE__ */
|
|
1658
|
+
return /* @__PURE__ */ jsx35(
|
|
1632
1659
|
"svg",
|
|
1633
1660
|
{
|
|
1634
1661
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1642,7 +1669,7 @@ function ChevronLeftIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
1642
1669
|
strokeLinejoin: "round",
|
|
1643
1670
|
"aria-hidden": "true",
|
|
1644
1671
|
...rest,
|
|
1645
|
-
children: /* @__PURE__ */
|
|
1672
|
+
children: /* @__PURE__ */ jsx35("path", { d: "m15 18-6-6 6-6" })
|
|
1646
1673
|
}
|
|
1647
1674
|
);
|
|
1648
1675
|
}
|
|
@@ -1658,7 +1685,7 @@ var pageBtn = "use-styles_pageBtn__1azgzoh1";
|
|
|
1658
1685
|
var root17 = "use-styles_root__1azgzoh0";
|
|
1659
1686
|
|
|
1660
1687
|
// src/components/pagination/use-styles.ts
|
|
1661
|
-
function
|
|
1688
|
+
function useStyles22() {
|
|
1662
1689
|
const { themeClass } = useTheme();
|
|
1663
1690
|
return useMemo23(
|
|
1664
1691
|
() => ({
|
|
@@ -1672,7 +1699,7 @@ function useStyles21() {
|
|
|
1672
1699
|
}
|
|
1673
1700
|
|
|
1674
1701
|
// src/components/pagination/index.tsx
|
|
1675
|
-
import { jsx as
|
|
1702
|
+
import { jsx as jsx36, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
1676
1703
|
function buildItems(count, page, siblingCount) {
|
|
1677
1704
|
const total = Math.max(1, count);
|
|
1678
1705
|
const first = 1;
|
|
@@ -1687,13 +1714,13 @@ function buildItems(count, page, siblingCount) {
|
|
|
1687
1714
|
return items;
|
|
1688
1715
|
}
|
|
1689
1716
|
function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
1690
|
-
const { root: root24, pageBtnFor, ellipsis: ellipsis2, nav: nav2 } =
|
|
1717
|
+
const { root: root24, pageBtnFor, ellipsis: ellipsis2, nav: nav2 } = useStyles22();
|
|
1691
1718
|
const total = Math.max(1, count);
|
|
1692
1719
|
const current2 = Math.min(Math.max(1, page), total);
|
|
1693
1720
|
const items = buildItems(total, current2, siblingCount);
|
|
1694
1721
|
const go = (n) => onChange?.(Math.min(Math.max(1, n), total));
|
|
1695
1722
|
return /* @__PURE__ */ jsxs22("nav", { className: root24, "aria-label": "Pagination", children: [
|
|
1696
|
-
/* @__PURE__ */
|
|
1723
|
+
/* @__PURE__ */ jsx36(
|
|
1697
1724
|
"button",
|
|
1698
1725
|
{
|
|
1699
1726
|
type: "button",
|
|
@@ -1701,14 +1728,14 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1701
1728
|
"aria-label": "Previous page",
|
|
1702
1729
|
disabled: current2 <= 1,
|
|
1703
1730
|
onClick: () => go(current2 - 1),
|
|
1704
|
-
children: /* @__PURE__ */
|
|
1731
|
+
children: /* @__PURE__ */ jsx36(ChevronLeftIcon, { size: 18 })
|
|
1705
1732
|
}
|
|
1706
1733
|
),
|
|
1707
1734
|
items.map(
|
|
1708
1735
|
(item3, index) => item3 === "ellipsis" ? (
|
|
1709
1736
|
// biome-ignore lint/suspicious/noArrayIndexKey: ellipsis position is stable per render
|
|
1710
|
-
/* @__PURE__ */
|
|
1711
|
-
) : /* @__PURE__ */
|
|
1737
|
+
/* @__PURE__ */ jsx36("span", { className: ellipsis2, children: "\u2026" }, `ellipsis-${index}`)
|
|
1738
|
+
) : /* @__PURE__ */ jsx36(
|
|
1712
1739
|
"button",
|
|
1713
1740
|
{
|
|
1714
1741
|
type: "button",
|
|
@@ -1720,7 +1747,7 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1720
1747
|
item3
|
|
1721
1748
|
)
|
|
1722
1749
|
),
|
|
1723
|
-
/* @__PURE__ */
|
|
1750
|
+
/* @__PURE__ */ jsx36(
|
|
1724
1751
|
"button",
|
|
1725
1752
|
{
|
|
1726
1753
|
type: "button",
|
|
@@ -1728,7 +1755,7 @@ function Pagination({ count, page = 1, onChange, siblingCount = 1 }) {
|
|
|
1728
1755
|
"aria-label": "Next page",
|
|
1729
1756
|
disabled: current2 >= total,
|
|
1730
1757
|
onClick: () => go(current2 + 1),
|
|
1731
|
-
children: /* @__PURE__ */
|
|
1758
|
+
children: /* @__PURE__ */ jsx36(ChevronRightIcon, { size: 18 })
|
|
1732
1759
|
}
|
|
1733
1760
|
)
|
|
1734
1761
|
] });
|
|
@@ -1751,7 +1778,7 @@ var root18 = "use-styles_root__79pt4e0";
|
|
|
1751
1778
|
var step = "use-styles_step__79pt4e1";
|
|
1752
1779
|
|
|
1753
1780
|
// src/components/stepper/use-styles.ts
|
|
1754
|
-
function
|
|
1781
|
+
function useStyles23({ className }) {
|
|
1755
1782
|
const { themeClass } = useTheme();
|
|
1756
1783
|
return useMemo24(() => {
|
|
1757
1784
|
const root24 = [themeClass, root18, className].filter(Boolean).join(" ");
|
|
@@ -1766,20 +1793,20 @@ function useStyles22({ className }) {
|
|
|
1766
1793
|
}
|
|
1767
1794
|
|
|
1768
1795
|
// src/components/stepper/index.tsx
|
|
1769
|
-
import { jsx as
|
|
1796
|
+
import { jsx as jsx37, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
1770
1797
|
function Stepper({ steps, active: active2 = 0, className, ...rest }) {
|
|
1771
|
-
const { root: root24, step: step2, connector: connector2, markerFor, labelFor } =
|
|
1772
|
-
return /* @__PURE__ */
|
|
1798
|
+
const { root: root24, step: step2, connector: connector2, markerFor, labelFor } = useStyles23({ className });
|
|
1799
|
+
return /* @__PURE__ */ jsx37("div", { className: root24, ...rest, children: steps.map((s, index) => {
|
|
1773
1800
|
const state = index < active2 ? "done" : index === active2 ? "active" : "upcoming";
|
|
1774
1801
|
const isActive = state === "active";
|
|
1775
1802
|
return (
|
|
1776
1803
|
// biome-ignore lint/suspicious/noArrayIndexKey: steps are a static, ordered list with no stable id.
|
|
1777
1804
|
/* @__PURE__ */ jsxs23(Fragment2, { children: [
|
|
1778
1805
|
/* @__PURE__ */ jsxs23("div", { className: step2, "aria-current": isActive ? "step" : void 0, children: [
|
|
1779
|
-
/* @__PURE__ */
|
|
1780
|
-
/* @__PURE__ */
|
|
1806
|
+
/* @__PURE__ */ jsx37("span", { className: markerFor(state), children: state === "done" ? /* @__PURE__ */ jsx37(CheckIcon, { size: 14 }) : index + 1 }),
|
|
1807
|
+
/* @__PURE__ */ jsx37("span", { className: labelFor(isActive), children: s.label })
|
|
1781
1808
|
] }),
|
|
1782
|
-
index < steps.length - 1 && /* @__PURE__ */
|
|
1809
|
+
index < steps.length - 1 && /* @__PURE__ */ jsx37("span", { "data-part": "connector", className: connector2 })
|
|
1783
1810
|
] }, index)
|
|
1784
1811
|
);
|
|
1785
1812
|
}) });
|
|
@@ -1794,7 +1821,7 @@ var tab = "use-styles_tab__1l4m7t41";
|
|
|
1794
1821
|
var tabActive = "use-styles_tabActive__1l4m7t42";
|
|
1795
1822
|
|
|
1796
1823
|
// src/components/tabs/use-styles.ts
|
|
1797
|
-
function
|
|
1824
|
+
function useStyles24() {
|
|
1798
1825
|
const { themeClass } = useTheme();
|
|
1799
1826
|
return useMemo25(() => {
|
|
1800
1827
|
const root24 = [themeClass, root19].filter(Boolean).join(" ");
|
|
@@ -1804,12 +1831,12 @@ function useStyles23() {
|
|
|
1804
1831
|
}
|
|
1805
1832
|
|
|
1806
1833
|
// src/components/tabs/index.tsx
|
|
1807
|
-
import { jsx as
|
|
1834
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
1808
1835
|
function Tabs({ items, value, onChange }) {
|
|
1809
|
-
const { root: root24, tabClass } =
|
|
1810
|
-
return /* @__PURE__ */
|
|
1836
|
+
const { root: root24, tabClass } = useStyles24();
|
|
1837
|
+
return /* @__PURE__ */ jsx38("div", { role: "tablist", className: root24, children: items.map((item3) => {
|
|
1811
1838
|
const active2 = item3.value === value;
|
|
1812
|
-
return /* @__PURE__ */
|
|
1839
|
+
return /* @__PURE__ */ jsx38(
|
|
1813
1840
|
"button",
|
|
1814
1841
|
{
|
|
1815
1842
|
type: "button",
|
|
@@ -1828,6 +1855,7 @@ function Tabs({ items, value, onChange }) {
|
|
|
1828
1855
|
import {
|
|
1829
1856
|
cloneElement as cloneElement2,
|
|
1830
1857
|
useEffect as useEffect4,
|
|
1858
|
+
useLayoutEffect,
|
|
1831
1859
|
useRef as useRef3,
|
|
1832
1860
|
useState as useState8
|
|
1833
1861
|
} from "react";
|
|
@@ -1838,11 +1866,11 @@ import { useMemo as useMemo26 } from "react";
|
|
|
1838
1866
|
// src/components/menu/use-styles.css.ts
|
|
1839
1867
|
var danger = "use-styles_danger__1uyxaj3";
|
|
1840
1868
|
var item2 = "use-styles_item__1uyxaj2";
|
|
1841
|
-
var list = "use-styles_list__1uyxaj1
|
|
1869
|
+
var list = "use-styles_list__1uyxaj1 surfaces_panelSurface__1qa7atn1";
|
|
1842
1870
|
var wrapper3 = "use-styles_wrapper__1uyxaj0";
|
|
1843
1871
|
|
|
1844
1872
|
// src/components/menu/use-styles.ts
|
|
1845
|
-
function
|
|
1873
|
+
function useStyles25() {
|
|
1846
1874
|
const { themeClass } = useTheme();
|
|
1847
1875
|
return useMemo26(
|
|
1848
1876
|
() => ({
|
|
@@ -1856,14 +1884,15 @@ function useStyles24() {
|
|
|
1856
1884
|
}
|
|
1857
1885
|
|
|
1858
1886
|
// src/components/menu/index.tsx
|
|
1859
|
-
import { jsx as
|
|
1887
|
+
import { jsx as jsx39, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
1860
1888
|
function assignRef(ref, value) {
|
|
1861
1889
|
if (typeof ref === "function") ref(value);
|
|
1862
1890
|
else if (ref) ref.current = value;
|
|
1863
1891
|
}
|
|
1864
1892
|
function Menu({ trigger: trigger2, items }) {
|
|
1865
|
-
const { wrapper: wrapper4, list: list2, item: item3, dangerItem } =
|
|
1893
|
+
const { wrapper: wrapper4, list: list2, item: item3, dangerItem } = useStyles25();
|
|
1866
1894
|
const [open, setOpen] = useState8(false);
|
|
1895
|
+
const [alignEnd, setAlignEnd] = useState8(false);
|
|
1867
1896
|
const rootRef = useRef3(null);
|
|
1868
1897
|
const listRef = useRef3(null);
|
|
1869
1898
|
const triggerRef = useRef3(null);
|
|
@@ -1878,6 +1907,18 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1878
1907
|
setOpen(false);
|
|
1879
1908
|
triggerRef.current?.focus();
|
|
1880
1909
|
};
|
|
1910
|
+
useLayoutEffect(() => {
|
|
1911
|
+
if (!open) {
|
|
1912
|
+
setAlignEnd(false);
|
|
1913
|
+
return;
|
|
1914
|
+
}
|
|
1915
|
+
const listEl = listRef.current;
|
|
1916
|
+
const rootEl = rootRef.current;
|
|
1917
|
+
if (!listEl || !rootEl) return;
|
|
1918
|
+
const rootLeft = rootEl.getBoundingClientRect().left;
|
|
1919
|
+
const viewport = document.documentElement.clientWidth;
|
|
1920
|
+
setAlignEnd(rootLeft + listEl.offsetWidth > viewport);
|
|
1921
|
+
}, [open]);
|
|
1881
1922
|
useEffect4(() => {
|
|
1882
1923
|
if (!open) return;
|
|
1883
1924
|
listRef.current?.querySelector('[role="menuitem"]')?.focus();
|
|
@@ -1945,21 +1986,31 @@ function Menu({ trigger: trigger2, items }) {
|
|
|
1945
1986
|
});
|
|
1946
1987
|
return /* @__PURE__ */ jsxs24("div", { ref: rootRef, className: wrapper4, children: [
|
|
1947
1988
|
clonedTrigger,
|
|
1948
|
-
open && /* @__PURE__ */
|
|
1949
|
-
"
|
|
1989
|
+
open && /* @__PURE__ */ jsx39(
|
|
1990
|
+
"div",
|
|
1950
1991
|
{
|
|
1951
|
-
|
|
1952
|
-
role: "
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1992
|
+
ref: listRef,
|
|
1993
|
+
role: "menu",
|
|
1994
|
+
className: list2,
|
|
1995
|
+
"data-align": alignEnd ? "end" : "start",
|
|
1996
|
+
onKeyDown: onMenuKeyDown,
|
|
1997
|
+
children: items.map((entry, index) => /* @__PURE__ */ jsx39(
|
|
1998
|
+
"button",
|
|
1999
|
+
{
|
|
2000
|
+
type: "button",
|
|
2001
|
+
role: "menuitem",
|
|
2002
|
+
tabIndex: -1,
|
|
2003
|
+
className: entry.danger ? dangerItem : item3,
|
|
2004
|
+
onClick: () => {
|
|
2005
|
+
entry.onClick?.();
|
|
2006
|
+
setOpen(false);
|
|
2007
|
+
},
|
|
2008
|
+
children: entry.label
|
|
2009
|
+
},
|
|
2010
|
+
index
|
|
2011
|
+
))
|
|
2012
|
+
}
|
|
2013
|
+
)
|
|
1963
2014
|
] });
|
|
1964
2015
|
}
|
|
1965
2016
|
|
|
@@ -1981,7 +2032,7 @@ var overlay = "use-styles_overlay__5tstu80";
|
|
|
1981
2032
|
var surface = "use-styles_surface__5tstu81";
|
|
1982
2033
|
|
|
1983
2034
|
// src/components/dialog/use-styles.ts
|
|
1984
|
-
function
|
|
2035
|
+
function useStyles26() {
|
|
1985
2036
|
const { themeClass } = useTheme();
|
|
1986
2037
|
return useMemo27(
|
|
1987
2038
|
() => ({
|
|
@@ -1995,10 +2046,10 @@ function useStyles25() {
|
|
|
1995
2046
|
}
|
|
1996
2047
|
|
|
1997
2048
|
// src/components/dialog/index.tsx
|
|
1998
|
-
import { jsx as
|
|
2049
|
+
import { jsx as jsx40, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
1999
2050
|
var FOCUSABLE = 'a[href], button:not([disabled]), textarea:not([disabled]), input:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])';
|
|
2000
2051
|
function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
2001
|
-
const { overlay: overlay2, surface: surface2, body: body3, actions: actionsClass } =
|
|
2052
|
+
const { overlay: overlay2, surface: surface2, body: body3, actions: actionsClass } = useStyles26();
|
|
2002
2053
|
const surfaceRef = useRef4(null);
|
|
2003
2054
|
const previouslyFocused = useRef4(null);
|
|
2004
2055
|
const generatedId = useId4();
|
|
@@ -2055,7 +2106,7 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
2055
2106
|
};
|
|
2056
2107
|
return createPortal(
|
|
2057
2108
|
// biome-ignore lint/a11y/useKeyWithClickEvents: ESC handled by a document keydown listener.
|
|
2058
|
-
/* @__PURE__ */
|
|
2109
|
+
/* @__PURE__ */ jsx40("div", { className: overlay2, "data-testid": "dialog-overlay", onClick: onClose, children: /* @__PURE__ */ jsxs25(
|
|
2059
2110
|
"div",
|
|
2060
2111
|
{
|
|
2061
2112
|
ref: surfaceRef,
|
|
@@ -2067,9 +2118,9 @@ function Dialog({ open, onClose, title, actions: actions3, children }) {
|
|
|
2067
2118
|
onClick: stop,
|
|
2068
2119
|
onKeyDown: onSurfaceKeyDown,
|
|
2069
2120
|
children: [
|
|
2070
|
-
title != null && /* @__PURE__ */
|
|
2071
|
-
children != null && /* @__PURE__ */
|
|
2072
|
-
actions3 != null && /* @__PURE__ */
|
|
2121
|
+
title != null && /* @__PURE__ */ jsx40(Typography, { variant: "h3", as: "h2", id: titleId, children: title }),
|
|
2122
|
+
children != null && /* @__PURE__ */ jsx40("div", { className: body3, children: /* @__PURE__ */ jsx40(Typography, { variant: "body", color: "fg2", children }) }),
|
|
2123
|
+
actions3 != null && /* @__PURE__ */ jsx40("div", { className: actionsClass, children: actions3 })
|
|
2073
2124
|
]
|
|
2074
2125
|
}
|
|
2075
2126
|
) }),
|
|
@@ -2086,10 +2137,10 @@ import { useMemo as useMemo28 } from "react";
|
|
|
2086
2137
|
// src/components/snackbar/use-styles.css.ts
|
|
2087
2138
|
var closeBtn = "use-styles_closeBtn__ihzsep2";
|
|
2088
2139
|
var message = "use-styles_message__ihzsep1";
|
|
2089
|
-
var root20 = "use-styles_root__ihzsep0
|
|
2140
|
+
var root20 = "use-styles_root__ihzsep0 surfaces_inkySurface__1qa7atn2";
|
|
2090
2141
|
|
|
2091
2142
|
// src/components/snackbar/use-styles.ts
|
|
2092
|
-
function
|
|
2143
|
+
function useStyles27() {
|
|
2093
2144
|
const { themeClass } = useTheme();
|
|
2094
2145
|
return useMemo28(
|
|
2095
2146
|
() => ({
|
|
@@ -2102,15 +2153,15 @@ function useStyles26() {
|
|
|
2102
2153
|
}
|
|
2103
2154
|
|
|
2104
2155
|
// src/components/snackbar/index.tsx
|
|
2105
|
-
import { jsx as
|
|
2156
|
+
import { jsx as jsx41, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
2106
2157
|
function Snackbar({ open, message: message2, action, onClose }) {
|
|
2107
|
-
const { root: root24, message: messageClass, closeBtn: closeBtn2 } =
|
|
2158
|
+
const { root: root24, message: messageClass, closeBtn: closeBtn2 } = useStyles27();
|
|
2108
2159
|
if (!open || typeof document === "undefined") return null;
|
|
2109
2160
|
return createPortal2(
|
|
2110
2161
|
/* @__PURE__ */ jsxs26("div", { role: "status", className: root24, children: [
|
|
2111
|
-
/* @__PURE__ */
|
|
2162
|
+
/* @__PURE__ */ jsx41("span", { className: messageClass, children: message2 }),
|
|
2112
2163
|
action,
|
|
2113
|
-
onClose && /* @__PURE__ */
|
|
2164
|
+
onClose && /* @__PURE__ */ jsx41("button", { type: "button", "aria-label": "Close", className: closeBtn2, onClick: onClose, children: /* @__PURE__ */ jsx41(XIcon, { size: 18 }) })
|
|
2114
2165
|
] }),
|
|
2115
2166
|
document.body
|
|
2116
2167
|
);
|
|
@@ -2126,7 +2177,7 @@ var td = "use-styles_td__1n2cz6i2";
|
|
|
2126
2177
|
var th = "use-styles_th__1n2cz6i1";
|
|
2127
2178
|
|
|
2128
2179
|
// src/components/table/use-styles.ts
|
|
2129
|
-
function
|
|
2180
|
+
function useStyles28({ className }) {
|
|
2130
2181
|
const { themeClass } = useTheme();
|
|
2131
2182
|
const root24 = useMemo29(
|
|
2132
2183
|
() => [themeClass, root21, className].filter(Boolean).join(" "),
|
|
@@ -2136,7 +2187,7 @@ function useStyles27({ className }) {
|
|
|
2136
2187
|
}
|
|
2137
2188
|
|
|
2138
2189
|
// src/components/table/index.tsx
|
|
2139
|
-
import { jsx as
|
|
2190
|
+
import { jsx as jsx42, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
2140
2191
|
function Table({
|
|
2141
2192
|
columns,
|
|
2142
2193
|
rows,
|
|
@@ -2144,12 +2195,12 @@ function Table({
|
|
|
2144
2195
|
className,
|
|
2145
2196
|
...rest
|
|
2146
2197
|
}) {
|
|
2147
|
-
const { root: root24, th: th2, td: td2, alignRight: alignRight2 } =
|
|
2198
|
+
const { root: root24, th: th2, td: td2, alignRight: alignRight2 } = useStyles28({ className });
|
|
2148
2199
|
const headClass = (column) => column.align === "right" ? `${th2} ${alignRight2}` : th2;
|
|
2149
2200
|
const cellClass = (column) => column.align === "right" ? `${td2} ${alignRight2}` : td2;
|
|
2150
2201
|
return /* @__PURE__ */ jsxs27("table", { className: root24, ...rest, children: [
|
|
2151
|
-
/* @__PURE__ */
|
|
2152
|
-
/* @__PURE__ */
|
|
2202
|
+
/* @__PURE__ */ jsx42("thead", { children: /* @__PURE__ */ jsx42("tr", { children: columns.map((column) => /* @__PURE__ */ jsx42("th", { className: headClass(column), children: column.header }, column.key)) }) }),
|
|
2203
|
+
/* @__PURE__ */ jsx42("tbody", { children: rows.map((row, index) => /* @__PURE__ */ jsx42("tr", { children: columns.map((column) => /* @__PURE__ */ jsx42("td", { className: cellClass(column), children: column.render ? column.render(row) : String(row[column.key]) }, column.key)) }, getRowKey ? getRowKey(row, index) : index)) })
|
|
2153
2204
|
] });
|
|
2154
2205
|
}
|
|
2155
2206
|
|
|
@@ -2162,7 +2213,7 @@ var brand = "use-styles_brand__1h133nh1";
|
|
|
2162
2213
|
var root22 = "use-styles_root__1h133nh0";
|
|
2163
2214
|
|
|
2164
2215
|
// src/components/app-bar/use-styles.ts
|
|
2165
|
-
function
|
|
2216
|
+
function useStyles29({ className }) {
|
|
2166
2217
|
const { themeClass } = useTheme();
|
|
2167
2218
|
const root24 = useMemo30(
|
|
2168
2219
|
() => [themeClass, root22, className].filter(Boolean).join(" "),
|
|
@@ -2172,13 +2223,13 @@ function useStyles28({ className }) {
|
|
|
2172
2223
|
}
|
|
2173
2224
|
|
|
2174
2225
|
// src/components/app-bar/index.tsx
|
|
2175
|
-
import { jsx as
|
|
2226
|
+
import { jsx as jsx43, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
2176
2227
|
function AppBar({ brand: brand2, actions: actions3, className, children, ...rest }) {
|
|
2177
|
-
const styles =
|
|
2228
|
+
const styles = useStyles29({ className });
|
|
2178
2229
|
return /* @__PURE__ */ jsxs28("header", { className: styles.root, ...rest, children: [
|
|
2179
|
-
brand2 !== void 0 ? /* @__PURE__ */
|
|
2230
|
+
brand2 !== void 0 ? /* @__PURE__ */ jsx43("div", { className: styles.brand, children: brand2 }) : null,
|
|
2180
2231
|
children,
|
|
2181
|
-
actions3 !== void 0 ? /* @__PURE__ */
|
|
2232
|
+
actions3 !== void 0 ? /* @__PURE__ */ jsx43("div", { className: styles.actions, children: actions3 }) : null
|
|
2182
2233
|
] });
|
|
2183
2234
|
}
|
|
2184
2235
|
|
|
@@ -2193,7 +2244,7 @@ var selected2 = "use-styles_selected__kbreq11";
|
|
|
2193
2244
|
var trailing = "use-styles_trailing__kbreq14";
|
|
2194
2245
|
|
|
2195
2246
|
// src/components/list-item/use-styles.ts
|
|
2196
|
-
function
|
|
2247
|
+
function useStyles30({
|
|
2197
2248
|
selected: selected3,
|
|
2198
2249
|
className
|
|
2199
2250
|
}) {
|
|
@@ -2206,7 +2257,7 @@ function useStyles29({
|
|
|
2206
2257
|
}
|
|
2207
2258
|
|
|
2208
2259
|
// src/components/list-item/index.tsx
|
|
2209
|
-
import { jsx as
|
|
2260
|
+
import { jsx as jsx44, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
2210
2261
|
function ListItem({
|
|
2211
2262
|
leading: leading2,
|
|
2212
2263
|
trailing: trailing2,
|
|
@@ -2215,18 +2266,18 @@ function ListItem({
|
|
|
2215
2266
|
children,
|
|
2216
2267
|
...rest
|
|
2217
2268
|
}) {
|
|
2218
|
-
const styles =
|
|
2269
|
+
const styles = useStyles30({ selected: selected3, className });
|
|
2219
2270
|
return /* @__PURE__ */ jsxs29("div", { className: styles.root, ...rest, children: [
|
|
2220
|
-
leading2 != null && /* @__PURE__ */
|
|
2221
|
-
/* @__PURE__ */
|
|
2222
|
-
trailing2 != null && /* @__PURE__ */
|
|
2271
|
+
leading2 != null && /* @__PURE__ */ jsx44("span", { className: styles.leading, children: leading2 }),
|
|
2272
|
+
/* @__PURE__ */ jsx44("span", { className: styles.content, children }),
|
|
2273
|
+
trailing2 != null && /* @__PURE__ */ jsx44("span", { className: styles.trailing, children: trailing2 })
|
|
2223
2274
|
] });
|
|
2224
2275
|
}
|
|
2225
2276
|
|
|
2226
2277
|
// src/components/icons/chevron-up/index.tsx
|
|
2227
|
-
import { jsx as
|
|
2278
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
2228
2279
|
function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2229
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsx45(
|
|
2230
2281
|
"svg",
|
|
2231
2282
|
{
|
|
2232
2283
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2240,13 +2291,13 @@ function ChevronUpIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2240
2291
|
strokeLinejoin: "round",
|
|
2241
2292
|
"aria-hidden": "true",
|
|
2242
2293
|
...rest,
|
|
2243
|
-
children: /* @__PURE__ */
|
|
2294
|
+
children: /* @__PURE__ */ jsx45("path", { d: "m18 15-6-6-6 6" })
|
|
2244
2295
|
}
|
|
2245
2296
|
);
|
|
2246
2297
|
}
|
|
2247
2298
|
|
|
2248
2299
|
// src/components/icons/search/index.tsx
|
|
2249
|
-
import { jsx as
|
|
2300
|
+
import { jsx as jsx46, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
2250
2301
|
function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2251
2302
|
return /* @__PURE__ */ jsxs30(
|
|
2252
2303
|
"svg",
|
|
@@ -2263,15 +2314,15 @@ function SearchIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2263
2314
|
"aria-hidden": "true",
|
|
2264
2315
|
...rest,
|
|
2265
2316
|
children: [
|
|
2266
|
-
/* @__PURE__ */
|
|
2267
|
-
/* @__PURE__ */
|
|
2317
|
+
/* @__PURE__ */ jsx46("circle", { cx: "11", cy: "11", r: "8" }),
|
|
2318
|
+
/* @__PURE__ */ jsx46("path", { d: "m21 21-4.3-4.3" })
|
|
2268
2319
|
]
|
|
2269
2320
|
}
|
|
2270
2321
|
);
|
|
2271
2322
|
}
|
|
2272
2323
|
|
|
2273
2324
|
// src/components/icons/plus/index.tsx
|
|
2274
|
-
import { jsx as
|
|
2325
|
+
import { jsx as jsx47, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
2275
2326
|
function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2276
2327
|
return /* @__PURE__ */ jsxs31(
|
|
2277
2328
|
"svg",
|
|
@@ -2288,17 +2339,17 @@ function PlusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2288
2339
|
"aria-hidden": "true",
|
|
2289
2340
|
...rest,
|
|
2290
2341
|
children: [
|
|
2291
|
-
/* @__PURE__ */
|
|
2292
|
-
/* @__PURE__ */
|
|
2342
|
+
/* @__PURE__ */ jsx47("path", { d: "M5 12h14" }),
|
|
2343
|
+
/* @__PURE__ */ jsx47("path", { d: "M12 5v14" })
|
|
2293
2344
|
]
|
|
2294
2345
|
}
|
|
2295
2346
|
);
|
|
2296
2347
|
}
|
|
2297
2348
|
|
|
2298
2349
|
// src/components/icons/minus/index.tsx
|
|
2299
|
-
import { jsx as
|
|
2350
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
2300
2351
|
function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2301
|
-
return /* @__PURE__ */
|
|
2352
|
+
return /* @__PURE__ */ jsx48(
|
|
2302
2353
|
"svg",
|
|
2303
2354
|
{
|
|
2304
2355
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -2312,13 +2363,13 @@ function MinusIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2312
2363
|
strokeLinejoin: "round",
|
|
2313
2364
|
"aria-hidden": "true",
|
|
2314
2365
|
...rest,
|
|
2315
|
-
children: /* @__PURE__ */
|
|
2366
|
+
children: /* @__PURE__ */ jsx48("path", { d: "M5 12h14" })
|
|
2316
2367
|
}
|
|
2317
2368
|
);
|
|
2318
2369
|
}
|
|
2319
2370
|
|
|
2320
2371
|
// src/components/icons/more-horizontal/index.tsx
|
|
2321
|
-
import { jsx as
|
|
2372
|
+
import { jsx as jsx49, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
2322
2373
|
function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
2323
2374
|
return /* @__PURE__ */ jsxs32(
|
|
2324
2375
|
"svg",
|
|
@@ -2335,9 +2386,9 @@ function MoreHorizontalIcon({ size: size3 = 20, strokeWidth = 1.75, ...rest }) {
|
|
|
2335
2386
|
"aria-hidden": "true",
|
|
2336
2387
|
...rest,
|
|
2337
2388
|
children: [
|
|
2338
|
-
/* @__PURE__ */
|
|
2339
|
-
/* @__PURE__ */
|
|
2340
|
-
/* @__PURE__ */
|
|
2389
|
+
/* @__PURE__ */ jsx49("circle", { cx: "12", cy: "12", r: "1" }),
|
|
2390
|
+
/* @__PURE__ */ jsx49("circle", { cx: "19", cy: "12", r: "1" }),
|
|
2391
|
+
/* @__PURE__ */ jsx49("circle", { cx: "5", cy: "12", r: "1" })
|
|
2341
2392
|
]
|
|
2342
2393
|
}
|
|
2343
2394
|
);
|
|
@@ -2360,6 +2411,7 @@ export {
|
|
|
2360
2411
|
Chip,
|
|
2361
2412
|
CircleCheckIcon,
|
|
2362
2413
|
CircleXIcon,
|
|
2414
|
+
Container,
|
|
2363
2415
|
Dialog,
|
|
2364
2416
|
Divider,
|
|
2365
2417
|
EyeIcon,
|