@mieweb/ui 0.7.3 → 0.8.0-dev.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/README.md +45 -24
- package/agent/README.md +20 -0
- package/agent/init-agent.mjs +61 -0
- package/agent/mieweb-ui.instructions.md +169 -0
- package/dist/ag-grid.cjs +11 -0
- package/dist/ag-grid.cjs.map +1 -1
- package/dist/ag-grid.d.cts +4 -0
- package/dist/ag-grid.d.ts +4 -0
- package/dist/ag-grid.js +11 -0
- package/dist/ag-grid.js.map +1 -1
- package/dist/brands/index.cjs +12 -12
- package/dist/brands/index.js +3 -3
- package/dist/{chunk-EGWWTIWS.js → chunk-2AB4PQYL.js} +126 -96
- package/dist/chunk-2AB4PQYL.js.map +1 -0
- package/dist/{chunk-NQ2D2V6O.cjs → chunk-2PEVRI26.cjs} +37 -37
- package/dist/{chunk-NQ2D2V6O.cjs.map → chunk-2PEVRI26.cjs.map} +1 -1
- package/dist/{chunk-6J7UGYT5.cjs → chunk-2SSAAE3I.cjs} +49 -9
- package/dist/chunk-2SSAAE3I.cjs.map +1 -0
- package/dist/chunk-3IMM2PM4.js +259 -0
- package/dist/chunk-3IMM2PM4.js.map +1 -0
- package/dist/{chunk-SYIFEJSF.cjs → chunk-3RADKLLD.cjs} +13 -13
- package/dist/{chunk-SYIFEJSF.cjs.map → chunk-3RADKLLD.cjs.map} +1 -1
- package/dist/chunk-3SHLOF4V.cjs +128 -0
- package/dist/chunk-3SHLOF4V.cjs.map +1 -0
- package/dist/chunk-3TXOFAXP.cjs +139 -0
- package/dist/chunk-3TXOFAXP.cjs.map +1 -0
- package/dist/{chunk-LJDBD2DD.cjs → chunk-5BPUZK2B.cjs} +386 -4
- package/dist/chunk-5BPUZK2B.cjs.map +1 -0
- package/dist/chunk-5JZIDILK.cjs +164 -0
- package/dist/chunk-5JZIDILK.cjs.map +1 -0
- package/dist/chunk-5MXO6PEV.cjs +78 -0
- package/dist/chunk-5MXO6PEV.cjs.map +1 -0
- package/dist/chunk-5QZ73PZC.js +62 -0
- package/dist/chunk-5QZ73PZC.js.map +1 -0
- package/dist/chunk-6GKX36JX.js +269 -0
- package/dist/chunk-6GKX36JX.js.map +1 -0
- package/dist/chunk-6NZXWKUE.js +3 -0
- package/dist/chunk-6NZXWKUE.js.map +1 -0
- package/dist/chunk-6SCQ7FKT.js +115 -0
- package/dist/chunk-6SCQ7FKT.js.map +1 -0
- package/dist/{chunk-KFLDXJEE.js → chunk-753Z3NXL.js} +46 -15
- package/dist/chunk-753Z3NXL.js.map +1 -0
- package/dist/{chunk-S3MKIDYG.cjs → chunk-7AECNMYV.cjs} +46 -15
- package/dist/chunk-7AECNMYV.cjs.map +1 -0
- package/dist/chunk-7IKLGH3Z.cjs +92 -0
- package/dist/chunk-7IKLGH3Z.cjs.map +1 -0
- package/dist/chunk-7RV6CAP6.cjs +106 -0
- package/dist/chunk-7RV6CAP6.cjs.map +1 -0
- package/dist/chunk-AHHFFXJR.cjs +230 -0
- package/dist/chunk-AHHFFXJR.cjs.map +1 -0
- package/dist/{chunk-HIDV32ZX.js → chunk-AHUYW673.js} +168 -9
- package/dist/chunk-AHUYW673.js.map +1 -0
- package/dist/{chunk-MYFZYUPR.cjs → chunk-AOHJILLU.cjs} +38 -3
- package/dist/chunk-AOHJILLU.cjs.map +1 -0
- package/dist/{chunk-DLBV42JD.js → chunk-ATOWMVZH.js} +157 -40
- package/dist/chunk-ATOWMVZH.js.map +1 -0
- package/dist/{chunk-WUNWHOLA.cjs → chunk-BSDBI6H7.cjs} +116 -26
- package/dist/chunk-BSDBI6H7.cjs.map +1 -0
- package/dist/chunk-CG4ZKJLE.js +84 -0
- package/dist/chunk-CG4ZKJLE.js.map +1 -0
- package/dist/{chunk-4PIW3Y5M.js → chunk-DJ4JPFWI.js} +3 -3
- package/dist/{chunk-4PIW3Y5M.js.map → chunk-DJ4JPFWI.js.map} +1 -1
- package/dist/{chunk-Z4PECE5S.js → chunk-DX64KLSN.js} +2 -2
- package/dist/{chunk-Z4PECE5S.js.map → chunk-DX64KLSN.js.map} +1 -1
- package/dist/{chunk-FDV7EQWH.js → chunk-EK6DYGFG.js} +3 -3
- package/dist/{chunk-FDV7EQWH.js.map → chunk-EK6DYGFG.js.map} +1 -1
- package/dist/{chunk-QUUBTNMH.js → chunk-EPSB4WTL.js} +45 -15
- package/dist/chunk-EPSB4WTL.js.map +1 -0
- package/dist/{chunk-KRGKPUJH.js → chunk-F2S6NV5N.js} +8 -8
- package/dist/{chunk-KRGKPUJH.js.map → chunk-F2S6NV5N.js.map} +1 -1
- package/dist/chunk-F57VRLKP.js +708 -0
- package/dist/chunk-F57VRLKP.js.map +1 -0
- package/dist/{chunk-26DPQUSB.cjs → chunk-G52YRAJC.cjs} +4 -4
- package/dist/{chunk-26DPQUSB.cjs.map → chunk-G52YRAJC.cjs.map} +1 -1
- package/dist/{chunk-5IDYOJHO.cjs → chunk-G7EQ3JPX.cjs} +45 -15
- package/dist/chunk-G7EQ3JPX.cjs.map +1 -0
- package/dist/{chunk-FKLUSYFP.cjs → chunk-GQVL2JKQ.cjs} +4 -4
- package/dist/{chunk-FKLUSYFP.cjs.map → chunk-GQVL2JKQ.cjs.map} +1 -1
- package/dist/{chunk-3D4ITDLO.js → chunk-GXODR6V4.js} +3 -3
- package/dist/{chunk-3D4ITDLO.js.map → chunk-GXODR6V4.js.map} +1 -1
- package/dist/{chunk-AFGADE3B.js → chunk-H3YO5GBM.js} +117 -27
- package/dist/chunk-H3YO5GBM.js.map +1 -0
- package/dist/chunk-HK3AMH3Q.cjs +151 -0
- package/dist/chunk-HK3AMH3Q.cjs.map +1 -0
- package/dist/chunk-HQ3XPCHG.js +114 -0
- package/dist/chunk-HQ3XPCHG.js.map +1 -0
- package/dist/chunk-I44YNYI6.cjs +4 -0
- package/dist/chunk-I44YNYI6.cjs.map +1 -0
- package/dist/chunk-JHZW3Y62.js +142 -0
- package/dist/chunk-JHZW3Y62.js.map +1 -0
- package/dist/{chunk-FTRGZOVJ.js → chunk-JQQABHDN.js} +3 -3
- package/dist/{chunk-FTRGZOVJ.js.map → chunk-JQQABHDN.js.map} +1 -1
- package/dist/chunk-JR4QIU54.cjs +291 -0
- package/dist/chunk-JR4QIU54.cjs.map +1 -0
- package/dist/{chunk-JDHIBJ5K.cjs → chunk-JWTCEWQ4.cjs} +2 -2
- package/dist/{chunk-JDHIBJ5K.cjs.map → chunk-JWTCEWQ4.cjs.map} +1 -1
- package/dist/{chunk-ZBI52NP2.cjs → chunk-K5GQPTTA.cjs} +158 -41
- package/dist/chunk-K5GQPTTA.cjs.map +1 -0
- package/dist/chunk-KFEN2SRZ.js +208 -0
- package/dist/chunk-KFEN2SRZ.js.map +1 -0
- package/dist/chunk-L6MDULYB.js +87 -0
- package/dist/chunk-L6MDULYB.js.map +1 -0
- package/dist/{chunk-RYQ3S3KO.cjs → chunk-LDCFNWJC.cjs} +5 -5
- package/dist/{chunk-RYQ3S3KO.cjs.map → chunk-LDCFNWJC.cjs.map} +1 -1
- package/dist/{chunk-LC7YHZXM.js → chunk-LDQ2T27A.js} +5 -5
- package/dist/{chunk-LC7YHZXM.js.map → chunk-LDQ2T27A.js.map} +1 -1
- package/dist/chunk-N5O47VGS.cjs +109 -0
- package/dist/chunk-N5O47VGS.cjs.map +1 -0
- package/dist/chunk-NGSDBWKA.cjs +84 -0
- package/dist/chunk-NGSDBWKA.cjs.map +1 -0
- package/dist/chunk-NMBYU7D7.cjs +31 -0
- package/dist/chunk-NMBYU7D7.cjs.map +1 -0
- package/dist/{chunk-SPWVKDGC.cjs → chunk-QMKYJ4AT.cjs} +4 -4
- package/dist/{chunk-SPWVKDGC.cjs.map → chunk-QMKYJ4AT.cjs.map} +1 -1
- package/dist/{chunk-RBS3GHDZ.cjs → chunk-QOJ4V7YX.cjs} +170 -10
- package/dist/chunk-QOJ4V7YX.cjs.map +1 -0
- package/dist/chunk-RUGHNFQG.js +28 -0
- package/dist/chunk-RUGHNFQG.js.map +1 -0
- package/dist/{chunk-P6L74SKG.js → chunk-SVZ4MQVQ.js} +48 -8
- package/dist/chunk-SVZ4MQVQ.js.map +1 -0
- package/dist/{chunk-URHXR5SC.cjs → chunk-TQZPYDUL.cjs} +7 -7
- package/dist/{chunk-URHXR5SC.cjs.map → chunk-TQZPYDUL.cjs.map} +1 -1
- package/dist/{chunk-MO65V64I.js → chunk-TXRQQMG5.js} +2 -2
- package/dist/{chunk-MO65V64I.js.map → chunk-TXRQQMG5.js.map} +1 -1
- package/dist/{chunk-EKRT7K2K.js → chunk-UJS3JTVT.js} +3 -3
- package/dist/{chunk-EKRT7K2K.js.map → chunk-UJS3JTVT.js.map} +1 -1
- package/dist/{chunk-6MMIWE7H.js → chunk-VQ5HJCTP.js} +386 -4
- package/dist/chunk-VQ5HJCTP.js.map +1 -0
- package/dist/chunk-WBGUYSWY.js +90 -0
- package/dist/chunk-WBGUYSWY.js.map +1 -0
- package/dist/{chunk-LJBWCUKP.cjs → chunk-WIYQI35R.cjs} +2 -2
- package/dist/{chunk-LJBWCUKP.cjs.map → chunk-WIYQI35R.cjs.map} +1 -1
- package/dist/chunk-WKSUL2ZN.js +56 -0
- package/dist/chunk-WKSUL2ZN.js.map +1 -0
- package/dist/{chunk-BOOJDRJO.js → chunk-WSNMQQ4P.js} +38 -3
- package/dist/chunk-WSNMQQ4P.js.map +1 -0
- package/dist/chunk-X5ZPYYMS.js +105 -0
- package/dist/chunk-X5ZPYYMS.js.map +1 -0
- package/dist/{chunk-XB54G7WS.cjs → chunk-XJTFZLWH.cjs} +2 -86
- package/dist/chunk-XJTFZLWH.cjs.map +1 -0
- package/dist/{chunk-GTHNWP4P.js → chunk-XUVEF2RQ.js} +4 -87
- package/dist/chunk-XUVEF2RQ.js.map +1 -0
- package/dist/chunk-Y6YSJPVC.js +129 -0
- package/dist/chunk-Y6YSJPVC.js.map +1 -0
- package/dist/{chunk-OAHORW4N.cjs → chunk-YRLCR76L.cjs} +129 -99
- package/dist/chunk-YRLCR76L.cjs.map +1 -0
- package/dist/chunk-YVIH26FG.cjs +736 -0
- package/dist/chunk-YVIH26FG.cjs.map +1 -0
- package/dist/chunk-Z5S5JEJD.cjs +286 -0
- package/dist/chunk-Z5S5JEJD.cjs.map +1 -0
- package/dist/chunk-ZO4L6C2Y.cjs +137 -0
- package/dist/chunk-ZO4L6C2Y.cjs.map +1 -0
- package/dist/{collabKit-QZL4P5T5.js → collabKit-A643VH2I.js} +7 -3
- package/dist/collabKit-A643VH2I.js.map +1 -0
- package/dist/{collabKit-UF7E6V3N.cjs → collabKit-Q4A36LDA.cjs} +7 -3
- package/dist/collabKit-Q4A36LDA.cjs.map +1 -0
- package/dist/components/Accordion/index.cjs +13 -0
- package/dist/components/Accordion/index.cjs.map +1 -0
- package/dist/components/Accordion/index.d.cts +50 -0
- package/dist/components/Accordion/index.d.ts +50 -0
- package/dist/components/Accordion/index.js +4 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/Alert/index.d.cts +1 -1
- package/dist/components/Alert/index.d.ts +1 -1
- package/dist/components/Autocomplete/index.cjs +5 -4
- package/dist/components/Autocomplete/index.d.cts +20 -3
- package/dist/components/Autocomplete/index.d.ts +20 -3
- package/dist/components/Autocomplete/index.js +4 -3
- package/dist/components/Badge/index.d.cts +1 -1
- package/dist/components/Badge/index.d.ts +1 -1
- package/dist/components/Card/index.d.cts +1 -1
- package/dist/components/Card/index.d.ts +1 -1
- package/dist/components/Checkbox/index.cjs +5 -4
- package/dist/components/Checkbox/index.d.cts +9 -1
- package/dist/components/Checkbox/index.d.ts +9 -1
- package/dist/components/Checkbox/index.js +2 -1
- package/dist/components/ClampedText/index.cjs +13 -0
- package/dist/components/ClampedText/index.cjs.map +1 -0
- package/dist/components/ClampedText/index.d.cts +33 -0
- package/dist/components/ClampedText/index.d.ts +33 -0
- package/dist/components/ClampedText/index.js +4 -0
- package/dist/components/ClampedText/index.js.map +1 -0
- package/dist/components/CopyButton/index.cjs +13 -0
- package/dist/components/CopyButton/index.cjs.map +1 -0
- package/dist/components/CopyButton/index.d.cts +29 -0
- package/dist/components/CopyButton/index.d.ts +29 -0
- package/dist/components/CopyButton/index.js +4 -0
- package/dist/components/CopyButton/index.js.map +1 -0
- package/dist/components/CountryCodeDropdown/index.cjs +5 -5
- package/dist/components/CountryCodeDropdown/index.js +2 -2
- package/dist/components/CustomizableDashboard/index.cjs +43 -0
- package/dist/components/CustomizableDashboard/index.cjs.map +1 -0
- package/dist/components/CustomizableDashboard/index.d.cts +195 -0
- package/dist/components/CustomizableDashboard/index.d.ts +195 -0
- package/dist/components/CustomizableDashboard/index.js +10 -0
- package/dist/components/CustomizableDashboard/index.js.map +1 -0
- package/dist/components/DateInput/index.cjs +5 -4
- package/dist/components/DateInput/index.d.cts +1 -0
- package/dist/components/DateInput/index.d.ts +1 -0
- package/dist/components/DateInput/index.js +4 -3
- package/dist/components/Dropdown/index.cjs +14 -9
- package/dist/components/Dropdown/index.d.cts +38 -2
- package/dist/components/Dropdown/index.d.ts +38 -2
- package/dist/components/Dropdown/index.js +4 -3
- package/dist/components/FilterSummaryBar/index.cjs +13 -0
- package/dist/components/FilterSummaryBar/index.cjs.map +1 -0
- package/dist/components/FilterSummaryBar/index.d.cts +53 -0
- package/dist/components/FilterSummaryBar/index.d.ts +53 -0
- package/dist/components/FilterSummaryBar/index.js +4 -0
- package/dist/components/FilterSummaryBar/index.js.map +1 -0
- package/dist/components/FreshnessBadge/index.cjs +25 -0
- package/dist/components/FreshnessBadge/index.cjs.map +1 -0
- package/dist/components/FreshnessBadge/index.d.cts +49 -0
- package/dist/components/FreshnessBadge/index.d.ts +49 -0
- package/dist/components/FreshnessBadge/index.js +4 -0
- package/dist/components/FreshnessBadge/index.js.map +1 -0
- package/dist/components/GlossaryTooltip/index.cjs +15 -0
- package/dist/components/GlossaryTooltip/index.cjs.map +1 -0
- package/dist/components/GlossaryTooltip/index.d.cts +64 -0
- package/dist/components/GlossaryTooltip/index.d.ts +64 -0
- package/dist/components/GlossaryTooltip/index.js +6 -0
- package/dist/components/GlossaryTooltip/index.js.map +1 -0
- package/dist/components/Input/index.cjs +20 -3
- package/dist/components/Input/index.d.cts +37 -2
- package/dist/components/Input/index.d.ts +37 -2
- package/dist/components/Input/index.js +2 -1
- package/dist/components/KeyboardShortcutsOverlay/index.cjs +21 -0
- package/dist/components/KeyboardShortcutsOverlay/index.cjs.map +1 -0
- package/dist/components/KeyboardShortcutsOverlay/index.d.cts +54 -0
- package/dist/components/KeyboardShortcutsOverlay/index.d.ts +54 -0
- package/dist/components/KeyboardShortcutsOverlay/index.js +8 -0
- package/dist/components/KeyboardShortcutsOverlay/index.js.map +1 -0
- package/dist/components/Markdown/index.cjs +10 -10
- package/dist/components/Markdown/index.js +2 -2
- package/dist/components/MediaEditor/index.cjs +11 -10
- package/dist/components/MediaEditor/index.js +6 -5
- package/dist/components/PhoneInput/index.cjs +5 -4
- package/dist/components/PhoneInput/index.js +3 -2
- package/dist/components/Progress/index.d.cts +1 -1
- package/dist/components/Progress/index.d.ts +1 -1
- package/dist/components/Radio/index.cjs +5 -4
- package/dist/components/Radio/index.d.cts +9 -1
- package/dist/components/Radio/index.d.ts +9 -1
- package/dist/components/Radio/index.js +2 -1
- package/dist/components/ReadingProgressBar/index.cjs +13 -0
- package/dist/components/ReadingProgressBar/index.cjs.map +1 -0
- package/dist/components/ReadingProgressBar/index.d.cts +20 -0
- package/dist/components/ReadingProgressBar/index.d.ts +20 -0
- package/dist/components/ReadingProgressBar/index.js +4 -0
- package/dist/components/ReadingProgressBar/index.js.map +1 -0
- package/dist/components/RichTextEditor/index.cjs +8 -7
- package/dist/components/RichTextEditor/index.js +5 -4
- package/dist/components/SectionSpyNav/index.cjs +15 -0
- package/dist/components/SectionSpyNav/index.cjs.map +1 -0
- package/dist/components/SectionSpyNav/index.d.cts +63 -0
- package/dist/components/SectionSpyNav/index.d.ts +63 -0
- package/dist/components/SectionSpyNav/index.js +6 -0
- package/dist/components/SectionSpyNav/index.js.map +1 -0
- package/dist/components/Select/index.cjs +6 -4
- package/dist/components/Select/index.d.cts +56 -9
- package/dist/components/Select/index.d.ts +56 -9
- package/dist/components/Select/index.js +4 -2
- package/dist/components/Slider/index.d.cts +2 -2
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/SourceTip/index.cjs +15 -0
- package/dist/components/SourceTip/index.cjs.map +1 -0
- package/dist/components/SourceTip/index.d.cts +58 -0
- package/dist/components/SourceTip/index.d.ts +58 -0
- package/dist/components/SourceTip/index.js +6 -0
- package/dist/components/SourceTip/index.js.map +1 -0
- package/dist/components/Sparkline/index.cjs +13 -0
- package/dist/components/Sparkline/index.cjs.map +1 -0
- package/dist/components/Sparkline/index.d.cts +53 -0
- package/dist/components/Sparkline/index.d.ts +53 -0
- package/dist/components/Sparkline/index.js +4 -0
- package/dist/components/Sparkline/index.js.map +1 -0
- package/dist/components/Spinner/index.d.cts +1 -1
- package/dist/components/Spinner/index.d.ts +1 -1
- package/dist/components/SuperChat/index.cjs +252 -93
- package/dist/components/SuperChat/index.cjs.map +1 -1
- package/dist/components/SuperChat/index.d.cts +13 -5
- package/dist/components/SuperChat/index.d.ts +13 -5
- package/dist/components/SuperChat/index.js +249 -90
- package/dist/components/SuperChat/index.js.map +1 -1
- package/dist/components/SuperChat/plugins/index.cjs +6 -26
- package/dist/components/SuperChat/plugins/index.cjs.map +1 -1
- package/dist/components/SuperChat/plugins/index.d.cts +2 -2
- package/dist/components/SuperChat/plugins/index.d.ts +2 -2
- package/dist/components/SuperChat/plugins/index.js +4 -24
- package/dist/components/SuperChat/plugins/index.js.map +1 -1
- package/dist/components/Text/index.d.cts +1 -1
- package/dist/components/Text/index.d.ts +1 -1
- package/dist/components/Textarea/index.cjs +5 -3
- package/dist/components/Textarea/index.d.cts +19 -1
- package/dist/components/Textarea/index.d.ts +19 -1
- package/dist/components/Textarea/index.js +3 -1
- package/dist/datavis.cjs +1 -1
- package/dist/datavis.js +1 -1
- package/dist/esheet.cjs +12 -11
- package/dist/esheet.cjs.map +1 -1
- package/dist/esheet.js +9 -8
- package/dist/esheet.js.map +1 -1
- package/dist/hooks/index.cjs +29 -19
- package/dist/hooks/index.d.cts +17 -2
- package/dist/hooks/index.d.ts +17 -2
- package/dist/hooks/index.js +4 -2
- package/dist/index.cjs +2965 -2043
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +193 -48
- package/dist/index.d.ts +193 -48
- package/dist/index.js +2135 -1330
- package/dist/index.js.map +1 -1
- package/dist/kerebron.cjs +200 -68
- package/dist/kerebron.cjs.map +1 -1
- package/dist/kerebron.css +129 -0
- package/dist/kerebron.d.cts +52 -3
- package/dist/kerebron.d.ts +52 -3
- package/dist/kerebron.js +201 -69
- package/dist/kerebron.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tailwind-preset.cjs +4 -4
- package/dist/tailwind-preset.js +1 -1
- package/dist/{types-BoTeTPdH.d.ts → types-9vK_YdEb.d.ts} +12 -1
- package/dist/{types-DyIB9HYT.d.cts → types-DZDroUW8.d.cts} +12 -1
- package/dist/{useAnchoredPosition-C7PNglzD.d.cts → useAnchoredPosition-CKwLSQW8.d.cts} +10 -3
- package/dist/{useAnchoredPosition-C7PNglzD.d.ts → useAnchoredPosition-CKwLSQW8.d.ts} +10 -3
- package/dist/utils/index.cjs +9 -9
- package/dist/utils/index.js +1 -1
- package/package.json +13 -4
- package/dist/chunk-5IDYOJHO.cjs.map +0 -1
- package/dist/chunk-6ECKH4DJ.cjs +0 -147
- package/dist/chunk-6ECKH4DJ.cjs.map +0 -1
- package/dist/chunk-6J7UGYT5.cjs.map +0 -1
- package/dist/chunk-6MMIWE7H.js.map +0 -1
- package/dist/chunk-AFGADE3B.js.map +0 -1
- package/dist/chunk-BOOJDRJO.js.map +0 -1
- package/dist/chunk-DLBV42JD.js.map +0 -1
- package/dist/chunk-EGWWTIWS.js.map +0 -1
- package/dist/chunk-GTHNWP4P.js.map +0 -1
- package/dist/chunk-HIDV32ZX.js.map +0 -1
- package/dist/chunk-KFLDXJEE.js.map +0 -1
- package/dist/chunk-LJDBD2DD.cjs.map +0 -1
- package/dist/chunk-MYFZYUPR.cjs.map +0 -1
- package/dist/chunk-OAHORW4N.cjs.map +0 -1
- package/dist/chunk-P6L74SKG.js.map +0 -1
- package/dist/chunk-QUUBTNMH.js.map +0 -1
- package/dist/chunk-RBS3GHDZ.cjs.map +0 -1
- package/dist/chunk-S3MKIDYG.cjs.map +0 -1
- package/dist/chunk-WUNWHOLA.cjs.map +0 -1
- package/dist/chunk-XB54G7WS.cjs.map +0 -1
- package/dist/chunk-YXCE2HSK.js +0 -124
- package/dist/chunk-YXCE2HSK.js.map +0 -1
- package/dist/chunk-ZBI52NP2.cjs.map +0 -1
- package/dist/collabKit-QZL4P5T5.js.map +0 -1
- package/dist/collabKit-UF7E6V3N.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkTQZPYDUL_cjs = require('../../chunk-TQZPYDUL.cjs');
|
|
4
4
|
require('../../chunk-YP5T6NZD.cjs');
|
|
5
|
-
require('../../chunk-
|
|
6
|
-
require('../../chunk-
|
|
5
|
+
require('../../chunk-QOJ4V7YX.cjs');
|
|
6
|
+
require('../../chunk-I44YNYI6.cjs');
|
|
7
|
+
require('../../chunk-Z5S5JEJD.cjs');
|
|
7
8
|
require('../../chunk-RDGRKYQ5.cjs');
|
|
8
9
|
require('../../chunk-FHY3K6PL.cjs');
|
|
9
10
|
require('../../chunk-FSGEDDF2.cjs');
|
|
10
|
-
require('../../chunk-
|
|
11
|
+
require('../../chunk-AOHJILLU.cjs');
|
|
11
12
|
var chunkC7RVKV25_cjs = require('../../chunk-C7RVKV25.cjs');
|
|
12
13
|
require('../../chunk-S5RVSXDV.cjs');
|
|
13
14
|
|
|
@@ -15,15 +16,15 @@ require('../../chunk-S5RVSXDV.cjs');
|
|
|
15
16
|
|
|
16
17
|
Object.defineProperty(exports, "RichTextEditor", {
|
|
17
18
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkTQZPYDUL_cjs.RichTextEditor; }
|
|
19
20
|
});
|
|
20
21
|
Object.defineProperty(exports, "convertAngleBracketsToMustache", {
|
|
21
22
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkTQZPYDUL_cjs.convertAngleBracketsToMustache; }
|
|
23
24
|
});
|
|
24
25
|
Object.defineProperty(exports, "processDictation", {
|
|
25
26
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkTQZPYDUL_cjs.processDictation; }
|
|
27
28
|
});
|
|
28
29
|
Object.defineProperty(exports, "isHtmlEmpty", {
|
|
29
30
|
enumerable: true,
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-
|
|
1
|
+
export { RichTextEditor, convertAngleBracketsToMustache, processDictation } from '../../chunk-JQQABHDN.js';
|
|
2
2
|
import '../../chunk-OQWZYKJM.js';
|
|
3
|
-
import '../../chunk-
|
|
4
|
-
import '../../chunk-
|
|
3
|
+
import '../../chunk-AHUYW673.js';
|
|
4
|
+
import '../../chunk-6NZXWKUE.js';
|
|
5
|
+
import '../../chunk-3IMM2PM4.js';
|
|
5
6
|
import '../../chunk-D2GID3YK.js';
|
|
6
7
|
import '../../chunk-T4ME7QCT.js';
|
|
7
8
|
import '../../chunk-62ZOA6PX.js';
|
|
8
|
-
import '../../chunk-
|
|
9
|
+
import '../../chunk-WSNMQQ4P.js';
|
|
9
10
|
export { isHtmlEmpty } from '../../chunk-ERLPVXOV.js';
|
|
10
11
|
import '../../chunk-TQONQSJO.js';
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunk5JZIDILK_cjs = require('../../chunk-5JZIDILK.cjs');
|
|
4
|
+
require('../../chunk-RDGRKYQ5.cjs');
|
|
5
|
+
require('../../chunk-7IKLGH3Z.cjs');
|
|
6
|
+
require('../../chunk-S5RVSXDV.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "SectionSpyNav", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunk5JZIDILK_cjs.SectionSpyNav; }
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=index.cjs.map
|
|
15
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** One section the nav links to. The id must match a `section[id]` on the page. */
|
|
4
|
+
interface SectionSpyItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Funnel intent for the bar's single contextual CTA — drives its visual
|
|
10
|
+
* weight so the in-page strip never out-shouts a page's primary CTA:
|
|
11
|
+
* `explore` (quiet next step) → `evaluate` (sales-ready ask) → `commit`
|
|
12
|
+
* (high-intent action).
|
|
13
|
+
*/
|
|
14
|
+
type SectionSpyCtaTier = 'explore' | 'evaluate' | 'commit';
|
|
15
|
+
interface SectionSpyCta {
|
|
16
|
+
label: string;
|
|
17
|
+
href: string;
|
|
18
|
+
tier?: SectionSpyCtaTier;
|
|
19
|
+
}
|
|
20
|
+
interface SectionSpyNavProps {
|
|
21
|
+
/** Sections to link to, in page order. */
|
|
22
|
+
items: SectionSpyItem[];
|
|
23
|
+
/** Optional single page-specific next-step CTA at the end of the bar. */
|
|
24
|
+
cta?: SectionSpyCta;
|
|
25
|
+
/** Eyebrow before the links (default "On this page"). */
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Visual tone: `surface` sits on the page background; `brand` renders the
|
|
29
|
+
* inverted primary band.
|
|
30
|
+
*/
|
|
31
|
+
tone?: 'surface' | 'brand';
|
|
32
|
+
/** IntersectionObserver root margin tuning for the scroll spy. */
|
|
33
|
+
rootMargin?: string;
|
|
34
|
+
/** Called with the section id when a nav link is clicked. */
|
|
35
|
+
onItemClick?: (id: string) => void;
|
|
36
|
+
/** Called when the CTA is clicked (e.g. for analytics). */
|
|
37
|
+
onCtaClick?: (cta: SectionSpyCta) => void;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Sticky horizontal in-page wayfinding: jumps between a page's major
|
|
42
|
+
* sections, highlights the one in view with a sliding underline, and can
|
|
43
|
+
* carry a single page-specific next-step CTA. Pure anchor links, so it
|
|
44
|
+
* still works if the scroll spy never runs.
|
|
45
|
+
*
|
|
46
|
+
* The horizontal complement to `TableOfContents` — use that for a sidebar
|
|
47
|
+
* outline, this for a band under the page header. Section elements need
|
|
48
|
+
* matching `id`s.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* <SectionSpyNav
|
|
53
|
+
* items={[
|
|
54
|
+
* { id: 'overview', label: 'Overview' },
|
|
55
|
+
* { id: 'pricing', label: 'Pricing' },
|
|
56
|
+
* ]}
|
|
57
|
+
* cta={{ label: 'Book a demo', href: '/demo', tier: 'evaluate' }}
|
|
58
|
+
* />
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare function SectionSpyNav({ items, cta, label, tone, rootMargin, onItemClick, onCtaClick, className, }: SectionSpyNavProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { type SectionSpyCta, type SectionSpyCtaTier, type SectionSpyItem, SectionSpyNav, type SectionSpyNavProps };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
|
|
3
|
+
/** One section the nav links to. The id must match a `section[id]` on the page. */
|
|
4
|
+
interface SectionSpyItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Funnel intent for the bar's single contextual CTA — drives its visual
|
|
10
|
+
* weight so the in-page strip never out-shouts a page's primary CTA:
|
|
11
|
+
* `explore` (quiet next step) → `evaluate` (sales-ready ask) → `commit`
|
|
12
|
+
* (high-intent action).
|
|
13
|
+
*/
|
|
14
|
+
type SectionSpyCtaTier = 'explore' | 'evaluate' | 'commit';
|
|
15
|
+
interface SectionSpyCta {
|
|
16
|
+
label: string;
|
|
17
|
+
href: string;
|
|
18
|
+
tier?: SectionSpyCtaTier;
|
|
19
|
+
}
|
|
20
|
+
interface SectionSpyNavProps {
|
|
21
|
+
/** Sections to link to, in page order. */
|
|
22
|
+
items: SectionSpyItem[];
|
|
23
|
+
/** Optional single page-specific next-step CTA at the end of the bar. */
|
|
24
|
+
cta?: SectionSpyCta;
|
|
25
|
+
/** Eyebrow before the links (default "On this page"). */
|
|
26
|
+
label?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Visual tone: `surface` sits on the page background; `brand` renders the
|
|
29
|
+
* inverted primary band.
|
|
30
|
+
*/
|
|
31
|
+
tone?: 'surface' | 'brand';
|
|
32
|
+
/** IntersectionObserver root margin tuning for the scroll spy. */
|
|
33
|
+
rootMargin?: string;
|
|
34
|
+
/** Called with the section id when a nav link is clicked. */
|
|
35
|
+
onItemClick?: (id: string) => void;
|
|
36
|
+
/** Called when the CTA is clicked (e.g. for analytics). */
|
|
37
|
+
onCtaClick?: (cta: SectionSpyCta) => void;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Sticky horizontal in-page wayfinding: jumps between a page's major
|
|
42
|
+
* sections, highlights the one in view with a sliding underline, and can
|
|
43
|
+
* carry a single page-specific next-step CTA. Pure anchor links, so it
|
|
44
|
+
* still works if the scroll spy never runs.
|
|
45
|
+
*
|
|
46
|
+
* The horizontal complement to `TableOfContents` — use that for a sidebar
|
|
47
|
+
* outline, this for a band under the page header. Section elements need
|
|
48
|
+
* matching `id`s.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```tsx
|
|
52
|
+
* <SectionSpyNav
|
|
53
|
+
* items={[
|
|
54
|
+
* { id: 'overview', label: 'Overview' },
|
|
55
|
+
* { id: 'pricing', label: 'Pricing' },
|
|
56
|
+
* ]}
|
|
57
|
+
* cta={{ label: 'Book a demo', href: '/demo', tier: 'evaluate' }}
|
|
58
|
+
* />
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
declare function SectionSpyNav({ items, cta, label, tone, rootMargin, onItemClick, onCtaClick, className, }: SectionSpyNavProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
export { type SectionSpyCta, type SectionSpyCtaTier, type SectionSpyItem, SectionSpyNav, type SectionSpyNavProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkK5GQPTTA_cjs = require('../../chunk-K5GQPTTA.cjs');
|
|
4
|
+
require('../../chunk-I44YNYI6.cjs');
|
|
5
|
+
require('../../chunk-Z5S5JEJD.cjs');
|
|
4
6
|
require('../../chunk-FHY3K6PL.cjs');
|
|
5
7
|
require('../../chunk-FSGEDDF2.cjs');
|
|
6
|
-
require('../../chunk-
|
|
8
|
+
require('../../chunk-AOHJILLU.cjs');
|
|
7
9
|
require('../../chunk-S5RVSXDV.cjs');
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
|
|
11
13
|
Object.defineProperty(exports, "Select", {
|
|
12
14
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkK5GQPTTA_cjs.Select; }
|
|
14
16
|
});
|
|
15
17
|
Object.defineProperty(exports, "selectTriggerVariants", {
|
|
16
18
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkK5GQPTTA_cjs.selectTriggerVariants; }
|
|
18
20
|
});
|
|
19
21
|
//# sourceMappingURL=index.cjs.map
|
|
20
22
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { RequiredMarkVariant } from '../Input/index.cjs';
|
|
5
|
+
import 'react';
|
|
4
6
|
|
|
5
7
|
interface SelectOption {
|
|
6
8
|
/** Unique value for the option */
|
|
@@ -21,16 +23,16 @@ interface SelectGroup {
|
|
|
21
23
|
declare const selectTriggerVariants: (props?: ({
|
|
22
24
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
23
25
|
hasError?: boolean | null | undefined;
|
|
26
|
+
labelVariant?: "stacked" | "floating" | null | undefined;
|
|
24
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Props shared by both single- and multiple-selection modes. Exported so
|
|
30
|
+
* wrapper components can extend the common shape (`SelectProps` itself is a
|
|
31
|
+
* discriminated union, which interfaces cannot extend).
|
|
32
|
+
*/
|
|
33
|
+
interface SelectBaseProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
|
|
26
34
|
/** Array of options or groups */
|
|
27
35
|
options: (SelectOption | SelectGroup)[];
|
|
28
|
-
/** Controlled value */
|
|
29
|
-
value?: string;
|
|
30
|
-
/** Default value (uncontrolled) */
|
|
31
|
-
defaultValue?: string;
|
|
32
|
-
/** Callback when value changes */
|
|
33
|
-
onValueChange?: (value: string) => void;
|
|
34
36
|
/** Placeholder text */
|
|
35
37
|
placeholder?: string;
|
|
36
38
|
/** Whether the select is disabled */
|
|
@@ -39,10 +41,26 @@ interface SelectProps extends VariantProps<typeof selectTriggerVariants> {
|
|
|
39
41
|
label?: string;
|
|
40
42
|
/** Hide the label visually */
|
|
41
43
|
hideLabel?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Visual style of the label.
|
|
46
|
+
* - `stacked` (default): label sits above the trigger.
|
|
47
|
+
* - `floating`: label rests inside the trigger like a placeholder and
|
|
48
|
+
* floats up (staying inside the trigger) when open or a value is
|
|
49
|
+
* selected. The `placeholder` prop is ignored in this mode.
|
|
50
|
+
*/
|
|
51
|
+
labelVariant?: 'stacked' | 'floating';
|
|
42
52
|
/** Error message */
|
|
43
53
|
error?: string;
|
|
44
54
|
/** Helper text */
|
|
45
55
|
helperText?: string;
|
|
56
|
+
/** Whether a selection is required (shows an asterisk next to the label) */
|
|
57
|
+
required?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Color of the required asterisk.
|
|
60
|
+
* - `default`: destructive (hard requirement).
|
|
61
|
+
* - `warning`: warning color (soft requirement / recommended).
|
|
62
|
+
*/
|
|
63
|
+
requiredVariant?: RequiredMarkVariant;
|
|
46
64
|
/** Enable search/filter */
|
|
47
65
|
searchable?: boolean;
|
|
48
66
|
/** Search placeholder */
|
|
@@ -56,6 +74,27 @@ interface SelectProps extends VariantProps<typeof selectTriggerVariants> {
|
|
|
56
74
|
/** ID for the select */
|
|
57
75
|
id?: string;
|
|
58
76
|
}
|
|
77
|
+
interface SelectSingleProps extends SelectBaseProps {
|
|
78
|
+
/** Single-selection mode (default). */
|
|
79
|
+
multiple?: false;
|
|
80
|
+
/** Controlled value */
|
|
81
|
+
value?: string;
|
|
82
|
+
/** Default value (uncontrolled) */
|
|
83
|
+
defaultValue?: string;
|
|
84
|
+
/** Callback when value changes */
|
|
85
|
+
onValueChange?: (value: string) => void;
|
|
86
|
+
}
|
|
87
|
+
interface SelectMultipleProps extends SelectBaseProps {
|
|
88
|
+
/** Multiple-selection mode: selecting an option toggles it and keeps the dropdown open. */
|
|
89
|
+
multiple: true;
|
|
90
|
+
/** Controlled values */
|
|
91
|
+
value?: string[];
|
|
92
|
+
/** Default values (uncontrolled) */
|
|
93
|
+
defaultValue?: string[];
|
|
94
|
+
/** Callback when values change */
|
|
95
|
+
onValueChange?: (value: string[]) => void;
|
|
96
|
+
}
|
|
97
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
59
98
|
/**
|
|
60
99
|
* An accessible select/dropdown component with search support.
|
|
61
100
|
*
|
|
@@ -71,11 +110,19 @@ interface SelectProps extends VariantProps<typeof selectTriggerVariants> {
|
|
|
71
110
|
* ]}
|
|
72
111
|
* onValueChange={(value) => console.log(value)}
|
|
73
112
|
* />
|
|
113
|
+
*
|
|
114
|
+
* // Multiple selection — value/onValueChange use string[]
|
|
115
|
+
* <Select
|
|
116
|
+
* multiple
|
|
117
|
+
* label="Symptoms"
|
|
118
|
+
* options={options}
|
|
119
|
+
* onValueChange={(values) => console.log(values)}
|
|
120
|
+
* />
|
|
74
121
|
* ```
|
|
75
122
|
*/
|
|
76
|
-
declare function Select(
|
|
123
|
+
declare function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
77
124
|
declare namespace Select {
|
|
78
125
|
var displayName: string;
|
|
79
126
|
}
|
|
80
127
|
|
|
81
|
-
export { Select, type SelectGroup, type SelectOption, type SelectProps, selectTriggerVariants };
|
|
128
|
+
export { Select, type SelectBaseProps, type SelectGroup, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, selectTriggerVariants };
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
3
3
|
import { VariantProps } from 'class-variance-authority';
|
|
4
|
+
import { RequiredMarkVariant } from '../Input/index.js';
|
|
5
|
+
import 'react';
|
|
4
6
|
|
|
5
7
|
interface SelectOption {
|
|
6
8
|
/** Unique value for the option */
|
|
@@ -21,16 +23,16 @@ interface SelectGroup {
|
|
|
21
23
|
declare const selectTriggerVariants: (props?: ({
|
|
22
24
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
23
25
|
hasError?: boolean | null | undefined;
|
|
26
|
+
labelVariant?: "stacked" | "floating" | null | undefined;
|
|
24
27
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
25
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Props shared by both single- and multiple-selection modes. Exported so
|
|
30
|
+
* wrapper components can extend the common shape (`SelectProps` itself is a
|
|
31
|
+
* discriminated union, which interfaces cannot extend).
|
|
32
|
+
*/
|
|
33
|
+
interface SelectBaseProps extends Omit<VariantProps<typeof selectTriggerVariants>, 'labelVariant'> {
|
|
26
34
|
/** Array of options or groups */
|
|
27
35
|
options: (SelectOption | SelectGroup)[];
|
|
28
|
-
/** Controlled value */
|
|
29
|
-
value?: string;
|
|
30
|
-
/** Default value (uncontrolled) */
|
|
31
|
-
defaultValue?: string;
|
|
32
|
-
/** Callback when value changes */
|
|
33
|
-
onValueChange?: (value: string) => void;
|
|
34
36
|
/** Placeholder text */
|
|
35
37
|
placeholder?: string;
|
|
36
38
|
/** Whether the select is disabled */
|
|
@@ -39,10 +41,26 @@ interface SelectProps extends VariantProps<typeof selectTriggerVariants> {
|
|
|
39
41
|
label?: string;
|
|
40
42
|
/** Hide the label visually */
|
|
41
43
|
hideLabel?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Visual style of the label.
|
|
46
|
+
* - `stacked` (default): label sits above the trigger.
|
|
47
|
+
* - `floating`: label rests inside the trigger like a placeholder and
|
|
48
|
+
* floats up (staying inside the trigger) when open or a value is
|
|
49
|
+
* selected. The `placeholder` prop is ignored in this mode.
|
|
50
|
+
*/
|
|
51
|
+
labelVariant?: 'stacked' | 'floating';
|
|
42
52
|
/** Error message */
|
|
43
53
|
error?: string;
|
|
44
54
|
/** Helper text */
|
|
45
55
|
helperText?: string;
|
|
56
|
+
/** Whether a selection is required (shows an asterisk next to the label) */
|
|
57
|
+
required?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Color of the required asterisk.
|
|
60
|
+
* - `default`: destructive (hard requirement).
|
|
61
|
+
* - `warning`: warning color (soft requirement / recommended).
|
|
62
|
+
*/
|
|
63
|
+
requiredVariant?: RequiredMarkVariant;
|
|
46
64
|
/** Enable search/filter */
|
|
47
65
|
searchable?: boolean;
|
|
48
66
|
/** Search placeholder */
|
|
@@ -56,6 +74,27 @@ interface SelectProps extends VariantProps<typeof selectTriggerVariants> {
|
|
|
56
74
|
/** ID for the select */
|
|
57
75
|
id?: string;
|
|
58
76
|
}
|
|
77
|
+
interface SelectSingleProps extends SelectBaseProps {
|
|
78
|
+
/** Single-selection mode (default). */
|
|
79
|
+
multiple?: false;
|
|
80
|
+
/** Controlled value */
|
|
81
|
+
value?: string;
|
|
82
|
+
/** Default value (uncontrolled) */
|
|
83
|
+
defaultValue?: string;
|
|
84
|
+
/** Callback when value changes */
|
|
85
|
+
onValueChange?: (value: string) => void;
|
|
86
|
+
}
|
|
87
|
+
interface SelectMultipleProps extends SelectBaseProps {
|
|
88
|
+
/** Multiple-selection mode: selecting an option toggles it and keeps the dropdown open. */
|
|
89
|
+
multiple: true;
|
|
90
|
+
/** Controlled values */
|
|
91
|
+
value?: string[];
|
|
92
|
+
/** Default values (uncontrolled) */
|
|
93
|
+
defaultValue?: string[];
|
|
94
|
+
/** Callback when values change */
|
|
95
|
+
onValueChange?: (value: string[]) => void;
|
|
96
|
+
}
|
|
97
|
+
type SelectProps = SelectSingleProps | SelectMultipleProps;
|
|
59
98
|
/**
|
|
60
99
|
* An accessible select/dropdown component with search support.
|
|
61
100
|
*
|
|
@@ -71,11 +110,19 @@ interface SelectProps extends VariantProps<typeof selectTriggerVariants> {
|
|
|
71
110
|
* ]}
|
|
72
111
|
* onValueChange={(value) => console.log(value)}
|
|
73
112
|
* />
|
|
113
|
+
*
|
|
114
|
+
* // Multiple selection — value/onValueChange use string[]
|
|
115
|
+
* <Select
|
|
116
|
+
* multiple
|
|
117
|
+
* label="Symptoms"
|
|
118
|
+
* options={options}
|
|
119
|
+
* onValueChange={(values) => console.log(values)}
|
|
120
|
+
* />
|
|
74
121
|
* ```
|
|
75
122
|
*/
|
|
76
|
-
declare function Select(
|
|
123
|
+
declare function Select(props: SelectProps): react_jsx_runtime.JSX.Element;
|
|
77
124
|
declare namespace Select {
|
|
78
125
|
var displayName: string;
|
|
79
126
|
}
|
|
80
127
|
|
|
81
|
-
export { Select, type SelectGroup, type SelectOption, type SelectProps, selectTriggerVariants };
|
|
128
|
+
export { Select, type SelectBaseProps, type SelectGroup, type SelectMultipleProps, type SelectOption, type SelectProps, type SelectSingleProps, selectTriggerVariants };
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export { Select, selectTriggerVariants } from '../../chunk-
|
|
1
|
+
export { Select, selectTriggerVariants } from '../../chunk-ATOWMVZH.js';
|
|
2
|
+
import '../../chunk-6NZXWKUE.js';
|
|
3
|
+
import '../../chunk-3IMM2PM4.js';
|
|
2
4
|
import '../../chunk-T4ME7QCT.js';
|
|
3
5
|
import '../../chunk-62ZOA6PX.js';
|
|
4
|
-
import '../../chunk-
|
|
6
|
+
import '../../chunk-WSNMQQ4P.js';
|
|
5
7
|
import '../../chunk-TQONQSJO.js';
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
7
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -6,11 +6,11 @@ declare const sliderTrackVariants: (props?: ({
|
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
declare const sliderRangeVariants: (props?: ({
|
|
9
|
-
variant?: "danger" | "default" | "
|
|
9
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
declare const sliderThumbVariants: (props?: ({
|
|
12
12
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
|
-
variant?: "danger" | "default" | "
|
|
13
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SliderProps extends VariantProps<typeof sliderTrackVariants>, VariantProps<typeof sliderRangeVariants> {
|
|
16
16
|
/** Current value (controlled) */
|
|
@@ -6,11 +6,11 @@ declare const sliderTrackVariants: (props?: ({
|
|
|
6
6
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
7
7
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
8
8
|
declare const sliderRangeVariants: (props?: ({
|
|
9
|
-
variant?: "danger" | "default" | "
|
|
9
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
11
11
|
declare const sliderThumbVariants: (props?: ({
|
|
12
12
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
13
|
-
variant?: "danger" | "default" | "
|
|
13
|
+
variant?: "danger" | "default" | "warning" | "success" | "neutral" | null | undefined;
|
|
14
14
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
15
15
|
interface SliderProps extends VariantProps<typeof sliderTrackVariants>, VariantProps<typeof sliderRangeVariants> {
|
|
16
16
|
/** Current value (controlled) */
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkAHHFFXJR_cjs = require('../../chunk-AHHFFXJR.cjs');
|
|
4
|
+
require('../../chunk-FHY3K6PL.cjs');
|
|
5
|
+
require('../../chunk-AOHJILLU.cjs');
|
|
6
|
+
require('../../chunk-S5RVSXDV.cjs');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
Object.defineProperty(exports, "SourceTip", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () { return chunkAHHFFXJR_cjs.SourceTip; }
|
|
13
|
+
});
|
|
14
|
+
//# sourceMappingURL=index.cjs.map
|
|
15
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
/** One line of provenance shown in the card. */
|
|
5
|
+
interface TipSource {
|
|
6
|
+
/** One-line label — statute name or source title. Truncated on render. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Source URL. Omit for a provenance line that isn't linkable. */
|
|
9
|
+
url?: string;
|
|
10
|
+
/** Secondary label shown at the end (publisher / host / year). */
|
|
11
|
+
sub?: string;
|
|
12
|
+
}
|
|
13
|
+
interface SourceTipProps {
|
|
14
|
+
/** The claim this card explains — the card's heading. */
|
|
15
|
+
heading: string;
|
|
16
|
+
/** Free-text provenance, for facts no public URL can verify. */
|
|
17
|
+
note?: string;
|
|
18
|
+
/** Linked (or unlinked) one-line sources. */
|
|
19
|
+
sources?: TipSource[];
|
|
20
|
+
/** Eyebrow above the heading. Defaults to "Source". */
|
|
21
|
+
eyebrow?: string;
|
|
22
|
+
/** The visible trigger. */
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Underline the trigger with a dashed rule marking a hoverable claim.
|
|
27
|
+
* Leave off in table cells, which signal hoverability by their own
|
|
28
|
+
* treatment rather than by underlining every cell.
|
|
29
|
+
*/
|
|
30
|
+
underline?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A hover card answering "what backs this claim?" — an eyebrow + heading,
|
|
34
|
+
* optional free-text provenance, and a list of one-line source links.
|
|
35
|
+
* Suits stat tiles, table cells, and inline facts where a numbered footnote
|
|
36
|
+
* would be overkill.
|
|
37
|
+
*
|
|
38
|
+
* The trigger and card are phrasing content (`span`/`a` only), so it is
|
|
39
|
+
* valid inside `<p>` prose and table cells. The card portals to `body` with
|
|
40
|
+
* fixed positioning, flipping and clamping to stay in the viewport. On
|
|
41
|
+
* touch, a tap pins the card; Escape or an outside tap closes it. A pinned
|
|
42
|
+
* card behaves as a non-modal dialog — focus moves into it so its source
|
|
43
|
+
* links are keyboard-reachable, and returns to the trigger on close.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <SourceTip
|
|
48
|
+
* heading="OSHA recordable rate"
|
|
49
|
+
* sources={[{ label: 'BLS SOII 2023', url: 'https://www.bls.gov/iif/', sub: 'BLS' }]}
|
|
50
|
+
* underline
|
|
51
|
+
* >
|
|
52
|
+
* 2.4 per 100 FTE
|
|
53
|
+
* </SourceTip>
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare function SourceTip({ heading, note, sources, eyebrow, children, className, underline, }: SourceTipProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
export { SourceTip, type SourceTipProps, type TipSource };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
/** One line of provenance shown in the card. */
|
|
5
|
+
interface TipSource {
|
|
6
|
+
/** One-line label — statute name or source title. Truncated on render. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Source URL. Omit for a provenance line that isn't linkable. */
|
|
9
|
+
url?: string;
|
|
10
|
+
/** Secondary label shown at the end (publisher / host / year). */
|
|
11
|
+
sub?: string;
|
|
12
|
+
}
|
|
13
|
+
interface SourceTipProps {
|
|
14
|
+
/** The claim this card explains — the card's heading. */
|
|
15
|
+
heading: string;
|
|
16
|
+
/** Free-text provenance, for facts no public URL can verify. */
|
|
17
|
+
note?: string;
|
|
18
|
+
/** Linked (or unlinked) one-line sources. */
|
|
19
|
+
sources?: TipSource[];
|
|
20
|
+
/** Eyebrow above the heading. Defaults to "Source". */
|
|
21
|
+
eyebrow?: string;
|
|
22
|
+
/** The visible trigger. */
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Underline the trigger with a dashed rule marking a hoverable claim.
|
|
27
|
+
* Leave off in table cells, which signal hoverability by their own
|
|
28
|
+
* treatment rather than by underlining every cell.
|
|
29
|
+
*/
|
|
30
|
+
underline?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* A hover card answering "what backs this claim?" — an eyebrow + heading,
|
|
34
|
+
* optional free-text provenance, and a list of one-line source links.
|
|
35
|
+
* Suits stat tiles, table cells, and inline facts where a numbered footnote
|
|
36
|
+
* would be overkill.
|
|
37
|
+
*
|
|
38
|
+
* The trigger and card are phrasing content (`span`/`a` only), so it is
|
|
39
|
+
* valid inside `<p>` prose and table cells. The card portals to `body` with
|
|
40
|
+
* fixed positioning, flipping and clamping to stay in the viewport. On
|
|
41
|
+
* touch, a tap pins the card; Escape or an outside tap closes it. A pinned
|
|
42
|
+
* card behaves as a non-modal dialog — focus moves into it so its source
|
|
43
|
+
* links are keyboard-reachable, and returns to the trigger on close.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```tsx
|
|
47
|
+
* <SourceTip
|
|
48
|
+
* heading="OSHA recordable rate"
|
|
49
|
+
* sources={[{ label: 'BLS SOII 2023', url: 'https://www.bls.gov/iif/', sub: 'BLS' }]}
|
|
50
|
+
* underline
|
|
51
|
+
* >
|
|
52
|
+
* 2.4 per 100 FTE
|
|
53
|
+
* </SourceTip>
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare function SourceTip({ heading, note, sources, eyebrow, children, className, underline, }: SourceTipProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
export { SourceTip, type SourceTipProps, type TipSource };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|