@astryx-vue/core 0.2.2 → 0.2.3
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/THIRD_PARTY_NOTICES.md +2 -0
- package/dist/AppShell/index.d.ts +1 -1
- package/dist/AppShell/index.js +1 -1
- package/dist/{AppShell-Cb41gIAj.js → AppShell-Dd-D4bA2.js} +2 -2
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +3 -2
- package/dist/Breadcrumbs/index.js +3 -2
- package/dist/{Breadcrumbs-CTQ7fjDn.js → Breadcrumbs-CWGfgLNK.js} +13 -8
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.d.ts +2 -2
- package/dist/Calendar/index.js +1 -1
- package/dist/Calendar-CnOsSjMY.js +656 -0
- package/dist/Card/index.d.ts +1 -1
- package/dist/Carousel/index.js +1 -1
- package/dist/{Carousel-X0cuQkvg.js → Carousel-JA7ilqI_.js} +2 -2
- package/dist/Chat/index.d.ts +1 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-M0tiGrNT.js → Chat-C7WrCOE4.js} +3 -3
- package/dist/CheckboxIndicator/index.js +1 -1
- package/dist/CheckboxIndicator-D37cm2Rh.js +68 -0
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-CMsEE1_4.js → CheckboxInput-25Q8ItH-.js} +10 -9
- package/dist/CheckboxList/index.d.ts +1 -1
- package/dist/CheckboxList/index.js +1 -1
- package/dist/{CheckboxList-BbCPiend.js → CheckboxList-CnCGnkZk.js} +77 -24
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-C1veUk5p.js → Citation-CtwrU33I.js} +2 -2
- package/dist/ClickableCard/index.d.ts +1 -1
- package/dist/Code/index.d.ts +1 -1
- package/dist/Code/index.js +2 -2
- package/dist/{Code-yb_KOFtJ.js → Code-BvefYRpx.js} +2 -1
- package/dist/{CodeBlock-DesTJAkm.js → CodeBlock-BZGzYeoL.js} +1 -1
- package/dist/Collapsible/index.d.ts +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-BestK35V.js → Collapsible-3YerR-FO.js} +1 -1
- package/dist/CommandPalette/index.js +1 -1
- package/dist/{CommandPalette-BArt97V8.js → CommandPalette-BNbM9T9y.js} +1 -1
- package/dist/ComplexSelector/index.d.ts +1 -1
- package/dist/ComplexSelector/index.js +1 -1
- package/dist/{ComplexSelector-CAoig1RK.js → ComplexSelector-LtbLlrcj.js} +3 -3
- package/dist/ContextMenu/index.d.ts +3 -2
- package/dist/ContextMenu/index.js +3 -2
- package/dist/{ContextMenu-9Im6i43E.js → ContextMenu-DVQl0xL5.js} +204 -56
- package/dist/DateInput/index.d.ts +2 -2
- package/dist/DateInput/index.js +1 -1
- package/dist/DateInput-zm8sNc0t.js +743 -0
- package/dist/DateRangeInput/index.d.ts +1 -1
- package/dist/DateRangeInput/index.js +1 -1
- package/dist/{DateRangeInput-DwDy3eRo.js → DateRangeInput-DlVFzrf7.js} +54 -19
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.js +1 -1
- package/dist/{DateTimeInput-BYiaC9bn.js → DateTimeInput-C7Z-p6Yd.js} +54 -15
- package/dist/Dialog/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +3 -3
- package/dist/DropdownMenu/index.js +4 -3
- package/dist/{DropdownMenu-Dh-WAHKb.js → DropdownMenu-BoZChdev.js} +308 -63
- package/dist/DropdownMenu-u1psFjis.js +325 -0
- package/dist/DropdownMenuRadioItem.vue-uVM0FD2f.d.ts +564 -0
- package/dist/FileInput/index.d.ts +1 -1
- package/dist/FileInput/index.js +1 -1
- package/dist/{FileInput-DLO6V12n.js → FileInput-QdlZn7qK.js} +2 -2
- package/dist/Icon/index.d.ts +4 -3
- package/dist/Icon/index.js +2 -2
- package/dist/{Icon-CJKjdJy-.js → Icon-bteSId7T.js} +113 -18
- package/dist/Indicator/index.d.ts +3 -0
- package/dist/Indicator/index.js +2 -0
- package/dist/InputGroup/index.d.ts +2 -2
- package/dist/InputGroup/index.js +3 -2
- package/dist/InputGroup-BzR6JRZb.js +129 -0
- package/dist/Lightbox/index.js +1 -1
- package/dist/{Lightbox-CdFCS_EA.js → Lightbox-BSzfqZ-u.js} +2 -2
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-BqKloI3w.js → Markdown-B6tSqenv.js} +8 -5
- package/dist/MetadataList/index.js +1 -1
- package/dist/{MetadataList-CvZkmisf.js → MetadataList-aN1tRn6W.js} +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-Bwi0qXXM.js → MobileNavToggle-fqcSafkc.js} +1 -1
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BwJaJrkB.js → MoreMenu-B3brqdK_.js} +1 -1
- package/dist/MultiSelector/index.d.ts +2 -2
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-C-ETfFy_.js → MultiSelector-BD5PMgez.js} +303 -121
- package/dist/{NavDisclosure-DHrSNRDR.js → NavDisclosure-DbYLDXK0.js} +1 -1
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.js +2 -2
- package/dist/{NavMenuItem-B-k7olt5.js → NavMenuItem-DrwIMHKO.js} +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DjetVB8O.js → NumberInput-CBeU4lEl.js} +1 -1
- package/dist/Outline/index.js +1 -1
- package/dist/{Outline-Bz9c-u5y.js → Outline--HVMSB6i.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-ED-KN9Y5.js → OverflowList-FMh7r-r_.js} +3 -3
- package/dist/Pagination/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-Cb66HMEf.js → Pagination-DlIvESjx.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Popover/index.js +1 -1
- package/dist/{Popover-Crhk9PNP.js → Popover-D7zqpFwU.js} +1 -1
- package/dist/PowerSearch/index.d.ts +1 -1
- package/dist/PowerSearch/index.js +1 -1
- package/dist/{PowerSearch-CjU8y4mi.js → PowerSearch-CMG7Rb69.js} +14 -14
- package/dist/ProgressBar/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/{RadioGroup-BqjdSCfJ.js → RadioGroup-CBqUPq_L.js} +16 -8
- package/dist/RadioList/index.d.ts +1 -1
- package/dist/RadioList/index.js +1 -1
- package/dist/{RadioList-DI8ujXcT.js → RadioList-CPOJn9Th.js} +1 -1
- package/dist/Resizable/index.js +1 -1
- package/dist/{Resizable-D-TBCg0Y.js → Resizable-CXpvj1TZ.js} +1 -1
- package/dist/ScrollableArea/index.d.ts +1 -1
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +2 -2
- package/dist/Selector/index.js +1 -1
- package/dist/Selector-BpPnuWH3.js +618 -0
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-DonEfiAx.js → SideNav-D4TupqgE.js} +3 -3
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/{Stepper-D2ZIcUNx.js → Stepper-H-6-T5Ps.js} +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/TabList/index.d.ts +1 -1
- package/dist/TabList/index.js +1 -1
- package/dist/{TabList-D3F-stq-.js → TabList-BlzkrObv.js} +2 -2
- package/dist/Table/index.js +1 -1
- package/dist/{Table-CrP2Uffq.js → Table-nqA_njNz.js} +6 -6
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Theme/index.d.ts +2 -1
- package/dist/Theme/index.js +1 -1
- package/dist/{Theme-BuUiiJNr.js → Theme-CejS9MHm.js} +21 -3
- package/dist/Thumbnail/index.js +1 -1
- package/dist/{Thumbnail-BC5JGPGZ.js → Thumbnail-CXb3m_Hv.js} +2 -2
- package/dist/{TimeField-DpHFrNv0.js → TimeField-B3cndWb0.js} +2 -2
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.js +1 -1
- package/dist/{TimeInput-DJLV0_4z.js → TimeInput-BHQ_LKGm.js} +1 -1
- package/dist/Timestamp/index.d.ts +1 -1
- package/dist/Timestamp/index.js +1 -1
- package/dist/{Timestamp-GKNjjt5g.js → Timestamp-Cfuxbb3i.js} +2 -2
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Chu_eCVs.js → Token-CdVLH0_H.js} +2 -2
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-DRDpvQ_l.js → Tokenizer-DlD-S_8-.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CEyWddtA.js → TopNav-DzV874G7.js} +5 -5
- package/dist/TreeList/index.js +1 -1
- package/dist/{TreeList-COS8US8e.js → TreeList-DEwvlZRV.js} +2 -2
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-P7cCqtaQ.js → Typeahead-DQ3tmqYe.js} +3 -3
- package/dist/{context-O2Vb8cJl.js → colorMode-CBgdgDSn.js} +1 -7
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +10 -5
- package/dist/{composables-CVfjp9h4.js → composables-DDI08XFF.js} +98 -1
- package/dist/context-Cws_tXTr.js +7 -0
- package/dist/context-D5-MwxnN.js +4 -0
- package/dist/{context-CiKncNSH.js → context-DmOLCubj.js} +82 -8
- package/dist/{index-DimuSES0.d.ts → index-B1x05arQ.d.ts} +3 -1
- package/dist/index-B9f1rUEv.d.ts +77 -0
- package/dist/{index-D-ZuubCK.d.ts → index-BB5yVIN-.d.ts} +2 -2
- package/dist/{index-Bu0Zd1uw.d.ts → index-BMn9ghAX.d.ts} +3 -3
- package/dist/{index-CJlBAXwj.d.ts → index-BRfR0lhb.d.ts} +41 -4
- package/dist/{index-DNRBbwp_.d.ts → index-BTAgQRP0.d.ts} +758 -111
- package/dist/{index-DA52oIdw.d.ts → index-BcJBLWJ0.d.ts} +2 -2
- package/dist/{index-jdjcb3Js.d.ts → index-Bqb_Fyju.d.ts} +2 -2
- package/dist/{index-CNjbOgty.d.ts → index-C-QpeUlQ.d.ts} +2 -2
- package/dist/{index-DGXviOlp.d.ts → index-C2sfHfBw.d.ts} +31 -5
- package/dist/{index-By2mSzUA.d.ts → index-CA6RbRWx.d.ts} +1 -1
- package/dist/{index-gW0HW02U.d.ts → index-COxy6LEW.d.ts} +1 -1
- package/dist/{index-CVn0GBdB.d.ts → index-Ca8VIE4l.d.ts} +1 -1
- package/dist/{index-CRizexSC.d.ts → index-Ch6BbxCP.d.ts} +2 -67
- package/dist/{index-DWH_HzXi.d.ts → index-ChWlKHjc.d.ts} +1 -1
- package/dist/{index-kVhSuA9t.d.ts → index-Ctu32CLv.d.ts} +4 -4
- package/dist/{index-DOUEn7V0.d.ts → index-D1Twv_fL.d.ts} +65 -6
- package/dist/{index-D_nYxnNv.d.ts → index-D7-WTV6I.d.ts} +1 -1
- package/dist/{index-c_TaW8mM.d.ts → index-D8o50qOE.d.ts} +1 -1
- package/dist/{index-D4I_obqR.d.ts → index-DAiGhkNZ.d.ts} +1 -1
- package/dist/{index-Cs5pcwY3.d.ts → index-DMQG6kdM.d.ts} +3 -3
- package/dist/index-D_UEJIU5.d.ts +83 -0
- package/dist/{index-fa72tWIU.d.ts → index-DkVEBdWa.d.ts} +2 -2
- package/dist/{index-B1TG2GPS.d.ts → index-DxsKyAxq.d.ts} +116 -44
- package/dist/{index-BHqRH7QW.d.ts → index-FEy8qFSD.d.ts} +2 -2
- package/dist/{index-qiZtHnGK.d.ts → index-LIyvJTW3.d.ts} +39 -0
- package/dist/{index-BKr7yvVv.d.ts → index-MPcg1Pm4.d.ts} +1 -1
- package/dist/{index-cGagYM1g.d.ts → index-ViSV0RBx.d.ts} +1 -1
- package/dist/{index-C7mxUcDR.d.ts → index-f4NGT-e2.d.ts} +4 -4
- package/dist/{index-DsyKhauk.d.ts → index-foQMNKZO.d.ts} +1 -1
- package/dist/{index-u5ozu0G7.d.ts → index-vP0EtrJJ.d.ts} +13 -3
- package/dist/{index-CZeoAr0a.d.ts → index-xfkEuGLY.d.ts} +2 -2
- package/dist/index.d.ts +76 -75
- package/dist/index.js +115 -107
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -2
- package/dist/{locale-Cpk_nrLA.js → locale-CCwVnyMZ.js} +25 -1
- package/dist/searchResultMessage-DN0HeRRB.js +94 -0
- package/dist/semantic-CKH9XVqa.d.ts +54 -0
- package/dist/{types-pnljWjEE.d.ts → types-CwyibrRB.d.ts} +12 -11
- package/dist/types-jmqqnkKA.d.ts +163 -0
- package/dist/{useAnchoredListbox-7W90Ny-9.js → useAnchoredListbox-BN9LQnon.js} +1 -1
- package/dist/useDatePresentation-C07PnOCw.js +21 -0
- package/dist/{useMonthGrid-CmJsZTcB.js → useDateRange-CIXoE_8k.js} +1 -42
- package/dist/useDisclosureHandle-Df3HhAfC.js +24 -0
- package/dist/{useDismiss-CAiHU6QD.js → useDismiss-Cj8x_51F.js} +8 -4
- package/dist/useFieldControlState-voICDrys.js +18 -0
- package/dist/useHandleRef-6cdKugm8.js +17 -0
- package/dist/useIndicator-i1NORM7W.js +147 -0
- package/dist/useMenuDrillIn-OaEwjK44.js +520 -0
- package/dist/useMonthGrid-fGHSSrFc.js +43 -0
- package/dist/usePendingChange-ib-h8FZK.js +25 -0
- package/dist/useSubmenuMode-CZN9qrUo.js +37 -0
- package/package.json +5 -1
- package/styles/calendar.css +38 -3
- package/styles/check-indicator.css +17 -0
- package/styles/checkbox-indicator.css +29 -10
- package/styles/checkbox-input.css +0 -11
- package/styles/date-input.css +48 -0
- package/styles/dropdown-menu.css +163 -0
- package/styles/field.css +48 -0
- package/styles/icon.css +51 -3
- package/styles/input-group.css +32 -3
- package/styles/multi-selector.css +26 -0
- package/styles/radio-indicator.css +90 -0
- package/styles/radio.css +9 -42
- package/styles/selector.css +112 -14
- package/styles.css +2 -0
- package/dist/Calendar-BFaI5AMv.js +0 -352
- package/dist/CheckboxIndicator-DdJmksHt.js +0 -52
- package/dist/DateInput-BLocxqC3.js +0 -376
- package/dist/DropdownMenu-Ddfr-aEC.js +0 -164
- package/dist/InputGroup-ChrFVxzV.js +0 -42
- package/dist/Selector-DE2IEFML.js +0 -468
- package/dist/index-Bgv4ZmBl.d.ts +0 -72
- package/dist/index-DN7MXPHM.d.ts +0 -398
- package/dist/index-IbUN4M8V.d.ts +0 -40
- package/dist/types-DDAAT1Xd.d.ts +0 -285
- package/dist/useGridRovingFocus-DQQAOYH5.js +0 -99
- /package/dist/{index-BUXNRekN.d.ts → index-BXkNZF3q.d.ts} +0 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-radio-indicator {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
flex: none;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
width: 24px;
|
|
11
|
+
height: 24px;
|
|
12
|
+
border-style: solid;
|
|
13
|
+
border-width: var(--astryx-border-width, 1px);
|
|
14
|
+
border-color: var(--astryx-input-status-color, var(--astryx-color-border-emphasized, #d4d4d4));
|
|
15
|
+
border-radius: var(--astryx-radius-full, 9999px);
|
|
16
|
+
color: var(--astryx-color-accent, #262626);
|
|
17
|
+
background: var(--astryx-color-background-surface, #fff);
|
|
18
|
+
transition-property: background-color, border-color;
|
|
19
|
+
transition-duration: var(--astryx-duration-fast, 125ms);
|
|
20
|
+
transition-timing-function: var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.astryx-radio-indicator[data-size='sm'] {
|
|
24
|
+
width: 20px;
|
|
25
|
+
height: 20px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.astryx-radio-indicator[data-state='checked'] {
|
|
29
|
+
color: var(--astryx-color-on-accent, #fff);
|
|
30
|
+
border-color: var(--astryx-input-status-color, var(--astryx-color-accent, #262626));
|
|
31
|
+
background: var(--astryx-input-status-color, var(--astryx-color-accent, #262626));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.astryx-radio-indicator[data-disabled='true'] {
|
|
35
|
+
opacity: 0.5;
|
|
36
|
+
border-color: var(--astryx-color-border, #d4d4d4);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.astryx-radio-indicator[data-disabled='true'][data-state='unchecked'] {
|
|
40
|
+
background: var(--astryx-color-background-muted, #f5f5f5);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.astryx-radio-indicator-dot {
|
|
44
|
+
width: 10px;
|
|
45
|
+
height: 10px;
|
|
46
|
+
border-radius: var(--astryx-radius-full, 9999px);
|
|
47
|
+
background: currentcolor;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.astryx-radio-indicator[data-size='sm'] > .astryx-radio-indicator-dot {
|
|
51
|
+
width: 8px;
|
|
52
|
+
height: 8px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (hover: hover) {
|
|
56
|
+
.astryx-indicator-scope:hover .astryx-radio-indicator[data-state='unchecked']:not([data-disabled='true']) {
|
|
57
|
+
border-color: color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-color-border-emphasized, #d4d4d4)), var(--astryx-color-tint-hover, black) 20%);
|
|
58
|
+
background-color: color-mix(in srgb, var(--astryx-color-background-surface, #fff), var(--astryx-color-tint-hover, black) 5%);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.astryx-indicator-scope:hover .astryx-radio-indicator[data-state='checked']:not([data-disabled='true']) {
|
|
62
|
+
border-color: color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-color-accent, #262626)), var(--astryx-color-tint-hover, black) 15%);
|
|
63
|
+
background-color: color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-color-accent, #262626)), var(--astryx-color-tint-hover, black) 15%);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (prefers-reduced-motion: reduce) {
|
|
68
|
+
.astryx-radio-indicator { transition: none; }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (forced-colors: active) {
|
|
72
|
+
.astryx-radio-indicator {
|
|
73
|
+
border-color: ButtonText;
|
|
74
|
+
background: Canvas;
|
|
75
|
+
color: CanvasText;
|
|
76
|
+
opacity: 1;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.astryx-radio-indicator[data-state='checked'] {
|
|
80
|
+
background: Highlight;
|
|
81
|
+
border-color: Highlight;
|
|
82
|
+
color: HighlightText;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.astryx-radio-indicator-dot {
|
|
86
|
+
forced-color-adjust: none;
|
|
87
|
+
background: HighlightText;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
package/styles/radio.css
CHANGED
|
@@ -36,35 +36,22 @@
|
|
|
36
36
|
white-space: nowrap;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
justify-content: center;
|
|
39
|
+
/*
|
|
40
|
+
* A radio with no size keeps the 18px control. sm and md are 20px and 24px,
|
|
41
|
+
* and those sizes live on the indicator itself.
|
|
42
|
+
*/
|
|
43
|
+
.astryx-radio:not([data-size]) > .astryx-radio-indicator {
|
|
45
44
|
width: var(--astryx-radio-size, 18px);
|
|
46
45
|
height: var(--astryx-radio-size, 18px);
|
|
47
|
-
border: 1px solid var(--astryx-input-status-color, var(--astryx-input-border, #d4d4d4));
|
|
48
|
-
border-radius: var(--astryx-radio-radius, 999px);
|
|
49
|
-
background: var(--astryx-input-background, #fff);
|
|
50
|
-
transition: border-color 130ms cubic-bezier(0.24, 1, 0.4, 1), background-color 130ms cubic-bezier(0.24, 1, 0.4, 1);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.astryx-radio-native:checked + .astryx-radio-indicator {
|
|
54
|
-
border-color: var(--astryx-input-status-color, var(--astryx-input-focus, #262626));
|
|
55
|
-
background: var(--astryx-input-status-color, var(--astryx-input-focus, #262626));
|
|
56
46
|
}
|
|
57
47
|
|
|
58
|
-
.astryx-radio-
|
|
48
|
+
.astryx-radio:not([data-size]) > .astryx-radio-indicator > .astryx-radio-indicator-dot {
|
|
59
49
|
width: 8px;
|
|
60
50
|
height: 8px;
|
|
61
|
-
border-radius: 999px;
|
|
62
|
-
background: var(--astryx-input-background, #fff);
|
|
63
|
-
content: '';
|
|
64
51
|
}
|
|
65
52
|
|
|
66
53
|
.astryx-radio-native:focus-visible + .astryx-radio-indicator {
|
|
67
|
-
outline: 2px solid var(--astryx-input-focus, #262626);
|
|
54
|
+
outline: 2px solid var(--astryx-focus-outline-color, var(--astryx-input-focus, #262626));
|
|
68
55
|
outline-offset: 2px;
|
|
69
56
|
}
|
|
70
57
|
|
|
@@ -87,19 +74,6 @@
|
|
|
87
74
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
88
75
|
}
|
|
89
76
|
|
|
90
|
-
.astryx-radio[data-size='sm'] {
|
|
91
|
-
--astryx-radio-size: 20px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.astryx-radio[data-size='md'] {
|
|
95
|
-
--astryx-radio-size: 24px;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.astryx-radio[data-size='md'] .astryx-radio-native:checked + .astryx-radio-indicator::after {
|
|
99
|
-
width: 10px;
|
|
100
|
-
height: 10px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
77
|
.astryx-radio-group[data-orientation='horizontal'] .astryx-radio-group-list {
|
|
104
78
|
flex-direction: row;
|
|
105
79
|
flex-wrap: wrap;
|
|
@@ -120,15 +94,8 @@
|
|
|
120
94
|
}
|
|
121
95
|
|
|
122
96
|
@media (forced-colors: active) {
|
|
123
|
-
.astryx-radio-indicator {
|
|
124
|
-
|
|
125
|
-
background: Canvas;
|
|
126
|
-
}
|
|
127
|
-
.astryx-radio-native:checked + .astryx-radio-indicator {
|
|
128
|
-
background: Highlight;
|
|
129
|
-
}
|
|
130
|
-
.astryx-radio-native:checked + .astryx-radio-indicator::after {
|
|
131
|
-
background: Canvas;
|
|
97
|
+
.astryx-radio-native:focus-visible + .astryx-radio-indicator {
|
|
98
|
+
outline-color: Highlight;
|
|
132
99
|
}
|
|
133
100
|
}
|
|
134
101
|
}
|
package/styles/selector.css
CHANGED
|
@@ -98,6 +98,11 @@
|
|
|
98
98
|
box-shadow: none;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
+
.astryx-selector-field.is-readonly,
|
|
102
|
+
.astryx-selector-field.is-readonly .astryx-selector-trigger {
|
|
103
|
+
cursor: default;
|
|
104
|
+
}
|
|
105
|
+
|
|
101
106
|
.astryx-selector-field.is-ghost {
|
|
102
107
|
border-color: transparent;
|
|
103
108
|
background: transparent;
|
|
@@ -121,6 +126,11 @@
|
|
|
121
126
|
min-height: var(--astryx-input-height-md, 32px);
|
|
122
127
|
}
|
|
123
128
|
|
|
129
|
+
.astryx-input-group .astryx-selector:has(.astryx-selector-value.is-grouped) .astryx-selector-field {
|
|
130
|
+
height: 100%;
|
|
131
|
+
min-height: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
124
134
|
.astryx-selector-field.is-disabled .astryx-selector-trigger {
|
|
125
135
|
cursor: default;
|
|
126
136
|
}
|
|
@@ -138,7 +148,10 @@
|
|
|
138
148
|
}
|
|
139
149
|
|
|
140
150
|
.astryx-selector-value {
|
|
151
|
+
display: flex;
|
|
141
152
|
flex: 1;
|
|
153
|
+
align-items: center;
|
|
154
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
142
155
|
min-width: 0;
|
|
143
156
|
overflow: hidden;
|
|
144
157
|
text-overflow: ellipsis;
|
|
@@ -146,6 +159,17 @@
|
|
|
146
159
|
text-align: start;
|
|
147
160
|
}
|
|
148
161
|
|
|
162
|
+
.astryx-selector-value-icon {
|
|
163
|
+
flex: none;
|
|
164
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.astryx-selector-value-label {
|
|
168
|
+
min-width: 0;
|
|
169
|
+
overflow: hidden;
|
|
170
|
+
text-overflow: ellipsis;
|
|
171
|
+
}
|
|
172
|
+
|
|
149
173
|
.astryx-selector-value.is-placeholder {
|
|
150
174
|
color: var(--astryx-color-text-secondary, #525252);
|
|
151
175
|
}
|
|
@@ -179,10 +203,15 @@
|
|
|
179
203
|
cursor: pointer;
|
|
180
204
|
}
|
|
181
205
|
|
|
182
|
-
.astryx-selector-clear:hover
|
|
206
|
+
.astryx-selector-clear:hover,
|
|
207
|
+
.astryx-selector-search-clear:hover {
|
|
183
208
|
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
184
209
|
}
|
|
185
210
|
|
|
211
|
+
.astryx-selector-spinner {
|
|
212
|
+
flex: none;
|
|
213
|
+
}
|
|
214
|
+
|
|
186
215
|
/*
|
|
187
216
|
* Astryx paints the menu on the popover surface. The list itself is
|
|
188
217
|
* transparent; this element is that surface.
|
|
@@ -241,25 +270,46 @@
|
|
|
241
270
|
}
|
|
242
271
|
|
|
243
272
|
.astryx-selector-search {
|
|
244
|
-
|
|
273
|
+
display: flex;
|
|
274
|
+
align-items: center;
|
|
275
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
276
|
+
margin: var(--astryx-spacing-1, 4px);
|
|
277
|
+
padding: var(--astryx-spacing-1-5, 6px) var(--astryx-spacing-2, 8px);
|
|
278
|
+
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
279
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
.astryx-selector-search:focus-within {
|
|
283
|
+
box-shadow: inset 0 0 0 var(--astryx-focus-outline-width, 2px) var(--astryx-focus-outline-color, var(--astryx-color-accent));
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.astryx-selector-search-icon,
|
|
287
|
+
.astryx-selector-search-clear {
|
|
288
|
+
flex: none;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.astryx-selector-search-clear {
|
|
292
|
+
display: flex;
|
|
293
|
+
padding: 0;
|
|
294
|
+
border: 0;
|
|
295
|
+
background: transparent;
|
|
296
|
+
color: inherit;
|
|
297
|
+
cursor: pointer;
|
|
245
298
|
}
|
|
246
299
|
|
|
247
300
|
.astryx-selector-search-input {
|
|
248
301
|
box-sizing: border-box;
|
|
302
|
+
flex: 1;
|
|
303
|
+
min-width: 0;
|
|
249
304
|
width: 100%;
|
|
250
|
-
padding:
|
|
251
|
-
border:
|
|
252
|
-
border-radius: var(--astryx-radius-inner, 0.375rem);
|
|
305
|
+
padding: 0;
|
|
306
|
+
border: 0;
|
|
253
307
|
background: transparent;
|
|
254
|
-
color:
|
|
308
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
255
309
|
font: inherit;
|
|
256
310
|
outline: none;
|
|
257
311
|
}
|
|
258
312
|
|
|
259
|
-
.astryx-selector-search-input:focus {
|
|
260
|
-
border-color: var(--astryx-input-focus, #262626);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
313
|
.astryx-selector-options {
|
|
264
314
|
display: flex;
|
|
265
315
|
flex-direction: column;
|
|
@@ -269,8 +319,10 @@
|
|
|
269
319
|
.astryx-selector-option {
|
|
270
320
|
box-sizing: border-box;
|
|
271
321
|
display: flex;
|
|
272
|
-
flex-direction:
|
|
273
|
-
align-items:
|
|
322
|
+
flex-direction: row;
|
|
323
|
+
align-items: center;
|
|
324
|
+
justify-content: space-between;
|
|
325
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
274
326
|
width: 100%;
|
|
275
327
|
padding: var(--astryx-spacing-1-5, 6px) var(--astryx-spacing-2, 8px);
|
|
276
328
|
border: 0;
|
|
@@ -309,10 +361,54 @@
|
|
|
309
361
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
310
362
|
}
|
|
311
363
|
|
|
364
|
+
.astryx-selector-option-body {
|
|
365
|
+
display: flex;
|
|
366
|
+
flex: 1;
|
|
367
|
+
flex-direction: row;
|
|
368
|
+
align-items: center;
|
|
369
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
370
|
+
min-width: 0;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
.astryx-selector-option-copy {
|
|
374
|
+
display: flex;
|
|
375
|
+
flex: 1;
|
|
376
|
+
flex-direction: column;
|
|
377
|
+
align-items: flex-start;
|
|
378
|
+
min-width: 0;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
/*
|
|
382
|
+
* The column stays mounted so a radio replacement can draw its empty circle.
|
|
383
|
+
* When the graphic draws nothing, :empty drops the column so an unchosen
|
|
384
|
+
* check does not reserve a gap.
|
|
385
|
+
*/
|
|
386
|
+
.astryx-selector-option-mark {
|
|
387
|
+
display: inline-flex;
|
|
388
|
+
flex: none;
|
|
389
|
+
align-items: center;
|
|
390
|
+
justify-content: center;
|
|
391
|
+
align-self: center;
|
|
392
|
+
min-width: 1rem;
|
|
393
|
+
color: var(--astryx-color-icon-primary, light-dark(#1b1b1b, #fafafa));
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
.astryx-selector-option-mark:empty {
|
|
397
|
+
display: none;
|
|
398
|
+
}
|
|
399
|
+
|
|
312
400
|
.astryx-selector-option-icon {
|
|
401
|
+
flex: none;
|
|
402
|
+
align-self: center;
|
|
313
403
|
width: 1rem;
|
|
314
404
|
height: 1rem;
|
|
315
|
-
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.astryx-selector-value.is-grouped {
|
|
408
|
+
display: flex;
|
|
409
|
+
align-items: center;
|
|
410
|
+
overflow: hidden;
|
|
411
|
+
white-space: nowrap;
|
|
316
412
|
}
|
|
317
413
|
|
|
318
414
|
.astryx-selector-option-label {
|
|
@@ -350,6 +446,8 @@
|
|
|
350
446
|
.astryx-selector-search-input:focus,
|
|
351
447
|
.astryx-selector-search-input:focus-visible,
|
|
352
448
|
.astryx-selector-clear:focus,
|
|
353
|
-
.astryx-selector-clear:focus-visible
|
|
449
|
+
.astryx-selector-clear:focus-visible,
|
|
450
|
+
.astryx-selector-search-clear:focus,
|
|
451
|
+
.astryx-selector-search-clear:focus-visible {
|
|
354
452
|
outline: none;
|
|
355
453
|
}
|
package/styles.css
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
@import './styles/carousel.css';
|
|
17
17
|
@import './styles/center.css';
|
|
18
18
|
@import './styles/chat.css';
|
|
19
|
+
@import './styles/check-indicator.css';
|
|
19
20
|
@import './styles/checkbox-indicator.css';
|
|
20
21
|
@import './styles/checkbox-input.css';
|
|
21
22
|
@import './styles/checkbox-list.css';
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
@import './styles/power-search.css';
|
|
62
63
|
@import './styles/progress-bar.css';
|
|
63
64
|
@import './styles/radio.css';
|
|
65
|
+
@import './styles/radio-indicator.css';
|
|
64
66
|
@import './styles/resize-handle.css';
|
|
65
67
|
@import './styles/scrollable-area.css';
|
|
66
68
|
@import './styles/section.css';
|