@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
package/styles/table.css
ADDED
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-table-scroll {
|
|
5
|
+
overflow-x: auto;
|
|
6
|
+
-webkit-overflow-scrolling: touch;
|
|
7
|
+
margin-inline-start: calc(-1 * var(--container-padding-inline-start, 0px));
|
|
8
|
+
margin-inline-end: calc(-1 * var(--container-padding-inline-end, 0px));
|
|
9
|
+
width: calc(100% + var(--container-padding-inline-start, 0px) + var(--container-padding-inline-end, 0px));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.astryx-table-scroll:first-child {
|
|
13
|
+
margin-top: calc(-1 * var(--container-padding-block-start, 0px));
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.astryx-table-scroll:last-child {
|
|
17
|
+
margin-bottom: calc(-1 * var(--container-padding-block-end, 0px));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.astryx-table {
|
|
21
|
+
width: 100%;
|
|
22
|
+
border-collapse: collapse;
|
|
23
|
+
border-spacing: 0;
|
|
24
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
25
|
+
font-family: inherit;
|
|
26
|
+
font-size: var(--astryx-text-body-size, 1rem);
|
|
27
|
+
line-height: var(--astryx-text-body-leading, 1.4286);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.astryx-table :is(th, td) {
|
|
31
|
+
box-sizing: border-box;
|
|
32
|
+
text-align: start;
|
|
33
|
+
vertical-align: middle;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.astryx-table[data-valign='top'] :is(th, td) {
|
|
37
|
+
vertical-align: top;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.astryx-table[data-valign='bottom'] :is(th, td) {
|
|
41
|
+
vertical-align: bottom;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.astryx-table[data-density='compact'] :is(th, td) {
|
|
45
|
+
padding-block: var(--astryx-spacing-1, 4px);
|
|
46
|
+
padding-inline: var(--astryx-spacing-2, 8px);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.astryx-table[data-density='balanced'] :is(th, td) {
|
|
50
|
+
padding-block: var(--astryx-spacing-2, 8px);
|
|
51
|
+
padding-inline: var(--astryx-spacing-3, 12px);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.astryx-table[data-density='spacious'] :is(th, td) {
|
|
55
|
+
padding-block: var(--astryx-spacing-3, 12px);
|
|
56
|
+
padding-inline: var(--astryx-spacing-4, 16px);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.astryx-table[data-density='compact'] :is(th, td):first-child {
|
|
60
|
+
padding-inline-start: max(var(--container-padding-inline-start, var(--astryx-spacing-2, 8px)), var(--astryx-spacing-2, 8px));
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.astryx-table[data-density='compact'] :is(th, td):last-child {
|
|
64
|
+
padding-inline-end: max(var(--container-padding-inline-end, var(--astryx-spacing-2, 8px)), var(--astryx-spacing-2, 8px));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.astryx-table[data-density='balanced'] :is(th, td):first-child {
|
|
68
|
+
padding-inline-start: max(var(--container-padding-inline-start, var(--astryx-spacing-3, 12px)), var(--astryx-spacing-2, 8px));
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.astryx-table[data-density='balanced'] :is(th, td):last-child {
|
|
72
|
+
padding-inline-end: max(var(--container-padding-inline-end, var(--astryx-spacing-3, 12px)), var(--astryx-spacing-2, 8px));
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.astryx-table[data-density='spacious'] :is(th, td):first-child {
|
|
76
|
+
padding-inline-start: max(var(--container-padding-inline-start, var(--astryx-spacing-4, 16px)), var(--astryx-spacing-2, 8px));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.astryx-table[data-density='spacious'] :is(th, td):last-child {
|
|
80
|
+
padding-inline-end: max(var(--container-padding-inline-end, var(--astryx-spacing-4, 16px)), var(--astryx-spacing-2, 8px));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.astryx-table th {
|
|
84
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
85
|
+
font-size: var(--astryx-text-label-size, 1rem);
|
|
86
|
+
font-weight: var(--astryx-font-weight-semibold, 600);
|
|
87
|
+
border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
|
|
88
|
+
overflow: hidden;
|
|
89
|
+
text-overflow: ellipsis;
|
|
90
|
+
white-space: nowrap;
|
|
91
|
+
max-width: 0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.astryx-table[data-dividers='rows'] tbody tr:not(:last-child) > td,
|
|
95
|
+
.astryx-table[data-dividers='grid'] tbody tr:not(:last-child) > td {
|
|
96
|
+
border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.astryx-table[data-dividers='columns'] :is(th, td):not(:last-child),
|
|
100
|
+
.astryx-table[data-dividers='grid'] :is(th, td):not(:last-child) {
|
|
101
|
+
border-inline-end: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.astryx-table[data-overflow='truncate'] td {
|
|
105
|
+
overflow: hidden;
|
|
106
|
+
text-overflow: ellipsis;
|
|
107
|
+
white-space: nowrap;
|
|
108
|
+
max-width: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.astryx-table[data-overflow='wrap'] td {
|
|
112
|
+
overflow: hidden;
|
|
113
|
+
overflow-wrap: break-word;
|
|
114
|
+
word-break: break-word;
|
|
115
|
+
max-width: 0;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.astryx-table[data-striped='true'] tbody tr:nth-child(even of :not([data-expansion-panel])) {
|
|
119
|
+
background-color: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.astryx-table[data-hover='true'] tbody tr {
|
|
123
|
+
transition: background-color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@media (hover: hover) {
|
|
127
|
+
.astryx-table[data-hover='true'] tbody tr:hover {
|
|
128
|
+
background-color: var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.astryx-table tbody tr[aria-selected='true'] {
|
|
133
|
+
background-color: var(--astryx-color-accent-muted, light-dark(#f1f1f1, #262626));
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.astryx-table :is(th, td)[data-align='center'] {
|
|
137
|
+
text-align: center;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.astryx-table :is(th, td)[data-align='end'] {
|
|
141
|
+
text-align: end;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.astryx-table__sort {
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
148
|
+
width: 100%;
|
|
149
|
+
height: 100%;
|
|
150
|
+
margin: 0;
|
|
151
|
+
padding: 0;
|
|
152
|
+
border: 0;
|
|
153
|
+
border-radius: var(--astryx-radius-inner, 0.375rem);
|
|
154
|
+
background: transparent;
|
|
155
|
+
color: inherit;
|
|
156
|
+
font: inherit;
|
|
157
|
+
text-align: inherit;
|
|
158
|
+
cursor: pointer;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.astryx-table__sort[data-align='center'] {
|
|
162
|
+
justify-content: center;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.astryx-table__sort[data-align='end'] {
|
|
166
|
+
justify-content: flex-end;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.astryx-table__sort-icon {
|
|
170
|
+
display: inline-flex;
|
|
171
|
+
opacity: 0.35;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.astryx-table th:hover .astryx-table__sort-icon,
|
|
175
|
+
.astryx-table__sort:focus-visible .astryx-table__sort-icon,
|
|
176
|
+
.astryx-table__sort-icon[data-active='true'] {
|
|
177
|
+
opacity: 1;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.astryx-table__sort-rank {
|
|
181
|
+
color: var(--astryx-color-accent, light-dark(#262626, #ebebeb));
|
|
182
|
+
font-size: 10px;
|
|
183
|
+
line-height: 1;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
.astryx-table__header {
|
|
187
|
+
position: relative;
|
|
188
|
+
display: flex;
|
|
189
|
+
flex-direction: column;
|
|
190
|
+
gap: var(--astryx-spacing-1, 4px);
|
|
191
|
+
min-width: 0;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.astryx-table__resize {
|
|
195
|
+
position: absolute;
|
|
196
|
+
top: 0;
|
|
197
|
+
inset-inline-end: 0;
|
|
198
|
+
width: 8px;
|
|
199
|
+
height: 100%;
|
|
200
|
+
cursor: col-resize;
|
|
201
|
+
touch-action: none;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.astryx-table__empty {
|
|
205
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
206
|
+
text-align: center;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.astryx-table__select {
|
|
210
|
+
width: 48px;
|
|
211
|
+
min-width: 48px;
|
|
212
|
+
max-width: 48px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.astryx-table__filter {
|
|
216
|
+
min-width: 0;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
.astryx-table__filter-popover {
|
|
220
|
+
display: flex;
|
|
221
|
+
flex-direction: column;
|
|
222
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
223
|
+
min-width: 220px;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.astryx-table__filter-actions {
|
|
227
|
+
display: flex;
|
|
228
|
+
justify-content: flex-end;
|
|
229
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.astryx-table__pagination {
|
|
233
|
+
display: flex;
|
|
234
|
+
margin-top: var(--astryx-spacing-2, 8px);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
.astryx-table__pagination[data-align='start'] {
|
|
238
|
+
justify-content: flex-start;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.astryx-table__pagination[data-align='center'] {
|
|
242
|
+
justify-content: center;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.astryx-table__pagination[data-align='end'] {
|
|
246
|
+
justify-content: flex-end;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
.astryx-table-selection-toolbar {
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-wrap: wrap;
|
|
252
|
+
align-items: center;
|
|
253
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
254
|
+
margin-bottom: var(--astryx-spacing-2, 8px);
|
|
255
|
+
}
|
|
256
|
+
}
|
package/styles/text-area.css
CHANGED
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
|
|
43
43
|
.astryx-text-area-control:focus,
|
|
44
44
|
.astryx-text-area-control:focus-visible {
|
|
45
|
-
outline: none;
|
|
46
45
|
box-shadow: none;
|
|
47
46
|
}
|
|
48
47
|
|
|
@@ -139,3 +138,9 @@
|
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
}
|
|
141
|
+
|
|
142
|
+
/* Unlayered: the field chrome owns focus. A page ring on the inner textarea stacks a second outline. */
|
|
143
|
+
.astryx-text-area-control:focus,
|
|
144
|
+
.astryx-text-area-control:focus-visible {
|
|
145
|
+
outline: none;
|
|
146
|
+
}
|
package/styles/text-input.css
CHANGED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-thumbnail {
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
flex-shrink: 0;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
width: 64px;
|
|
10
|
+
isolation: isolate;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.astryx-thumbnail[data-disabled='true'] {
|
|
14
|
+
opacity: 0.5;
|
|
15
|
+
pointer-events: none;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.astryx-thumbnail__frame {
|
|
19
|
+
position: relative;
|
|
20
|
+
width: 100%;
|
|
21
|
+
aspect-ratio: 1;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
border-radius: var(--astryx-radius-element, 0.625rem);
|
|
24
|
+
background-color: var(--astryx-color-neutral, light-dark(#f1f1f1, #262626));
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.astryx-thumbnail__image,
|
|
28
|
+
.astryx-thumbnail__open,
|
|
29
|
+
.astryx-thumbnail__placeholder,
|
|
30
|
+
.astryx-thumbnail .astryx-skeleton {
|
|
31
|
+
width: 100%;
|
|
32
|
+
height: 100%;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.astryx-thumbnail__image {
|
|
36
|
+
display: block;
|
|
37
|
+
object-fit: cover;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.astryx-thumbnail__placeholder {
|
|
41
|
+
display: flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
color: var(--astryx-color-icon-secondary, light-dark(#737373, #a3a3a3));
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.astryx-thumbnail__placeholder .astryx-icon {
|
|
48
|
+
width: 24px;
|
|
49
|
+
height: 24px;
|
|
50
|
+
font-size: 24px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.astryx-thumbnail__border {
|
|
54
|
+
position: absolute;
|
|
55
|
+
inset: 0;
|
|
56
|
+
border-radius: inherit;
|
|
57
|
+
box-shadow: inset 0 0 0 1px var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
|
|
58
|
+
pointer-events: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.astryx-thumbnail__open {
|
|
62
|
+
position: relative;
|
|
63
|
+
display: block;
|
|
64
|
+
margin: 0;
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: 0;
|
|
67
|
+
border-radius: inherit;
|
|
68
|
+
background: transparent;
|
|
69
|
+
cursor: pointer;
|
|
70
|
+
overflow: hidden;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.astryx-thumbnail__open::after,
|
|
74
|
+
.astryx-thumbnail__frame[data-interactive='true']::after {
|
|
75
|
+
content: '';
|
|
76
|
+
position: absolute;
|
|
77
|
+
inset: 0;
|
|
78
|
+
border-radius: inherit;
|
|
79
|
+
background-color: transparent;
|
|
80
|
+
pointer-events: none;
|
|
81
|
+
transition: background-color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@media (hover: hover) {
|
|
85
|
+
.astryx-thumbnail__open:hover::after,
|
|
86
|
+
.astryx-thumbnail__frame[data-interactive='true']:hover::after {
|
|
87
|
+
background-color: var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.astryx-thumbnail__open:active::after,
|
|
92
|
+
.astryx-thumbnail__frame[data-interactive='true']:active::after {
|
|
93
|
+
background-color: var(--astryx-color-overlay-pressed, light-dark(#0000001a, #ffffff1a));
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.astryx-thumbnail__loading {
|
|
97
|
+
position: absolute;
|
|
98
|
+
inset: 0;
|
|
99
|
+
z-index: 1;
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
border-radius: inherit;
|
|
104
|
+
background-color: var(--astryx-color-overlay, light-dark(#00000080, #000000cc));
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.astryx-thumbnail__remove {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: var(--astryx-spacing-1, 4px);
|
|
110
|
+
inset-inline-end: var(--astryx-spacing-1, 4px);
|
|
111
|
+
z-index: 1;
|
|
112
|
+
line-height: 0;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.astryx-thumbnail__remove[data-reveal='hover'] {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.astryx-thumbnail:focus-within .astryx-thumbnail__remove[data-reveal='hover'],
|
|
120
|
+
.astryx-thumbnail__remove[data-reveal='hover']:focus-within {
|
|
121
|
+
opacity: 1;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@media (hover: hover) {
|
|
125
|
+
.astryx-thumbnail:hover .astryx-thumbnail__remove[data-reveal='hover'] {
|
|
126
|
+
opacity: 1;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
@media (pointer: coarse) {
|
|
131
|
+
.astryx-thumbnail__remove[data-reveal='hover'] {
|
|
132
|
+
opacity: 1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.astryx-thumbnail__remove .astryx-button::after {
|
|
136
|
+
content: '';
|
|
137
|
+
position: absolute;
|
|
138
|
+
inset: -2px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.astryx-thumbnail__remove .astryx-button {
|
|
143
|
+
position: relative;
|
|
144
|
+
width: 20px;
|
|
145
|
+
height: 20px;
|
|
146
|
+
min-width: 20px;
|
|
147
|
+
border-radius: calc(var(--astryx-radius-element, 0.625rem) - var(--astryx-spacing-1, 4px));
|
|
148
|
+
background-color: var(--astryx-color-overlay, light-dark(#00000080, #000000cc));
|
|
149
|
+
color: var(--astryx-color-on-dark, #fff);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-time-input {
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.astryx-time-input-icon {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
flex: none;
|
|
11
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.astryx-time-input-control {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
display: block;
|
|
17
|
+
flex: 1;
|
|
18
|
+
width: 100%;
|
|
19
|
+
min-width: 0;
|
|
20
|
+
padding: 0;
|
|
21
|
+
border: 0;
|
|
22
|
+
outline: none;
|
|
23
|
+
color: inherit;
|
|
24
|
+
background: transparent;
|
|
25
|
+
font: inherit;
|
|
26
|
+
line-height: inherit;
|
|
27
|
+
appearance: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.astryx-time-input-control::placeholder {
|
|
31
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
32
|
+
opacity: 1;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.astryx-time-input-control:disabled {
|
|
36
|
+
color: inherit;
|
|
37
|
+
cursor: default;
|
|
38
|
+
-webkit-text-fill-color: currentcolor;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.astryx-time-input-control::-webkit-calendar-picker-indicator {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/* Unlayered: a page-level :focus-visible ring must not draw a second box
|
|
47
|
+
inside the field. The bordered control's focus-within border is the focus treatment. */
|
|
48
|
+
.astryx-time-input-control:focus,
|
|
49
|
+
.astryx-time-input-control:focus-visible {
|
|
50
|
+
outline: none;
|
|
51
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-timestamp {
|
|
5
|
+
display: inline;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Text's supporting type paints a secondary color, and that class is as
|
|
10
|
+
* specific as the color modifier. The color prop has to win, matching the
|
|
11
|
+
* original `.astryx-text[data-color]` override.
|
|
12
|
+
*/
|
|
13
|
+
.astryx-timestamp[data-color='primary'] {
|
|
14
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.astryx-timestamp[data-color='secondary'] {
|
|
18
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.astryx-timestamp[data-color='accent'] {
|
|
22
|
+
color: var(--astryx-color-text-accent, #0074e2);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.astryx-timestamp[data-color='disabled'] {
|
|
26
|
+
color: var(--astryx-color-text-disabled, light-dark(#a3a3a3, #525252));
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.astryx-timestamp__time {
|
|
30
|
+
display: inline;
|
|
31
|
+
font: inherit;
|
|
32
|
+
color: inherit;
|
|
33
|
+
font-size: inherit;
|
|
34
|
+
font-weight: inherit;
|
|
35
|
+
line-height: inherit;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.astryx-timestamp__card {
|
|
39
|
+
display: grid;
|
|
40
|
+
align-items: center;
|
|
41
|
+
margin: 0;
|
|
42
|
+
padding: 0;
|
|
43
|
+
column-gap: var(--astryx-spacing-4, 16px);
|
|
44
|
+
row-gap: var(--astryx-spacing-2, 8px);
|
|
45
|
+
max-width: 300px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.astryx-timestamp__card[data-columns='label-value-action'] {
|
|
49
|
+
grid-template-columns: auto 1fr auto;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.astryx-timestamp__card[data-columns='label-value'] {
|
|
53
|
+
grid-template-columns: auto 1fr;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.astryx-timestamp__card[data-columns='value-action'] {
|
|
57
|
+
grid-template-columns: 1fr auto;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.astryx-timestamp__card[data-columns='value'] {
|
|
61
|
+
grid-template-columns: 1fr;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.astryx-timestamp__row {
|
|
65
|
+
display: contents;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.astryx-timestamp__label,
|
|
69
|
+
.astryx-timestamp__value {
|
|
70
|
+
margin: 0;
|
|
71
|
+
padding: 0;
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.astryx-timestamp__label {
|
|
76
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
77
|
+
font-size: var(--astryx-text-supporting-size, 0.875rem);
|
|
78
|
+
font-weight: var(--astryx-font-weight-regular, 400);
|
|
79
|
+
line-height: var(--astryx-text-supporting-leading, 1.4286);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.astryx-timestamp__value {
|
|
83
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
84
|
+
font-size: var(--astryx-text-body-size, 1rem);
|
|
85
|
+
line-height: var(--astryx-text-body-leading, 1.5);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.astryx-timestamp__action {
|
|
89
|
+
display: flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
}
|
|
93
|
+
}
|