@geniusdynamics/ns8-ui-lib 1.0.0 → 1.0.2

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 (38) hide show
  1. package/dist/index.d.ts +9 -0
  2. package/dist/ns8-ui-lib.css +1 -0
  3. package/dist/ns8-ui-lib.es.js +18164 -2179
  4. package/dist/ns8-ui-lib.es.js.map +1 -1
  5. package/dist/ns8-ui-lib.umd.js +18 -6
  6. package/dist/ns8-ui-lib.umd.js.map +1 -1
  7. package/dist/src/components/NS/cards/NSBackupCard.vue.d.ts +1 -1
  8. package/dist/src/components/NS/cards/NSSystemInfoCard.vue.d.ts +1 -1
  9. package/dist/src/components/NS/cards/NSSystemdServiceCard.vue.d.ts +2 -2
  10. package/dist/src/components/NS/empty-state/NSEmptyState.vue.d.ts +1 -1
  11. package/dist/src/components/NS/lottie-animation/NSLottieAnimation.vue.d.ts +1 -1
  12. package/dist/src/components/NS/pagination/NSPagination.vue.d.ts +1 -1
  13. package/dist/src/components/NS/progress/NSProgress.vue.d.ts +1 -1
  14. package/dist/src/components/NS/progress/NSProgressBar.vue.d.ts +1 -1
  15. package/dist/src/components/NS/tag/NSTag.vue.d.ts +1 -1
  16. package/dist/src/components/NS/toggle/NSToggle.vue.d.ts +1 -1
  17. package/dist/src/components/ui/badge/Badge.vue.d.ts +24 -0
  18. package/dist/src/components/ui/badge/index.d.ts +6 -0
  19. package/dist/src/components/ui/checkbox/NsCheckbox.vue.d.ts +1 -1
  20. package/dist/src/components/ui/empty-state/NsEmptyState.vue.d.ts +1 -1
  21. package/dist/src/components/ui/inline-notification/NsInlineNotification.vue.d.ts +1 -1
  22. package/dist/src/components/ui/inline-notification/index.d.ts +1 -1
  23. package/dist/src/components/ui/input-group/InputGroupButton.vue.d.ts +1 -1
  24. package/dist/src/components/ui/item/index.d.ts +1 -1
  25. package/dist/src/components/ui/progress/Progress.vue.d.ts +9 -0
  26. package/dist/src/components/ui/progress/index.d.ts +1 -0
  27. package/dist/src/components/ui/sidebar/SidebarMenuButton.vue.d.ts +1 -1
  28. package/dist/src/components/ui/sidebar/SidebarMenuButtonChild.vue.d.ts +1 -1
  29. package/dist/src/components/ui/sidebar/SidebarMenuSubButton.vue.d.ts +1 -1
  30. package/dist/src/components/ui/tag/NsTag.vue.d.ts +1 -1
  31. package/dist/src/components/ui/tag/index.d.ts +1 -1
  32. package/dist/src/components/ui/text-input/NsTextInput.vue.d.ts +3 -3
  33. package/dist/src/components/ui/text-input/index.d.ts +3 -3
  34. package/dist/src/components/ui/toggle/NsToggle.vue.d.ts +3 -3
  35. package/dist/src/components/ui/toggle/index.d.ts +2 -2
  36. package/package.json +1 -1
  37. package/src/components/ui/badge/Badge.vue +26 -0
  38. package/src/components/ui/progress/Progress.vue +38 -0
@@ -39,8 +39,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
39
39
  onDisable?: ((backupId: string) => any) | undefined;
40
40
  }>, {
41
41
  title: string;
42
- status: Status;
43
42
  loading: boolean;
43
+ status: Status;
44
44
  backups: Backup[];
45
45
  noBackupMessage: string;
46
46
  statusLabel: string;
@@ -42,8 +42,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
42
42
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
43
43
  onRefresh?: (() => any) | undefined;
44
44
  }>, {
45
- title: string;
46
45
  description: string;
46
+ title: string;
47
47
  loading: boolean;
48
48
  light: boolean;
49
49
  showUptime: boolean;
@@ -35,10 +35,10 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
35
35
  onEnable?: ((serviceName: string) => any) | undefined;
36
36
  onDisable?: ((serviceName: string) => any) | undefined;
37
37
  }>, {
38
- title: string;
39
- status: ServiceStatus;
40
38
  description: string;
39
+ title: string;
41
40
  loading: boolean;
41
+ status: ServiceStatus;
42
42
  light: boolean;
43
43
  serviceName: string;
44
44
  showUptime: boolean;
@@ -30,8 +30,8 @@ declare function __VLS_template(): {
30
30
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
31
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
32
32
  title: string;
33
- size: "default" | "sm" | "lg";
34
33
  variant: "default" | "muted";
34
+ size: "default" | "sm" | "lg";
35
35
  loop: boolean | number;
36
36
  animateOnHover: boolean;
37
37
  autoPlay: boolean;
@@ -56,11 +56,11 @@ declare const _default: import('vue').DefineComponent<Props, {
56
56
  onMouseOver?: (() => any) | undefined;
57
57
  onMouseOut?: (() => any) | undefined;
58
58
  }>, {
59
- preserveAspectRatio: string;
60
59
  height: number | string;
61
60
  width: number | string;
62
61
  role: string;
63
62
  direction: number;
63
+ preserveAspectRatio: string;
64
64
  speed: number;
65
65
  loop: boolean;
66
66
  autoplay: boolean;
@@ -23,8 +23,8 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
23
23
  "onPage-change"?: ((page: number) => any) | undefined;
24
24
  "onSize-change"?: ((size: number) => any) | undefined;
25
25
  }>, {
26
- size: "sm" | "default" | "lg";
27
26
  disabled: boolean;
27
+ size: "sm" | "default" | "lg";
28
28
  currentPage: number;
29
29
  itemsPerPage: number;
30
30
  showSizeChanger: boolean;
@@ -22,10 +22,10 @@ declare function __VLS_template(): {
22
22
  };
23
23
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
24
24
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
25
- size: "default" | "sm" | "lg";
26
25
  indeterminate: boolean;
27
26
  max: number;
28
27
  variant: "default" | "destructive" | "success" | "warning" | "info";
28
+ size: "default" | "sm" | "lg";
29
29
  showLabel: boolean;
30
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
31
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -23,10 +23,10 @@ declare function __VLS_template(): {
23
23
  };
24
24
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
25
25
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
26
- size: "default" | "sm" | "lg";
27
26
  indeterminate: boolean;
28
27
  max: number;
29
28
  variant: "default" | "destructive" | "success" | "warning" | "info";
29
+ size: "default" | "sm" | "lg";
30
30
  showLabel: boolean;
31
31
  animated: boolean;
32
32
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
@@ -26,8 +26,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
26
26
  onRemove?: (() => any) | undefined;
27
27
  onClick?: ((event: Event) => any) | undefined;
28
28
  }>, {
29
- size: "default" | "sm" | "lg";
30
29
  variant: "default" | "secondary" | "destructive" | "outline" | "success" | "warning" | "info" | "gray";
30
+ size: "default" | "sm" | "lg";
31
31
  interactive: boolean;
32
32
  removable: boolean;
33
33
  clearAriaLabel: string;
@@ -37,10 +37,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
37
37
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
38
38
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
39
39
  }>, {
40
- size: "default" | "sm" | "lg";
41
40
  leftText: string;
42
41
  rightText: string;
43
42
  variant: "default" | "destructive" | "success" | "warning";
43
+ size: "default" | "sm" | "lg";
44
44
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
45
45
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
46
46
  export default _default;
@@ -0,0 +1,24 @@
1
+ import { PrimitiveProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ import { BadgeVariants } from '.';
4
+ type __VLS_Props = PrimitiveProps & {
5
+ variant?: BadgeVariants["variant"];
6
+ class?: HTMLAttributes["class"];
7
+ };
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {};
14
+ rootEl: any;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
19
+ export default _default;
20
+ type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
@@ -0,0 +1,6 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ export { default as Badge } from './Badge.vue';
3
+ export declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ export type BadgeVariants = VariantProps<typeof badgeVariants>;
@@ -36,8 +36,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
36
36
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
37
37
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
38
38
  }>, {
39
- size: "default" | "sm" | "lg" | null;
40
39
  variant: "default" | "destructive" | "outline" | null;
40
+ size: "default" | "sm" | "lg" | null;
41
41
  labelVariant: "default" | "destructive" | "muted" | null;
42
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
43
43
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -30,8 +30,8 @@ declare function __VLS_template(): {
30
30
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
31
31
  declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
32
32
  title: string;
33
- size: "default" | "sm" | "lg" | null;
34
33
  variant: "default" | "muted" | null;
34
+ size: "default" | "sm" | "lg" | null;
35
35
  loop: boolean | number;
36
36
  animateOnHover: boolean;
37
37
  autoPlay: boolean;
@@ -30,7 +30,7 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
30
30
  onClose?: (() => any) | undefined;
31
31
  onAction?: (() => any) | undefined;
32
32
  }>, {
33
- variant: "success" | "warning" | "info" | "default" | "destructive" | null;
33
+ variant: "default" | "destructive" | "warning" | "success" | "info" | null;
34
34
  showCloseButton: boolean;
35
35
  closeAriaLabel: string;
36
36
  loading: boolean;
@@ -1,6 +1,6 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  export { default as NsInlineNotification } from './NsInlineNotification.vue';
3
3
  export declare const inlineNotificationVariants: (props?: ({
4
- variant?: "success" | "warning" | "info" | "default" | "destructive" | null | undefined;
4
+ variant?: "default" | "destructive" | "warning" | "success" | "info" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export type InlineNotificationVariants = VariantProps<typeof inlineNotificationVariants>;
@@ -10,8 +10,8 @@ declare function __VLS_template(): {
10
10
  };
11
11
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
12
  declare const __VLS_component: import('vue').DefineComponent<InputGroupButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<InputGroupButtonProps> & Readonly<{}>, {
13
- size: "sm" | "icon-sm" | "xs" | "icon-xs" | null;
14
13
  variant: cn["variant"];
14
+ size: "sm" | "icon-sm" | "xs" | "icon-xs" | null;
15
15
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
16
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
17
  export default _default;
@@ -14,7 +14,7 @@ export declare const itemVariants: (props?: ({
14
14
  size?: "default" | "sm" | null | undefined;
15
15
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
16
16
  export declare const itemMediaVariants: (props?: ({
17
- variant?: "image" | "default" | "icon" | null | undefined;
17
+ variant?: "default" | "image" | "icon" | null | undefined;
18
18
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
19
19
  export type ItemVariants = VariantProps<typeof itemVariants>;
20
20
  export type ItemMediaVariants = VariantProps<typeof itemMediaVariants>;
@@ -0,0 +1,9 @@
1
+ import { ProgressRootProps } from 'reka-ui';
2
+ import { HTMLAttributes } from 'vue';
3
+ type __VLS_Props = ProgressRootProps & {
4
+ class?: HTMLAttributes["class"];
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
7
+ modelValue: number | null;
8
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as Progress } from './Progress.vue';
@@ -14,9 +14,9 @@ declare function __VLS_template(): {
14
14
  };
15
15
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
16
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
17
- size: "default" | "sm" | "lg" | null;
18
17
  as: import('reka-ui').AsTag | Component;
19
18
  variant: "default" | "outline" | null;
19
+ size: "default" | "sm" | "lg" | null;
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
22
  export default _default;
@@ -17,9 +17,9 @@ declare function __VLS_template(): {
17
17
  };
18
18
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
19
  declare const __VLS_component: import('vue').DefineComponent<SidebarMenuButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<SidebarMenuButtonProps> & Readonly<{}>, {
20
- size: "default" | "sm" | "lg" | null;
21
20
  as: import('reka-ui').AsTag | import('vue').Component;
22
21
  variant: "default" | "outline" | null;
22
+ size: "default" | "sm" | "lg" | null;
23
23
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
24
24
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
25
  export default _default;
@@ -15,8 +15,8 @@ declare function __VLS_template(): {
15
15
  };
16
16
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
17
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
18
- size: "sm" | "md";
19
18
  as: import('reka-ui').AsTag | import('vue').Component;
19
+ size: "sm" | "md";
20
20
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
21
21
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
22
22
  export default _default;
@@ -27,8 +27,8 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
27
27
  onRemove?: (() => any) | undefined;
28
28
  onClick?: ((event: Event) => any) | undefined;
29
29
  }>, {
30
+ variant: "default" | "destructive" | "warning" | "success" | "secondary" | "outline" | "info" | "gray" | null;
30
31
  size: "default" | "sm" | "lg" | null;
31
- variant: "success" | "warning" | "info" | "default" | "destructive" | "secondary" | "outline" | "gray" | null;
32
32
  interactive: boolean;
33
33
  removable: boolean;
34
34
  clearAriaLabel: string;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  export { default as NsTag } from './NsTag.vue';
3
3
  export declare const tagVariants: (props?: ({
4
- variant?: "success" | "warning" | "info" | "default" | "destructive" | "secondary" | "outline" | "gray" | null | undefined;
4
+ variant?: "default" | "destructive" | "warning" | "success" | "secondary" | "outline" | "info" | "gray" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | null | undefined;
6
6
  interactive?: boolean | null | undefined;
7
7
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
@@ -62,10 +62,10 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
62
62
  onChange?: ((event: Event) => any) | undefined;
63
63
  }>, {
64
64
  type: string;
65
- size: "default" | "sm" | "lg" | null;
66
65
  showPasswordToggle: boolean;
67
- variant: "success" | "warning" | "default" | "destructive" | null;
68
- labelVariant: "success" | "warning" | "default" | "destructive" | "muted" | null;
66
+ variant: "default" | "destructive" | "warning" | "success" | null;
67
+ size: "default" | "sm" | "lg" | null;
68
+ labelVariant: "default" | "destructive" | "warning" | "success" | "muted" | null;
69
69
  validateOnChange: boolean;
70
70
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
71
71
  inputRef: HTMLInputElement;
@@ -1,14 +1,14 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  export { default as NsTextInput } from './NsTextInput.vue';
3
3
  export declare const textInputVariants: (props?: ({
4
- variant?: "success" | "warning" | "default" | "destructive" | null | undefined;
4
+ variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export declare const labelVariants: (props?: ({
8
- variant?: "success" | "warning" | "default" | "destructive" | "muted" | null | undefined;
8
+ variant?: "default" | "destructive" | "warning" | "success" | "muted" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
10
  export declare const helperTextVariants: (props?: ({
11
- variant?: "success" | "warning" | "default" | "destructive" | null | undefined;
11
+ variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
12
12
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
13
  export type TextInputVariants = VariantProps<typeof textInputVariants>;
14
14
  export type LabelVariants = VariantProps<typeof labelVariants>;
@@ -39,11 +39,11 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {},
39
39
  "onUpdate:checked"?: ((value: boolean) => any) | undefined;
40
40
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
41
41
  }>, {
42
- size: "default" | "sm" | "lg" | null;
43
42
  leftText: string;
44
43
  rightText: string;
45
- variant: "success" | "warning" | "default" | "destructive" | null;
46
- labelVariant: "success" | "warning" | "default" | "destructive" | "muted" | null;
44
+ variant: "default" | "destructive" | "warning" | "success" | null;
45
+ size: "default" | "sm" | "lg" | null;
46
+ labelVariant: "default" | "destructive" | "warning" | "success" | "muted" | null;
47
47
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
48
48
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
49
49
  export default _default;
@@ -1,14 +1,14 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  export { default as NsToggle } from './NsToggle.vue';
3
3
  export declare const toggleVariants: (props?: ({
4
- variant?: "success" | "warning" | "default" | "destructive" | null | undefined;
4
+ variant?: "default" | "destructive" | "warning" | "success" | null | undefined;
5
5
  size?: "default" | "sm" | "lg" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export declare const toggleThumbVariants: (props?: ({
8
8
  size?: "default" | "sm" | "lg" | null | undefined;
9
9
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
10
10
  export declare const labelVariants: (props?: ({
11
- variant?: "success" | "warning" | "default" | "destructive" | "muted" | null | undefined;
11
+ variant?: "default" | "destructive" | "warning" | "success" | "muted" | null | undefined;
12
12
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
13
13
  export type ToggleVariants = VariantProps<typeof toggleVariants>;
14
14
  export type ToggleThumbVariants = VariantProps<typeof toggleThumbVariants>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@geniusdynamics/ns8-ui-lib",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Vue 3 library for NethServer 8 UI with TailwindCSS and Shadcn Vue",
5
5
  "keywords": [
6
6
  "nethserver",
@@ -0,0 +1,26 @@
1
+ <script setup lang="ts">
2
+ import type { PrimitiveProps } from "reka-ui"
3
+ import type { HTMLAttributes } from "vue"
4
+ import type { BadgeVariants } from "."
5
+ import { reactiveOmit } from "@vueuse/core"
6
+ import { Primitive } from "reka-ui"
7
+ import { cn } from "@/lib/utils"
8
+ import { badgeVariants } from "."
9
+
10
+ const props = defineProps<PrimitiveProps & {
11
+ variant?: BadgeVariants["variant"]
12
+ class?: HTMLAttributes["class"]
13
+ }>()
14
+
15
+ const delegatedProps = reactiveOmit(props, "class")
16
+ </script>
17
+
18
+ <template>
19
+ <Primitive
20
+ data-slot="badge"
21
+ :class="cn(badgeVariants({ variant }), props.class)"
22
+ v-bind="delegatedProps"
23
+ >
24
+ <slot />
25
+ </Primitive>
26
+ </template>
@@ -0,0 +1,38 @@
1
+ <script setup lang="ts">
2
+ import type { ProgressRootProps } from "reka-ui"
3
+ import type { HTMLAttributes } from "vue"
4
+ import { reactiveOmit } from "@vueuse/core"
5
+ import {
6
+ ProgressIndicator,
7
+ ProgressRoot,
8
+ } from "reka-ui"
9
+ import { cn } from "@/lib/utils"
10
+
11
+ const props = withDefaults(
12
+ defineProps<ProgressRootProps & { class?: HTMLAttributes["class"] }>(),
13
+ {
14
+ modelValue: 0,
15
+ },
16
+ )
17
+
18
+ const delegatedProps = reactiveOmit(props, "class")
19
+ </script>
20
+
21
+ <template>
22
+ <ProgressRoot
23
+ data-slot="progress"
24
+ v-bind="delegatedProps"
25
+ :class="
26
+ cn(
27
+ 'bg-primary/20 relative h-2 w-full overflow-hidden rounded-full',
28
+ props.class,
29
+ )
30
+ "
31
+ >
32
+ <ProgressIndicator
33
+ data-slot="progress-indicator"
34
+ class="bg-primary h-full w-full flex-1 transition-all"
35
+ :style="`transform: translateX(-${100 - (props.modelValue ?? 0)}%);`"
36
+ />
37
+ </ProgressRoot>
38
+ </template>