@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
|
@@ -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 {
|
|
@@ -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
|
+
}
|
package/styles/icon.css
CHANGED
|
@@ -159,5 +159,37 @@
|
|
|
159
159
|
.astryx-icon--copy {
|
|
160
160
|
--astryx-icon-artwork: var(--astryx-icon-copy, 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%3Cpath d='M8 4v12a2 2 0 002 2h8a2 2 0 002-2V7.242a2 2 0 00-.602-1.43L16.083 2.57A2 2 0 0014.685 2H10a2 2 0 00-2 2z' /%3E%3Cpath d='M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2' /%3E%3C/svg%3E"));
|
|
161
161
|
}
|
|
162
|
+
/* calendar */
|
|
163
|
+
.astryx-icon--calendar {
|
|
164
|
+
--astryx-icon-artwork: var(--astryx-icon-calendar, 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%3Crect x='4' y='5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M8 3v4M16 3v4'/%3E%3C/svg%3E"));
|
|
165
|
+
}
|
|
166
|
+
/* clock */
|
|
167
|
+
.astryx-icon--clock {
|
|
168
|
+
--astryx-icon-artwork: var(--astryx-icon-clock, 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='12' cy='12' r='8'/%3E%3Cpath d='M12 8v5l3 2'/%3E%3C/svg%3E"));
|
|
169
|
+
}
|
|
170
|
+
/* upload */
|
|
171
|
+
.astryx-icon--upload {
|
|
172
|
+
--astryx-icon-artwork: var(--astryx-icon-upload, 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%3Cpath d='M12 15V5'/%3E%3Cpath d='M8 8.5 12 4.5 16 8.5'/%3E%3Cpath d='M5 15.5V18a1.5 1.5 0 0 0 1.5 1.5h11A1.5 1.5 0 0 0 19 18v-2.5'/%3E%3C/svg%3E"));
|
|
173
|
+
}
|
|
174
|
+
/* arrowUp */
|
|
175
|
+
.astryx-icon--arrow-up {
|
|
176
|
+
--astryx-icon-artwork: var(--astryx-icon-arrow-up, 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%3Cpath d='M12 19V5M6 11l6-6 6 6' /%3E%3C/svg%3E"));
|
|
177
|
+
}
|
|
178
|
+
/* arrowDown */
|
|
179
|
+
.astryx-icon--arrow-down {
|
|
180
|
+
--astryx-icon-artwork: var(--astryx-icon-arrow-down, 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%3Cpath d='M12 5v14M6 13l6 6 6-6' /%3E%3C/svg%3E"));
|
|
181
|
+
}
|
|
182
|
+
/* close */
|
|
183
|
+
.astryx-icon--close {
|
|
184
|
+
--astryx-icon-artwork: var(--astryx-icon-close, 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%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E"));
|
|
185
|
+
}
|
|
186
|
+
/* funnel */
|
|
187
|
+
.astryx-icon--funnel {
|
|
188
|
+
--astryx-icon-artwork: var(--astryx-icon-funnel, 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-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 5h16l-6 7v6l-4 2v-8z' /%3E%3C/svg%3E"));
|
|
189
|
+
}
|
|
190
|
+
/* image */
|
|
191
|
+
.astryx-icon--image {
|
|
192
|
+
--astryx-icon-artwork: var(--astryx-icon-image, url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M21 19V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2M8.5 13.5l2.5 3 3.5-4.5 4.5 6H5l3.5-5.5z' /%3E%3C/svg%3E"));
|
|
193
|
+
}
|
|
162
194
|
/* ARTWORK: generated end */
|
|
163
195
|
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
@layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
|
|
2
|
+
|
|
3
|
+
@layer astryx.components {
|
|
4
|
+
.astryx-metadata-list {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.astryx-metadata-list__title {
|
|
10
|
+
margin-bottom: var(--astryx-spacing-3, 12px);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.astryx-metadata-list__dl {
|
|
14
|
+
margin: 0;
|
|
15
|
+
padding: 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.astryx-metadata-list__dl[data-layout='single'] {
|
|
19
|
+
display: grid;
|
|
20
|
+
grid-template-columns: auto minmax(0, 1fr);
|
|
21
|
+
gap: var(--astryx-spacing-2, 8px) var(--astryx-spacing-4, 16px);
|
|
22
|
+
align-items: baseline;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.astryx-metadata-list__dl[data-layout='stacked-single'] {
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: 1fr;
|
|
28
|
+
gap: var(--astryx-spacing-3, 12px);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.astryx-metadata-list__dl[data-layout='multi'],
|
|
32
|
+
.astryx-metadata-list__dl[data-layout='stacked-multi'] {
|
|
33
|
+
display: grid;
|
|
34
|
+
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
35
|
+
gap: var(--astryx-spacing-4, 16px);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.astryx-metadata-list__dl[data-layout='horizontal'] {
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-flow: row wrap;
|
|
41
|
+
gap: var(--astryx-spacing-4, 16px);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.astryx-metadata-list__toggle {
|
|
45
|
+
appearance: none;
|
|
46
|
+
align-self: flex-start;
|
|
47
|
+
margin: 0;
|
|
48
|
+
padding: var(--astryx-spacing-2, 8px) 0;
|
|
49
|
+
border: 0;
|
|
50
|
+
background: transparent;
|
|
51
|
+
color: var(--astryx-color-accent, light-dark(#262626, #ebebeb));
|
|
52
|
+
font-family: inherit;
|
|
53
|
+
font-size: var(--astryx-text-body-size, 1rem);
|
|
54
|
+
font-weight: var(--astryx-font-weight-medium, 500);
|
|
55
|
+
line-height: var(--astryx-text-body-leading, 1.5);
|
|
56
|
+
text-align: start;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.astryx-metadata-list__toggle:disabled {
|
|
61
|
+
cursor: default;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.astryx-metadata-list__item {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
gap: var(--astryx-spacing-0-5, 2px);
|
|
68
|
+
min-width: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.astryx-metadata-list__label,
|
|
72
|
+
.astryx-metadata-list__value,
|
|
73
|
+
.astryx-metadata-list__item-label,
|
|
74
|
+
.astryx-metadata-list__item-value {
|
|
75
|
+
margin: 0;
|
|
76
|
+
padding: 0;
|
|
77
|
+
font-size: var(--astryx-text-body-size, 1rem);
|
|
78
|
+
line-height: var(--astryx-text-body-leading, 1.5);
|
|
79
|
+
overflow-wrap: break-word;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.astryx-metadata-list__label,
|
|
83
|
+
.astryx-metadata-list__item-label {
|
|
84
|
+
display: flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
gap: var(--astryx-spacing-2, 8px);
|
|
87
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
88
|
+
font-weight: var(--astryx-font-weight-medium, 500);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.astryx-metadata-list__label,
|
|
92
|
+
.astryx-metadata-list__value {
|
|
93
|
+
min-height: 24px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.astryx-metadata-list__value,
|
|
97
|
+
.astryx-metadata-list__item-value {
|
|
98
|
+
color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.astryx-metadata-list__icon {
|
|
102
|
+
display: inline-flex;
|
|
103
|
+
flex-shrink: 0;
|
|
104
|
+
align-items: center;
|
|
105
|
+
color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
|
|
106
|
+
}
|
|
107
|
+
}
|
package/styles/number-input.css
CHANGED
package/styles/radio.css
CHANGED
|
@@ -87,6 +87,38 @@
|
|
|
87
87
|
line-height: var(--astryx-text-supporting-leading, 1.6667);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
.astryx-radio[data-size='sm'] {
|
|
91
|
+
--astryx-radio-size: 20px;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.astryx-radio[data-size='md'] {
|
|
95
|
+
--astryx-radio-size: 24px;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.astryx-radio[data-size='md'] .astryx-radio-native:checked + .astryx-radio-indicator::after {
|
|
99
|
+
width: 10px;
|
|
100
|
+
height: 10px;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.astryx-radio-group[data-orientation='horizontal'] .astryx-radio-group-list {
|
|
104
|
+
flex-direction: row;
|
|
105
|
+
flex-wrap: wrap;
|
|
106
|
+
align-items: center;
|
|
107
|
+
gap: var(--astryx-spacing-5, 20px);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.astryx-radio-group[data-orientation='vertical'] .astryx-radio {
|
|
111
|
+
display: flex;
|
|
112
|
+
width: 100%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.astryx-radio-end {
|
|
116
|
+
margin-inline-start: auto;
|
|
117
|
+
color: var(--astryx-color-text-secondary, #525252);
|
|
118
|
+
font-size: var(--astryx-text-body-size, 14px);
|
|
119
|
+
line-height: 1.4286;
|
|
120
|
+
}
|
|
121
|
+
|
|
90
122
|
@media (forced-colors: active) {
|
|
91
123
|
.astryx-radio-indicator {
|
|
92
124
|
border-color: ButtonText;
|
package/styles/selector.css
CHANGED
|
@@ -285,3 +285,13 @@
|
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
}
|
|
288
|
+
|
|
289
|
+
/* Unlayered: the field chrome owns focus. A page ring on the trigger or search input stacks a second outline. */
|
|
290
|
+
.astryx-selector-trigger:focus,
|
|
291
|
+
.astryx-selector-trigger:focus-visible,
|
|
292
|
+
.astryx-selector-search-input:focus,
|
|
293
|
+
.astryx-selector-search-input:focus-visible,
|
|
294
|
+
.astryx-selector-clear:focus,
|
|
295
|
+
.astryx-selector-clear:focus-visible {
|
|
296
|
+
outline: none;
|
|
297
|
+
}
|