@altinn/altinn-components 0.56.12 → 0.56.14
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/SearchField-DhPNZyyE.js +687 -0
- package/dist/assets/QueryLabel.css +1 -1
- package/dist/assets/SearchField.css +1 -1
- package/dist/assets/TypingIcon.css +1 -0
- package/dist/components/Account/AccountMenu.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/components/Dialog/DialogActions.js +1 -1
- package/dist/components/Forms/SearchField.js +3 -2
- package/dist/components/Forms/index.js +1 -1
- package/dist/components/GlobalHeader/AccountSelector.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +1 -1
- package/dist/components/GlobalMenu/LocaleSwitcher.js +1 -1
- package/dist/components/GlobalMenu_old/GlobalMenu.js +1 -1
- package/dist/components/Header/LocaleSwitcher.js +1 -1
- package/dist/components/Icon/TypingIcon.js +24 -0
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItems.js +1 -1
- package/dist/components/Menu/MenuListSearch.js +1 -1
- package/dist/components/Menu/VirtualizedMenuItems.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Searchbar/QueryLabel.js +11 -11
- package/dist/components/Settings/BookmarksSettingsItem.js +50 -48
- package/dist/components/Settings/BookmarksSettingsItemLabel.js +21 -0
- package/dist/components/Settings/BookmarksSettingsList.js +2 -1
- package/dist/components/Toolbar/SelectDateFilter.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +22 -18
- package/dist/components/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/lib/components/Forms/SearchField.d.ts +3 -1
- package/dist/types/lib/components/Forms/SearchField.stories.d.ts +2 -1
- package/dist/types/lib/components/Icon/TypingIcon.d.ts +17 -0
- package/dist/types/lib/components/Searchbar/QueryLabel.d.ts +2 -1
- package/dist/types/lib/components/Settings/BookmarksSettingsItem.d.ts +3 -1
- package/dist/types/lib/components/Settings/BookmarksSettingsItemLabel.d.ts +12 -0
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -0
- package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +5 -1
- package/package.json +1 -1
- package/dist/SearchField-CYYz0JvC.js +0 -684
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._typingIcon_16t3v_1{fill:var(--ds-color-border-default)}
|
|
@@ -5,7 +5,7 @@ import "../../index-p1eeF8LQ.js";
|
|
|
5
5
|
import "../Button/Button.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { M as S } from "../../SearchField-
|
|
8
|
+
import { M as S } from "../../SearchField-DhPNZyyE.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
const F = (n) => `${n} hits`, G = ({
|
|
11
11
|
items: n = [],
|
|
@@ -5,7 +5,7 @@ import "../../index-p1eeF8LQ.js";
|
|
|
5
5
|
import u, { forwardRef as s } from "react";
|
|
6
6
|
import { Dropdown as m } from "../Dropdown/Dropdown.js";
|
|
7
7
|
import { useRootContext as c } from "../RootProvider/RootProvider.js";
|
|
8
|
-
import { M as f } from "../../SearchField-
|
|
8
|
+
import { M as f } from "../../SearchField-DhPNZyyE.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { useDropdownMenuController as g } from "../Menu/useDropdownMenuController.js";
|
|
11
11
|
import { Tooltip as b } from "../Tooltip/Tooltip.js";
|
|
@@ -8,7 +8,7 @@ import { ButtonGroupDivider as B } from "../Button/ButtonGroupDivider.js";
|
|
|
8
8
|
import { DropdownBase as x } from "../Dropdown/DropdownBase.js";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import { useRootContext as _ } from "../RootProvider/RootProvider.js";
|
|
11
|
-
import { M as v } from "../../SearchField-
|
|
11
|
+
import { M as v } from "../../SearchField-DhPNZyyE.js";
|
|
12
12
|
import "../Snackbar/useSnackbar.js";
|
|
13
13
|
import { S as k, a as D } from "../../ChevronUp-_BBfEirx.js";
|
|
14
14
|
import '../../assets/DialogActions.css';const I = "_action_1n930_1", M = "_comboButton_1n930_8", m = {
|
|
@@ -4,12 +4,13 @@ import "react";
|
|
|
4
4
|
import "../Button/Button.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { S as
|
|
7
|
+
import { S as s } from "../../SearchField-DhPNZyyE.js";
|
|
8
8
|
import "./Input.js";
|
|
9
9
|
import "./FieldBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
+
import "../Icon/TypingIcon.js";
|
|
11
12
|
import "../../MagnifyingGlass-bwVhw07z.js";
|
|
12
13
|
import "../../XMark-tKk6aExO.js";
|
|
13
14
|
export {
|
|
14
|
-
|
|
15
|
+
s as SearchField
|
|
15
16
|
};
|
|
@@ -12,7 +12,7 @@ import { FieldBase as B } from "./FieldBase.js";
|
|
|
12
12
|
import { TextField as C } from "./TextField.js";
|
|
13
13
|
import { TextareaField as R } from "./TextareaField.js";
|
|
14
14
|
import { SelectField as u } from "./SelectField.js";
|
|
15
|
-
import { S as I } from "../../SearchField-
|
|
15
|
+
import { S as I } from "../../SearchField-DhPNZyyE.js";
|
|
16
16
|
import { TextFieldDropdown as q } from "./TextFieldDropdown.js";
|
|
17
17
|
import { FieldsetBase as y } from "./FieldsetBase.js";
|
|
18
18
|
import { OptionsBase as A } from "./OptionsBase.js";
|
|
@@ -8,7 +8,7 @@ import { Button as A } from "../Button/Button.js";
|
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import { useRootContext as P } from "../RootProvider/RootProvider.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { S as H } from "../../SearchField-
|
|
11
|
+
import { S as H } from "../../SearchField-DhPNZyyE.js";
|
|
12
12
|
import { S as T } from "../../button-BB5sYVKY.js";
|
|
13
13
|
import { H as V, S as B } from "../../switch-Cemfhx0H.js";
|
|
14
14
|
import { u as j } from "../../useId-BVFxCjkq.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as f, jsx as e } from "react/jsx-runtime";
|
|
3
3
|
import { useState as d, useCallback as G, useEffect as L, useMemo as C } from "react";
|
|
4
|
-
import { M as S } from "../../SearchField-
|
|
4
|
+
import { M as S } from "../../SearchField-DhPNZyyE.js";
|
|
5
5
|
import "../../index-p1eeF8LQ.js";
|
|
6
6
|
import "../Button/Button.js";
|
|
7
7
|
import "react-dom";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import { useRef as g, useMemo as l } from "react";
|
|
4
4
|
import { useEnterKey as v } from "../../hooks/useEnterKey.js";
|
|
5
|
-
import { a as h } from "../../SearchField-
|
|
5
|
+
import { a as h } from "../../SearchField-DhPNZyyE.js";
|
|
6
6
|
import "../../index-p1eeF8LQ.js";
|
|
7
7
|
import "../Button/Button.js";
|
|
8
8
|
import "react-dom";
|
|
@@ -6,7 +6,7 @@ import { AccountMenu as x } from "../Account/AccountMenu.js";
|
|
|
6
6
|
import "../Button/Button.js";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import { M as f } from "../../SearchField-
|
|
9
|
+
import { M as f } from "../../SearchField-DhPNZyyE.js";
|
|
10
10
|
import { MenuListItem as h } from "../Menu/MenuListItem.js";
|
|
11
11
|
import { CurrentAccount as y } from "./CurrentAccount.js";
|
|
12
12
|
import { BackButton as j } from "./BackButton.js";
|
|
@@ -7,7 +7,7 @@ import { DropdownBase as x } from "../Dropdown/DropdownBase.js";
|
|
|
7
7
|
import "../../index-p1eeF8LQ.js";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
import "../Button/Button.js";
|
|
10
|
-
import { a as p } from "../../SearchField-
|
|
10
|
+
import { a as p } from "../../SearchField-DhPNZyyE.js";
|
|
11
11
|
import { useRootContext as I } from "../RootProvider/RootProvider.js";
|
|
12
12
|
import { LocaleButton as S } from "./LocaleButton.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsxs as a, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { c } from "../../index-p1eeF8LQ.js";
|
|
3
|
+
import '../../assets/TypingIcon.css';const r = "_typingIcon_16t3v_1", o = {
|
|
4
|
+
typingIcon: r
|
|
5
|
+
}, p = ({ "aria-label": i, className: t, ...n }) => /* @__PURE__ */ a(
|
|
6
|
+
"svg",
|
|
7
|
+
{
|
|
8
|
+
"aria-label": i,
|
|
9
|
+
className: c(o.typingIcon, t),
|
|
10
|
+
width: "40",
|
|
11
|
+
height: "20",
|
|
12
|
+
role: "img",
|
|
13
|
+
viewBox: "0 0 40 20",
|
|
14
|
+
...n,
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ e("circle", { cx: "8", cy: "10", r: "3", children: /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.25;1;0.25", dur: "1s", begin: "0s", repeatCount: "indefinite" }) }),
|
|
17
|
+
/* @__PURE__ */ e("circle", { cx: "20", cy: "10", r: "3", children: /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.25;1;0.25", dur: "1s", begin: "0.2s", repeatCount: "indefinite" }) }),
|
|
18
|
+
/* @__PURE__ */ e("circle", { cx: "32", cy: "10", r: "3", children: /* @__PURE__ */ e("animate", { attributeName: "opacity", values: "0.25;1;0.25", dur: "1s", begin: "0.4s", repeatCount: "indefinite" }) })
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
export {
|
|
23
|
+
p as TypingIcon
|
|
24
|
+
};
|
|
@@ -11,7 +11,7 @@ import { Footer as B } from "../Footer/Footer.js";
|
|
|
11
11
|
import { GlobalHeader as j } from "../GlobalHeader/GlobalHeader.js";
|
|
12
12
|
import "react";
|
|
13
13
|
import "../Button/Button.js";
|
|
14
|
-
import { M as k } from "../../SearchField-
|
|
14
|
+
import { M as k } from "../../SearchField-DhPNZyyE.js";
|
|
15
15
|
import { useRootContext as C } from "../RootProvider/RootProvider.js";
|
|
16
16
|
import { Header as F } from "../Header/Header.js";
|
|
17
17
|
import "../Snackbar/useSnackbar.js";
|
|
@@ -5,7 +5,7 @@ import "../../hooks/useMenu.js";
|
|
|
5
5
|
import "../Button/Button.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { a as c } from "../../SearchField-
|
|
8
|
+
import { a as c } from "../../SearchField-DhPNZyyE.js";
|
|
9
9
|
import "./MenuItem.js";
|
|
10
10
|
import "./MenuList.js";
|
|
11
11
|
import "./MenuListItem.js";
|
|
@@ -4,7 +4,7 @@ import "react";
|
|
|
4
4
|
import "../Button/Button.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { b } from "../../SearchField-
|
|
7
|
+
import { b } from "../../SearchField-DhPNZyyE.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
9
9
|
export {
|
|
10
10
|
b as MenuListSearch
|
|
@@ -5,7 +5,7 @@ import "../../hooks/useMenu.js";
|
|
|
5
5
|
import "../Button/Button.js";
|
|
6
6
|
import "react-dom";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { V as I } from "../../SearchField-
|
|
8
|
+
import { V as I } from "../../SearchField-DhPNZyyE.js";
|
|
9
9
|
import "./MenuItem.js";
|
|
10
10
|
import "./MenuList.js";
|
|
11
11
|
import "./MenuListItem.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as t, a as o, b as n, V as u } from "../../SearchField-
|
|
1
|
+
import { M as t, a as o, b as n, V as u } from "../../SearchField-DhPNZyyE.js";
|
|
2
2
|
import { MenuItem as M } from "./MenuItem.js";
|
|
3
3
|
import { MenuList as s } from "./MenuList.js";
|
|
4
4
|
import { MenuListItem as a } from "./MenuListItem.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import '../../assets/QueryLabel.css';const
|
|
3
|
-
label:
|
|
4
|
-
group:
|
|
1
|
+
import { jsx as e, jsxs as n } from "react/jsx-runtime";
|
|
2
|
+
import '../../assets/QueryLabel.css';const o = "_label_1qrdy_1", d = "_group_1qrdy_31", p = "_plus_1qrdy_37", u = "_item_1qrdy_41", a = {
|
|
3
|
+
label: o,
|
|
4
|
+
group: d,
|
|
5
5
|
plus: p,
|
|
6
|
-
item:
|
|
7
|
-
},
|
|
8
|
-
/* @__PURE__ */ e(
|
|
9
|
-
s[
|
|
10
|
-
] },
|
|
6
|
+
item: u
|
|
7
|
+
}, i = ({ type: s = "search", label: l }) => /* @__PURE__ */ e("span", { className: a.item, "data-type": s, children: l }), _ = ({ params: s = [], size: l = "sm", variant: r = "default" }) => /* @__PURE__ */ e("div", { className: a.label, "data-size": l, "data-variant": r, children: s.map((c, t) => /* @__PURE__ */ n("div", { className: a.group, children: [
|
|
8
|
+
/* @__PURE__ */ e(i, { ...c }),
|
|
9
|
+
s[t + 1] && /* @__PURE__ */ e("span", { className: a.plus, children: "+" })
|
|
10
|
+
] }, t)) });
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
i as QueryItem,
|
|
13
|
+
_ as QueryLabel
|
|
14
14
|
};
|
|
@@ -1,80 +1,82 @@
|
|
|
1
1
|
import { jsx as r, jsxs as g } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
|
-
import { useState as
|
|
3
|
+
import { useState as y } from "react";
|
|
4
4
|
import { Button as d } from "../Button/Button.js";
|
|
5
5
|
import { ButtonGroup as h } from "../Button/ButtonGroup.js";
|
|
6
|
-
import { ContextMenu as
|
|
6
|
+
import { ContextMenu as C } from "../ContextMenu/ContextMenu.js";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
import "../RootProvider/RootProvider.js";
|
|
9
|
-
import { QueryLabel as
|
|
10
|
-
import { TextField as
|
|
9
|
+
import { QueryLabel as G } from "../Searchbar/QueryLabel.js";
|
|
10
|
+
import { TextField as j } from "../Forms/TextField.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
import { SettingsItemBase as
|
|
13
|
-
import { SettingsModal as
|
|
14
|
-
import {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
12
|
+
import { SettingsItemBase as z } from "./SettingsItemBase.js";
|
|
13
|
+
import { SettingsModal as L } from "./SettingsModal.js";
|
|
14
|
+
import { BookmarksSettingsItemLabel as M } from "./BookmarksSettingsItemLabel.js";
|
|
15
|
+
import { S as Q } from "../../MagnifyingGlass-bwVhw07z.js";
|
|
16
|
+
const X = ({
|
|
17
|
+
id: S,
|
|
18
|
+
icon: m = Q,
|
|
19
|
+
loading: l,
|
|
20
|
+
title: n,
|
|
21
|
+
untitled: T,
|
|
22
|
+
highlightWords: u,
|
|
23
|
+
params: a,
|
|
24
|
+
controls: V,
|
|
22
25
|
inputValue: s,
|
|
23
|
-
titleField:
|
|
24
|
-
saveButton:
|
|
25
|
-
removeButton:
|
|
26
|
-
contextMenu:
|
|
27
|
-
onChange:
|
|
28
|
-
open:
|
|
26
|
+
titleField: f,
|
|
27
|
+
saveButton: o,
|
|
28
|
+
removeButton: i,
|
|
29
|
+
contextMenu: p,
|
|
30
|
+
onChange: c,
|
|
31
|
+
open: k = !1,
|
|
29
32
|
onClose: e,
|
|
30
|
-
...
|
|
33
|
+
...b
|
|
31
34
|
}) => {
|
|
32
|
-
const [
|
|
35
|
+
const [x, I] = y("");
|
|
33
36
|
return /* @__PURE__ */ r(
|
|
34
|
-
|
|
37
|
+
z,
|
|
35
38
|
{
|
|
36
|
-
...
|
|
37
|
-
id:
|
|
38
|
-
expanded:
|
|
39
|
+
...b,
|
|
40
|
+
id: S,
|
|
41
|
+
expanded: k,
|
|
39
42
|
icon: m,
|
|
40
|
-
loading:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
controls: f && /* @__PURE__ */ r(z, { ...f }),
|
|
43
|
+
loading: l,
|
|
44
|
+
label: /* @__PURE__ */ r(M, { highlightWords: u, loading: l, params: a, title: n }),
|
|
45
|
+
controls: p && /* @__PURE__ */ r(C, { ...p }),
|
|
44
46
|
linkIcon: !0,
|
|
45
|
-
children: /* @__PURE__ */ g(
|
|
46
|
-
/* @__PURE__ */ r(
|
|
47
|
+
children: /* @__PURE__ */ g(L, { icon: m, title: n, open: k, onClose: e, children: [
|
|
48
|
+
/* @__PURE__ */ r(G, { params: a }),
|
|
47
49
|
/* @__PURE__ */ r(
|
|
48
|
-
|
|
50
|
+
j,
|
|
49
51
|
{
|
|
50
|
-
...
|
|
51
|
-
label:
|
|
52
|
+
...f,
|
|
53
|
+
label: f?.label || "Gi søket et navn",
|
|
52
54
|
size: "sm",
|
|
53
55
|
name: "title",
|
|
54
|
-
value: typeof s == "string" ? s :
|
|
55
|
-
onChange: (
|
|
56
|
-
typeof
|
|
56
|
+
value: typeof s == "string" ? s : x,
|
|
57
|
+
onChange: (t) => {
|
|
58
|
+
typeof c == "function" ? c(t) : I(t.target.value);
|
|
57
59
|
}
|
|
58
60
|
}
|
|
59
61
|
),
|
|
60
|
-
(
|
|
61
|
-
|
|
62
|
+
(o || i) && /* @__PURE__ */ g(h, { size: "md", children: [
|
|
63
|
+
o && /* @__PURE__ */ r(
|
|
62
64
|
d,
|
|
63
65
|
{
|
|
64
|
-
...
|
|
65
|
-
onClick: (
|
|
66
|
-
|
|
66
|
+
...o,
|
|
67
|
+
onClick: (t) => {
|
|
68
|
+
o.onClick?.(t), e();
|
|
67
69
|
}
|
|
68
70
|
}
|
|
69
71
|
),
|
|
70
|
-
|
|
72
|
+
i && /* @__PURE__ */ r(
|
|
71
73
|
d,
|
|
72
74
|
{
|
|
73
|
-
...
|
|
75
|
+
...i,
|
|
74
76
|
variant: "outline",
|
|
75
77
|
color: "danger",
|
|
76
|
-
onClick: (
|
|
77
|
-
|
|
78
|
+
onClick: (t) => {
|
|
79
|
+
i.onClick?.(t), e();
|
|
78
80
|
}
|
|
79
81
|
}
|
|
80
82
|
)
|
|
@@ -84,5 +86,5 @@ const O = ({
|
|
|
84
86
|
);
|
|
85
87
|
};
|
|
86
88
|
export {
|
|
87
|
-
|
|
89
|
+
X as BookmarksSettingsItem
|
|
88
90
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { jsxs as e, Fragment as s, jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import "../../index-p1eeF8LQ.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Heading as p } from "../Typography/Heading.js";
|
|
5
|
+
import "../Button/Button.js";
|
|
6
|
+
import "react-dom";
|
|
7
|
+
import "../RootProvider/RootProvider.js";
|
|
8
|
+
import { QueryLabel as a } from "../Searchbar/QueryLabel.js";
|
|
9
|
+
import "../Snackbar/useSnackbar.js";
|
|
10
|
+
const h = ({
|
|
11
|
+
loading: o,
|
|
12
|
+
title: r,
|
|
13
|
+
params: i,
|
|
14
|
+
highlightWords: t
|
|
15
|
+
}) => /* @__PURE__ */ e(s, { children: [
|
|
16
|
+
r && /* @__PURE__ */ m(p, { size: "sm", loading: o, highlightWords: t, children: r }),
|
|
17
|
+
/* @__PURE__ */ m(a, { params: i, size: r ? "xs" : "sm", variant: r ? "subtle" : "default" })
|
|
18
|
+
] });
|
|
19
|
+
export {
|
|
20
|
+
h as BookmarksSettingsItemLabel
|
|
21
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as L, useState as u, useCallback as O, useEffect as R } from "react";
|
|
3
|
-
import { M as x } from "../../SearchField-
|
|
3
|
+
import { M as x } from "../../SearchField-DhPNZyyE.js";
|
|
4
4
|
import "../../index-p1eeF8LQ.js";
|
|
5
5
|
import "../Button/Button.js";
|
|
6
6
|
import "react-dom";
|
|
@@ -5,7 +5,7 @@ import { Button as b } from "../Button/Button.js";
|
|
|
5
5
|
import "../../index-p1eeF8LQ.js";
|
|
6
6
|
import { Dropdown as O } from "../Dropdown/Dropdown.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import { M as I } from "../../SearchField-
|
|
8
|
+
import { M as I } from "../../SearchField-DhPNZyyE.js";
|
|
9
9
|
import { useDropdownMenuController as x } from "../Menu/useDropdownMenuController.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { u as R } from "../../useId-BVFxCjkq.js";
|
|
@@ -2,7 +2,7 @@ import { jsx as n } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as q, useEffect as G } from "react";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "../Button/Button.js";
|
|
5
|
-
import { M as H } from "../../SearchField-
|
|
5
|
+
import { M as H } from "../../SearchField-DhPNZyyE.js";
|
|
6
6
|
import { useDropdownMenuController as J } from "../Menu/useDropdownMenuController.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
8
|
import "../Snackbar/useSnackbar.js";
|
|
@@ -4,7 +4,7 @@ import "../../index-p1eeF8LQ.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import { Dropdown as c } from "../Dropdown/Dropdown.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { M as b } from "../../SearchField-
|
|
7
|
+
import { M as b } from "../../SearchField-DhPNZyyE.js";
|
|
8
8
|
import { useDropdownMenuController as f } from "../Menu/useDropdownMenuController.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
10
|
import { S as h } from "../../ChevronUpDown-DqGsU4MC.js";
|
|
@@ -1,39 +1,43 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-p1eeF8LQ.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../Button/Button.js";
|
|
5
5
|
import "react-dom";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import "../Snackbar/useSnackbar.js";
|
|
8
|
-
import { S as
|
|
9
|
-
const
|
|
8
|
+
import { S as l } from "../../SearchField-DhPNZyyE.js";
|
|
9
|
+
const j = ({
|
|
10
10
|
value: r,
|
|
11
11
|
name: o,
|
|
12
12
|
placeholder: t = "Search",
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
f
|
|
13
|
+
loading: e,
|
|
14
|
+
collapsible: a,
|
|
15
|
+
clearButtonAltText: i = "Clear search",
|
|
16
|
+
onChange: p,
|
|
17
|
+
onClear: m,
|
|
18
|
+
onKeyDown: s,
|
|
19
|
+
menu: c,
|
|
20
|
+
minLength: f
|
|
21
|
+
}) => /* @__PURE__ */ h(
|
|
22
|
+
l,
|
|
21
23
|
{
|
|
22
24
|
size: "xs",
|
|
23
25
|
value: r,
|
|
24
26
|
name: o,
|
|
25
27
|
placeholder: t,
|
|
26
|
-
clearButtonAltText:
|
|
27
|
-
onChange:
|
|
28
|
-
onClear:
|
|
29
|
-
|
|
28
|
+
clearButtonAltText: i,
|
|
29
|
+
onChange: p,
|
|
30
|
+
onClear: m,
|
|
31
|
+
onKeyDown: s,
|
|
32
|
+
collapsible: a,
|
|
30
33
|
autoComplete: "off",
|
|
31
34
|
autoCapitalize: "off",
|
|
32
35
|
type: "search",
|
|
33
|
-
minLength:
|
|
34
|
-
|
|
36
|
+
minLength: f,
|
|
37
|
+
loading: e,
|
|
38
|
+
menu: c
|
|
35
39
|
}
|
|
36
40
|
);
|
|
37
41
|
export {
|
|
38
|
-
|
|
42
|
+
j as ToolbarSearch
|
|
39
43
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -99,7 +99,7 @@ import { ListItemControls as Ve } from "./List/ListItemControls.js";
|
|
|
99
99
|
import { ListItemSelect as Qe } from "./List/ListItemSelect.js";
|
|
100
100
|
import { ListItem as je } from "./List/ListItem.js";
|
|
101
101
|
import { List as Je } from "./List/List.js";
|
|
102
|
-
import { M as We, a as Xe, b as Ye, S as Ze, V as $e } from "../SearchField-
|
|
102
|
+
import { M as We, a as Xe, b as Ye, S as Ze, V as $e } from "../SearchField-DhPNZyyE.js";
|
|
103
103
|
import { MenuItem as rt } from "./Menu/MenuItem.js";
|
|
104
104
|
import { MenuList as tt } from "./Menu/MenuList.js";
|
|
105
105
|
import { MenuListItem as pt } from "./Menu/MenuListItem.js";
|
package/dist/index.js
CHANGED
|
@@ -99,7 +99,7 @@ import { ListItemControls as Ve } from "./components/List/ListItemControls.js";
|
|
|
99
99
|
import { ListItemSelect as Qe } from "./components/List/ListItemSelect.js";
|
|
100
100
|
import { ListItem as Ke } from "./components/List/ListItem.js";
|
|
101
101
|
import { List as qe } from "./components/List/List.js";
|
|
102
|
-
import { M as We, a as Xe, b as Ye, S as Ze, V as $e } from "./SearchField-
|
|
102
|
+
import { M as We, a as Xe, b as Ye, S as Ze, V as $e } from "./SearchField-DhPNZyyE.js";
|
|
103
103
|
import { MenuItem as rt } from "./components/Menu/MenuItem.js";
|
|
104
104
|
import { MenuList as tt } from "./components/Menu/MenuList.js";
|
|
105
105
|
import { MenuListItem as pt } from "./components/Menu/MenuListItem.js";
|
|
@@ -10,7 +10,9 @@ export interface SearchFieldProps extends InputProps {
|
|
|
10
10
|
value?: InputProps['value'];
|
|
11
11
|
label?: FieldBaseProps['label'];
|
|
12
12
|
clearButtonAltText?: string;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
loadingLabel?: string;
|
|
13
15
|
onClear?: () => void;
|
|
14
16
|
menu?: SearchFieldMenuProps;
|
|
15
17
|
}
|
|
16
|
-
export declare const SearchField: ({ className, collapsible, size, color, label, value, onClear, clearButtonAltText, menu, minLength, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const SearchField: ({ className, collapsible, loading, loadingLabel, size, color, label, value, onClear, clearButtonAltText, menu, minLength, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { SearchFieldProps } from './SearchField';
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ className, collapsible, size, color, label, value, onClear, clearButtonAltText, menu, minLength, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ className, collapsible, loading, loadingLabel, size, color, label, value, onClear, clearButtonAltText, menu, minLength, ...rest }: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
parameters: {};
|
|
8
8
|
args: {
|
|
@@ -14,5 +14,6 @@ export default meta;
|
|
|
14
14
|
type Story = StoryObj<typeof meta>;
|
|
15
15
|
export declare const Default: Story;
|
|
16
16
|
export declare const ClearButton: Story;
|
|
17
|
+
export declare const DebouncedQuery: (args: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
18
|
export declare const Controlled: (args: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
export declare const Autocomplete: (args: SearchFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type TypingIconProps = {
|
|
3
|
+
/**
|
|
4
|
+
* Accessibile label
|
|
5
|
+
*/
|
|
6
|
+
'aria-label'?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Spinner size
|
|
9
|
+
*/
|
|
10
|
+
'data-size'?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
11
|
+
} & ComponentPropsWithoutRef<'svg'> & ({
|
|
12
|
+
'aria-label': string;
|
|
13
|
+
} | {
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
'aria-hidden': true | 'true';
|
|
16
|
+
});
|
|
17
|
+
export declare const TypingIcon: ({ "aria-label": ariaLabel, className, ...rest }: TypingIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,5 +9,6 @@ export declare const QueryItem: ({ type, label }: QueryItemProps) => import("rea
|
|
|
9
9
|
export interface QueryLabelProps {
|
|
10
10
|
params?: QueryItemProps[];
|
|
11
11
|
size?: QueryItemSize;
|
|
12
|
+
variant?: 'default' | 'subtle';
|
|
12
13
|
}
|
|
13
|
-
export declare const QueryLabel: ({ params, size }: QueryLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare const QueryLabel: ({ params, size, variant }: QueryLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,6 +8,8 @@ export interface BookmarksSettingsItemProps extends SettingsItemProps {
|
|
|
8
8
|
loading?: boolean;
|
|
9
9
|
/** Optional title */
|
|
10
10
|
title?: string;
|
|
11
|
+
/** Optional title */
|
|
12
|
+
untitled?: string;
|
|
11
13
|
/** Query params */
|
|
12
14
|
params?: QueryItemProps[];
|
|
13
15
|
/** Input value */
|
|
@@ -27,4 +29,4 @@ export interface BookmarksSettingsItemProps extends SettingsItemProps {
|
|
|
27
29
|
/** Open */
|
|
28
30
|
open?: boolean;
|
|
29
31
|
}
|
|
30
|
-
export declare const BookmarksSettingsItem: ({ id, icon, loading, title, params, controls, inputValue, titleField, saveButton, removeButton, contextMenu, onChange, open, onClose, ...rest }: BookmarksSettingsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export declare const BookmarksSettingsItem: ({ id, icon, loading, title, untitled, highlightWords, params, controls, inputValue, titleField, saveButton, removeButton, contextMenu, onChange, open, onClose, ...rest }: BookmarksSettingsItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { QueryItemProps } from '..';
|
|
2
|
+
export interface BookmarksSettingsItemLabelProps {
|
|
3
|
+
/** Optional title */
|
|
4
|
+
title?: string;
|
|
5
|
+
/** Query params */
|
|
6
|
+
params?: QueryItemProps[];
|
|
7
|
+
/** Loading */
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
/** Highlight words */
|
|
10
|
+
highlightWords?: string[];
|
|
11
|
+
}
|
|
12
|
+
export declare const BookmarksSettingsItemLabel: ({ loading, title, params, highlightWords, }: BookmarksSettingsItemLabelProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -28,3 +28,4 @@ export declare const AccountMenuAndFilters: () => import("react/jsx-runtime").JS
|
|
|
28
28
|
export declare const AccountMenuAndSearch: () => import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export declare const AccountMenuAndSearchAutocomplete: () => import("react/jsx-runtime").JSX.Element;
|
|
30
30
|
export declare const AccountMenuAndSubmenu: () => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare const DebouncedQuery: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,4 +2,4 @@ import { SearchFieldProps } from '../Forms';
|
|
|
2
2
|
export interface ToolbarSearchProps extends SearchFieldProps {
|
|
3
3
|
collapsible?: boolean;
|
|
4
4
|
}
|
|
5
|
-
export declare const ToolbarSearch: ({ value, name, placeholder, collapsible, clearButtonAltText, onChange, onClear, menu, minLength, }: ToolbarSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare const ToolbarSearch: ({ value, name, placeholder, loading, collapsible, clearButtonAltText, onChange, onClear, onKeyDown, menu, minLength, }: ToolbarSearchProps) => import("react/jsx-runtime").JSX.Element;
|