@synopackageland/ui 0.10.3 → 0.10.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.4 (2026-10-17)
4
+
5
+ - Choices side by side are 34 px apart, as in DSM 7.4 (Task Scheduler's service action: a composite field's 6 px margin plus a 28 px indent; `--ui-choice-inline-gap`). Checkboxes written one after another get this gap after each box; before, the next box touched the previous label. A column of checkboxes is not indented.
6
+ - A checked `Checkbox` no longer sits 2 px below an unchecked one in the same row: the box sits on the top of its line, as DSM's check wraps do. This also steadies the selection column of `DataGrid`.
7
+ - New `CheckboxGroup`: `options` (`label`, `value`, `description`, `disabled`), `v-model` an array of values in option order, `orientation="vertical" | "horizontal"`, `disabled`. It is a FormItem's primary control, like `RadioGroup`.
8
+ - **Visible change:** a horizontal `RadioGroup` spaces its options 34 px apart (was 20 px).
9
+ - Visible changes for apps: rows of bare Checkboxes (Studio Office's role mapping) get their gap without app CSS. Remove margins added only to separate checkboxes, or use `CheckboxGroup orientation="horizontal"`.
10
+
11
+ 繁中摘要:並排的選項依 DSM 7.4 實測(任務排程「服務動作」:compositefield 6px 加 28px 縮排)相距 34px(`--ui-choice-inline-gap`)。連續寫的 Checkbox 會在每個 box 之後留這個間距,之前下一個 box 會貼著前一個文字;直向排列不會縮排。已勾選的 Checkbox 不再比未勾選的低 2px(改為對齊行頂,與 DSM 相同),DataGrid 選取欄也因此一致。新增 `CheckboxGroup`:`options`、`v-model` 為值陣列(依選項順序)、`orientation` vertical/horizontal、`disabled`,與 RadioGroup 一樣是 FormItem 的主要控制項。**可見變更:**horizontal RadioGroup 的選項間距由 20px 改為 34px。App 升級後,連續的 Checkbox(如 Studio Office 角色對應)不需自訂 CSS 即有間距;移除只為分開 checkbox 而加的 margin,或改用 `CheckboxGroup orientation="horizontal"`。
12
+
3
13
  ## 0.10.3 (2026-10-16)
4
14
 
5
15
  - `Dialog` takes `size="sm" | "md" | "lg" | "xl"`: the DSM 7.4 dialog widths 450, 530, 740 and 860 px (`--ui-dialog-width-<size>`), measured on File Station's Create folder, Task Scheduler's Create task, Storage Manager's Data Scrubbing and a shared folder's Edit. An explicit `width` still wins. JSON UI `Dialog` takes `size` too.
package/README.md CHANGED
@@ -379,7 +379,7 @@ Primitives:
379
379
 
380
380
  - Button / IconButton
381
381
  - Input / Textarea
382
- - Checkbox / RadioGroup / Switch
382
+ - Checkbox / CheckboxGroup / RadioGroup / Switch
383
383
  - Select
384
384
  - Badge / StatusDot / Separator / Spinner / LoadingMask / LoadingArea / Progress / Skeleton / Surface
385
385
  - SplitButton
@@ -0,0 +1,23 @@
1
+ export type CheckboxOption = {
2
+ label: string;
3
+ value: string;
4
+ description?: string;
5
+ disabled?: boolean;
6
+ };
7
+ type __VLS_Props = {
8
+ modelValue?: string[];
9
+ options: CheckboxOption[];
10
+ orientation?: 'vertical' | 'horizontal';
11
+ disabled?: boolean;
12
+ };
13
+ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ "update:modelValue": (value: string[]) => any;
15
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
17
+ }>, {
18
+ disabled: boolean;
19
+ modelValue: string[];
20
+ orientation: "vertical" | "horizontal";
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -11,6 +11,8 @@ export type { SliderInputOptions } from './components/primitives/slider/Slider.v
11
11
  export { default as ColorPicker } from './components/primitives/color-picker/ColorPicker.vue';
12
12
  export type { ColorPickerFormat, ColorSwatch } from './components/primitives/color-picker/ColorPicker.vue';
13
13
  export { default as Checkbox } from './components/primitives/checkbox/Checkbox.vue';
14
+ export { default as CheckboxGroup } from './components/primitives/checkbox/CheckboxGroup.vue';
15
+ export type { CheckboxOption } from './components/primitives/checkbox/CheckboxGroup.vue';
14
16
  export { default as Switch } from './components/primitives/switch/Switch.vue';
15
17
  export { default as RadioGroup } from './components/primitives/radio-group/RadioGroup.vue';
16
18
  export type { RadioOption } from './components/primitives/radio-group/RadioGroup.vue';