@digdir/designsystemet-react 0.0.0-test-20250710064944 → 0.0.0-test-20250711105047
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/dist/cjs/components/suggestion/suggestion.js +0 -18
- package/dist/cjs/index.js +6 -0
- package/dist/esm/components/error-summary/error-summary.js +1 -1
- package/dist/esm/components/suggestion/suggestion.js +0 -18
- package/dist/esm/index.js +3 -0
- package/dist/types/colors.d.ts +1 -23
- package/dist/types/colors.d.ts.map +1 -1
- package/dist/types/components/alert/alert.d.ts +1 -1
- package/dist/types/components/alert/alert.d.ts.map +1 -1
- package/dist/types/components/badge/index.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +3 -3
- package/dist/types/components/button/button.d.ts.map +1 -1
- package/dist/types/components/dialog/dialog-trigger.d.ts +1 -1
- package/dist/types/components/dialog/index.d.ts +1 -1
- package/dist/types/components/field/field-counter.d.ts +1 -1
- package/dist/types/components/field/index.d.ts +1 -1
- package/dist/types/components/index.d.ts +2 -2
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/popover/index.d.ts +1 -1
- package/dist/types/components/search/index.d.ts +1 -1
- package/dist/types/components/search/search-button.d.ts +1 -1
- package/dist/types/components/suggestion/suggestion.d.ts.map +1 -1
- package/dist/types/components/validation-message/validation-message.d.ts +1 -1
- package/dist/types/components/validation-message/validation-message.d.ts.map +1 -1
- package/dist/types/utilities/roving-focus/use-roving-focus.d.ts +1 -1
- package/package.json +11 -10
|
@@ -28,16 +28,6 @@ const nextItems = (data, prev, multiple) => {
|
|
|
28
28
|
: [...sanitizeItems(prev), item];
|
|
29
29
|
};
|
|
30
30
|
const defaultFilter = ({ label, input }) => label.toLowerCase().includes(input.value.trim().toLowerCase());
|
|
31
|
-
// https://github.com/u-elements/u-elements/blob/fe076b724272c2fef00d41838b091b1563661829/packages/utils.ts#L222
|
|
32
|
-
// TODO: DELETE THIS when bug in u-combobox is fixed. See https://github.com/u-elements/u-elements/issues/25
|
|
33
|
-
const setValue = (input, data, type = '') => {
|
|
34
|
-
const event = { bubbles: true, composed: true, data, inputType: type };
|
|
35
|
-
const proto = HTMLInputElement.prototype;
|
|
36
|
-
input.dispatchEvent(new InputEvent('beforeinput', event));
|
|
37
|
-
Object.getOwnPropertyDescriptor(proto, 'value')?.set?.call(input, data);
|
|
38
|
-
input.dispatchEvent(new InputEvent('input', event));
|
|
39
|
-
input.dispatchEvent(new Event('change', { bubbles: true }));
|
|
40
|
-
};
|
|
41
31
|
const Suggestion = react.forwardRef(function Suggestion({ children, className, creatable = false, defaultValue, filter = true, multiple = false, name, onValueChange, value, ...rest }, ref) {
|
|
42
32
|
const uComboboxRef = react.useRef(null);
|
|
43
33
|
const generatedSelectId = react.useId();
|
|
@@ -52,14 +42,6 @@ const Suggestion = react.forwardRef(function Suggestion({ children, className, c
|
|
|
52
42
|
prevControlled.current = value;
|
|
53
43
|
setSelectedItems(sanitizeItems(prevControlled.current));
|
|
54
44
|
}
|
|
55
|
-
react.useEffect(() => {
|
|
56
|
-
// Workaround for missing input value update in u-combobox in single mode
|
|
57
|
-
const sanitizedValue = sanitizeItems(prevControlled.current);
|
|
58
|
-
const inputEl = uComboboxRef.current?.querySelector('input');
|
|
59
|
-
if (inputEl && !multiple && sanitizedValue[0]) {
|
|
60
|
-
setValue(inputEl, sanitizedValue[0].value, 'insertText');
|
|
61
|
-
}
|
|
62
|
-
}, [prevControlled.current, uComboboxRef.current]);
|
|
63
45
|
/**
|
|
64
46
|
* Listerners and handling of adding/removing
|
|
65
47
|
*/
|
package/dist/cjs/index.js
CHANGED
|
@@ -34,7 +34,10 @@ var dropdownList = require('./components/dropdown/dropdown-list.js');
|
|
|
34
34
|
var dropdownTrigger = require('./components/dropdown/dropdown-trigger.js');
|
|
35
35
|
var dropdownTriggerContext = require('./components/dropdown/dropdown-trigger-context.js');
|
|
36
36
|
var index$8 = require('./components/error-summary/index.js');
|
|
37
|
+
var errorSummaryHeading = require('./components/error-summary/error-summary-heading.js');
|
|
37
38
|
var errorSummaryItem = require('./components/error-summary/error-summary-item.js');
|
|
39
|
+
var errorSummaryLink = require('./components/error-summary/error-summary-link.js');
|
|
40
|
+
var errorSummaryList = require('./components/error-summary/error-summary-list.js');
|
|
38
41
|
var index$9 = require('./components/field/index.js');
|
|
39
42
|
var fieldAffix = require('./components/field/field-affix.js');
|
|
40
43
|
var fieldCounter = require('./components/field/field-counter.js');
|
|
@@ -144,7 +147,10 @@ exports.DropdownList = dropdownList.DropdownList;
|
|
|
144
147
|
exports.DropdownTrigger = dropdownTrigger.DropdownTrigger;
|
|
145
148
|
exports.DropdownTriggerContext = dropdownTriggerContext.DropdownTriggerContext;
|
|
146
149
|
exports.ErrorSummary = index$8.ErrorSummary;
|
|
150
|
+
exports.ErrorSummaryHeading = errorSummaryHeading.ErrorSummaryHeading;
|
|
147
151
|
exports.ErrorSummaryItem = errorSummaryItem.ErrorSummaryItem;
|
|
152
|
+
exports.ErrorSummaryLink = errorSummaryLink.ErrorSummaryLink;
|
|
153
|
+
exports.ErrorSummaryList = errorSummaryList.ErrorSummaryList;
|
|
148
154
|
exports.Field = index$9.Field;
|
|
149
155
|
exports.FieldAffix = fieldAffix.FieldAffix;
|
|
150
156
|
exports.FieldAffixes = fieldAffix.FieldAffixes;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
4
4
|
import cl from 'clsx/lite';
|
|
5
|
-
import { forwardRef, useId, useState
|
|
5
|
+
import { forwardRef, createContext, useId, useState } from 'react';
|
|
6
6
|
|
|
7
7
|
const ErrorSummaryContext = createContext({
|
|
8
8
|
headingId: 'heading',
|
|
@@ -26,16 +26,6 @@ const nextItems = (data, prev, multiple) => {
|
|
|
26
26
|
: [...sanitizeItems(prev), item];
|
|
27
27
|
};
|
|
28
28
|
const defaultFilter = ({ label, input }) => label.toLowerCase().includes(input.value.trim().toLowerCase());
|
|
29
|
-
// https://github.com/u-elements/u-elements/blob/fe076b724272c2fef00d41838b091b1563661829/packages/utils.ts#L222
|
|
30
|
-
// TODO: DELETE THIS when bug in u-combobox is fixed. See https://github.com/u-elements/u-elements/issues/25
|
|
31
|
-
const setValue = (input, data, type = '') => {
|
|
32
|
-
const event = { bubbles: true, composed: true, data, inputType: type };
|
|
33
|
-
const proto = HTMLInputElement.prototype;
|
|
34
|
-
input.dispatchEvent(new InputEvent('beforeinput', event));
|
|
35
|
-
Object.getOwnPropertyDescriptor(proto, 'value')?.set?.call(input, data);
|
|
36
|
-
input.dispatchEvent(new InputEvent('input', event));
|
|
37
|
-
input.dispatchEvent(new Event('change', { bubbles: true }));
|
|
38
|
-
};
|
|
39
29
|
const Suggestion = forwardRef(function Suggestion({ children, className, creatable = false, defaultValue, filter = true, multiple = false, name, onValueChange, value, ...rest }, ref) {
|
|
40
30
|
const uComboboxRef = useRef(null);
|
|
41
31
|
const generatedSelectId = useId();
|
|
@@ -50,14 +40,6 @@ const Suggestion = forwardRef(function Suggestion({ children, className, creatab
|
|
|
50
40
|
prevControlled.current = value;
|
|
51
41
|
setSelectedItems(sanitizeItems(prevControlled.current));
|
|
52
42
|
}
|
|
53
|
-
useEffect(() => {
|
|
54
|
-
// Workaround for missing input value update in u-combobox in single mode
|
|
55
|
-
const sanitizedValue = sanitizeItems(prevControlled.current);
|
|
56
|
-
const inputEl = uComboboxRef.current?.querySelector('input');
|
|
57
|
-
if (inputEl && !multiple && sanitizedValue[0]) {
|
|
58
|
-
setValue(inputEl, sanitizedValue[0].value, 'insertText');
|
|
59
|
-
}
|
|
60
|
-
}, [prevControlled.current, uComboboxRef.current]);
|
|
61
43
|
/**
|
|
62
44
|
* Listerners and handling of adding/removing
|
|
63
45
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -32,7 +32,10 @@ export { DropdownList } from './components/dropdown/dropdown-list.js';
|
|
|
32
32
|
export { DropdownTrigger } from './components/dropdown/dropdown-trigger.js';
|
|
33
33
|
export { DropdownTriggerContext } from './components/dropdown/dropdown-trigger-context.js';
|
|
34
34
|
export { ErrorSummary } from './components/error-summary/index.js';
|
|
35
|
+
export { ErrorSummaryHeading } from './components/error-summary/error-summary-heading.js';
|
|
35
36
|
export { ErrorSummaryItem } from './components/error-summary/error-summary-item.js';
|
|
37
|
+
export { ErrorSummaryLink } from './components/error-summary/error-summary-link.js';
|
|
38
|
+
export { ErrorSummaryList } from './components/error-summary/error-summary-list.js';
|
|
36
39
|
export { Field } from './components/field/index.js';
|
|
37
40
|
export { FieldAffix, FieldAffixes } from './components/field/field-affix.js';
|
|
38
41
|
export { FieldCounter } from './components/field/field-counter.js';
|
package/dist/types/colors.d.ts
CHANGED
|
@@ -1,24 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
type EmptyObject = {
|
|
3
|
-
[emptyObjectSymbol]?: never;
|
|
4
|
-
};
|
|
5
|
-
/**
|
|
6
|
-
* Base interface for available colors in Designsystemet.
|
|
7
|
-
* The CLI will generate augmentations of this interface to allow
|
|
8
|
-
* type safety of custom color names.
|
|
9
|
-
*/
|
|
10
|
-
export interface MainAndSupportColors {
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* If {@link MainAndSupportColors} has been extended to include color names, return T,
|
|
14
|
-
* otherwise return the arbitrary string type.
|
|
15
|
-
*/
|
|
16
|
-
type ColorWithFallback<T> = MainAndSupportColors extends EmptyObject ? string : T;
|
|
17
|
-
export type SeverityInfo = 'info';
|
|
18
|
-
export type SeveritySuccess = 'success';
|
|
19
|
-
export type SeverityWarning = 'warning';
|
|
20
|
-
export type SeverityDanger = 'danger';
|
|
21
|
-
export type SeverityColors = SeverityInfo | SeveritySuccess | SeverityWarning | SeverityDanger;
|
|
22
|
-
export type Color = ColorWithFallback<'neutral' | keyof MainAndSupportColors>;
|
|
23
|
-
export {};
|
|
1
|
+
export type { Color, SeverityColors, } from '@digdir/designsystemet/types';
|
|
24
2
|
//# sourceMappingURL=colors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../src/colors.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,KAAK,EACL,cAAc,GACf,MAAM,8BAA8B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import type { SeverityColors } from '@digdir/designsystemet-react/colors';
|
|
1
2
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import type { SeverityColors } from '../../colors';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
4
|
import type { MergeRight } from '../../utilities';
|
|
5
5
|
export type AlertProps = MergeRight<DefaultProps & HTMLAttributes<HTMLDivElement>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/components/alert/alert.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAE1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,UAAU,GAAG,UAAU,CACjC,YAAY,GAAG,cAAc,CAAC,cAAc,CAAC,EAC7C;IACE;;;;OAIG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;CAC/B,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,KAAK;IAfd;;;;OAIG;mBACY,cAAc;wCAsB/B,CAAC"}
|
|
@@ -9,7 +9,7 @@ declare const Badge: React.ForwardRefExoticComponent<Omit<import("../../types").
|
|
|
9
9
|
count?: number;
|
|
10
10
|
maxCount?: number;
|
|
11
11
|
variant?: "base" | "tinted";
|
|
12
|
-
'data-color'?: import("
|
|
12
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | import("packages/cli/dist/src/types").SeverityColors;
|
|
13
13
|
children?: never;
|
|
14
14
|
} & React.RefAttributes<HTMLSpanElement>> & {
|
|
15
15
|
Position: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.HTMLAttributes<HTMLSpanElement>, "placement" | "overlap"> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Color,
|
|
1
|
+
import type { Color, SeverityColors } from '@digdir/designsystemet-react/colors';
|
|
2
2
|
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
4
|
import type { MergeRight } from '../../utilities';
|
|
@@ -11,7 +11,7 @@ export type ButtonProps = MergeRight<DefaultProps & ButtonHTMLAttributes<HTMLBut
|
|
|
11
11
|
/**
|
|
12
12
|
* Change the color scheme of the button
|
|
13
13
|
*/
|
|
14
|
-
'data-color'?: Color |
|
|
14
|
+
'data-color'?: Color | Extract<SeverityColors, 'danger'>;
|
|
15
15
|
/**
|
|
16
16
|
* Toggle icon only styling, pass icon as children
|
|
17
17
|
* @default false
|
|
@@ -50,7 +50,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<DefaultProps &
|
|
|
50
50
|
/**
|
|
51
51
|
* Change the color scheme of the button
|
|
52
52
|
*/
|
|
53
|
-
'data-color'?: Color |
|
|
53
|
+
'data-color'?: Color | Extract<SeverityColors, "danger">;
|
|
54
54
|
/**
|
|
55
55
|
* Toggle icon only styling, pass icon as children
|
|
56
56
|
* @default false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,KAAK,EACL,cAAc,EACf,MAAM,qCAAqC,CAAC;AAG7C,O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;CACxD,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,MAAM;IAxCf;;;OAGG;cACO,SAAS,GAAG,WAAW,GAAG,UAAU;IAC9C;;OAEG;mBACY,KAAK,GAAG,OAAO,CAAC,cAAc,EAAE,QAAQ,CAAC;IACxD;;;OAGG;WACI,OAAO;IACd;;;;;OAKG;cACO,OAAO,GAAG,SAAS;IAC7B;;;OAGG;cACO,OAAO;IACjB;;;OAGG;WACI,oBAAoB,CAAC,iBAAiB,CAAC,CAAC,MAAM,CAAC;2CAgDzD,CAAC"}
|
|
@@ -14,7 +14,7 @@ export type DialogTriggerProps = ComponentPropsWithRef<typeof Button>;
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const DialogTrigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
16
16
|
variant?: "primary" | "secondary" | "tertiary";
|
|
17
|
-
'data-color'?: import("
|
|
17
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
|
|
18
18
|
icon?: boolean;
|
|
19
19
|
loading?: boolean | React.ReactNode;
|
|
20
20
|
asChild?: boolean;
|
|
@@ -31,7 +31,7 @@ declare const Dialog: React.ForwardRefExoticComponent<Omit<import("../../types")
|
|
|
31
31
|
};
|
|
32
32
|
Trigger: React.ForwardRefExoticComponent<Omit<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
33
33
|
variant?: "primary" | "secondary" | "tertiary";
|
|
34
|
-
'data-color'?: import("
|
|
34
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
|
|
35
35
|
icon?: boolean;
|
|
36
36
|
loading?: boolean | React.ReactNode;
|
|
37
37
|
asChild?: boolean;
|
|
@@ -52,7 +52,7 @@ export declare const FieldCounter: React.ForwardRefExoticComponent<{
|
|
|
52
52
|
**/
|
|
53
53
|
limit: number;
|
|
54
54
|
} & Omit<Omit<import("../../types").DefaultProps, "data-color"> & React.HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
|
|
55
|
-
'data-color'?: import("
|
|
55
|
+
'data-color'?: import("packages/cli/dist/src/types").SeverityColors;
|
|
56
56
|
asChild?: boolean;
|
|
57
57
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
58
58
|
//# sourceMappingURL=field-counter.d.ts.map
|
|
@@ -24,7 +24,7 @@ declare const Field: React.ForwardRefExoticComponent<{
|
|
|
24
24
|
under?: string;
|
|
25
25
|
limit: number;
|
|
26
26
|
} & Omit<Omit<import("../../types").DefaultProps, "data-color"> & React.HTMLAttributes<HTMLParagraphElement>, "data-color" | "asChild"> & {
|
|
27
|
-
'data-color'?: import("
|
|
27
|
+
'data-color'?: import("packages/cli/dist/src/types").SeverityColors;
|
|
28
28
|
asChild?: boolean;
|
|
29
29
|
} & React.RefAttributes<HTMLParagraphElement>>;
|
|
30
30
|
};
|
|
@@ -24,8 +24,8 @@ export type { DividerProps } from './divider/divider';
|
|
|
24
24
|
export { Divider } from './divider/divider';
|
|
25
25
|
export type { DropdownButtonProps, DropdownHeadingProps, DropdownItemProps, DropdownListProps, DropdownProps, DropdownTriggerContextProps, } from './dropdown';
|
|
26
26
|
export { Dropdown, DropdownButton, DropdownHeading, DropdownItem, DropdownList, DropdownTrigger, DropdownTriggerContext, } from './dropdown';
|
|
27
|
-
export type { ErrorSummaryItemProps, ErrorSummaryProps } from './error-summary';
|
|
28
|
-
export { ErrorSummary, ErrorSummaryItem } from './error-summary';
|
|
27
|
+
export type { ErrorSummaryHeadingProps, ErrorSummaryItemProps, ErrorSummaryLinkProps, ErrorSummaryListProps, ErrorSummaryProps, } from './error-summary';
|
|
28
|
+
export { ErrorSummary, ErrorSummaryHeading, ErrorSummaryItem, ErrorSummaryLink, ErrorSummaryList, } from './error-summary';
|
|
29
29
|
export type { FieldAffixesProps, FieldAffixProps, FieldCounterProps, FieldDescriptionProps, FieldProps, } from './field';
|
|
30
30
|
export { Field, FieldAffix, FieldAffixes, FieldCounter, FieldDescription, } from './field';
|
|
31
31
|
export type { FieldsetDescriptionProps, FieldsetLegendProps, FieldsetProps, } from './fieldset';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE/C,YAAY,EACV,oBAAoB,EACpB,oBAAoB,EACpB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,WAAW,EACX,eAAe,EACf,eAAe,EACf,eAAe,GAChB,MAAM,eAAe,CAAC;AAEvB,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAGzC,YAAY,EACV,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAErE,YAAY,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEzC,YAAY,EAAE,aAAa,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,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAElD,YAAY,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE9D,YAAY,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,YAAY,EAAE,sBAAsB,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC"}
|
|
@@ -16,7 +16,7 @@ declare const Popover: React.ForwardRefExoticComponent<Omit<import("../../types"
|
|
|
16
16
|
placement?: import("@floating-ui/dom").Placement;
|
|
17
17
|
open?: boolean;
|
|
18
18
|
variant?: "default" | "tinted";
|
|
19
|
-
'data-color'?: import("
|
|
19
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | import("packages/cli/dist/src/types").SeverityColors;
|
|
20
20
|
onOpen?: () => void;
|
|
21
21
|
onClose?: () => void;
|
|
22
22
|
autoPlacement?: boolean;
|
|
@@ -23,7 +23,7 @@ declare const Search: React.ForwardRefExoticComponent<import("../../types").Defa
|
|
|
23
23
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
24
24
|
Button: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
25
25
|
variant?: "primary" | "secondary" | "tertiary";
|
|
26
|
-
'data-color'?: import("
|
|
26
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
|
|
27
27
|
icon?: boolean;
|
|
28
28
|
loading?: boolean | React.ReactNode;
|
|
29
29
|
asChild?: boolean;
|
|
@@ -24,7 +24,7 @@ export type SearchButtonProps = MergeRight<ButtonProps, {
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const SearchButton: React.ForwardRefExoticComponent<Omit<import("../../types").DefaultProps & React.ButtonHTMLAttributes<HTMLButtonElement>, "type" | "data-color" | "variant" | "icon" | "loading" | "asChild"> & {
|
|
26
26
|
variant?: "primary" | "secondary" | "tertiary";
|
|
27
|
-
'data-color'?: import("
|
|
27
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | Extract<import("packages/cli/dist/src/types").SeverityColors, "danger">;
|
|
28
28
|
icon?: boolean;
|
|
29
29
|
loading?: boolean | ReactNode;
|
|
30
30
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"suggestion.d.ts","sourceRoot":"","sources":["../../../src/components/suggestion/suggestion.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EAMpB,MAAM,OAAO,CAAC;AACf,OAAO,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAInE,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC;AAEtE,KAAK,IAAI,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAC7C,KAAK,MAAM,GAAG,CAAC,IAAI,EAAE;IACnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,aAAa,EAAE,iBAAiB,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,gBAAgB,CAAC;CACzB,KAAK,OAAO,CAAC;AAEd,KAAK,qBAAqB,GAAG;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,IAAI,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|
|
1
2
|
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import type { SeverityColors } from '../../colors';
|
|
3
3
|
import type { DefaultProps } from '../../types';
|
|
4
4
|
import type { MergeRight } from '../../utilities';
|
|
5
5
|
export type ValidationMessageProps = MergeRight<Omit<DefaultProps, 'data-color'> & HTMLAttributes<HTMLParagraphElement>, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validation-message.d.ts","sourceRoot":"","sources":["../../../src/components/validation-message/validation-message.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validation-message.d.ts","sourceRoot":"","sources":["../../../src/components/validation-message/validation-message.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAG1E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAC7C,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,cAAc,CAAC,oBAAoB,CAAC,EACvE;IACE;;;OAGG;IACH,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CACF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB;IAnB1B;;;OAGG;mBACY,cAAc;IAC7B;;;OAGG;cACO,OAAO;8CAwBnB,CAAC"}
|
|
@@ -66,7 +66,7 @@ export declare const useRovingFocus: (value: string) => {
|
|
|
66
66
|
part?: string | undefined;
|
|
67
67
|
popovertarget?: string;
|
|
68
68
|
'data-size'?: import("../..").Size | (string & {});
|
|
69
|
-
'data-color'?: import("
|
|
69
|
+
'data-color'?: import("packages/cli/dist/src/types").Color | (string & {});
|
|
70
70
|
"aria-activedescendant"?: string | undefined;
|
|
71
71
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
72
72
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digdir/designsystemet-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.0-test-
|
|
4
|
+
"version": "0.0.0-test-20250711105047",
|
|
5
5
|
"description": "React components for Designsystemet",
|
|
6
6
|
"author": "Designsystemet team",
|
|
7
7
|
"repository": {
|
|
@@ -38,20 +38,20 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@floating-ui/dom": "^1.7.2",
|
|
40
40
|
"@floating-ui/react": "0.26.23",
|
|
41
|
-
"@navikt/aksel-icons": "^7.
|
|
41
|
+
"@navikt/aksel-icons": "^7.25.1",
|
|
42
42
|
"@radix-ui/react-slot": "^1.2.3",
|
|
43
43
|
"@tanstack/react-virtual": "^3.13.12",
|
|
44
|
-
"@u-elements/u-combobox": "^0.0.
|
|
45
|
-
"@u-elements/u-datalist": "^1.0.
|
|
44
|
+
"@u-elements/u-combobox": "^0.0.15",
|
|
45
|
+
"@u-elements/u-datalist": "^1.0.9",
|
|
46
46
|
"@u-elements/u-details": "^0.1.1",
|
|
47
47
|
"clsx": "^2.1.1"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@rollup/plugin-commonjs": "^28.0.6",
|
|
51
51
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
52
|
-
"@storybook/addon-docs": "^9.0.
|
|
53
|
-
"@storybook/addon-vitest": "^9.0.
|
|
54
|
-
"@storybook/react-vite": "^9.0.
|
|
52
|
+
"@storybook/addon-docs": "^9.0.15",
|
|
53
|
+
"@storybook/addon-vitest": "^9.0.15",
|
|
54
|
+
"@storybook/react-vite": "^9.0.15",
|
|
55
55
|
"@testing-library/dom": "^10.4.0",
|
|
56
56
|
"@testing-library/jest-dom": "^6.6.3",
|
|
57
57
|
"@testing-library/react": "^16.3.0",
|
|
@@ -62,12 +62,13 @@
|
|
|
62
62
|
"react": "^19.1.0",
|
|
63
63
|
"react-dom": "^19.1.0",
|
|
64
64
|
"rimraf": "^6.0.1",
|
|
65
|
-
"rollup": "^4.44.
|
|
65
|
+
"rollup": "^4.44.2",
|
|
66
66
|
"rollup-plugin-copy": "^3.5.0",
|
|
67
|
-
"storybook": "^9.0.
|
|
67
|
+
"storybook": "^9.0.15",
|
|
68
68
|
"tsx": "4.20.3",
|
|
69
69
|
"typescript": "^5.8.3",
|
|
70
|
-
"@digdir/designsystemet
|
|
70
|
+
"@digdir/designsystemet": "^0.0.0-test-20250711105047",
|
|
71
|
+
"@digdir/designsystemet-css": "^0.0.0-test-20250711105047"
|
|
71
72
|
},
|
|
72
73
|
"scripts": {
|
|
73
74
|
"build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",
|