@nubisco/ui 1.55.0 → 1.56.0

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.
@@ -12,8 +12,8 @@ enum EAiLabelSize {
12
12
  // #endregion EAiLabelSize
13
13
 
14
14
  interface IAiLabelProps {
15
- variant?: EAiLabelVariant
16
- size?: EAiLabelSize
15
+ variant?: `${EAiLabelVariant}`
16
+ size?: `${EAiLabelSize}`
17
17
  }
18
18
 
19
19
  export { EAiLabelVariant, EAiLabelSize, IAiLabelProps }
@@ -1,7 +1,7 @@
1
1
  import { EAiLabelVariant, EAiLabelSize, IAiLabelProps } from './AiLabel.d';
2
2
  declare const __VLS_export: import("vue").DefineComponent<IAiLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IAiLabelProps> & Readonly<{}>, {
3
- variant: EAiLabelVariant;
4
- size: EAiLabelSize;
3
+ variant: `${EAiLabelVariant}`;
4
+ size: `${EAiLabelSize}`;
5
5
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
7
7
  export default _default;
@@ -15,8 +15,8 @@ enum EBadgeSize {
15
15
  }
16
16
 
17
17
  interface IBadgeProps {
18
- variant?: EBadgeVariant
19
- size?: EBadgeSize
18
+ variant?: `${EBadgeVariant}`
19
+ size?: `${EBadgeSize}`
20
20
  dot?: boolean
21
21
  }
22
22
 
@@ -4,8 +4,8 @@ type __VLS_Slots = {} & {
4
4
  default?: (props: typeof __VLS_1) => any;
5
5
  };
6
6
  declare const __VLS_base: import("vue").DefineComponent<IBadgeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IBadgeProps> & Readonly<{}>, {
7
- variant: EBadgeVariant;
8
- size: EBadgeSize;
7
+ variant: `${EBadgeVariant}`;
8
+ size: `${EBadgeSize}`;
9
9
  dot: boolean;
10
10
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
11
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -16,7 +16,7 @@ enum EButtonType {
16
16
  * rejected four sizes the component has always styled. The raw literals sit
17
17
  * alongside the enum so templates can write `size="xs"` without importing it.
18
18
  */
19
- type TButtonSize = ESize | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl'
19
+ type TButtonSize = `${ESize}`
20
20
 
21
21
  interface IButtonProps {
22
22
  variant?: string
@@ -27,7 +27,7 @@ interface IButtonProps {
27
27
  /** Icon name passed directly to NbIcon. Rendered in the trailing padding area. Hidden while loading. */
28
28
  icon?: string
29
29
  /** Native button type. Ignored when `href` is provided. */
30
- type?: EButtonType
30
+ type?: `${EButtonType}`
31
31
  /** When provided the component renders as an `<a>` element instead of `<button>`. */
32
32
  href?: string
33
33
  /** Forwarded to the `<a>` element. Only used when `href` is set. */
@@ -10,7 +10,7 @@ declare const __VLS_base: import("vue").DefineComponent<IButtonProps, {}, {}, {}
10
10
  }>, {
11
11
  variant: string;
12
12
  size: import("./Button.d").TButtonSize;
13
- type: EButtonType;
13
+ type: `${EButtonType}`;
14
14
  to: string | Record<string, unknown>;
15
15
  icon: string;
16
16
  outlined: boolean;
@@ -11,7 +11,7 @@ enum ECheckboxGroupDirection {
11
11
 
12
12
  interface ICheckboxGroupProps
13
13
  extends IHumanInputComponent, IWithLabel, IWithMessages {
14
- direction?: ECheckboxGroupDirection
14
+ direction?: `${ECheckboxGroupDirection}`
15
15
  }
16
16
 
17
17
  export { ECheckboxGroupDirection, ICheckboxGroupProps }
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
6
6
  declare const __VLS_base: import("vue").DefineComponent<ICheckboxGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ICheckboxGroupProps> & Readonly<{}>, {
7
7
  warning: string;
8
8
  error: string;
9
- direction: ECheckboxGroupDirection;
9
+ direction: `${ECheckboxGroupDirection}`;
10
10
  id: string;
11
11
  disabled: boolean;
12
12
  helper: string;
@@ -81,7 +81,7 @@ export interface IDataTableProps<T = Record<string, unknown>> {
81
81
  /** Row identity. See {@link TRowKey}. */
82
82
  rowKey: TRowKey<T>
83
83
  /** Density. Matches the shared `ESizeShort` scale. Default `md`. */
84
- size?: ESizeShort | 'sm' | 'md' | 'lg'
84
+ size?: `${ESizeShort}`
85
85
  /** Controlled sort state, reflected in header UI and `aria-sort`. */
86
86
  sortState?: IDataTableSortState | null
87
87
  /** Row selection mode. Default `none`. */
@@ -9,7 +9,7 @@ enum EFileUploaderStatus {
9
9
 
10
10
  interface IFileItem {
11
11
  file: File
12
- status: EFileUploaderStatus
12
+ status: `${EFileUploaderStatus}`
13
13
  error?: string
14
14
  }
15
15
 
@@ -17,7 +17,7 @@ interface IFileUploaderProps extends IDefaultProps {
17
17
  heading?: string
18
18
  description?: string
19
19
  buttonLabel?: string
20
- variant?: EVariant
20
+ variant?: `${EVariant}`
21
21
  accept?: string
22
22
  multiple?: boolean
23
23
  maxSize?: number
@@ -16,7 +16,7 @@ declare const __VLS_export: import("vue").DefineComponent<IFileUploaderProps, {
16
16
  stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
17
17
  text: () => Promise<string>;
18
18
  };
19
- status: EFileUploaderStatus;
19
+ status: `${EFileUploaderStatus}`;
20
20
  error?: string | undefined;
21
21
  }[], IFileItem[] | {
22
22
  file: {
@@ -31,7 +31,7 @@ declare const __VLS_export: import("vue").DefineComponent<IFileUploaderProps, {
31
31
  stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
32
32
  text: () => Promise<string>;
33
33
  };
34
- status: EFileUploaderStatus;
34
+ status: `${EFileUploaderStatus}`;
35
35
  error?: string | undefined;
36
36
  }[]>;
37
37
  setFileStatus: typeof setFileStatus;
@@ -42,7 +42,7 @@ declare const __VLS_export: import("vue").DefineComponent<IFileUploaderProps, {
42
42
  onChange?: ((files: File[]) => any) | undefined;
43
43
  onRemove?: ((file: File) => any) | undefined;
44
44
  }>, {
45
- variant: EVariant;
45
+ variant: `${EVariant}`;
46
46
  multiple: boolean;
47
47
  buttonLabel: string;
48
48
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -47,10 +47,10 @@ enum EIconSize {
47
47
  interface IIconProps {
48
48
  name: string
49
49
  size?: ESize | string | number
50
- animation?: EAnimation | null
51
- animationMode?: EAnimationMode
50
+ animation?: `${EAnimation}` | null
51
+ animationMode?: `${EAnimationMode}`
52
52
  color?: string
53
- weight?: EWeight
53
+ weight?: `${EWeight}`
54
54
  title?: string
55
55
  clickable?: boolean
56
56
  hoverable?: boolean
@@ -7,10 +7,10 @@ declare const __VLS_export: import("vue").DefineComponent<IIconProps, {}, {}, {}
7
7
  }>, {
8
8
  size: ESize | string | number;
9
9
  title: string;
10
- animation: import("./Icon.d").EAnimation | null;
10
+ animation: `${import("./Icon.d").EAnimation}` | null;
11
11
  color: string;
12
- animationMode: EAnimationMode;
13
- weight: EWeight;
12
+ animationMode: `${EAnimationMode}`;
13
+ weight: `${EWeight}`;
14
14
  clickable: boolean;
15
15
  hoverable: boolean;
16
16
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -8,7 +8,7 @@ interface ILabelProps {
8
8
  required?: boolean
9
9
  disabled?: boolean
10
10
  // Visual size of the label text
11
- size?: ELabelSize
11
+ size?: `${ELabelSize}`
12
12
  }
13
13
 
14
14
  export { ELabelSize, ILabelProps }
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
6
6
  suffix?: (props: typeof __VLS_3) => any;
7
7
  };
8
8
  declare const __VLS_base: import("vue").DefineComponent<ILabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ILabelProps> & Readonly<{}>, {
9
- size: ELabelSize;
9
+ size: `${ELabelSize}`;
10
10
  required: boolean;
11
11
  disabled: boolean;
12
12
  htmlFor: string;
@@ -3,7 +3,7 @@ import { ESizeShort } from '../types/Size.d'
3
3
  interface IModalProps {
4
4
  open?: boolean
5
5
  title?: string
6
- size?: ESizeShort
6
+ size?: `${ESizeShort}`
7
7
  closeOnOverlay?: boolean
8
8
  }
9
9
 
@@ -13,7 +13,7 @@ declare const __VLS_base: import("vue").DefineComponent<IModalProps, {}, {}, {},
13
13
  }, string, import("vue").PublicProps, Readonly<IModalProps> & Readonly<{
14
14
  onClose?: (() => any) | undefined;
15
15
  }>, {
16
- size: ESizeShort;
16
+ size: `${ESizeShort}`;
17
17
  title: string;
18
18
  open: boolean;
19
19
  closeOnOverlay: boolean;
@@ -16,7 +16,7 @@ export interface IPaginationProps {
16
16
  /** Selectable page sizes. Default `[10, 20, 30, 40, 50]`. */
17
17
  pageSizeOptions?: number[]
18
18
  /** Control density. Matches the shared `ESizeShort` scale. Default `md`. */
19
- size?: ESizeShort | 'sm' | 'md' | 'lg'
19
+ size?: `${ESizeShort}`
20
20
  /** Disables all controls. */
21
21
  disabled?: boolean
22
22
  /** Label before the page-size select. Default `Items per page:`. */
@@ -7,7 +7,7 @@ declare const __VLS_export: import("vue").DefineComponent<IPaginationProps, {},
7
7
  "onUpdate:page"?: ((page: number) => any) | undefined;
8
8
  "onUpdate:pageSize"?: ((pageSize: number) => any) | undefined;
9
9
  }>, {
10
- size: ESizeShort | "sm" | "md" | "lg";
10
+ size: `${ESizeShort}`;
11
11
  disabled: boolean;
12
12
  pageSizeOptions: number[];
13
13
  pageSizeLabel: string;
@@ -19,9 +19,9 @@ interface IProgressBarProps extends IDefaultProps, IWithLabel {
19
19
  /** Contextual hint below the bar. Rendered in the error style when `status` is `error`. */
20
20
  helper?: string
21
21
  /** Track thickness: `md` is 8px, `sm` is 4px. */
22
- size?: EProgressBarSize
22
+ size?: `${EProgressBarSize}`
23
23
  /** Semantic state. `finished` and `error` fill the bar and recolor it. */
24
- status?: EProgressBarStatus
24
+ status?: `${EProgressBarStatus}`
25
25
  }
26
26
 
27
27
  export { EProgressBarSize, EProgressBarStatus, IProgressBarProps }
@@ -1,9 +1,9 @@
1
1
  import { EProgressBarSize, EProgressBarStatus, IProgressBarProps } from './ProgressBar.d';
2
2
  declare const __VLS_export: import("vue").DefineComponent<IProgressBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IProgressBarProps> & Readonly<{}>, {
3
- size: EProgressBarSize;
3
+ size: `${EProgressBarSize}`;
4
4
  max: number;
5
5
  id: string;
6
- status: EProgressBarStatus;
6
+ status: `${EProgressBarStatus}`;
7
7
  helper: string;
8
8
  value: number;
9
9
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -20,7 +20,7 @@ interface IRadioProps extends IHumanInputComponent, IWithLabel, IWithMessages {
20
20
  options: IRadioOption[]
21
21
  /** Required for native radio-button grouping via the HTML `name` attribute. */
22
22
  name: string
23
- direction?: ERadioDirection
23
+ direction?: `${ERadioDirection}`
24
24
  /** Makes options visible but non-interactive. */
25
25
  readonly?: boolean
26
26
  }
@@ -6,7 +6,7 @@ declare const __VLS_export: import("vue").DefineComponent<IRadioProps, {}, {}, {
6
6
  }>, {
7
7
  warning: string;
8
8
  error: string;
9
- direction: ERadioDirection;
9
+ direction: `${ERadioDirection}`;
10
10
  id: string;
11
11
  disabled: boolean;
12
12
  helper: string;
@@ -13,8 +13,8 @@ enum ESwitchVariant {
13
13
 
14
14
  interface ISwitchProps extends IHumanInputComponent, IWithLabel {
15
15
  modelValue?: boolean
16
- variant?: ESwitchVariant
17
- size?: ESwitchSize
16
+ variant?: `${ESwitchVariant}`
17
+ size?: `${ESwitchSize}`
18
18
  }
19
19
 
20
20
  export { ESwitchSize, ESwitchVariant, ISwitchProps }
@@ -10,9 +10,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
10
10
  default: string;
11
11
  };
12
12
  size: {
13
- type: PropType<ESwitchSize>;
13
+ type: PropType<`${ESwitchSize}`>;
14
14
  default: ESwitchSize;
15
- validator: (value: ESwitchSize) => boolean;
15
+ validator: (value: `${ESwitchSize}`) => boolean;
16
16
  };
17
17
  verbose: BooleanConstructor;
18
18
  name: {
@@ -21,9 +21,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
21
21
  };
22
22
  disabled: BooleanConstructor;
23
23
  variant: {
24
- type: PropType<ESwitchVariant>;
24
+ type: PropType<`${ESwitchVariant}`>;
25
25
  default: ESwitchVariant;
26
- validator: (value: ESwitchVariant) => boolean;
26
+ validator: (value: `${ESwitchVariant}`) => boolean;
27
27
  };
28
28
  modelValue: {
29
29
  type: PropType<boolean>;
@@ -40,9 +40,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
40
40
  default: string;
41
41
  };
42
42
  size: {
43
- type: PropType<ESwitchSize>;
43
+ type: PropType<`${ESwitchSize}`>;
44
44
  default: ESwitchSize;
45
- validator: (value: ESwitchSize) => boolean;
45
+ validator: (value: `${ESwitchSize}`) => boolean;
46
46
  };
47
47
  verbose: BooleanConstructor;
48
48
  name: {
@@ -51,9 +51,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
51
51
  };
52
52
  disabled: BooleanConstructor;
53
53
  variant: {
54
- type: PropType<ESwitchVariant>;
54
+ type: PropType<`${ESwitchVariant}`>;
55
55
  default: ESwitchVariant;
56
- validator: (value: ESwitchVariant) => boolean;
56
+ validator: (value: `${ESwitchVariant}`) => boolean;
57
57
  };
58
58
  modelValue: {
59
59
  type: PropType<boolean>;
@@ -61,8 +61,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
61
61
  }>> & Readonly<{
62
62
  "onUpdate:modelValue"?: ((value: boolean | undefined) => any) | undefined;
63
63
  }>, {
64
- variant: ESwitchVariant;
65
- size: ESwitchSize;
64
+ variant: "primary" | "secondary";
65
+ size: "sm" | "md" | "lg";
66
66
  label: string;
67
67
  id: string;
68
68
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.vue.d.ts","sourceRoot":"","sources":["../../src/components/Switch.vue"],"names":[],"mappings":"AA0QA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAmKxD,QAAA,MAAM,YAAY;;;;;;;;;;cAcE,QAAQ,CAAC,WAAW,CAAC;;2BAElB,WAAW;;;;;;;;;cAUd,QAAQ,CAAC,cAAc,CAAC;;2BAErB,cAAc;;;;;;;;;;;;;;;;;cAdjB,QAAQ,CAAC,WAAW,CAAC;;2BAElB,WAAW;;;;;;;;;cAUd,QAAQ,CAAC,cAAc,CAAC;;2BAErB,cAAc;;;;;;;;;;;;;;4EAKnC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"Switch.vue.d.ts","sourceRoot":"","sources":["../../src/components/Switch.vue"],"names":[],"mappings":"AA6QA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAsKxD,QAAA,MAAM,YAAY;;;;;;;;;;cAiBE,QAAQ,CAAC,GAAG,WAAW,EAAE,CAAC;;2BAEvB,GAAG,WAAW,EAAE;;;;;;;;;cAUnB,QAAQ,CAAC,GAAG,cAAc,EAAE,CAAC;;2BAE1B,GAAG,cAAc,EAAE;;;;;;;;;;;;;;;;;cAdtB,QAAQ,CAAC,GAAG,WAAW,EAAE,CAAC;;2BAEvB,GAAG,WAAW,EAAE;;;;;;;;;cAUnB,QAAQ,CAAC,GAAG,cAAc,EAAE,CAAC;;2BAE1B,GAAG,cAAc,EAAE;;;;;;;;;;;;;;4EAKxC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}