@temp-spotwork/ui 1.7.7 → 1.7.8
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/components/atoms/form/dropdown-item/dropdown-item.d.ts +40 -0
- package/dist/components/atoms/form/dropdown-item/dropdown-item.js +49 -0
- package/dist/components/atoms/form/dropdown-item/dropdown-item.stories.d.ts +11 -0
- package/dist/components/atoms/form/dropdown-item/dropdown-item.stories.js +109 -0
- package/dist/components/atoms/form/dropdown-item/index.d.ts +2 -0
- package/dist/components/atoms/form/dropdown-item/index.js +5 -0
- package/dist/components/atoms/form/dropdown-item/styles.d.ts +6 -0
- package/dist/components/atoms/form/dropdown-item/styles.js +9 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.d.ts +1 -0
- package/dist/components/atoms/form/dropdown-search/dropdown-search.stories.js +80 -53
- package/dist/components/atoms/form/typeahead/typeahead.d.ts +5 -1
- package/dist/components/atoms/form/typeahead/typeahead.js +60 -59
- package/dist/main.d.ts +2 -0
- package/dist/main.js +144 -141
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { LabelValuePair } from '../form-types';
|
|
2
|
+
|
|
3
|
+
export type SpotterDropdownOption = LabelValuePair & {
|
|
4
|
+
/**
|
|
5
|
+
* URL of the spotter profile image.
|
|
6
|
+
*/
|
|
7
|
+
image?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Optional secondary line (e.g. email, role, location).
|
|
10
|
+
*/
|
|
11
|
+
subtitle?: string;
|
|
12
|
+
};
|
|
13
|
+
export type DropdownItemProps = {
|
|
14
|
+
/**
|
|
15
|
+
* Unique identifier for the avatar.
|
|
16
|
+
*/
|
|
17
|
+
avatarId: string;
|
|
18
|
+
/**
|
|
19
|
+
* Spotter display name.
|
|
20
|
+
*/
|
|
21
|
+
name: string;
|
|
22
|
+
/**
|
|
23
|
+
* URL of the spotter profile image.
|
|
24
|
+
*/
|
|
25
|
+
image?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Text abbreviation fallback when no image is provided.
|
|
28
|
+
*/
|
|
29
|
+
textView?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional secondary line displayed below the name.
|
|
32
|
+
*/
|
|
33
|
+
subtitle?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Optional classes for the container.
|
|
36
|
+
*/
|
|
37
|
+
className?: string;
|
|
38
|
+
};
|
|
39
|
+
export declare function DropdownItem({ avatarId, name, image, textView, subtitle, className, }: DropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function renderSpotterDropdownOption(option: string | LabelValuePair | SpotterDropdownOption): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsxs as o, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { t as c } from "../../../../bundle-mjs-BjFsLjkg.js";
|
|
3
|
+
import { Avatar as p } from "../../avatar/avatar.js";
|
|
4
|
+
import { Typography as s } from "../../../styles/typography/typography.js";
|
|
5
|
+
import { getStyles as u } from "./styles.js";
|
|
6
|
+
function n({
|
|
7
|
+
avatarId: e,
|
|
8
|
+
name: t,
|
|
9
|
+
image: l,
|
|
10
|
+
textView: m,
|
|
11
|
+
subtitle: i,
|
|
12
|
+
className: d
|
|
13
|
+
}) {
|
|
14
|
+
const a = u();
|
|
15
|
+
return /* @__PURE__ */ o("div", { className: c(a.container, d), "data-testid": "dropdown-item", children: [
|
|
16
|
+
/* @__PURE__ */ r(
|
|
17
|
+
p,
|
|
18
|
+
{
|
|
19
|
+
id: e,
|
|
20
|
+
variant: "circular",
|
|
21
|
+
image: l,
|
|
22
|
+
textView: m ?? t,
|
|
23
|
+
size: 3.5
|
|
24
|
+
}
|
|
25
|
+
),
|
|
26
|
+
/* @__PURE__ */ o("div", { className: a.textContainer, children: [
|
|
27
|
+
/* @__PURE__ */ r(s, { swStyle: 5, color: "default", className: a.name, children: t }),
|
|
28
|
+
i && /* @__PURE__ */ r(s, { swStyle: 6, color: "subdued", className: a.subtitle, children: i })
|
|
29
|
+
] })
|
|
30
|
+
] });
|
|
31
|
+
}
|
|
32
|
+
function h(e) {
|
|
33
|
+
if (typeof e == "string")
|
|
34
|
+
return /* @__PURE__ */ r(n, { avatarId: e, name: e });
|
|
35
|
+
const t = e;
|
|
36
|
+
return /* @__PURE__ */ r(
|
|
37
|
+
n,
|
|
38
|
+
{
|
|
39
|
+
avatarId: t.value,
|
|
40
|
+
name: t.label,
|
|
41
|
+
image: t.image,
|
|
42
|
+
subtitle: t.subtitle
|
|
43
|
+
}
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
n as DropdownItem,
|
|
48
|
+
h as renderSpotterDropdownOption
|
|
49
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { DropdownItem } from './dropdown-item';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof DropdownItem>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof meta>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const WithoutImage: Story;
|
|
9
|
+
export declare const WithoutSubtitle: Story;
|
|
10
|
+
export declare const WithDropdownSearch: Story;
|
|
11
|
+
export declare const WithTypeahead: Story;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { useState as o } from "react";
|
|
3
|
+
import { DropdownItem as l, renderSpotterDropdownOption as a } from "./dropdown-item.js";
|
|
4
|
+
import { DropdownSearch as p } from "../dropdown-search/dropdown-search.js";
|
|
5
|
+
import { Typeahead as c } from "../typeahead/typeahead.js";
|
|
6
|
+
const s = [
|
|
7
|
+
{
|
|
8
|
+
label: "Sarah Johnson",
|
|
9
|
+
value: "spotter-1",
|
|
10
|
+
image: "https://i.pravatar.cc/150?u=spotter-1",
|
|
11
|
+
subtitle: "Toronto, ON"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: "Michael Chen",
|
|
15
|
+
value: "spotter-2",
|
|
16
|
+
image: "https://i.pravatar.cc/150?u=spotter-2",
|
|
17
|
+
subtitle: "Vancouver, BC"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "Emily Rodriguez",
|
|
21
|
+
value: "spotter-3",
|
|
22
|
+
subtitle: "Calgary, AB"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: "James Wilson",
|
|
26
|
+
value: "spotter-4",
|
|
27
|
+
image: "https://i.pravatar.cc/150?u=spotter-4"
|
|
28
|
+
}
|
|
29
|
+
], g = {
|
|
30
|
+
title: "@spotwork-ui/atoms/form/DropdownItem",
|
|
31
|
+
component: l,
|
|
32
|
+
parameters: {
|
|
33
|
+
layout: "centered",
|
|
34
|
+
docs: {
|
|
35
|
+
description: {
|
|
36
|
+
component: "A reusable dropdown row for spotter search results. Displays an avatar, name, and optional subtitle using design tokens."
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
tags: ["autodocs"],
|
|
41
|
+
argTypes: {
|
|
42
|
+
name: { control: "text" },
|
|
43
|
+
subtitle: { control: "text" },
|
|
44
|
+
image: { control: "text" }
|
|
45
|
+
}
|
|
46
|
+
}, n = {
|
|
47
|
+
args: {
|
|
48
|
+
avatarId: "spotter-1",
|
|
49
|
+
name: "Sarah Johnson",
|
|
50
|
+
image: "https://i.pravatar.cc/150?u=spotter-1",
|
|
51
|
+
subtitle: "Toronto, ON"
|
|
52
|
+
},
|
|
53
|
+
decorators: [
|
|
54
|
+
(t) => /* @__PURE__ */ e("div", { className: "w-[32rem] border border-bcolor-subdued rounded", children: /* @__PURE__ */ e("div", { className: "min-h-[4rem] w-full flex items-center border-b border-bcolor-subdued py-[0.75rem] px-[1rem]", children: /* @__PURE__ */ e(t, {}) }) })
|
|
55
|
+
]
|
|
56
|
+
}, w = {
|
|
57
|
+
args: {
|
|
58
|
+
avatarId: "spotter-3",
|
|
59
|
+
name: "Emily Rodriguez",
|
|
60
|
+
subtitle: "Calgary, AB"
|
|
61
|
+
},
|
|
62
|
+
decorators: n.decorators
|
|
63
|
+
}, y = {
|
|
64
|
+
args: {
|
|
65
|
+
avatarId: "spotter-4",
|
|
66
|
+
name: "James Wilson",
|
|
67
|
+
image: "https://i.pravatar.cc/150?u=spotter-4"
|
|
68
|
+
},
|
|
69
|
+
decorators: n.decorators
|
|
70
|
+
}, i = () => {
|
|
71
|
+
const [t, r] = o("");
|
|
72
|
+
return /* @__PURE__ */ e("div", { className: "w-[36rem]", children: /* @__PURE__ */ e(
|
|
73
|
+
p,
|
|
74
|
+
{
|
|
75
|
+
label: "Search spotters",
|
|
76
|
+
placeholder: "Search by name...",
|
|
77
|
+
options: s,
|
|
78
|
+
value: t,
|
|
79
|
+
selectValue: r,
|
|
80
|
+
renderOption: a
|
|
81
|
+
}
|
|
82
|
+
) });
|
|
83
|
+
}, S = {
|
|
84
|
+
render: () => /* @__PURE__ */ e(i, {})
|
|
85
|
+
}, d = () => {
|
|
86
|
+
const [t, r] = o("");
|
|
87
|
+
return /* @__PURE__ */ e("div", { className: "w-[36rem]", children: /* @__PURE__ */ e(
|
|
88
|
+
c,
|
|
89
|
+
{
|
|
90
|
+
label: "Search spotters",
|
|
91
|
+
placeholder: "Search by name...",
|
|
92
|
+
options: s,
|
|
93
|
+
value: t,
|
|
94
|
+
onChange: r,
|
|
95
|
+
selectValue: r,
|
|
96
|
+
renderOption: a
|
|
97
|
+
}
|
|
98
|
+
) });
|
|
99
|
+
}, f = {
|
|
100
|
+
render: () => /* @__PURE__ */ e(d, {})
|
|
101
|
+
};
|
|
102
|
+
export {
|
|
103
|
+
n as Default,
|
|
104
|
+
S as WithDropdownSearch,
|
|
105
|
+
f as WithTypeahead,
|
|
106
|
+
w as WithoutImage,
|
|
107
|
+
y as WithoutSubtitle,
|
|
108
|
+
g as default
|
|
109
|
+
};
|
|
@@ -16,6 +16,7 @@ export declare const Controlled: Story;
|
|
|
16
16
|
export declare const ControlledWithExternalState: Story;
|
|
17
17
|
export declare const WithAddValue: Story;
|
|
18
18
|
export declare const CustomRenderOption: Story;
|
|
19
|
+
export declare const SpotterSearch: Story;
|
|
19
20
|
export declare const LargeDataset: Story;
|
|
20
21
|
export declare const AutoFocus: Story;
|
|
21
22
|
export declare const CustomNotFoundText: Story;
|
|
@@ -6,6 +6,7 @@ import { Typography as p } from "../../../styles/typography/typography.js";
|
|
|
6
6
|
import { Icons as h } from "../../icons/icons.js";
|
|
7
7
|
import "../../icons/iconsSVGs/Large/Profile.js";
|
|
8
8
|
import "../../icons/iconsSVGs/Small/Profile.js";
|
|
9
|
+
import { renderSpotterDropdownOption as g } from "../dropdown-item/dropdown-item.js";
|
|
9
10
|
const t = [
|
|
10
11
|
{ label: "Apple", value: "apple" },
|
|
11
12
|
{ label: "Banana", value: "banana" },
|
|
@@ -15,7 +16,7 @@ const t = [
|
|
|
15
16
|
{ label: "Fig", value: "fig" },
|
|
16
17
|
{ label: "Grape", value: "grape" },
|
|
17
18
|
{ label: "Honeydew", value: "honeydew" }
|
|
18
|
-
],
|
|
19
|
+
], m = [
|
|
19
20
|
{ label: "Canada", value: "CA" },
|
|
20
21
|
{ label: "United States", value: "US" },
|
|
21
22
|
{ label: "United Kingdom", value: "UK" },
|
|
@@ -26,7 +27,25 @@ const t = [
|
|
|
26
27
|
{ label: "Japan", value: "JP" },
|
|
27
28
|
{ label: "Australia", value: "AU" },
|
|
28
29
|
{ label: "Brazil", value: "BR" }
|
|
29
|
-
],
|
|
30
|
+
], v = [
|
|
31
|
+
{
|
|
32
|
+
label: "Sarah Johnson",
|
|
33
|
+
value: "spotter-1",
|
|
34
|
+
image: "https://i.pravatar.cc/150?u=spotter-1",
|
|
35
|
+
subtitle: "Toronto, ON"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "Michael Chen",
|
|
39
|
+
value: "spotter-2",
|
|
40
|
+
image: "https://i.pravatar.cc/150?u=spotter-2",
|
|
41
|
+
subtitle: "Vancouver, BC"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
label: "Emily Rodriguez",
|
|
45
|
+
value: "spotter-3",
|
|
46
|
+
subtitle: "Calgary, AB"
|
|
47
|
+
}
|
|
48
|
+
], y = (e) => /* @__PURE__ */ l("div", { className: "flex items-center gap-2", children: [
|
|
30
49
|
/* @__PURE__ */ o(h, { icon: "Building" }),
|
|
31
50
|
/* @__PURE__ */ l("div", { className: "flex flex-col", children: [
|
|
32
51
|
/* @__PURE__ */ o(p, { swStyle: 5, color: "default", children: e.label }),
|
|
@@ -36,8 +55,8 @@ const t = [
|
|
|
36
55
|
] })
|
|
37
56
|
] })
|
|
38
57
|
] }), d = (e) => {
|
|
39
|
-
var
|
|
40
|
-
const [a,
|
|
58
|
+
var n, s;
|
|
59
|
+
const [a, r] = u(e.value || "");
|
|
41
60
|
return /* @__PURE__ */ l("div", { className: "space-y-4", children: [
|
|
42
61
|
/* @__PURE__ */ o(
|
|
43
62
|
c,
|
|
@@ -45,7 +64,7 @@ const t = [
|
|
|
45
64
|
...e,
|
|
46
65
|
value: a,
|
|
47
66
|
onChange: e.onChange,
|
|
48
|
-
selectValue:
|
|
67
|
+
selectValue: r
|
|
49
68
|
}
|
|
50
69
|
),
|
|
51
70
|
/* @__PURE__ */ l("div", { className: "text-sm text-gray-600", children: [
|
|
@@ -55,11 +74,11 @@ const t = [
|
|
|
55
74
|
] }),
|
|
56
75
|
/* @__PURE__ */ l("p", { children: [
|
|
57
76
|
"Selected option: ",
|
|
58
|
-
/* @__PURE__ */ o("strong", { children: a ? ((s = (
|
|
77
|
+
/* @__PURE__ */ o("strong", { children: a ? ((s = (n = e.options) == null ? void 0 : n.find((i) => i.value === a)) == null ? void 0 : s.label) || "not found" : "none" })
|
|
59
78
|
] })
|
|
60
79
|
] })
|
|
61
80
|
] });
|
|
62
|
-
},
|
|
81
|
+
}, E = {
|
|
63
82
|
title: "@spotwork-ui/atoms/form/DropdownSearch",
|
|
64
83
|
component: c,
|
|
65
84
|
parameters: {
|
|
@@ -137,25 +156,25 @@ const t = [
|
|
|
137
156
|
placeholder: "Search options...",
|
|
138
157
|
notFoundText: "No results found"
|
|
139
158
|
}
|
|
140
|
-
},
|
|
159
|
+
}, D = {
|
|
141
160
|
args: {
|
|
142
161
|
options: t,
|
|
143
162
|
label: "Select a fruit"
|
|
144
163
|
}
|
|
145
|
-
},
|
|
164
|
+
}, k = {
|
|
146
165
|
args: {
|
|
147
166
|
options: t,
|
|
148
167
|
label: "Choose your favorite fruit",
|
|
149
168
|
placeholder: "Type to search fruits..."
|
|
150
169
|
}
|
|
151
|
-
},
|
|
170
|
+
}, V = {
|
|
152
171
|
args: {
|
|
153
172
|
options: t,
|
|
154
173
|
label: "Fruit Selection",
|
|
155
174
|
helperText: "Select a fruit from the dropdown or search for one",
|
|
156
175
|
placeholder: "Search fruits..."
|
|
157
176
|
}
|
|
158
|
-
},
|
|
177
|
+
}, O = {
|
|
159
178
|
args: {
|
|
160
179
|
options: t,
|
|
161
180
|
label: "Fruit Selection",
|
|
@@ -163,7 +182,7 @@ const t = [
|
|
|
163
182
|
helperText: "Please select a valid fruit",
|
|
164
183
|
placeholder: "Search fruits..."
|
|
165
184
|
}
|
|
166
|
-
},
|
|
185
|
+
}, U = {
|
|
167
186
|
args: {
|
|
168
187
|
options: t,
|
|
169
188
|
label: "Fruit Selection",
|
|
@@ -171,7 +190,7 @@ const t = [
|
|
|
171
190
|
helperText: "Consider selecting a seasonal fruit",
|
|
172
191
|
placeholder: "Search fruits..."
|
|
173
192
|
}
|
|
174
|
-
},
|
|
193
|
+
}, L = {
|
|
175
194
|
args: {
|
|
176
195
|
options: t,
|
|
177
196
|
label: "Fruit Selection",
|
|
@@ -179,7 +198,7 @@ const t = [
|
|
|
179
198
|
value: "apple",
|
|
180
199
|
placeholder: "Search fruits..."
|
|
181
200
|
}
|
|
182
|
-
},
|
|
201
|
+
}, B = {
|
|
183
202
|
args: {
|
|
184
203
|
options: t,
|
|
185
204
|
label: "Loading Options",
|
|
@@ -187,30 +206,30 @@ const t = [
|
|
|
187
206
|
loadingIcon: /* @__PURE__ */ o(h, { icon: "Clock" }),
|
|
188
207
|
placeholder: "Loading..."
|
|
189
208
|
}
|
|
190
|
-
},
|
|
209
|
+
}, R = {
|
|
191
210
|
args: {
|
|
192
211
|
options: [],
|
|
193
212
|
label: "No Options",
|
|
194
213
|
placeholder: "No options available",
|
|
195
214
|
notFoundText: "No options match your search"
|
|
196
215
|
}
|
|
197
|
-
},
|
|
216
|
+
}, I = {
|
|
198
217
|
render: (e) => /* @__PURE__ */ o(d, { ...e }),
|
|
199
218
|
args: {
|
|
200
219
|
options: t,
|
|
201
220
|
label: "Controlled Dropdown",
|
|
202
221
|
placeholder: "Type to search..."
|
|
203
222
|
}
|
|
204
|
-
},
|
|
223
|
+
}, W = {
|
|
205
224
|
render: (e) => {
|
|
206
|
-
var
|
|
207
|
-
const [a,
|
|
225
|
+
var n, s;
|
|
226
|
+
const [a, r] = u("banana");
|
|
208
227
|
return /* @__PURE__ */ l("div", { className: "space-y-4", children: [
|
|
209
228
|
/* @__PURE__ */ l("div", { className: "flex gap-2", children: [
|
|
210
229
|
/* @__PURE__ */ o(
|
|
211
230
|
"button",
|
|
212
231
|
{
|
|
213
|
-
onClick: () =>
|
|
232
|
+
onClick: () => r("apple"),
|
|
214
233
|
className: "px-3 py-1 bg-blue-500 text-white rounded text-sm",
|
|
215
234
|
children: "Set to Apple"
|
|
216
235
|
}
|
|
@@ -218,7 +237,7 @@ const t = [
|
|
|
218
237
|
/* @__PURE__ */ o(
|
|
219
238
|
"button",
|
|
220
239
|
{
|
|
221
|
-
onClick: () =>
|
|
240
|
+
onClick: () => r("cherry"),
|
|
222
241
|
className: "px-3 py-1 bg-blue-500 text-white rounded text-sm",
|
|
223
242
|
children: "Set to Cherry"
|
|
224
243
|
}
|
|
@@ -226,7 +245,7 @@ const t = [
|
|
|
226
245
|
/* @__PURE__ */ o(
|
|
227
246
|
"button",
|
|
228
247
|
{
|
|
229
|
-
onClick: () =>
|
|
248
|
+
onClick: () => r(""),
|
|
230
249
|
className: "px-3 py-1 bg-red-500 text-white rounded text-sm",
|
|
231
250
|
children: "Clear"
|
|
232
251
|
}
|
|
@@ -237,7 +256,7 @@ const t = [
|
|
|
237
256
|
{
|
|
238
257
|
...e,
|
|
239
258
|
value: a,
|
|
240
|
-
selectValue:
|
|
259
|
+
selectValue: r
|
|
241
260
|
}
|
|
242
261
|
),
|
|
243
262
|
/* @__PURE__ */ l("div", { className: "text-sm text-gray-600", children: [
|
|
@@ -247,7 +266,7 @@ const t = [
|
|
|
247
266
|
] }),
|
|
248
267
|
/* @__PURE__ */ l("p", { children: [
|
|
249
268
|
"Selected option: ",
|
|
250
|
-
/* @__PURE__ */ o("strong", { children: a ? ((s = (
|
|
269
|
+
/* @__PURE__ */ o("strong", { children: a ? ((s = (n = e.options) == null ? void 0 : n.find((i) => i.value === a)) == null ? void 0 : s.label) || "not found" : "none" })
|
|
251
270
|
] })
|
|
252
271
|
] })
|
|
253
272
|
] });
|
|
@@ -264,7 +283,7 @@ const t = [
|
|
|
264
283
|
}
|
|
265
284
|
}
|
|
266
285
|
}
|
|
267
|
-
},
|
|
286
|
+
}, K = {
|
|
268
287
|
render: (e) => /* @__PURE__ */ o(d, { ...e }),
|
|
269
288
|
args: {
|
|
270
289
|
options: t,
|
|
@@ -272,14 +291,21 @@ const t = [
|
|
|
272
291
|
placeholder: "Search or add new value...",
|
|
273
292
|
addValue: b()
|
|
274
293
|
}
|
|
275
|
-
},
|
|
294
|
+
}, P = {
|
|
276
295
|
args: {
|
|
277
|
-
options:
|
|
296
|
+
options: m,
|
|
278
297
|
label: "Select Country",
|
|
279
298
|
placeholder: "Search countries...",
|
|
280
|
-
renderOption:
|
|
299
|
+
renderOption: y
|
|
281
300
|
}
|
|
282
|
-
},
|
|
301
|
+
}, j = {
|
|
302
|
+
args: {
|
|
303
|
+
options: v,
|
|
304
|
+
label: "Search spotters",
|
|
305
|
+
placeholder: "Search by name...",
|
|
306
|
+
renderOption: g
|
|
307
|
+
}
|
|
308
|
+
}, z = {
|
|
283
309
|
args: {
|
|
284
310
|
options: Array.from({ length: 100 }, (e, a) => ({
|
|
285
311
|
label: `Option ${a + 1}`,
|
|
@@ -288,28 +314,28 @@ const t = [
|
|
|
288
314
|
label: "Large Dataset",
|
|
289
315
|
placeholder: "Search through 100 options..."
|
|
290
316
|
}
|
|
291
|
-
},
|
|
317
|
+
}, J = {
|
|
292
318
|
args: {
|
|
293
319
|
options: t,
|
|
294
320
|
label: "Auto Focus",
|
|
295
321
|
autoFocus: !0,
|
|
296
322
|
placeholder: "This field is auto-focused"
|
|
297
323
|
}
|
|
298
|
-
},
|
|
324
|
+
}, G = {
|
|
299
325
|
args: {
|
|
300
326
|
options: [],
|
|
301
327
|
label: "Custom Not Found",
|
|
302
328
|
placeholder: "Search for something...",
|
|
303
329
|
notFoundText: "Sorry, we couldn't find what you're looking for. Try a different search term."
|
|
304
330
|
}
|
|
305
|
-
},
|
|
331
|
+
}, H = {
|
|
306
332
|
args: {
|
|
307
333
|
options: t,
|
|
308
334
|
label: "Preselected Value",
|
|
309
335
|
value: "banana",
|
|
310
336
|
placeholder: "Search fruits..."
|
|
311
337
|
}
|
|
312
|
-
},
|
|
338
|
+
}, $ = {
|
|
313
339
|
render: (e) => /* @__PURE__ */ o(d, { ...e }),
|
|
314
340
|
args: {
|
|
315
341
|
options: t,
|
|
@@ -324,7 +350,7 @@ const t = [
|
|
|
324
350
|
}
|
|
325
351
|
}
|
|
326
352
|
}
|
|
327
|
-
},
|
|
353
|
+
}, M = {
|
|
328
354
|
args: {
|
|
329
355
|
options: t,
|
|
330
356
|
label: "Accessible Dropdown",
|
|
@@ -340,23 +366,24 @@ const t = [
|
|
|
340
366
|
}
|
|
341
367
|
};
|
|
342
368
|
export {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
369
|
+
M as Accessibility,
|
|
370
|
+
J as AutoFocus,
|
|
371
|
+
I as Controlled,
|
|
372
|
+
W as ControlledWithExternalState,
|
|
373
|
+
G as CustomNotFoundText,
|
|
374
|
+
P as CustomRenderOption,
|
|
375
|
+
D as Default,
|
|
376
|
+
L as Disabled,
|
|
377
|
+
R as EmptyState,
|
|
378
|
+
O as ErrorState,
|
|
379
|
+
$ as KeyboardNavigation,
|
|
380
|
+
z as LargeDataset,
|
|
381
|
+
B as Loading,
|
|
382
|
+
j as SpotterSearch,
|
|
383
|
+
U as WarningState,
|
|
384
|
+
K as WithAddValue,
|
|
385
|
+
V as WithHelperText,
|
|
386
|
+
k as WithLabel,
|
|
387
|
+
H as WithPreselectedValue,
|
|
388
|
+
E as default
|
|
362
389
|
};
|
|
@@ -79,5 +79,9 @@ export type TypeaheadProps = {
|
|
|
79
79
|
* This prop added specially for Address Form Component when we render addresses from google API and don't need to filter them.
|
|
80
80
|
*/
|
|
81
81
|
disableOptionsFiltering?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Custom renderer for dropdown options.
|
|
84
|
+
*/
|
|
85
|
+
renderOption?: (option: string | LabelValuePair) => React.ReactNode;
|
|
82
86
|
};
|
|
83
|
-
export declare function Typeahead({ error, warning, helperText, label, placeholder, disabled, options, value, selectValue, onChange, endIconClick, addValue, inputRef, onBlur, loadingIcon, autoFocus, expandOnFocus, notFoundText, disableOptionsFiltering, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
|
|
87
|
+
export declare function Typeahead({ error, warning, helperText, label, placeholder, disabled, options, value, selectValue, onChange, endIconClick, addValue, inputRef, onBlur, loadingIcon, autoFocus, expandOnFocus, notFoundText, disableOptionsFiltering, renderOption, }: TypeaheadProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,69 +1,70 @@
|
|
|
1
1
|
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
|
-
import A, { useState as L, useEffect as
|
|
3
|
-
import { t as
|
|
4
|
-
import { Textfield as
|
|
5
|
-
import { Icons as
|
|
2
|
+
import A, { useState as L, useEffect as C } from "react";
|
|
3
|
+
import { t as F } from "../../../../bundle-mjs-BjFsLjkg.js";
|
|
4
|
+
import { Textfield as k } from "../textfield/textfield.js";
|
|
5
|
+
import { Icons as I } from "../../icons/icons.js";
|
|
6
6
|
import "../../icons/iconsSVGs/Large/Profile.js";
|
|
7
7
|
import "../../icons/iconsSVGs/Small/Profile.js";
|
|
8
8
|
import { Typography as N } from "../../../styles/typography/typography.js";
|
|
9
|
-
import { getStyles as
|
|
10
|
-
function
|
|
11
|
-
error:
|
|
12
|
-
warning:
|
|
13
|
-
helperText:
|
|
9
|
+
import { getStyles as V } from "./styles.js";
|
|
10
|
+
function fe({
|
|
11
|
+
error: M = !1,
|
|
12
|
+
warning: _ = !1,
|
|
13
|
+
helperText: G,
|
|
14
14
|
label: O,
|
|
15
|
-
placeholder:
|
|
16
|
-
disabled:
|
|
15
|
+
placeholder: $ = "",
|
|
16
|
+
disabled: q = !1,
|
|
17
17
|
options: r,
|
|
18
18
|
value: s,
|
|
19
19
|
selectValue: m,
|
|
20
|
-
onChange:
|
|
21
|
-
endIconClick:
|
|
22
|
-
addValue:
|
|
20
|
+
onChange: c,
|
|
21
|
+
endIconClick: d,
|
|
22
|
+
addValue: E,
|
|
23
23
|
inputRef: n,
|
|
24
24
|
onBlur: l,
|
|
25
|
-
loadingIcon:
|
|
26
|
-
autoFocus:
|
|
27
|
-
expandOnFocus:
|
|
28
|
-
notFoundText:
|
|
29
|
-
disableOptionsFiltering:
|
|
25
|
+
loadingIcon: z,
|
|
26
|
+
autoFocus: H,
|
|
27
|
+
expandOnFocus: j,
|
|
28
|
+
notFoundText: J = "No results found",
|
|
29
|
+
disableOptionsFiltering: K = !1,
|
|
30
|
+
renderOption: T
|
|
30
31
|
}) {
|
|
31
|
-
const
|
|
32
|
+
const p = A.useRef(null), y = A.useRef(null), [g, h] = L(!1), [P, w] = L(!1), [D, u] = L(""), f = Array.isArray(r) && typeof r[0] == "object" && r[0] !== null && "label" in r[0] && "value" in r[0];
|
|
32
33
|
A.useEffect(() => {
|
|
33
34
|
const e = (t) => {
|
|
34
|
-
const
|
|
35
|
-
|
|
35
|
+
const i = p.current;
|
|
36
|
+
i && t.target !== i && !i.contains(t.target) && g && (h(!1), w(!1), l == null || l());
|
|
36
37
|
};
|
|
37
38
|
return document.addEventListener("mousedown", e), () => {
|
|
38
39
|
document.removeEventListener("mousedown", e);
|
|
39
40
|
};
|
|
40
|
-
}, [g]),
|
|
41
|
-
if (
|
|
41
|
+
}, [g]), C(() => {
|
|
42
|
+
if (f && r && s) {
|
|
42
43
|
const e = r.find(
|
|
43
44
|
(t) => t.value === s
|
|
44
45
|
);
|
|
45
46
|
u(e.label);
|
|
46
47
|
}
|
|
47
48
|
}, [r]);
|
|
48
|
-
const x = (e) => typeof e == "string" ? e : e.value, v = (e) => typeof e == "string" ? e : e.label,
|
|
49
|
-
const t = (
|
|
49
|
+
const x = (e) => typeof e == "string" ? e : e.value, v = (e) => typeof e == "string" ? e : e.label, Q = (e) => x(e) === s, o = V(), U = s !== "" && s !== void 0 ? "Cross" : "MagnifyingGlass", W = (e) => {
|
|
50
|
+
const t = (f ? D : s) ?? "";
|
|
50
51
|
return e.toLowerCase().includes(t.toLowerCase());
|
|
51
|
-
},
|
|
52
|
+
}, X = () => {
|
|
52
53
|
var e, t;
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
if (m == null || m(e),
|
|
54
|
+
f && u(""), d == null || d(), h(!0), (e = n == null ? void 0 : n.current) == null || e.focus(), (t = y == null ? void 0 : y.current) == null || t.focus();
|
|
55
|
+
}, Y = (e) => {
|
|
56
|
+
if (m == null || m(e), f) {
|
|
56
57
|
const t = r.find(
|
|
57
|
-
(
|
|
58
|
+
(i) => typeof i != "string" && i.value === e
|
|
58
59
|
);
|
|
59
60
|
t && u(t.label);
|
|
60
61
|
}
|
|
61
62
|
h(!1), w(!1), l == null || l();
|
|
62
|
-
}, Y = (e) => {
|
|
63
|
-
d == null || d(e), w(!!e);
|
|
64
63
|
}, Z = (e) => {
|
|
65
|
-
|
|
66
|
-
},
|
|
64
|
+
c == null || c(e), w(!!e);
|
|
65
|
+
}, R = (e) => {
|
|
66
|
+
u(e), c == null || c(e);
|
|
67
|
+
}, S = r == null ? void 0 : r.filter((e) => K ? !0 : W(v(e))).sort(
|
|
67
68
|
(e, t) => v(e).toLowerCase().localeCompare(v(t).toLowerCase())
|
|
68
69
|
);
|
|
69
70
|
return /* @__PURE__ */ b(
|
|
@@ -71,37 +72,37 @@ function le({
|
|
|
71
72
|
{
|
|
72
73
|
className: "flex flex-col w-full relative",
|
|
73
74
|
onFocus: () => {
|
|
74
|
-
|
|
75
|
+
j && w(!0), h(!0);
|
|
75
76
|
},
|
|
76
|
-
ref:
|
|
77
|
+
ref: p,
|
|
77
78
|
children: [
|
|
78
79
|
/* @__PURE__ */ a("div", { className: o.outDiv, children: /* @__PURE__ */ a(
|
|
79
|
-
|
|
80
|
+
k,
|
|
80
81
|
{
|
|
81
82
|
ref: n ?? y,
|
|
82
|
-
autoFocus:
|
|
83
|
+
autoFocus: H,
|
|
83
84
|
fieldType: "text",
|
|
84
|
-
placeholder:
|
|
85
|
-
value:
|
|
85
|
+
placeholder: $,
|
|
86
|
+
value: f ? D : s,
|
|
86
87
|
endIcon: {
|
|
87
|
-
icon:
|
|
88
|
-
handleClick:
|
|
88
|
+
icon: U,
|
|
89
|
+
handleClick: X
|
|
89
90
|
},
|
|
90
|
-
onChange: (e) =>
|
|
91
|
+
onChange: (e) => f ? R(e) : Z(e),
|
|
91
92
|
label: O,
|
|
92
|
-
helperText:
|
|
93
|
-
error:
|
|
94
|
-
warning:
|
|
95
|
-
disabled:
|
|
93
|
+
helperText: G,
|
|
94
|
+
error: M,
|
|
95
|
+
warning: _,
|
|
96
|
+
disabled: q,
|
|
96
97
|
externalActive: g,
|
|
97
|
-
loadingIcon:
|
|
98
|
+
loadingIcon: z
|
|
98
99
|
}
|
|
99
100
|
) }),
|
|
100
|
-
|
|
101
|
+
P && (s || j) && m && /* @__PURE__ */ b(
|
|
101
102
|
"div",
|
|
102
103
|
{
|
|
103
104
|
"data-testid": "typeahead-dropdown",
|
|
104
|
-
className:
|
|
105
|
+
className: F(
|
|
105
106
|
o.dropdown,
|
|
106
107
|
O ? "top-[6.8rem]" : "top-[4.5rem]"
|
|
107
108
|
// if label doesn't define the height of textfield is different
|
|
@@ -111,12 +112,12 @@ function le({
|
|
|
111
112
|
"div",
|
|
112
113
|
{
|
|
113
114
|
"data-testid": `typeahead-${e}`,
|
|
114
|
-
onClick: () =>
|
|
115
|
-
className:
|
|
115
|
+
onClick: () => Y(x(e)),
|
|
116
|
+
className: F(
|
|
116
117
|
o.itemContainer,
|
|
117
|
-
|
|
118
|
+
Q(e) ? "bg-surface-active" : "bg-white"
|
|
118
119
|
),
|
|
119
|
-
children: /* @__PURE__ */ a(
|
|
120
|
+
children: T ? T(e) : /* @__PURE__ */ a(
|
|
120
121
|
N,
|
|
121
122
|
{
|
|
122
123
|
swStyle: 5,
|
|
@@ -127,11 +128,11 @@ function le({
|
|
|
127
128
|
},
|
|
128
129
|
x(e)
|
|
129
130
|
)) : /* @__PURE__ */ b("div", { className: o.itemContainer, children: [
|
|
130
|
-
/* @__PURE__ */ a(N, { swStyle: 5, color: "default", children:
|
|
131
|
+
/* @__PURE__ */ a(N, { swStyle: 5, color: "default", children: J }),
|
|
131
132
|
" "
|
|
132
133
|
] }),
|
|
133
|
-
|
|
134
|
-
/* @__PURE__ */ a(
|
|
134
|
+
E && s && /* @__PURE__ */ b("div", { className: o.addValue, onClick: () => E(s), children: [
|
|
135
|
+
/* @__PURE__ */ a(I, { disabled: !0, id: "addvalue", color: "active", icon: "Add" }),
|
|
135
136
|
/* @__PURE__ */ a(N, { children: "Add value", swStyle: 5, color: "active" })
|
|
136
137
|
] })
|
|
137
138
|
]
|
|
@@ -142,5 +143,5 @@ function le({
|
|
|
142
143
|
);
|
|
143
144
|
}
|
|
144
145
|
export {
|
|
145
|
-
|
|
146
|
+
fe as Typeahead
|
|
146
147
|
};
|
package/dist/main.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ export type { DropdownProps } from './components/atoms/form/dropdown';
|
|
|
23
23
|
export { DropdownFilter } from './components/molecules/filter/dropdown-selector';
|
|
24
24
|
export { DropdownSearch } from './components/atoms/form/dropdown-search';
|
|
25
25
|
export type { DropdownSearchProps, ExtendedDropdownSearchOption, BaseDropdownSearchOption, } from './components/atoms/form/dropdown-search';
|
|
26
|
+
export { DropdownItem, renderSpotterDropdownOption } from './components/atoms/form/dropdown-item';
|
|
27
|
+
export type { DropdownItemProps, SpotterDropdownOption } from './components/atoms/form/dropdown-item';
|
|
26
28
|
export { Calendar } from './components/atoms/form/calendar';
|
|
27
29
|
export type { CalendarProps, CalendarDate } from './components/atoms/form/calendar';
|
|
28
30
|
export type { DropdownFilterProps, DropdownFilterOption } from './components/molecules/filter/dropdown-selector';
|
package/dist/main.js
CHANGED
|
@@ -1,168 +1,171 @@
|
|
|
1
|
-
import { tailwindConfig as
|
|
1
|
+
import { tailwindConfig as m } from "./components/styles/tailwind-config/index.js";
|
|
2
2
|
import { a as x } from "./index-CSucbNlF.js";
|
|
3
|
-
import { Avatar as
|
|
3
|
+
import { Avatar as n } from "./components/atoms/avatar/avatar.js";
|
|
4
4
|
import { Badge as l } from "./components/atoms/badge/badge.js";
|
|
5
5
|
import { LabelValuePair as d } from "./components/atoms/card-content/label-value-pair/label-value-pair.js";
|
|
6
6
|
import { Note as b } from "./components/atoms/card-content/note/note.js";
|
|
7
7
|
import { Chatheader as u } from "./components/atoms/conversation/chatheader/chatheader.js";
|
|
8
|
-
import { ContextMenu as
|
|
9
|
-
import { Dateselect as
|
|
10
|
-
import { TimePicker as
|
|
8
|
+
import { ContextMenu as S } from "./components/molecules/navigation/context-menu/context-menu.js";
|
|
9
|
+
import { Dateselect as D } from "./components/atoms/form/dateselect/dateselect.js";
|
|
10
|
+
import { TimePicker as w } from "./components/atoms/form/time-picker/time-picker.js";
|
|
11
11
|
import { RecurrenceDay as y } from "./components/atoms/daybubble/recurrence-day/recurrence-day.js";
|
|
12
12
|
import { RecurrenceWeek as k } from "./components/atoms/form/recurrence-week/recurrence-week.js";
|
|
13
13
|
import { Checkbox as N } from "./components/atoms/form/checkbox/checkbox.js";
|
|
14
14
|
import { Chips as L } from "./components/atoms/form/chips/chips.js";
|
|
15
15
|
import { Dropdown as G } from "./components/atoms/form/dropdown/dropdown.js";
|
|
16
16
|
import { DropdownFilter as P } from "./components/molecules/filter/dropdown-selector/dropdown-selector.js";
|
|
17
|
-
import { DropdownSearch as
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
17
|
+
import { DropdownSearch as I } from "./components/atoms/form/dropdown-search/dropdown-search.js";
|
|
18
|
+
import { DropdownItem as V, renderSpotterDropdownOption as W } from "./components/atoms/form/dropdown-item/dropdown-item.js";
|
|
19
|
+
import { Calendar as O } from "./components/atoms/form/calendar/calendar.js";
|
|
20
|
+
import { CheckboxFilter as j } from "./components/molecules/filter/checkbox/checkbox.js";
|
|
21
|
+
import { Navigation as J } from "./components/atoms/form/navigation/navigation.js";
|
|
22
|
+
import { Icons as Q } from "./components/atoms/icons/icons.js";
|
|
22
23
|
import "react/jsx-runtime";
|
|
23
24
|
import "./components/atoms/icons/iconsSVGs/Large/Profile.js";
|
|
24
25
|
import "./components/atoms/icons/iconsSVGs/Small/Profile.js";
|
|
25
|
-
import { Message as
|
|
26
|
-
import { Multiselect as
|
|
27
|
-
import { NavigationItem as
|
|
28
|
-
import { Radiobutton as
|
|
29
|
-
import { SegmentedControl as
|
|
30
|
-
import { Switch as
|
|
31
|
-
import { Stepper as
|
|
32
|
-
import { Tab as
|
|
33
|
-
import { Textarea as
|
|
34
|
-
import { RichTextarea as
|
|
35
|
-
import { Textfield as
|
|
36
|
-
import { Timeselect as
|
|
37
|
-
import { Typeahead as
|
|
38
|
-
import { Button as
|
|
39
|
-
import { NotesAndHistory as
|
|
40
|
-
import { CollapsibleCard as
|
|
41
|
-
import { Contact as
|
|
42
|
-
import { MessageEditor as
|
|
43
|
-
import { MessageGroupComposer as
|
|
44
|
-
import { Cell as
|
|
45
|
-
import { Row as
|
|
46
|
-
import { RowHeader as
|
|
47
|
-
import { DonutChart as
|
|
48
|
-
import { DotMatrix as
|
|
49
|
-
import { ProgressBar as
|
|
50
|
-
import { SingleStackedBar as
|
|
51
|
-
import { Legend as
|
|
52
|
-
import { Drawer as
|
|
53
|
-
import { DateSelector as
|
|
54
|
-
import { DateRangeSelector as
|
|
55
|
-
import { RangeSelector as
|
|
56
|
-
import { Radiogroup as
|
|
57
|
-
import { Link as
|
|
58
|
-
import { Header as
|
|
59
|
-
import { Sidebar as
|
|
60
|
-
import { Content as
|
|
61
|
-
import { S as
|
|
62
|
-
import { Tooltip as
|
|
63
|
-
import { TabGroup as
|
|
64
|
-
import { Menubar as
|
|
65
|
-
import { ContextSearch as
|
|
66
|
-
import { SmallLargeText as
|
|
67
|
-
import { HorizontalBorder as
|
|
68
|
-
import { Dialog as
|
|
69
|
-
import { Alert as
|
|
70
|
-
import { c as
|
|
71
|
-
import { Colors as
|
|
72
|
-
import { apple as
|
|
73
|
-
import { Typography as
|
|
74
|
-
import { fontFamilyMap as
|
|
75
|
-
import { DashedLineSVG as
|
|
26
|
+
import { Message as X } from "./components/atoms/message/message.js";
|
|
27
|
+
import { Multiselect as Z } from "./components/atoms/form/multiselect/multiselect.js";
|
|
28
|
+
import { NavigationItem as oo } from "./components/atoms/navigation/navigation-item/navigation-item.js";
|
|
29
|
+
import { Radiobutton as eo } from "./components/atoms/form/radiobutton/radiobutton.js";
|
|
30
|
+
import { SegmentedControl as po } from "./components/molecules/filter/segmented-control/segmented-control.js";
|
|
31
|
+
import { Switch as ao } from "./components/atoms/form/switch/switch.js";
|
|
32
|
+
import { Stepper as fo } from "./components/atoms/form/stepper/stepper.js";
|
|
33
|
+
import { Tab as io } from "./components/atoms/tab/tab.js";
|
|
34
|
+
import { Textarea as so } from "./components/atoms/form/textarea/textarea.js";
|
|
35
|
+
import { RichTextarea as bo } from "./components/atoms/form/textarea/rich-textarea.js";
|
|
36
|
+
import { Textfield as uo } from "./components/atoms/form/textfield/textfield.js";
|
|
37
|
+
import { Timeselect as So } from "./components/atoms/form/timeselect/timeselect.js";
|
|
38
|
+
import { Typeahead as Do } from "./components/atoms/form/typeahead/typeahead.js";
|
|
39
|
+
import { Button as wo } from "./components/molecules/button/button.js";
|
|
40
|
+
import { NotesAndHistory as yo } from "./components/molecules/card-content/notes-and-history/notes-and-history.js";
|
|
41
|
+
import { CollapsibleCard as ko } from "./components/molecules/collapsible-card/collapsible-card.js";
|
|
42
|
+
import { Contact as No } from "./components/molecules/conversation/contact/contact.js";
|
|
43
|
+
import { MessageEditor as Lo } from "./components/molecules/conversation/message-editor/message-editor.js";
|
|
44
|
+
import { MessageGroupComposer as Go } from "./components/molecules/conversation/message-group-composer/message-group-composer.js";
|
|
45
|
+
import { Cell as Po } from "./components/molecules/datatables/cell/cell.js";
|
|
46
|
+
import { Row as Io } from "./components/molecules/datatables/row/row.js";
|
|
47
|
+
import { RowHeader as Vo } from "./components/molecules/datatables/row-header/row-header.js";
|
|
48
|
+
import { DonutChart as Eo } from "./components/molecules/dataviz/donut-chart/donut-chart.js";
|
|
49
|
+
import { DotMatrix as _o } from "./components/molecules/dataviz/dot-matrix/dot-matrix.js";
|
|
50
|
+
import { ProgressBar as qo } from "./components/molecules/dataviz/progress-bar/progress-bar.js";
|
|
51
|
+
import { SingleStackedBar as Ko } from "./components/molecules/dataviz/single-stacked-bar/single-stacked-bar.js";
|
|
52
|
+
import { Legend as Uo } from "./components/molecules/dataviz/legend/legend.js";
|
|
53
|
+
import { Drawer as Yo } from "./components/molecules/drawer/drawer.js";
|
|
54
|
+
import { DateSelector as $o } from "./components/molecules/filter/date-selector/date-selector.js";
|
|
55
|
+
import { DateRangeSelector as rr } from "./components/molecules/filter/date-range-selector/date-range-selector.js";
|
|
56
|
+
import { RangeSelector as tr } from "./components/molecules/filter/range-selector/range-selector.js";
|
|
57
|
+
import { Radiogroup as mr } from "./components/molecules/form/radiogroup/radiogroup.js";
|
|
58
|
+
import { Link as xr } from "./components/molecules/link/link.js";
|
|
59
|
+
import { Header as nr } from "./components/molecules/navigation/header/header.js";
|
|
60
|
+
import { Sidebar as lr } from "./components/molecules/navigation/sidebar/sidebar.js";
|
|
61
|
+
import { Content as dr } from "./components/molecules/notifications/content/content.js";
|
|
62
|
+
import { S as br, i as gr } from "./snackbar-B9zd5z5s.js";
|
|
63
|
+
import { Tooltip as Cr } from "./components/atoms/tooltip/tooltip.js";
|
|
64
|
+
import { TabGroup as hr } from "./components/molecules/tab-group/tab-group.js";
|
|
65
|
+
import { Menubar as Tr } from "./components/molecules/navigation/menubar/menubar.js";
|
|
66
|
+
import { ContextSearch as Mr } from "./components/molecules/filter/context-search/context-search.js";
|
|
67
|
+
import { SmallLargeText as Rr } from "./components/atoms/small-large-text/small-large-text.js";
|
|
68
|
+
import { HorizontalBorder as Br } from "./components/atoms/horizontal-border/horizontal-border.js";
|
|
69
|
+
import { Dialog as vr } from "./components/molecules/dialog/dialog.js";
|
|
70
|
+
import { Alert as Fr } from "./components/molecules/alert/alert.js";
|
|
71
|
+
import { c as Hr } from "./card-Cc2Qkiqr.js";
|
|
72
|
+
import { Colors as Ar } from "./components/styles/colors/colors.js";
|
|
73
|
+
import { apple as zr, blueRibbon as Vr, borderColor as Wr, buttonBorder as Er, buttonGlyph as Or, buttonSurface as _r, cinnabar as jr, crusta as qr, glyph as Jr, linkColors as Kr, progressBar as Qr, shadow as Ur, sun as Xr, surface as Yr, woodsmoke as Zr } from "./components/styles/colors/colormap.js";
|
|
74
|
+
import { Typography as oe } from "./components/styles/typography/typography.js";
|
|
75
|
+
import { fontFamilyMap as ee, fontSizeMap as te, fontWeightMap as pe, styleMap as me, textTypeMap as ae } from "./components/styles/typography/style.js";
|
|
76
|
+
import { DashedLineSVG as fe } from "./components/styles/dashedBorder/DashedLineSVG.js";
|
|
76
77
|
export {
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
Fr as Alert,
|
|
79
|
+
n as Avatar,
|
|
79
80
|
l as Badge,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
wo as Button,
|
|
82
|
+
O as Calendar,
|
|
83
|
+
Hr as Card,
|
|
84
|
+
Po as Cell,
|
|
84
85
|
u as Chatheader,
|
|
85
86
|
N as Checkbox,
|
|
86
|
-
|
|
87
|
+
j as CheckboxFilter,
|
|
87
88
|
L as Chips,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
89
|
+
ko as CollapsibleCard,
|
|
90
|
+
Ar as Colors,
|
|
91
|
+
No as Contact,
|
|
92
|
+
S as ContextMenu,
|
|
93
|
+
Mr as ContextSearch,
|
|
94
|
+
fe as DashedLineSVG,
|
|
95
|
+
rr as DateRangeSelector,
|
|
96
|
+
$o as DateSelector,
|
|
97
|
+
D as Dateselect,
|
|
98
|
+
vr as Dialog,
|
|
99
|
+
Eo as DonutChart,
|
|
100
|
+
_o as DotMatrix,
|
|
101
|
+
Yo as Drawer,
|
|
101
102
|
G as Dropdown,
|
|
102
103
|
P as DropdownFilter,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
V as DropdownItem,
|
|
105
|
+
I as DropdownSearch,
|
|
106
|
+
J as FormNavigation,
|
|
107
|
+
nr as Header,
|
|
108
|
+
Br as HorizontalBorder,
|
|
109
|
+
Q as Icons,
|
|
108
110
|
d as LabelValuePair,
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
111
|
+
Uo as Legend,
|
|
112
|
+
xr as Link,
|
|
113
|
+
Tr as Menubar,
|
|
114
|
+
X as Message,
|
|
115
|
+
Lo as MessageEditor,
|
|
116
|
+
Go as MessageGroupComposer,
|
|
117
|
+
Z as Multiselect,
|
|
118
|
+
oo as NavigationItem,
|
|
117
119
|
b as Note,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
yo as NotesAndHistory,
|
|
121
|
+
dr as NotificationContent,
|
|
122
|
+
qo as ProgressBar,
|
|
123
|
+
eo as Radiobutton,
|
|
124
|
+
mr as Radiogroup,
|
|
125
|
+
tr as RangeSelector,
|
|
124
126
|
y as RecurrenceDay,
|
|
125
127
|
k as RecurrenceWeek,
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
128
|
+
bo as RichTextarea,
|
|
129
|
+
Io as Row,
|
|
130
|
+
Vo as RowHeader,
|
|
131
|
+
po as SegmentedControl,
|
|
132
|
+
lr as Sidebar,
|
|
133
|
+
Ko as SingleStackedBar,
|
|
134
|
+
Rr as SmallLargeText,
|
|
135
|
+
br as Snackbar,
|
|
136
|
+
fo as Stepper,
|
|
137
|
+
ao as Switch,
|
|
138
|
+
io as Tab,
|
|
139
|
+
hr as TabGroup,
|
|
140
|
+
so as Textarea,
|
|
141
|
+
uo as Textfield,
|
|
142
|
+
w as TimePicker,
|
|
143
|
+
So as Timeselect,
|
|
144
|
+
gr as Toast,
|
|
145
|
+
Cr as Tooltip,
|
|
144
146
|
x as TooltipProvider,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
147
|
+
Do as Typeahead,
|
|
148
|
+
oe as Typography,
|
|
149
|
+
zr as apple,
|
|
150
|
+
Vr as blue_ribbon,
|
|
151
|
+
Wr as borderColor,
|
|
152
|
+
Er as buttonBorder,
|
|
153
|
+
Or as buttonGlyph,
|
|
154
|
+
_r as buttonSurface,
|
|
155
|
+
jr as cinnabar,
|
|
156
|
+
qr as crusta,
|
|
157
|
+
ee as fontFamilyMap,
|
|
158
|
+
te as fontSizeMap,
|
|
159
|
+
pe as fontWeightMap,
|
|
160
|
+
Jr as glyph,
|
|
161
|
+
Kr as linkColors,
|
|
162
|
+
Qr as progressBar,
|
|
163
|
+
W as renderSpotterDropdownOption,
|
|
164
|
+
Ur as shadow,
|
|
165
|
+
me as styleMap,
|
|
166
|
+
Xr as sun,
|
|
167
|
+
Yr as surface,
|
|
168
|
+
m as tailwindConfig,
|
|
169
|
+
ae as textTypeMap,
|
|
170
|
+
Zr as woodsmoke
|
|
168
171
|
};
|