@navikt/ds-react 4.7.3 → 4.7.4
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/_docs.json +7 -70
- package/cjs/dropdown/Menu/GroupedList/index.js +4 -4
- package/esm/dropdown/Menu/GroupedList/{Heading.js → GroupedHeading.js} +1 -1
- package/esm/dropdown/Menu/GroupedList/GroupedHeading.js.map +1 -0
- package/esm/dropdown/Menu/GroupedList/{Item.js → GroupedItem.js} +1 -1
- package/esm/dropdown/Menu/GroupedList/GroupedItem.js.map +1 -0
- package/esm/dropdown/Menu/GroupedList/index.d.ts +2 -2
- package/esm/dropdown/Menu/GroupedList/index.js +2 -2
- package/esm/dropdown/Menu/GroupedList/index.js.map +1 -1
- package/esm/form/TextField.d.ts +1 -1
- package/package.json +2 -2
- package/src/dropdown/Menu/GroupedList/index.tsx +2 -2
- package/src/form/TextField.tsx +1 -1
- package/esm/dropdown/Menu/GroupedList/Heading.js.map +0 -1
- package/esm/dropdown/Menu/GroupedList/Item.js.map +0 -1
- /package/cjs/dropdown/Menu/GroupedList/{Heading.js → GroupedHeading.js} +0 -0
- /package/cjs/dropdown/Menu/GroupedList/{Item.js → GroupedItem.js} +0 -0
- /package/esm/dropdown/Menu/GroupedList/{Heading.d.ts → GroupedHeading.d.ts} +0 -0
- /package/esm/dropdown/Menu/GroupedList/{Item.d.ts → GroupedItem.d.ts} +0 -0
- /package/src/dropdown/Menu/GroupedList/{Heading.tsx → GroupedHeading.tsx} +0 -0
- /package/src/dropdown/Menu/GroupedList/{Item.tsx → GroupedItem.tsx} +0 -0
package/_docs.json
CHANGED
|
@@ -3634,7 +3634,7 @@
|
|
|
3634
3634
|
],
|
|
3635
3635
|
"required": false,
|
|
3636
3636
|
"type": {
|
|
3637
|
-
"name": "\"number\" | \"email\" | \"password\" | \"tel\" | \"text\" | \"url\""
|
|
3637
|
+
"name": "\"number\" | \"email\" | \"password\" | \"tel\" | \"text\" | \"url\" | \"time\""
|
|
3638
3638
|
}
|
|
3639
3639
|
},
|
|
3640
3640
|
"error": {
|
|
@@ -16983,7 +16983,7 @@
|
|
|
16983
16983
|
"props": {}
|
|
16984
16984
|
},
|
|
16985
16985
|
{
|
|
16986
|
-
"filePath": "src/dropdown/Menu/GroupedList/
|
|
16986
|
+
"filePath": "src/dropdown/Menu/GroupedList/GroupedHeading.tsx",
|
|
16987
16987
|
"displayName": "GroupedHeading",
|
|
16988
16988
|
"props": {
|
|
16989
16989
|
"children": {
|
|
@@ -16991,12 +16991,12 @@
|
|
|
16991
16991
|
"description": "Heading",
|
|
16992
16992
|
"name": "children",
|
|
16993
16993
|
"parent": {
|
|
16994
|
-
"fileName": "src/dropdown/Menu/GroupedList/
|
|
16994
|
+
"fileName": "src/dropdown/Menu/GroupedList/GroupedHeading.tsx",
|
|
16995
16995
|
"name": "GroupedHeadingProps"
|
|
16996
16996
|
},
|
|
16997
16997
|
"declarations": [
|
|
16998
16998
|
{
|
|
16999
|
-
"fileName": "src/dropdown/Menu/GroupedList/
|
|
16999
|
+
"fileName": "src/dropdown/Menu/GroupedList/GroupedHeading.tsx",
|
|
17000
17000
|
"name": "GroupedHeadingProps"
|
|
17001
17001
|
}
|
|
17002
17002
|
],
|
|
@@ -17046,70 +17046,7 @@
|
|
|
17046
17046
|
}
|
|
17047
17047
|
},
|
|
17048
17048
|
{
|
|
17049
|
-
"filePath": "src/dropdown/Menu/GroupedList/
|
|
17050
|
-
"displayName": "Heading",
|
|
17051
|
-
"props": {
|
|
17052
|
-
"children": {
|
|
17053
|
-
"defaultValue": null,
|
|
17054
|
-
"description": "Heading",
|
|
17055
|
-
"name": "children",
|
|
17056
|
-
"parent": {
|
|
17057
|
-
"fileName": "src/dropdown/Menu/GroupedList/Heading.tsx",
|
|
17058
|
-
"name": "GroupedHeadingProps"
|
|
17059
|
-
},
|
|
17060
|
-
"declarations": [
|
|
17061
|
-
{
|
|
17062
|
-
"fileName": "src/dropdown/Menu/GroupedList/Heading.tsx",
|
|
17063
|
-
"name": "GroupedHeadingProps"
|
|
17064
|
-
}
|
|
17065
|
-
],
|
|
17066
|
-
"required": true,
|
|
17067
|
-
"type": {
|
|
17068
|
-
"name": "ReactNode"
|
|
17069
|
-
}
|
|
17070
|
-
},
|
|
17071
|
-
"className": {
|
|
17072
|
-
"defaultValue": null,
|
|
17073
|
-
"description": "",
|
|
17074
|
-
"name": "className",
|
|
17075
|
-
"parent": {
|
|
17076
|
-
"fileName": "aksel/node_modules/@types/react/ts5.0/index.d.ts",
|
|
17077
|
-
"name": "HTMLAttributes"
|
|
17078
|
-
},
|
|
17079
|
-
"declarations": [
|
|
17080
|
-
{
|
|
17081
|
-
"fileName": "aksel/node_modules/@types/react/ts5.0/index.d.ts",
|
|
17082
|
-
"name": "HTMLAttributes"
|
|
17083
|
-
}
|
|
17084
|
-
],
|
|
17085
|
-
"required": false,
|
|
17086
|
-
"type": {
|
|
17087
|
-
"name": "string"
|
|
17088
|
-
}
|
|
17089
|
-
},
|
|
17090
|
-
"ref": {
|
|
17091
|
-
"defaultValue": null,
|
|
17092
|
-
"description": "Allows getting a ref to the component instance.\nOnce the component unmounts, React will set `ref.current` to `null` (or call the ref with `null` if you passed a callback ref).\n@see https://react.dev/learn/referencing-values-with-refs#refs-and-the-dom",
|
|
17093
|
-
"name": "ref",
|
|
17094
|
-
"parent": {
|
|
17095
|
-
"fileName": "aksel/node_modules/@types/react/ts5.0/index.d.ts",
|
|
17096
|
-
"name": "RefAttributes"
|
|
17097
|
-
},
|
|
17098
|
-
"declarations": [
|
|
17099
|
-
{
|
|
17100
|
-
"fileName": "aksel/node_modules/@types/react/ts5.0/index.d.ts",
|
|
17101
|
-
"name": "RefAttributes"
|
|
17102
|
-
}
|
|
17103
|
-
],
|
|
17104
|
-
"required": false,
|
|
17105
|
-
"type": {
|
|
17106
|
-
"name": "Ref<HTMLDetailsElement>"
|
|
17107
|
-
}
|
|
17108
|
-
}
|
|
17109
|
-
}
|
|
17110
|
-
},
|
|
17111
|
-
{
|
|
17112
|
-
"filePath": "src/dropdown/Menu/GroupedList/Item.tsx",
|
|
17049
|
+
"filePath": "src/dropdown/Menu/GroupedList/GroupedItem.tsx",
|
|
17113
17050
|
"displayName": "GroupedItem",
|
|
17114
17051
|
"props": {
|
|
17115
17052
|
"children": {
|
|
@@ -17117,12 +17054,12 @@
|
|
|
17117
17054
|
"description": "Menu item content",
|
|
17118
17055
|
"name": "children",
|
|
17119
17056
|
"parent": {
|
|
17120
|
-
"fileName": "src/dropdown/Menu/GroupedList/
|
|
17057
|
+
"fileName": "src/dropdown/Menu/GroupedList/GroupedItem.tsx",
|
|
17121
17058
|
"name": "GroupedItemProps"
|
|
17122
17059
|
},
|
|
17123
17060
|
"declarations": [
|
|
17124
17061
|
{
|
|
17125
|
-
"fileName": "src/dropdown/Menu/GroupedList/
|
|
17062
|
+
"fileName": "src/dropdown/Menu/GroupedList/GroupedItem.tsx",
|
|
17126
17063
|
"name": "GroupedItemProps"
|
|
17127
17064
|
}
|
|
17128
17065
|
],
|
|
@@ -40,12 +40,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
40
40
|
exports.DescriptionList = void 0;
|
|
41
41
|
const clsx_1 = __importDefault(require("clsx"));
|
|
42
42
|
const react_1 = __importStar(require("react"));
|
|
43
|
-
const
|
|
44
|
-
const
|
|
43
|
+
const GroupedHeading_1 = __importDefault(require("./GroupedHeading"));
|
|
44
|
+
const GroupedItem_1 = __importDefault(require("./GroupedItem"));
|
|
45
45
|
exports.DescriptionList = (0, react_1.forwardRef)((_a, ref) => {
|
|
46
46
|
var { className, children } = _a, rest = __rest(_a, ["className", "children"]);
|
|
47
47
|
return (react_1.default.createElement("dl", Object.assign({}, rest, { ref: ref, className: (0, clsx_1.default)("navds-dropdown__list", className) }), children));
|
|
48
48
|
});
|
|
49
|
-
exports.DescriptionList.Heading =
|
|
50
|
-
exports.DescriptionList.Item =
|
|
49
|
+
exports.DescriptionList.Heading = GroupedHeading_1.default;
|
|
50
|
+
exports.DescriptionList.Item = GroupedItem_1.default;
|
|
51
51
|
exports.default = exports.DescriptionList;
|
|
@@ -16,4 +16,4 @@ export const GroupedHeading = forwardRef((_a, ref) => {
|
|
|
16
16
|
return (React.createElement("dt", Object.assign({}, rest, { ref: ref, className: cl("navds-dropdown__list-heading", "navds-heading", "navds-heading--xsmall", className) })));
|
|
17
17
|
});
|
|
18
18
|
export default GroupedHeading;
|
|
19
|
-
//# sourceMappingURL=
|
|
19
|
+
//# sourceMappingURL=GroupedHeading.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupedHeading.js","sourceRoot":"","sources":["../../../../src/dropdown/Menu/GroupedList/GroupedHeading.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,MAAM,CAAC;AAUtB,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAGtC,CAAC,EAAsB,EAAE,GAAG,EAAE,EAAE;QAA/B,EAAE,SAAS,OAAW,EAAN,IAAI,cAApB,aAAsB,CAAF;IAAY,OAAA,CACjC,4CACM,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,8BAA8B,EAC9B,eAAe,EACf,uBAAuB,EACvB,SAAS,CACV,IACD,CACH,CAAA;CAAA,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -23,4 +23,4 @@ export const GroupedItem = forwardRef((_a, ref) => {
|
|
|
23
23
|
}, ref: ref, className: cl("navds-dropdown__item", "navds-body-short", "navds-body-short--small", className) }))));
|
|
24
24
|
});
|
|
25
25
|
export default GroupedItem;
|
|
26
|
-
//# sourceMappingURL=
|
|
26
|
+
//# sourceMappingURL=GroupedItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GroupedItem.js","sourceRoot":"","sources":["../../../../src/dropdown/Menu/GroupedList/GroupedItem.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAUjD,MAAM,CAAC,MAAM,WAAW,GAGpB,UAAU,CAAC,CAAC,EAAgD,EAAE,GAAG,EAAE,EAAE;QAAzD,EAAE,EAAE,EAAE,SAAS,GAAG,QAAQ,EAAE,SAAS,OAAW,EAAN,IAAI,cAA9C,mBAAgD,CAAF;IAC5D,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAE5C,OAAO,CACL,4BAAI,SAAS,EAAC,2BAA2B;QACvC,oBAAC,SAAS,oBACJ,IAAI,IACR,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,OAAO,EAAE,CAAC,KAAgD,EAAE,EAAE;;gBAC5D,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,wDAAG,KAAK,CAAC,CAAC;gBAC3B,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,qDAAG,KAAK,CAAC,CAAC;YACzB,CAAC,EACD,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,CACV,IACD,CACC,CACN,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { OverridableComponent } from "../../../util/OverridableComponent";
|
|
3
|
-
import { GroupedHeadingProps } from "./
|
|
4
|
-
import { GroupedItemProps } from "./
|
|
3
|
+
import { GroupedHeadingProps } from "./GroupedHeading";
|
|
4
|
+
import { GroupedItemProps } from "./GroupedItem";
|
|
5
5
|
export interface GroupedListProps extends React.HTMLAttributes<HTMLDListElement> {
|
|
6
6
|
/**
|
|
7
7
|
* Menu list content
|
|
@@ -11,8 +11,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
11
11
|
};
|
|
12
12
|
import cl from "clsx";
|
|
13
13
|
import React, { forwardRef } from "react";
|
|
14
|
-
import GroupedHeading from "./
|
|
15
|
-
import GroupedItem from "./
|
|
14
|
+
import GroupedHeading from "./GroupedHeading";
|
|
15
|
+
import GroupedItem from "./GroupedItem";
|
|
16
16
|
export const DescriptionList = forwardRef((_a, ref) => {
|
|
17
17
|
var { className, children } = _a, rest = __rest(_a, ["className", "children"]);
|
|
18
18
|
return (React.createElement("dl", Object.assign({}, rest, { ref: ref, className: cl("navds-dropdown__list", className) }), children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dropdown/Menu/GroupedList/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,cAAuC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dropdown/Menu/GroupedList/index.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,cAAuC,MAAM,kBAAkB,CAAC;AACvE,OAAO,WAAiC,MAAM,eAAe,CAAC;AA2B9D,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CACvC,CAAC,EAAgC,EAAE,GAAG,EAAE,EAAE;QAAzC,EAAE,SAAS,EAAE,QAAQ,OAAW,EAAN,IAAI,cAA9B,yBAAgC,CAAF;IAAY,OAAA,CACzC,4CAAQ,IAAI,IAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,sBAAsB,EAAE,SAAS,CAAC,KACrE,QAAQ,CACN,CACN,CAAA;CAAA,CACiB,CAAC;AAErB,eAAe,CAAC,OAAO,GAAG,cAAc,CAAC;AACzC,eAAe,CAAC,IAAI,GAAG,WAAW,CAAC;AAEnC,eAAe,eAAe,CAAC"}
|
package/esm/form/TextField.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export interface TextFieldProps extends FormFieldProps, Omit<InputHTMLAttributes
|
|
|
25
25
|
* Type of form control. Picking the correct type helps user fill inn their required information
|
|
26
26
|
* @default "text"
|
|
27
27
|
*/
|
|
28
|
-
type?: "email" | "number" | "password" | "tel" | "text" | "url";
|
|
28
|
+
type?: "email" | "number" | "password" | "tel" | "text" | "url" | "time";
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
31
|
* A component that displays a text input field with a label.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-react",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.4",
|
|
4
4
|
"description": "Aksel react-components for NAV designsystem",
|
|
5
5
|
"author": "Aksel | NAV designsystem team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@floating-ui/react": "0.24.1",
|
|
41
|
-
"@navikt/aksel-icons": "^4.7.
|
|
41
|
+
"@navikt/aksel-icons": "^4.7.4",
|
|
42
42
|
"@radix-ui/react-tabs": "1.0.0",
|
|
43
43
|
"@radix-ui/react-toggle-group": "1.0.0",
|
|
44
44
|
"clsx": "^1.2.1",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import cl from "clsx";
|
|
2
2
|
import React, { forwardRef } from "react";
|
|
3
3
|
import { OverridableComponent } from "../../../util/OverridableComponent";
|
|
4
|
-
import GroupedHeading, { GroupedHeadingProps } from "./
|
|
5
|
-
import GroupedItem, { GroupedItemProps } from "./
|
|
4
|
+
import GroupedHeading, { GroupedHeadingProps } from "./GroupedHeading";
|
|
5
|
+
import GroupedItem, { GroupedItemProps } from "./GroupedItem";
|
|
6
6
|
|
|
7
7
|
export interface GroupedListProps
|
|
8
8
|
extends React.HTMLAttributes<HTMLDListElement> {
|
package/src/form/TextField.tsx
CHANGED
|
@@ -31,7 +31,7 @@ export interface TextFieldProps
|
|
|
31
31
|
* Type of form control. Picking the correct type helps user fill inn their required information
|
|
32
32
|
* @default "text"
|
|
33
33
|
*/
|
|
34
|
-
type?: "email" | "number" | "password" | "tel" | "text" | "url";
|
|
34
|
+
type?: "email" | "number" | "password" | "tel" | "text" | "url" | "time";
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
/**
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Heading.js","sourceRoot":"","sources":["../../../../src/dropdown/Menu/GroupedList/Heading.tsx"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,MAAM,MAAM,CAAC;AAUtB,MAAM,CAAC,MAAM,cAAc,GAAG,UAAU,CAGtC,CAAC,EAAsB,EAAE,GAAG,EAAE,EAAE;QAA/B,EAAE,SAAS,OAAW,EAAN,IAAI,cAApB,aAAsB,CAAF;IAAY,OAAA,CACjC,4CACM,IAAI,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,8BAA8B,EAC9B,eAAe,EACf,uBAAuB,EACvB,SAAS,CACV,IACD,CACH,CAAA;CAAA,CAAC,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Item.js","sourceRoot":"","sources":["../../../../src/dropdown/Menu/GroupedList/Item.tsx"],"names":[],"mappings":";;;;;;;;;;;AACA,OAAO,EAAE,MAAM,MAAM,CAAC;AACtB,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAUjD,MAAM,CAAC,MAAM,WAAW,GAGpB,UAAU,CAAC,CAAC,EAAgD,EAAE,GAAG,EAAE,EAAE;QAAzD,EAAE,EAAE,EAAE,SAAS,GAAG,QAAQ,EAAE,SAAS,OAAW,EAAN,IAAI,cAA9C,mBAAgD,CAAF;IAC5D,MAAM,OAAO,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;IAE5C,OAAO,CACL,4BAAI,SAAS,EAAC,2BAA2B;QACvC,oBAAC,SAAS,oBACJ,IAAI,IACR,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,OAAO,EAAE,CAAC,KAAgD,EAAE,EAAE;;gBAC5D,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,wDAAG,KAAK,CAAC,CAAC;gBAC3B,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,qDAAG,KAAK,CAAC,CAAC;YACzB,CAAC,EACD,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EACzB,SAAS,CACV,IACD,CACC,CACN,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|