@astryx-vue/core 0.1.0 → 0.1.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/README.md +1 -1
- package/dist/AppShell/index.d.ts +2 -0
- package/dist/AppShell/index.js +2 -0
- package/dist/AppShell-b0PWt9Fz.js +249 -0
- package/dist/AspectRatio/index.d.ts +2 -0
- package/dist/AspectRatio/index.js +2 -0
- package/dist/AspectRatio-Bij7e-tq.js +40 -0
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/index.d.ts +1 -1
- package/dist/BottomSheet/index.d.ts +1 -1
- package/dist/Button/index.d.ts +1 -1
- package/dist/ButtonGroup/index.d.ts +1 -1
- package/dist/Calendar/index.js +1 -1
- package/dist/{Calendar-DpYFXwgb.js → Calendar-CYhGDT6f.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-C1aWl5V3.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxInput/index.js +1 -1
- package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-EsIEXjK_.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-C1X0Rde8.js} +2 -2
- package/dist/ClickableCard/index.d.ts +2 -0
- package/dist/ClickableCard/index.js +2 -0
- package/dist/ClickableCard-Bhds4RRe.js +112 -0
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.d.ts +2 -2
- package/dist/Collapsible/index.js +2 -2
- package/dist/Collapsible-BS9ctCQV.js +192 -0
- package/dist/CommandPalette/index.d.ts +2 -0
- package/dist/CommandPalette/index.js +2 -0
- package/dist/CommandPalette-u5h_E05P.js +489 -0
- package/dist/ComplexSelector/index.d.ts +2 -0
- package/dist/ComplexSelector/index.js +2 -0
- package/dist/ComplexSelector-BHmGWml0.js +293 -0
- package/dist/ContextMenu/index.d.ts +1 -1
- package/dist/ContextMenu/index.js +1 -1
- package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.js +1 -1
- package/dist/{DateInput-zJAdXByM.js → DateInput-D2ErjXYO.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-fmQlr_A7.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-Bs1JmcIp.js +196 -0
- package/dist/Divider/index.d.ts +1 -1
- package/dist/DropdownMenu/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +1 -1
- package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
- package/dist/Field/index.d.ts +2 -2
- package/dist/Field/index.js +3 -4
- package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
- package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
- package/dist/FieldStatus/index.d.ts +2 -0
- package/dist/FieldStatus/index.js +2 -0
- package/dist/FileInput/index.d.ts +2 -0
- package/dist/FileInput/index.js +2 -0
- package/dist/FileInput-CmAfOpkA.js +238 -0
- package/dist/FormLayout/index.d.ts +2 -0
- package/dist/FormLayout/index.js +2 -0
- package/dist/FormLayout-D47FjiOq.js +40 -0
- package/dist/HoverCard/index.d.ts +1 -1
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- package/dist/Layout/index.d.ts +2 -0
- package/dist/Layout/index.js +3 -0
- package/dist/Layout-Bed3kP0M.js +56 -0
- package/dist/LayoutPanel-C34uOq3e.js +358 -0
- package/dist/List/index.d.ts +1 -1
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/{Markdown-DyKIwAL_.js → Markdown-CwtLr3f_.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DlXQTLog.js +124 -0
- package/dist/MobileNav/index.d.ts +1 -1
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-CgQamG6E.js} +19 -12
- package/dist/MoreMenu/index.d.ts +1 -1
- package/dist/MoreMenu/index.js +1 -1
- package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
- package/dist/MultiSelector/index.d.ts +1 -1
- package/dist/MultiSelector/index.js +1 -1
- package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-DT8ZccMI.js} +3 -3
- package/dist/NavItem/index.d.ts +1 -1
- package/dist/NavMenu/index.d.ts +1 -1
- package/dist/NumberInput/index.d.ts +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/{NumberInput-DU3_rw7z.js → NumberInput-DspJO6z6.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-zXg3g6fy.js} +1 -1
- package/dist/Overlay/index.d.ts +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-DXfgMUKJ.js} +2 -2
- package/dist/Popover/index.d.ts +2 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-BqjdSCfJ.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-DI8ujXcT.js +122 -0
- package/dist/Resizable/index.d.ts +2 -0
- package/dist/Resizable/index.js +2 -0
- package/dist/Resizable-BuGKvU9I.js +261 -0
- package/dist/ScrollableArea/index.d.ts +2 -0
- package/dist/ScrollableArea/index.js +2 -0
- package/dist/ScrollableArea-DQDYjnxO.js +78 -0
- package/dist/Section/index.d.ts +2 -0
- package/dist/Section/index.js +2 -0
- package/dist/Section-C48Wqfc7.js +68 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/SelectableCard/index.d.ts +2 -0
- package/dist/SelectableCard/index.js +2 -0
- package/dist/SelectableCard-Bj5s_tIN.js +108 -0
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DlZpQh42.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +2 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-Cdrigq2A.js} +49 -27
- package/dist/Slider/index.js +1 -1
- package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Stepper/index.d.ts +2 -0
- package/dist/Stepper/index.js +2 -0
- package/dist/Stepper-DxmLfh8O.js +423 -0
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Switch/index.js +1 -1
- package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
- package/dist/TabList/index.d.ts +2 -2
- package/dist/TabList/index.js +2 -2
- package/dist/TabList-C411uNQU.js +380 -0
- package/dist/Table/index.d.ts +3 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-7qRmlIQd.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextArea/index.js +1 -1
- package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/TextInput/index.js +1 -1
- package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-BWVzLLyI.js +163 -0
- package/dist/TimeField-l3QzU6vC.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-OkgX-xbQ.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DUoP9ari.js +465 -0
- package/dist/ToggleButton/index.d.ts +1 -1
- package/dist/Token/index.js +1 -1
- package/dist/{Token-Ctf9jekS.js → Token-C4KD0fZD.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-BA8sTMPZ.js} +3 -3
- package/dist/Toolbar/index.d.ts +1 -1
- package/dist/Tooltip/index.d.ts +1 -1
- package/dist/TopNav/index.d.ts +1 -1
- package/dist/TopNav/index.js +1 -1
- package/dist/{TopNav-CjbMCbkC.js → TopNav-CZokS7E_.js} +57 -31
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-CIbAGOMf.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-DIw-K4aa.js} +3 -3
- package/dist/composables/index.d.ts +3 -2
- package/dist/composables/index.js +8 -2
- package/dist/composables-CVfjp9h4.js +502 -0
- package/dist/context-BjNya0v8.js +19 -0
- package/dist/context-Cfjh8te1.js +29 -0
- package/dist/{locale-56lkR7OK.js → context-D6ECRdc5.js} +267 -18
- package/dist/index-1uRMrk63.d.ts +54 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-2u4l3wq8.d.ts} +2 -2
- package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
- package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
- package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
- package/dist/index-Be1czg3M.d.ts +167 -0
- package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- package/dist/index-BrJzFA5X.d.ts +38 -0
- package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
- package/dist/index-By2mSzUA.d.ts +67 -0
- package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
- package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
- package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-C6RecznD.d.ts} +3 -3
- package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
- package/dist/index-CDdRQQF3.d.ts +170 -0
- package/dist/index-COqjznX0.d.ts +47 -0
- package/dist/{index-Cz9ZHVf6.d.ts → index-CT8KEpec.d.ts} +2 -2
- package/dist/{index-CxspvLBl.d.ts → index-CTolyeii.d.ts} +1 -1
- package/dist/index-CVn0GBdB.d.ts +115 -0
- package/dist/index-CX97hlld.d.ts +158 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/index-CjtAH60j.d.ts +38 -0
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-JeZ0YTyd.d.ts → index-D-ZuubCK.d.ts} +4 -4
- package/dist/index-DA52oIdw.d.ts +171 -0
- package/dist/{index-C8NW9xre.d.ts → index-DGNqi2za.d.ts} +7 -7
- package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
- package/dist/index-DXSs3rwa.d.ts +252 -0
- package/dist/{index-C0S2Xzoi.d.ts → index-DYChvBOM.d.ts} +135 -0
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-Df2YvC8o.d.ts} +717 -147
- package/dist/{index-DjOdQv5B.d.ts → index-DfgHJE7H.d.ts} +1 -1
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-DBcbfStA.d.ts → index-SMh42NI8.d.ts} +182 -2
- package/dist/{index-Cdi82rTW.d.ts → index-ZJyk8RtQ.d.ts} +6 -2
- package/dist/{index-BeJqhW4l.d.ts → index-fa72tWIU.d.ts} +3 -3
- package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
- package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
- package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
- package/dist/index-nKlTsNfV.d.ts +42 -0
- package/dist/index-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +76 -59
- package/dist/index.js +119 -78
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/index.js +2 -1
- package/dist/locale-Cpk_nrLA.js +18 -0
- package/dist/size-BuTzpgnR.d.ts +14 -0
- package/dist/size-xcIqExkS.js +79 -0
- package/dist/{index-Cp0NlzQv.d.ts → types-Db3Owy8Q.d.ts} +1 -36
- package/dist/types-JktRxujg.d.ts +107 -0
- package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
- package/dist/useClickableContainer-DyNpnSEa.js +112 -0
- package/dist/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useResizable-CeESZS1v.d.ts +72 -0
- package/dist/useScrollableArea-DDk_CluT.js +172 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +97 -1
- package/styles/app-shell.css +151 -0
- package/styles/aspect-ratio.css +49 -0
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/card.css +5 -1
- package/styles/checkbox-list.css +15 -0
- package/styles/clickable-card.css +101 -0
- package/styles/collapsible.css +37 -0
- package/styles/command-palette.css +183 -0
- package/styles/complex-selector.css +114 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +14 -3
- package/styles/file-input.css +87 -0
- package/styles/form-layout.css +31 -0
- package/styles/heading.css +19 -17
- package/styles/icon.css +32 -0
- package/styles/layout.css +280 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/resize-handle.css +128 -0
- package/styles/scrollable-area.css +50 -0
- package/styles/section.css +60 -0
- package/styles/selector.css +10 -0
- package/styles/side-nav.css +26 -0
- package/styles/stepper.css +357 -0
- package/styles/tab-menu.css +91 -0
- package/styles/table.css +256 -0
- package/styles/text-area.css +6 -1
- package/styles/text-input.css +6 -0
- package/styles/thumbnail.css +151 -0
- package/styles/time-input.css +51 -0
- package/styles/timestamp.css +93 -0
- package/styles/tree-list.css +229 -0
- package/styles.css +23 -0
- package/dist/Collapsible-ByXCGhT8.js +0 -102
- package/dist/TabList-LV1U4ZD6.js +0 -184
- package/dist/composables-Dq9RS33w.js +0 -111
- package/dist/index-TnaIHsCS.d.ts +0 -87
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-command-palette {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
min-height: 0;
|
|
8
|
+
max-height: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.astryx-command-palette-header,
|
|
12
|
+
.astryx-command-palette-footer-wrap {
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.astryx-command-palette-header {
|
|
17
|
+
border-block-end: var(--astryx-border-width, 1px) solid var(--astryx-color-border, #00000014);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.astryx-command-palette-footer-wrap {
|
|
21
|
+
border-block-start: var(--astryx-border-width, 1px) solid var(--astryx-color-border, #00000014);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.astryx-command-palette-input {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
28
|
+
padding-inline: var(--astryx-spacing-4, 16px);
|
|
29
|
+
padding-block: var(--astryx-spacing-3, 12px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.astryx-command-palette-search {
|
|
33
|
+
flex-shrink: 0;
|
|
34
|
+
width: 1rem;
|
|
35
|
+
height: 1rem;
|
|
36
|
+
background-color: var(--astryx-color-text-secondary, #525252);
|
|
37
|
+
mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
|
|
38
|
+
mask-repeat: no-repeat;
|
|
39
|
+
mask-position: center;
|
|
40
|
+
mask-size: contain;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.astryx-command-palette-field {
|
|
44
|
+
flex: 1 1 auto;
|
|
45
|
+
min-width: 0;
|
|
46
|
+
margin: 0;
|
|
47
|
+
padding: 0;
|
|
48
|
+
border: 0;
|
|
49
|
+
outline: 0;
|
|
50
|
+
background: transparent;
|
|
51
|
+
color: var(--astryx-color-text-primary, #171717);
|
|
52
|
+
font-family: var(--astryx-font-family-body, Figtree, sans-serif);
|
|
53
|
+
font-size: var(--astryx-text-body-size, 0.875rem);
|
|
54
|
+
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.astryx-command-palette-field::placeholder {
|
|
58
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@media (pointer: coarse) {
|
|
62
|
+
.astryx-command-palette-field {
|
|
63
|
+
font-size: max(1rem, var(--astryx-text-body-size, 0.875rem));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.astryx-command-palette-end {
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
align-items: center;
|
|
70
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.astryx-command-palette-spinner {
|
|
74
|
+
opacity: 0;
|
|
75
|
+
animation: astryx-command-palette-spinner 1ms linear 150ms forwards;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@keyframes astryx-command-palette-spinner {
|
|
79
|
+
to { opacity: 1; }
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.astryx-command-palette-list {
|
|
83
|
+
display: flex;
|
|
84
|
+
flex: 1 1 auto;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
gap: var(--astryx-spacing-0-5, 2px);
|
|
87
|
+
min-height: 0;
|
|
88
|
+
max-height: 100%;
|
|
89
|
+
overflow-y: auto;
|
|
90
|
+
padding: var(--astryx-spacing-1, 4px);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.astryx-command-palette-group {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-direction: column;
|
|
96
|
+
gap: var(--astryx-spacing-0-5, 2px);
|
|
97
|
+
padding-block: var(--astryx-spacing-1, 4px);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.astryx-command-palette-group-heading {
|
|
101
|
+
padding-inline: var(--astryx-spacing-3, 12px);
|
|
102
|
+
padding-block: var(--astryx-spacing-1, 4px);
|
|
103
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
104
|
+
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
105
|
+
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
106
|
+
user-select: none;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.astryx-command-palette-item {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
113
|
+
width: 100%;
|
|
114
|
+
padding-inline: var(--astryx-spacing-3, 12px);
|
|
115
|
+
padding-block: var(--astryx-spacing-2, 8px);
|
|
116
|
+
border-radius: var(--astryx-radius-inner, 4px);
|
|
117
|
+
background: transparent;
|
|
118
|
+
color: var(--astryx-color-text-primary, #171717);
|
|
119
|
+
font-size: var(--astryx-text-label-size, 0.875rem);
|
|
120
|
+
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
121
|
+
text-align: start;
|
|
122
|
+
cursor: pointer;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@media (hover: hover) {
|
|
126
|
+
.astryx-command-palette-item:hover:not([data-disabled]) {
|
|
127
|
+
background: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.astryx-command-palette-item:active:not([data-disabled]) {
|
|
132
|
+
background: var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19));
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.astryx-command-palette-item[data-highlighted='true'] {
|
|
136
|
+
background: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.astryx-command-palette-item[data-selected='true'] {
|
|
140
|
+
background: var(--astryx-color-accent-muted, light-dark(#0082fb33, #0082fb3f));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.astryx-command-palette-item[data-disabled='true'] {
|
|
144
|
+
opacity: 0.5;
|
|
145
|
+
cursor: not-allowed;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.astryx-command-palette-empty {
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
justify-content: center;
|
|
152
|
+
padding-block: var(--astryx-spacing-8, 32px);
|
|
153
|
+
padding-inline: var(--astryx-spacing-4, 16px);
|
|
154
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
155
|
+
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
156
|
+
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
157
|
+
text-align: center;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.astryx-command-palette-footer {
|
|
161
|
+
display: flex;
|
|
162
|
+
align-items: center;
|
|
163
|
+
gap: var(--astryx-spacing-4, 16px);
|
|
164
|
+
padding-inline: var(--astryx-spacing-4, 16px);
|
|
165
|
+
padding-block: var(--astryx-spacing-2, 8px);
|
|
166
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
167
|
+
font-size: var(--astryx-text-supporting-size, 0.75rem);
|
|
168
|
+
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.astryx-command-palette-hint {
|
|
172
|
+
display: inline-flex;
|
|
173
|
+
align-items: center;
|
|
174
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@media (prefers-reduced-motion: reduce) {
|
|
178
|
+
.astryx-command-palette-spinner {
|
|
179
|
+
animation: none;
|
|
180
|
+
opacity: 1;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-complex-selector-field .astryx-popover-trigger {
|
|
5
|
+
display: block;
|
|
6
|
+
width: 100%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.astryx-complex-selector-field[data-variant='ghost'] .astryx-popover-trigger {
|
|
10
|
+
width: auto;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.astryx-complex-selector {
|
|
14
|
+
box-sizing: border-box;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
19
|
+
width: 100%;
|
|
20
|
+
min-height: var(--astryx-input-height-md, 32px);
|
|
21
|
+
margin: 0;
|
|
22
|
+
padding-block: var(--astryx-spacing-2, 8px);
|
|
23
|
+
padding-inline: var(--astryx-spacing-3, 12px);
|
|
24
|
+
border: var(--astryx-border-width, 1px) solid var(--astryx-input-border, #d4d4d4);
|
|
25
|
+
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
26
|
+
background: var(--astryx-input-background, #fff);
|
|
27
|
+
color: var(--astryx-color-text-primary, #171717);
|
|
28
|
+
font-family: var(--astryx-font-family-body, Figtree, sans-serif);
|
|
29
|
+
font-size: var(--astryx-text-label-size, 0.875rem);
|
|
30
|
+
line-height: var(--astryx-text-label-leading, 1.4286);
|
|
31
|
+
text-align: start;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@media (pointer: coarse) {
|
|
36
|
+
.astryx-complex-selector {
|
|
37
|
+
font-size: max(1rem, var(--astryx-text-label-size, 0.875rem));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.astryx-complex-selector[data-size='sm'] {
|
|
42
|
+
min-height: var(--astryx-input-height-sm, 28px);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.astryx-complex-selector[data-size='lg'] {
|
|
46
|
+
min-height: var(--astryx-input-height-lg, 36px);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.astryx-complex-selector[data-variant='ghost'] {
|
|
50
|
+
width: auto;
|
|
51
|
+
border-color: transparent;
|
|
52
|
+
background: transparent;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media (hover: hover) {
|
|
56
|
+
.astryx-complex-selector[data-variant='ghost']:not(:disabled):hover {
|
|
57
|
+
background: var(--astryx-color-overlay-hover, #0000000d);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.astryx-complex-selector[data-placeholder] {
|
|
62
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.astryx-complex-selector[data-status='error'] {
|
|
66
|
+
border-color: var(--astryx-input-error, #e33f4a);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.astryx-complex-selector[data-status='warning'] {
|
|
70
|
+
border-color: var(--astryx-input-warning, #a67a00);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.astryx-complex-selector:focus-visible {
|
|
74
|
+
outline: var(--astryx-focus-outline-width, 2px) solid var(--astryx-focus-outline-color, var(--astryx-color-text-primary, #171717));
|
|
75
|
+
outline-offset: var(--astryx-focus-outline-offset, 2px);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.astryx-complex-selector:disabled {
|
|
79
|
+
opacity: 0.5;
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.astryx-complex-selector-start {
|
|
84
|
+
flex-shrink: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.astryx-complex-selector-value {
|
|
88
|
+
flex: 1 1 auto;
|
|
89
|
+
min-width: 0;
|
|
90
|
+
overflow: hidden;
|
|
91
|
+
text-overflow: ellipsis;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.astryx-complex-selector-chevron {
|
|
96
|
+
flex-shrink: 0;
|
|
97
|
+
transition: transform var(--astryx-duration-fast, 130ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.astryx-complex-selector-chevron[data-state='expanded'] {
|
|
101
|
+
transform: rotate(180deg);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.astryx-complex-selector-content {
|
|
105
|
+
max-height: min(480px, calc(100vh - 32px));
|
|
106
|
+
overflow: auto;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@media (prefers-reduced-motion: reduce) {
|
|
110
|
+
.astryx-complex-selector-chevron {
|
|
111
|
+
transition: none;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-date-range-input {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.astryx-date-range-trigger {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex: 1;
|
|
11
|
+
align-items: center;
|
|
12
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
13
|
+
min-width: 0;
|
|
14
|
+
padding: 0;
|
|
15
|
+
border: 0;
|
|
16
|
+
color: inherit;
|
|
17
|
+
background: transparent;
|
|
18
|
+
font: inherit;
|
|
19
|
+
line-height: inherit;
|
|
20
|
+
text-align: start;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.astryx-date-range-trigger:disabled {
|
|
25
|
+
cursor: default;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.astryx-date-range-value {
|
|
29
|
+
flex: 1;
|
|
30
|
+
min-width: 0;
|
|
31
|
+
overflow: hidden;
|
|
32
|
+
text-overflow: ellipsis;
|
|
33
|
+
white-space: nowrap;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.astryx-date-range-value[data-placeholder='true'] {
|
|
37
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.astryx-date-range-icon {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
flex: none;
|
|
43
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.astryx-date-range-popover {
|
|
47
|
+
container-type: inline-size;
|
|
48
|
+
width: 100%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.astryx-date-range-panel {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: stretch;
|
|
54
|
+
max-height: min(32rem, calc(100vh - 32px));
|
|
55
|
+
overflow: auto;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.astryx-date-range-presets {
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
62
|
+
min-width: 9rem;
|
|
63
|
+
padding: var(--astryx-spacing-3, 12px);
|
|
64
|
+
border-inline-end: 1px solid var(--astryx-color-border, #ebebeb);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.astryx-date-range-preset {
|
|
68
|
+
padding: var(--astryx-spacing-1, 4px) var(--astryx-spacing-2, 8px);
|
|
69
|
+
border: 0;
|
|
70
|
+
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
71
|
+
color: var(--astryx-color-text-primary, #171717);
|
|
72
|
+
background: transparent;
|
|
73
|
+
font: inherit;
|
|
74
|
+
font-size: var(--astryx-text-label-size, 14px);
|
|
75
|
+
line-height: var(--astryx-text-label-leading, 1.4286);
|
|
76
|
+
text-align: start;
|
|
77
|
+
cursor: pointer;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@media (hover: hover) {
|
|
81
|
+
.astryx-date-range-preset:hover:not(:disabled) {
|
|
82
|
+
background: var(--astryx-dropdown-menu-hover-background, light-dark(#0536590c, #ffffff0c));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.astryx-date-range-preset:disabled {
|
|
87
|
+
opacity: 0.4;
|
|
88
|
+
cursor: default;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.astryx-date-range-calendar {
|
|
92
|
+
display: block;
|
|
93
|
+
flex: 1 1 auto;
|
|
94
|
+
width: auto;
|
|
95
|
+
min-width: 0;
|
|
96
|
+
max-width: 100%;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.astryx-date-range-months {
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-wrap: wrap;
|
|
102
|
+
gap: var(--astryx-spacing-4, 16px);
|
|
103
|
+
min-width: 0;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.astryx-date-range-month {
|
|
107
|
+
flex: 1 1 14rem;
|
|
108
|
+
min-width: 14rem;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/* The range band sits behind the day. Start and end stay full circles
|
|
112
|
+
with the measured fill, so their text does not sink into the band. */
|
|
113
|
+
.astryx-calendar-cell.is-in-range {
|
|
114
|
+
border-radius: var(--astryx-radius-full, 9999px);
|
|
115
|
+
background: transparent;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.astryx-calendar-cell.is-in-range::before {
|
|
119
|
+
content: "";
|
|
120
|
+
position: absolute;
|
|
121
|
+
z-index: 0;
|
|
122
|
+
inset: 2px 0;
|
|
123
|
+
background: var(--astryx-color-accent-muted, light-dark(#f1f1f1, #262626));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.astryx-calendar-cell.is-range-start::before {
|
|
127
|
+
inset: 2px 0 2px 2px;
|
|
128
|
+
border-radius: 9999px 0 0 9999px;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.astryx-calendar-cell.is-range-end::before {
|
|
132
|
+
inset: 2px 2px 2px 0;
|
|
133
|
+
border-radius: 0 9999px 9999px 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.astryx-calendar-cell.is-range-start.is-range-end::before {
|
|
137
|
+
content: none;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.astryx-calendar-cell.is-range-start,
|
|
141
|
+
.astryx-calendar-cell.is-range-end {
|
|
142
|
+
color: light-dark(#ffffff, #111111);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.astryx-calendar-cell.is-range-start::after,
|
|
146
|
+
.astryx-calendar-cell.is-range-end::after {
|
|
147
|
+
content: "";
|
|
148
|
+
position: absolute;
|
|
149
|
+
z-index: 1;
|
|
150
|
+
inset: 0;
|
|
151
|
+
border-radius: 9999px;
|
|
152
|
+
background: light-dark(#1b1b1b, #f1f1f1);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.astryx-calendar-cell.is-today.is-range-start::after,
|
|
156
|
+
.astryx-calendar-cell.is-today.is-range-end::after {
|
|
157
|
+
box-shadow: inset 0 0 0 1px light-dark(#000000, #ffffff);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.astryx-date-range-calendar .astryx-calendar-day {
|
|
161
|
+
z-index: 2;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-date-time-input {
|
|
5
|
+
container-type: inline-size;
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
9
|
+
min-width: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.astryx-date-time-fields {
|
|
13
|
+
display: grid;
|
|
14
|
+
flex: 1;
|
|
15
|
+
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
18
|
+
min-width: 0;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.astryx-date-time-fields > .astryx-date-input,
|
|
22
|
+
.astryx-date-time-fields > .astryx-time-input {
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.astryx-date-time-input .astryx-date-input-wrapper {
|
|
27
|
+
min-width: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/* Original segments use a 196px basis, so the row wraps below 399px
|
|
31
|
+
even when the placeholders still fit. Measured placeholders are about
|
|
32
|
+
82px; with the icon and padding they stay on one row down to 16rem.
|
|
33
|
+
Equal columns keep the 268px overview card (1280px viewport) side by
|
|
34
|
+
side. Narrower rows wrap. */
|
|
35
|
+
@container (max-width: 16rem) {
|
|
36
|
+
.astryx-date-time-fields {
|
|
37
|
+
grid-template-columns: minmax(0, 1fr);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/styles/field.css
CHANGED
|
@@ -16,10 +16,9 @@
|
|
|
16
16
|
flex-direction: column;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
/*
|
|
20
|
-
so it needs more room than the label of a single input. */
|
|
19
|
+
/* Original CheckboxList and Radio fields use the same 4px label gap as a single input. */
|
|
21
20
|
.astryx-field[data-group-label='true'] {
|
|
22
|
-
gap: var(--astryx-spacing-
|
|
21
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
23
22
|
}
|
|
24
23
|
|
|
25
24
|
.astryx-field-label-row {
|
|
@@ -74,6 +73,18 @@
|
|
|
74
73
|
gap: 0;
|
|
75
74
|
}
|
|
76
75
|
|
|
76
|
+
/*
|
|
77
|
+
* horizontal-labels 把标签和控件拆成网格的两列。
|
|
78
|
+
* 标签顶部补上边框和 4px,才能和输入框里的文字对齐。
|
|
79
|
+
*/
|
|
80
|
+
.astryx-field[data-layout='horizontal-labels'] {
|
|
81
|
+
display: contents;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.astryx-field[data-layout='horizontal-labels'] > .astryx-field-label-group {
|
|
85
|
+
padding-top: calc(var(--astryx-border-width, 1px) + var(--astryx-spacing-1, 4px));
|
|
86
|
+
}
|
|
87
|
+
|
|
77
88
|
.astryx-field-control {
|
|
78
89
|
position: relative;
|
|
79
90
|
display: flex;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-file-input {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.astryx-file-input[data-mode='dropzone'] {
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
height: auto;
|
|
12
|
+
min-height: 7.5rem;
|
|
13
|
+
padding: var(--astryx-spacing-6, 24px) var(--astryx-spacing-4, 16px);
|
|
14
|
+
border-style: dashed;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.astryx-file-input[data-drag='true'] {
|
|
18
|
+
border-color: var(--astryx-input-status-color, var(--astryx-input-focus, #262626));
|
|
19
|
+
background: var(--astryx-color-accent-muted, light-dark(#e8f3fc, #143044));
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.astryx-file-input-native {
|
|
23
|
+
position: absolute;
|
|
24
|
+
width: 1px;
|
|
25
|
+
height: 1px;
|
|
26
|
+
margin: -1px;
|
|
27
|
+
padding: 0;
|
|
28
|
+
overflow: hidden;
|
|
29
|
+
border: 0;
|
|
30
|
+
clip-path: inset(50%);
|
|
31
|
+
white-space: nowrap;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.astryx-file-input-trigger {
|
|
35
|
+
display: flex;
|
|
36
|
+
flex: 1;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
39
|
+
min-width: 0;
|
|
40
|
+
padding: 0;
|
|
41
|
+
border: 0;
|
|
42
|
+
color: inherit;
|
|
43
|
+
background: transparent;
|
|
44
|
+
font: inherit;
|
|
45
|
+
line-height: inherit;
|
|
46
|
+
text-align: start;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.astryx-file-input[data-mode='dropzone'] .astryx-file-input-trigger {
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
justify-content: center;
|
|
53
|
+
text-align: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.astryx-file-input-trigger:disabled,
|
|
57
|
+
.astryx-file-input[data-disabled='true'] .astryx-file-input-trigger {
|
|
58
|
+
cursor: default;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.astryx-file-input-text {
|
|
62
|
+
min-width: 0;
|
|
63
|
+
overflow: hidden;
|
|
64
|
+
text-overflow: ellipsis;
|
|
65
|
+
white-space: nowrap;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.astryx-file-input[data-mode='dropzone'] .astryx-file-input-text {
|
|
69
|
+
white-space: normal;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.astryx-file-input-text[data-placeholder='true'] {
|
|
73
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.astryx-file-input-icon {
|
|
77
|
+
display: inline-flex;
|
|
78
|
+
flex: none;
|
|
79
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* Unlayered: the bordered control owns focus. A page ring on the trigger stacks a second outline. */
|
|
84
|
+
.astryx-file-input-trigger:focus,
|
|
85
|
+
.astryx-file-input-trigger:focus-visible {
|
|
86
|
+
outline: none;
|
|
87
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-form-layout {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: var(--astryx-spacing-4, 16px);
|
|
8
|
+
min-width: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.astryx-form-layout[data-direction='horizontal'] {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-auto-flow: column;
|
|
14
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.astryx-form-layout[data-direction='horizontal-labels'] {
|
|
18
|
+
display: grid;
|
|
19
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
20
|
+
gap: var(--astryx-spacing-3, 12px) var(--astryx-spacing-4, 16px);
|
|
21
|
+
align-items: start;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@media (max-width: 480px) {
|
|
25
|
+
.astryx-form-layout[data-direction='horizontal-labels'] {
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
gap: var(--astryx-spacing-4, 16px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
package/styles/heading.css
CHANGED
|
@@ -33,22 +33,6 @@
|
|
|
33
33
|
color: inherit;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
.astryx-heading--weight-regular {
|
|
37
|
-
font-weight: var(--astryx-font-weight-regular, 400);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.astryx-heading--weight-medium {
|
|
41
|
-
font-weight: var(--astryx-font-weight-medium, 500);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.astryx-heading--weight-semibold {
|
|
45
|
-
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.astryx-heading--weight-bold {
|
|
49
|
-
font-weight: var(--astryx-font-weight-bold, 700);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
36
|
.astryx-heading--level-1 {
|
|
53
37
|
font-size: var(--astryx-heading-level-1-size, 2rem);
|
|
54
38
|
}
|
|
@@ -62,7 +46,9 @@
|
|
|
62
46
|
}
|
|
63
47
|
|
|
64
48
|
.astryx-heading--level-4 {
|
|
65
|
-
font-size: var(--astryx-heading-level-4-size,
|
|
49
|
+
font-size: var(--astryx-heading-level-4-size, 0.875rem);
|
|
50
|
+
font-weight: var(--astryx-font-weight-bold, 700);
|
|
51
|
+
line-height: var(--astryx-text-heading-4-leading, 1.4286);
|
|
66
52
|
}
|
|
67
53
|
|
|
68
54
|
.astryx-heading--level-5 {
|
|
@@ -112,6 +98,22 @@
|
|
|
112
98
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
113
99
|
}
|
|
114
100
|
|
|
101
|
+
.astryx-heading--weight-regular {
|
|
102
|
+
font-weight: var(--astryx-font-weight-regular, 400);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.astryx-heading--weight-medium {
|
|
106
|
+
font-weight: var(--astryx-font-weight-medium, 500);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.astryx-heading--weight-semibold {
|
|
110
|
+
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.astryx-heading--weight-bold {
|
|
114
|
+
font-weight: var(--astryx-font-weight-bold, 700);
|
|
115
|
+
}
|
|
116
|
+
|
|
115
117
|
.astryx-heading--truncate-single {
|
|
116
118
|
overflow: hidden;
|
|
117
119
|
text-overflow: ellipsis;
|