@stacksjs/components 0.2.961 → 0.2.963

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 (62) hide show
  1. package/README.md +4 -0
  2. package/dist/{AppearancePicker-30fetv0a.stx → AppearancePicker-34758z53.stx} +2 -70
  3. package/dist/{Button-ghdfqwg0.stx → Button-rns3jhjh.stx} +33 -70
  4. package/dist/{Checkbox-355qsbwd.stx → Checkbox-4g3hemtw.stx} +1 -69
  5. package/dist/{ColorSwatches-ecfxphjy.stx → ColorSwatches-mz9kt78g.stx} +1 -69
  6. package/dist/{DateTimePicker-pz9p8jw4.stx → DateTimePicker-d5984mm1.stx} +5 -3
  7. package/dist/{NumberInput-e2afxyh3.stx → NumberInput-nqqen5a6.stx} +2 -70
  8. package/dist/{PasswordInput-d78bk8r0.stx → PasswordInput-j38f2n01.stx} +2 -70
  9. package/dist/{RadioGroup-ps9kn22f.stx → RadioGroup-mz3pv7he.stx} +1 -69
  10. package/dist/{RadioGroupOption-6hyy1bvb.stx → RadioGroupOption-mk98taz5.stx} +1 -69
  11. package/dist/{SegmentedControl-b93n9n2v.stx → SegmentedControl-jm6tb9f8.stx} +1 -69
  12. package/dist/{Select-p8mgxthn.stx → Select-36s22z6d.stx} +2 -70
  13. package/dist/{SettingsGroup-g1hnxp1p.stx → SettingsGroup-t3emsgk2.stx} +2 -70
  14. package/dist/{SettingsPane-9svk1w3e.stx → SettingsPane-tqe8q5cw.stx} +11 -3
  15. package/dist/{SettingsPaneHeader-am42srhp.stx → SettingsPaneHeader-wznh6dss.stx} +2 -70
  16. package/dist/{SettingsRow-kgda3nv1.stx → SettingsRow-5jgay5ae.stx} +2 -70
  17. package/dist/SettingsSidebarGroup-p5h359bn.stx +57 -0
  18. package/dist/{SettingsSidebarItem-ga2jxq53.stx → SettingsSidebarItem-69zs4b55.stx} +2 -70
  19. package/dist/{SettingsUpdateRow-ajpnqx8a.stx → SettingsUpdateRow-92mmxvpd.stx} +1 -69
  20. package/dist/{SettingsWindow-v7jepxem.stx → SettingsWindow-q0x86xqb.stx} +8 -70
  21. package/dist/{SidebarSpace-aac0byam.stx → SidebarSpace-3w1cfnzj.stx} +3 -1
  22. package/dist/{Slider-j59dgw1c.stx → Slider-cebse060.stx} +1 -69
  23. package/dist/{Switch-vd8k23sr.stx → Switch-7s3bhjg4.stx} +2 -70
  24. package/dist/{TextInput-fge1b7tk.stx → TextInput-4v09vw1r.stx} +2 -70
  25. package/dist/index.js +17 -17
  26. package/dist/settings/settings.js +80 -19
  27. package/dist/ui/button/Button.d.ts +4 -1
  28. package/dist/ui/button/index.d.ts +4 -0
  29. package/dist/ui/date-time-picker/DateTimePicker.d.ts +2 -0
  30. package/dist/ui/settings/SettingsPane.d.ts +6 -3
  31. package/dist/ui/settings/SettingsWindow.d.ts +4 -1
  32. package/dist/ui/settings/index.d.ts +4 -0
  33. package/dist/ui/settings/view.d.ts +3 -0
  34. package/package.json +3 -3
  35. package/{dist/SettingsSidebarGroup-4ag5qjpw.stx → src/theme/macos.css} +0 -57
  36. package/src/ui/appearance-picker/AppearancePicker.stx +2 -70
  37. package/src/ui/button/Button.stx +33 -70
  38. package/src/ui/button/index.ts +9 -0
  39. package/src/ui/checkbox/Checkbox.stx +1 -69
  40. package/src/ui/color-swatches/ColorSwatches.stx +1 -69
  41. package/src/ui/date-time-picker/DateTimePicker.stx +5 -3
  42. package/src/ui/input/NumberInput.stx +2 -70
  43. package/src/ui/input/PasswordInput.stx +2 -70
  44. package/src/ui/input/TextInput.stx +2 -70
  45. package/src/ui/radio-group/RadioGroup.stx +1 -69
  46. package/src/ui/radio-group/RadioGroupOption.stx +1 -69
  47. package/src/ui/segmented-control/SegmentedControl.stx +1 -69
  48. package/src/ui/select/Select.stx +2 -70
  49. package/src/ui/settings/README.md +21 -0
  50. package/src/ui/settings/SettingsGroup.stx +2 -70
  51. package/src/ui/settings/SettingsPane.stx +11 -3
  52. package/src/ui/settings/SettingsPaneHeader.stx +2 -70
  53. package/src/ui/settings/SettingsRow.stx +2 -70
  54. package/src/ui/settings/SettingsSidebarGroup.stx +2 -70
  55. package/src/ui/settings/SettingsSidebarItem.stx +2 -70
  56. package/src/ui/settings/SettingsUpdateRow.stx +1 -69
  57. package/src/ui/settings/SettingsWindow.stx +8 -70
  58. package/src/ui/settings/index.ts +6 -0
  59. package/src/ui/settings/view.ts +93 -21
  60. package/src/ui/sidebar/SidebarSpace.stx +3 -1
  61. package/src/ui/slider/Slider.stx +1 -69
  62. package/src/ui/switch/Switch.stx +2 -70
@@ -64,76 +64,8 @@ defineExpose({ view })
64
64
  <Button :if="view().action === 'relaunch'" appearance="mac" variant="primary" :label="view().actionLabel" @click="act('relaunch')" />
65
65
  </SettingsRow>
66
66
 
67
+ <style data-native-exclude data-stx-public-style src="../../theme/macos.css"></style>
67
68
  <style data-native-exclude>
68
- :where(:root) {
69
- --stx-mac-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
70
- --stx-mac-font-size: 13px;
71
- --stx-mac-font-size-small: 11px;
72
- --stx-mac-hairline: 0.5px;
73
- --stx-mac-focus-ring: 0 0 0 3px color-mix(in srgb, var(--stx-mac-accent) 35%, transparent);
74
- --stx-mac-card-radius: 12px;
75
- --stx-mac-control-radius: 6px;
76
- --stx-mac-row-height: 38px;
77
- --stx-mac-row-inset: 10px;
78
- --stx-mac-sidebar-width: 226px;
79
- --stx-mac-accent: var(--stx-accent, rgb(0, 122, 255));
80
- --stx-mac-accent-ink: #ffffff;
81
- --stx-mac-ink: rgba(0, 0, 0, 0.85);
82
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.5);
83
- --stx-mac-ink-tertiary: rgba(0, 0, 0, 0.26);
84
- --stx-mac-window: #ffffff;
85
- --stx-mac-sidebar: #f2f1f0;
86
- --stx-mac-card: rgba(0, 0, 0, 0.04);
87
- --stx-mac-separator: rgba(0, 0, 0, 0.1);
88
- --stx-mac-hover: rgba(0, 0, 0, 0.05);
89
- --stx-mac-selection-inactive: rgba(0, 0, 0, 0.08);
90
- --stx-mac-well: rgba(0, 0, 0, 0.07);
91
- --stx-mac-control: #ffffff;
92
- --stx-mac-control-line: rgba(0, 0, 0, 0.12);
93
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
94
- --stx-mac-switch-on: #34c759;
95
- --stx-mac-knob: #ffffff;
96
- --stx-mac-danger: #ff3b30;
97
- }
98
- :where(.dark) {
99
- --stx-mac-accent: var(--stx-accent, #0a84ff);
100
- --stx-mac-accent-ink: #ffffff;
101
- --stx-mac-ink: rgba(255, 255, 255, 0.85);
102
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.55);
103
- --stx-mac-ink-tertiary: rgba(255, 255, 255, 0.25);
104
- --stx-mac-window: #1e1e1e;
105
- --stx-mac-sidebar: #2a2a2a;
106
- --stx-mac-card: rgba(255, 255, 255, 0.05);
107
- --stx-mac-separator: rgba(255, 255, 255, 0.1);
108
- --stx-mac-hover: rgba(255, 255, 255, 0.06);
109
- --stx-mac-selection-inactive: rgba(255, 255, 255, 0.1);
110
- --stx-mac-well: rgba(255, 255, 255, 0.1);
111
- --stx-mac-control: rgba(255, 255, 255, 0.14);
112
- --stx-mac-control-line: rgba(255, 255, 255, 0.06);
113
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
114
- --stx-mac-switch-on: #30d158;
115
- --stx-mac-knob: #ffffff;
116
- --stx-mac-danger: #ff453a;
117
- }
118
- @media (max-resolution: 1.5dppx) {
119
- :where(:root) {
120
- --stx-mac-hairline: 1px;
121
- }
122
- }
123
- @media (prefers-contrast: more) {
124
- :where(:root) {
125
- --stx-mac-separator: rgba(0, 0, 0, 0.4);
126
- --stx-mac-control-line: rgba(0, 0, 0, 0.5);
127
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.75);
128
- --stx-mac-hairline: 1px;
129
- }
130
- :where(.dark) {
131
- --stx-mac-separator: rgba(255, 255, 255, 0.45);
132
- --stx-mac-control-line: rgba(255, 255, 255, 0.5);
133
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.8);
134
- }
135
- }
136
-
137
69
  .stx-settings-update-progress {
138
70
  color: var(--stx-mac-ink-secondary);
139
71
  font-size: var(--stx-mac-font-size-small);
@@ -6,6 +6,9 @@ export const pane = $props.pane || ''
6
6
  export const searchable = $bool($props.searchable, true)
7
7
  export const searchPlaceholder = $props.searchPlaceholder || 'Search'
8
8
  export const storageKey = $props.storageKey || ''
9
+ export const loadingPane = $props.loadingPane || 'Loading settings…'
10
+ export const failedPane = $props.failedPane || 'Could not load this pane.'
11
+ export const retryPane = $props.retryPane || 'Try again'
9
12
  /*
10
13
  * `window` is a window that is all Settings: it fills the viewport and leaves
11
14
  * room for the traffic lights. `sheet` is the same two columns inside a page.
@@ -169,6 +172,9 @@ onMount(() => {
169
172
  storageKey,
170
173
  storage: paneStorage,
171
174
  globalKeys: {{ globalKeys }},
175
+ loadingPane: {{ loadingPane }},
176
+ failedPane: {{ failedPane }},
177
+ retryPane: {{ retryPane }},
172
178
  }, callbacks)
173
179
  }
174
180
 
@@ -328,76 +334,8 @@ defineExpose(api)
328
334
  </div>
329
335
  @endif
330
336
 
331
- <style data-native-exclude>
332
- :where(:root) {
333
- --stx-mac-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
334
- --stx-mac-font-size: 13px;
335
- --stx-mac-font-size-small: 11px;
336
- --stx-mac-hairline: 0.5px;
337
- --stx-mac-focus-ring: 0 0 0 3px color-mix(in srgb, var(--stx-mac-accent) 35%, transparent);
338
- --stx-mac-card-radius: 12px;
339
- --stx-mac-control-radius: 6px;
340
- --stx-mac-row-height: 38px;
341
- --stx-mac-row-inset: 10px;
342
- --stx-mac-sidebar-width: 226px;
343
- --stx-mac-accent: var(--stx-accent, rgb(0, 122, 255));
344
- --stx-mac-accent-ink: #ffffff;
345
- --stx-mac-ink: rgba(0, 0, 0, 0.85);
346
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.5);
347
- --stx-mac-ink-tertiary: rgba(0, 0, 0, 0.26);
348
- --stx-mac-window: #ffffff;
349
- --stx-mac-sidebar: #f2f1f0;
350
- --stx-mac-card: rgba(0, 0, 0, 0.04);
351
- --stx-mac-separator: rgba(0, 0, 0, 0.1);
352
- --stx-mac-hover: rgba(0, 0, 0, 0.05);
353
- --stx-mac-selection-inactive: rgba(0, 0, 0, 0.08);
354
- --stx-mac-well: rgba(0, 0, 0, 0.07);
355
- --stx-mac-control: #ffffff;
356
- --stx-mac-control-line: rgba(0, 0, 0, 0.12);
357
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
358
- --stx-mac-switch-on: #34c759;
359
- --stx-mac-knob: #ffffff;
360
- --stx-mac-danger: #ff3b30;
361
- }
362
- :where(.dark) {
363
- --stx-mac-accent: var(--stx-accent, #0a84ff);
364
- --stx-mac-accent-ink: #ffffff;
365
- --stx-mac-ink: rgba(255, 255, 255, 0.85);
366
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.55);
367
- --stx-mac-ink-tertiary: rgba(255, 255, 255, 0.25);
368
- --stx-mac-window: #1e1e1e;
369
- --stx-mac-sidebar: #2a2a2a;
370
- --stx-mac-card: rgba(255, 255, 255, 0.05);
371
- --stx-mac-separator: rgba(255, 255, 255, 0.1);
372
- --stx-mac-hover: rgba(255, 255, 255, 0.06);
373
- --stx-mac-selection-inactive: rgba(255, 255, 255, 0.1);
374
- --stx-mac-well: rgba(255, 255, 255, 0.1);
375
- --stx-mac-control: rgba(255, 255, 255, 0.14);
376
- --stx-mac-control-line: rgba(255, 255, 255, 0.06);
377
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
378
- --stx-mac-switch-on: #30d158;
379
- --stx-mac-knob: #ffffff;
380
- --stx-mac-danger: #ff453a;
381
- }
382
- @media (max-resolution: 1.5dppx) {
383
- :where(:root) {
384
- --stx-mac-hairline: 1px;
385
- }
386
- }
387
- @media (prefers-contrast: more) {
388
- :where(:root) {
389
- --stx-mac-separator: rgba(0, 0, 0, 0.4);
390
- --stx-mac-control-line: rgba(0, 0, 0, 0.5);
391
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.75);
392
- --stx-mac-hairline: 1px;
393
- }
394
- :where(.dark) {
395
- --stx-mac-separator: rgba(255, 255, 255, 0.45);
396
- --stx-mac-control-line: rgba(255, 255, 255, 0.5);
397
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.8);
398
- }
399
- }
400
-
337
+ <style data-native-exclude data-stx-public-style src="../../theme/macos.css"></style>
338
+ <style data-native-exclude data-stx-public-style>
401
339
  /*
402
340
  * The measurements are System Settings' own on macOS 26, in points. Each is a
403
341
  * variable so an app can move one without restating the rest.
@@ -1,4 +1,6 @@
1
- <script server>
1
+ <script server cache>
2
+ // The panel and its descendants read only their props. Cache each panel so
3
+ // changes in one space do not rebuild unchanged panels in the same sidebar.
2
4
  import { resolveSidebarTheme } from './themes'
3
5
 
4
6
  // One scene of a swipeable sidebar: a pinned grid, a title, the rows, and the
@@ -151,76 +151,8 @@ defineExpose({
151
151
  @endif
152
152
  </div>
153
153
 
154
+ <style data-native-exclude data-stx-public-style src="../../theme/macos.css"></style>
154
155
  <style data-native-exclude>
155
- :where(:root) {
156
- --stx-mac-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
157
- --stx-mac-font-size: 13px;
158
- --stx-mac-font-size-small: 11px;
159
- --stx-mac-hairline: 0.5px;
160
- --stx-mac-focus-ring: 0 0 0 3px color-mix(in srgb, var(--stx-mac-accent) 35%, transparent);
161
- --stx-mac-card-radius: 12px;
162
- --stx-mac-control-radius: 6px;
163
- --stx-mac-row-height: 38px;
164
- --stx-mac-row-inset: 10px;
165
- --stx-mac-sidebar-width: 226px;
166
- --stx-mac-accent: var(--stx-accent, rgb(0, 122, 255));
167
- --stx-mac-accent-ink: #ffffff;
168
- --stx-mac-ink: rgba(0, 0, 0, 0.85);
169
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.5);
170
- --stx-mac-ink-tertiary: rgba(0, 0, 0, 0.26);
171
- --stx-mac-window: #ffffff;
172
- --stx-mac-sidebar: #f2f1f0;
173
- --stx-mac-card: rgba(0, 0, 0, 0.04);
174
- --stx-mac-separator: rgba(0, 0, 0, 0.1);
175
- --stx-mac-hover: rgba(0, 0, 0, 0.05);
176
- --stx-mac-selection-inactive: rgba(0, 0, 0, 0.08);
177
- --stx-mac-well: rgba(0, 0, 0, 0.07);
178
- --stx-mac-control: #ffffff;
179
- --stx-mac-control-line: rgba(0, 0, 0, 0.12);
180
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
181
- --stx-mac-switch-on: #34c759;
182
- --stx-mac-knob: #ffffff;
183
- --stx-mac-danger: #ff3b30;
184
- }
185
- :where(.dark) {
186
- --stx-mac-accent: var(--stx-accent, #0a84ff);
187
- --stx-mac-accent-ink: #ffffff;
188
- --stx-mac-ink: rgba(255, 255, 255, 0.85);
189
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.55);
190
- --stx-mac-ink-tertiary: rgba(255, 255, 255, 0.25);
191
- --stx-mac-window: #1e1e1e;
192
- --stx-mac-sidebar: #2a2a2a;
193
- --stx-mac-card: rgba(255, 255, 255, 0.05);
194
- --stx-mac-separator: rgba(255, 255, 255, 0.1);
195
- --stx-mac-hover: rgba(255, 255, 255, 0.06);
196
- --stx-mac-selection-inactive: rgba(255, 255, 255, 0.1);
197
- --stx-mac-well: rgba(255, 255, 255, 0.1);
198
- --stx-mac-control: rgba(255, 255, 255, 0.14);
199
- --stx-mac-control-line: rgba(255, 255, 255, 0.06);
200
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
201
- --stx-mac-switch-on: #30d158;
202
- --stx-mac-knob: #ffffff;
203
- --stx-mac-danger: #ff453a;
204
- }
205
- @media (max-resolution: 1.5dppx) {
206
- :where(:root) {
207
- --stx-mac-hairline: 1px;
208
- }
209
- }
210
- @media (prefers-contrast: more) {
211
- :where(:root) {
212
- --stx-mac-separator: rgba(0, 0, 0, 0.4);
213
- --stx-mac-control-line: rgba(0, 0, 0, 0.5);
214
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.75);
215
- --stx-mac-hairline: 1px;
216
- }
217
- :where(.dark) {
218
- --stx-mac-separator: rgba(255, 255, 255, 0.45);
219
- --stx-mac-control-line: rgba(255, 255, 255, 0.5);
220
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.8);
221
- }
222
- }
223
-
224
156
  :where([data-stx-slider]) {
225
157
  --stx-slider-track-height: 4px;
226
158
  --stx-slider-knob-width: 20px;
@@ -205,76 +205,8 @@ defineExpose({ isChecked, toggle })
205
205
  </label>
206
206
  @endif
207
207
 
208
- <style data-native-exclude>
209
- :where(:root) {
210
- --stx-mac-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
211
- --stx-mac-font-size: 13px;
212
- --stx-mac-font-size-small: 11px;
213
- --stx-mac-hairline: 0.5px;
214
- --stx-mac-focus-ring: 0 0 0 3px color-mix(in srgb, var(--stx-mac-accent) 35%, transparent);
215
- --stx-mac-card-radius: 12px;
216
- --stx-mac-control-radius: 6px;
217
- --stx-mac-row-height: 38px;
218
- --stx-mac-row-inset: 10px;
219
- --stx-mac-sidebar-width: 226px;
220
- --stx-mac-accent: var(--stx-accent, rgb(0, 122, 255));
221
- --stx-mac-accent-ink: #ffffff;
222
- --stx-mac-ink: rgba(0, 0, 0, 0.85);
223
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.5);
224
- --stx-mac-ink-tertiary: rgba(0, 0, 0, 0.26);
225
- --stx-mac-window: #ffffff;
226
- --stx-mac-sidebar: #f2f1f0;
227
- --stx-mac-card: rgba(0, 0, 0, 0.04);
228
- --stx-mac-separator: rgba(0, 0, 0, 0.1);
229
- --stx-mac-hover: rgba(0, 0, 0, 0.05);
230
- --stx-mac-selection-inactive: rgba(0, 0, 0, 0.08);
231
- --stx-mac-well: rgba(0, 0, 0, 0.07);
232
- --stx-mac-control: #ffffff;
233
- --stx-mac-control-line: rgba(0, 0, 0, 0.12);
234
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
235
- --stx-mac-switch-on: #34c759;
236
- --stx-mac-knob: #ffffff;
237
- --stx-mac-danger: #ff3b30;
238
- }
239
- :where(.dark) {
240
- --stx-mac-accent: var(--stx-accent, #0a84ff);
241
- --stx-mac-accent-ink: #ffffff;
242
- --stx-mac-ink: rgba(255, 255, 255, 0.85);
243
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.55);
244
- --stx-mac-ink-tertiary: rgba(255, 255, 255, 0.25);
245
- --stx-mac-window: #1e1e1e;
246
- --stx-mac-sidebar: #2a2a2a;
247
- --stx-mac-card: rgba(255, 255, 255, 0.05);
248
- --stx-mac-separator: rgba(255, 255, 255, 0.1);
249
- --stx-mac-hover: rgba(255, 255, 255, 0.06);
250
- --stx-mac-selection-inactive: rgba(255, 255, 255, 0.1);
251
- --stx-mac-well: rgba(255, 255, 255, 0.1);
252
- --stx-mac-control: rgba(255, 255, 255, 0.14);
253
- --stx-mac-control-line: rgba(255, 255, 255, 0.06);
254
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
255
- --stx-mac-switch-on: #30d158;
256
- --stx-mac-knob: #ffffff;
257
- --stx-mac-danger: #ff453a;
258
- }
259
- @media (max-resolution: 1.5dppx) {
260
- :where(:root) {
261
- --stx-mac-hairline: 1px;
262
- }
263
- }
264
- @media (prefers-contrast: more) {
265
- :where(:root) {
266
- --stx-mac-separator: rgba(0, 0, 0, 0.4);
267
- --stx-mac-control-line: rgba(0, 0, 0, 0.5);
268
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.75);
269
- --stx-mac-hairline: 1px;
270
- }
271
- :where(.dark) {
272
- --stx-mac-separator: rgba(255, 255, 255, 0.45);
273
- --stx-mac-control-line: rgba(255, 255, 255, 0.5);
274
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.8);
275
- }
276
- }
277
-
208
+ <style data-native-exclude data-stx-public-style src="../../theme/macos.css"></style>
209
+ <style data-native-exclude data-stx-public-style>
278
210
  .stx-mac-switch-row {
279
211
  display: inline-flex;
280
212
  align-items: center;
@@ -542,76 +542,8 @@ defineExpose({ value: inputValue, clear: onClear })
542
542
  </div>
543
543
  @endif
544
544
 
545
- <style data-native-exclude>
546
- :where(:root) {
547
- --stx-mac-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, Roboto, 'Helvetica Neue', sans-serif;
548
- --stx-mac-font-size: 13px;
549
- --stx-mac-font-size-small: 11px;
550
- --stx-mac-hairline: 0.5px;
551
- --stx-mac-focus-ring: 0 0 0 3px color-mix(in srgb, var(--stx-mac-accent) 35%, transparent);
552
- --stx-mac-card-radius: 12px;
553
- --stx-mac-control-radius: 6px;
554
- --stx-mac-row-height: 38px;
555
- --stx-mac-row-inset: 10px;
556
- --stx-mac-sidebar-width: 226px;
557
- --stx-mac-accent: var(--stx-accent, rgb(0, 122, 255));
558
- --stx-mac-accent-ink: #ffffff;
559
- --stx-mac-ink: rgba(0, 0, 0, 0.85);
560
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.5);
561
- --stx-mac-ink-tertiary: rgba(0, 0, 0, 0.26);
562
- --stx-mac-window: #ffffff;
563
- --stx-mac-sidebar: #f2f1f0;
564
- --stx-mac-card: rgba(0, 0, 0, 0.04);
565
- --stx-mac-separator: rgba(0, 0, 0, 0.1);
566
- --stx-mac-hover: rgba(0, 0, 0, 0.05);
567
- --stx-mac-selection-inactive: rgba(0, 0, 0, 0.08);
568
- --stx-mac-well: rgba(0, 0, 0, 0.07);
569
- --stx-mac-control: #ffffff;
570
- --stx-mac-control-line: rgba(0, 0, 0, 0.12);
571
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.14), 0 0 0 0.5px rgba(0, 0, 0, 0.08);
572
- --stx-mac-switch-on: #34c759;
573
- --stx-mac-knob: #ffffff;
574
- --stx-mac-danger: #ff3b30;
575
- }
576
- :where(.dark) {
577
- --stx-mac-accent: var(--stx-accent, #0a84ff);
578
- --stx-mac-accent-ink: #ffffff;
579
- --stx-mac-ink: rgba(255, 255, 255, 0.85);
580
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.55);
581
- --stx-mac-ink-tertiary: rgba(255, 255, 255, 0.25);
582
- --stx-mac-window: #1e1e1e;
583
- --stx-mac-sidebar: #2a2a2a;
584
- --stx-mac-card: rgba(255, 255, 255, 0.05);
585
- --stx-mac-separator: rgba(255, 255, 255, 0.1);
586
- --stx-mac-hover: rgba(255, 255, 255, 0.06);
587
- --stx-mac-selection-inactive: rgba(255, 255, 255, 0.1);
588
- --stx-mac-well: rgba(255, 255, 255, 0.1);
589
- --stx-mac-control: rgba(255, 255, 255, 0.14);
590
- --stx-mac-control-line: rgba(255, 255, 255, 0.06);
591
- --stx-mac-control-shadow: 0 0.5px 1.5px rgba(0, 0, 0, 0.4), inset 0 0.5px 0 rgba(255, 255, 255, 0.12);
592
- --stx-mac-switch-on: #30d158;
593
- --stx-mac-knob: #ffffff;
594
- --stx-mac-danger: #ff453a;
595
- }
596
- @media (max-resolution: 1.5dppx) {
597
- :where(:root) {
598
- --stx-mac-hairline: 1px;
599
- }
600
- }
601
- @media (prefers-contrast: more) {
602
- :where(:root) {
603
- --stx-mac-separator: rgba(0, 0, 0, 0.4);
604
- --stx-mac-control-line: rgba(0, 0, 0, 0.5);
605
- --stx-mac-ink-secondary: rgba(0, 0, 0, 0.75);
606
- --stx-mac-hairline: 1px;
607
- }
608
- :where(.dark) {
609
- --stx-mac-separator: rgba(255, 255, 255, 0.45);
610
- --stx-mac-control-line: rgba(255, 255, 255, 0.5);
611
- --stx-mac-ink-secondary: rgba(255, 255, 255, 0.8);
612
- }
613
- }
614
-
545
+ <style data-native-exclude data-stx-public-style src="../../theme/macos.css"></style>
546
+ <style data-native-exclude data-stx-public-style>
615
547
  .stx-mac-field-wrap {
616
548
  display: block;
617
549
  width: var(--stx-mac-field-width, 100%);