@ambita/design-system 6.1.4 → 6.1.5-641.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.
- package/README.md +4 -2
- package/dist/ds.cjs +3 -3
- package/dist/ds.cjs.map +1 -1
- package/dist/ds.js +101 -102
- package/dist/ds.js.map +1 -1
- package/dist/ds.umd.cjs +4 -4
- package/dist/ds.umd.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/themes/ambita-dark.css +1 -1
- package/dist/themes/ambita-light.css +1 -1
- package/dist/themes/ambita-old.css +1 -1
- package/dist/themes/byggesoknaden.css +1 -1
- package/dist/types/components/Accordion/NeoAccordion.vue.d.ts +2 -2
- package/dist/types/components/AuxDirectionalArrow/AuxDirectionalArrow.vue.d.ts +3 -3
- package/dist/types/components/AuxModal/AuxModal.vue.d.ts +4 -4
- package/dist/types/components/AuxSpinner/AuxSpinner.vue.d.ts +3 -3
- package/dist/types/components/AuxStatusBadge/AuxStatusBadge.vue.d.ts +3 -3
- package/dist/types/components/Button/NeoButton.vue.d.ts +2 -2
- package/dist/types/components/Button/NeoLinkButton.vue.d.ts +2 -2
- package/dist/types/components/Button/NeoLoadingButton.vue.d.ts +2 -2
- package/dist/types/components/Input/NeoInput.vue.d.ts +2 -2
- package/dist/types/components/NeoBanner/NeoBanner.vue.d.ts +3 -3
- package/dist/types/components/NeoComboBox/NeoComboBox.vue.d.ts +2 -2
- package/dist/types/components/NeoDatePicker/NeoDatePicker.vue.d.ts +2 -2
- package/dist/types/components/NeoPagination/NeoPagination.vue.d.ts +2 -2
- package/dist/types/components/NeoScrollArea/NeoScrollArea.vue.d.ts +2 -2
- package/dist/types/components/NeoSelect/NeoSelect.vue.d.ts +2 -2
- package/dist/types/components/NeoTagsInput/NeoTag.vue.d.ts +3 -3
- package/dist/types/index.d.ts +19 -4
- package/package.json +31 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface NeoButtonData {
|
|
2
2
|
primary?: boolean;
|
|
3
3
|
secondary?: boolean;
|
|
4
4
|
tertiary?: boolean;
|
|
@@ -16,7 +16,7 @@ type __VLS_Slots = {} & {
|
|
|
16
16
|
} & {
|
|
17
17
|
right?: (props: typeof __VLS_5) => any;
|
|
18
18
|
};
|
|
19
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<NeoButtonData, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NeoButtonData> & Readonly<{}>, {
|
|
20
20
|
primary: boolean;
|
|
21
21
|
disabled: boolean;
|
|
22
22
|
size: "small" | "medium";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface NeoLinkButtonData {
|
|
2
2
|
to?: string;
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
icon?: "left" | "right" | "none";
|
|
@@ -7,7 +7,7 @@ declare var __VLS_13: {};
|
|
|
7
7
|
type __VLS_Slots = {} & {
|
|
8
8
|
default?: (props: typeof __VLS_13) => any;
|
|
9
9
|
};
|
|
10
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
10
|
+
declare const __VLS_base: import("vue").DefineComponent<NeoLinkButtonData, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NeoLinkButtonData> & Readonly<{}>, {
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
icon: "left" | "right" | "none";
|
|
13
13
|
to: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface NeoLoadingButtonData {
|
|
2
2
|
primary?: boolean;
|
|
3
3
|
secondary?: boolean;
|
|
4
4
|
tertiary?: boolean;
|
|
@@ -20,7 +20,7 @@ declare var __VLS_13: {};
|
|
|
20
20
|
type __VLS_Slots = {} & {
|
|
21
21
|
default?: (props: typeof __VLS_13) => any;
|
|
22
22
|
};
|
|
23
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
23
|
+
declare const __VLS_base: import("vue").DefineComponent<NeoLoadingButtonData, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NeoLoadingButtonData> & Readonly<{}>, {
|
|
24
24
|
primary: boolean;
|
|
25
25
|
disabled: boolean;
|
|
26
26
|
size: "small" | "medium";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NeoFormFieldProps } from "@/components/Typography/types.ts";
|
|
2
|
-
interface
|
|
2
|
+
export interface NeoInputData extends NeoFormFieldProps {
|
|
3
3
|
type?: "text" | "email" | "password" | "tel" | "url" | "search" | "number";
|
|
4
4
|
placeholder?: string;
|
|
5
5
|
disabled?: boolean;
|
|
@@ -8,7 +8,7 @@ interface Props extends NeoFormFieldProps {
|
|
|
8
8
|
hasError?: boolean;
|
|
9
9
|
dataTestid?: string;
|
|
10
10
|
}
|
|
11
|
-
type __VLS_Props =
|
|
11
|
+
type __VLS_Props = NeoInputData;
|
|
12
12
|
type __VLS_ModelProps = {
|
|
13
13
|
modelValue?: string | number;
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface NeoBannerData {
|
|
2
2
|
type?: "error" | "warning" | "info" | "success";
|
|
3
3
|
body?: string;
|
|
4
4
|
title?: string;
|
|
@@ -14,9 +14,9 @@ type __VLS_Slots = {} & {
|
|
|
14
14
|
} & {
|
|
15
15
|
footer?: (props: typeof __VLS_16) => any;
|
|
16
16
|
};
|
|
17
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<NeoBannerData, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
18
18
|
dismiss: () => any;
|
|
19
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<NeoBannerData> & Readonly<{
|
|
20
20
|
onDismiss?: (() => any) | undefined;
|
|
21
21
|
}>, {
|
|
22
22
|
body: string;
|
|
@@ -7,7 +7,7 @@ interface OptionGroup {
|
|
|
7
7
|
label: string;
|
|
8
8
|
children: Option[];
|
|
9
9
|
}
|
|
10
|
-
interface
|
|
10
|
+
export interface NeoComboBoxData extends NeoFormFieldProps {
|
|
11
11
|
options?: Option[] | OptionGroup[];
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
disabled?: boolean;
|
|
@@ -15,7 +15,7 @@ interface Props extends NeoFormFieldProps {
|
|
|
15
15
|
multiple?: boolean;
|
|
16
16
|
scrollbarType?: "auto" | "always" | "scroll" | "hover" | "hidden";
|
|
17
17
|
}
|
|
18
|
-
type __VLS_Props =
|
|
18
|
+
type __VLS_Props = NeoComboBoxData;
|
|
19
19
|
type __VLS_ModelProps = {
|
|
20
20
|
modelValue?: string | string[];
|
|
21
21
|
"searchTerm"?: string;
|
|
@@ -16,7 +16,7 @@ import { type DatePickerLabels } from "./datepicker-labels";
|
|
|
16
16
|
* Advanced usage with DateValue: const birthDate = ref(parseDate('2024-03-15'))
|
|
17
17
|
* With custom labels: :labels="{ clear: 'Reset', today: 'Now' }"
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface NeoDatePickerData extends NeoFormFieldProps {
|
|
20
20
|
/** Date placeholder as DateValue or ISO string (YYYY-MM-DD) */
|
|
21
21
|
placeholder?: string | DateValue;
|
|
22
22
|
disabled?: boolean;
|
|
@@ -44,7 +44,7 @@ export interface Props extends NeoFormFieldProps {
|
|
|
44
44
|
/** Custom labels (overrides locale defaults) */
|
|
45
45
|
labels?: Partial<DatePickerLabels>;
|
|
46
46
|
}
|
|
47
|
-
type __VLS_Props =
|
|
47
|
+
type __VLS_Props = NeoDatePickerData;
|
|
48
48
|
type __VLS_ModelProps = {
|
|
49
49
|
/** v-model binding - accepts DateValue, ISO string (YYYY-MM-DD), Date, or undefined. Always emits ISO string. */
|
|
50
50
|
modelValue?: DateValue | Date | string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface NeoPaginationData {
|
|
2
2
|
/** Number of items per page */
|
|
3
3
|
limit?: number;
|
|
4
4
|
/** Total number of items */
|
|
@@ -6,7 +6,7 @@ interface Props {
|
|
|
6
6
|
/** Number of visible page buttons (must be odd, default: 5) */
|
|
7
7
|
width?: number;
|
|
8
8
|
}
|
|
9
|
-
type __VLS_Props =
|
|
9
|
+
type __VLS_Props = NeoPaginationData;
|
|
10
10
|
type __VLS_ModelProps = {
|
|
11
11
|
modelValue?: number;
|
|
12
12
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface
|
|
1
|
+
export interface NeoScrollAreaData {
|
|
2
2
|
scrollbarType?: "auto" | "always" | "scroll" | "hover" | "hidden";
|
|
3
3
|
maxHeight?: string;
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@ declare var __VLS_14: {};
|
|
|
6
6
|
type __VLS_Slots = {} & {
|
|
7
7
|
default?: (props: typeof __VLS_14) => any;
|
|
8
8
|
};
|
|
9
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
9
|
+
declare const __VLS_base: import("vue").DefineComponent<NeoScrollAreaData, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NeoScrollAreaData> & Readonly<{}>, {
|
|
10
10
|
scrollbarType: "auto" | "always" | "scroll" | "hover" | "hidden";
|
|
11
11
|
maxHeight: string;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -7,14 +7,14 @@ interface OptionGroup {
|
|
|
7
7
|
label: string;
|
|
8
8
|
children: Option[];
|
|
9
9
|
}
|
|
10
|
-
interface
|
|
10
|
+
export interface NeoSelectData extends NeoFormFieldProps {
|
|
11
11
|
options?: Option[] | OptionGroup[];
|
|
12
12
|
placeholder?: string;
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
multiple?: boolean;
|
|
15
15
|
scrollbarType?: "auto" | "always" | "scroll" | "hover" | "hidden";
|
|
16
16
|
}
|
|
17
|
-
type __VLS_Props =
|
|
17
|
+
type __VLS_Props = NeoSelectData;
|
|
18
18
|
type __VLS_ModelProps = {
|
|
19
19
|
modelValue?: string | number | (string | number)[];
|
|
20
20
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type TagVariant = "primary" | "secondary";
|
|
2
|
-
interface
|
|
2
|
+
export interface NeoTagData {
|
|
3
3
|
/**
|
|
4
4
|
* Visual variant of the tag
|
|
5
5
|
*/
|
|
@@ -17,9 +17,9 @@ declare var __VLS_1: {};
|
|
|
17
17
|
type __VLS_Slots = {} & {
|
|
18
18
|
default?: (props: typeof __VLS_1) => any;
|
|
19
19
|
};
|
|
20
|
-
declare const __VLS_base: import("vue").DefineComponent<
|
|
20
|
+
declare const __VLS_base: import("vue").DefineComponent<NeoTagData, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
21
|
remove: () => any;
|
|
22
|
-
}, string, import("vue").PublicProps, Readonly<
|
|
22
|
+
}, string, import("vue").PublicProps, Readonly<NeoTagData> & Readonly<{
|
|
23
23
|
onRemove?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
disabled: boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -51,15 +51,30 @@ export { default as NeoFormField } from "@/components/Typography/NeoFormField.vu
|
|
|
51
51
|
export { default as NeoHelperText } from "@/components/Typography/HelperText.vue";
|
|
52
52
|
export { default as NeoLabelText } from "@/components/Typography/LabelText.vue";
|
|
53
53
|
export { default as NeoErrorText } from "@/components/Typography/ErrorText.vue";
|
|
54
|
+
export { useTheme } from "@/composables/useTheme";
|
|
55
|
+
export { formatDate } from "@/helpers/formatters/formatDateAndTime/formatDateAndTime";
|
|
56
|
+
export { formatPrice } from "@/helpers/formatters/formatQuantity/formatAmount";
|
|
57
|
+
export { formatNumber, formatNorwegianOrgNumber, formatNorwegianPhoneNumber, formatNorwegianSocialSecurityNumber, formatNorwegianBankAccountNumber, } from "@/helpers/formatters/formatQuantity/formatNumber";
|
|
58
|
+
export type { NeoAccordionData } from "@/components/Accordion/NeoAccordion.vue";
|
|
59
|
+
export type { NeoBannerData } from "@/components/NeoBanner/NeoBanner.vue";
|
|
60
|
+
export type { NeoButtonData } from "@/components/Button/NeoButton.vue";
|
|
61
|
+
export type { NeoComboBoxData } from "@/components/NeoComboBox/NeoComboBox.vue";
|
|
62
|
+
export type { NeoDatePickerData } from "@/components/NeoDatePicker/NeoDatePicker.vue";
|
|
63
|
+
export type { NeoLinkButtonData } from "@/components/Button/NeoLinkButton.vue";
|
|
64
|
+
export type { NeoLoadingButtonData } from "@/components/Button/NeoLoadingButton.vue";
|
|
65
|
+
export type { NeoPaginationData } from "@/components/NeoPagination/NeoPagination.vue";
|
|
66
|
+
export type { NeoScrollAreaData } from "@/components/NeoScrollArea/NeoScrollArea.vue";
|
|
67
|
+
export type { NeoSelectData } from "@/components/NeoSelect/NeoSelect.vue";
|
|
54
68
|
export type { NeoTab, NeoTabsData } from "@/components/NeoTabs/NeoTabsWrapper.vue";
|
|
69
|
+
export type { NeoTagData } from "@/components/NeoTagsInput/NeoTag.vue";
|
|
55
70
|
export type { AuxCheckboxGroupItem } from "@/components/CheckboxGroup/types";
|
|
56
71
|
export type { AuxNotificationData } from "@/components/AuxNotification/AuxNotification";
|
|
57
72
|
export type { AuxNotificationsData } from "@/components/AuxNotification/AuxNotifications";
|
|
58
73
|
export type { TagVariant } from "@/components/NeoTagsInput/NeoTag.vue";
|
|
59
74
|
export type { TagOption, TagGroup } from "@/components/NeoTagsInput/types";
|
|
60
75
|
export type { PaginationOffset } from "@/components/AuxPagination/types";
|
|
76
|
+
export type { AuxDirectionalArrowData } from "@/components/AuxDirectionalArrow/AuxDirectionalArrow.vue";
|
|
77
|
+
export type { AuxModalData } from "@/components/AuxModal/AuxModal.vue";
|
|
78
|
+
export type { AuxStatusBadgeData } from "@/components/AuxStatusBadge/AuxStatusBadge.vue";
|
|
79
|
+
export type { AuxSpinnerData } from "@/components/AuxSpinner/AuxSpinner.vue";
|
|
61
80
|
export type { ThemeName } from "@/types/theme";
|
|
62
|
-
export { useTheme } from "@/composables/useTheme";
|
|
63
|
-
export { formatDate } from "@/helpers/formatters/formatDateAndTime/formatDateAndTime";
|
|
64
|
-
export { formatPrice } from "@/helpers/formatters/formatQuantity/formatAmount";
|
|
65
|
-
export { formatNumber, formatNorwegianOrgNumber, formatNorwegianPhoneNumber, formatNorwegianSocialSecurityNumber, formatNorwegianBankAccountNumber, } from "@/helpers/formatters/formatQuantity/formatNumber";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambita/design-system",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.5-641.0",
|
|
4
4
|
"homepage": "https://ds.ambita.com/",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,48 +59,48 @@
|
|
|
59
59
|
"reka-ui": "^2.8.2"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@storybook/addon-a11y": "^10.
|
|
63
|
-
"@storybook/addon-docs": "^10.
|
|
64
|
-
"@storybook/addon-links": "^10.
|
|
65
|
-
"@storybook/addon-themes": "10.
|
|
66
|
-
"@storybook/addon-vitest": "^10.
|
|
67
|
-
"@storybook/vue3": "^10.3.
|
|
68
|
-
"@storybook/vue3-vite": "^10.
|
|
62
|
+
"@storybook/addon-a11y": "^10.3.5",
|
|
63
|
+
"@storybook/addon-docs": "^10.3.5",
|
|
64
|
+
"@storybook/addon-links": "^10.3.5",
|
|
65
|
+
"@storybook/addon-themes": "10.3.5",
|
|
66
|
+
"@storybook/addon-vitest": "^10.3.5",
|
|
67
|
+
"@storybook/vue3": "^10.3.5",
|
|
68
|
+
"@storybook/vue3-vite": "^10.3.5",
|
|
69
69
|
"@tsconfig/node-lts": "^24.0.0",
|
|
70
|
-
"@types/jsdom": "^
|
|
71
|
-
"@types/node": "^25.
|
|
72
|
-
"@vitejs/plugin-vue": "^6.0.
|
|
73
|
-
"@vitest/browser-playwright": "^4.
|
|
74
|
-
"@vitest/coverage-v8": "^4.
|
|
75
|
-
"@vue/compiler-core": "^3.5.
|
|
76
|
-
"@vue/eslint-config-typescript": "^14.
|
|
70
|
+
"@types/jsdom": "^28.0.1",
|
|
71
|
+
"@types/node": "^25.6.0",
|
|
72
|
+
"@vitejs/plugin-vue": "^6.0.6",
|
|
73
|
+
"@vitest/browser-playwright": "^4.1.4",
|
|
74
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
75
|
+
"@vue/compiler-core": "^3.5.32",
|
|
76
|
+
"@vue/eslint-config-typescript": "^14.7.0",
|
|
77
77
|
"@vue/test-utils": "^2.4.6",
|
|
78
|
-
"@vue/tsconfig": "^0.9.
|
|
79
|
-
"eslint": "^10.
|
|
78
|
+
"@vue/tsconfig": "^0.9.1",
|
|
79
|
+
"eslint": "^10.2.0",
|
|
80
80
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
81
81
|
"eslint-plugin-import-x": "^4.16.2",
|
|
82
|
-
"eslint-plugin-oxlint": "^1.
|
|
83
|
-
"eslint-plugin-storybook": "^10.
|
|
82
|
+
"eslint-plugin-oxlint": "^1.59.0",
|
|
83
|
+
"eslint-plugin-storybook": "^10.3.5",
|
|
84
84
|
"eslint-plugin-vue": "^10.8.0",
|
|
85
85
|
"husky": "^9.1.7",
|
|
86
|
-
"jsdom": "^
|
|
86
|
+
"jsdom": "^29.0.2",
|
|
87
87
|
"lint-staged": "^16.2.7",
|
|
88
|
-
"oxfmt": "^0.
|
|
89
|
-
"oxlint": "^1.
|
|
90
|
-
"oxlint-tsgolint": "^0.
|
|
91
|
-
"playwright": "^1.
|
|
88
|
+
"oxfmt": "^0.44.0",
|
|
89
|
+
"oxlint": "^1.59.0",
|
|
90
|
+
"oxlint-tsgolint": "^0.20.0",
|
|
91
|
+
"playwright": "^1.59.1",
|
|
92
92
|
"rollup-plugin-copy": "^3.5.0",
|
|
93
93
|
"sanitize.css": "^13.0.0",
|
|
94
|
-
"sass": "^1.
|
|
95
|
-
"storybook": "^10.
|
|
94
|
+
"sass": "^1.99.0",
|
|
95
|
+
"storybook": "^10.3.5",
|
|
96
96
|
"style-dictionary": "^5.4.0",
|
|
97
97
|
"typescript": "^5.9.3",
|
|
98
98
|
"typescript-eslint": "^8.56.1",
|
|
99
|
-
"vite": "^8.0.
|
|
99
|
+
"vite": "^8.0.8",
|
|
100
100
|
"vite-svg-loader": "^5.1.1",
|
|
101
|
-
"vitest": "^4.
|
|
102
|
-
"vue": "^3.5.
|
|
103
|
-
"vue-tsc": "^3.2.
|
|
101
|
+
"vitest": "^4.1.4",
|
|
102
|
+
"vue": "^3.5.32",
|
|
103
|
+
"vue-tsc": "^3.2.6"
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
|
106
106
|
"sanitize.css": "^13.0.0",
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
},
|
|
121
121
|
"readme": "README.md",
|
|
122
122
|
"scripts": {
|
|
123
|
+
"ci:local": "bash run-ci-local.sh",
|
|
123
124
|
"dev": "vite",
|
|
124
125
|
"start": "vite",
|
|
125
126
|
"preview": "vite preview",
|