@astryx-vue/core 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/AvatarGroup/index.d.ts +1 -1
- package/dist/Banner/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-BEyrkUtr.js} +2 -1
- package/dist/Chat/index.js +1 -1
- package/dist/{Chat-Bfd-YPAK.js → Chat-CO3mCs9A.js} +2 -2
- package/dist/CheckboxInput/index.d.ts +1 -1
- package/dist/CheckboxList/index.d.ts +2 -0
- package/dist/CheckboxList/index.js +2 -0
- package/dist/CheckboxList-BL2sDOWK.js +174 -0
- package/dist/Citation/index.js +1 -1
- package/dist/{Citation-DaDd1teb.js → Citation-BqwJvw7o.js} +2 -2
- package/dist/Code/index.js +1 -1
- package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
- package/dist/Collapsible/index.js +1 -1
- package/dist/{Collapsible-ByXCGhT8.js → Collapsible-BYg9soTk.js} +1 -1
- 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-BOIb0zAp.js} +18 -10
- package/dist/DateRangeInput/index.d.ts +2 -0
- package/dist/DateRangeInput/index.js +2 -0
- package/dist/DateRangeInput-DLcbgUBi.js +385 -0
- package/dist/DateTimeInput/index.d.ts +2 -0
- package/dist/DateTimeInput/index.js +2 -0
- package/dist/DateTimeInput-RitYX_Yx.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 +1 -2
- 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-CYvEV503.js +238 -0
- package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
- 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-Dnlp8cVx.js} +2 -2
- package/dist/MetadataList/index.d.ts +2 -0
- package/dist/MetadataList/index.js +2 -0
- package/dist/MetadataList-DIsqS1Qb.js +124 -0
- package/dist/MobileNav/index.js +1 -1
- package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-aUZiDwHm.js} +1 -1
- 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-Bh8or2S6.js} +2 -2
- 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-C3S-4dIu.js} +1 -1
- package/dist/OverflowList/index.d.ts +1 -1
- package/dist/OverflowList/index.js +1 -1
- package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-Kr4iJrNV.js} +1 -1
- package/dist/Pagination/index.js +1 -1
- package/dist/{Pagination-qCgNwwhr.js → Pagination-BRStpeSB.js} +2 -2
- package/dist/Popover/index.d.ts +1 -1
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Radio/index.js +2 -2
- package/dist/{Radio-BioQfwHQ.js → RadioGroup-DS6oTV_j.js} +21 -88
- package/dist/RadioList/index.d.ts +2 -0
- package/dist/RadioList/index.js +2 -0
- package/dist/RadioList-pwr93I-z.js +122 -0
- package/dist/SegmentedControl/index.d.ts +1 -1
- package/dist/Selector/index.d.ts +1 -1
- package/dist/Selector/index.js +1 -1
- package/dist/{Selector-C6sPJMtH.js → Selector-DvEUIVEC.js} +1 -1
- package/dist/SideNav/index.d.ts +1 -1
- package/dist/SideNav/index.js +1 -1
- package/dist/{SideNav-D9lnn-sM.js → SideNav-B7LX4RcP.js} +2 -2
- package/dist/Stack/index.d.ts +1 -1
- package/dist/Switch/index.d.ts +1 -1
- package/dist/Table/index.d.ts +2 -0
- package/dist/Table/index.js +2 -0
- package/dist/Table-D5zWaITo.js +967 -0
- package/dist/Text/index.d.ts +1 -1
- package/dist/TextArea/index.d.ts +1 -1
- package/dist/TextInput/index.d.ts +1 -1
- package/dist/Thumbnail/index.d.ts +2 -0
- package/dist/Thumbnail/index.js +2 -0
- package/dist/Thumbnail-DMOgWncm.js +163 -0
- package/dist/TimeField-DeQ1ukHl.js +214 -0
- package/dist/TimeInput/index.d.ts +2 -0
- package/dist/TimeInput/index.js +2 -0
- package/dist/TimeInput-jb1nLqZk.js +121 -0
- package/dist/Timestamp/index.d.ts +2 -0
- package/dist/Timestamp/index.js +2 -0
- package/dist/Timestamp-DrWwVQBL.js +465 -0
- 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-Ctf9jekS.js → Token-CV2J94bn.js} +1 -1
- package/dist/Tokenizer/index.d.ts +1 -1
- package/dist/Tokenizer/index.js +1 -1
- package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-DF9r4hTW.js} +2 -2
- 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-CjbMCbkC.js → TopNav-BH_s3uap.js} +3 -3
- package/dist/TreeList/index.d.ts +2 -0
- package/dist/TreeList/index.js +2 -0
- package/dist/TreeList-D9cR-w7r.js +506 -0
- package/dist/Typeahead/index.d.ts +1 -1
- package/dist/Typeahead/index.js +1 -1
- package/dist/{Typeahead-BMoU3hfx.js → Typeahead-s4DC1Qem.js} +2 -2
- package/dist/composables/index.d.ts +2 -2
- package/dist/composables/index.js +4 -1
- package/dist/{locale-56lkR7OK.js → context-BshXcNYX.js} +183 -18
- package/dist/{index-DjOdQv5B.d.ts → index--dh0s8Li.d.ts} +1 -1
- package/dist/{index-Cdi82rTW.d.ts → index-12ObcW99.d.ts} +6 -2
- package/dist/{index-JeZ0YTyd.d.ts → index-5R_pi3eT.d.ts} +2 -2
- package/dist/{index-Cc2HGODZ.d.ts → index-AkMWQ97a.d.ts} +3 -3
- 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-CxspvLBl.d.ts → index-Bc0dgVM5.d.ts} +5 -5
- package/dist/{index-4FM5lQdV.d.ts → index-BlWLperN.d.ts} +1 -1
- package/dist/{index-DBcbfStA.d.ts → index-BnNh5Iml.d.ts} +84 -1
- package/dist/{index-Cp0NlzQv.d.ts → index-Bovw9_8d.d.ts} +1 -1
- package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
- 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-C0S2Xzoi.d.ts → index-CNcQmDrK.d.ts} +93 -0
- package/dist/{index-CaHXYQ_E.d.ts → index-CQ9F1f_F.d.ts} +535 -137
- package/dist/index-CR6sUmRT.d.ts +356 -0
- package/dist/index-C_2Z65Rp.d.ts +67 -0
- package/dist/{index-Dw21t7Uf.d.ts → index-CsJpQElv.d.ts} +1 -1
- package/dist/index-CtlkhQ55.d.ts +36 -0
- package/dist/{index-C8NW9xre.d.ts → index-D3V7yRUP.d.ts} +7 -7
- package/dist/index-Da7Jm8Ht.d.ts +10 -0
- package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
- package/dist/{index-BeJqhW4l.d.ts → index-Q4gqBSIZ.d.ts} +2 -2
- package/dist/{index-Cz9ZHVf6.d.ts → index-g03bmR4K.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-utZGF4GR.d.ts +79 -0
- package/dist/index.d.ts +54 -49
- package/dist/index.js +86 -64
- 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/useFileSelection-BPtaegqK.js +58 -0
- package/dist/useMonthGrid-CmJsZTcB.js +139 -0
- package/dist/useTimeValue-DWk6oTAZ.js +113 -0
- package/package.json +49 -1
- package/styles/bordered-control.css +87 -0
- package/styles/calendar.css +8 -2
- package/styles/checkbox-list.css +15 -0
- package/styles/date-range-input.css +163 -0
- package/styles/date-time-input.css +40 -0
- package/styles/field.css +2 -3
- package/styles/file-input.css +87 -0
- package/styles/icon.css +32 -0
- package/styles/metadata-list.css +107 -0
- package/styles/number-input.css +6 -0
- package/styles/radio.css +32 -0
- package/styles/selector.css +10 -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 +11 -0
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
|
+
}
|