@crewlethq/ui 0.48.2 → 0.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/dist/AgentHandoffPanel/index.js +4 -4
- package/dist/AppShell/index.js +4 -4
- package/dist/{AppShell-5P575KYA.css → AppShell-BIUFNT3J.css} +30 -11
- package/dist/ArrangeList/index.js +4 -4
- package/dist/ArtifactBar/index.js +9 -9
- package/dist/{ArtifactBar-6PGWGKN2.css → ArtifactBar-UMZCTARR.css} +9 -0
- package/dist/ArtifactCard/ArtifactCard.d.ts +30 -1
- package/dist/ArtifactCard/index.js +12 -5
- package/dist/{ArtifactCard-OGTMO2KI.css → ArtifactCard-SOB63NV5.css} +72 -1
- package/dist/ArtifactCover/index.js +2 -2
- package/dist/ArtifactIcon/index.js +2 -2
- package/dist/ArtifactKindGlyph/ArtifactKindGlyph.d.ts +7 -3
- package/dist/ArtifactKindGlyph/index.js +1 -1
- package/dist/ArtifactKindIllustration/ArtifactKindIllustration.d.ts +4 -3
- package/dist/ArtifactKindIllustration/index.js +1 -1
- package/dist/{ArtifactKinds-CVD3FCYO.css → ArtifactKinds-O3CALPVX.css} +1 -0
- package/dist/ArtifactMakeRow/index.js +2 -2
- package/dist/ArtifactNameCell/ArtifactNameCell.d.ts +14 -1
- package/dist/ArtifactNameCell/index.d.ts +1 -1
- package/dist/ArtifactNameCell/index.js +2 -2
- package/dist/{ArtifactNameCell-RTVP4LO4.css → ArtifactNameCell-3AHLUSE5.css} +12 -0
- package/dist/AvatarPicker/index.js +7 -7
- package/dist/BrandChip/BrandChip.d.ts +26 -0
- package/dist/BrandChip/index.d.ts +3 -0
- package/dist/BrandChip/index.js +2 -0
- package/dist/BrandChip-SQWBC2WU.css +81 -0
- package/dist/BrandSample/BrandSample.d.ts +75 -0
- package/dist/BrandSample/index.d.ts +3 -0
- package/dist/BrandSample/index.js +5 -0
- package/dist/BrandSample-G5V7GKR2.css +185 -0
- package/dist/BrandScope/BrandScope.d.ts +61 -0
- package/dist/BrandScope/index.d.ts +4 -0
- package/dist/BrandScope/index.js +4 -0
- package/dist/BrandScope-H2KZHGT7.css +29 -0
- package/dist/Canvas/index.js +2 -2
- package/dist/CanvasBoard/index.js +4 -4
- package/dist/CanvasToolbar/index.js +3 -3
- package/dist/Checkbox/Checkbox.d.ts +8 -0
- package/dist/Checkbox/index.js +3 -3
- package/dist/{Checkbox-ALWG3WV2.css → Checkbox-MB22OW6P.css} +18 -0
- package/dist/ColorField/ColorField.d.ts +63 -0
- package/dist/ColorField/index.d.ts +3 -0
- package/dist/ColorField/index.js +11 -0
- package/dist/ColorField-2OIOWT3Z.css +68 -0
- package/dist/ColorSwatch/ColorSwatch.d.ts +43 -0
- package/dist/ColorSwatch/index.d.ts +3 -0
- package/dist/ColorSwatch/index.js +9 -0
- package/dist/ColorSwatch-DNMUFHNS.css +83 -0
- package/dist/Combobox/Combobox.d.ts +45 -4
- package/dist/Combobox/index.d.ts +1 -1
- package/dist/Combobox/index.js +3 -3
- package/dist/Combobox-GBCWXWEB.css +163 -0
- package/dist/CommandPalette/index.js +5 -5
- package/dist/CommentThread/index.js +5 -5
- package/dist/Composer/index.js +3 -3
- package/dist/ConfirmField/index.js +3 -3
- package/dist/ContrastBadge/ContrastBadge.d.ts +63 -0
- package/dist/ContrastBadge/index.d.ts +3 -0
- package/dist/ContrastBadge/index.js +6 -0
- package/dist/ContrastBadge-CBZPGG3G.css +47 -0
- package/dist/DataGrid/DataGrid.d.ts +28 -1
- package/dist/DataGrid/index.js +8 -1
- package/dist/{DataGrid-AQKPJD7W.css → DataGrid-VNGQESJA.css} +15 -0
- package/dist/DataTable/index.js +6 -6
- package/dist/DataView/index.js +10 -10
- package/dist/DateTimePicker/index.js +3 -3
- package/dist/DocTabsEditor/index.js +4 -4
- package/dist/{Editor-6U4BJ25W.js → Editor-MLGK3KOG.js} +3 -3
- package/dist/FolderTile/FolderTile.d.ts +91 -0
- package/dist/FolderTile/index.d.ts +3 -0
- package/dist/FolderTile/index.js +7 -0
- package/dist/FolderTile-FDT5Y63Z.css +231 -0
- package/dist/HuePicker/index.js +6 -6
- package/dist/Input/index.js +2 -2
- package/dist/LinkInterstitial/index.js +3 -3
- package/dist/ListInput/index.js +3 -3
- package/dist/LogoSlot/LogoSlot.d.ts +84 -0
- package/dist/LogoSlot/index.d.ts +3 -0
- package/dist/LogoSlot/index.js +9 -0
- package/dist/LogoSlot-T2UFOJXU.css +159 -0
- package/dist/MarkdownEditor/index.js +6 -6
- package/dist/Menu/index.js +2 -2
- package/dist/MergeConflicts/index.js +6 -6
- package/dist/Modal/Modal.d.ts +13 -0
- package/dist/Modal/index.js +2 -2
- package/dist/{Modal-TOEWHDCQ.css → Modal-3HMP7WAZ.css} +30 -0
- package/dist/OrgTable/index.js +1 -1
- package/dist/PresenterView/index.js +3 -3
- package/dist/PrincipalPicker/index.js +4 -4
- package/dist/RichEditor/index.js +1 -1
- package/dist/SegmentedControl/index.js +5 -5
- package/dist/Select/index.js +2 -2
- package/dist/SelectionBar/SelectionBar.d.ts +50 -0
- package/dist/SelectionBar/index.d.ts +3 -0
- package/dist/SelectionBar/index.js +9 -0
- package/dist/SelectionBar-XPWKUOSC.css +61 -0
- package/dist/ShareDialog/index.js +6 -6
- package/dist/SheetColumnEditor/index.js +10 -10
- package/dist/SheetGrid/index.js +4 -4
- package/dist/SlideFilmstrip/index.js +3 -3
- package/dist/Switcher/index.js +4 -4
- package/dist/Tabs/index.js +4 -4
- package/dist/TagsInput/index.js +2 -2
- package/dist/ThemeGallery/ThemeGallery.d.ts +13 -2
- package/dist/ThemeGallery/index.js +3 -1
- package/dist/{ThemeGallery-X35Y25EX.css → ThemeGallery-UEFZRT6W.css} +21 -0
- package/dist/ThemeSwitcher/index.js +6 -6
- package/dist/TimeWindowPicker/index.js +6 -6
- package/dist/TreeCanvas/index.js +3 -3
- package/dist/TreeGrid/index.js +1 -1
- package/dist/TypeSpecimen/TypeSpecimen.d.ts +49 -0
- package/dist/TypeSpecimen/index.d.ts +3 -0
- package/dist/TypeSpecimen/index.js +3 -0
- package/dist/TypeSpecimen-WK6YNHL7.css +96 -0
- package/dist/VersionCompare/index.js +6 -6
- package/dist/{chunk-RBUA7ZNK.js → chunk-34RMTXDZ.js} +1 -1
- package/dist/{chunk-YFUG6ARA.js → chunk-3QSKDZR5.js} +1 -1
- package/dist/chunk-5SGHW42B.js +23 -0
- package/dist/{chunk-R2EOET5Q.js → chunk-627KFRON.js} +2 -2
- package/dist/{chunk-SMVWDO72.js → chunk-6FVGSWLS.js} +1 -1
- package/dist/{chunk-ILDNJHRU.js → chunk-AVL52EME.js} +1 -1
- package/dist/chunk-B235ANDO.js +66 -0
- package/dist/{chunk-MZ3QFQDL.js → chunk-CAVWDJF4.js} +1 -1
- package/dist/{chunk-BLQRC7QR.js → chunk-D6MTBXAJ.js} +2 -2
- package/dist/{chunk-2MYSESZF.js → chunk-FB5CFQTG.js} +82 -12
- package/dist/{chunk-KNMQS3JY.js → chunk-GHY63X4C.js} +1 -1
- package/dist/{chunk-DY4DQ7EB.js → chunk-GP4YWZFO.js} +1 -1
- package/dist/{chunk-NRWJUGNA.js → chunk-H55D66IK.js} +1 -1
- package/dist/{chunk-JNFTFAPN.js → chunk-H7NMJ5AI.js} +2 -2
- package/dist/{chunk-GKRPPSWY.js → chunk-ILFEWRLG.js} +1 -1
- package/dist/chunk-ITI2Z44C.js +139 -0
- package/dist/{chunk-P5VGSVWG.js → chunk-J24Q4HTD.js} +17 -8
- package/dist/{chunk-2FDTSARB.js → chunk-JFDIMO3A.js} +2 -2
- package/dist/chunk-JKAFEFFC.js +44 -0
- package/dist/{chunk-6HYPQ5PY.js → chunk-JWNYI7UD.js} +1 -1
- package/dist/{chunk-WT5UPL6P.js → chunk-KHZYAEGZ.js} +1 -1
- package/dist/chunk-M4QM477B.js +80 -0
- package/dist/{chunk-YUDUYMZB.js → chunk-MIEBOO7Y.js} +2 -2
- package/dist/{chunk-IVA7ZWDS.js → chunk-NAWUXCBC.js} +5 -5
- package/dist/{chunk-YUAQSWNW.js → chunk-NCHKKYPQ.js} +6 -3
- package/dist/chunk-OCRVY42T.js +50 -0
- package/dist/chunk-OEEYL2CM.js +73 -0
- package/dist/chunk-P3OIM6OC.js +38 -0
- package/dist/{chunk-FWBKMPNR.js → chunk-P3QWT5VR.js} +1 -1
- package/dist/chunk-P5JBDHWC.js +206 -0
- package/dist/{chunk-WQJSOTEO.js → chunk-PGR2PKH6.js} +1 -1
- package/dist/{chunk-U2XAJONO.js → chunk-Q44X36QC.js} +80 -36
- package/dist/{chunk-R2IBCEU6.js → chunk-R3BA3C4Y.js} +2 -2
- package/dist/{chunk-HDMLHJFI.js → chunk-R6R2UHVG.js} +4 -4
- package/dist/{chunk-VBEMIZIJ.js → chunk-RFPCHMSX.js} +1 -1
- package/dist/{chunk-CE2THTQR.js → chunk-RSKW25Y5.js} +4 -3
- package/dist/{chunk-UBZDYOCA.js → chunk-RV6XB5UV.js} +12 -1
- package/dist/{chunk-LXCRHVMZ.js → chunk-SEPSXOGJ.js} +1 -1
- package/dist/{chunk-K2FNW3MK.js → chunk-SQ4JFHO7.js} +1 -1
- package/dist/{chunk-F45VSK2M.js → chunk-SS4XCUUJ.js} +2 -2
- package/dist/{chunk-E4BOVKNJ.js → chunk-UTESMBPL.js} +5 -3
- package/dist/chunk-UZMNR366.js +9 -0
- package/dist/{chunk-GQXVLFQB.js → chunk-V7GOOXPK.js} +1 -1
- package/dist/{chunk-KMNY3KEB.js → chunk-VBIM6HFC.js} +2 -2
- package/dist/{chunk-Z5RZXVQ7.js → chunk-VN47PYUF.js} +7 -7
- package/dist/{chunk-CNTBUK24.js → chunk-VP2ODUCC.js} +2 -2
- package/dist/{chunk-VIAQW6RK.js → chunk-VTSJMDGP.js} +5 -5
- package/dist/chunk-W6FOEBIL.js +119 -0
- package/dist/chunk-WLSEAIVC.js +48 -0
- package/dist/{chunk-DETVVKAH.js → chunk-WQ7S7CKZ.js} +3 -3
- package/dist/{chunk-OKUULQ22.js → chunk-WXOYHVWG.js} +2 -2
- package/dist/{chunk-NILOJV62.js → chunk-X4NIE7CI.js} +1 -1
- package/dist/{chunk-PZZHO6OS.js → chunk-XS2FJVMT.js} +1 -1
- package/dist/{chunk-6AKG2VLR.js → chunk-YCC2S7DF.js} +4 -1
- package/dist/{chunk-5CLWBPB5.js → chunk-ZCIL5IHU.js} +1 -1
- package/dist/chunk-ZH77BXMA.js +14 -0
- package/dist/generated/index.d.ts +10 -0
- package/dist/generated/index.js +101 -89
- package/dist/index.js +101 -89
- package/dist/styles.css +1370 -22
- package/dist/utils/fontFamily.d.ts +29 -0
- package/dist/utils/hexColour.d.ts +12 -0
- package/package.json +3 -3
- package/scripts/check-css-variables.mjs +18 -2
- package/dist/Combobox-YDONYDTM.css +0 -81
- package/dist/chunk-LOBV4QON.js +0 -137
- package/dist/{chunk-245IXG5P.js → chunk-3WMOEGEL.js} +0 -0
- package/dist/{chunk-ICPQIAD6.js → chunk-D7Q5MQRF.js} +1 -1
- package/dist/{chunk-ISDEXIXH.js → chunk-E6HXFFWO.js} +1 -1
- package/dist/{chunk-D4EOPIFL.js → chunk-EXRRTKWT.js} +1 -1
- package/dist/{chunk-S6J3EWDP.js → chunk-SXBJMBSV.js} +1 -1
- package/dist/{chunk-3JIZ2A6K.js → chunk-TMM32U7D.js} +1 -1
- package/dist/{chunk-LD3GEVQU.js → chunk-XQZ6EWOE.js} +1 -1
- package/dist/{chunk-K77LKW3X.js → chunk-ZFM5L7M4.js} +2 -2
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { SHEET_COLUMN_EDITOR_LABELS, SheetColumnEditor, SheetColumnTypeGlyph } from '../chunk-VTSJMDGP.js';
|
|
2
|
+
import '../chunk-XQZ6EWOE.js';
|
|
3
3
|
import '../chunk-FFMCMSJB.js';
|
|
4
4
|
import '../chunk-7KHM2FZH.js';
|
|
5
5
|
import '../chunk-LFSIKGRQ.js';
|
|
6
6
|
import '../chunk-Z7JYG5TF.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-34RMTXDZ.js';
|
|
8
8
|
import '../chunk-AYKXMIOR.js';
|
|
9
|
-
import '../chunk-
|
|
10
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-6FVGSWLS.js';
|
|
10
|
+
import '../chunk-ILFEWRLG.js';
|
|
11
11
|
import '../chunk-WIATRXEJ.js';
|
|
12
12
|
import '../chunk-EGMQURBR.js';
|
|
13
|
-
import '../chunk-
|
|
13
|
+
import '../chunk-NCHKKYPQ.js';
|
|
14
14
|
import '../chunk-SMBKXWML.js';
|
|
15
|
-
import '../chunk-
|
|
15
|
+
import '../chunk-EXRRTKWT.js';
|
|
16
16
|
import '../chunk-XCUUI7E7.js';
|
|
17
17
|
import '../chunk-BHHIIK3M.js';
|
|
18
18
|
import '../chunk-PQADV6P6.js';
|
|
19
19
|
import '../chunk-RSAQOKH3.js';
|
|
20
|
-
import '../chunk-
|
|
21
|
-
import '../chunk-2YTOOH3A.js';
|
|
20
|
+
import '../chunk-TMM32U7D.js';
|
|
22
21
|
import '../chunk-OMV5W53A.js';
|
|
22
|
+
import '../chunk-2YTOOH3A.js';
|
|
23
23
|
import '../chunk-OG6CL3EB.js';
|
|
24
24
|
import '../chunk-H5XTJ7GJ.js';
|
|
25
|
-
import '../chunk-NUZHC6MM.js';
|
|
26
25
|
import '../chunk-LACA4JGC.js';
|
|
26
|
+
import '../chunk-NUZHC6MM.js';
|
|
27
27
|
import '../chunk-BZFWDIV6.js';
|
|
28
28
|
import '../chunk-ODEQTPFM.js';
|
package/dist/SheetGrid/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-
|
|
1
|
+
export { CellDisplay, CellEditor, CheckboxCell, DateCell, LongTextCell, MultiSelectCell, NumberCell, PersonCell, RatingCell, SelectCell, SheetCell, SheetGrid, StatusCell, TextCell, UrlCell } from '../chunk-WXOYHVWG.js';
|
|
2
2
|
import '../chunk-O2EGEONV.js';
|
|
3
3
|
import '../chunk-CENOOTAV.js';
|
|
4
4
|
import '../chunk-KYIAFNU7.js';
|
|
@@ -9,16 +9,16 @@ import '../chunk-LFSIKGRQ.js';
|
|
|
9
9
|
import '../chunk-Z7JYG5TF.js';
|
|
10
10
|
import '../chunk-KHJIEPZV.js';
|
|
11
11
|
import '../chunk-AYKXMIOR.js';
|
|
12
|
-
import '../chunk-WIATRXEJ.js';
|
|
13
12
|
import '../chunk-I33UIUZD.js';
|
|
13
|
+
import '../chunk-WIATRXEJ.js';
|
|
14
14
|
import '../chunk-5AQBPHZD.js';
|
|
15
15
|
import '../chunk-PZKHBB7D.js';
|
|
16
16
|
import '../chunk-RSAQOKH3.js';
|
|
17
|
-
import '../chunk-
|
|
17
|
+
import '../chunk-TMM32U7D.js';
|
|
18
18
|
import '../chunk-OMV5W53A.js';
|
|
19
19
|
import '../chunk-OG6CL3EB.js';
|
|
20
20
|
import '../chunk-H5XTJ7GJ.js';
|
|
21
|
-
import '../chunk-NUZHC6MM.js';
|
|
22
21
|
import '../chunk-LACA4JGC.js';
|
|
22
|
+
import '../chunk-NUZHC6MM.js';
|
|
23
23
|
import '../chunk-BZFWDIV6.js';
|
|
24
24
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { SlideFilmstrip } from '../chunk-
|
|
1
|
+
export { SlideFilmstrip } from '../chunk-SQ4JFHO7.js';
|
|
2
2
|
import '../chunk-RMEBFYL7.js';
|
|
3
3
|
import '../chunk-XJ2QEBMM.js';
|
|
4
4
|
import '../chunk-SMBKXWML.js';
|
|
5
5
|
import '../chunk-RSAQOKH3.js';
|
|
6
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-TMM32U7D.js';
|
|
7
7
|
import '../chunk-OMV5W53A.js';
|
|
8
8
|
import '../chunk-OG6CL3EB.js';
|
|
9
9
|
import '../chunk-H5XTJ7GJ.js';
|
|
10
|
-
import '../chunk-NUZHC6MM.js';
|
|
11
10
|
import '../chunk-LACA4JGC.js';
|
|
11
|
+
import '../chunk-NUZHC6MM.js';
|
|
12
12
|
import '../chunk-BZFWDIV6.js';
|
|
13
13
|
import '../chunk-ODEQTPFM.js';
|
package/dist/Switcher/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { Switcher } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { Switcher } from '../chunk-VBIM6HFC.js';
|
|
2
|
+
import '../chunk-YCC2S7DF.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
4
|
import '../chunk-KHJIEPZV.js';
|
|
5
5
|
import '../chunk-FYTIJM2T.js';
|
|
6
6
|
import '../chunk-TEUQWOWZ.js';
|
|
7
|
-
import '../chunk-
|
|
7
|
+
import '../chunk-EXRRTKWT.js';
|
|
8
8
|
import '../chunk-XCUUI7E7.js';
|
|
9
9
|
import '../chunk-PQADV6P6.js';
|
|
10
10
|
import '../chunk-RSAQOKH3.js';
|
|
@@ -12,7 +12,7 @@ import '../chunk-RTPQDNW3.js';
|
|
|
12
12
|
import '../chunk-OMV5W53A.js';
|
|
13
13
|
import '../chunk-OG6CL3EB.js';
|
|
14
14
|
import '../chunk-H5XTJ7GJ.js';
|
|
15
|
-
import '../chunk-NUZHC6MM.js';
|
|
16
15
|
import '../chunk-LACA4JGC.js';
|
|
16
|
+
import '../chunk-NUZHC6MM.js';
|
|
17
17
|
import '../chunk-BZFWDIV6.js';
|
|
18
18
|
import '../chunk-ODEQTPFM.js';
|
package/dist/Tabs/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { TabPanel, Tabs, tabId } from '../chunk-
|
|
1
|
+
export { TabPanel, Tabs, tabId } from '../chunk-ILFEWRLG.js';
|
|
2
2
|
import '../chunk-WIATRXEJ.js';
|
|
3
3
|
import '../chunk-EGMQURBR.js';
|
|
4
4
|
import '../chunk-BHHIIK3M.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-2YTOOH3A.js';
|
|
5
|
+
import '../chunk-TMM32U7D.js';
|
|
7
6
|
import '../chunk-OMV5W53A.js';
|
|
7
|
+
import '../chunk-2YTOOH3A.js';
|
|
8
8
|
import '../chunk-OG6CL3EB.js';
|
|
9
9
|
import '../chunk-H5XTJ7GJ.js';
|
|
10
|
-
import '../chunk-NUZHC6MM.js';
|
|
11
10
|
import '../chunk-LACA4JGC.js';
|
|
11
|
+
import '../chunk-NUZHC6MM.js';
|
|
12
12
|
import '../chunk-BZFWDIV6.js';
|
|
13
13
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TagsInput/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export { TagsInput } from '../chunk-
|
|
1
|
+
export { TagsInput } from '../chunk-SXBJMBSV.js';
|
|
2
2
|
import '../chunk-KYIAFNU7.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
4
|
import '../chunk-WIATRXEJ.js';
|
|
5
5
|
import '../chunk-RSAQOKH3.js';
|
|
6
6
|
import '../chunk-OMV5W53A.js';
|
|
7
7
|
import '../chunk-H5XTJ7GJ.js';
|
|
8
|
-
import '../chunk-NUZHC6MM.js';
|
|
9
8
|
import '../chunk-LACA4JGC.js';
|
|
9
|
+
import '../chunk-NUZHC6MM.js';
|
|
10
10
|
import '../chunk-BZFWDIV6.js';
|
|
11
11
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -5,8 +5,19 @@ import { type ThemeSwatchPair } from '../ThemeSwatch/index.js';
|
|
|
5
5
|
export interface ThemeGalleryTheme<T extends string = string> {
|
|
6
6
|
id: T;
|
|
7
7
|
name: string;
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A few words on what sets it apart, said with its name. Drawn only when
|
|
10
|
+
* the theme also sets `tagTone`; left out, the card is its name alone.
|
|
11
|
+
*/
|
|
12
|
+
tag?: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Draws the tag on the card as well as saying it: `quiet` as a caption
|
|
15
|
+
* under the name, `brand` as the accent's pill, for the company's own theme
|
|
16
|
+
* among the product's ("Your company brand"). Left out, the tag is said
|
|
17
|
+
* with the name and nothing is drawn, which is how the product's own theme
|
|
18
|
+
* picker lists its themes.
|
|
19
|
+
*/
|
|
20
|
+
tagTone?: 'quiet' | 'brand' | undefined;
|
|
10
21
|
/** The id of the group it is listed under. */
|
|
11
22
|
group: string;
|
|
12
23
|
/** Its two palettes, drawn as the card's thumbnail unless `renderPreview` draws one. */
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
export { ThemeGallery } from '../chunk-
|
|
1
|
+
export { ThemeGallery } from '../chunk-UTESMBPL.js';
|
|
2
2
|
import '../chunk-MNFU2RNT.js';
|
|
3
|
+
import '../chunk-KYIAFNU7.js';
|
|
3
4
|
import '../chunk-7KHM2FZH.js';
|
|
5
|
+
import '../chunk-WIATRXEJ.js';
|
|
4
6
|
import '../chunk-EGMQURBR.js';
|
|
5
7
|
import '../chunk-H5XTJ7GJ.js';
|
|
6
8
|
import '../chunk-NUZHC6MM.js';
|
|
@@ -102,6 +102,27 @@
|
|
|
102
102
|
white-space: nowrap;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
/*
|
|
106
|
+
* THE TAG, DRAWN WHERE A THEME ASKS (`tagTone`), under the name: `quiet` on
|
|
107
|
+
* the tertiary step and a step smaller, cut to one line with the whole of it
|
|
108
|
+
* on hover, and `brand` as the accent's pill, so a reader picking a deck's
|
|
109
|
+
* theme finds their brand among the product's at a glance. A theme that sets
|
|
110
|
+
* no tone has its tag said with its name and nothing drawn.
|
|
111
|
+
*/
|
|
112
|
+
.crewlet-theme-gallery__tag {
|
|
113
|
+
overflow: hidden;
|
|
114
|
+
color: var(--color-text-tertiary);
|
|
115
|
+
font-size: var(--font-size-2xs);
|
|
116
|
+
line-height: var(--font-line-height-tight);
|
|
117
|
+
text-overflow: ellipsis;
|
|
118
|
+
white-space: nowrap;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.crewlet-theme-gallery__tag--brand {
|
|
122
|
+
display: flex;
|
|
123
|
+
min-width: 0;
|
|
124
|
+
}
|
|
125
|
+
|
|
105
126
|
/*
|
|
106
127
|
* FORCED COLORS keeps the border and drops the accent, so the chosen card
|
|
107
128
|
* would look like every other; the system's own selected colour says it.
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { DensitySwitcher, ThemeSwitcher } from '../chunk-
|
|
1
|
+
export { DensitySwitcher, ThemeSwitcher } from '../chunk-SEPSXOGJ.js';
|
|
2
2
|
export { applyStoredPreferences, resolveTheme, useDensityPreference, useSystemTheme, useThemePreference } from '../chunk-Z24ZUSTX.js';
|
|
3
3
|
export { DENSITY_PREFERENCES, PALETTE_ID, THEME_PREFERENCES, applyDensity, applyPalette, applyTheme, isDensityPreference, isPaletteId, isThemePreference } from '../chunk-ZXXDZJQN.js';
|
|
4
4
|
import '../chunk-OOC7Q67K.js';
|
|
5
|
-
import '../chunk-
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-6FVGSWLS.js';
|
|
6
|
+
import '../chunk-ILFEWRLG.js';
|
|
7
7
|
import '../chunk-WIATRXEJ.js';
|
|
8
8
|
import '../chunk-EGMQURBR.js';
|
|
9
9
|
import '../chunk-BHHIIK3M.js';
|
|
10
|
-
import '../chunk-
|
|
11
|
-
import '../chunk-2YTOOH3A.js';
|
|
10
|
+
import '../chunk-TMM32U7D.js';
|
|
12
11
|
import '../chunk-OMV5W53A.js';
|
|
12
|
+
import '../chunk-2YTOOH3A.js';
|
|
13
13
|
import '../chunk-OG6CL3EB.js';
|
|
14
14
|
import '../chunk-H5XTJ7GJ.js';
|
|
15
|
-
import '../chunk-NUZHC6MM.js';
|
|
16
15
|
import '../chunk-LACA4JGC.js';
|
|
16
|
+
import '../chunk-NUZHC6MM.js';
|
|
17
17
|
import '../chunk-BZFWDIV6.js';
|
|
18
18
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { DEFAULT_TIME_WINDOW_LABELS, TIME_WINDOW_SPANS, TimeWindowPicker, describeTimeWindow, isTimeWindowSet, parseTimeWindowDuration, resolveTimeWindow, timeWindowMatchesPreset } from '../chunk-R6R2UHVG.js';
|
|
2
|
+
import '../chunk-XQZ6EWOE.js';
|
|
3
3
|
import '../chunk-7KHM2FZH.js';
|
|
4
|
-
import '../chunk-KHJIEPZV.js';
|
|
5
4
|
import '../chunk-GXQ3B46I.js';
|
|
6
|
-
import '../chunk-
|
|
5
|
+
import '../chunk-KHJIEPZV.js';
|
|
6
|
+
import '../chunk-EXRRTKWT.js';
|
|
7
7
|
import '../chunk-XCUUI7E7.js';
|
|
8
8
|
import '../chunk-PQADV6P6.js';
|
|
9
9
|
import '../chunk-RSAQOKH3.js';
|
|
10
|
-
import '../chunk-2YTOOH3A.js';
|
|
11
10
|
import '../chunk-OMV5W53A.js';
|
|
11
|
+
import '../chunk-2YTOOH3A.js';
|
|
12
12
|
import '../chunk-OG6CL3EB.js';
|
|
13
13
|
import '../chunk-H5XTJ7GJ.js';
|
|
14
|
-
import '../chunk-NUZHC6MM.js';
|
|
15
14
|
import '../chunk-LACA4JGC.js';
|
|
15
|
+
import '../chunk-NUZHC6MM.js';
|
|
16
16
|
import '../chunk-BZFWDIV6.js';
|
|
17
17
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TreeCanvas/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { TreeCanvas } from '../chunk-
|
|
1
|
+
export { TreeCanvas } from '../chunk-CAVWDJF4.js';
|
|
2
2
|
import '../chunk-MY374UUD.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-D7Q5MQRF.js';
|
|
4
4
|
import '../chunk-LM3ISVJA.js';
|
|
5
5
|
import '../chunk-I33UIUZD.js';
|
|
6
6
|
import '../chunk-SMBKXWML.js';
|
|
7
7
|
import '../chunk-OMV5W53A.js';
|
|
8
8
|
import '../chunk-OG6CL3EB.js';
|
|
9
9
|
import '../chunk-H5XTJ7GJ.js';
|
|
10
|
-
import '../chunk-NUZHC6MM.js';
|
|
11
10
|
import '../chunk-LACA4JGC.js';
|
|
11
|
+
import '../chunk-NUZHC6MM.js';
|
|
12
12
|
import '../chunk-BZFWDIV6.js';
|
|
13
13
|
import '../chunk-ODEQTPFM.js';
|
package/dist/TreeGrid/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import '../chunk-MY374UUD.js';
|
|
|
3
3
|
import '../chunk-LM3ISVJA.js';
|
|
4
4
|
import '../chunk-OMV5W53A.js';
|
|
5
5
|
import '../chunk-H5XTJ7GJ.js';
|
|
6
|
-
import '../chunk-NUZHC6MM.js';
|
|
7
6
|
import '../chunk-LACA4JGC.js';
|
|
7
|
+
import '../chunk-NUZHC6MM.js';
|
|
8
8
|
import '../chunk-BZFWDIV6.js';
|
|
9
9
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface TypeSpecimenLabels {
|
|
3
|
+
/** The large letters the face is shown in. */
|
|
4
|
+
glyphs: string;
|
|
5
|
+
/** The line the face is read in, when the host gives none. */
|
|
6
|
+
sample: string;
|
|
7
|
+
}
|
|
8
|
+
export type TypeSpecimenSize = 'md' | 'sm';
|
|
9
|
+
export interface TypeSpecimenProps {
|
|
10
|
+
/** The face's name, as a reader knows it: "Geist", "Inter Display". */
|
|
11
|
+
family: string;
|
|
12
|
+
/**
|
|
13
|
+
* What the face is for, printed over its name: "Heading", "Body". Named
|
|
14
|
+
* `label` rather than `role`, which is the ARIA attribute's name.
|
|
15
|
+
*/
|
|
16
|
+
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* The CSS family list to draw it in, when it is not the face's name alone:
|
|
19
|
+
* a system stack, or the family an uploaded face was declared under. Left
|
|
20
|
+
* out, or not a list of family names, the name is drawn in quotes before the
|
|
21
|
+
* package's own sans, so a face this page has not loaded falls back to a
|
|
22
|
+
* face it has.
|
|
23
|
+
*/
|
|
24
|
+
fontFamily?: string | undefined;
|
|
25
|
+
/** The line the face is read in. */
|
|
26
|
+
sample?: string | undefined;
|
|
27
|
+
/** One fact under the name: "Uploaded, 4 files", "System stack". */
|
|
28
|
+
detail?: ReactNode;
|
|
29
|
+
/** The weight the specimen draws: a heading's face is shown at a heading's weight. */
|
|
30
|
+
weight?: 'regular' | 'medium' | 'semibold' | 'bold' | undefined;
|
|
31
|
+
size?: TypeSpecimenSize | undefined;
|
|
32
|
+
className?: string | undefined;
|
|
33
|
+
labels?: Partial<TypeSpecimenLabels> | undefined;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* A face, shown: what it is for, "Aa" large in it, its name, and a line read
|
|
37
|
+
* in it.
|
|
38
|
+
*
|
|
39
|
+
* THE FACE IS DRAWN, NOT DESCRIBED. The letters and the line are set in the
|
|
40
|
+
* face itself (through `--crewlet-type-specimen-family`), so choosing a face
|
|
41
|
+
* is choosing what it looks like rather than a name. The name and the role
|
|
42
|
+
* are set in the interface's own type, so they read the same whatever the face
|
|
43
|
+
* is.
|
|
44
|
+
*
|
|
45
|
+
* A FACE THE PAGE CANNOT DRAW FALLS BACK TO ONE IT CAN: the family list ends
|
|
46
|
+
* in the package's sans, so a face still loading (or never uploaded) shows as
|
|
47
|
+
* the interface's type rather than as the browser's default serif.
|
|
48
|
+
*/
|
|
49
|
+
export declare function TypeSpecimen({ family, label, fontFamily, sample, detail, weight, size, className, labels, }: TypeSpecimenProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* A face, shown: its role and name in the interface's own type, then "Aa" and
|
|
3
|
+
* a line set in the face itself (`--crewlet-type-specimen-family`, which
|
|
4
|
+
* always ends in the package's sans).
|
|
5
|
+
*/
|
|
6
|
+
.crewlet-type-specimen {
|
|
7
|
+
display: grid;
|
|
8
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
9
|
+
grid-template-areas:
|
|
10
|
+
'glyphs caption'
|
|
11
|
+
'sample sample';
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--spacing-2) var(--spacing-4);
|
|
14
|
+
min-width: 0;
|
|
15
|
+
margin: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.crewlet-type-specimen__caption {
|
|
19
|
+
grid-area: caption;
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
gap: 2px;
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.crewlet-type-specimen__label {
|
|
27
|
+
color: var(--color-text-tertiary);
|
|
28
|
+
font-size: var(--font-size-2xs);
|
|
29
|
+
font-weight: var(--font-weight-medium);
|
|
30
|
+
letter-spacing: var(--font-letter-spacing-wide);
|
|
31
|
+
text-transform: uppercase;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.crewlet-type-specimen__family {
|
|
35
|
+
overflow: hidden;
|
|
36
|
+
color: var(--color-text-primary);
|
|
37
|
+
font-size: var(--font-size-sm);
|
|
38
|
+
font-weight: var(--font-weight-medium);
|
|
39
|
+
text-overflow: ellipsis;
|
|
40
|
+
white-space: nowrap;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.crewlet-type-specimen__detail {
|
|
44
|
+
color: var(--color-text-tertiary);
|
|
45
|
+
font-size: var(--font-size-xs);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.crewlet-type-specimen__glyphs {
|
|
49
|
+
grid-area: glyphs;
|
|
50
|
+
color: var(--color-text-primary);
|
|
51
|
+
font-family: var(--crewlet-type-specimen-family);
|
|
52
|
+
font-size: var(--font-size-4xl);
|
|
53
|
+
line-height: 1;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.crewlet-type-specimen__sample {
|
|
57
|
+
grid-area: sample;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
color: var(--color-text-secondary);
|
|
60
|
+
font-family: var(--crewlet-type-specimen-family);
|
|
61
|
+
font-size: var(--font-size-md);
|
|
62
|
+
line-height: var(--font-line-height-snug);
|
|
63
|
+
text-overflow: ellipsis;
|
|
64
|
+
white-space: nowrap;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.crewlet-type-specimen--regular :is(.crewlet-type-specimen__glyphs, .crewlet-type-specimen__sample) {
|
|
68
|
+
font-weight: var(--font-weight-regular);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.crewlet-type-specimen--medium :is(.crewlet-type-specimen__glyphs, .crewlet-type-specimen__sample) {
|
|
72
|
+
font-weight: var(--font-weight-medium);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.crewlet-type-specimen--semibold :is(.crewlet-type-specimen__glyphs, .crewlet-type-specimen__sample) {
|
|
76
|
+
font-weight: var(--font-weight-semibold);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.crewlet-type-specimen--bold :is(.crewlet-type-specimen__glyphs, .crewlet-type-specimen__sample) {
|
|
80
|
+
font-weight: var(--font-weight-bold);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* ---- sm: a select option's lead, the letters smaller and the line gone ---- */
|
|
84
|
+
|
|
85
|
+
.crewlet-type-specimen--sm {
|
|
86
|
+
grid-template-areas: 'glyphs caption';
|
|
87
|
+
gap: var(--spacing-3);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.crewlet-type-specimen--sm .crewlet-type-specimen__glyphs {
|
|
91
|
+
font-size: var(--font-size-2xl);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.crewlet-type-specimen--sm .crewlet-type-specimen__sample {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-
|
|
1
|
+
export { VERSION_COMPARE_LABELS, VERSION_COMPARE_LENSES, VersionCompare } from '../chunk-RFPCHMSX.js';
|
|
2
2
|
import '../chunk-BVWSLXTY.js';
|
|
3
3
|
import '../chunk-OOC7Q67K.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-6FVGSWLS.js';
|
|
5
|
+
import '../chunk-ILFEWRLG.js';
|
|
6
6
|
import '../chunk-WIATRXEJ.js';
|
|
7
7
|
import '../chunk-EGMQURBR.js';
|
|
8
8
|
import '../chunk-PPUR46MK.js';
|
|
9
9
|
import '../chunk-BHHIIK3M.js';
|
|
10
10
|
import '../chunk-PQADV6P6.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-2YTOOH3A.js';
|
|
11
|
+
import '../chunk-TMM32U7D.js';
|
|
13
12
|
import '../chunk-OMV5W53A.js';
|
|
13
|
+
import '../chunk-2YTOOH3A.js';
|
|
14
14
|
import '../chunk-OG6CL3EB.js';
|
|
15
15
|
import '../chunk-H5XTJ7GJ.js';
|
|
16
|
-
import '../chunk-NUZHC6MM.js';
|
|
17
16
|
import '../chunk-LACA4JGC.js';
|
|
17
|
+
import '../chunk-NUZHC6MM.js';
|
|
18
18
|
import '../chunk-BZFWDIV6.js';
|
|
19
19
|
import '../chunk-ODEQTPFM.js';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/utils/fontFamily.ts
|
|
2
|
+
var QUOTED = String.raw`"[^"\\\r\n]{1,80}"|'[^'\\\r\n]{1,80}'`;
|
|
3
|
+
var IDENTIFIER = String.raw`-?[A-Za-z][A-Za-z0-9_-]*`;
|
|
4
|
+
var WORDS = `${IDENTIFIER}(?: ${IDENTIFIER}){0,5}`;
|
|
5
|
+
var TOKEN = String.raw`var\(--font-family-(?:sans|mono|display)\)`;
|
|
6
|
+
var NAME = `(?:${QUOTED}|${TOKEN}|${WORDS})`;
|
|
7
|
+
var MAX_NAMES = 11;
|
|
8
|
+
var LIST = new RegExp(`^${NAME}(?:\\s*,\\s*${NAME}){0,${MAX_NAMES - 1}}$`);
|
|
9
|
+
var KEYWORDS = /* @__PURE__ */ new Set(["inherit", "initial", "unset", "revert", "revert-layer", "default"]);
|
|
10
|
+
var MAX_LENGTH = 400;
|
|
11
|
+
function safeFontFamily(value) {
|
|
12
|
+
if (typeof value !== "string") return null;
|
|
13
|
+
const list = value.trim();
|
|
14
|
+
if (list === "" || list.length > MAX_LENGTH || !LIST.test(list)) return null;
|
|
15
|
+
const keyword = list.split(",").some((name) => KEYWORDS.has(name.trim().toLowerCase()));
|
|
16
|
+
return keyword ? null : list;
|
|
17
|
+
}
|
|
18
|
+
function fontStack(value, fallback) {
|
|
19
|
+
const list = safeFontFamily(value);
|
|
20
|
+
return list ? `${list}, ${fallback}` : fallback;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { fontStack, safeFontFamily };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useReorder } from './chunk-XJ2QEBMM.js';
|
|
2
|
-
import { Input } from './chunk-
|
|
3
|
-
import { Menu } from './chunk-
|
|
2
|
+
import { Input } from './chunk-EXRRTKWT.js';
|
|
3
|
+
import { Menu } from './chunk-TMM32U7D.js';
|
|
4
4
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
5
5
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
6
6
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArtifactKindGlyph } from './chunk-
|
|
1
|
+
import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
|
|
2
2
|
import { ShieldGlyph, ActivityGlyph, GaugeGlyph, PackageGlyph, FolderGlyph, ClockGlyph, DatabaseGlyph, Settings2Glyph, BookOpenGlyph, FlagGlyph, StarGlyph, WandSparklesGlyph, BugGlyph, TargetGlyph, ImageGlyph, CodeGlyph, CoinsGlyph, UserGlyph, UsersGlyph, ChartNoAxesGanttGlyph, SquareKanbanGlyph, ListChecksGlyph, ListGlyph, GlobeGlyph, CompassGlyph, FileTextGlyph, TableGlyph, CalendarGlyph, LayoutDashboardGlyph, ChartPieGlyph, ChartColumnGlyph } from '@crewlethq/icons/glyphs';
|
|
3
3
|
import { jsx } from 'react/jsx-runtime';
|
|
4
4
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Tag } from './chunk-KYIAFNU7.js';
|
|
2
|
+
import { normalizeHex } from './chunk-UZMNR366.js';
|
|
3
|
+
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
4
|
+
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
|
+
import './ContrastBadge-CBZPGG3G.css';
|
|
6
|
+
import { CircleAlertGlyph, TriangleAlertGlyph, CircleCheckGlyph } from '@crewlethq/icons/glyphs';
|
|
7
|
+
import { WCAG_CONTRAST, parseHex, contrast } from '@crewlethq/tokens';
|
|
8
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function contrastLevel(ratio, scale = "body") {
|
|
11
|
+
if (scale === "large") {
|
|
12
|
+
if (ratio >= WCAG_CONTRAST.aaaLarge) return "aaa";
|
|
13
|
+
if (ratio >= WCAG_CONTRAST.aaLarge) return "aa";
|
|
14
|
+
return "fail";
|
|
15
|
+
}
|
|
16
|
+
if (ratio >= WCAG_CONTRAST.aaa) return "aaa";
|
|
17
|
+
if (ratio >= WCAG_CONTRAST.aa) return "aa";
|
|
18
|
+
if (ratio >= WCAG_CONTRAST.aaLarge) return "aa-large";
|
|
19
|
+
return "fail";
|
|
20
|
+
}
|
|
21
|
+
function contrastRatio(foreground, background) {
|
|
22
|
+
const a = parseHex(foreground);
|
|
23
|
+
const b = parseHex(background);
|
|
24
|
+
return a && b ? contrast(a, b) : null;
|
|
25
|
+
}
|
|
26
|
+
function formatContrastRatio(ratio) {
|
|
27
|
+
const cut = Math.floor(ratio * 100) / 100;
|
|
28
|
+
return String(Number(cut.toFixed(2)));
|
|
29
|
+
}
|
|
30
|
+
var LABELS = {
|
|
31
|
+
levels: { aaa: "AAA", aa: "AA", "aa-large": "AA large text", fail: "Fails" },
|
|
32
|
+
unmeasured: "Not measured",
|
|
33
|
+
ratio: (ratio) => `${ratio} to 1`,
|
|
34
|
+
sample: "Aa"
|
|
35
|
+
};
|
|
36
|
+
var TONE = { aaa: "success", aa: "success", "aa-large": "warning", fail: "danger" };
|
|
37
|
+
function ContrastBadge({ foreground, background, label, scale = "body", className, labels }) {
|
|
38
|
+
const text = { ...LABELS, ...labels, levels: { ...LABELS.levels, ...labels?.levels } };
|
|
39
|
+
const ink = normalizeHex(foreground);
|
|
40
|
+
const ground = normalizeHex(background);
|
|
41
|
+
const ratio = ink && ground ? contrastRatio(ink, ground) : null;
|
|
42
|
+
const level = ratio === null ? null : contrastLevel(ratio, scale);
|
|
43
|
+
const printed = ratio === null ? null : formatContrastRatio(ratio);
|
|
44
|
+
const sample = ink && ground ? { "--crewlet-contrast-badge-ink": ink, "--crewlet-contrast-badge-ground": ground } : void 0;
|
|
45
|
+
return /* @__PURE__ */ jsxs("span", { className: cx("crewlet-contrast-badge", level && `crewlet-contrast-badge--${level}`, className), children: [
|
|
46
|
+
/* @__PURE__ */ jsx("span", { className: cx("crewlet-contrast-badge__sample", ratio === null && "is-empty"), style: sample, "aria-hidden": "true", children: text.sample }),
|
|
47
|
+
label ? /* @__PURE__ */ jsx("span", { className: "crewlet-contrast-badge__label", children: label }) : null,
|
|
48
|
+
printed !== null && level !== null ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
49
|
+
/* @__PURE__ */ jsxs("span", { className: "crewlet-contrast-badge__ratio", children: [
|
|
50
|
+
/* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: `${printed}:1` }),
|
|
51
|
+
/* @__PURE__ */ jsx(VisuallyHidden, { children: text.ratio(printed) })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ jsx(
|
|
54
|
+
Tag,
|
|
55
|
+
{
|
|
56
|
+
size: "xs",
|
|
57
|
+
variant: TONE[level],
|
|
58
|
+
leadingIcon: level === "fail" ? /* @__PURE__ */ jsx(CircleAlertGlyph, { size: "xs" }) : level === "aa-large" ? /* @__PURE__ */ jsx(TriangleAlertGlyph, { size: "xs" }) : /* @__PURE__ */ jsx(CircleCheckGlyph, { size: "xs" }),
|
|
59
|
+
children: text.levels[level]
|
|
60
|
+
}
|
|
61
|
+
)
|
|
62
|
+
] }) : /* @__PURE__ */ jsx("span", { className: "crewlet-contrast-badge__unmeasured", children: text.unmeasured })
|
|
63
|
+
] });
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { ContrastBadge, contrastLevel, contrastRatio, formatContrastRatio };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useTreeState, useMeasuredSizes, layoutForest, treeAncestors, useLayoutAnchor, treeExpandable, layoutConnectors, treeItemAction, treeStep, treePosInSet, treeSetSize, treeLevel, placeGroups } from './chunk-MY374UUD.js';
|
|
2
|
-
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-
|
|
2
|
+
import { CANVAS_COMPOSE_CONTEXT, CANVAS_FIT_MAX_ZOOM, Canvas } from './chunk-D7Q5MQRF.js';
|
|
3
3
|
import { focusables } from './chunk-H5XTJ7GJ.js';
|
|
4
4
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
5
5
|
import './TreeCanvas-QA3PDFTK.css';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { useMediaMatch } from './chunk-RTPQDNW3.js';
|
|
2
|
-
import { Menu } from './chunk-
|
|
2
|
+
import { Menu } from './chunk-TMM32U7D.js';
|
|
3
3
|
import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
|
|
4
4
|
import { useModalLayer, focusables } from './chunk-H5XTJ7GJ.js';
|
|
5
5
|
import { IconButton } from './chunk-LACA4JGC.js';
|
|
6
6
|
import { VisuallyHidden } from './chunk-BZFWDIV6.js';
|
|
7
7
|
import { cx } from './chunk-ODEQTPFM.js';
|
|
8
8
|
import './HitArea-QUOS6ZDJ.css';
|
|
9
|
-
import './AppShell-
|
|
9
|
+
import './AppShell-BIUFNT3J.css';
|
|
10
10
|
import { createContext, forwardRef, useContext, useId, useState, useRef, useCallback, useEffect, useLayoutEffect } from 'react';
|
|
11
11
|
import { breakpoint } from '@crewlethq/tokens';
|
|
12
12
|
import { ChevronUpGlyph, ChevronsUpDownGlyph, ChevronRightGlyph, MenuGlyph } from '@crewlethq/icons/glyphs';
|