@robert-stackflow/oneui 0.6.8 → 0.6.17

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 (113) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +255 -188
  3. package/components/AccountItem.module.css +103 -103
  4. package/components/Alert.d.ts +2 -9
  5. package/components/Alert.js +2 -40
  6. package/components/AppShell.d.ts +7 -7
  7. package/components/AppShell.js +37 -33
  8. package/components/AppShell.module.css +223 -271
  9. package/components/AppearanceSettings.js +25 -32
  10. package/components/Badge.module.css +30 -30
  11. package/components/Banner.d.ts +17 -0
  12. package/components/Banner.js +99 -0
  13. package/components/Banner.module.css +143 -0
  14. package/components/BarChart.module.css +35 -34
  15. package/components/Breadcrumb.module.css +97 -97
  16. package/components/Button.module.css +120 -120
  17. package/components/Cascader.js +1 -0
  18. package/components/CharacterPicker.js +2 -0
  19. package/components/Checkbox.module.css +95 -95
  20. package/components/Combobox.js +1 -0
  21. package/components/Combobox.module.css +6 -1
  22. package/components/CommandPalette.js +2 -2
  23. package/components/ContributionCalendar.module.css +121 -121
  24. package/components/Control.module.css +86 -86
  25. package/components/DataTable.d.ts +3 -2
  26. package/components/DataTable.js +92 -66
  27. package/components/DataTable.module.css +3 -31
  28. package/components/DatePicker.js +1 -0
  29. package/components/DateRangePicker.js +1 -0
  30. package/components/Dialog.d.ts +3 -1
  31. package/components/Dialog.js +11 -4
  32. package/components/Dialog.module.css +139 -97
  33. package/components/DialogVariants.d.ts +2 -1
  34. package/components/DialogVariants.js +35 -7
  35. package/components/HierarchyPicker.module.css +185 -181
  36. package/components/IconPicker.js +2 -0
  37. package/components/Indicator.module.css +83 -83
  38. package/components/Layout.module.css +82 -82
  39. package/components/Markdown.d.ts +13 -0
  40. package/components/Markdown.js +164 -0
  41. package/components/Markdown.module.css +227 -0
  42. package/components/MenuItem.module.css +172 -172
  43. package/components/MultiSelect.js +1 -0
  44. package/components/MultiSelect.module.css +2 -0
  45. package/components/NavBar.d.ts +20 -0
  46. package/components/NavBar.js +197 -0
  47. package/components/NavBar.module.css +130 -0
  48. package/components/NavigationSurface.module.css +27 -0
  49. package/components/Picker.module.css +7 -0
  50. package/components/Popover.d.ts +6 -1
  51. package/components/Popover.js +39 -13
  52. package/components/Popover.module.css +8 -0
  53. package/components/Progress.module.css +33 -33
  54. package/components/RadioGroup.module.css +87 -87
  55. package/components/RangeSlider.module.css +141 -141
  56. package/components/ResizablePanel.module.css +101 -101
  57. package/components/ResourceCard.module.css +98 -98
  58. package/components/SelectSettingRow.d.ts +7 -0
  59. package/components/SelectSettingRow.js +58 -0
  60. package/components/SettingRow.d.ts +9 -3
  61. package/components/SettingRow.js +32 -8
  62. package/components/SettingRow.module.css +17 -0
  63. package/components/SettingsLayout.d.ts +15 -3
  64. package/components/SettingsLayout.js +46 -29
  65. package/components/SideBar.d.ts +9 -0
  66. package/components/SideBar.js +30 -0
  67. package/components/SidebarNavigation.d.ts +24 -3
  68. package/components/SidebarNavigation.js +274 -47
  69. package/components/SidebarNavigation.module.css +266 -42
  70. package/components/Slider.module.css +19 -19
  71. package/components/Steps.module.css +176 -176
  72. package/components/Switch.d.ts +3 -1
  73. package/components/Switch.js +5 -1
  74. package/components/Switch.module.css +59 -59
  75. package/components/SwitchSettingRow.d.ts +7 -0
  76. package/components/SwitchSettingRow.js +45 -0
  77. package/components/Table.d.ts +8 -1
  78. package/components/Table.js +34 -17
  79. package/components/Table.module.css +87 -48
  80. package/components/TableMarkup.d.ts +2 -1
  81. package/components/TableMarkup.js +18 -1
  82. package/components/TableOfContents.d.ts +22 -0
  83. package/components/TableOfContents.js +462 -0
  84. package/components/TableOfContents.module.css +252 -0
  85. package/components/TextAreaSettingRow.d.ts +9 -0
  86. package/components/TextAreaSettingRow.js +47 -0
  87. package/components/TextSettingRow.d.ts +9 -0
  88. package/components/TextSettingRow.js +45 -0
  89. package/components/ThemePicker.module.css +178 -178
  90. package/components/ThemeProvider.js +2 -0
  91. package/components/TimeColumns.module.css +47 -47
  92. package/components/Timeline.module.css +202 -202
  93. package/components/Toast.d.ts +8 -1
  94. package/components/Toast.js +49 -17
  95. package/components/Toast.module.css +25 -0
  96. package/components/ToastProvider.d.ts +4 -1
  97. package/components/ToastProvider.js +67 -12
  98. package/components/TreeSelect.js +1 -0
  99. package/components/TreeTable.d.ts +3 -3
  100. package/components/TreeTable.js +12 -2
  101. package/components/TreeTable.module.css +57 -53
  102. package/components/createToaster.d.ts +2 -1
  103. package/components/createToaster.js +28 -14
  104. package/components/index.d.ts +18 -1
  105. package/components/index.js +24 -0
  106. package/components/motion.d.ts +1 -0
  107. package/components/motion.js +18 -6
  108. package/components/settingRowControl.d.ts +7 -0
  109. package/components/settingRowControl.js +15 -0
  110. package/package.json +57 -3
  111. package/styles/base.css +206 -206
  112. package/styles/blue.css +270 -268
  113. package/styles/minimal.css +1 -0
@@ -1,271 +1,223 @@
1
- .shell {
2
- height: 100dvh;
3
- display: grid;
4
- grid-template-columns: 228px minmax(0, 1fr);
5
- overflow: hidden;
6
- color: var(--fg);
7
- background: var(--app-background, var(--canvas));
8
- font: 14px/1.6 var(--ui-font, "Segoe UI", "Microsoft YaHei", sans-serif);
9
- transition: grid-template-columns var(--motion-panel) var(--ease);
10
- }
11
- .shell[data-collapsed="true"] {
12
- grid-template-columns: 76px minmax(0, 1fr);
13
- }
14
- .sidebar {
15
- min-width: 0;
16
- display: flex;
17
- flex-direction: column;
18
- gap: 24px;
19
- padding: 24px 16px 18px;
20
- background: var(--navigation);
21
- border-right: 1px solid var(--line);
22
- overflow: hidden;
23
- }
24
- .brand {
25
- display: flex;
26
- align-items: center;
27
- gap: 10px;
28
- min-height: 38px;
29
- padding: 0 10px;
30
- color: var(--fg);
31
- text-decoration: none;
32
- flex-shrink: 0;
33
- }
34
- .brand strong {
35
- font-size: 16px;
36
- letter-spacing: -0.4px;
37
- }
38
- .mark {
39
- display: grid;
40
- place-items: center;
41
- width: 32px;
42
- height: 32px;
43
- flex-shrink: 0;
44
- border-radius: 10px;
45
- background: var(--accent);
46
- color: var(--on-accent);
47
- }
48
- .navigation {
49
- display: flex;
50
- flex-direction: column;
51
- gap: 4px;
52
- min-height: 0;
53
- overflow: auto;
54
- }
55
- .navigation a {
56
- display: flex;
57
- align-items: center;
58
- gap: 11px;
59
- min-height: 40px;
60
- padding: 9px 12px;
61
- border-radius: 8px;
62
- color: var(--muted);
63
- font-size: 13px;
64
- text-decoration: none;
65
- white-space: nowrap;
66
- transition:
67
- background var(--motion-hover),
68
- color var(--motion-hover);
69
- }
70
- .navigation a > svg {
71
- width: 18px;
72
- height: 18px;
73
- flex-shrink: 0;
74
- }
75
- .navigation a:hover {
76
- background: var(--hover);
77
- color: var(--fg);
78
- }
79
- .navigation a[aria-current="page"] {
80
- background: var(--selected);
81
- color: var(--navigation-selected-color, var(--accent));
82
- }
83
- .bottom {
84
- display: flex;
85
- flex-direction: column;
86
- gap: 8px;
87
- margin-top: auto;
88
- flex-shrink: 0;
89
- }
90
- .workspace {
91
- display: flex;
92
- flex-direction: column;
93
- min-width: 0;
94
- min-height: 0;
95
- }
96
- .header {
97
- height: 60px;
98
- min-height: 60px;
99
- display: flex;
100
- align-items: center;
101
- justify-content: space-between;
102
- gap: 16px;
103
- padding: 0 8px;
104
- border-bottom: 1px solid var(--line);
105
- background: var(--surface);
106
- color: var(--fg);
107
- }
108
- .header[data-draggable="true"] {
109
- -webkit-app-region: drag;
110
- }
111
- .header button,
112
- .header a,
113
- .headerEnd {
114
- -webkit-app-region: no-drag;
115
- }
116
- .headerStart,
117
- .headerEnd {
118
- display: flex;
119
- align-items: center;
120
- gap: 12px;
121
- min-width: 0;
122
- }
123
- .headerEnd {
124
- flex-shrink: 0;
125
- }
126
- .title {
127
- font-size: 13px;
128
- overflow: hidden;
129
- text-overflow: ellipsis;
130
- white-space: nowrap;
131
- }
132
- .main {
133
- flex: 1;
134
- min-height: 0;
135
- overflow: auto;
136
- outline: none;
137
- scrollbar-gutter: stable;
138
- overscroll-behavior: contain;
139
- }
140
- .page {
141
- width: 100%;
142
- max-width: 1390px;
143
- margin: 0 auto;
144
- padding: 42px 40px 52px;
145
- --page-max-width: none;
146
- --page-margin: 0;
147
- --page-inset: 0;
148
- --page-wide-top: 0;
149
- --page-title-size: 28px;
150
- --page-title-line-height: 1.3;
151
- }
152
- .page h1 {
153
- margin: 0;
154
- font-size: 28px;
155
- line-height: 1.3;
156
- }
157
- .shell[data-collapsed="true"] > .sidebar .brand strong,
158
- .shell[data-collapsed="true"] > .sidebar .navigation a span {
159
- display: none;
160
- }
161
- .shell[data-collapsed="true"] > .sidebar {
162
- padding-inline: 12px;
163
- }
164
- .shell[data-collapsed="true"] > .sidebar .brand {
165
- padding: 0;
166
- justify-content: center;
167
- }
168
- .shell[data-collapsed="true"] > .sidebar .navigation a {
169
- justify-content: center;
170
- padding-inline: 0;
171
- }
172
- .mobileToggle {
173
- display: none;
174
- }
175
- .floatingNavigation {
176
- position: fixed;
177
- z-index: 50;
178
- top: 12px;
179
- left: 12px;
180
- background: var(--surface);
181
- border: 1px solid var(--line);
182
- box-shadow: var(--shadow-sm);
183
- }
184
- .mobileNav {
185
- display: flex;
186
- flex-direction: column;
187
- gap: 24px;
188
- min-height: 100%;
189
- padding: 8px 0;
190
- }
191
- .mobileNav .bottom {
192
- margin-top: 24px;
193
- }
194
- .skip {
195
- position: fixed;
196
- top: -60px;
197
- left: 12px;
198
- z-index: 5000;
199
- padding: 10px 16px;
200
- background: var(--surface);
201
- color: var(--fg);
202
- }
203
- .skip:focus {
204
- top: 12px;
205
- }
206
- @media (max-width: 800px) {
207
- .shell,
208
- .shell[data-collapsed="true"] {
209
- grid-template-columns: minmax(0, 1fr);
210
- }
211
- .sidebar {
212
- display: none;
213
- }
214
- .desktopToggle {
215
- display: none;
216
- }
217
- .mobileToggle {
218
- display: inline-flex;
219
- }
220
- .header {
221
- padding-inline: 8px;
222
- gap: 8px;
223
- }
224
- .headerStart,
225
- .headerEnd {
226
- gap: 8px;
227
- }
228
- .page {
229
- padding: 28px 24px 40px;
230
- }
231
- .shell[data-header="false"] .page {
232
- padding-top: 64px;
233
- }
234
- }
235
- @media (max-width: 540px) {
236
- .page {
237
- padding: 24px 16px 36px;
238
- }
239
- .page h1 {
240
- font-size: 25px;
241
- }
242
- }
243
-
244
- .page {
245
- font-size: 13px;
246
- line-height: 1.6;
247
- }
248
-
249
- .header[data-window-controls="true"] {
250
- padding-right: 8px;
251
- }
252
-
253
- .navigationGroup {
254
- display: flex;
255
- flex-direction: column;
256
- gap: 4px;
257
- }
258
- .navigationGroup + .navigationGroup {
259
- margin-top: 18px;
260
- padding-top: 18px;
261
- border-top: 1px solid var(--line);
262
- }
263
- .groupLabel {
264
- color: var(--muted);
265
- font-size: 11px;
266
- padding: 0 12px 6px;
267
- }
268
-
269
- .shell[data-collapsed="true"] > .sidebar .groupLabel {
270
- display: none;
271
- }
1
+ .shell {
2
+ height: 100dvh;
3
+ display: grid;
4
+ grid-template-columns: 228px minmax(0, 1fr);
5
+ overflow: hidden;
6
+ color: var(--fg);
7
+ background: var(--app-background, var(--canvas));
8
+ font: 14px/1.6 var(--ui-font, "Segoe UI", "Microsoft YaHei", sans-serif);
9
+ transition: grid-template-columns var(--motion-panel) var(--ease);
10
+ }
11
+ .shell[data-collapsed="true"] {
12
+ grid-template-columns: 76px minmax(0, 1fr);
13
+ }
14
+ .sidebar {
15
+ min-width: 0;
16
+ display: flex;
17
+ flex-direction: column;
18
+ gap: 24px;
19
+ padding: 24px 16px 18px;
20
+ background: var(--navigation);
21
+ border-right: 1px solid var(--line);
22
+ overflow: hidden;
23
+ }
24
+ .brand {
25
+ display: flex;
26
+ align-items: center;
27
+ gap: 10px;
28
+ min-height: 38px;
29
+ padding: 0 10px;
30
+ color: var(--fg);
31
+ text-decoration: none;
32
+ flex-shrink: 0;
33
+ }
34
+ .brand strong {
35
+ font-size: 16px;
36
+ letter-spacing: -0.4px;
37
+ }
38
+ .mark {
39
+ display: grid;
40
+ place-items: center;
41
+ width: 32px;
42
+ height: 32px;
43
+ flex-shrink: 0;
44
+ border-radius: 10px;
45
+ background: var(--accent);
46
+ color: var(--on-accent);
47
+ }
48
+ .navigation {
49
+ display: flex;
50
+ flex-direction: column;
51
+ gap: 4px;
52
+ min-height: 0;
53
+ overflow: auto;
54
+ }
55
+ .bottom {
56
+ display: flex;
57
+ flex-direction: column;
58
+ gap: 8px;
59
+ margin-top: auto;
60
+ flex-shrink: 0;
61
+ }
62
+ .workspace {
63
+ display: flex;
64
+ flex-direction: column;
65
+ min-width: 0;
66
+ min-height: 0;
67
+ }
68
+ .header {
69
+ height: 60px;
70
+ min-height: 60px;
71
+ display: flex;
72
+ align-items: center;
73
+ justify-content: space-between;
74
+ gap: 16px;
75
+ padding: 0 8px;
76
+ border-bottom: 1px solid var(--line);
77
+ background: var(--surface);
78
+ color: var(--fg);
79
+ }
80
+ .header[data-draggable="true"] {
81
+ -webkit-app-region: drag;
82
+ }
83
+ .header button,
84
+ .header a,
85
+ .headerEnd {
86
+ -webkit-app-region: no-drag;
87
+ }
88
+ .headerStart,
89
+ .headerEnd {
90
+ display: flex;
91
+ align-items: center;
92
+ gap: 12px;
93
+ min-width: 0;
94
+ }
95
+ .headerEnd {
96
+ flex-shrink: 0;
97
+ }
98
+ .title {
99
+ font-size: 13px;
100
+ overflow: hidden;
101
+ text-overflow: ellipsis;
102
+ white-space: nowrap;
103
+ }
104
+ .main {
105
+ flex: 1;
106
+ min-height: 0;
107
+ overflow: auto;
108
+ outline: none;
109
+ scrollbar-gutter: stable;
110
+ overscroll-behavior: contain;
111
+ }
112
+ .page {
113
+ width: 100%;
114
+ max-width: 1390px;
115
+ margin: 0 auto;
116
+ padding: 42px 40px 52px;
117
+ --page-max-width: none;
118
+ --page-margin: 0;
119
+ --page-inset: 0;
120
+ --page-wide-top: 0;
121
+ --page-title-size: 28px;
122
+ --page-title-line-height: 1.3;
123
+ }
124
+ .page h1 {
125
+ margin: 0;
126
+ font-size: 28px;
127
+ line-height: 1.3;
128
+ }
129
+ .shell[data-collapsed="true"] > .sidebar .brand strong,
130
+ .shell[data-collapsed="true"] > .sidebar .navigation a span {
131
+ display: none;
132
+ }
133
+ .shell[data-collapsed="true"] > .sidebar {
134
+ padding-inline: 12px;
135
+ }
136
+ .shell[data-collapsed="true"] > .sidebar .brand {
137
+ padding: 0;
138
+ justify-content: center;
139
+ }
140
+ .shell[data-collapsed="true"] > .sidebar .navigation a {
141
+ justify-content: center;
142
+ padding-inline: 0;
143
+ }
144
+ .mobileToggle {
145
+ display: none;
146
+ }
147
+ .floatingNavigation {
148
+ position: fixed;
149
+ z-index: 50;
150
+ top: 12px;
151
+ left: 12px;
152
+ background: var(--surface);
153
+ border: 1px solid var(--line);
154
+ box-shadow: var(--shadow-sm);
155
+ }
156
+ .mobileNav {
157
+ display: flex;
158
+ flex-direction: column;
159
+ gap: 24px;
160
+ min-height: 100%;
161
+ padding: 8px 0;
162
+ }
163
+ .mobileNav .bottom {
164
+ margin-top: 24px;
165
+ }
166
+ .skip {
167
+ position: fixed;
168
+ top: -60px;
169
+ left: 12px;
170
+ z-index: 5000;
171
+ padding: 10px 16px;
172
+ background: var(--surface);
173
+ color: var(--fg);
174
+ }
175
+ .skip:focus {
176
+ top: 12px;
177
+ }
178
+ @media (max-width: 800px) {
179
+ .shell,
180
+ .shell[data-collapsed="true"] {
181
+ grid-template-columns: minmax(0, 1fr);
182
+ }
183
+ .sidebar {
184
+ display: none;
185
+ }
186
+ .desktopToggle {
187
+ display: none;
188
+ }
189
+ .mobileToggle {
190
+ display: grid;
191
+ }
192
+ .header {
193
+ padding-inline: 8px;
194
+ gap: 8px;
195
+ }
196
+ .headerStart,
197
+ .headerEnd {
198
+ gap: 8px;
199
+ }
200
+ .page {
201
+ padding: 28px 24px 40px;
202
+ }
203
+ .shell[data-header="false"] .page {
204
+ padding-top: 64px;
205
+ }
206
+ }
207
+ @media (max-width: 540px) {
208
+ .page {
209
+ padding: 24px 16px 36px;
210
+ }
211
+ .page h1 {
212
+ font-size: 25px;
213
+ }
214
+ }
215
+
216
+ .page {
217
+ font-size: 13px;
218
+ line-height: 1.6;
219
+ }
220
+
221
+ .header[data-window-controls="true"] {
222
+ padding-right: 8px;
223
+ }
@@ -1,13 +1,13 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { SwitchSettingRow } from "./SwitchSettingRow.js";
3
+ import { SelectSettingRow } from "./SelectSettingRow.js";
2
4
  import { Check, RotateCcw } from "lucide-react";
3
5
  import { ThemeStylePicker } from "./ThemeStylePicker.js";
4
6
  import { ThemePicker } from "./ThemePicker.js";
5
7
  import { ColorField } from "./ColorField.js";
6
8
  import { SettingsCard } from "./SettingsLayout.js";
7
9
  import { SettingRow } from "./SettingRow.js";
8
- import { Select } from "./Select.js";
9
10
  import { NumberInput } from "./NumberInput.js";
10
- import { Switch } from "./Switch.js";
11
11
  import { Button } from "./Button.js";
12
12
  import { useToast } from "./ToastProvider.js";
13
13
  import { appearanceDefaults } from "./appearance.js";
@@ -100,9 +100,10 @@ function AppearanceSettings({
100
100
  )
101
101
  }
102
102
  ) }),
103
- /* @__PURE__ */ jsx(SettingRow, { title: "\u5B57\u4F53", children: /* @__PURE__ */ jsx(
104
- Select,
103
+ /* @__PURE__ */ jsx(
104
+ SelectSettingRow,
105
105
  {
106
+ title: "\u5B57\u4F53",
106
107
  label: "\u5B57\u4F53",
107
108
  value: settings.font,
108
109
  onChange: (font) => update({ font }),
@@ -113,10 +114,11 @@ function AppearanceSettings({
113
114
  { value: "sans-serif", label: "\u65E0\u886C\u7EBF" }
114
115
  ]
115
116
  }
116
- ) }),
117
- /* @__PURE__ */ jsx(SettingRow, { title: "\u95F4\u8DDD", children: /* @__PURE__ */ jsx(
118
- Select,
117
+ ),
118
+ /* @__PURE__ */ jsx(
119
+ SelectSettingRow,
119
120
  {
121
+ title: "\u95F4\u8DDD",
120
122
  label: "\u754C\u9762\u95F4\u8DDD",
121
123
  value: settings.density,
122
124
  onChange: (density) => update({ density }),
@@ -125,7 +127,7 @@ function AppearanceSettings({
125
127
  { value: "compact", label: "\u7D27\u51D1" }
126
128
  ]
127
129
  }
128
- ) }),
130
+ ),
129
131
  /* @__PURE__ */ jsxs(SettingRow, { title: "\u5706\u89D2", children: [
130
132
  /* @__PURE__ */ jsx(
131
133
  NumberInput,
@@ -143,26 +145,22 @@ function AppearanceSettings({
143
145
  /* @__PURE__ */ jsx("h2", { children: "\u63D0\u793A\u4E0E\u52A8\u6548" }),
144
146
  /* @__PURE__ */ jsxs(SettingsCard, { children: [
145
147
  /* @__PURE__ */ jsx(
146
- SettingRow,
148
+ SelectSettingRow,
147
149
  {
148
150
  title: "Tooltip \u4F4D\u7F6E",
149
151
  description: "\u7A7A\u95F4\u4E0D\u8DB3\u65F6\u81EA\u52A8\u907F\u8BA9\u7A97\u53E3\u8FB9\u7F18\u3002",
150
- children: /* @__PURE__ */ jsx(
151
- Select,
152
- {
153
- label: "Tooltip \u4F4D\u7F6E",
154
- value: settings.tooltipPlacement,
155
- onChange: (tooltipPlacement) => update({
156
- tooltipPlacement
157
- }),
158
- options: tooltipOptions
159
- }
160
- )
152
+ label: "Tooltip \u4F4D\u7F6E",
153
+ value: settings.tooltipPlacement,
154
+ onChange: (tooltipPlacement) => update({
155
+ tooltipPlacement
156
+ }),
157
+ options: tooltipOptions
161
158
  }
162
159
  ),
163
- /* @__PURE__ */ jsx(SettingRow, { title: "Toast \u4F4D\u7F6E", children: /* @__PURE__ */ jsx(
164
- Select,
160
+ /* @__PURE__ */ jsx(
161
+ SelectSettingRow,
165
162
  {
163
+ title: "Toast \u4F4D\u7F6E",
166
164
  label: "Toast \u4F4D\u7F6E",
167
165
  value: settings.toastPosition,
168
166
  onChange: (toastPosition) => update({
@@ -170,20 +168,15 @@ function AppearanceSettings({
170
168
  }),
171
169
  options: toastOptions
172
170
  }
173
- ) }),
171
+ ),
174
172
  /* @__PURE__ */ jsx(
175
- SettingRow,
173
+ SwitchSettingRow,
176
174
  {
177
175
  title: "\u754C\u9762\u52A8\u6548",
178
176
  description: "\u540C\u65F6\u9075\u5FAA\u7CFB\u7EDF\u51CF\u5C11\u52A8\u6001\u6548\u679C\u7684\u504F\u597D\u3002",
179
- children: /* @__PURE__ */ jsx(
180
- Switch,
181
- {
182
- label: "\u542F\u7528\u754C\u9762\u52A8\u6548",
183
- checked: settings.motion,
184
- onChange: (motion) => update({ motion })
185
- }
186
- )
177
+ label: "\u542F\u7528\u754C\u9762\u52A8\u6548",
178
+ checked: settings.motion,
179
+ onChange: (motion) => update({ motion })
187
180
  }
188
181
  )
189
182
  ] }),
@@ -1,30 +1,30 @@
1
- .badge {
2
- display: inline-flex;
3
- align-items: center;
4
- gap: 5px;
5
- padding: 3px 8px;
6
- font-size: 10px;
7
- border-radius: 5px;
8
- background: var(--soft);
9
- color: var(--muted);
10
- white-space: nowrap;
11
- }
12
- .success {
13
- color: var(--success);
14
- background: color-mix(in srgb, var(--success) 8%, var(--surface));
15
- }
16
- .warning {
17
- color: var(--warning);
18
- background: color-mix(in srgb, var(--warning) 8%, var(--surface));
19
- }
20
- .neutral {
21
- color: var(--muted);
22
- }
23
- .accent {
24
- color: var(--accent);
25
- background: var(--accent-soft);
26
- }
27
- .danger {
28
- color: var(--danger);
29
- background: var(--danger-soft);
30
- }
1
+ .badge {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ gap: 5px;
5
+ padding: 3px 8px;
6
+ font-size: 10px;
7
+ border-radius: 5px;
8
+ background: var(--soft);
9
+ color: var(--muted);
10
+ white-space: nowrap;
11
+ }
12
+ .success {
13
+ color: var(--success);
14
+ background: color-mix(in srgb, var(--success) 8%, var(--surface));
15
+ }
16
+ .warning {
17
+ color: var(--warning);
18
+ background: color-mix(in srgb, var(--warning) 8%, var(--surface));
19
+ }
20
+ .neutral {
21
+ color: var(--muted);
22
+ }
23
+ .accent {
24
+ color: var(--accent-ink, var(--accent));
25
+ background: var(--accent-soft);
26
+ }
27
+ .danger {
28
+ color: var(--danger);
29
+ background: var(--danger-soft);
30
+ }