@temp-spotwork/ui 1.4.4 → 1.4.6
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/icons/iconMap.d.ts +7 -0
- package/dist/components/atoms/icons/iconMap.js +150 -148
- package/dist/components/atoms/icons/icons.js +26 -26
- package/dist/components/atoms/icons/iconsSVGs/Large/FileDownload.d.ts +8 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/FileDownload.js +32 -0
- package/dist/components/atoms/icons/iconsSVGs/Large/index.d.ts +2 -1
- package/dist/components/atoms/icons/iconsSVGs/Large/index.js +72 -70
- package/dist/components/molecules/filter/context-search/context-search.d.ts +15 -1
- package/dist/components/molecules/filter/context-search/context-search.js +27 -28
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.d.ts +2 -1
- package/dist/components/molecules/filter/dropdown-selector/dropdown-selector.js +53 -52
- package/dist/components/molecules/filter/dropdown-selector/styles.js +7 -7
- package/package.json +1 -1
|
@@ -88,6 +88,13 @@ export declare const svgs: {
|
|
|
88
88
|
File: ({ fill }: {
|
|
89
89
|
fill: any;
|
|
90
90
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
91
|
+
FileDownload: ({ width, height, stroke, fill, className, }: {
|
|
92
|
+
width?: string;
|
|
93
|
+
height?: string;
|
|
94
|
+
stroke?: string;
|
|
95
|
+
fill?: string;
|
|
96
|
+
className?: string;
|
|
97
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
91
98
|
ExpandSmall: ({ fill }: {
|
|
92
99
|
fill: any;
|
|
93
100
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -23,87 +23,88 @@ import $ from "./iconsSVGs/Large/DoubleTick.js";
|
|
|
23
23
|
import u from "./iconsSVGs/Large/Duplicate.js";
|
|
24
24
|
import I from "./iconsSVGs/Large/Edit.js";
|
|
25
25
|
import "react/jsx-runtime";
|
|
26
|
-
import
|
|
26
|
+
import w from "./iconsSVGs/Large/File.js";
|
|
27
|
+
import y from "./iconsSVGs/Large/FileDownload.js";
|
|
27
28
|
import M from "./iconsSVGs/Large/HamburgerMenu.js";
|
|
28
29
|
import b from "./iconsSVGs/Large/KebabMenu.js";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import { Profile as
|
|
36
|
-
import
|
|
30
|
+
import D from "./iconsSVGs/Large/MagnifyingGlass.js";
|
|
31
|
+
import U from "./iconsSVGs/Large/Maximize.js";
|
|
32
|
+
import R from "./iconsSVGs/Large/Maximize1.js";
|
|
33
|
+
import P from "./iconsSVGs/Large/Minimize.js";
|
|
34
|
+
import L from "./iconsSVGs/Large/OpenSeparately.js";
|
|
35
|
+
import T from "./iconsSVGs/Large/PlaceholderIcon.js";
|
|
36
|
+
import { Profile as O } from "./iconsSVGs/Large/Profile.js";
|
|
37
|
+
import F from "./iconsSVGs/Large/Restore.js";
|
|
37
38
|
import E from "./iconsSVGs/Large/Send.js";
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
39
|
+
import x from "./iconsSVGs/Large/Shifts.js";
|
|
40
|
+
import G from "./iconsSVGs/Large/Sort.js";
|
|
41
|
+
import K from "./iconsSVGs/Large/Subtract.js";
|
|
42
|
+
import N from "./iconsSVGs/Large/Summary.js";
|
|
43
|
+
import W from "./iconsSVGs/Large/Support.js";
|
|
44
|
+
import z from "./iconsSVGs/Large/Tick.js";
|
|
45
|
+
import B from "./iconsSVGs/Large/Timer.js";
|
|
46
|
+
import H from "./iconsSVGs/Large/Trash.js";
|
|
47
|
+
import J from "./iconsSVGs/Large/Undo.js";
|
|
48
|
+
import V from "./iconsSVGs/Large/Verification.js";
|
|
49
|
+
import j from "./iconsSVGs/Large/Sidepeak.js";
|
|
50
|
+
import q from "./iconsSVGs/Large/Settings.js";
|
|
51
|
+
import Q from "./iconsSVGs/Large/SwitchToClassic.js";
|
|
52
|
+
import X from "./iconsSVGs/Large/Building.js";
|
|
53
|
+
import Y from "./iconsSVGs/Large/NewSpotter.js";
|
|
54
|
+
import Z from "./iconsSVGs/Large/FlaggedMessage.js";
|
|
55
|
+
import _ from "./iconsSVGs/Large/AbnormalLastShift.js";
|
|
56
|
+
import oo from "./iconsSVGs/Large/LocationDisabled.js";
|
|
57
|
+
import ro from "./iconsSVGs/Large/Jobs.js";
|
|
58
|
+
import mo from "./iconsSVGs/Large/Feedback.js";
|
|
59
|
+
import io from "./iconsSVGs/Small/Add.js";
|
|
60
|
+
import to from "./iconsSVGs/Small/Alert.js";
|
|
61
|
+
import eo from "./iconsSVGs/Small/ArrowRight.js";
|
|
62
|
+
import lo from "./iconsSVGs/Small/ArrowUp.js";
|
|
63
|
+
import po from "./iconsSVGs/Small/Ascending.js";
|
|
64
|
+
import ao from "./iconsSVGs/Small/Calendar.js";
|
|
65
|
+
import fo from "./iconsSVGs/Small/CaretDown.js";
|
|
66
|
+
import no from "./iconsSVGs/Small/CaretRight.js";
|
|
67
|
+
import So from "./iconsSVGs/Small/CheckedIn.js";
|
|
68
|
+
import so from "./iconsSVGs/Small/CheckedOut.js";
|
|
69
|
+
import co from "./iconsSVGs/Small/CheckIn.js";
|
|
70
|
+
import Co from "./iconsSVGs/Small/CheckInCircle.js";
|
|
71
|
+
import ho from "./iconsSVGs/Small/CheckOut.js";
|
|
72
|
+
import go from "./iconsSVGs/Small/ChevronDown.js";
|
|
73
|
+
import Ao from "./iconsSVGs/Small/ChevronLeft.js";
|
|
74
|
+
import ko from "./iconsSVGs/Small/ChevronRight.js";
|
|
75
|
+
import vo from "./iconsSVGs/Small/ChevronUp.js";
|
|
76
|
+
import $o from "./iconsSVGs/Small/Collapse.js";
|
|
77
|
+
import uo from "./iconsSVGs/Small/Copy.js";
|
|
78
|
+
import Io from "./iconsSVGs/Small/Cross.js";
|
|
79
|
+
import wo from "./iconsSVGs/Small/CrossInCircle.js";
|
|
79
80
|
import yo from "./iconsSVGs/Small/Descending.js";
|
|
80
81
|
import Mo from "./iconsSVGs/Small/DistanceSmall.js";
|
|
81
82
|
import bo from "./iconsSVGs/Small/Empty.js";
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
89
|
-
import
|
|
83
|
+
import Do from "./iconsSVGs/Small/Expand.js";
|
|
84
|
+
import Uo from "./iconsSVGs/Small/Incomplete.js";
|
|
85
|
+
import Ro from "./iconsSVGs/Small/Info.js";
|
|
86
|
+
import Po from "./iconsSVGs/Small/KebabMenu.js";
|
|
87
|
+
import Lo from "./iconsSVGs/Small/LocationPin.js";
|
|
88
|
+
import To from "./iconsSVGs/Small/MagnifyingGlass.js";
|
|
89
|
+
import Oo from "./iconsSVGs/Small/Notes.js";
|
|
90
|
+
import Fo from "./iconsSVGs/Small/OpenSeparately.js";
|
|
90
91
|
import Eo from "./iconsSVGs/Small/PlaceholderIcon.js";
|
|
91
|
-
import { ProfileSmall as
|
|
92
|
-
import
|
|
93
|
-
import
|
|
94
|
-
import
|
|
95
|
-
import
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
const
|
|
92
|
+
import { ProfileSmall as xo } from "./iconsSVGs/Small/Profile.js";
|
|
93
|
+
import Go from "./iconsSVGs/Small/ReadStatus.js";
|
|
94
|
+
import Ko from "./iconsSVGs/Small/Shield.js";
|
|
95
|
+
import No from "./iconsSVGs/Small/SidepeakSmall.js";
|
|
96
|
+
import Wo from "./iconsSVGs/Small/Sort.js";
|
|
97
|
+
import zo from "./iconsSVGs/Small/Success.js";
|
|
98
|
+
import Bo from "./iconsSVGs/Small/Tick.js";
|
|
99
|
+
import Ho from "./iconsSVGs/Small/UnsavedChanges.js";
|
|
100
|
+
import Jo from "./iconsSVGs/Small/Upload.js";
|
|
101
|
+
import Vo from "./iconsSVGs/Small/Waiting.js";
|
|
102
|
+
import jo from "./iconsSVGs/Small/Warning.js";
|
|
103
|
+
import qo from "./iconsSVGs/ExtraLarge/EmptyTemplate.js";
|
|
104
|
+
import Qo from "./iconsSVGs/ExtraLarge/PostAShift.js";
|
|
105
|
+
import Xo from "./iconsSVGs/Countries/USA.js";
|
|
106
|
+
import Yo from "./iconsSVGs/Countries/CAN.js";
|
|
107
|
+
const Xm = {
|
|
107
108
|
Add: o,
|
|
108
109
|
AdvancedSearch: r,
|
|
109
110
|
ArrowLeft: m,
|
|
@@ -112,103 +113,104 @@ const qm = {
|
|
|
112
113
|
Attach: e,
|
|
113
114
|
Bell: l,
|
|
114
115
|
BellUnread: p,
|
|
115
|
-
Building:
|
|
116
|
+
Building: X,
|
|
116
117
|
Calendar: a,
|
|
117
118
|
Cancellation: f,
|
|
118
119
|
Chapters: n,
|
|
119
120
|
CheckIn: S,
|
|
120
|
-
CheckInCircleSmall:
|
|
121
|
+
CheckInCircleSmall: Co,
|
|
121
122
|
ChevronDown: s,
|
|
122
123
|
ChevronLeft: c,
|
|
123
124
|
ChevronRight: C,
|
|
124
125
|
ChevronUp: h,
|
|
125
126
|
Clock: d,
|
|
126
|
-
CollapseSmall:
|
|
127
|
+
CollapseSmall: $o,
|
|
127
128
|
Contact: g,
|
|
128
129
|
Cross: k,
|
|
129
|
-
CrossInCircleSmall:
|
|
130
|
+
CrossInCircleSmall: wo,
|
|
130
131
|
Descending: v,
|
|
131
132
|
DoubleTick: $,
|
|
132
133
|
Duplicate: u,
|
|
133
134
|
Edit: I,
|
|
134
|
-
Feedback:
|
|
135
|
-
File:
|
|
136
|
-
|
|
137
|
-
|
|
135
|
+
Feedback: mo,
|
|
136
|
+
File: w,
|
|
137
|
+
FileDownload: y,
|
|
138
|
+
ExpandSmall: Do,
|
|
139
|
+
InfoSmall: Ro,
|
|
138
140
|
HamburgerMenu: M,
|
|
139
|
-
Jobs:
|
|
141
|
+
Jobs: ro,
|
|
140
142
|
KebabMenu: b,
|
|
141
|
-
MagnifyingGlass:
|
|
142
|
-
Maximize:
|
|
143
|
-
Maximize1:
|
|
144
|
-
Minimize:
|
|
145
|
-
OpenSeparately:
|
|
146
|
-
PlaceholderIcon:
|
|
147
|
-
Profile:
|
|
148
|
-
Restore:
|
|
143
|
+
MagnifyingGlass: D,
|
|
144
|
+
Maximize: U,
|
|
145
|
+
Maximize1: R,
|
|
146
|
+
Minimize: P,
|
|
147
|
+
OpenSeparately: L,
|
|
148
|
+
PlaceholderIcon: T,
|
|
149
|
+
Profile: O,
|
|
150
|
+
Restore: F,
|
|
149
151
|
Send: E,
|
|
150
|
-
Settings:
|
|
151
|
-
Shifts:
|
|
152
|
-
Sort:
|
|
153
|
-
Subtract:
|
|
154
|
-
Summary:
|
|
155
|
-
Support:
|
|
156
|
-
SwitchToClassic:
|
|
157
|
-
Tick:
|
|
158
|
-
Timer:
|
|
159
|
-
Trash:
|
|
160
|
-
Undo:
|
|
161
|
-
Verification:
|
|
162
|
-
AddSmall:
|
|
163
|
-
AlertSmall:
|
|
164
|
-
ArrowRightSmall:
|
|
165
|
-
ArrowUpSmall:
|
|
166
|
-
AscendingSmall:
|
|
167
|
-
CalendarSmall:
|
|
168
|
-
CaretDownSmall:
|
|
169
|
-
CaretRightSmall:
|
|
170
|
-
CheckedInSmall:
|
|
171
|
-
CheckedOutSmall:
|
|
172
|
-
CheckinSmall:
|
|
173
|
-
CheckOutSmall:
|
|
174
|
-
ChevronDownSmall:
|
|
175
|
-
ChevronLeftSmall:
|
|
176
|
-
ChevronRightSmall:
|
|
177
|
-
ChevronUpSmall:
|
|
178
|
-
CrossSmall:
|
|
152
|
+
Settings: q,
|
|
153
|
+
Shifts: x,
|
|
154
|
+
Sort: G,
|
|
155
|
+
Subtract: K,
|
|
156
|
+
Summary: N,
|
|
157
|
+
Support: W,
|
|
158
|
+
SwitchToClassic: Q,
|
|
159
|
+
Tick: z,
|
|
160
|
+
Timer: B,
|
|
161
|
+
Trash: H,
|
|
162
|
+
Undo: J,
|
|
163
|
+
Verification: V,
|
|
164
|
+
AddSmall: io,
|
|
165
|
+
AlertSmall: to,
|
|
166
|
+
ArrowRightSmall: eo,
|
|
167
|
+
ArrowUpSmall: lo,
|
|
168
|
+
AscendingSmall: po,
|
|
169
|
+
CalendarSmall: ao,
|
|
170
|
+
CaretDownSmall: fo,
|
|
171
|
+
CaretRightSmall: no,
|
|
172
|
+
CheckedInSmall: So,
|
|
173
|
+
CheckedOutSmall: so,
|
|
174
|
+
CheckinSmall: co,
|
|
175
|
+
CheckOutSmall: ho,
|
|
176
|
+
ChevronDownSmall: go,
|
|
177
|
+
ChevronLeftSmall: Ao,
|
|
178
|
+
ChevronRightSmall: ko,
|
|
179
|
+
ChevronUpSmall: vo,
|
|
180
|
+
CrossSmall: Io,
|
|
179
181
|
CopyLarge: A,
|
|
180
|
-
CopySmall:
|
|
182
|
+
CopySmall: uo,
|
|
181
183
|
DescendingSmall: yo,
|
|
182
184
|
DistanceSmall: Mo,
|
|
183
185
|
EmptySmall: bo,
|
|
184
|
-
IncompleteSmall:
|
|
185
|
-
KebabMenuSmall:
|
|
186
|
-
LocationPinSmall:
|
|
187
|
-
MagnifyingGlassSmall:
|
|
188
|
-
NotesSmall:
|
|
189
|
-
OpenSeparatelySmall:
|
|
186
|
+
IncompleteSmall: Uo,
|
|
187
|
+
KebabMenuSmall: Po,
|
|
188
|
+
LocationPinSmall: Lo,
|
|
189
|
+
MagnifyingGlassSmall: To,
|
|
190
|
+
NotesSmall: Oo,
|
|
191
|
+
OpenSeparatelySmall: Fo,
|
|
190
192
|
PlaceholderIconSmall: Eo,
|
|
191
|
-
ReadStatus:
|
|
192
|
-
ShieldSmall:
|
|
193
|
-
SortSmall:
|
|
194
|
-
SuccessSmall:
|
|
195
|
-
TickSmall:
|
|
196
|
-
UnsavedChangesSmall:
|
|
197
|
-
UploadSmall:
|
|
198
|
-
WaitingSmall:
|
|
199
|
-
WarningSmall:
|
|
200
|
-
CAN:
|
|
201
|
-
USA:
|
|
202
|
-
SidePeak:
|
|
203
|
-
SidePeakSmall:
|
|
204
|
-
ProfileSmall:
|
|
205
|
-
EmptyTemplate:
|
|
206
|
-
PostAShift:
|
|
207
|
-
NewSpotter:
|
|
208
|
-
FlaggedMessage:
|
|
209
|
-
AbnormalLastShift:
|
|
210
|
-
LocationDisabled:
|
|
193
|
+
ReadStatus: Go,
|
|
194
|
+
ShieldSmall: Ko,
|
|
195
|
+
SortSmall: Wo,
|
|
196
|
+
SuccessSmall: zo,
|
|
197
|
+
TickSmall: Bo,
|
|
198
|
+
UnsavedChangesSmall: Ho,
|
|
199
|
+
UploadSmall: Jo,
|
|
200
|
+
WaitingSmall: Vo,
|
|
201
|
+
WarningSmall: jo,
|
|
202
|
+
CAN: Yo,
|
|
203
|
+
USA: Xo,
|
|
204
|
+
SidePeak: j,
|
|
205
|
+
SidePeakSmall: No,
|
|
206
|
+
ProfileSmall: xo,
|
|
207
|
+
EmptyTemplate: qo,
|
|
208
|
+
PostAShift: Qo,
|
|
209
|
+
NewSpotter: Y,
|
|
210
|
+
FlaggedMessage: Z,
|
|
211
|
+
AbnormalLastShift: _,
|
|
212
|
+
LocationDisabled: oo
|
|
211
213
|
};
|
|
212
214
|
export {
|
|
213
|
-
|
|
215
|
+
Xm as svgs
|
|
214
216
|
};
|
|
@@ -4,71 +4,71 @@ import { Typography as A } from "../../styles/typography/typography.js";
|
|
|
4
4
|
import { T as $, a as S, b as j, C as T, A as z } from "../../../index-DNpMaKvH.js";
|
|
5
5
|
import { styles as C } from "./styles.js";
|
|
6
6
|
import "../../styles/colors/colors.js";
|
|
7
|
-
import { crusta as f, cinnabar as
|
|
8
|
-
import { t as
|
|
7
|
+
import { crusta as f, cinnabar as b, glyph as e, dataVizColors as d } from "../../styles/colors/colormap.js";
|
|
8
|
+
import { t as g } from "../../../bundle-mjs-CAy1p0fn.js";
|
|
9
9
|
import { tooltipArrowStyles as E, toolTipStyles as M } from "../../styles/tool-tip/styles.js";
|
|
10
10
|
function O({
|
|
11
11
|
icon: h = "Add",
|
|
12
12
|
color: a = "default",
|
|
13
13
|
cssColor: v,
|
|
14
14
|
handleClick: s,
|
|
15
|
-
disabled:
|
|
16
|
-
id:
|
|
17
|
-
hoverText:
|
|
18
|
-
destructive:
|
|
15
|
+
disabled: r = !1,
|
|
16
|
+
id: o,
|
|
17
|
+
hoverText: i,
|
|
18
|
+
destructive: n = !1,
|
|
19
19
|
dark: c = !1,
|
|
20
20
|
button: y = !1,
|
|
21
21
|
hoverBackground: w,
|
|
22
22
|
autoFocus: m = !1
|
|
23
23
|
}) {
|
|
24
|
-
const l = N[h], I = C(), u =
|
|
24
|
+
const l = N[h], I = C(), u = r ? /* @__PURE__ */ t(
|
|
25
25
|
l,
|
|
26
26
|
{
|
|
27
|
-
"data-testid": `icon-${
|
|
28
|
-
fill: v || (e[a] ??
|
|
27
|
+
"data-testid": `icon-${o}`,
|
|
28
|
+
fill: v || (e[a] ?? d[a] ?? e.active),
|
|
29
29
|
hover: void 0,
|
|
30
30
|
active: void 0
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
o
|
|
33
33
|
) : y ? /* @__PURE__ */ t(
|
|
34
34
|
"button",
|
|
35
35
|
{
|
|
36
36
|
autoFocus: m,
|
|
37
37
|
type: "button",
|
|
38
|
-
className:
|
|
38
|
+
className: g(
|
|
39
39
|
I.buttonClass,
|
|
40
|
-
`${c ? "focus:bg-surface-defaultInverted hover:bg-surface-defaultInverted active:bg-bcolor-defaultInverted" :
|
|
40
|
+
`${c ? "focus:bg-surface-defaultInverted hover:bg-surface-defaultInverted active:bg-bcolor-defaultInverted" : n ? "hover:bg-shadow-destructive active:bg-shadow-alert" : "hover:bg-surface-active active:bg-shadow-active"}`,
|
|
41
41
|
"group text-black"
|
|
42
42
|
),
|
|
43
|
-
"data-testid": `button-button-icon-${
|
|
44
|
-
onClick: (x) => !
|
|
43
|
+
"data-testid": `button-button-icon-${o}`,
|
|
44
|
+
onClick: (x) => !r && (s == null ? void 0 : s(x)),
|
|
45
45
|
children: /* @__PURE__ */ t(
|
|
46
46
|
l,
|
|
47
47
|
{
|
|
48
|
-
active: c ? f[200] :
|
|
49
|
-
hover: c ? f[300] :
|
|
50
|
-
fill:
|
|
48
|
+
active: c ? f[200] : n ? b[800] : e.active,
|
|
49
|
+
hover: c ? f[300] : n ? e.alert : e.active,
|
|
50
|
+
fill: c ? f[400] : n ? b[600] : e.active
|
|
51
51
|
}
|
|
52
52
|
)
|
|
53
53
|
},
|
|
54
|
-
|
|
54
|
+
o
|
|
55
55
|
) : /* @__PURE__ */ t(
|
|
56
56
|
"button",
|
|
57
57
|
{
|
|
58
58
|
autoFocus: m,
|
|
59
59
|
type: "button",
|
|
60
|
-
"data-testid": `button-icon-${
|
|
61
|
-
onClick:
|
|
60
|
+
"data-testid": `button-icon-${o}`,
|
|
61
|
+
onClick: r ? () => {
|
|
62
62
|
} : s,
|
|
63
63
|
className: w ? "hover:bg-surface-active active:bg-shadow-active hover:rounded active:rounded p-xxs" : "",
|
|
64
|
-
children: /* @__PURE__ */ t(l, { fill: e[a] ??
|
|
64
|
+
children: /* @__PURE__ */ t(l, { fill: e[a] ?? d[a] ?? e.active, hover: void 0, active: void 0 })
|
|
65
65
|
},
|
|
66
|
-
|
|
66
|
+
o
|
|
67
67
|
);
|
|
68
|
-
return
|
|
69
|
-
/* @__PURE__ */ t(S, { asChild: !
|
|
70
|
-
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ p(T, { className:
|
|
71
|
-
typeof
|
|
68
|
+
return i ? /* @__PURE__ */ p($, { children: [
|
|
69
|
+
/* @__PURE__ */ t(S, { asChild: !r, disabled: r, children: u }),
|
|
70
|
+
/* @__PURE__ */ t(j, { children: /* @__PURE__ */ p(T, { className: g(M), side: "bottom", align: "center", children: [
|
|
71
|
+
typeof i == "string" ? /* @__PURE__ */ t(A, { color: "defaultInverted", children: i, swStyle: 1, className: "px-xs max-w-[30rem]" }) : i,
|
|
72
72
|
/* @__PURE__ */ t(z, { className: E })
|
|
73
73
|
] }) })
|
|
74
74
|
] }) : u;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsxs as d, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
const i = ({
|
|
3
|
+
width: t = "24",
|
|
4
|
+
height: a = "24",
|
|
5
|
+
stroke: e,
|
|
6
|
+
fill: n,
|
|
7
|
+
className: r = ""
|
|
8
|
+
}) => /* @__PURE__ */ d(
|
|
9
|
+
"svg",
|
|
10
|
+
{
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12
|
+
width: t,
|
|
13
|
+
height: a,
|
|
14
|
+
viewBox: "0 0 24 24",
|
|
15
|
+
fill: "none",
|
|
16
|
+
stroke: e ?? n ?? "currentColor",
|
|
17
|
+
strokeWidth: "2",
|
|
18
|
+
strokeLinecap: "round",
|
|
19
|
+
strokeLinejoin: "round",
|
|
20
|
+
className: r,
|
|
21
|
+
"data-testid": "FileDownload-icon",
|
|
22
|
+
children: [
|
|
23
|
+
/* @__PURE__ */ o("path", { d: "M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z" }),
|
|
24
|
+
/* @__PURE__ */ o("path", { d: "M14 2v5a1 1 0 0 0 1 1h5" }),
|
|
25
|
+
/* @__PURE__ */ o("path", { d: "M12 18v-6" }),
|
|
26
|
+
/* @__PURE__ */ o("path", { d: "m9 15 3 3 3-3" })
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
i as default
|
|
32
|
+
};
|
|
@@ -25,6 +25,7 @@ import { default as Edit } from './Edit';
|
|
|
25
25
|
import { default as EyeClose } from './EyeClose';
|
|
26
26
|
import { default as EyeOpen } from './EyeOpen';
|
|
27
27
|
import { default as File } from './File';
|
|
28
|
+
import { default as FileDownload } from './FileDownload';
|
|
28
29
|
import { default as HamburgerMenu } from './HamburgerMenu';
|
|
29
30
|
import { default as KebabMenu } from './KebabMenu';
|
|
30
31
|
import { default as MagnifyingGlass } from './MagnifyingGlass';
|
|
@@ -57,4 +58,4 @@ import { default as LocationDisabled } from './LocationDisabled';
|
|
|
57
58
|
import { default as Jobs } from './Jobs';
|
|
58
59
|
import { default as Feedback } from './Feedback';
|
|
59
60
|
|
|
60
|
-
export { Add, AdvancedSearch, ArrowLeft, ArrowRight, Ascending, Attach, Bell, BellUnread, Building, Calendar, Cancellation, Chapters, CheckIn, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clock, Contact, Copy, Cross, Descending, DoubleTick, Duplicate, Edit, EyeClose, EyeOpen, File, HamburgerMenu, Jobs, KebabMenu, MagnifyingGlass, Maximize, Maximize1, Minimize, OpenSeparately, PlaceholderIcon, Profile, Restore, Send, Settings, Shifts, Sort, Subtract, Summary, Support, SwitchToClassic, Tick, Timer, Trash, Undo, Verification, SidePeak, NewSpotter, FlaggedMessage, AbnormalLastShift, LocationDisabled, Feedback, };
|
|
61
|
+
export { Add, AdvancedSearch, ArrowLeft, ArrowRight, Ascending, Attach, Bell, BellUnread, Building, Calendar, Cancellation, Chapters, CheckIn, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clock, Contact, Copy, Cross, Descending, DoubleTick, Duplicate, Edit, EyeClose, EyeOpen, File, FileDownload, HamburgerMenu, Jobs, KebabMenu, MagnifyingGlass, Maximize, Maximize1, Minimize, OpenSeparately, PlaceholderIcon, Profile, Restore, Send, Settings, Shifts, Sort, Subtract, Summary, Support, SwitchToClassic, Tick, Timer, Trash, Undo, Verification, SidePeak, NewSpotter, FlaggedMessage, AbnormalLastShift, LocationDisabled, Feedback, };
|
|
@@ -9,11 +9,11 @@ import { default as h } from "./BellUnread.js";
|
|
|
9
9
|
import { default as S } from "./Calendar.js";
|
|
10
10
|
import { default as b } from "./Cancellation.js";
|
|
11
11
|
import { default as M } from "./Chapters.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
12
|
+
import { default as w } from "./CheckIn.js";
|
|
13
|
+
import { default as D } from "./ChevronDown.js";
|
|
14
14
|
import { default as T } from "./ChevronLeft.js";
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
15
|
+
import { default as L } from "./ChevronRight.js";
|
|
16
|
+
import { default as B } from "./ChevronUp.js";
|
|
17
17
|
import { default as P } from "./Clock.js";
|
|
18
18
|
import { default as U } from "./Contact.js";
|
|
19
19
|
import { default as O } from "./Copy.js";
|
|
@@ -25,39 +25,40 @@ import { default as W } from "./Edit.js";
|
|
|
25
25
|
import { default as Y } from "./EyeClose.js";
|
|
26
26
|
import { default as _ } from "./EyeOpen.js";
|
|
27
27
|
import { default as ee } from "./File.js";
|
|
28
|
-
import { default as oe } from "./
|
|
29
|
-
import { default as te } from "./
|
|
30
|
-
import { default as le } from "./
|
|
31
|
-
import { default as de } from "./
|
|
32
|
-
import { default as me } from "./
|
|
33
|
-
import { default as xe } from "./
|
|
34
|
-
import { default as ne } from "./
|
|
35
|
-
import { default as he } from "./
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { default as Me } from "./
|
|
39
|
-
import { default as
|
|
40
|
-
import { default as
|
|
41
|
-
import { default as Te } from "./
|
|
42
|
-
import { default as
|
|
43
|
-
import { default as
|
|
44
|
-
import { default as Pe } from "./
|
|
45
|
-
import { default as Ue } from "./
|
|
46
|
-
import { default as Oe } from "./
|
|
47
|
-
import { default as He } from "./
|
|
48
|
-
import { default as Ke } from "./
|
|
49
|
-
import { default as Ve } from "./
|
|
50
|
-
import { default as qe } from "./
|
|
51
|
-
import { default as We } from "./
|
|
52
|
-
import { default as Ye } from "./
|
|
53
|
-
import { default as _e } from "./
|
|
54
|
-
import { default as ea } from "./
|
|
55
|
-
import { default as oa } from "./
|
|
56
|
-
import { default as ta } from "./
|
|
57
|
-
import { default as la } from "./
|
|
58
|
-
import { default as da } from "./
|
|
28
|
+
import { default as oe } from "./FileDownload.js";
|
|
29
|
+
import { default as te } from "./HamburgerMenu.js";
|
|
30
|
+
import { default as le } from "./KebabMenu.js";
|
|
31
|
+
import { default as de } from "./MagnifyingGlass.js";
|
|
32
|
+
import { default as me } from "./Maximize.js";
|
|
33
|
+
import { default as xe } from "./Maximize1.js";
|
|
34
|
+
import { default as ne } from "./Minimize.js";
|
|
35
|
+
import { default as he } from "./OpenSeparately.js";
|
|
36
|
+
import { default as Se } from "./PlaceholderIcon.js";
|
|
37
|
+
import { Profile as be } from "./Profile.js";
|
|
38
|
+
import { default as Me } from "./Restore.js";
|
|
39
|
+
import { default as we } from "./Send.js";
|
|
40
|
+
import { default as De } from "./Shifts.js";
|
|
41
|
+
import { default as Te } from "./Sort.js";
|
|
42
|
+
import { default as Le } from "./Subtract.js";
|
|
43
|
+
import { default as Be } from "./Summary.js";
|
|
44
|
+
import { default as Pe } from "./Support.js";
|
|
45
|
+
import { default as Ue } from "./Tick.js";
|
|
46
|
+
import { default as Oe } from "./Timer.js";
|
|
47
|
+
import { default as He } from "./Trash.js";
|
|
48
|
+
import { default as Ke } from "./Undo.js";
|
|
49
|
+
import { default as Ve } from "./Verification.js";
|
|
50
|
+
import { default as qe } from "./Sidepeak.js";
|
|
51
|
+
import { default as We } from "./Settings.js";
|
|
52
|
+
import { default as Ye } from "./SwitchToClassic.js";
|
|
53
|
+
import { default as _e } from "./Building.js";
|
|
54
|
+
import { default as ea } from "./NewSpotter.js";
|
|
55
|
+
import { default as oa } from "./FlaggedMessage.js";
|
|
56
|
+
import { default as ta } from "./AbnormalLastShift.js";
|
|
57
|
+
import { default as la } from "./LocationDisabled.js";
|
|
58
|
+
import { default as da } from "./Jobs.js";
|
|
59
|
+
import { default as ma } from "./Feedback.js";
|
|
59
60
|
export {
|
|
60
|
-
|
|
61
|
+
ta as AbnormalLastShift,
|
|
61
62
|
o as Add,
|
|
62
63
|
t as AdvancedSearch,
|
|
63
64
|
l as ArrowLeft,
|
|
@@ -66,15 +67,15 @@ export {
|
|
|
66
67
|
x as Attach,
|
|
67
68
|
n as Bell,
|
|
68
69
|
h as BellUnread,
|
|
69
|
-
|
|
70
|
+
_e as Building,
|
|
70
71
|
S as Calendar,
|
|
71
72
|
b as Cancellation,
|
|
72
73
|
M as Chapters,
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
w as CheckIn,
|
|
75
|
+
D as ChevronDown,
|
|
75
76
|
T as ChevronLeft,
|
|
76
|
-
|
|
77
|
-
|
|
77
|
+
L as ChevronRight,
|
|
78
|
+
B as ChevronUp,
|
|
78
79
|
P as Clock,
|
|
79
80
|
U as Contact,
|
|
80
81
|
O as Copy,
|
|
@@ -85,34 +86,35 @@ export {
|
|
|
85
86
|
W as Edit,
|
|
86
87
|
Y as EyeClose,
|
|
87
88
|
_ as EyeOpen,
|
|
88
|
-
|
|
89
|
+
ma as Feedback,
|
|
89
90
|
ee as File,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
de as
|
|
97
|
-
me as
|
|
98
|
-
xe as
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
he as
|
|
102
|
-
Se as
|
|
103
|
-
be as
|
|
104
|
-
Me as
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
Te as
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
Ue as
|
|
115
|
-
Oe as
|
|
116
|
-
He as
|
|
117
|
-
Ke as
|
|
91
|
+
oe as FileDownload,
|
|
92
|
+
oa as FlaggedMessage,
|
|
93
|
+
te as HamburgerMenu,
|
|
94
|
+
da as Jobs,
|
|
95
|
+
le as KebabMenu,
|
|
96
|
+
la as LocationDisabled,
|
|
97
|
+
de as MagnifyingGlass,
|
|
98
|
+
me as Maximize,
|
|
99
|
+
xe as Maximize1,
|
|
100
|
+
ne as Minimize,
|
|
101
|
+
ea as NewSpotter,
|
|
102
|
+
he as OpenSeparately,
|
|
103
|
+
Se as PlaceholderIcon,
|
|
104
|
+
be as Profile,
|
|
105
|
+
Me as Restore,
|
|
106
|
+
we as Send,
|
|
107
|
+
We as Settings,
|
|
108
|
+
De as Shifts,
|
|
109
|
+
qe as SidePeak,
|
|
110
|
+
Te as Sort,
|
|
111
|
+
Le as Subtract,
|
|
112
|
+
Be as Summary,
|
|
113
|
+
Pe as Support,
|
|
114
|
+
Ye as SwitchToClassic,
|
|
115
|
+
Ue as Tick,
|
|
116
|
+
Oe as Timer,
|
|
117
|
+
He as Trash,
|
|
118
|
+
Ke as Undo,
|
|
119
|
+
Ve as Verification
|
|
118
120
|
};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
1
3
|
export type ContextSearchProps = {
|
|
2
4
|
/**
|
|
3
5
|
* value of the input
|
|
@@ -15,5 +17,17 @@ export type ContextSearchProps = {
|
|
|
15
17
|
* disabled
|
|
16
18
|
*/
|
|
17
19
|
disabled?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* class name for the container
|
|
22
|
+
*/
|
|
23
|
+
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* css styles for the input
|
|
26
|
+
*/
|
|
27
|
+
style?: React.CSSProperties;
|
|
28
|
+
/**
|
|
29
|
+
* prevent browser suggestions
|
|
30
|
+
*/
|
|
31
|
+
preventBrowserSuggestions?: boolean;
|
|
18
32
|
};
|
|
19
|
-
export declare const ContextSearch: ({ value, onChange, placeholder, disabled, }: ContextSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export declare const ContextSearch: ({ value, onChange, placeholder, disabled, className, style, preventBrowserSuggestions, }: ContextSearchProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,52 +1,51 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import { Icons as
|
|
1
|
+
import { jsxs as b, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x } from "react";
|
|
3
|
+
import { Icons as g } from "../../../atoms/icons/icons.js";
|
|
4
4
|
import "../../../atoms/icons/iconsSVGs/Large/Profile.js";
|
|
5
5
|
import "../../../atoms/icons/iconsSVGs/Small/Profile.js";
|
|
6
6
|
import { t as s } from "../../../../bundle-mjs-CAy1p0fn.js";
|
|
7
7
|
import { outlinedBorder as l } from "../../../styles/defaults/defaults.js";
|
|
8
8
|
import "../../../../purify.es-eYFoHPwR.js";
|
|
9
|
-
import { styleMap as
|
|
9
|
+
import { styleMap as v } from "../../../styles/typography/style.js";
|
|
10
10
|
import "../../../styles/colors/colormap.js";
|
|
11
|
-
const
|
|
11
|
+
const $ = ({
|
|
12
12
|
value: a,
|
|
13
13
|
onChange: e,
|
|
14
14
|
placeholder: i,
|
|
15
|
-
disabled: o = !1
|
|
15
|
+
disabled: o = !1,
|
|
16
|
+
className: c,
|
|
17
|
+
style: m,
|
|
18
|
+
preventBrowserSuggestions: u = !1
|
|
16
19
|
}) => {
|
|
17
|
-
const [
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
20
|
+
const [f, t] = x(!1), p = () => {
|
|
21
|
+
t(!0);
|
|
22
|
+
}, d = () => {
|
|
23
|
+
t(!1);
|
|
21
24
|
};
|
|
22
|
-
return /* @__PURE__ */
|
|
25
|
+
return /* @__PURE__ */ b(
|
|
23
26
|
"div",
|
|
24
27
|
{
|
|
25
28
|
className: s(
|
|
26
29
|
`h-[3rem] flex items-center gap-xs px-xs bg-surface-default ${l.base} border-bcolor-default `,
|
|
27
|
-
|
|
28
|
-
o && "bg-surface-disabled border-bcolor-disabled"
|
|
30
|
+
f && l.active,
|
|
31
|
+
o && "bg-surface-disabled border-bcolor-disabled",
|
|
32
|
+
c
|
|
29
33
|
),
|
|
34
|
+
style: m,
|
|
30
35
|
children: [
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
{
|
|
34
|
-
disabled: !0,
|
|
35
|
-
icon: "MagnifyingGlassSmall",
|
|
36
|
-
color: o ? "disabled" : "active"
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ t(
|
|
36
|
+
/* @__PURE__ */ r(g, { disabled: !0, icon: "MagnifyingGlassSmall", color: o ? "disabled" : "active" }),
|
|
37
|
+
/* @__PURE__ */ r(
|
|
40
38
|
"input",
|
|
41
39
|
{
|
|
42
40
|
type: "text",
|
|
43
|
-
className: s(`focus:outline-none w-full ${
|
|
41
|
+
className: s(`focus:outline-none w-full ${v[1]}`),
|
|
44
42
|
placeholder: i,
|
|
45
|
-
onFocus:
|
|
46
|
-
onBlur:
|
|
47
|
-
onChange: (
|
|
43
|
+
onFocus: p,
|
|
44
|
+
onBlur: d,
|
|
45
|
+
onChange: (n) => e == null ? void 0 : e(n.target.value),
|
|
48
46
|
value: a,
|
|
49
|
-
disabled: o
|
|
47
|
+
disabled: o,
|
|
48
|
+
autoComplete: u ? "off" : "on"
|
|
50
49
|
}
|
|
51
50
|
)
|
|
52
51
|
]
|
|
@@ -54,5 +53,5 @@ const w = ({
|
|
|
54
53
|
);
|
|
55
54
|
};
|
|
56
55
|
export {
|
|
57
|
-
|
|
56
|
+
$ as ContextSearch
|
|
58
57
|
};
|
|
@@ -19,5 +19,6 @@ export type DropdownFilterProps = {
|
|
|
19
19
|
multiselect?: boolean;
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
minWidth?: string | number;
|
|
22
|
+
className?: string;
|
|
22
23
|
};
|
|
23
|
-
export declare const DropdownFilter: ({ onChange, value, placeholder, options, multiselect, disabled, minWidth, }: DropdownFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const DropdownFilter: ({ onChange, value, placeholder, options, multiselect, disabled, minWidth, className, }: DropdownFilterProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,63 +1,64 @@
|
|
|
1
1
|
import { jsx as s, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { R as
|
|
4
|
-
import { c as
|
|
5
|
-
import { outlinedBorder as
|
|
2
|
+
import { useRef as V, useState as P } from "react";
|
|
3
|
+
import { R as $, T as F, I as K, P as z, C as L, V as M, a as U } from "../../../../index-CnWyMXBX.js";
|
|
4
|
+
import { c as W } from "../../../../index-fN7hCOo3.js";
|
|
5
|
+
import { outlinedBorder as S, border as Z } from "../../../styles/defaults/defaults.js";
|
|
6
6
|
import { Typography as g } from "../../../styles/typography/typography.js";
|
|
7
|
-
import { filterDropdownStyles as
|
|
8
|
-
import { Badge as
|
|
9
|
-
import { Icons as
|
|
7
|
+
import { filterDropdownStyles as q, contentStyles as G } from "./styles.js";
|
|
8
|
+
import { Badge as k } from "../../../atoms/badge/badge.js";
|
|
9
|
+
import { Icons as A } from "../../../atoms/icons/icons.js";
|
|
10
10
|
import "../../../atoms/icons/iconsSVGs/Large/Profile.js";
|
|
11
11
|
import "../../../atoms/icons/iconsSVGs/Small/Profile.js";
|
|
12
|
-
import { CheckboxFilter as
|
|
13
|
-
import { t as
|
|
14
|
-
import { getBorderClasses as
|
|
15
|
-
import { useStickyZIndex as
|
|
16
|
-
const
|
|
17
|
-
onChange:
|
|
12
|
+
import { CheckboxFilter as H } from "../checkbox/checkbox.js";
|
|
13
|
+
import { t as y } from "../../../../bundle-mjs-CAy1p0fn.js";
|
|
14
|
+
import { getBorderClasses as J } from "../../../atoms/form/utils-for-forms/state-functions.js";
|
|
15
|
+
import { useStickyZIndex as Q } from "../../../../hooks/use-sticky-z-index.js";
|
|
16
|
+
const me = ({
|
|
17
|
+
onChange: x,
|
|
18
18
|
value: o,
|
|
19
19
|
placeholder: C = "Select value",
|
|
20
20
|
options: f,
|
|
21
21
|
multiselect: t = !1,
|
|
22
22
|
disabled: a = !1,
|
|
23
|
-
minWidth: D
|
|
23
|
+
minWidth: D,
|
|
24
|
+
className: O
|
|
24
25
|
}) => {
|
|
25
|
-
const
|
|
26
|
-
function
|
|
26
|
+
const u = V(null), v = Q(u), [c, i] = P(!1), I = J(c, !1, !1, a), B = a ? `bg-surface-disabled ${S.disabled}` : "bg-surface-default", w = Array.isArray(o) ? o.length - 1 : 0;
|
|
27
|
+
function b(e) {
|
|
27
28
|
return Array.isArray(e) && typeof e[0] == "object" && e[0] !== null && "label" in e[0] && "value" in e[0];
|
|
28
29
|
}
|
|
29
|
-
const
|
|
30
|
+
const N = (e, r) => {
|
|
30
31
|
if (Array.isArray(r)) {
|
|
31
32
|
if (!r.length) return "";
|
|
32
|
-
if (
|
|
33
|
+
if (b(e)) {
|
|
33
34
|
const l = e.find((p) => p.value === r[0]);
|
|
34
35
|
return l ? l.label : "";
|
|
35
36
|
}
|
|
36
37
|
return r[0];
|
|
37
38
|
} else {
|
|
38
|
-
if (
|
|
39
|
+
if (b(e)) {
|
|
39
40
|
const l = e.find((p) => p.value === r);
|
|
40
41
|
return l ? l.label : "";
|
|
41
42
|
}
|
|
42
43
|
return r;
|
|
43
44
|
}
|
|
44
|
-
}, d = (e) => typeof e == "string" ? e : e.value,
|
|
45
|
+
}, d = (e) => typeof e == "string" ? e : e.value, T = (e) => typeof e == "string" ? e : e.label, m = (e) => {
|
|
45
46
|
if (t) {
|
|
46
47
|
let r = [];
|
|
47
|
-
Array.isArray(o) && o.includes(e) ? r = [...o.filter((l) => l !== e)] : r = [...o, e],
|
|
48
|
+
Array.isArray(o) && o.includes(e) ? r = [...o.filter((l) => l !== e)] : r = [...o, e], x(r);
|
|
48
49
|
} else
|
|
49
|
-
|
|
50
|
-
}, h = f.filter((e) => !e.hide),
|
|
50
|
+
x(e);
|
|
51
|
+
}, h = f.filter((e) => !e.hide), j = (e, r) => {
|
|
51
52
|
e.key === "Enter" && m(r);
|
|
52
|
-
},
|
|
53
|
+
}, E = (e) => {
|
|
53
54
|
e.key === "Escape" && i(!1);
|
|
54
|
-
},
|
|
55
|
+
}, R = () => {
|
|
55
56
|
i(!1);
|
|
56
57
|
};
|
|
57
|
-
return /* @__PURE__ */ s("div", { className: "w-full", children: /* @__PURE__ */ n(
|
|
58
|
-
|
|
58
|
+
return /* @__PURE__ */ s("div", { className: y("w-full", O), children: /* @__PURE__ */ n(
|
|
59
|
+
$,
|
|
59
60
|
{
|
|
60
|
-
value:
|
|
61
|
+
value: N(f, o),
|
|
61
62
|
onValueChange: (e) => !t && m(e),
|
|
62
63
|
open: c,
|
|
63
64
|
onOpenChange: (e) => {
|
|
@@ -66,10 +67,10 @@ const fe = ({
|
|
|
66
67
|
disabled: a,
|
|
67
68
|
children: [
|
|
68
69
|
/* @__PURE__ */ n(
|
|
69
|
-
|
|
70
|
+
F,
|
|
70
71
|
{
|
|
71
|
-
className:
|
|
72
|
-
ref:
|
|
72
|
+
className: y(q, B, I),
|
|
73
|
+
ref: u,
|
|
73
74
|
style: { height: "3rem", padding: "0.75rem", minWidth: D },
|
|
74
75
|
children: [
|
|
75
76
|
o && o.length !== 0 ? /* @__PURE__ */ n("div", { className: "min-w-0 flex gap-xxs items-center", children: [
|
|
@@ -77,12 +78,12 @@ const fe = ({
|
|
|
77
78
|
g,
|
|
78
79
|
{
|
|
79
80
|
swStyle: 1,
|
|
80
|
-
children:
|
|
81
|
+
children: N(f, o),
|
|
81
82
|
className: "whitespace-nowrap overflow-hidden text-ellipsis",
|
|
82
83
|
color: a ? "disabled" : "default"
|
|
83
84
|
}
|
|
84
85
|
),
|
|
85
|
-
t &&
|
|
86
|
+
t && w > 0 && /* @__PURE__ */ s(k, { text: "+" + w, color: "affirmative" })
|
|
86
87
|
] }) : /* @__PURE__ */ s(
|
|
87
88
|
g,
|
|
88
89
|
{
|
|
@@ -92,8 +93,8 @@ const fe = ({
|
|
|
92
93
|
className: "whitespace-nowrap overflow-hidden text-ellipsis"
|
|
93
94
|
}
|
|
94
95
|
),
|
|
95
|
-
/* @__PURE__ */ s(
|
|
96
|
-
|
|
96
|
+
/* @__PURE__ */ s(K, { className: "flex-shrink-0", children: /* @__PURE__ */ s(
|
|
97
|
+
A,
|
|
97
98
|
{
|
|
98
99
|
id: "dropdown-icon",
|
|
99
100
|
disabled: !0,
|
|
@@ -104,44 +105,44 @@ const fe = ({
|
|
|
104
105
|
]
|
|
105
106
|
}
|
|
106
107
|
),
|
|
107
|
-
/* @__PURE__ */ s(
|
|
108
|
-
|
|
108
|
+
/* @__PURE__ */ s(z, { children: /* @__PURE__ */ s(
|
|
109
|
+
L,
|
|
109
110
|
{
|
|
110
|
-
className:
|
|
111
|
-
|
|
111
|
+
className: W(
|
|
112
|
+
G,
|
|
112
113
|
"max-h-[27.3rem]",
|
|
113
114
|
// to fit 9 items in timesheet filter (with border width)
|
|
114
|
-
c ?
|
|
115
|
+
c ? S.active : Z.default
|
|
115
116
|
),
|
|
116
117
|
position: "popper",
|
|
117
118
|
side: "bottom",
|
|
118
|
-
onPointerDownOutside:
|
|
119
|
-
onKeyDown:
|
|
120
|
-
style: { minWidth: "auto", zIndex:
|
|
121
|
-
children: /* @__PURE__ */ s(
|
|
122
|
-
|
|
119
|
+
onPointerDownOutside: R,
|
|
120
|
+
onKeyDown: E,
|
|
121
|
+
style: { minWidth: "auto", zIndex: v },
|
|
122
|
+
children: /* @__PURE__ */ s(M, { children: h == null ? void 0 : h.map((e, r) => /* @__PURE__ */ s(
|
|
123
|
+
U,
|
|
123
124
|
{
|
|
124
|
-
className:
|
|
125
|
+
className: y(
|
|
125
126
|
"flex flex-row items-center gap-xs py-sm cursor-pointer hover:bg-surface-active hover:outline-none focus:bg-surface-active focus:outline-none",
|
|
126
127
|
e.hasTopBorder && "border-t border-e-bcolor-subdued",
|
|
127
128
|
t ? "pr-xs" : "px-md"
|
|
128
129
|
),
|
|
129
130
|
value: d(e),
|
|
130
131
|
onClick: () => t && m(d(e)),
|
|
131
|
-
onKeyDown: (l) =>
|
|
132
|
+
onKeyDown: (l) => j(l, d(e)),
|
|
132
133
|
style: { height: "3rem" },
|
|
133
134
|
children: /* @__PURE__ */ n("div", { className: "flex items-center", style: { height: "100%" }, children: [
|
|
134
135
|
t && /* @__PURE__ */ s(
|
|
135
|
-
|
|
136
|
+
H,
|
|
136
137
|
{
|
|
137
138
|
"data-testid": `checkbox-${r}`,
|
|
138
139
|
checked: o ? o.includes(d(e)) : !1
|
|
139
140
|
}
|
|
140
141
|
),
|
|
141
142
|
/* @__PURE__ */ n("div", { className: "flex items-center gap-xxs", children: [
|
|
142
|
-
e.icon && /* @__PURE__ */ s(
|
|
143
|
+
e.icon && /* @__PURE__ */ s(A, { ...e.icon, color: e.color ? e.color : "default" }),
|
|
143
144
|
!e.icon && e.badgeText && /* @__PURE__ */ s(
|
|
144
|
-
|
|
145
|
+
k,
|
|
145
146
|
{
|
|
146
147
|
text: e.badgeText,
|
|
147
148
|
color: e.color ? e.color : "default"
|
|
@@ -151,7 +152,7 @@ const fe = ({
|
|
|
151
152
|
g,
|
|
152
153
|
{
|
|
153
154
|
swStyle: 1,
|
|
154
|
-
children:
|
|
155
|
+
children: T(e),
|
|
155
156
|
color: e.color ? e.color : "default",
|
|
156
157
|
className: "whitespace-nowrap overflow-hidden text-ellipsis"
|
|
157
158
|
}
|
|
@@ -168,5 +169,5 @@ const fe = ({
|
|
|
168
169
|
) });
|
|
169
170
|
};
|
|
170
171
|
export {
|
|
171
|
-
|
|
172
|
+
me as DropdownFilter
|
|
172
173
|
};
|
|
@@ -2,21 +2,21 @@ import { c as e } from "../../../../index-fN7hCOo3.js";
|
|
|
2
2
|
const r = e(
|
|
3
3
|
"px-md h-[4rem] w-full flex flex-row justify-between items-center gap-md"
|
|
4
4
|
), s = e(
|
|
5
|
-
"px-md h-[4rem] w-
|
|
6
|
-
),
|
|
5
|
+
"px-md h-[4rem] w-full flex flex-row justify-between items-center gap-xs"
|
|
6
|
+
), l = e(
|
|
7
7
|
"overflow-hidden bg-surface-default rounded-lg my-[0.3rem] border-[0.15rem] outline-none"
|
|
8
|
-
),
|
|
8
|
+
), n = "flex flex-row items-center gap-xs py-sm px-md cursor-pointer hover:bg-surface-active hover:outline-none focus:bg-surface-active focus:outline-none ", o = "flex items-center justify-center h-[1.5rem] bg-surface-default text-glyph-active cursor-default", c = "flex items-center gap-xs self-stretch", f = {
|
|
9
9
|
default: "affirmative",
|
|
10
10
|
warning: "warning",
|
|
11
11
|
error: "alert",
|
|
12
12
|
disabled: "disabled"
|
|
13
13
|
};
|
|
14
14
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
f as badgeStyleMap,
|
|
16
|
+
l as contentStyles,
|
|
17
17
|
s as filterDropdownStyles,
|
|
18
18
|
c as hintStyles,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
n as itemStyles,
|
|
20
|
+
o as scrollButtonStyles,
|
|
21
21
|
r as triggerStyles
|
|
22
22
|
};
|