@synopackageland/ui 0.17.13 → 0.17.15

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 CHANGED
@@ -508,7 +508,7 @@ Primitives:
508
508
 
509
509
  - Button / IconButton / CopyButton
510
510
  - Input / Textarea
511
- - Checkbox / CheckboxGroup / RadioGroup / Switch
511
+ - Checkbox / CheckboxGroup / RadioGroup / Switch — use RadioGroup for 2–4 mutually exclusive settings; Checkbox for independent options; Switch for immediate on/off. Reserve primary-filled, capsule-shaped SegmentControl for toolbar views ([choice policy](docs/layout-rules.md)).
512
512
  - Select
513
513
  - Badge / StatusDot / Separator / Spinner / LoadingMask / LoadingArea / Progress / SizeBar / Skeleton / Surface
514
514
  - SplitButton
@@ -553,6 +553,12 @@ and End move focus between tabs; Enter or Space selects one. In a grid or flex p
553
553
  </SectionTabs>
554
554
  ```
555
555
 
556
+ For unsaved drafts inside those panels, use `<SectionTabs fill keep-mounted>`.
557
+ `keep-mounted` mounts every supplied item panel and hides inactive ones with
558
+ `v-show`, preserving component state and DOM; hidden panels' effects remain
559
+ active. It also works without `fill`. Without this option, switching tabs
560
+ unmounts the previous panel; `fill` alone only controls layout.
561
+
556
562
  Page actions for the shown section go in `#actions`, on the tab row at the
557
563
  right edge over the same baseline; when the row is too narrow for both, the
558
564
  actions wrap onto a line of their own above the tabs, still right-aligned.
@@ -13,10 +13,14 @@ type __VLS_Props = {
13
13
  * footer. Without a height to fill (a phone page) the strip sticks to the top.
14
14
  */
15
15
  fill?: boolean;
16
+ /** Mount all supplied item panels and hide inactive ones, preserving local drafts. */
17
+ keepMounted?: boolean;
16
18
  };
17
- declare var __VLS_14: {}, __VLS_17: `panel-${string}`, __VLS_18: {};
19
+ declare var __VLS_14: {}, __VLS_17: `panel-${string}`, __VLS_18: {}, __VLS_21: `panel-${string}`, __VLS_22: {};
18
20
  type __VLS_Slots = {} & {
19
21
  [K in NonNullable<typeof __VLS_17>]?: (props: typeof __VLS_18) => any;
22
+ } & {
23
+ [K in NonNullable<typeof __VLS_21>]?: (props: typeof __VLS_22) => any;
20
24
  } & {
21
25
  actions?: (props: typeof __VLS_14) => any;
22
26
  };
@@ -7,7 +7,7 @@ type __VLS_Props = {
7
7
  title?: FieldsetTitle;
8
8
  /** One line under the title, across the whole width (DSM's "Enter the server name, ..."). */
9
9
  description?: string;
10
- /** Adds DSM's disclosure chevron (Control Panel › Network); off by default, as Control Panel › Security. */
10
+ /** Shows the disclosure chevron by default; set false for a fixed section. */
11
11
  collapsible?: boolean;
12
12
  /** Mouse gesture that toggles; Enter/Space always works on the header. */
13
13
  collapseTriggerEvent?: FieldsetCollapseTrigger;
@@ -1,20 +1,26 @@
1
+ import { Component } from 'vue';
1
2
  export type RadioOption = {
2
3
  label: string;
3
4
  value: string;
4
5
  description?: string;
5
6
  disabled?: boolean;
7
+ /** An icon in a tile at the top of the option; drawn by the `card` variant only. */
8
+ icon?: Component;
6
9
  };
7
10
  type __VLS_Props = {
8
11
  modelValue?: string;
9
12
  options: RadioOption[];
10
13
  orientation?: 'vertical' | 'horizontal';
11
14
  disabled?: boolean;
15
+ /** `card` draws each option as a choice card (a wizard step's options); the radio dot stays. */
16
+ variant?: 'default' | 'card';
12
17
  };
13
18
  declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
19
  "update:modelValue": (value: string) => any;
15
20
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
16
21
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
17
22
  }>, {
23
+ variant: "default" | "card";
18
24
  disabled: boolean;
19
25
  orientation: "vertical" | "horizontal";
20
26
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
@@ -8,7 +8,7 @@ type __VLS_Props = {
8
8
  ariaLabelledby?: string;
9
9
  /** Disables every item of the group. */
10
10
  disabled?: boolean;
11
- /** `sheet` draws joined sheet tabs on a rule, as above a table, instead of a segmented control. */
11
+ /** Toolbar view switcher; use RadioGroup for form choices. `sheet` draws joined tabs on a rule. */
12
12
  variant?: SegmentVariant;
13
13
  };
14
14
  declare var __VLS_1: {};
@@ -2,8 +2,13 @@ type __VLS_Props = {
2
2
  modelValue?: boolean;
3
3
  disabled?: boolean;
4
4
  label?: string;
5
+ description?: string;
5
6
  };
6
- declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ declare var __VLS_14: {};
8
+ type __VLS_Slots = {} & {
9
+ description?: (props: typeof __VLS_14) => any;
10
+ };
11
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
12
  "update:modelValue": (value: boolean) => any;
8
13
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
9
14
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
@@ -11,5 +16,11 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
11
16
  disabled: boolean;
12
17
  modelValue: boolean;
13
18
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
19
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
14
20
  declare const _default: typeof __VLS_export;
15
21
  export default _default;
22
+ type __VLS_WithSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };