@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.
Files changed (177) hide show
  1. package/README.md +1 -1
  2. package/dist/AvatarGroup/index.d.ts +1 -1
  3. package/dist/Banner/index.d.ts +1 -1
  4. package/dist/Button/index.d.ts +1 -1
  5. package/dist/ButtonGroup/index.d.ts +1 -1
  6. package/dist/Calendar/index.js +1 -1
  7. package/dist/{Calendar-DpYFXwgb.js → Calendar-BEyrkUtr.js} +2 -1
  8. package/dist/Chat/index.js +1 -1
  9. package/dist/{Chat-Bfd-YPAK.js → Chat-CO3mCs9A.js} +2 -2
  10. package/dist/CheckboxInput/index.d.ts +1 -1
  11. package/dist/CheckboxList/index.d.ts +2 -0
  12. package/dist/CheckboxList/index.js +2 -0
  13. package/dist/CheckboxList-BL2sDOWK.js +174 -0
  14. package/dist/Citation/index.js +1 -1
  15. package/dist/{Citation-DaDd1teb.js → Citation-BqwJvw7o.js} +2 -2
  16. package/dist/Code/index.js +1 -1
  17. package/dist/{CodeBlock-CK-NWM_1.js → CodeBlock-BQdooQy2.js} +1 -1
  18. package/dist/Collapsible/index.js +1 -1
  19. package/dist/{Collapsible-ByXCGhT8.js → Collapsible-BYg9soTk.js} +1 -1
  20. package/dist/ContextMenu/index.d.ts +1 -1
  21. package/dist/ContextMenu/index.js +1 -1
  22. package/dist/{ContextMenu-BJh99Exj.js → ContextMenu-dA-ppaRQ.js} +284 -12
  23. package/dist/DateInput/index.d.ts +1 -1
  24. package/dist/DateInput/index.js +1 -1
  25. package/dist/{DateInput-zJAdXByM.js → DateInput-BOIb0zAp.js} +18 -10
  26. package/dist/DateRangeInput/index.d.ts +2 -0
  27. package/dist/DateRangeInput/index.js +2 -0
  28. package/dist/DateRangeInput-DLcbgUBi.js +385 -0
  29. package/dist/DateTimeInput/index.d.ts +2 -0
  30. package/dist/DateTimeInput/index.js +2 -0
  31. package/dist/DateTimeInput-RitYX_Yx.js +196 -0
  32. package/dist/Divider/index.d.ts +1 -1
  33. package/dist/DropdownMenu/index.d.ts +1 -1
  34. package/dist/DropdownMenu/index.js +1 -1
  35. package/dist/{DropdownMenu-C3j2zaEn.js → DropdownMenu-B0gogrvG.js} +2 -2
  36. package/dist/Field/index.d.ts +2 -2
  37. package/dist/Field/index.js +1 -2
  38. package/dist/FieldStatus/index.d.ts +2 -0
  39. package/dist/FieldStatus/index.js +2 -0
  40. package/dist/FileInput/index.d.ts +2 -0
  41. package/dist/FileInput/index.js +2 -0
  42. package/dist/FileInput-CYvEV503.js +238 -0
  43. package/dist/{Icon-B6qNgBP9.js → Icon-5MdZQ18k.js} +10 -2
  44. package/dist/List/index.d.ts +1 -1
  45. package/dist/Markdown/index.d.ts +1 -1
  46. package/dist/Markdown/index.js +1 -1
  47. package/dist/{Markdown-DyKIwAL_.js → Markdown-Dnlp8cVx.js} +2 -2
  48. package/dist/MetadataList/index.d.ts +2 -0
  49. package/dist/MetadataList/index.js +2 -0
  50. package/dist/MetadataList-DIsqS1Qb.js +124 -0
  51. package/dist/MobileNav/index.js +1 -1
  52. package/dist/{MobileNavToggle-BK2iRJF-.js → MobileNavToggle-aUZiDwHm.js} +1 -1
  53. package/dist/MoreMenu/index.d.ts +1 -1
  54. package/dist/MoreMenu/index.js +1 -1
  55. package/dist/{MoreMenu-BjUsVWWk.js → MoreMenu-BXL6Dqsu.js} +2 -2
  56. package/dist/MultiSelector/index.d.ts +1 -1
  57. package/dist/MultiSelector/index.js +1 -1
  58. package/dist/{MultiSelector-CKTbTj1A.js → MultiSelector-Bh8or2S6.js} +2 -2
  59. package/dist/NavItem/index.d.ts +1 -1
  60. package/dist/NavMenu/index.d.ts +1 -1
  61. package/dist/NumberInput/index.d.ts +1 -1
  62. package/dist/NumberInput/index.js +1 -1
  63. package/dist/{NumberInput-DU3_rw7z.js → NumberInput-C3S-4dIu.js} +1 -1
  64. package/dist/OverflowList/index.d.ts +1 -1
  65. package/dist/OverflowList/index.js +1 -1
  66. package/dist/{OverflowList-B2T5UtiQ.js → OverflowList-Kr4iJrNV.js} +1 -1
  67. package/dist/Pagination/index.js +1 -1
  68. package/dist/{Pagination-qCgNwwhr.js → Pagination-BRStpeSB.js} +2 -2
  69. package/dist/Popover/index.d.ts +1 -1
  70. package/dist/Radio/index.d.ts +2 -2
  71. package/dist/Radio/index.js +2 -2
  72. package/dist/{Radio-BioQfwHQ.js → RadioGroup-DS6oTV_j.js} +21 -88
  73. package/dist/RadioList/index.d.ts +2 -0
  74. package/dist/RadioList/index.js +2 -0
  75. package/dist/RadioList-pwr93I-z.js +122 -0
  76. package/dist/SegmentedControl/index.d.ts +1 -1
  77. package/dist/Selector/index.d.ts +1 -1
  78. package/dist/Selector/index.js +1 -1
  79. package/dist/{Selector-C6sPJMtH.js → Selector-DvEUIVEC.js} +1 -1
  80. package/dist/SideNav/index.d.ts +1 -1
  81. package/dist/SideNav/index.js +1 -1
  82. package/dist/{SideNav-D9lnn-sM.js → SideNav-B7LX4RcP.js} +2 -2
  83. package/dist/Stack/index.d.ts +1 -1
  84. package/dist/Switch/index.d.ts +1 -1
  85. package/dist/Table/index.d.ts +2 -0
  86. package/dist/Table/index.js +2 -0
  87. package/dist/Table-D5zWaITo.js +967 -0
  88. package/dist/Text/index.d.ts +1 -1
  89. package/dist/TextArea/index.d.ts +1 -1
  90. package/dist/TextInput/index.d.ts +1 -1
  91. package/dist/Thumbnail/index.d.ts +2 -0
  92. package/dist/Thumbnail/index.js +2 -0
  93. package/dist/Thumbnail-DMOgWncm.js +163 -0
  94. package/dist/TimeField-DeQ1ukHl.js +214 -0
  95. package/dist/TimeInput/index.d.ts +2 -0
  96. package/dist/TimeInput/index.js +2 -0
  97. package/dist/TimeInput-jb1nLqZk.js +121 -0
  98. package/dist/Timestamp/index.d.ts +2 -0
  99. package/dist/Timestamp/index.js +2 -0
  100. package/dist/Timestamp-DrWwVQBL.js +465 -0
  101. package/dist/ToggleButton/index.d.ts +1 -1
  102. package/dist/Token/index.d.ts +1 -1
  103. package/dist/Token/index.js +1 -1
  104. package/dist/{Token-Ctf9jekS.js → Token-CV2J94bn.js} +1 -1
  105. package/dist/Tokenizer/index.d.ts +1 -1
  106. package/dist/Tokenizer/index.js +1 -1
  107. package/dist/{Tokenizer-D5MPgau0.js → Tokenizer-DF9r4hTW.js} +2 -2
  108. package/dist/Toolbar/index.d.ts +1 -1
  109. package/dist/TopNav/index.d.ts +1 -1
  110. package/dist/TopNav/index.js +1 -1
  111. package/dist/{TopNav-CjbMCbkC.js → TopNav-BH_s3uap.js} +3 -3
  112. package/dist/TreeList/index.d.ts +2 -0
  113. package/dist/TreeList/index.js +2 -0
  114. package/dist/TreeList-D9cR-w7r.js +506 -0
  115. package/dist/Typeahead/index.d.ts +1 -1
  116. package/dist/Typeahead/index.js +1 -1
  117. package/dist/{Typeahead-BMoU3hfx.js → Typeahead-s4DC1Qem.js} +2 -2
  118. package/dist/composables/index.d.ts +2 -2
  119. package/dist/composables/index.js +4 -1
  120. package/dist/{locale-56lkR7OK.js → context-BshXcNYX.js} +183 -18
  121. package/dist/{index-DjOdQv5B.d.ts → index--dh0s8Li.d.ts} +1 -1
  122. package/dist/{index-Cdi82rTW.d.ts → index-12ObcW99.d.ts} +6 -2
  123. package/dist/{index-JeZ0YTyd.d.ts → index-5R_pi3eT.d.ts} +2 -2
  124. package/dist/{index-Cc2HGODZ.d.ts → index-AkMWQ97a.d.ts} +3 -3
  125. package/dist/{index-CvLlWLIZ.d.ts → index-B4OOtNP8.d.ts} +4 -4
  126. package/dist/{index-_1-uvr27.d.ts → index-B8MbfMwV.d.ts} +1 -1
  127. package/dist/{index-MPcg1Pm4.d.ts → index-BKr7yvVv.d.ts} +1 -1
  128. package/dist/{index-CxspvLBl.d.ts → index-Bc0dgVM5.d.ts} +5 -5
  129. package/dist/{index-4FM5lQdV.d.ts → index-BlWLperN.d.ts} +1 -1
  130. package/dist/{index-DBcbfStA.d.ts → index-BnNh5Iml.d.ts} +84 -1
  131. package/dist/{index-Cp0NlzQv.d.ts → index-Bovw9_8d.d.ts} +1 -1
  132. package/dist/{index-CnVbMebA.d.ts → index-Bqb_Fyju.d.ts} +3 -3
  133. package/dist/{index-HV6W3xCx.d.ts → index-Byar3h1e.d.ts} +1 -1
  134. package/dist/{index-BQuN_dWR.d.ts → index-BzqRns96.d.ts} +1 -1
  135. package/dist/{index-C0S2Xzoi.d.ts → index-CNcQmDrK.d.ts} +93 -0
  136. package/dist/{index-CaHXYQ_E.d.ts → index-CQ9F1f_F.d.ts} +535 -137
  137. package/dist/index-CR6sUmRT.d.ts +356 -0
  138. package/dist/index-C_2Z65Rp.d.ts +67 -0
  139. package/dist/{index-Dw21t7Uf.d.ts → index-CsJpQElv.d.ts} +1 -1
  140. package/dist/index-CtlkhQ55.d.ts +36 -0
  141. package/dist/{index-C8NW9xre.d.ts → index-D3V7yRUP.d.ts} +7 -7
  142. package/dist/index-Da7Jm8Ht.d.ts +10 -0
  143. package/dist/{index-CPhDtlv-.d.ts → index-FEy8qFSD.d.ts} +3 -3
  144. package/dist/{index-BeJqhW4l.d.ts → index-Q4gqBSIZ.d.ts} +2 -2
  145. package/dist/{index-Cz9ZHVf6.d.ts → index-g03bmR4K.d.ts} +3 -3
  146. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  147. package/dist/{index-BQa836Vz.d.ts → index-iBLzInje.d.ts} +6 -14
  148. package/dist/index-utZGF4GR.d.ts +79 -0
  149. package/dist/index.d.ts +54 -49
  150. package/dist/index.js +86 -64
  151. package/dist/locale/index.d.ts +1 -1
  152. package/dist/locale/index.js +2 -1
  153. package/dist/locale-Cpk_nrLA.js +18 -0
  154. package/dist/useFileSelection-BPtaegqK.js +58 -0
  155. package/dist/useMonthGrid-CmJsZTcB.js +139 -0
  156. package/dist/useTimeValue-DWk6oTAZ.js +113 -0
  157. package/package.json +49 -1
  158. package/styles/bordered-control.css +87 -0
  159. package/styles/calendar.css +8 -2
  160. package/styles/checkbox-list.css +15 -0
  161. package/styles/date-range-input.css +163 -0
  162. package/styles/date-time-input.css +40 -0
  163. package/styles/field.css +2 -3
  164. package/styles/file-input.css +87 -0
  165. package/styles/icon.css +32 -0
  166. package/styles/metadata-list.css +107 -0
  167. package/styles/number-input.css +6 -0
  168. package/styles/radio.css +32 -0
  169. package/styles/selector.css +10 -0
  170. package/styles/table.css +256 -0
  171. package/styles/text-area.css +6 -1
  172. package/styles/text-input.css +6 -0
  173. package/styles/thumbnail.css +151 -0
  174. package/styles/time-input.css +51 -0
  175. package/styles/timestamp.css +93 -0
  176. package/styles/tree-list.css +229 -0
  177. 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
- /* A group label (a radiogroup, a checkbox group) heads the controls under it,
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-2, 8px);
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
+ }
@@ -109,3 +109,9 @@
109
109
  }
110
110
  }
111
111
  }
112
+
113
+ /* Unlayered: the field chrome owns focus. A page ring on the inner input stacks a second outline. */
114
+ .astryx-number-input-field:focus,
115
+ .astryx-number-input-field:focus-visible {
116
+ outline: none;
117
+ }
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;
@@ -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
+ }