@digdir/designsystemet-react 1.1.2 → 1.1.3
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/Field/fieldObserver.js +13 -1
- package/dist/cjs/components/Suggestion/Suggestion.js +18 -0
- package/dist/cjs/utilities/hooks/usePagination/usePagination.js +1 -1
- package/dist/esm/components/Field/fieldObserver.js +13 -1
- package/dist/esm/components/Suggestion/Suggestion.js +18 -0
- package/dist/esm/utilities/hooks/usePagination/usePagination.js +1 -1
- package/dist/types/components/Field/fieldObserver.d.ts.map +1 -1
- package/dist/types/components/Suggestion/Suggestion.d.ts.map +1 -1
- package/dist/types/components/Suggestion/SuggestionChips.d.ts +1 -1
- package/dist/types/components/Textfield/Textfield.d.ts +3 -2
- package/dist/types/components/Textfield/Textfield.d.ts.map +1 -1
- package/dist/types/utilities/hooks/usePagination/usePagination.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -5,6 +5,7 @@ function fieldObserver(fieldElement) {
|
|
|
5
5
|
if (!fieldElement)
|
|
6
6
|
return;
|
|
7
7
|
const elements = new Map();
|
|
8
|
+
const typeCounter = new Map(); // Track count for each data-field type
|
|
8
9
|
const uuid = `:${Date.now().toString(36)}${Math.random().toString(36).slice(2, 5)}`;
|
|
9
10
|
let input = null;
|
|
10
11
|
let describedby = '';
|
|
@@ -45,9 +46,20 @@ function fieldObserver(fieldElement) {
|
|
|
45
46
|
// Connect elements
|
|
46
47
|
const describedbyIds = [describedby]; // Keep original aria-describedby
|
|
47
48
|
const inputId = input?.id || uuid;
|
|
49
|
+
// Reset type counters since we reprocess all elements
|
|
50
|
+
typeCounter.clear();
|
|
48
51
|
for (const [el, value] of elements) {
|
|
49
52
|
const descriptionType = el.getAttribute('data-field');
|
|
50
|
-
|
|
53
|
+
let id;
|
|
54
|
+
if (descriptionType) {
|
|
55
|
+
// Increment type counter for this type
|
|
56
|
+
const count = (typeCounter.get(descriptionType) || 0) + 1;
|
|
57
|
+
typeCounter.set(descriptionType, count);
|
|
58
|
+
id = `${inputId}:${descriptionType}:${count}`;
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
id = inputId;
|
|
62
|
+
}
|
|
51
63
|
if (!value)
|
|
52
64
|
setAttr(el, isLabel(el) ? 'for' : 'id', id); // Ensure we have a value
|
|
53
65
|
if (descriptionType === 'validation')
|
|
@@ -28,6 +28,16 @@ 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
|
+
};
|
|
31
41
|
const Suggestion = react.forwardRef(function Suggestion({ children, className, creatable = false, defaultValue, filter = true, multiple = false, name, onValueChange, value, ...rest }, ref) {
|
|
32
42
|
const uComboboxRef = react.useRef(null);
|
|
33
43
|
const generatedSelectId = react.useId();
|
|
@@ -42,6 +52,14 @@ const Suggestion = react.forwardRef(function Suggestion({ children, className, c
|
|
|
42
52
|
prevControlled.current = value;
|
|
43
53
|
setSelectedItems(sanitizeItems(prevControlled.current));
|
|
44
54
|
}
|
|
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]);
|
|
45
63
|
/**
|
|
46
64
|
* Listerners and handling of adding/removing
|
|
47
65
|
*/
|
|
@@ -5,7 +5,7 @@ var react = require('react');
|
|
|
5
5
|
|
|
6
6
|
const getSteps = (now, max, show) => {
|
|
7
7
|
const offset = (show - 1) / 2;
|
|
8
|
-
const start = Math.min(Math.max(now - Math.floor(offset), 1), max - show + 1);
|
|
8
|
+
const start = Math.max(1, Math.min(Math.max(now - Math.floor(offset), 1), max - show + 1));
|
|
9
9
|
const end = Math.min(Math.max(now + Math.ceil(offset), show), max);
|
|
10
10
|
const pages = Array.from({ length: end + 1 - start }, (_, i) => i + start);
|
|
11
11
|
if (show > 4 && start > 1)
|
|
@@ -3,6 +3,7 @@ function fieldObserver(fieldElement) {
|
|
|
3
3
|
if (!fieldElement)
|
|
4
4
|
return;
|
|
5
5
|
const elements = new Map();
|
|
6
|
+
const typeCounter = new Map(); // Track count for each data-field type
|
|
6
7
|
const uuid = `:${Date.now().toString(36)}${Math.random().toString(36).slice(2, 5)}`;
|
|
7
8
|
let input = null;
|
|
8
9
|
let describedby = '';
|
|
@@ -43,9 +44,20 @@ function fieldObserver(fieldElement) {
|
|
|
43
44
|
// Connect elements
|
|
44
45
|
const describedbyIds = [describedby]; // Keep original aria-describedby
|
|
45
46
|
const inputId = input?.id || uuid;
|
|
47
|
+
// Reset type counters since we reprocess all elements
|
|
48
|
+
typeCounter.clear();
|
|
46
49
|
for (const [el, value] of elements) {
|
|
47
50
|
const descriptionType = el.getAttribute('data-field');
|
|
48
|
-
|
|
51
|
+
let id;
|
|
52
|
+
if (descriptionType) {
|
|
53
|
+
// Increment type counter for this type
|
|
54
|
+
const count = (typeCounter.get(descriptionType) || 0) + 1;
|
|
55
|
+
typeCounter.set(descriptionType, count);
|
|
56
|
+
id = `${inputId}:${descriptionType}:${count}`;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
id = inputId;
|
|
60
|
+
}
|
|
49
61
|
if (!value)
|
|
50
62
|
setAttr(el, isLabel(el) ? 'for' : 'id', id); // Ensure we have a value
|
|
51
63
|
if (descriptionType === 'validation')
|
|
@@ -26,6 +26,16 @@ 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
|
+
};
|
|
29
39
|
const Suggestion = forwardRef(function Suggestion({ children, className, creatable = false, defaultValue, filter = true, multiple = false, name, onValueChange, value, ...rest }, ref) {
|
|
30
40
|
const uComboboxRef = useRef(null);
|
|
31
41
|
const generatedSelectId = useId();
|
|
@@ -40,6 +50,14 @@ const Suggestion = forwardRef(function Suggestion({ children, className, creatab
|
|
|
40
50
|
prevControlled.current = value;
|
|
41
51
|
setSelectedItems(sanitizeItems(prevControlled.current));
|
|
42
52
|
}
|
|
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]);
|
|
43
61
|
/**
|
|
44
62
|
* Listerners and handling of adding/removing
|
|
45
63
|
*/
|
|
@@ -3,7 +3,7 @@ import { useMemo } from 'react';
|
|
|
3
3
|
|
|
4
4
|
const getSteps = (now, max, show) => {
|
|
5
5
|
const offset = (show - 1) / 2;
|
|
6
|
-
const start = Math.min(Math.max(now - Math.floor(offset), 1), max - show + 1);
|
|
6
|
+
const start = Math.max(1, Math.min(Math.max(now - Math.floor(offset), 1), max - show + 1));
|
|
7
7
|
const end = Math.min(Math.max(now + Math.ceil(offset), show), max);
|
|
8
8
|
const pages = Array.from({ length: end + 1 - start }, (_, i) => i + start);
|
|
9
9
|
if (show > 4 && start > 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fieldObserver.d.ts","sourceRoot":"","sources":["../../../src/components/Field/fieldObserver.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"fieldObserver.d.ts","sourceRoot":"","sources":["../../../src/components/Field/fieldObserver.ts"],"names":[],"mappings":"AAAA,wBAAgB,aAAa,CAAC,YAAY,EAAE,WAAW,GAAG,IAAI,4BAoF7D;AAGD,eAAO,MAAM,SAAS,GAAI,MAAM,IAAI,oBAA4B,CAAC;AACjE,eAAO,MAAM,OAAO,GAAI,MAAM,IAAI,6BAAqC,CAAC;AACxE,eAAO,MAAM,WAAW,GAAI,MAAM,OAAO,KAAG,IAAI,IAAI,gBAGd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Suggestion.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AAe,GAAG;IAC5B;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IACxC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,cAAc,CAAC,oBAAoB,CAAC,CAAC;AA2CzC,eAAO,MAAM,UAAU;IApFrB;;;;;;;;OAQG;aACM,OAAO,GAAG,MAAM;IACzB;;;;OAIG;gBACS,OAAO;IACnB;;;;OAIG;eACQ,OAAO;IAClB;;;OAGG;YACK,gBAAgB;IACxB;;OAEG;mBACY,gBAAgB;IAC/B;;OAEG;oBACa,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI;IACvC;;;;OAIG;WACI,MAAM;qFAsJd,CAAC"}
|
|
@@ -46,18 +46,19 @@ type TextfieldTextareaProps = {
|
|
|
46
46
|
* Use to render a `Textarea` instead of `Input` for multiline support
|
|
47
47
|
**/
|
|
48
48
|
multiline: true;
|
|
49
|
+
type?: never;
|
|
49
50
|
} & TextareaProps_;
|
|
50
51
|
type TextfieldInputProps = {
|
|
51
52
|
/**
|
|
52
53
|
* Use to render a `Textarea` instead of `Input` for multiline support
|
|
53
54
|
**/
|
|
54
|
-
multiline?:
|
|
55
|
+
multiline?: false;
|
|
55
56
|
/**
|
|
56
57
|
* Supported `input` types
|
|
57
58
|
*
|
|
58
59
|
* @default 'text'
|
|
59
60
|
* */
|
|
60
|
-
type?:
|
|
61
|
+
type?: Exclude<InputProps['type'], 'radio' | 'checkbox'>;
|
|
61
62
|
} & InputProps_;
|
|
62
63
|
export type TextfieldProps = SharedTextfieldProps & (TextfieldTextareaProps | TextfieldInputProps);
|
|
63
64
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textfield.d.ts","sourceRoot":"","sources":["../../../src/components/Textfield/Textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAIL,KAAK,iBAAiB,EAEvB,MAAM,UAAU,CAAC;AAClB,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAElD,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,aAAa,CAAC;AAG3D,KAAK,WAAW,GAAG,IAAI,CACrB,UAAU,EACV,QAAQ,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,CACzD,CAAC;AACF,KAAK,cAAc,GAAG,IAAI,CAAC,aAAa,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAC,CAAC;AAE5E,KAAK,oBAAoB,GAAG;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACpC;;;OAGG;IACH,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC5B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;;OAGG;IACH,OAAO,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAAC;CACtC,GAAG,aAAa,GACf,IAAI,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;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EI;IACJ,SAAS,EAAE,IAAI,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,CAAC;CACd,GAAG,cAAc,CAAC;AAEnB,KAAK,mBAAmB,GAAG;IACzB;;QAEI;IACJ,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB;;;;SAIK;IACL,IAAI,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC,CAAC;CAC1D,GAAG,WAAW,CAAC;AAEhB,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAC/C,CAAC,sBAAsB,GAAG,mBAAmB,CAAC,CAAC;AAEjD;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,+GAgDpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/usePagination/usePagination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"usePagination.d.ts","sourceRoot":"","sources":["../../../../src/utilities/hooks/usePagination/usePagination.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAiBjE,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,EAAE,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnE,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA4BI;AACJ,eAAO,MAAM,aAAa,GAAI,mEAM3B,kBAAkB;IAWf,sBAAsB;;QAGlB;;WAEG;;QAEH;;WAEG;;QAEH;;WAEG;qBAOU,qBAAqB,GAAG,IAAI;;IAG7C,8EAA8E;qBAKzE,qBAAqB;IAC1B,0EAA0E;qBAKrE,qBAAqB;IAC1B,gEAAgE;;IAEhE,4DAA4D;;CAGxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digdir/designsystemet-react",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.3",
|
|
5
5
|
"description": "React components for Designsystemet",
|
|
6
6
|
"author": "Designsystemet team",
|
|
7
7
|
"repository": {
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"storybook": "^9.0.12",
|
|
68
68
|
"tsx": "4.20.3",
|
|
69
69
|
"typescript": "^5.8.3",
|
|
70
|
-
"@digdir/designsystemet-css": "^1.1.
|
|
70
|
+
"@digdir/designsystemet-css": "^1.1.3"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "pnpm run clean && tsc -b tsconfig.lib.json --emitDeclarationOnly false && rollup -c --bundleConfigAsCjs",
|