@agility/plenum-ui 1.3.46 → 1.3.47
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/lib/components/Button/Button.d.ts +3 -1
- package/lib/components/Forms/Checkbox/Checkbox.d.ts +4 -0
- package/lib/components/Forms/Checkbox/Checkbox.stories.d.ts +1 -0
- package/lib/index.esm.js +578 -587
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +592 -601
- package/lib/index.js.map +1 -1
- package/lib/tailwind.css +60 -12
- package/package.json +1 -1
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/components/Button/Button.tsx.html +0 -739
- package/coverage/components/Button/index.html +0 -116
- package/coverage/components/Forms/BaseField/BaseField.tsx.html +0 -415
- package/coverage/components/Forms/BaseField/index.html +0 -116
- package/coverage/components/Forms/Checkbox/Checkbox.tsx.html +0 -346
- package/coverage/components/Forms/Checkbox/index.html +0 -116
- package/coverage/components/Forms/InputCounter/InputCounter.tsx.html +0 -163
- package/coverage/components/Forms/InputCounter/index.html +0 -116
- package/coverage/components/Forms/InputLabel/InputLabel.tsx.html +0 -211
- package/coverage/components/Forms/InputLabel/index.html +0 -131
- package/coverage/components/Forms/InputLabel/index.ts.html +0 -94
- package/coverage/components/Forms/Radio/Radio.tsx.html +0 -364
- package/coverage/components/Forms/Radio/index.html +0 -116
- package/coverage/components/Forms/Select/Select.tsx.html +0 -394
- package/coverage/components/Forms/Select/index.html +0 -116
- package/coverage/components/Forms/TextInputAddon/InputCta/InputCta.tsx.html +0 -271
- package/coverage/components/Forms/TextInputAddon/InputCta/index.html +0 -116
- package/coverage/components/Forms/TextInputSelect/InputSelect/InputSelect.tsx.html +0 -259
- package/coverage/components/Forms/TextInputSelect/InputSelect/index.html +0 -116
- package/coverage/coverage-final.json +0 -14
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -251
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/util/DynamicIcons.tsx.html +0 -151
- package/coverage/util/Loader.tsx.html +0 -139
- package/coverage/util/index.html +0 -146
- package/coverage/util/useID.ts.html +0 -133
- package/lib/components/Switch/Switch.d.ts +0 -11
- package/lib/components/Switch/Switch.stories.d.ts +0 -9
- package/lib/components/Switch/Switch.test.d.ts +0 -1
- package/lib/components/Switch/index.d.ts +0 -1
package/lib/index.esm.js
CHANGED
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import React__default, { forwardRef,
|
|
2
|
+
import React__default, { forwardRef, useLayoutEffect, useEffect, useRef, useState, Fragment, isValidElement, cloneElement, createElement, useContext, createContext, useMemo, useReducer, createRef, useCallback } from 'react';
|
|
3
|
+
|
|
4
|
+
/*! *****************************************************************************
|
|
5
|
+
Copyright (c) Microsoft Corporation.
|
|
6
|
+
|
|
7
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
8
|
+
purpose with or without fee is hereby granted.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
11
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
12
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
13
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
14
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
15
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
16
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
17
|
+
***************************************************************************** */
|
|
18
|
+
|
|
19
|
+
var __assign = function() {
|
|
20
|
+
__assign = Object.assign || function __assign(t) {
|
|
21
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
22
|
+
s = arguments[i];
|
|
23
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
24
|
+
}
|
|
25
|
+
return t;
|
|
26
|
+
};
|
|
27
|
+
return __assign.apply(this, arguments);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
function __rest(s, e) {
|
|
31
|
+
var t = {};
|
|
32
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
33
|
+
t[p] = s[p];
|
|
34
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
35
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
36
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
37
|
+
t[p[i]] = s[p[i]];
|
|
38
|
+
}
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
3
41
|
|
|
4
42
|
var classnames = {exports: {}};
|
|
5
43
|
|
|
@@ -3030,237 +3068,237 @@ function ZoomOutIcon$1(props) {
|
|
|
3030
3068
|
}
|
|
3031
3069
|
|
|
3032
3070
|
var SolidIcons = /*#__PURE__*/Object.freeze({
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3071
|
+
__proto__: null,
|
|
3072
|
+
AcademicCapIcon: AcademicCapIcon$1,
|
|
3073
|
+
AdjustmentsIcon: AdjustmentsIcon$1,
|
|
3074
|
+
AnnotationIcon: AnnotationIcon$1,
|
|
3075
|
+
ArchiveIcon: ArchiveIcon$1,
|
|
3076
|
+
ArrowCircleDownIcon: ArrowCircleDownIcon$1,
|
|
3077
|
+
ArrowCircleLeftIcon: ArrowCircleLeftIcon$1,
|
|
3078
|
+
ArrowCircleRightIcon: ArrowCircleRightIcon$1,
|
|
3079
|
+
ArrowCircleUpIcon: ArrowCircleUpIcon$1,
|
|
3080
|
+
ArrowDownIcon: ArrowDownIcon$1,
|
|
3081
|
+
ArrowLeftIcon: ArrowLeftIcon$1,
|
|
3082
|
+
ArrowNarrowDownIcon: ArrowNarrowDownIcon$1,
|
|
3083
|
+
ArrowNarrowLeftIcon: ArrowNarrowLeftIcon$1,
|
|
3084
|
+
ArrowNarrowRightIcon: ArrowNarrowRightIcon$1,
|
|
3085
|
+
ArrowNarrowUpIcon: ArrowNarrowUpIcon$1,
|
|
3086
|
+
ArrowRightIcon: ArrowRightIcon$1,
|
|
3087
|
+
ArrowSmDownIcon: ArrowSmDownIcon$1,
|
|
3088
|
+
ArrowSmLeftIcon: ArrowSmLeftIcon$1,
|
|
3089
|
+
ArrowSmRightIcon: ArrowSmRightIcon$1,
|
|
3090
|
+
ArrowSmUpIcon: ArrowSmUpIcon$1,
|
|
3091
|
+
ArrowUpIcon: ArrowUpIcon$1,
|
|
3092
|
+
ArrowsExpandIcon: ArrowsExpandIcon$1,
|
|
3093
|
+
AtSymbolIcon: AtSymbolIcon$1,
|
|
3094
|
+
BackspaceIcon: BackspaceIcon$1,
|
|
3095
|
+
BadgeCheckIcon: BadgeCheckIcon$1,
|
|
3096
|
+
BanIcon: BanIcon$1,
|
|
3097
|
+
BeakerIcon: BeakerIcon$1,
|
|
3098
|
+
BellIcon: BellIcon$1,
|
|
3099
|
+
BookOpenIcon: BookOpenIcon$1,
|
|
3100
|
+
BookmarkAltIcon: BookmarkAltIcon$1,
|
|
3101
|
+
BookmarkIcon: BookmarkIcon$1,
|
|
3102
|
+
BriefcaseIcon: BriefcaseIcon$1,
|
|
3103
|
+
CakeIcon: CakeIcon$1,
|
|
3104
|
+
CalculatorIcon: CalculatorIcon$1,
|
|
3105
|
+
CalendarIcon: CalendarIcon$1,
|
|
3106
|
+
CameraIcon: CameraIcon$1,
|
|
3107
|
+
CashIcon: CashIcon$1,
|
|
3108
|
+
ChartBarIcon: ChartBarIcon$1,
|
|
3109
|
+
ChartPieIcon: ChartPieIcon$1,
|
|
3110
|
+
ChartSquareBarIcon: ChartSquareBarIcon$1,
|
|
3111
|
+
ChatAlt2Icon: ChatAlt2Icon$1,
|
|
3112
|
+
ChatAltIcon: ChatAltIcon$1,
|
|
3113
|
+
ChatIcon: ChatIcon$1,
|
|
3114
|
+
CheckCircleIcon: CheckCircleIcon$1,
|
|
3115
|
+
CheckIcon: CheckIcon$1,
|
|
3116
|
+
ChevronDoubleDownIcon: ChevronDoubleDownIcon$1,
|
|
3117
|
+
ChevronDoubleLeftIcon: ChevronDoubleLeftIcon$1,
|
|
3118
|
+
ChevronDoubleRightIcon: ChevronDoubleRightIcon$1,
|
|
3119
|
+
ChevronDoubleUpIcon: ChevronDoubleUpIcon$1,
|
|
3120
|
+
ChevronDownIcon: ChevronDownIcon$1,
|
|
3121
|
+
ChevronLeftIcon: ChevronLeftIcon$1,
|
|
3122
|
+
ChevronRightIcon: ChevronRightIcon$1,
|
|
3123
|
+
ChevronUpIcon: ChevronUpIcon$1,
|
|
3124
|
+
ChipIcon: ChipIcon$1,
|
|
3125
|
+
ClipboardCheckIcon: ClipboardCheckIcon$1,
|
|
3126
|
+
ClipboardCopyIcon: ClipboardCopyIcon$1,
|
|
3127
|
+
ClipboardListIcon: ClipboardListIcon$1,
|
|
3128
|
+
ClipboardIcon: ClipboardIcon$1,
|
|
3129
|
+
ClockIcon: ClockIcon$1,
|
|
3130
|
+
CloudDownloadIcon: CloudDownloadIcon$1,
|
|
3131
|
+
CloudUploadIcon: CloudUploadIcon$1,
|
|
3132
|
+
CloudIcon: CloudIcon$1,
|
|
3133
|
+
CodeIcon: CodeIcon$1,
|
|
3134
|
+
CogIcon: CogIcon$1,
|
|
3135
|
+
CollectionIcon: CollectionIcon$1,
|
|
3136
|
+
ColorSwatchIcon: ColorSwatchIcon$1,
|
|
3137
|
+
CreditCardIcon: CreditCardIcon$1,
|
|
3138
|
+
CubeTransparentIcon: CubeTransparentIcon$1,
|
|
3139
|
+
CubeIcon: CubeIcon$1,
|
|
3140
|
+
CurrencyBangladeshiIcon: CurrencyBangladeshiIcon$1,
|
|
3141
|
+
CurrencyDollarIcon: CurrencyDollarIcon$1,
|
|
3142
|
+
CurrencyEuroIcon: CurrencyEuroIcon$1,
|
|
3143
|
+
CurrencyPoundIcon: CurrencyPoundIcon$1,
|
|
3144
|
+
CurrencyRupeeIcon: CurrencyRupeeIcon$1,
|
|
3145
|
+
CurrencyYenIcon: CurrencyYenIcon$1,
|
|
3146
|
+
CursorClickIcon: CursorClickIcon$1,
|
|
3147
|
+
DatabaseIcon: DatabaseIcon$1,
|
|
3148
|
+
DesktopComputerIcon: DesktopComputerIcon$1,
|
|
3149
|
+
DeviceMobileIcon: DeviceMobileIcon$1,
|
|
3150
|
+
DeviceTabletIcon: DeviceTabletIcon$1,
|
|
3151
|
+
DocumentAddIcon: DocumentAddIcon$1,
|
|
3152
|
+
DocumentDownloadIcon: DocumentDownloadIcon$1,
|
|
3153
|
+
DocumentDuplicateIcon: DocumentDuplicateIcon$1,
|
|
3154
|
+
DocumentRemoveIcon: DocumentRemoveIcon$1,
|
|
3155
|
+
DocumentReportIcon: DocumentReportIcon$1,
|
|
3156
|
+
DocumentSearchIcon: DocumentSearchIcon$1,
|
|
3157
|
+
DocumentTextIcon: DocumentTextIcon$1,
|
|
3158
|
+
DocumentIcon: DocumentIcon$1,
|
|
3159
|
+
DotsCircleHorizontalIcon: DotsCircleHorizontalIcon$1,
|
|
3160
|
+
DotsHorizontalIcon: DotsHorizontalIcon$1,
|
|
3161
|
+
DotsVerticalIcon: DotsVerticalIcon$1,
|
|
3162
|
+
DownloadIcon: DownloadIcon$1,
|
|
3163
|
+
DuplicateIcon: DuplicateIcon$1,
|
|
3164
|
+
EmojiHappyIcon: EmojiHappyIcon$1,
|
|
3165
|
+
EmojiSadIcon: EmojiSadIcon$1,
|
|
3166
|
+
ExclamationCircleIcon: ExclamationCircleIcon$1,
|
|
3167
|
+
ExclamationIcon: ExclamationIcon$1,
|
|
3168
|
+
ExternalLinkIcon: ExternalLinkIcon$1,
|
|
3169
|
+
EyeOffIcon: EyeOffIcon$1,
|
|
3170
|
+
EyeIcon: EyeIcon$1,
|
|
3171
|
+
FastForwardIcon: FastForwardIcon$1,
|
|
3172
|
+
FilmIcon: FilmIcon$1,
|
|
3173
|
+
FilterIcon: FilterIcon$1,
|
|
3174
|
+
FingerPrintIcon: FingerPrintIcon$1,
|
|
3175
|
+
FireIcon: FireIcon$1,
|
|
3176
|
+
FlagIcon: FlagIcon$1,
|
|
3177
|
+
FolderAddIcon: FolderAddIcon$1,
|
|
3178
|
+
FolderDownloadIcon: FolderDownloadIcon$1,
|
|
3179
|
+
FolderOpenIcon: FolderOpenIcon$1,
|
|
3180
|
+
FolderRemoveIcon: FolderRemoveIcon$1,
|
|
3181
|
+
FolderIcon: FolderIcon$1,
|
|
3182
|
+
GiftIcon: GiftIcon$1,
|
|
3183
|
+
GlobeAltIcon: GlobeAltIcon$1,
|
|
3184
|
+
GlobeIcon: GlobeIcon$1,
|
|
3185
|
+
HandIcon: HandIcon$1,
|
|
3186
|
+
HashtagIcon: HashtagIcon$1,
|
|
3187
|
+
HeartIcon: HeartIcon$1,
|
|
3188
|
+
HomeIcon: HomeIcon$1,
|
|
3189
|
+
IdentificationIcon: IdentificationIcon$1,
|
|
3190
|
+
InboxInIcon: InboxInIcon$1,
|
|
3191
|
+
InboxIcon: InboxIcon$1,
|
|
3192
|
+
InformationCircleIcon: InformationCircleIcon$1,
|
|
3193
|
+
KeyIcon: KeyIcon$1,
|
|
3194
|
+
LibraryIcon: LibraryIcon$1,
|
|
3195
|
+
LightBulbIcon: LightBulbIcon$1,
|
|
3196
|
+
LightningBoltIcon: LightningBoltIcon$1,
|
|
3197
|
+
LinkIcon: LinkIcon$1,
|
|
3198
|
+
LocationMarkerIcon: LocationMarkerIcon$1,
|
|
3199
|
+
LockClosedIcon: LockClosedIcon$1,
|
|
3200
|
+
LockOpenIcon: LockOpenIcon$1,
|
|
3201
|
+
LoginIcon: LoginIcon$1,
|
|
3202
|
+
LogoutIcon: LogoutIcon$1,
|
|
3203
|
+
MailOpenIcon: MailOpenIcon$1,
|
|
3204
|
+
MailIcon: MailIcon$1,
|
|
3205
|
+
MapIcon: MapIcon$1,
|
|
3206
|
+
MenuAlt1Icon: MenuAlt1Icon$1,
|
|
3207
|
+
MenuAlt2Icon: MenuAlt2Icon$1,
|
|
3208
|
+
MenuAlt3Icon: MenuAlt3Icon$1,
|
|
3209
|
+
MenuAlt4Icon: MenuAlt4Icon$1,
|
|
3210
|
+
MenuIcon: MenuIcon$1,
|
|
3211
|
+
MicrophoneIcon: MicrophoneIcon$1,
|
|
3212
|
+
MinusCircleIcon: MinusCircleIcon$1,
|
|
3213
|
+
MinusSmIcon: MinusSmIcon$1,
|
|
3214
|
+
MinusIcon: MinusIcon$1,
|
|
3215
|
+
MoonIcon: MoonIcon$1,
|
|
3216
|
+
MusicNoteIcon: MusicNoteIcon$1,
|
|
3217
|
+
NewspaperIcon: NewspaperIcon$1,
|
|
3218
|
+
OfficeBuildingIcon: OfficeBuildingIcon$1,
|
|
3219
|
+
PaperAirplaneIcon: PaperAirplaneIcon$1,
|
|
3220
|
+
PaperClipIcon: PaperClipIcon$1,
|
|
3221
|
+
PauseIcon: PauseIcon$1,
|
|
3222
|
+
PencilAltIcon: PencilAltIcon$1,
|
|
3223
|
+
PencilIcon: PencilIcon$1,
|
|
3224
|
+
PhoneIncomingIcon: PhoneIncomingIcon$1,
|
|
3225
|
+
PhoneMissedCallIcon: PhoneMissedCallIcon$1,
|
|
3226
|
+
PhoneOutgoingIcon: PhoneOutgoingIcon$1,
|
|
3227
|
+
PhoneIcon: PhoneIcon$1,
|
|
3228
|
+
PhotographIcon: PhotographIcon$1,
|
|
3229
|
+
PlayIcon: PlayIcon$1,
|
|
3230
|
+
PlusCircleIcon: PlusCircleIcon$1,
|
|
3231
|
+
PlusSmIcon: PlusSmIcon$1,
|
|
3232
|
+
PlusIcon: PlusIcon$1,
|
|
3233
|
+
PresentationChartBarIcon: PresentationChartBarIcon$1,
|
|
3234
|
+
PresentationChartLineIcon: PresentationChartLineIcon$1,
|
|
3235
|
+
PrinterIcon: PrinterIcon$1,
|
|
3236
|
+
PuzzleIcon: PuzzleIcon$1,
|
|
3237
|
+
QrcodeIcon: QrcodeIcon$1,
|
|
3238
|
+
QuestionMarkCircleIcon: QuestionMarkCircleIcon$1,
|
|
3239
|
+
ReceiptRefundIcon: ReceiptRefundIcon$1,
|
|
3240
|
+
ReceiptTaxIcon: ReceiptTaxIcon$1,
|
|
3241
|
+
RefreshIcon: RefreshIcon$1,
|
|
3242
|
+
ReplyIcon: ReplyIcon$1,
|
|
3243
|
+
RewindIcon: RewindIcon$1,
|
|
3244
|
+
RssIcon: RssIcon$1,
|
|
3245
|
+
SaveAsIcon: SaveAsIcon$1,
|
|
3246
|
+
SaveIcon: SaveIcon$1,
|
|
3247
|
+
ScaleIcon: ScaleIcon$1,
|
|
3248
|
+
ScissorsIcon: ScissorsIcon$1,
|
|
3249
|
+
SearchCircleIcon: SearchCircleIcon$1,
|
|
3250
|
+
SearchIcon: SearchIcon$1,
|
|
3251
|
+
SelectorIcon: SelectorIcon$1,
|
|
3252
|
+
ServerIcon: ServerIcon$1,
|
|
3253
|
+
ShareIcon: ShareIcon$1,
|
|
3254
|
+
ShieldCheckIcon: ShieldCheckIcon$1,
|
|
3255
|
+
ShieldExclamationIcon: ShieldExclamationIcon$1,
|
|
3256
|
+
ShoppingBagIcon: ShoppingBagIcon$1,
|
|
3257
|
+
ShoppingCartIcon: ShoppingCartIcon$1,
|
|
3258
|
+
SortAscendingIcon: SortAscendingIcon$1,
|
|
3259
|
+
SortDescendingIcon: SortDescendingIcon$1,
|
|
3260
|
+
SparklesIcon: SparklesIcon$1,
|
|
3261
|
+
SpeakerphoneIcon: SpeakerphoneIcon$1,
|
|
3262
|
+
StarIcon: StarIcon$1,
|
|
3263
|
+
StatusOfflineIcon: StatusOfflineIcon$1,
|
|
3264
|
+
StatusOnlineIcon: StatusOnlineIcon$1,
|
|
3265
|
+
StopIcon: StopIcon$1,
|
|
3266
|
+
SunIcon: SunIcon$1,
|
|
3267
|
+
SupportIcon: SupportIcon$1,
|
|
3268
|
+
SwitchHorizontalIcon: SwitchHorizontalIcon$1,
|
|
3269
|
+
SwitchVerticalIcon: SwitchVerticalIcon$1,
|
|
3270
|
+
TableIcon: TableIcon$1,
|
|
3271
|
+
TagIcon: TagIcon$1,
|
|
3272
|
+
TemplateIcon: TemplateIcon$1,
|
|
3273
|
+
TerminalIcon: TerminalIcon$1,
|
|
3274
|
+
ThumbDownIcon: ThumbDownIcon$1,
|
|
3275
|
+
ThumbUpIcon: ThumbUpIcon$1,
|
|
3276
|
+
TicketIcon: TicketIcon$1,
|
|
3277
|
+
TranslateIcon: TranslateIcon$1,
|
|
3278
|
+
TrashIcon: TrashIcon$1,
|
|
3279
|
+
TrendingDownIcon: TrendingDownIcon$1,
|
|
3280
|
+
TrendingUpIcon: TrendingUpIcon$1,
|
|
3281
|
+
TruckIcon: TruckIcon$1,
|
|
3282
|
+
UploadIcon: UploadIcon$1,
|
|
3283
|
+
UserAddIcon: UserAddIcon$1,
|
|
3284
|
+
UserCircleIcon: UserCircleIcon$1,
|
|
3285
|
+
UserGroupIcon: UserGroupIcon$1,
|
|
3286
|
+
UserRemoveIcon: UserRemoveIcon$1,
|
|
3287
|
+
UserIcon: UserIcon$1,
|
|
3288
|
+
UsersIcon: UsersIcon$1,
|
|
3289
|
+
VariableIcon: VariableIcon$1,
|
|
3290
|
+
VideoCameraIcon: VideoCameraIcon$1,
|
|
3291
|
+
ViewBoardsIcon: ViewBoardsIcon$1,
|
|
3292
|
+
ViewGridAddIcon: ViewGridAddIcon$1,
|
|
3293
|
+
ViewGridIcon: ViewGridIcon$1,
|
|
3294
|
+
ViewListIcon: ViewListIcon$1,
|
|
3295
|
+
VolumeOffIcon: VolumeOffIcon$1,
|
|
3296
|
+
VolumeUpIcon: VolumeUpIcon$1,
|
|
3297
|
+
WifiIcon: WifiIcon$1,
|
|
3298
|
+
XCircleIcon: XCircleIcon$1,
|
|
3299
|
+
XIcon: XIcon$1,
|
|
3300
|
+
ZoomInIcon: ZoomInIcon$1,
|
|
3301
|
+
ZoomOutIcon: ZoomOutIcon$1
|
|
3264
3302
|
});
|
|
3265
3303
|
|
|
3266
3304
|
function AcademicCapIcon(props) {
|
|
@@ -6766,237 +6804,237 @@ function ZoomOutIcon(props) {
|
|
|
6766
6804
|
}
|
|
6767
6805
|
|
|
6768
6806
|
var OutlineIcons = /*#__PURE__*/Object.freeze({
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
|
|
6833
|
-
|
|
6834
|
-
|
|
6835
|
-
|
|
6836
|
-
|
|
6837
|
-
|
|
6838
|
-
|
|
6839
|
-
|
|
6840
|
-
|
|
6841
|
-
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
|
|
6848
|
-
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
|
|
6856
|
-
|
|
6857
|
-
|
|
6858
|
-
|
|
6859
|
-
|
|
6860
|
-
|
|
6861
|
-
|
|
6862
|
-
|
|
6863
|
-
|
|
6864
|
-
|
|
6865
|
-
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
|
|
6873
|
-
|
|
6874
|
-
|
|
6875
|
-
|
|
6876
|
-
|
|
6877
|
-
|
|
6878
|
-
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
|
|
6883
|
-
|
|
6884
|
-
|
|
6885
|
-
|
|
6886
|
-
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6896
|
-
|
|
6897
|
-
|
|
6898
|
-
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6908
|
-
|
|
6909
|
-
|
|
6910
|
-
|
|
6911
|
-
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
|
|
6915
|
-
|
|
6916
|
-
|
|
6917
|
-
|
|
6918
|
-
|
|
6919
|
-
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
|
|
6924
|
-
|
|
6925
|
-
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
|
|
6929
|
-
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
6934
|
-
|
|
6935
|
-
|
|
6936
|
-
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6982
|
-
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
6807
|
+
__proto__: null,
|
|
6808
|
+
AcademicCapIcon: AcademicCapIcon,
|
|
6809
|
+
AdjustmentsIcon: AdjustmentsIcon,
|
|
6810
|
+
AnnotationIcon: AnnotationIcon,
|
|
6811
|
+
ArchiveIcon: ArchiveIcon,
|
|
6812
|
+
ArrowCircleDownIcon: ArrowCircleDownIcon,
|
|
6813
|
+
ArrowCircleLeftIcon: ArrowCircleLeftIcon,
|
|
6814
|
+
ArrowCircleRightIcon: ArrowCircleRightIcon,
|
|
6815
|
+
ArrowCircleUpIcon: ArrowCircleUpIcon,
|
|
6816
|
+
ArrowDownIcon: ArrowDownIcon,
|
|
6817
|
+
ArrowLeftIcon: ArrowLeftIcon,
|
|
6818
|
+
ArrowNarrowDownIcon: ArrowNarrowDownIcon,
|
|
6819
|
+
ArrowNarrowLeftIcon: ArrowNarrowLeftIcon,
|
|
6820
|
+
ArrowNarrowRightIcon: ArrowNarrowRightIcon,
|
|
6821
|
+
ArrowNarrowUpIcon: ArrowNarrowUpIcon,
|
|
6822
|
+
ArrowRightIcon: ArrowRightIcon,
|
|
6823
|
+
ArrowSmDownIcon: ArrowSmDownIcon,
|
|
6824
|
+
ArrowSmLeftIcon: ArrowSmLeftIcon,
|
|
6825
|
+
ArrowSmRightIcon: ArrowSmRightIcon,
|
|
6826
|
+
ArrowSmUpIcon: ArrowSmUpIcon,
|
|
6827
|
+
ArrowUpIcon: ArrowUpIcon,
|
|
6828
|
+
ArrowsExpandIcon: ArrowsExpandIcon,
|
|
6829
|
+
AtSymbolIcon: AtSymbolIcon,
|
|
6830
|
+
BackspaceIcon: BackspaceIcon,
|
|
6831
|
+
BadgeCheckIcon: BadgeCheckIcon,
|
|
6832
|
+
BanIcon: BanIcon,
|
|
6833
|
+
BeakerIcon: BeakerIcon,
|
|
6834
|
+
BellIcon: BellIcon,
|
|
6835
|
+
BookOpenIcon: BookOpenIcon,
|
|
6836
|
+
BookmarkAltIcon: BookmarkAltIcon,
|
|
6837
|
+
BookmarkIcon: BookmarkIcon,
|
|
6838
|
+
BriefcaseIcon: BriefcaseIcon,
|
|
6839
|
+
CakeIcon: CakeIcon,
|
|
6840
|
+
CalculatorIcon: CalculatorIcon,
|
|
6841
|
+
CalendarIcon: CalendarIcon,
|
|
6842
|
+
CameraIcon: CameraIcon,
|
|
6843
|
+
CashIcon: CashIcon,
|
|
6844
|
+
ChartBarIcon: ChartBarIcon,
|
|
6845
|
+
ChartPieIcon: ChartPieIcon,
|
|
6846
|
+
ChartSquareBarIcon: ChartSquareBarIcon,
|
|
6847
|
+
ChatAlt2Icon: ChatAlt2Icon,
|
|
6848
|
+
ChatAltIcon: ChatAltIcon,
|
|
6849
|
+
ChatIcon: ChatIcon,
|
|
6850
|
+
CheckCircleIcon: CheckCircleIcon,
|
|
6851
|
+
CheckIcon: CheckIcon,
|
|
6852
|
+
ChevronDoubleDownIcon: ChevronDoubleDownIcon,
|
|
6853
|
+
ChevronDoubleLeftIcon: ChevronDoubleLeftIcon,
|
|
6854
|
+
ChevronDoubleRightIcon: ChevronDoubleRightIcon,
|
|
6855
|
+
ChevronDoubleUpIcon: ChevronDoubleUpIcon,
|
|
6856
|
+
ChevronDownIcon: ChevronDownIcon,
|
|
6857
|
+
ChevronLeftIcon: ChevronLeftIcon,
|
|
6858
|
+
ChevronRightIcon: ChevronRightIcon,
|
|
6859
|
+
ChevronUpIcon: ChevronUpIcon,
|
|
6860
|
+
ChipIcon: ChipIcon,
|
|
6861
|
+
ClipboardCheckIcon: ClipboardCheckIcon,
|
|
6862
|
+
ClipboardCopyIcon: ClipboardCopyIcon,
|
|
6863
|
+
ClipboardListIcon: ClipboardListIcon,
|
|
6864
|
+
ClipboardIcon: ClipboardIcon,
|
|
6865
|
+
ClockIcon: ClockIcon,
|
|
6866
|
+
CloudDownloadIcon: CloudDownloadIcon,
|
|
6867
|
+
CloudUploadIcon: CloudUploadIcon,
|
|
6868
|
+
CloudIcon: CloudIcon,
|
|
6869
|
+
CodeIcon: CodeIcon,
|
|
6870
|
+
CogIcon: CogIcon,
|
|
6871
|
+
CollectionIcon: CollectionIcon,
|
|
6872
|
+
ColorSwatchIcon: ColorSwatchIcon,
|
|
6873
|
+
CreditCardIcon: CreditCardIcon,
|
|
6874
|
+
CubeTransparentIcon: CubeTransparentIcon,
|
|
6875
|
+
CubeIcon: CubeIcon,
|
|
6876
|
+
CurrencyBangladeshiIcon: CurrencyBangladeshiIcon,
|
|
6877
|
+
CurrencyDollarIcon: CurrencyDollarIcon,
|
|
6878
|
+
CurrencyEuroIcon: CurrencyEuroIcon,
|
|
6879
|
+
CurrencyPoundIcon: CurrencyPoundIcon,
|
|
6880
|
+
CurrencyRupeeIcon: CurrencyRupeeIcon,
|
|
6881
|
+
CurrencyYenIcon: CurrencyYenIcon,
|
|
6882
|
+
CursorClickIcon: CursorClickIcon,
|
|
6883
|
+
DatabaseIcon: DatabaseIcon,
|
|
6884
|
+
DesktopComputerIcon: DesktopComputerIcon,
|
|
6885
|
+
DeviceMobileIcon: DeviceMobileIcon,
|
|
6886
|
+
DeviceTabletIcon: DeviceTabletIcon,
|
|
6887
|
+
DocumentAddIcon: DocumentAddIcon,
|
|
6888
|
+
DocumentDownloadIcon: DocumentDownloadIcon,
|
|
6889
|
+
DocumentDuplicateIcon: DocumentDuplicateIcon,
|
|
6890
|
+
DocumentRemoveIcon: DocumentRemoveIcon,
|
|
6891
|
+
DocumentReportIcon: DocumentReportIcon,
|
|
6892
|
+
DocumentSearchIcon: DocumentSearchIcon,
|
|
6893
|
+
DocumentTextIcon: DocumentTextIcon,
|
|
6894
|
+
DocumentIcon: DocumentIcon,
|
|
6895
|
+
DotsCircleHorizontalIcon: DotsCircleHorizontalIcon,
|
|
6896
|
+
DotsHorizontalIcon: DotsHorizontalIcon,
|
|
6897
|
+
DotsVerticalIcon: DotsVerticalIcon,
|
|
6898
|
+
DownloadIcon: DownloadIcon,
|
|
6899
|
+
DuplicateIcon: DuplicateIcon,
|
|
6900
|
+
EmojiHappyIcon: EmojiHappyIcon,
|
|
6901
|
+
EmojiSadIcon: EmojiSadIcon,
|
|
6902
|
+
ExclamationCircleIcon: ExclamationCircleIcon,
|
|
6903
|
+
ExclamationIcon: ExclamationIcon,
|
|
6904
|
+
ExternalLinkIcon: ExternalLinkIcon,
|
|
6905
|
+
EyeOffIcon: EyeOffIcon,
|
|
6906
|
+
EyeIcon: EyeIcon,
|
|
6907
|
+
FastForwardIcon: FastForwardIcon,
|
|
6908
|
+
FilmIcon: FilmIcon,
|
|
6909
|
+
FilterIcon: FilterIcon,
|
|
6910
|
+
FingerPrintIcon: FingerPrintIcon,
|
|
6911
|
+
FireIcon: FireIcon,
|
|
6912
|
+
FlagIcon: FlagIcon,
|
|
6913
|
+
FolderAddIcon: FolderAddIcon,
|
|
6914
|
+
FolderDownloadIcon: FolderDownloadIcon,
|
|
6915
|
+
FolderOpenIcon: FolderOpenIcon,
|
|
6916
|
+
FolderRemoveIcon: FolderRemoveIcon,
|
|
6917
|
+
FolderIcon: FolderIcon,
|
|
6918
|
+
GiftIcon: GiftIcon,
|
|
6919
|
+
GlobeAltIcon: GlobeAltIcon,
|
|
6920
|
+
GlobeIcon: GlobeIcon,
|
|
6921
|
+
HandIcon: HandIcon,
|
|
6922
|
+
HashtagIcon: HashtagIcon,
|
|
6923
|
+
HeartIcon: HeartIcon,
|
|
6924
|
+
HomeIcon: HomeIcon,
|
|
6925
|
+
IdentificationIcon: IdentificationIcon,
|
|
6926
|
+
InboxInIcon: InboxInIcon,
|
|
6927
|
+
InboxIcon: InboxIcon,
|
|
6928
|
+
InformationCircleIcon: InformationCircleIcon,
|
|
6929
|
+
KeyIcon: KeyIcon,
|
|
6930
|
+
LibraryIcon: LibraryIcon,
|
|
6931
|
+
LightBulbIcon: LightBulbIcon,
|
|
6932
|
+
LightningBoltIcon: LightningBoltIcon,
|
|
6933
|
+
LinkIcon: LinkIcon,
|
|
6934
|
+
LocationMarkerIcon: LocationMarkerIcon,
|
|
6935
|
+
LockClosedIcon: LockClosedIcon,
|
|
6936
|
+
LockOpenIcon: LockOpenIcon,
|
|
6937
|
+
LoginIcon: LoginIcon,
|
|
6938
|
+
LogoutIcon: LogoutIcon,
|
|
6939
|
+
MailOpenIcon: MailOpenIcon,
|
|
6940
|
+
MailIcon: MailIcon,
|
|
6941
|
+
MapIcon: MapIcon,
|
|
6942
|
+
MenuAlt1Icon: MenuAlt1Icon,
|
|
6943
|
+
MenuAlt2Icon: MenuAlt2Icon,
|
|
6944
|
+
MenuAlt3Icon: MenuAlt3Icon,
|
|
6945
|
+
MenuAlt4Icon: MenuAlt4Icon,
|
|
6946
|
+
MenuIcon: MenuIcon,
|
|
6947
|
+
MicrophoneIcon: MicrophoneIcon,
|
|
6948
|
+
MinusCircleIcon: MinusCircleIcon,
|
|
6949
|
+
MinusSmIcon: MinusSmIcon,
|
|
6950
|
+
MinusIcon: MinusIcon,
|
|
6951
|
+
MoonIcon: MoonIcon,
|
|
6952
|
+
MusicNoteIcon: MusicNoteIcon,
|
|
6953
|
+
NewspaperIcon: NewspaperIcon,
|
|
6954
|
+
OfficeBuildingIcon: OfficeBuildingIcon,
|
|
6955
|
+
PaperAirplaneIcon: PaperAirplaneIcon,
|
|
6956
|
+
PaperClipIcon: PaperClipIcon,
|
|
6957
|
+
PauseIcon: PauseIcon,
|
|
6958
|
+
PencilAltIcon: PencilAltIcon,
|
|
6959
|
+
PencilIcon: PencilIcon,
|
|
6960
|
+
PhoneIncomingIcon: PhoneIncomingIcon,
|
|
6961
|
+
PhoneMissedCallIcon: PhoneMissedCallIcon,
|
|
6962
|
+
PhoneOutgoingIcon: PhoneOutgoingIcon,
|
|
6963
|
+
PhoneIcon: PhoneIcon,
|
|
6964
|
+
PhotographIcon: PhotographIcon,
|
|
6965
|
+
PlayIcon: PlayIcon,
|
|
6966
|
+
PlusCircleIcon: PlusCircleIcon,
|
|
6967
|
+
PlusSmIcon: PlusSmIcon,
|
|
6968
|
+
PlusIcon: PlusIcon,
|
|
6969
|
+
PresentationChartBarIcon: PresentationChartBarIcon,
|
|
6970
|
+
PresentationChartLineIcon: PresentationChartLineIcon,
|
|
6971
|
+
PrinterIcon: PrinterIcon,
|
|
6972
|
+
PuzzleIcon: PuzzleIcon,
|
|
6973
|
+
QrcodeIcon: QrcodeIcon,
|
|
6974
|
+
QuestionMarkCircleIcon: QuestionMarkCircleIcon,
|
|
6975
|
+
ReceiptRefundIcon: ReceiptRefundIcon,
|
|
6976
|
+
ReceiptTaxIcon: ReceiptTaxIcon,
|
|
6977
|
+
RefreshIcon: RefreshIcon,
|
|
6978
|
+
ReplyIcon: ReplyIcon,
|
|
6979
|
+
RewindIcon: RewindIcon,
|
|
6980
|
+
RssIcon: RssIcon,
|
|
6981
|
+
SaveAsIcon: SaveAsIcon,
|
|
6982
|
+
SaveIcon: SaveIcon,
|
|
6983
|
+
ScaleIcon: ScaleIcon,
|
|
6984
|
+
ScissorsIcon: ScissorsIcon,
|
|
6985
|
+
SearchCircleIcon: SearchCircleIcon,
|
|
6986
|
+
SearchIcon: SearchIcon,
|
|
6987
|
+
SelectorIcon: SelectorIcon,
|
|
6988
|
+
ServerIcon: ServerIcon,
|
|
6989
|
+
ShareIcon: ShareIcon,
|
|
6990
|
+
ShieldCheckIcon: ShieldCheckIcon,
|
|
6991
|
+
ShieldExclamationIcon: ShieldExclamationIcon,
|
|
6992
|
+
ShoppingBagIcon: ShoppingBagIcon,
|
|
6993
|
+
ShoppingCartIcon: ShoppingCartIcon,
|
|
6994
|
+
SortAscendingIcon: SortAscendingIcon,
|
|
6995
|
+
SortDescendingIcon: SortDescendingIcon,
|
|
6996
|
+
SparklesIcon: SparklesIcon,
|
|
6997
|
+
SpeakerphoneIcon: SpeakerphoneIcon,
|
|
6998
|
+
StarIcon: StarIcon,
|
|
6999
|
+
StatusOfflineIcon: StatusOfflineIcon,
|
|
7000
|
+
StatusOnlineIcon: StatusOnlineIcon,
|
|
7001
|
+
StopIcon: StopIcon,
|
|
7002
|
+
SunIcon: SunIcon,
|
|
7003
|
+
SupportIcon: SupportIcon,
|
|
7004
|
+
SwitchHorizontalIcon: SwitchHorizontalIcon,
|
|
7005
|
+
SwitchVerticalIcon: SwitchVerticalIcon,
|
|
7006
|
+
TableIcon: TableIcon,
|
|
7007
|
+
TagIcon: TagIcon,
|
|
7008
|
+
TemplateIcon: TemplateIcon,
|
|
7009
|
+
TerminalIcon: TerminalIcon,
|
|
7010
|
+
ThumbDownIcon: ThumbDownIcon,
|
|
7011
|
+
ThumbUpIcon: ThumbUpIcon,
|
|
7012
|
+
TicketIcon: TicketIcon,
|
|
7013
|
+
TranslateIcon: TranslateIcon,
|
|
7014
|
+
TrashIcon: TrashIcon,
|
|
7015
|
+
TrendingDownIcon: TrendingDownIcon,
|
|
7016
|
+
TrendingUpIcon: TrendingUpIcon,
|
|
7017
|
+
TruckIcon: TruckIcon,
|
|
7018
|
+
UploadIcon: UploadIcon,
|
|
7019
|
+
UserAddIcon: UserAddIcon,
|
|
7020
|
+
UserCircleIcon: UserCircleIcon,
|
|
7021
|
+
UserGroupIcon: UserGroupIcon,
|
|
7022
|
+
UserRemoveIcon: UserRemoveIcon,
|
|
7023
|
+
UserIcon: UserIcon,
|
|
7024
|
+
UsersIcon: UsersIcon,
|
|
7025
|
+
VariableIcon: VariableIcon,
|
|
7026
|
+
VideoCameraIcon: VideoCameraIcon,
|
|
7027
|
+
ViewBoardsIcon: ViewBoardsIcon,
|
|
7028
|
+
ViewGridAddIcon: ViewGridAddIcon,
|
|
7029
|
+
ViewGridIcon: ViewGridIcon,
|
|
7030
|
+
ViewListIcon: ViewListIcon,
|
|
7031
|
+
VolumeOffIcon: VolumeOffIcon,
|
|
7032
|
+
VolumeUpIcon: VolumeUpIcon,
|
|
7033
|
+
WifiIcon: WifiIcon,
|
|
7034
|
+
XCircleIcon: XCircleIcon,
|
|
7035
|
+
XIcon: XIcon,
|
|
7036
|
+
ZoomInIcon: ZoomInIcon,
|
|
7037
|
+
ZoomOutIcon: ZoomOutIcon
|
|
7000
7038
|
});
|
|
7001
7039
|
|
|
7002
7040
|
var DynamicIcons = function (_a) {
|
|
@@ -7019,14 +7057,14 @@ function Loader(_a) {
|
|
|
7019
7057
|
* Primary UI component for user interaction
|
|
7020
7058
|
*/
|
|
7021
7059
|
var Button = function (_a, ref) {
|
|
7022
|
-
var _b = _a.type, type = _b === void 0 ? "primary" : _b, _c = _a.size, size = _c === void 0 ? "base" : _c, onClick = _a.onClick, label = _a.label, isDisabled = _a.isDisabled, icon = _a.icon, iconObj = _a.iconObj, _d = _a.isLoading, isLoading = _d === void 0 ? false : _d, _e = _a.isSubmit, isSubmit = _e === void 0 ? false : _e, _f = _a.isWidthFull, isWidthFull = _f === void 0 ? false : _f, className = _a.className, title = _a.title, asLink = _a.asLink;
|
|
7060
|
+
var _b = _a.type, type = _b === void 0 ? "primary" : _b, _c = _a.size, size = _c === void 0 ? "base" : _c, onClick = _a.onClick, label = _a.label, isDisabled = _a.isDisabled, icon = _a.icon, iconObj = _a.iconObj, _d = _a.isLoading, isLoading = _d === void 0 ? false : _d, _e = _a.isSubmit, isSubmit = _e === void 0 ? false : _e, _f = _a.isWidthFull, isWidthFull = _f === void 0 ? false : _f, className = _a.className, title = _a.title, asLink = _a.asLink, children = _a.children, props = __rest(_a, ["type", "size", "onClick", "label", "isDisabled", "icon", "iconObj", "isLoading", "isSubmit", "isWidthFull", "className", "title", "asLink", "children"]);
|
|
7023
7061
|
var iconStyles = cn("h-5 w-5", { "text-white": type === "primary" || type === "danger" }, { "text-purple-700": type === "secondary" }, { "text-gray-700": type === "alternative" });
|
|
7024
|
-
return !asLink ? (React__default.createElement("button", { ref: ref, type: isSubmit ? "submit" : "button", title: title, className: cn("inline-flex items-center justify-center space-x-2 border transition-all", { "w-full": isWidthFull === true }, { "
|
|
7062
|
+
return !asLink ? (React__default.createElement("button", __assign({ ref: ref, type: isSubmit ? "submit" : "button", title: title, className: cn("inline-flex items-center justify-center space-x-2 rounded border transition-all leading-5 font-medium", { "w-full": isWidthFull === true }, { "px-4 py-2 text-sm h-[38px]": size === "sm" }, { "px-5 py-2 text-base": size === "base" }, { "px-5 py-2 text-lg": size === "lg" }, { "gap-2": children }, {
|
|
7025
7063
|
"cursor-auto opacity-50": isDisabled
|
|
7026
7064
|
}, {
|
|
7027
7065
|
"active: border-purple-600 bg-purple-600 text-white hover:border-purple-700 hover:bg-purple-700 active:border-purple-800 active:bg-purple-800": type === "primary"
|
|
7028
7066
|
}, {
|
|
7029
|
-
"border-purple-
|
|
7067
|
+
"border-purple-50 bg-purple-50 text-purple-700 focus:border-purple-700 focus:bg-purple-100 hover:border-purple-200 hover:bg-purple-200 hover:text-purple-700 active:border-purple-300 active:bg-purple-300": type === "secondary"
|
|
7030
7068
|
}, {
|
|
7031
7069
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-50 hover:text-gray-700 active:bg-gray-100": type === "alternative"
|
|
7032
7070
|
}, {
|
|
@@ -7034,27 +7072,25 @@ var Button = function (_a, ref) {
|
|
|
7034
7072
|
}, className), onClick: !isDisabled
|
|
7035
7073
|
? onClick
|
|
7036
7074
|
: function () {
|
|
7037
|
-
}, disabled: isDisabled, "aria-disabled": isDisabled },
|
|
7075
|
+
}, disabled: isDisabled, "aria-disabled": isDisabled }, props),
|
|
7076
|
+
children,
|
|
7038
7077
|
iconObj &&
|
|
7039
7078
|
(isLoading ? (React__default.createElement(Loader, { classes: "h-5 w-5 border-2 m-0" })) : (React__default.createElement(React__default.Fragment, null, iconObj))),
|
|
7040
7079
|
icon &&
|
|
7041
7080
|
(isLoading ? (React__default.createElement(Loader, { classes: "h-5 w-5 border-2 m-0" })) : (React__default.createElement(DynamicIcons, { icon: icon, className: iconStyles, outline: false }))),
|
|
7042
7081
|
!icon && !iconObj && isLoading && (React__default.createElement(Loader, { classes: "h-5 w-5 border-2 m-0" })),
|
|
7043
|
-
label && React__default.createElement("span", null, label))) : (React__default.createElement("a", { type: isSubmit ? "submit" : "button", title: asLink.title || title, href: asLink.href, target: asLink.target,
|
|
7044
|
-
if (!isDisabled && onClick) {
|
|
7045
|
-
onClick(e);
|
|
7046
|
-
}
|
|
7047
|
-
}, className: cn("inline-flex items-center justify-center space-x-2 rounded border transition-all", { "w-full": isWidthFull === true }, { "px-4 py-2 text-sm": size === "sm" }, { "px-5 py-2 text-base": size === "base" }, { "px-5 py-2 text-lg": size === "lg" }, {
|
|
7082
|
+
label && React__default.createElement("span", null, label))) : (React__default.createElement("a", __assign({ type: isSubmit ? "submit" : "button", title: asLink.title || title, href: asLink.href, target: asLink.target, className: cn("inline-flex items-center justify-center space-x-2 rounded border transition-all", { "w-full": isWidthFull === true }, { "px-4 py-2 text-sm h-[38px]": size === "sm" }, { "px-5 py-2 text-base": size === "base" }, { "px-5 py-2 text-lg": size === "lg" }, {
|
|
7048
7083
|
"cursor-auto opacity-50": isDisabled
|
|
7049
7084
|
}, {
|
|
7050
7085
|
"active: border-purple-600 bg-purple-600 text-white hover:border-purple-700 hover:bg-purple-700 active:border-purple-800 active:bg-purple-800": type === "primary"
|
|
7051
7086
|
}, {
|
|
7052
|
-
"border-purple-
|
|
7087
|
+
"border-purple-50 bg-purple-50 text-purple-700 focus:border-purple-700 focus:bg-purple-100 hover:border-purple-100 hover:bg-purple-100 hover:text-purple-700 active:border-purple-300 active:bg-purple-300": type === "secondary"
|
|
7053
7088
|
}, {
|
|
7054
7089
|
"border-gray-300 bg-white text-gray-700 hover:bg-gray-50 hover:text-gray-700 active:bg-gray-100": type === "alternative"
|
|
7055
7090
|
}, {
|
|
7056
7091
|
"border-red-300 bg-red-600 text-white hover:bg-red-700 hover:text-white": type === "danger"
|
|
7057
|
-
}, className), "aria-disabled": isDisabled },
|
|
7092
|
+
}, className), "aria-disabled": isDisabled }, props),
|
|
7093
|
+
children,
|
|
7058
7094
|
iconObj &&
|
|
7059
7095
|
(isLoading ? (React__default.createElement(Loader, { classes: "h-5 w-5 border-2" })) : (React__default.createElement(React__default.Fragment, null, iconObj))),
|
|
7060
7096
|
icon &&
|
|
@@ -7064,98 +7100,78 @@ var Button = function (_a, ref) {
|
|
|
7064
7100
|
};
|
|
7065
7101
|
var _Button = forwardRef(Button);
|
|
7066
7102
|
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
let l$2=(e,f)=>{s$5.isServer?useEffect(e,f):useLayoutEffect(e,f);};
|
|
7070
|
-
|
|
7071
|
-
function s$4(e){let r=useRef(e);return l$2(()=>{r.current=e;},[e]),r}
|
|
7072
|
-
|
|
7073
|
-
function i$3(e,o){let[u,t]=useState(e),r=s$4(e);return l$2(()=>t(r.current),[r,t,...o]),u}
|
|
7103
|
+
let t$2=typeof window!="undefined"?useLayoutEffect:useEffect;
|
|
7074
7104
|
|
|
7075
|
-
function
|
|
7105
|
+
function s$5(e){let r=useRef(e);return t$2(()=>{r.current=e;},[e]),r}
|
|
7076
7106
|
|
|
7077
|
-
function
|
|
7107
|
+
function i$2(e,o){let[u,t]=useState(e),r=s$5(e);return t$2(()=>t(r.current),[r,t,...o]),u}
|
|
7078
7108
|
|
|
7079
|
-
function
|
|
7109
|
+
function o$3(){let a=[],i=[],n={enqueue(e){i.push(e);},addEventListener(e,t,r,s){return e.addEventListener(t,r,s),n.add(()=>e.removeEventListener(t,r,s))},requestAnimationFrame(...e){let t=requestAnimationFrame(...e);return n.add(()=>cancelAnimationFrame(t))},nextFrame(...e){return n.requestAnimationFrame(()=>n.requestAnimationFrame(...e))},setTimeout(...e){let t=setTimeout(...e);return n.add(()=>clearTimeout(t))},add(e){return a.push(e),()=>{let t=a.indexOf(e);if(t>=0){let[r]=a.splice(t,1);r();}}},dispose(){for(let e of a.splice(0))e();},async workQueue(){for(let e of i.splice(0))await e();}};return n}
|
|
7080
7110
|
|
|
7081
|
-
|
|
7111
|
+
function p$5(){let[e]=useState(o$3);return useEffect(()=>()=>e.dispose(),[e]),e}
|
|
7082
7112
|
|
|
7083
|
-
|
|
7113
|
+
let o$2=function(t){let e=s$5(t);return React__default.useCallback((...r)=>e.current(...r),[e])};
|
|
7084
7114
|
|
|
7085
|
-
|
|
7115
|
+
let r$2={serverHandoffComplete:!1};function a$2(){let[e,f]=useState(r$2.serverHandoffComplete);return useEffect(()=>{e!==!0&&f(!0);},[e]),useEffect(()=>{r$2.serverHandoffComplete===!1&&(r$2.serverHandoffComplete=!0);},[]),e}
|
|
7086
7116
|
|
|
7087
|
-
|
|
7117
|
+
var u$4;let l$1=0;function r$1(){return ++l$1}let I=(u$4=React__default.useId)!=null?u$4:function(){let n=a$2(),[e,o]=React__default.useState(n?r$1:null);return t$2(()=>{e===null&&o(r$1());},[e]),e!=null?""+e:void 0};
|
|
7088
7118
|
|
|
7089
|
-
function
|
|
7119
|
+
function t$1(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(o=>setTimeout(()=>{throw o}));}
|
|
7090
7120
|
|
|
7091
|
-
|
|
7121
|
+
function s$4(e,r,n){let o=s$5(r);useEffect(()=>{function t(i){o.current(i);}return window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)},[e,n]);}
|
|
7092
7122
|
|
|
7093
|
-
function
|
|
7123
|
+
var C$3=(n=>(n[n.None=1]="None",n[n.IgnoreScrollbars=2]="IgnoreScrollbars",n))(C$3||{});function w$2(c,f,n=1){let i=useRef(!1),l=o$2(r=>{if(i.current)return;i.current=!0,t$1(()=>{i.current=!1;});let a=function t(e){return typeof e=="function"?t(e()):Array.isArray(e)||e instanceof Set?e:[e]}(c),o=r.target;if(!!o.ownerDocument.documentElement.contains(o)){if((n&2)===2){let t=20,e=o.ownerDocument.documentElement;if(r.clientX>e.clientWidth-t||r.clientX<t||r.clientY>e.clientHeight-t||r.clientY<t)return}for(let t of a){if(t===null)continue;let e=t instanceof HTMLElement?t:t.current;if(e!=null&&e.contains(o))return}return f(r,o)}});s$4("pointerdown",l),s$4("mousedown",l);}
|
|
7094
7124
|
|
|
7095
|
-
function
|
|
7125
|
+
function i$1(t){var n;if(t.type)return t.type;let e=(n=t.as)!=null?n:"button";if(typeof e=="string"&&e.toLowerCase()==="button")return "button"}function s$3(t,e){let[n,u]=useState(()=>i$1(t));return t$2(()=>{u(i$1(t));},[t.type,t.as]),t$2(()=>{n||!e.current||e.current instanceof HTMLButtonElement&&!e.current.hasAttribute("type")&&u("button");},[n,e]),n}
|
|
7096
7126
|
|
|
7097
|
-
function
|
|
7127
|
+
let u$3=Symbol();function y$1(...t){let n=useRef(t);useEffect(()=>{n.current=t;},[t]);let c=o$2(e=>{for(let o of n.current)o!=null&&(typeof o=="function"?o(e):o.current=e);});return t.every(e=>e==null||(e==null?void 0:e[u$3]))?void 0:c}
|
|
7098
7128
|
|
|
7099
|
-
function
|
|
7129
|
+
function t(n){return typeof window=="undefined"?null:n instanceof Node?n.ownerDocument:n!=null&&n.hasOwnProperty("current")&&n.current instanceof Node?n.current.ownerDocument:document}
|
|
7100
7130
|
|
|
7101
|
-
|
|
7131
|
+
function F$2({container:e,accept:t$1,walk:r,enabled:c=!0}){let o=useRef(t$1),l=useRef(r);useEffect(()=>{o.current=t$1,l.current=r;},[t$1,r]),t$2(()=>{if(!e||!c)return;let n=t(e);if(!n)return;let f=o.current,p=l.current,d=Object.assign(i=>f(i),{acceptNode:f}),u=n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,d,!1);for(;u.nextNode();)p(u.currentNode);},[e,c,o,l]);}
|
|
7102
7132
|
|
|
7103
|
-
function
|
|
7133
|
+
function f$4(r){throw new Error("Unexpected object: "+r)}var a$1=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(a$1||{});function x$1(r,n){let t=n.resolveItems();if(t.length<=0)return null;let l=n.resolveActiveIndex(),s=l!=null?l:-1,d=(()=>{switch(r.focus){case 0:return t.findIndex(e=>!n.resolveDisabled(e));case 1:{let e=t.slice().reverse().findIndex((i,c,u)=>s!==-1&&u.length-c-1>=s?!1:!n.resolveDisabled(i));return e===-1?e:t.length-1-e}case 2:return t.findIndex((e,i)=>i<=s?!1:!n.resolveDisabled(e));case 3:{let e=t.slice().reverse().findIndex(i=>!n.resolveDisabled(i));return e===-1?e:t.length-1-e}case 4:return t.findIndex(e=>n.resolveId(e)===r.id);case 5:return null;default:f$4(r);}})();return d===-1?l:d}
|
|
7104
7134
|
|
|
7105
|
-
function
|
|
7135
|
+
function u$2(r,n,...a){if(r in n){let e=n[r];return typeof e=="function"?e(...a):e}let t=new Error(`Tried to handle "${r}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map(e=>`"${e}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,u$2),t}
|
|
7106
7136
|
|
|
7107
|
-
function e$1(
|
|
7108
|
-
|
|
7109
|
-
var S$1=(a=>(a[a.None=0]="None",a[a.RenderStrategy=1]="RenderStrategy",a[a.Static=2]="Static",a))(S$1||{}),j=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(j||{});function X({ourProps:r,theirProps:t,slot:e,defaultTag:a,features:s,visible:n=!0,name:f}){let o=N(t,r);if(n)return c$3(o,e,a,f);let u=s!=null?s:0;if(u&2){let{static:l=!1,...p}=o;if(l)return c$3(p,e,a,f)}if(u&1){let{unmount:l=!0,...p}=o;return u$3(l?0:1,{[0](){return null},[1](){return c$3({...p,hidden:!0,style:{display:"none"}},e,a,f)}})}return c$3(o,e,a,f)}function c$3(r,t={},e,a){let{as:s=e,children:n,refName:f="ref",...o}=g$1(r,["unmount","static"]),u=r.ref!==void 0?{[f]:r.ref}:{},l=typeof n=="function"?n(t):n;"className"in o&&o.className&&typeof o.className=="function"&&(o.className=o.className(t));let p={};if(t){let i=!1,m=[];for(let[y,d]of Object.entries(t))typeof d=="boolean"&&(i=!0),d===!0&&m.push(y);i&&(p["data-headlessui-state"]=m.join(" "));}if(s===Fragment&&Object.keys(R(o)).length>0){if(!isValidElement(l)||Array.isArray(l)&&l.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${a} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(o).map(d=>` - ${d}`).join(`
|
|
7110
|
-
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(d=>` - ${d}`).join(`
|
|
7137
|
+
var x=(n=>(n[n.None=0]="None",n[n.RenderStrategy=1]="RenderStrategy",n[n.Static=2]="Static",n))(x||{}),R=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(R||{});function _({ourProps:r,theirProps:t,slot:e,defaultTag:n,features:a,visible:s=!0,name:l}){let o=y(t,r);if(s)return f$3(o,e,n,l);let d=a!=null?a:0;if(d&2){let{static:i=!1,...u}=o;if(i)return f$3(u,e,n,l)}if(d&1){let{unmount:i=!0,...u}=o;return u$2(i?0:1,{[0](){return null},[1](){return f$3({...u,hidden:!0,style:{display:"none"}},e,n,l)}})}return f$3(o,e,n,l)}function f$3(r,t={},e,n){let{as:a=e,children:s,refName:l="ref",...o}=m(r,["unmount","static"]),d=r.ref!==void 0?{[l]:r.ref}:{},i=typeof s=="function"?s(t):s;o.className&&typeof o.className=="function"&&(o.className=o.className(t));let u={};if(a===Fragment&&Object.keys(g$1(o)).length>0){if(!isValidElement(i)||Array.isArray(i)&&i.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(o).map(p=>` - ${p}`).join(`
|
|
7138
|
+
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
|
|
7111
7139
|
`)].join(`
|
|
7112
|
-
`));
|
|
7113
|
-
|
|
7114
|
-
function r(n){let e=n.parentElement,l=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(l=e),e=e.parentElement;let t=(e==null?void 0:e.getAttribute("disabled"))==="";return t&&i$1(l)?!1:t}function i$1(n){if(!n)return !1;let e=n.previousElementSibling;for(;e!==null;){if(e instanceof HTMLLegendElement)return !1;e=e.previousElementSibling;}return !0}
|
|
7115
|
-
|
|
7116
|
-
function e(n={},r=null,t=[]){for(let[i,o]of Object.entries(n))f$2(t,s$1(r,i),o);return t}function s$1(n,r){return n?n+"["+r+"]":r}function f$2(n,r,t){if(Array.isArray(t))for(let[i,o]of t.entries())f$2(n,s$1(r,i.toString()),o);else t instanceof Date?n.push([r,t.toISOString()]):typeof t=="boolean"?n.push([r,t?"1":"0"]):typeof t=="string"?n.push([r,t]):typeof t=="number"?n.push([r,`${t}`]):t==null?n.push([r,""]):e(t,r,n);}function p$1(n){var t;let r=(t=n==null?void 0:n.form)!=null?t:n.closest("form");if(r){for(let i of r.elements)if(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image"){i.click();return}}}
|
|
7117
|
-
|
|
7118
|
-
let a$1="div";var p=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(p||{});function s(t,o){let{features:n=1,...e}=t,d={ref:o,"aria-hidden":(n&2)===2?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(n&4)===4&&(n&2)!==2&&{display:"none"}}};return X({ourProps:d,theirProps:e,slot:{},defaultTag:a$1,name:"Hidden"})}let c$2=D$1(s);
|
|
7140
|
+
`));return cloneElement(i,Object.assign({},y(i.props,g$1(m(o,["ref"]))),u,d))}return createElement(a,Object.assign({},m(o,["ref"]),a!==Fragment&&d,a!==Fragment&&u),i)}function y(...r){if(r.length===0)return {};if(r.length===1)return r[0];let t={},e={};for(let a of r)for(let s in a)s.startsWith("on")&&typeof a[s]=="function"?((e[s])!=null||(e[s]=[]),e[s].push(a[s])):t[s]=a[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(e).map(a=>[a,void 0])));for(let a in e)Object.assign(t,{[a](s,...l){let o=e[a];for(let d of o){if(s.defaultPrevented)return;d(s,...l);}}});return t}function H$1(r){var t;return Object.assign(forwardRef(r),{displayName:(t=r.displayName)!=null?t:r.name})}function g$1(r){let t=Object.assign({},r);for(let e in t)t[e]===void 0&&delete t[e];return t}function m(r,t=[]){let e=Object.assign({},r);for(let n of t)n in e&&delete e[n];return e}
|
|
7119
7141
|
|
|
7120
|
-
let
|
|
7142
|
+
function r(n){let e=n.parentElement,l=null;for(;e&&!(e instanceof HTMLFieldSetElement);)e instanceof HTMLLegendElement&&(l=e),e=e.parentElement;let t=(e==null?void 0:e.getAttribute("disabled"))==="";return t&&i(l)?!1:t}function i(n){if(!n)return !1;let e=n.previousElementSibling;for(;e!==null;){if(e instanceof HTMLLegendElement)return !1;e=e.previousElementSibling;}return !0}
|
|
7121
7143
|
|
|
7122
|
-
|
|
7144
|
+
function e(n={},r=null,t=[]){for(let[i,o]of Object.entries(n))f$2(t,s$2(r,i),o);return t}function s$2(n,r){return n?n+"["+r+"]":r}function f$2(n,r,t){if(Array.isArray(t))for(let[i,o]of t.entries())f$2(n,s$2(r,i.toString()),o);else t instanceof Date?n.push([r,t.toISOString()]):typeof t=="boolean"?n.push([r,t?"1":"0"]):typeof t=="string"?n.push([r,t]):typeof t=="number"?n.push([r,`${t}`]):t==null?n.push([r,""]):e(t,r,n);}function p$4(n){var t;let r=(t=n==null?void 0:n.form)!=null?t:n.closest("form");if(!!r){for(let i of r.elements)if(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image"){i.click();return}}}
|
|
7123
7145
|
|
|
7124
|
-
|
|
7146
|
+
let f$1=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var p$3=(o=>(o[o.First=1]="First",o[o.Previous=2]="Previous",o[o.Next=4]="Next",o[o.Last=8]="Last",o[o.WrapAround=16]="WrapAround",o[o.NoScroll=32]="NoScroll",o))(p$3||{}),L$1=(n=>(n[n.Error=0]="Error",n[n.Overflow=1]="Overflow",n[n.Success=2]="Success",n[n.Underflow=3]="Underflow",n))(L$1||{}),N$3=(t=>(t[t.Previous=-1]="Previous",t[t.Next=1]="Next",t))(N$3||{});var b=(t=>(t[t.Strict=0]="Strict",t[t.Loose=1]="Loose",t))(b||{});function S$1(e,r=0){var t$1;return e===((t$1=t(e))==null?void 0:t$1.body)?!1:u$2(r,{[0](){return e.matches(f$1)},[1](){let l=e;for(;l!==null;){if(l.matches(f$1))return !0;l=l.parentElement;}return !1}})}function v$1(e,r=t=>t){return e.slice().sort((t,l)=>{let n=r(t),i=r(l);if(n===null||i===null)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}
|
|
7125
7147
|
|
|
7126
|
-
|
|
7148
|
+
let a="div";var s$1=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(s$1||{});let h$2=H$1(function(t,o){let{features:e=1,...r}=t,d={ref:o,"aria-hidden":(e&2)===2?!0:void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(e&4)===4&&(e&2)!==2&&{display:"none"}}};return _({ourProps:d,theirProps:r,slot:{},defaultTag:a,name:"Hidden"})});
|
|
7127
7149
|
|
|
7128
|
-
|
|
7150
|
+
let o$1=createContext(null);o$1.displayName="OpenClosedContext";var p$2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(p$2||{});function s(){return useContext(o$1)}function C$2({value:t,children:n}){return React__default.createElement(o$1.Provider,{value:t},n)}
|
|
7129
7151
|
|
|
7130
|
-
|
|
7152
|
+
var o=(r=>(r.Space=" ",r.Enter="Enter",r.Escape="Escape",r.Backspace="Backspace",r.Delete="Delete",r.ArrowLeft="ArrowLeft",r.ArrowUp="ArrowUp",r.ArrowRight="ArrowRight",r.ArrowDown="ArrowDown",r.Home="Home",r.End="End",r.PageUp="PageUp",r.PageDown="PageDown",r.Tab="Tab",r))(o||{});
|
|
7131
7153
|
|
|
7132
|
-
var ke=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(ke||{}),we=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(we||{}),Ue=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Ue||{}),He$1=(n=>(n[n.OpenCombobox=0]="OpenCombobox",n[n.CloseCombobox=1]="CloseCombobox",n[n.GoToOption=2]="GoToOption",n[n.RegisterOption=3]="RegisterOption",n[n.UnregisterOption=4]="UnregisterOption",n[n.RegisterLabel=5]="RegisterLabel",n))(He$1||{});function ae(t,l=e=>e){let e=t.activeOptionIndex!==null?t.options[t.activeOptionIndex]:null,r=I$1(l(t.options.slice()),b=>b.dataRef.current.domRef.current),a=e?r.indexOf(e):null;return a===-1&&(a=null),{options:r,activeOptionIndex:a}}let Ne$1={[1](t){var l;return (l=t.dataRef.current)!=null&&l.disabled||t.comboboxState===1?t:{...t,activeOptionIndex:null,comboboxState:1}},[0](t){var e;if((e=t.dataRef.current)!=null&&e.disabled||t.comboboxState===0)return t;let l=t.activeOptionIndex;if(t.dataRef.current){let{isSelected:r}=t.dataRef.current,a=t.options.findIndex(b=>r(b.dataRef.current.value));a!==-1&&(l=a);}return {...t,comboboxState:0,activeOptionIndex:l}},[2](t,l){var a,b,n,d;if((a=t.dataRef.current)!=null&&a.disabled||(b=t.dataRef.current)!=null&&b.optionsRef.current&&!((n=t.dataRef.current)!=null&&n.optionsPropsRef.current.static)&&t.comboboxState===1)return t;let e=ae(t);if(e.activeOptionIndex===null){let o=e.options.findIndex(i=>!i.dataRef.current.disabled);o!==-1&&(e.activeOptionIndex=o);}let r=x$1(l,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:o=>o.id,resolveDisabled:o=>o.dataRef.current.disabled});return {...t,...e,activeOptionIndex:r,activationTrigger:(d=l.trigger)!=null?d:1}},[3]:(t,l)=>{var b,n;let e={id:l.id,dataRef:l.dataRef},r=ae(t,d=>[...d,e]);t.activeOptionIndex===null&&(b=t.dataRef.current)!=null&&b.isSelected(l.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(e));let a={...t,...r,activationTrigger:1};return (n=t.dataRef.current)!=null&&n.__demoMode&&t.dataRef.current.value===void 0&&(a.activeOptionIndex=0),a},[4]:(t,l)=>{let e=ae(t,r=>{let a=r.findIndex(b=>b.id===l.id);return a!==-1&&r.splice(a,1),r});return {...t,...e,activationTrigger:1}},[5]:(t,l)=>({...t,labelId:l.id})},le=createContext(null);le.displayName="ComboboxActionsContext";function q(t){let l=useContext(le);if(l===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,q),e}return l}let ie$1=createContext(null);ie$1.displayName="ComboboxDataContext";function G(t){let l=useContext(ie$1);if(l===null){let e=new Error(`<${t} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(e,G),e}return l}function Ge$1(t,l){return u$3(l.type,Ne$1,t,l)}let Xe=Fragment;function je(t,l){let{value:e$1,defaultValue:r,onChange:a,form:b,name:n,by:d=(p,m)=>p===m,disabled:o=!1,__demoMode:i=!1,nullable:E=!1,multiple:f=!1,...A}=t,[T$1=f?[]:void 0,g]=T(e$1,a,r),[c,x]=useReducer(Ge$1,{dataRef:createRef(),comboboxState:i?0:1,options:[],activeOptionIndex:null,activationTrigger:1,labelId:null}),L=useRef(!1),D=useRef({static:!1,hold:!1}),B=useRef(null),k=useRef(null),w=useRef(null),X$1=useRef(null),F=o$3(typeof d=="string"?(p,m)=>{let R=d;return (p==null?void 0:p[R])===(m==null?void 0:m[R])}:d),M=useCallback(p=>u$3(s.mode,{[1]:()=>T$1.some(m=>F(m,p)),[0]:()=>F(T$1,p)}),[T$1]),s=useMemo(()=>({...c,optionsPropsRef:D,labelRef:B,inputRef:k,buttonRef:w,optionsRef:X$1,value:T$1,defaultValue:r,disabled:o,mode:f?1:0,get activeOptionIndex(){if(L.current&&c.activeOptionIndex===null&&c.options.length>0){let p=c.options.findIndex(m=>!m.dataRef.current.disabled);if(p!==-1)return p}return c.activeOptionIndex},compare:F,isSelected:M,nullable:E,__demoMode:i}),[T$1,r,o,f,E,i,c]),O=useRef(s.activeOptionIndex!==null?s.options[s.activeOptionIndex]:null);useEffect(()=>{let p=s.activeOptionIndex!==null?s.options[s.activeOptionIndex]:null;O.current!==p&&(O.current=p);}),l$2(()=>{c.dataRef.current=s;},[s]),H$1([s.buttonRef,s.inputRef,s.optionsRef],()=>te.closeCombobox(),s.comboboxState===0);let S=useMemo(()=>({open:s.comboboxState===0,disabled:o,activeIndex:s.activeOptionIndex,activeOption:s.activeOptionIndex===null?null:s.options[s.activeOptionIndex].dataRef.current.value,value:T$1}),[s,o,T$1]),u=o$3(p=>{let m=s.options.find(R=>R.id===p);m&&J(m.dataRef.current.value);}),_=o$3(()=>{if(s.activeOptionIndex!==null){let{dataRef:p,id:m}=s.options[s.activeOptionIndex];J(p.current.value),te.goToOption(a$2.Specific,m);}}),I=o$3(()=>{x({type:0}),L.current=!0;}),j=o$3(()=>{x({type:1}),L.current=!1;}),Q=o$3((p,m,R)=>(L.current=!1,p===a$2.Specific?x({type:2,focus:a$2.Specific,id:m,trigger:R}):x({type:2,focus:p,trigger:R}))),Y=o$3((p,m)=>(x({type:3,id:p,dataRef:m}),()=>{var R;((R=O.current)==null?void 0:R.id)===p&&(L.current=!0),x({type:4,id:p});})),Z=o$3(p=>(x({type:5,id:p}),()=>x({type:5,id:null}))),J=o$3(p=>u$3(s.mode,{[0](){return g==null?void 0:g(p)},[1](){let m=s.value.slice(),R=m.findIndex(K=>F(K,p));return R===-1?m.push(p):m.splice(R,1),g==null?void 0:g(m)}})),te=useMemo(()=>({onChange:J,registerOption:Y,registerLabel:Z,goToOption:Q,closeCombobox:j,openCombobox:I,selectActiveOption:_,selectOption:u}),[]),Te=l===null?{}:{ref:l},z=useRef(null),me=p$2();return useEffect(()=>{z.current&&r!==void 0&&me.addEventListener(z.current,"reset",()=>{J(r);});},[z,J]),React__default.createElement(le.Provider,{value:te},React__default.createElement(ie$1.Provider,{value:s},React__default.createElement(c$1,{value:u$3(s.comboboxState,{[0]:d$3.Open,[1]:d$3.Closed})},n!=null&&T$1!=null&&e({[n]:T$1}).map(([p$1,m],R$1)=>React__default.createElement(c$2,{features:p.Hidden,ref:R$1===0?K=>{var ue;z.current=(ue=K==null?void 0:K.closest("form"))!=null?ue:null;}:void 0,...R({key:p$1,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,name:p$1,value:m})})),X({ourProps:Te,theirProps:A,slot:S,defaultTag:Xe,name:"Combobox"}))))}let Je="input";function Ke(t,l){var M,s,O,S;let e=I$2(),{id:r=`headlessui-combobox-input-${e}`,onChange:a,displayValue:b,type:n="text",...d}=t,o=G("Combobox.Input"),i=q("Combobox.Input"),E=y$3(o.inputRef,l),f=useRef(!1),A=p$2(),T=function(){var u;return typeof b=="function"&&o.value!==void 0?(u=b(o.value))!=null?u:"":typeof o.value=="string"?o.value:""}();m(([u,_],[I,j])=>{f.current||o.inputRef.current&&(j===0&&_===1||u!==I)&&(o.inputRef.current.value=u);},[T,o.comboboxState]),m(([u],[_])=>{if(u===0&&_===1){let I=o.inputRef.current;if(!I)return;let j=I.value,{selectionStart:Q,selectionEnd:Y,selectionDirection:Z}=I;I.value="",I.value=j,Z!==null?I.setSelectionRange(Q,Y,Z):I.setSelectionRange(Q,Y);}},[o.comboboxState]);let g=useRef(!1),c=useRef(null),x=o$3(()=>{g.current=!0;}),L=o$3(()=>{A.nextFrame(()=>{g.current=!1,c.current&&(i.openCombobox(),a==null||a(c.current),c.current=null);});}),D=o$3(u=>{switch(f.current=!0,u.key){case o$1.Backspace:case o$1.Delete:if(o.mode!==0||!o.nullable)return;let _=u.currentTarget;A.requestAnimationFrame(()=>{_.value===""&&(i.onChange(null),o.optionsRef.current&&(o.optionsRef.current.scrollTop=0),i.goToOption(a$2.Nothing));});break;case o$1.Enter:if(f.current=!1,o.comboboxState!==0||g.current)return;if(u.preventDefault(),u.stopPropagation(),o.activeOptionIndex===null){i.closeCombobox();return}i.selectActiveOption(),o.mode===0&&i.closeCombobox();break;case o$1.ArrowDown:return f.current=!1,u.preventDefault(),u.stopPropagation(),u$3(o.comboboxState,{[0]:()=>{i.goToOption(a$2.Next);},[1]:()=>{i.openCombobox();}});case o$1.ArrowUp:return f.current=!1,u.preventDefault(),u.stopPropagation(),u$3(o.comboboxState,{[0]:()=>{i.goToOption(a$2.Previous);},[1]:()=>{i.openCombobox(),A.nextFrame(()=>{o.value||i.goToOption(a$2.Last);});}});case o$1.Home:if(u.shiftKey)break;return f.current=!1,u.preventDefault(),u.stopPropagation(),i.goToOption(a$2.First);case o$1.PageUp:return f.current=!1,u.preventDefault(),u.stopPropagation(),i.goToOption(a$2.First);case o$1.End:if(u.shiftKey)break;return f.current=!1,u.preventDefault(),u.stopPropagation(),i.goToOption(a$2.Last);case o$1.PageDown:return f.current=!1,u.preventDefault(),u.stopPropagation(),i.goToOption(a$2.Last);case o$1.Escape:return f.current=!1,o.comboboxState!==0?void 0:(u.preventDefault(),o.optionsRef.current&&!o.optionsPropsRef.current.static&&u.stopPropagation(),i.closeCombobox());case o$1.Tab:if(f.current=!1,o.comboboxState!==0)return;o.mode===0&&i.selectActiveOption(),i.closeCombobox();break}}),B=o$3(u=>{if(g.current){c.current=u;return}i.openCombobox(),a==null||a(u);}),k=o$3(()=>{f.current=!1;}),w=i$3(()=>{if(o.labelId)return [o.labelId].join(" ")},[o.labelId]),X$1=useMemo(()=>({open:o.comboboxState===0,disabled:o.disabled}),[o]),F={ref:E,id:r,role:"combobox",type:n,"aria-controls":(M=o.optionsRef.current)==null?void 0:M.id,"aria-expanded":o.disabled?void 0:o.comboboxState===0,"aria-activedescendant":o.activeOptionIndex===null||(s=o.options[o.activeOptionIndex])==null?void 0:s.id,"aria-labelledby":w,"aria-autocomplete":"list",defaultValue:(S=(O=t.defaultValue)!=null?O:o.defaultValue!==void 0?b==null?void 0:b(o.defaultValue):null)!=null?S:o.defaultValue,disabled:o.disabled,onCompositionStart:x,onCompositionEnd:L,onKeyDown:D,onChange:B,onBlur:k};return X({ourProps:F,theirProps:d,slot:X$1,defaultTag:Je,name:"Combobox.Input"})}let We="button";function $e$1(t,l){var g;let e=G("Combobox.Button"),r$1=q("Combobox.Button"),a=y$3(e.buttonRef,l),b=I$2(),{id:n=`headlessui-combobox-button-${b}`,...d}=t,o=p$2(),i=o$3(c=>{switch(c.key){case o$1.ArrowDown:return c.preventDefault(),c.stopPropagation(),e.comboboxState===1&&r$1.openCombobox(),o.nextFrame(()=>{var x;return (x=e.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case o$1.ArrowUp:return c.preventDefault(),c.stopPropagation(),e.comboboxState===1&&(r$1.openCombobox(),o.nextFrame(()=>{e.value||r$1.goToOption(a$2.Last);})),o.nextFrame(()=>{var x;return (x=e.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});case o$1.Escape:return e.comboboxState!==0?void 0:(c.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&c.stopPropagation(),r$1.closeCombobox(),o.nextFrame(()=>{var x;return (x=e.inputRef.current)==null?void 0:x.focus({preventScroll:!0})}));default:return}}),E=o$3(c=>{if(r(c.currentTarget))return c.preventDefault();e.comboboxState===0?r$1.closeCombobox():(c.preventDefault(),r$1.openCombobox()),o.nextFrame(()=>{var x;return (x=e.inputRef.current)==null?void 0:x.focus({preventScroll:!0})});}),f=i$3(()=>{if(e.labelId)return [e.labelId,n].join(" ")},[e.labelId,n]),A=useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled,value:e.value}),[e]),T={ref:a,id:n,type:s$2(t,e.buttonRef),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":(g=e.optionsRef.current)==null?void 0:g.id,"aria-expanded":e.disabled?void 0:e.comboboxState===0,"aria-labelledby":f,disabled:e.disabled,onClick:E,onKeyDown:i};return X({ourProps:T,theirProps:d,slot:A,defaultTag:We,name:"Combobox.Button"})}let qe="label";function Qe(t,l){let e=I$2(),{id:r=`headlessui-combobox-label-${e}`,...a}=t,b=G("Combobox.Label"),n=q("Combobox.Label"),d=y$3(b.labelRef,l);l$2(()=>n.registerLabel(r),[r]);let o=o$3(()=>{var f;return (f=b.inputRef.current)==null?void 0:f.focus({preventScroll:!0})}),i=useMemo(()=>({open:b.comboboxState===0,disabled:b.disabled}),[b]);return X({ourProps:{ref:d,id:r,onClick:o},theirProps:a,slot:i,defaultTag:qe,name:"Combobox.Label"})}let Ye="ul",Ze=S$1.RenderStrategy|S$1.Static;function ze(t,l){let e=I$2(),{id:r=`headlessui-combobox-options-${e}`,hold:a=!1,...b}=t,n=G("Combobox.Options"),d=y$3(n.optionsRef,l),o=C(),i=(()=>o!==null?(o&d$3.Open)===d$3.Open:n.comboboxState===0)();l$2(()=>{var T;n.optionsPropsRef.current.static=(T=t.static)!=null?T:!1;},[n.optionsPropsRef,t.static]),l$2(()=>{n.optionsPropsRef.current.hold=a;},[n.optionsPropsRef,a]),F$1({container:n.optionsRef.current,enabled:n.comboboxState===0,accept(T){return T.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:T.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(T){T.setAttribute("role","none");}});let E=i$3(()=>{var T,g;return (g=n.labelId)!=null?g:(T=n.buttonRef.current)==null?void 0:T.id},[n.labelId,n.buttonRef.current]),f=useMemo(()=>({open:n.comboboxState===0}),[n]),A={"aria-labelledby":E,role:"listbox","aria-multiselectable":n.mode===1?!0:void 0,id:r,ref:d};return X({ourProps:A,theirProps:b,slot:f,defaultTag:Ye,features:Ze,visible:i,name:"Combobox.Options"})}let eo="li";function oo(t,l){var M,s;let e=I$2(),{id:r=`headlessui-combobox-option-${e}`,disabled:a=!1,value:b,...n}=t,d=G("Combobox.Option"),o=q("Combobox.Option"),i=d.activeOptionIndex!==null?d.options[d.activeOptionIndex].id===r:!1,E=d.isSelected(b),f=useRef(null),A=s$4({disabled:a,value:b,domRef:f,textValue:(s=(M=f.current)==null?void 0:M.textContent)==null?void 0:s.toLowerCase()}),T=y$3(l,f),g=o$3(()=>o.selectOption(r));l$2(()=>o.registerOption(r,A),[A,r]);let c=useRef(!d.__demoMode);l$2(()=>{if(!d.__demoMode)return;let O=o$4();return O.requestAnimationFrame(()=>{c.current=!0;}),O.dispose},[]),l$2(()=>{if(d.comboboxState!==0||!i||!c.current||d.activationTrigger===0)return;let O=o$4();return O.requestAnimationFrame(()=>{var S,u;(u=(S=f.current)==null?void 0:S.scrollIntoView)==null||u.call(S,{block:"nearest"});}),O.dispose},[f,i,d.comboboxState,d.activationTrigger,d.activeOptionIndex]);let x=o$3(O=>{if(a)return O.preventDefault();g(),d.mode===0&&o.closeCombobox(),n$1()||requestAnimationFrame(()=>{var S;return (S=d.inputRef.current)==null?void 0:S.focus()});}),L=o$3(()=>{if(a)return o.goToOption(a$2.Nothing);o.goToOption(a$2.Specific,r);}),D=u$1(),B=o$3(O=>D.update(O)),k=o$3(O=>{D.wasMoved(O)&&(a||i||o.goToOption(a$2.Specific,r,0));}),w=o$3(O=>{D.wasMoved(O)&&(a||i&&(d.optionsPropsRef.current.hold||o.goToOption(a$2.Nothing)));}),X$1=useMemo(()=>({active:i,selected:E,disabled:a}),[i,E,a]);return X({ourProps:{id:r,ref:T,role:"option",tabIndex:a===!0?void 0:-1,"aria-disabled":a===!0?!0:void 0,"aria-selected":E,disabled:void 0,onClick:x,onFocus:L,onPointerEnter:B,onMouseEnter:B,onPointerMove:k,onMouseMove:k,onPointerLeave:w,onMouseLeave:w},theirProps:n,slot:X$1,defaultTag:eo,name:"Combobox.Option"})}let to=D$1(je),no=D$1($e$1),ro=D$1(Ke),ao=D$1(Qe),lo=D$1(ze),io=D$1(oo),Wo=Object.assign(to,{Input:ro,Button:no,Label:ao,Options:lo,Option:io});
|
|
7154
|
+
var Se$1=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(Se$1||{}),Pe=(o=>(o[o.Single=0]="Single",o[o.Multi=1]="Multi",o))(Pe||{}),Ae=(o=>(o[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o))(Ae||{}),Ie$1=(t=>(t[t.OpenCombobox=0]="OpenCombobox",t[t.CloseCombobox=1]="CloseCombobox",t[t.GoToOption=2]="GoToOption",t[t.RegisterOption=3]="RegisterOption",t[t.UnregisterOption=4]="UnregisterOption",t))(Ie$1||{});function X(n,a=o=>o){let o=n.activeOptionIndex!==null?n.options[n.activeOptionIndex]:null,e=v$1(a(n.options.slice()),t=>t.dataRef.current.domRef.current),i=o?e.indexOf(o):null;return i===-1&&(i=null),{options:e,activeOptionIndex:i}}let De={[1](n){return n.dataRef.current.disabled||n.comboboxState===1?n:{...n,activeOptionIndex:null,comboboxState:1}},[0](n){if(n.dataRef.current.disabled||n.comboboxState===0)return n;let a=n.activeOptionIndex,{isSelected:o}=n.dataRef.current,e=n.options.findIndex(i=>o(i.dataRef.current.value));return e!==-1&&(a=e),{...n,comboboxState:0,activeOptionIndex:a}},[2](n,a){var i;if(n.dataRef.current.disabled||n.dataRef.current.optionsRef.current&&!n.dataRef.current.optionsPropsRef.current.static&&n.comboboxState===1)return n;let o=X(n);if(o.activeOptionIndex===null){let t=o.options.findIndex(p=>!p.dataRef.current.disabled);t!==-1&&(o.activeOptionIndex=t);}let e=x$1(a,{resolveItems:()=>o.options,resolveActiveIndex:()=>o.activeOptionIndex,resolveId:t=>t.id,resolveDisabled:t=>t.dataRef.current.disabled});return {...n,...o,activeOptionIndex:e,activationTrigger:(i=a.trigger)!=null?i:1}},[3]:(n,a)=>{let o={id:a.id,dataRef:a.dataRef},e=X(n,t=>[...t,o]);n.activeOptionIndex===null&&n.dataRef.current.isSelected(a.dataRef.current.value)&&(e.activeOptionIndex=e.options.indexOf(o));let i={...n,...e,activationTrigger:1};return n.dataRef.current.__demoMode&&n.dataRef.current.value===void 0&&(i.activeOptionIndex=0),i},[4]:(n,a)=>{let o=X(n,e=>{let i=e.findIndex(t=>t.id===a.id);return i!==-1&&e.splice(i,1),e});return {...n,...o,activationTrigger:1}}},z=createContext(null);z.displayName="ComboboxActionsContext";function N$2(n){let a=useContext(z);if(a===null){let o=new Error(`<${n} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,N$2),o}return a}let J=createContext(null);J.displayName="ComboboxDataContext";function k$2(n){let a=useContext(J);if(a===null){let o=new Error(`<${n} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,k$2),o}return a}function Ee$1(n,a){return u$2(a.type,De,n,a)}let he=Fragment,Le=H$1(function(a,o){let{name:e$1,value:i,onChange:t,disabled:p=!1,__demoMode:d=!1,nullable:r=!1,multiple:u=!1,...C}=a,[f,R]=useReducer(Ee$1,{dataRef:createRef(),comboboxState:d?0:1,options:[],activeOptionIndex:null,activationTrigger:1}),g=useRef(!1),x=useRef({static:!1,hold:!1}),c=useRef({displayValue:void 0}),m=useRef(null),U=useRef(null),M=useRef(null),h=useRef(null),D=o$2((s,b)=>s===b),T=useCallback(s=>u$2(l.mode,{[1]:()=>i.some(b=>D(b,s)),[0]:()=>D(i,s)}),[i]),l=useMemo(()=>({...f,optionsPropsRef:x,inputPropsRef:c,labelRef:m,inputRef:U,buttonRef:M,optionsRef:h,value:i,disabled:p,mode:u?1:0,get activeOptionIndex(){if(g.current&&f.activeOptionIndex===null&&f.options.length>0){let s=f.options.findIndex(b=>!b.dataRef.current.disabled);if(s!==-1)return s}return f.activeOptionIndex},compare:D,isSelected:T,nullable:r,__demoMode:d}),[i,p,u,r,d,f]);t$2(()=>{f.dataRef.current=l;},[l]),w$2([l.buttonRef,l.inputRef,l.optionsRef],()=>{l.comboboxState===0&&R({type:1});});let j=useMemo(()=>({open:l.comboboxState===0,disabled:p,activeIndex:l.activeOptionIndex,activeOption:l.activeOptionIndex===null?null:l.options[l.activeOptionIndex].dataRef.current.value}),[l,p]),v=useCallback(()=>{var b;if(!l.inputRef.current)return;let s=c.current.displayValue;typeof s=="function"?l.inputRef.current.value=(b=s(i))!=null?b:"":typeof i=="string"?l.inputRef.current.value=i:l.inputRef.current.value="";},[i,l.inputRef,c]),P=o$2(s=>{let b=l.options.find(L=>L.id===s);!b||(K(b.dataRef.current.value),v());}),G=o$2(()=>{if(l.activeOptionIndex!==null){let{dataRef:s,id:b}=l.options[l.activeOptionIndex];K(s.current.value),v(),R({type:2,focus:a$1.Specific,id:b});}}),oe=o$2(()=>{R({type:0}),g.current=!0;}),ne=o$2(()=>{R({type:1}),g.current=!1;}),re=o$2((s,b,L)=>(g.current=!1,s===a$1.Specific?R({type:2,focus:a$1.Specific,id:b,trigger:L}):R({type:2,focus:s,trigger:L}))),ie=o$2((s,b)=>(R({type:3,id:s,dataRef:b}),()=>R({type:4,id:s}))),K=o$2(s=>u$2(l.mode,{[0](){return t(s)},[1](){let b=l.value.slice(),L=b.indexOf(s);return L===-1?b.push(s):b.splice(L,1),t(b)}})),ae=useMemo(()=>({onChange:K,registerOption:ie,goToOption:re,closeCombobox:ne,openCombobox:oe,selectActiveOption:G,selectOption:P}),[]);t$2(()=>{l.comboboxState===1&&v();},[v,l.comboboxState]),t$2(v,[v]);let le=o===null?{}:{ref:o};return React__default.createElement(z.Provider,{value:ae},React__default.createElement(J.Provider,{value:l},React__default.createElement(C$2,{value:u$2(l.comboboxState,{[0]:p$2.Open,[1]:p$2.Closed})},e$1!=null&&i!=null&&e({[e$1]:i}).map(([s,b])=>React__default.createElement(h$2,{features:s$1.Hidden,...g$1({key:s,as:"input",type:"hidden",hidden:!0,readOnly:!0,name:s,value:b})})),_({ourProps:le,theirProps:C,slot:j,defaultTag:he,name:"Combobox"}))))}),Me="input",Fe=H$1(function(a,o$1){var h,D;let{value:e,onChange:i,displayValue:t,type:p="text",...d}=a,r=k$2("Combobox.Input"),u=N$2("Combobox.Input"),C=y$1(r.inputRef,o$1),f=r.inputPropsRef,R=`headlessui-combobox-input-${I()}`,g=p$5();t$2(()=>{f.current.displayValue=t;},[t,f]);let x=o$2(T=>{switch(T.key){case o.Backspace:case o.Delete:if(r.comboboxState!==0||r.mode!==0||!r.nullable)return;let l=T.currentTarget;g.requestAnimationFrame(()=>{l.value===""&&(u.onChange(null),r.optionsRef.current&&(r.optionsRef.current.scrollTop=0),u.goToOption(a$1.Nothing));});break;case o.Enter:if(r.comboboxState!==0)return;if(T.preventDefault(),T.stopPropagation(),r.activeOptionIndex===null){u.closeCombobox();return}u.selectActiveOption(),r.mode===0&&u.closeCombobox();break;case o.ArrowDown:return T.preventDefault(),T.stopPropagation(),u$2(r.comboboxState,{[0]:()=>{u.goToOption(a$1.Next);},[1]:()=>{u.openCombobox();}});case o.ArrowUp:return T.preventDefault(),T.stopPropagation(),u$2(r.comboboxState,{[0]:()=>{u.goToOption(a$1.Previous);},[1]:()=>{u.openCombobox(),g.nextFrame(()=>{r.value||u.goToOption(a$1.Last);});}});case o.Home:case o.PageUp:return T.preventDefault(),T.stopPropagation(),u.goToOption(a$1.First);case o.End:case o.PageDown:return T.preventDefault(),T.stopPropagation(),u.goToOption(a$1.Last);case o.Escape:return r.comboboxState!==0?void 0:(T.preventDefault(),r.optionsRef.current&&!r.optionsPropsRef.current.static&&T.stopPropagation(),u.closeCombobox());case o.Tab:if(r.comboboxState!==0)return;u.selectActiveOption(),u.closeCombobox();break}}),c=o$2(T=>{u.openCombobox(),i==null||i(T);}),m=i$2(()=>{if(!!r.labelRef.current)return [r.labelRef.current.id].join(" ")},[r.labelRef.current]),U=useMemo(()=>({open:r.comboboxState===0,disabled:r.disabled}),[r]),M={ref:C,id:R,role:"combobox",type:p,"aria-controls":(h=r.optionsRef.current)==null?void 0:h.id,"aria-expanded":r.disabled?void 0:r.comboboxState===0,"aria-activedescendant":r.activeOptionIndex===null||(D=r.options[r.activeOptionIndex])==null?void 0:D.id,"aria-multiselectable":r.mode===1?!0:void 0,"aria-labelledby":m,disabled:r.disabled,onKeyDown:x,onChange:c};return _({ourProps:M,theirProps:d,slot:U,defaultTag:Me,name:"Combobox.Input"})}),_e="button",we=H$1(function(a,o$1){var x;let e=k$2("Combobox.Button"),i=N$2("Combobox.Button"),t=y$1(e.buttonRef,o$1),p=`headlessui-combobox-button-${I()}`,d=p$5(),r$1=o$2(c=>{switch(c.key){case o.ArrowDown:return c.preventDefault(),c.stopPropagation(),e.comboboxState===1&&i.openCombobox(),d.nextFrame(()=>{var m;return (m=e.inputRef.current)==null?void 0:m.focus({preventScroll:!0})});case o.ArrowUp:return c.preventDefault(),c.stopPropagation(),e.comboboxState===1&&(i.openCombobox(),d.nextFrame(()=>{e.value||i.goToOption(a$1.Last);})),d.nextFrame(()=>{var m;return (m=e.inputRef.current)==null?void 0:m.focus({preventScroll:!0})});case o.Escape:return e.comboboxState!==0?void 0:(c.preventDefault(),e.optionsRef.current&&!e.optionsPropsRef.current.static&&c.stopPropagation(),i.closeCombobox(),d.nextFrame(()=>{var m;return (m=e.inputRef.current)==null?void 0:m.focus({preventScroll:!0})}));default:return}}),u=o$2(c=>{if(r(c.currentTarget))return c.preventDefault();e.comboboxState===0?i.closeCombobox():(c.preventDefault(),i.openCombobox()),d.nextFrame(()=>{var m;return (m=e.inputRef.current)==null?void 0:m.focus({preventScroll:!0})});}),C=i$2(()=>{if(!!e.labelRef.current)return [e.labelRef.current.id,p].join(" ")},[e.labelRef.current,p]),f=useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled}),[e]),R=a,g={ref:t,id:p,type:s$3(a,e.buttonRef),tabIndex:-1,"aria-haspopup":!0,"aria-controls":(x=e.optionsRef.current)==null?void 0:x.id,"aria-expanded":e.disabled?void 0:e.comboboxState===0,"aria-labelledby":C,disabled:e.disabled,onClick:u,onKeyDown:r$1};return _({ourProps:g,theirProps:R,slot:f,defaultTag:_e,name:"Combobox.Button"})}),ke="label",Ue=H$1(function(a,o){let e=k$2("Combobox.Label"),i=`headlessui-combobox-label-${I()}`,t=y$1(e.labelRef,o),p=o$2(()=>{var C;return (C=e.inputRef.current)==null?void 0:C.focus({preventScroll:!0})}),d=useMemo(()=>({open:e.comboboxState===0,disabled:e.disabled}),[e]);return _({ourProps:{ref:t,id:i,onClick:p},theirProps:a,slot:d,defaultTag:ke,name:"Combobox.Label"})}),Be="ul",Ve=x.RenderStrategy|x.Static,je=H$1(function(a,o){var g;let{hold:e=!1,...i}=a,t=k$2("Combobox.Options"),p=y$1(t.optionsRef,o),d=`headlessui-combobox-options-${I()}`,r=s(),u=(()=>r!==null?r===p$2.Open:t.comboboxState===0)();t$2(()=>{var x;t.optionsPropsRef.current.static=(x=a.static)!=null?x:!1;},[t.optionsPropsRef,a.static]),t$2(()=>{t.optionsPropsRef.current.hold=e;},[t.optionsPropsRef,e]),F$2({container:t.optionsRef.current,enabled:t.comboboxState===0,accept(x){return x.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:x.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(x){x.setAttribute("role","none");}});let C=i$2(()=>{var x,c,m;return (m=(x=t.labelRef.current)==null?void 0:x.id)!=null?m:(c=t.buttonRef.current)==null?void 0:c.id},[t.labelRef.current,t.buttonRef.current]),f=useMemo(()=>({open:t.comboboxState===0}),[t]),R={"aria-activedescendant":t.activeOptionIndex===null||(g=t.options[t.activeOptionIndex])==null?void 0:g.id,"aria-labelledby":C,role:"listbox",id:d,ref:p};return _({ourProps:R,theirProps:i,slot:f,defaultTag:Be,features:Ve,visible:u,name:"Combobox.Options"})}),Ge="li",He=H$1(function(a,o){var l,j;let{disabled:e=!1,value:i,...t}=a,p=k$2("Combobox.Option"),d=N$2("Combobox.Option"),r=`headlessui-combobox-option-${I()}`,u=p.activeOptionIndex!==null?p.options[p.activeOptionIndex].id===r:!1,C=p.isSelected(i),f=useRef(null),R=s$5({disabled:e,value:i,domRef:f,textValue:(j=(l=f.current)==null?void 0:l.textContent)==null?void 0:j.toLowerCase()}),g=y$1(o,f),x=o$2(()=>d.selectOption(r));t$2(()=>d.registerOption(r,R),[R,r]);let c=useRef(!p.__demoMode);t$2(()=>{if(!p.__demoMode)return;let v=o$3();return v.requestAnimationFrame(()=>{c.current=!0;}),v.dispose},[]),t$2(()=>{if(p.comboboxState!==0||!u||!c.current||p.activationTrigger===0)return;let v=o$3();return v.requestAnimationFrame(()=>{var P,G;(G=(P=f.current)==null?void 0:P.scrollIntoView)==null||G.call(P,{block:"nearest"});}),v.dispose},[f,u,p.comboboxState,p.activationTrigger,p.activeOptionIndex]);let m=o$2(v=>{if(e)return v.preventDefault();x(),p.mode===0&&(d.closeCombobox(),o$3().nextFrame(()=>{var P;return (P=p.inputRef.current)==null?void 0:P.focus({preventScroll:!0})}));}),U=o$2(()=>{if(e)return d.goToOption(a$1.Nothing);d.goToOption(a$1.Specific,r);}),M=o$2(()=>{e||u||d.goToOption(a$1.Specific,r,0);}),h=o$2(()=>{e||!u||p.optionsPropsRef.current.hold||d.goToOption(a$1.Nothing);}),D=useMemo(()=>({active:u,selected:C,disabled:e}),[u,C,e]);return _({ourProps:{id:r,ref:g,role:"option",tabIndex:e===!0?void 0:-1,"aria-disabled":e===!0?!0:void 0,"aria-selected":C===!0?!0:void 0,disabled:void 0,onClick:m,onFocus:U,onPointerMove:M,onMouseMove:M,onPointerLeave:h,onMouseLeave:h},theirProps:t,slot:D,defaultTag:Ge,name:"Combobox.Option"})}),Ot=Object.assign(Le,{Input:Fe,Button:we,Label:Ue,Options:je,Option:He});
|
|
7133
7155
|
|
|
7134
|
-
function f
|
|
7156
|
+
function f(){let e=useRef(!1);return t$2(()=>(e.current=!0,()=>{e.current=!1;}),[]),e}
|
|
7135
7157
|
|
|
7136
|
-
function n(...e){return useMemo(()=>
|
|
7158
|
+
function n(...e){return useMemo(()=>t(...e),[...e])}
|
|
7137
7159
|
|
|
7138
|
-
let d
|
|
7160
|
+
let d=createContext(null);function u$1(){let r=useContext(d);if(r===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,u$1),t}return r}function k$1(){let[r,t]=useState([]);return [r.length>0?r.join(" "):void 0,useMemo(()=>function(e){let i=o$2(n=>(t(o=>[...o,n]),()=>t(o=>{let c=o.slice(),p=c.indexOf(n);return p!==-1&&c.splice(p,1),c}))),s=useMemo(()=>({register:i,slot:e.slot,name:e.name,props:e.props}),[i,e.slot,e.name,e.props]);return React__default.createElement(d.Provider,{value:s},e.children)},[t])]}let S="p",F$1=H$1(function(t,a){let e=u$1(),i=`headlessui-description-${I()}`,s=y$1(a);t$2(()=>e.register(i),[i,e.register]);let n=t,o={ref:s,...e.props,id:i};return _({ourProps:o,theirProps:n,slot:e.slot||{},defaultTag:S,name:e.name||"Description"})});
|
|
7139
7161
|
|
|
7140
|
-
|
|
7162
|
+
var oe=(o=>(o[o.Open=0]="Open",o[o.Closed=1]="Closed",o))(oe||{}),ae=(o=>(o[o.Pointer=0]="Pointer",o[o.Other=1]="Other",o))(ae||{}),ie=(a=>(a[a.OpenMenu=0]="OpenMenu",a[a.CloseMenu=1]="CloseMenu",a[a.GoToItem=2]="GoToItem",a[a.Search=3]="Search",a[a.ClearSearch=4]="ClearSearch",a[a.RegisterItem=5]="RegisterItem",a[a.UnregisterItem=6]="UnregisterItem",a))(ie||{});function k(t,i=o=>o){let o=t.activeItemIndex!==null?t.items[t.activeItemIndex]:null,e=v$1(i(t.items.slice()),u=>u.dataRef.current.domRef.current),n=o?e.indexOf(o):null;return n===-1&&(n=null),{items:e,activeItemIndex:n}}let ue$1={[1](t){return t.menuState===1?t:{...t,activeItemIndex:null,menuState:1}},[0](t){return t.menuState===0?t:{...t,menuState:0}},[2]:(t,i)=>{var n;let o=k(t),e=x$1(i,{resolveItems:()=>o.items,resolveActiveIndex:()=>o.activeItemIndex,resolveId:u=>u.id,resolveDisabled:u=>u.dataRef.current.disabled});return {...t,...o,searchQuery:"",activeItemIndex:e,activationTrigger:(n=i.trigger)!=null?n:1}},[3]:(t,i)=>{let e=t.searchQuery!==""?0:1,n=t.searchQuery+i.value.toLowerCase(),s=(t.activeItemIndex!==null?t.items.slice(t.activeItemIndex+e).concat(t.items.slice(0,t.activeItemIndex+e)):t.items).find(c=>{var p;return ((p=c.dataRef.current.textValue)==null?void 0:p.startsWith(n))&&!c.dataRef.current.disabled}),a=s?t.items.indexOf(s):-1;return a===-1||a===t.activeItemIndex?{...t,searchQuery:n}:{...t,searchQuery:n,activeItemIndex:a,activationTrigger:1}},[4](t){return t.searchQuery===""?t:{...t,searchQuery:"",searchActiveItemIndex:null}},[5]:(t,i)=>{let o=k(t,e=>[...e,{id:i.id,dataRef:i.dataRef}]);return {...t,...o}},[6]:(t,i)=>{let o=k(t,e=>{let n=e.findIndex(u=>u.id===i.id);return n!==-1&&e.splice(n,1),e});return {...t,...o,activationTrigger:1}}},w$1=createContext(null);w$1.displayName="MenuContext";function C$1(t){let i=useContext(w$1);if(i===null){let o=new Error(`<${t} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(o,C$1),o}return i}function se(t,i){return u$2(i.type,ue$1,t,i)}let le=Fragment,ce=H$1(function(i,o){let e=useReducer(se,{menuState:1,buttonRef:createRef(),itemsRef:createRef(),items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:n,itemsRef:u,buttonRef:s},a]=e,c=y$1(o);w$2([s,u],(M,R)=>{var T;n===0&&(a({type:1}),S$1(R,b.Loose)||(M.preventDefault(),(T=s.current)==null||T.focus()));});let p=useMemo(()=>({open:n===0}),[n]),g=i,f={ref:c};return React__default.createElement(w$1.Provider,{value:e},React__default.createElement(C$2,{value:u$2(n,{[0]:p$2.Open,[1]:p$2.Closed})},_({ourProps:f,theirProps:g,slot:p,defaultTag:le,name:"Menu"})))}),pe="button",de=H$1(function(i,o$1){var T;let[e,n]=C$1("Menu.Button"),u=y$1(e.buttonRef,o$1),s=`headlessui-menu-button-${I()}`,a=p$5(),c=o$2(l=>{switch(l.key){case o.Space:case o.Enter:case o.ArrowDown:l.preventDefault(),l.stopPropagation(),n({type:0}),a.nextFrame(()=>n({type:2,focus:a$1.First}));break;case o.ArrowUp:l.preventDefault(),l.stopPropagation(),n({type:0}),a.nextFrame(()=>n({type:2,focus:a$1.Last}));break}}),p=o$2(l=>{switch(l.key){case o.Space:l.preventDefault();break}}),g=o$2(l=>{if(r(l.currentTarget))return l.preventDefault();i.disabled||(e.menuState===0?(n({type:1}),a.nextFrame(()=>{var b;return (b=e.buttonRef.current)==null?void 0:b.focus({preventScroll:!0})})):(l.preventDefault(),l.stopPropagation(),n({type:0})));}),f=useMemo(()=>({open:e.menuState===0}),[e]),M=i,R={ref:u,id:s,type:s$3(i,e.buttonRef),"aria-haspopup":!0,"aria-controls":(T=e.itemsRef.current)==null?void 0:T.id,"aria-expanded":i.disabled?void 0:e.menuState===0,onKeyDown:c,onKeyUp:p,onClick:g};return _({ourProps:R,theirProps:M,slot:f,defaultTag:pe,name:"Menu.Button"})}),me="div",fe=x.RenderStrategy|x.Static,Te=H$1(function(i,o$1){var b,O;let[e,n$1]=C$1("Menu.Items"),u=y$1(e.itemsRef,o$1),s$1=n(e.itemsRef),a=`headlessui-menu-items-${I()}`,c=p$5(),p=s(),g=(()=>p!==null?p===p$2.Open:e.menuState===0)();useEffect(()=>{let r=e.itemsRef.current;!r||e.menuState===0&&r!==(s$1==null?void 0:s$1.activeElement)&&r.focus({preventScroll:!0});},[e.menuState,e.itemsRef,s$1]),F$2({container:e.itemsRef.current,enabled:e.menuState===0,accept(r){return r.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:r.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(r){r.setAttribute("role","none");}});let f=o$2(r=>{var m,S;switch(c.dispose(),r.key){case o.Space:if(e.searchQuery!=="")return r.preventDefault(),r.stopPropagation(),n$1({type:3,value:r.key});case o.Enter:if(r.preventDefault(),r.stopPropagation(),n$1({type:1}),e.activeItemIndex!==null){let{dataRef:A}=e.items[e.activeItemIndex];(S=(m=A.current)==null?void 0:m.domRef.current)==null||S.click();}o$3().nextFrame(()=>{var A;return (A=e.buttonRef.current)==null?void 0:A.focus({preventScroll:!0})});break;case o.ArrowDown:return r.preventDefault(),r.stopPropagation(),n$1({type:2,focus:a$1.Next});case o.ArrowUp:return r.preventDefault(),r.stopPropagation(),n$1({type:2,focus:a$1.Previous});case o.Home:case o.PageUp:return r.preventDefault(),r.stopPropagation(),n$1({type:2,focus:a$1.First});case o.End:case o.PageDown:return r.preventDefault(),r.stopPropagation(),n$1({type:2,focus:a$1.Last});case o.Escape:r.preventDefault(),r.stopPropagation(),n$1({type:1}),o$3().nextFrame(()=>{var A;return (A=e.buttonRef.current)==null?void 0:A.focus({preventScroll:!0})});break;case o.Tab:r.preventDefault(),r.stopPropagation();break;default:r.key.length===1&&(n$1({type:3,value:r.key}),c.setTimeout(()=>n$1({type:4}),350));break}}),M=o$2(r=>{switch(r.key){case o.Space:r.preventDefault();break}}),R=useMemo(()=>({open:e.menuState===0}),[e]),T=i,l={"aria-activedescendant":e.activeItemIndex===null||(b=e.items[e.activeItemIndex])==null?void 0:b.id,"aria-labelledby":(O=e.buttonRef.current)==null?void 0:O.id,id:a,onKeyDown:f,onKeyUp:M,role:"menu",tabIndex:0,ref:u};return _({ourProps:l,theirProps:T,slot:R,defaultTag:me,features:fe,visible:g,name:"Menu.Items"})}),Ie=Fragment,ye$1=H$1(function(i,o){let{disabled:e=!1,...n}=i,[u,s]=C$1("Menu.Item"),a=`headlessui-menu-item-${I()}`,c=u.activeItemIndex!==null?u.items[u.activeItemIndex].id===a:!1,p=useRef(null),g=y$1(o,p);t$2(()=>{if(u.menuState!==0||!c||u.activationTrigger===0)return;let r=o$3();return r.requestAnimationFrame(()=>{var m,S;(S=(m=p.current)==null?void 0:m.scrollIntoView)==null||S.call(m,{block:"nearest"});}),r.dispose},[p,c,u.menuState,u.activationTrigger,u.activeItemIndex]);let f=useRef({disabled:e,domRef:p});t$2(()=>{f.current.disabled=e;},[f,e]),t$2(()=>{var r,m;f.current.textValue=(m=(r=p.current)==null?void 0:r.textContent)==null?void 0:m.toLowerCase();},[f,p]),t$2(()=>(s({type:5,id:a,dataRef:f}),()=>s({type:6,id:a})),[f,a]);let M=o$2(r=>{if(e)return r.preventDefault();s({type:1}),o$3().nextFrame(()=>{var m;return (m=u.buttonRef.current)==null?void 0:m.focus({preventScroll:!0})});}),R=o$2(()=>{if(e)return s({type:2,focus:a$1.Nothing});s({type:2,focus:a$1.Specific,id:a});}),T=o$2(()=>{e||c||s({type:2,focus:a$1.Specific,id:a,trigger:0});}),l=o$2(()=>{e||!c||s({type:2,focus:a$1.Nothing});}),b=useMemo(()=>({active:c,disabled:e}),[c,e]);return _({ourProps:{id:a,ref:g,role:"menuitem",tabIndex:e===!0?void 0:-1,"aria-disabled":e===!0?!0:void 0,disabled:void 0,onClick:M,onFocus:R,onPointerMove:T,onMouseMove:T,onPointerLeave:l,onMouseLeave:l},theirProps:n,slot:b,defaultTag:Ie,name:"Menu.Item"})}),We$1=Object.assign(ce,{Button:de,Items:Te,Item:ye$1});
|
|
7141
7163
|
|
|
7142
|
-
function
|
|
7164
|
+
let u=createContext(null);function c(){let o=useContext(u);if(o===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,c),t}return o}function M(){let[o,t]=useState([]);return [o.length>0?o.join(" "):void 0,useMemo(()=>function(e){let l=o$2(a=>(t(i=>[...i,a]),()=>t(i=>{let n=i.slice(),d=n.indexOf(a);return d!==-1&&n.splice(d,1),n}))),r=useMemo(()=>({register:l,slot:e.slot,name:e.name,props:e.props}),[l,e.slot,e.name,e.props]);return React__default.createElement(u.Provider,{value:r},e.children)},[t])]}let h$1="label",F=H$1(function(t,s){let{passive:e=!1,...l}=t,r=c(),a=`headlessui-label-${I()}`,i=y$1(s);t$2(()=>r.register(a),[a,r.register]);let n={ref:i,...r.props,id:a};return e&&("onClick"in n&&delete n.onClick,"onClick"in l&&delete l.onClick),_({ourProps:n,theirProps:l,slot:r.slot||{},defaultTag:h$1,name:r.name||"Label"})});
|
|
7143
7165
|
|
|
7144
|
-
|
|
7145
|
-
|
|
7146
|
-
function c(a=0){let[l,r]=useState(a),t=f$1(),o=useCallback(e=>{t.current&&r(u=>u|e);},[l,t]),m=useCallback(e=>Boolean(l&e),[l]),s=useCallback(e=>{t.current&&r(u=>u&~e);},[r,t]),g=useCallback(e=>{t.current&&r(u=>u^e);},[r]);return {flags:l,addFlag:o,hasFlag:m,removeFlag:s,toggleFlag:g}}
|
|
7147
|
-
|
|
7148
|
-
let d$1=createContext(null);function u(){let o=useContext(d$1);if(o===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,u),t}return o}function H(){let[o,t]=useState([]);return [o.length>0?o.join(" "):void 0,useMemo(()=>function(e){let s=o$3(r=>(t(l=>[...l,r]),()=>t(l=>{let n=l.slice(),p=n.indexOf(r);return p!==-1&&n.splice(p,1),n}))),a=useMemo(()=>({register:s,slot:e.slot,name:e.name,props:e.props}),[s,e.slot,e.name,e.props]);return React__default.createElement(d$1.Provider,{value:a},e.children)},[t])]}let A="label";function h(o,t){let i=I$2(),{id:e=`headlessui-label-${i}`,passive:s=!1,...a}=o,r=u(),l=y$3(t);l$2(()=>r.register(e),[e,r.register]);let n={ref:l,...r.props,id:e};return s&&("onClick"in n&&(delete n.htmlFor,delete n.onClick),"onClick"in a&&delete a.onClick),X({ourProps:n,theirProps:a,slot:r.slot||{},defaultTag:A,name:r.name||"Label"})}let v$1=D$1(h),M$1=Object.assign(v$1,{});
|
|
7149
|
-
|
|
7150
|
-
let y$1=createContext(null);y$1.displayName="GroupContext";let Y=Fragment;function Z(s){var d;let[n,p]=useState(null),[c,f]=H(),[r,h]=M$2(),l=useMemo(()=>({switch:n,setSwitch:p,labelledby:c,describedby:r}),[n,p,c,r]),T={},b=s;return React__default.createElement(h,{name:"Switch.Description"},React__default.createElement(f,{name:"Switch.Label",props:{htmlFor:(d=l.switch)==null?void 0:d.id,onClick(t){n&&(t.currentTarget.tagName==="LABEL"&&t.preventDefault(),n.click(),n.focus({preventScroll:!0}));}}},React__default.createElement(y$1.Provider,{value:l},X({ourProps:T,theirProps:b,defaultTag:Y,name:"Switch.Group"}))))}let ee="button";function te(s,n){let p$3=I$2(),{id:c=`headlessui-switch-${p$3}`,checked:f,defaultChecked:r$1=!1,onChange:h,name:l,value:T$1,form:b,...d}=s,t=useContext(y$1),u=useRef(null),D=y$3(u,n,t===null?null:t.setSwitch),[o,a]=T(f,h,r$1),S=o$3(()=>a==null?void 0:a(!o)),C=o$3(e=>{if(r(e.currentTarget))return e.preventDefault();e.preventDefault(),S();}),L=o$3(e=>{e.key===o$1.Space?(e.preventDefault(),S()):e.key===o$1.Enter&&p$1(e.currentTarget);}),v=o$3(e=>e.preventDefault()),G=useMemo(()=>({checked:o}),[o]),R$1={id:c,ref:D,role:"switch",type:s$2(s,u),tabIndex:0,"aria-checked":o,"aria-labelledby":t==null?void 0:t.labelledby,"aria-describedby":t==null?void 0:t.describedby,onClick:C,onKeyUp:L,onKeyPress:v},k=p$2();return useEffect(()=>{var w;let e=(w=u.current)==null?void 0:w.closest("form");e&&r$1!==void 0&&k.addEventListener(e,"reset",()=>{a(r$1);});},[u,a]),React__default.createElement(React__default.Fragment,null,l!=null&&o&&React__default.createElement(c$2,{features:p.Hidden,...R({as:"input",type:"checkbox",hidden:!0,readOnly:!0,form:b,checked:o,name:l,value:T$1})}),X({ourProps:R$1,theirProps:d,slot:G,defaultTag:ee,name:"Switch"}))}let ne=D$1(te),re$1=Z,Ge=Object.assign(ne,{Group:re$1,Label:M$1,Description:b$1});
|
|
7166
|
+
let p$1=createContext(null);p$1.displayName="GroupContext";let j=Fragment;function N$1(m){let[n,i]=useState(null),[r,s]=M(),[l,c]=k$1(),d=useMemo(()=>({switch:n,setSwitch:i,labelledby:r,describedby:l}),[n,i,r,l]),u={},e=m;return React__default.createElement(c,{name:"Switch.Description"},React__default.createElement(s,{name:"Switch.Label",props:{onClick(){!n||(n.click(),n.focus({preventScroll:!0}));}}},React__default.createElement(p$1.Provider,{value:d},_({ourProps:u,theirProps:e,defaultTag:j,name:"Switch.Group"}))))}let $$1="button",q=H$1(function(n,i){let{checked:r$1,onChange:s,name:l,value:c,...d}=n,u=`headlessui-switch-${I()}`,e=useContext(p$1),f=useRef(null),S=y$1(f,i,e===null?null:e.setSwitch),h=o$2(()=>s(!r$1)),E=o$2(t=>{if(r(t.currentTarget))return t.preventDefault();t.preventDefault(),h();}),w=o$2(t=>{t.key===o.Space?(t.preventDefault(),h()):t.key===o.Enter&&p$4(t.currentTarget);}),P=o$2(t=>t.preventDefault()),v=useMemo(()=>({checked:r$1}),[r$1]),g={id:u,ref:S,role:"switch",type:s$3(n,f),tabIndex:0,"aria-checked":r$1,"aria-labelledby":e==null?void 0:e.labelledby,"aria-describedby":e==null?void 0:e.describedby,onClick:E,onKeyUp:w,onKeyPress:P};return React__default.createElement(React__default.Fragment,null,l!=null&&r$1&&React__default.createElement(h$2,{features:s$1.Hidden,...g$1({as:"input",type:"checkbox",hidden:!0,readOnly:!0,checked:r$1,name:l,value:c})}),_({ourProps:g,theirProps:d,slot:v,defaultTag:$$1,name:"Switch"}))}),ue=Object.assign(q,{Group:N$1,Label:F,Description:F$1});
|
|
7151
7167
|
|
|
7152
7168
|
function l(r){let e={called:!1};return (...t)=>{if(!e.called)return e.called=!0,r(...t)}}
|
|
7153
7169
|
|
|
7154
|
-
function
|
|
7170
|
+
function p(t,...e){t&&e.length>0&&t.classList.add(...e);}function v(t,...e){t&&e.length>0&&t.classList.remove(...e);}var g=(n=>(n.Ended="ended",n.Cancelled="cancelled",n))(g||{});function T(t,e){let n=o$3();if(!t)return n.dispose;let{transitionDuration:l,transitionDelay:a}=getComputedStyle(t),[d,s]=[l,a].map(i=>{let[r=0]=i.split(",").filter(Boolean).map(o=>o.includes("ms")?parseFloat(o):parseFloat(o)*1e3).sort((o,E)=>E-o);return r});if(d+s!==0){let i=[];i.push(n.addEventListener(t,"transitionrun",()=>{i.splice(0).forEach(r=>r()),i.push(n.addEventListener(t,"transitionend",()=>{e("ended"),i.splice(0).forEach(r=>r());},{once:!0}),n.addEventListener(t,"transitioncancel",()=>{e("cancelled"),i.splice(0).forEach(r=>r());},{once:!0}));},{once:!0}));}else e("ended");return n.add(()=>e("cancelled")),n.dispose}function C(t,e,n,l$1){let a=n?"enter":"leave",d=o$3(),s=l$1!==void 0?l(l$1):()=>{},m=u$2(a,{enter:()=>e.enter,leave:()=>e.leave}),i=u$2(a,{enter:()=>e.enterTo,leave:()=>e.leaveTo}),r=u$2(a,{enter:()=>e.enterFrom,leave:()=>e.leaveFrom});return v(t,...e.enter,...e.enterTo,...e.enterFrom,...e.leave,...e.leaveFrom,...e.leaveTo,...e.entered),p(t,...m,...r),d.nextFrame(()=>{v(t,...r),p(t,...i),T(t,o=>(o==="ended"&&(v(t,...m),p(t,...e.entered)),s(o)));}),d.dispose}
|
|
7155
7171
|
|
|
7156
|
-
function
|
|
7172
|
+
function H({container:u,direction:o,classes:c,events:t,onStart:d,onStop:l}){let f$1=f(),m=p$5(),e=s$5(o),b=o$2(()=>u$2(e.current,{enter:()=>t.current.beforeEnter(),leave:()=>t.current.beforeLeave(),idle:()=>{}})),p=o$2(()=>u$2(e.current,{enter:()=>t.current.afterEnter(),leave:()=>t.current.afterLeave(),idle:()=>{}}));t$2(()=>{let r=o$3();m.add(r.dispose);let i=u.current;if(!!i&&e.current!=="idle"&&!!f$1.current)return r.dispose(),b(),d.current(e.current),r.add(C(i,c.current,e.current==="enter",v=>{r.dispose(),u$2(v,{[g.Ended](){p(),l.current(e.current);},[g.Cancelled]:()=>{}});})),r.dispose},[o]);}
|
|
7157
7173
|
|
|
7158
|
-
function
|
|
7174
|
+
function h(e=""){return e.split(" ").filter(n=>n.trim().length>1)}let N=createContext(null);N.displayName="TransitionContext";var ge=(t=>(t.Visible="visible",t.Hidden="hidden",t))(ge||{});function ve(){let e=useContext(N);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Ce(){let e=useContext(L);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let L=createContext(null);L.displayName="NestingContext";function w(e){return "children"in e?w(e.children):e.current.filter(({state:n})=>n==="visible").length>0}function Z(e){let n=s$5(e),t=useRef([]),r=f(),s=o$2((l,o=R.Hidden)=>{let a=t.current.findIndex(({id:u})=>u===l);a!==-1&&(u$2(o,{[R.Unmount](){t.current.splice(a,1);},[R.Hidden](){t.current[a].state="hidden";}}),t$1(()=>{var u;!w(t)&&r.current&&((u=n.current)==null||u.call(n));}));}),g=o$2(l=>{let o=t.current.find(({id:a})=>a===l);return o?o.state!=="visible"&&(o.state="visible"):t.current.push({id:l,state:"visible"}),()=>s(l,R.Unmount)});return useMemo(()=>({children:t,register:g,unregister:s}),[g,s,t])}function be(){}let Se=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function $(e){var t;let n={};for(let r of Se)n[r]=(t=e[r])!=null?t:be;return n}function Ee(e){let n=useRef($(e));return useEffect(()=>{n.current=$(e);},[e]),n}let xe="div",ee=x.RenderStrategy,te=H$1(function(n,t){let{beforeEnter:r,afterEnter:s,beforeLeave:g,afterLeave:l,enter:o,enterFrom:a,enterTo:u,entered:A,leave:v,leaveFrom:E,leaveTo:x,...y}=n,d=useRef(null),D=y$1(d,t),[i,C]=useState("visible"),p=y.unmount?R.Unmount:R.Hidden,{show:b,appear:re,initial:ne}=ve(),{register:H$1,unregister:P}=Ce(),F=useRef(null),f=I();useEffect(()=>{if(!!f)return H$1(f)},[H$1,f]),useEffect(()=>{if(p===R.Hidden&&!!f){if(b&&i!=="visible"){C("visible");return}u$2(i,{["hidden"]:()=>P(f),["visible"]:()=>H$1(f)});}},[i,f,H$1,P,b,p]);let ie=s$5({enter:h(o),enterFrom:h(a),enterTo:h(u),entered:h(A),leave:h(v),leaveFrom:h(E),leaveTo:h(x)}),se=Ee({beforeEnter:r,afterEnter:s,beforeLeave:g,afterLeave:l}),O=a$2();useEffect(()=>{if(O&&i==="visible"&&d.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[d,i,O]);let M=ne&&!re,oe=(()=>!O||M||F.current===b?"idle":b?"enter":"leave")(),_$1=useRef(!1),B=Z(()=>{_$1.current||(C("hidden"),P(f));});H({container:d,classes:ie,events:se,direction:oe,onStart:s$5(()=>{_$1.current=!0;}),onStop:s$5(ue=>{_$1.current=!1,ue==="leave"&&!w(B)&&(C("hidden"),P(f));})}),useEffect(()=>{!M||(p===R.Hidden?F.current=null:F.current=b);},[b,M,i]);let le=y,ae={ref:D};return React__default.createElement(L.Provider,{value:B},React__default.createElement(C$2,{value:u$2(i,{["visible"]:p$2.Open,["hidden"]:p$2.Closed})},_({ourProps:ae,theirProps:le,defaultTag:xe,features:ee,visible:i==="visible",name:"Transition.Child"})))}),G=H$1(function(n,t){let{show:r,appear:s$1=!1,unmount:g,...l}=n,o=useRef(null),a=y$1(o,t);a$2();let u=s();if(r===void 0&&u!==null&&(r=u$2(u,{[p$2.Open]:!0,[p$2.Closed]:!1})),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[A,v]=useState(r?"visible":"hidden"),E=Z(()=>{v("hidden");}),[x,y]=useState(!0),d=useRef([r]);t$2(()=>{x!==!1&&d.current[d.current.length-1]!==r&&(d.current.push(r),y(!1));},[d,r]);let D=useMemo(()=>({show:r,appear:s$1,initial:x}),[r,s$1,x]);useEffect(()=>{if(r)v("visible");else if(!w(E))v("hidden");else {let C=o.current;if(!C)return;let p=C.getBoundingClientRect();p.x===0&&p.y===0&&p.width===0&&p.height===0&&v("hidden");}},[r,E]);let i={unmount:g};return React__default.createElement(L.Provider,{value:E},React__default.createElement(N.Provider,{value:D},_({ourProps:{...i,as:Fragment,children:React__default.createElement(te,{ref:a,...i,...l})},theirProps:{},defaultTag:Fragment,features:ee,visible:A==="visible",name:"Transition"})))}),ye=H$1(function(n,t){let r=useContext(N)!==null,s$1=s()!==null;return React__default.createElement(React__default.Fragment,null,!r&&s$1?React__default.createElement(G,{ref:t,...n}):React__default.createElement(te,{ref:t,...n}))}),We=Object.assign(G,{Child:ye,Root:G});
|
|
7159
7175
|
|
|
7160
7176
|
/** Comment */
|
|
7161
7177
|
var InputLabel = function (_a) {
|
|
@@ -7205,19 +7221,19 @@ var Combobox = function (_a) {
|
|
|
7205
7221
|
var labelStyles = cn("block text-sm font-medium text-gray-700");
|
|
7206
7222
|
var buttonStyles = cn("absolute inset-y-0 right-0 flex items-center rounded-r px-2 focus:outline-none");
|
|
7207
7223
|
var optionStyles = cn("absolute z-30 mt-1 max-h-60 w-full overflow-auto rounded bg-white py-1 text-base shadow-lg ring-1 ring-black ring-opacity-5 focus:outline-none sm:text-sm");
|
|
7208
|
-
return (React__default.createElement(
|
|
7209
|
-
label && (React__default.createElement(
|
|
7224
|
+
return (React__default.createElement(Ot, { as: "div", value: selectedItem, onChange: function (e) { return onChangeValue(e); }, disabled: isDisabled, nullable: nullable ? undefined : false },
|
|
7225
|
+
label && (React__default.createElement(Ot.Label, { className: labelStyles },
|
|
7210
7226
|
React__default.createElement(InputLabel, { isPlaceholder: true, isActive: true, label: label, isRequired: isRequired, id: id, isError: isError, isDisabled: isDisabled }))),
|
|
7211
7227
|
React__default.createElement("div", { className: "relative" },
|
|
7212
7228
|
React__default.createElement("div", { className: "relative" },
|
|
7213
|
-
React__default.createElement(
|
|
7229
|
+
React__default.createElement(Ot.Input, { className: "w-full rounded border border-gray-300 focus:border-purple-500 focus:outline-none focus:ring-1 focus:ring-purple-500 sm:text-sm ".concat(isError ? "border-red-500" : ""), onChange: function (event) { return setQuery(event.target.value); }, displayValue: function (item) {
|
|
7214
7230
|
return "".concat(item ? item[displayProperty] : "");
|
|
7215
7231
|
}, placeholder: placeholder }),
|
|
7216
7232
|
selectedItem && nullable && (React__default.createElement("button", { className: "absolute right-8 top-[1px] h-9 w-5 text-gray-400 hover:text-gray-500", onClick: function () { return setSelectedItem(undefined); } },
|
|
7217
7233
|
React__default.createElement(DynamicIcons, { icon: "XIcon", className: "h-4 w-4 ", "aria-hidden": "true" })))),
|
|
7218
|
-
React__default.createElement(
|
|
7234
|
+
React__default.createElement(Ot.Button, { className: buttonStyles },
|
|
7219
7235
|
React__default.createElement(DynamicIcons, { icon: "SelectorIcon", className: "h-5 w-5 text-gray-400", "aria-hidden": "true" })),
|
|
7220
|
-
filteredItems.length > 0 && (React__default.createElement(
|
|
7236
|
+
filteredItems.length > 0 && (React__default.createElement(Ot.Options, { className: optionStyles }, filteredItems.map(function (item, index) { return (React__default.createElement(Ot.Option, { key: "".concat(item[keyProperty], "-").concat(index), value: item, className: function (_a) {
|
|
7221
7237
|
var active = _a.active;
|
|
7222
7238
|
return classNames("relative cursor-default select-none py-2 pl-3 pr-9", active ? "bg-purple-600 text-white" : "text-gray-900");
|
|
7223
7239
|
} }, function (_a) {
|
|
@@ -7235,17 +7251,17 @@ var Dropdown = function (_a) {
|
|
|
7235
7251
|
var items = _a.items, IconElement = _a.IconElement, label = _a.label, className = _a.className, _b = _a.yPosition, yPosition = _b === void 0 ? "bottom" : _b, _c = _a.xPosition, xPosition = _c === void 0 ? "left" : _c, menuClassName = _a.menuClassName, itemsClassName = _a.itemsClassName, itemClassName = _a.itemClassName, activeItemClassName = _a.activeItemClassName;
|
|
7236
7252
|
if (!(items === null || items === void 0 ? void 0 : items.length))
|
|
7237
7253
|
return null;
|
|
7238
|
-
return (React__default.createElement(
|
|
7239
|
-
React__default.createElement(
|
|
7254
|
+
return (React__default.createElement(We$1, { as: "div", className: cn("relative inline-block text-left", menuClassName) },
|
|
7255
|
+
React__default.createElement(We$1.Button, { className: cn("py-2px z-20 flex items-center self-end rounded outline-purple-500 transition-all focus:ring-purple-500", className
|
|
7240
7256
|
? className
|
|
7241
7257
|
: "text-gray-400 hover:bg-white hover:text-gray-600") },
|
|
7242
7258
|
React__default.createElement("span", { className: "sr-only" }, "Dropdown Menu"),
|
|
7243
7259
|
label && React__default.createElement("span", { className: "pl-1" }, label),
|
|
7244
7260
|
IconElement && React__default.createElement(IconElement, null)),
|
|
7245
|
-
React__default.createElement(
|
|
7246
|
-
React__default.createElement(
|
|
7261
|
+
React__default.createElement(We, { as: Fragment, enter: "transition ease-out duration-100", enterFrom: "transform opacity-0 scale-95", enterTo: "transform opacity-100 scale-100", leave: "transition ease-in duration-75", leaveFrom: "transform opacity-100 scale-100", leaveTo: "transform opacity-0 scale-95" },
|
|
7262
|
+
React__default.createElement(We$1.Items, { className: cn("absolute right-0 min-w-fit mt-2 origin-bottom-right rounded bg-white shadow-lg", " z-20 divide-y divide-gray-100 focus:outline-none border border-gray-300", itemsClassName, yPosition === "top" ? "bottom-10" : "", xPosition === "right" ? "right-0" : "left-0"), slot: "" }, items.map(function (itemStack, i) {
|
|
7247
7263
|
return (React__default.createElement("div", { className: "py-1", key: i }, itemStack.map(function (item, index) {
|
|
7248
|
-
return (React__default.createElement(
|
|
7264
|
+
return (React__default.createElement(We$1.Item, { key: index }, function (_a) {
|
|
7249
7265
|
var active = _a.active;
|
|
7250
7266
|
return (React__default.createElement("a", { onClick: item.onClick, className: cn("group flex cursor-pointer items-center px-4 py-2 text-sm transition-all", {
|
|
7251
7267
|
"text-red-500": item.isEmphasized
|
|
@@ -7281,46 +7297,20 @@ var Dropdown = function (_a) {
|
|
|
7281
7297
|
})))));
|
|
7282
7298
|
};
|
|
7283
7299
|
|
|
7284
|
-
/*! *****************************************************************************
|
|
7285
|
-
Copyright (c) Microsoft Corporation.
|
|
7286
|
-
|
|
7287
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
7288
|
-
purpose with or without fee is hereby granted.
|
|
7289
|
-
|
|
7290
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
7291
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
7292
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
7293
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
7294
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
7295
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
7296
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
7297
|
-
***************************************************************************** */
|
|
7298
|
-
|
|
7299
|
-
var __assign = function() {
|
|
7300
|
-
__assign = Object.assign || function __assign(t) {
|
|
7301
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
7302
|
-
s = arguments[i];
|
|
7303
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
7304
|
-
}
|
|
7305
|
-
return t;
|
|
7306
|
-
};
|
|
7307
|
-
return __assign.apply(this, arguments);
|
|
7308
|
-
};
|
|
7309
|
-
|
|
7310
7300
|
/**
|
|
7311
7301
|
* Primary UI component for user interaction
|
|
7312
7302
|
*/
|
|
7313
7303
|
var ButtonDropDown = function (_a) {
|
|
7314
7304
|
var button = _a.button, dropDown = _a.dropDown, xPosition = _a.xPosition;
|
|
7315
7305
|
return (React__default.createElement("div", { className: "flex items-stretch" },
|
|
7316
|
-
React__default.createElement(_Button, __assign({}, button, { className: "!rounded-r-none !border-r-0 hover:!border-r-0
|
|
7306
|
+
React__default.createElement(_Button, __assign({}, button, { className: "!rounded-r-none !border-r-0 hover:!border-r-0" })),
|
|
7317
7307
|
React__default.createElement("div", { className: cn("w-[1px]", button.type === "primary" ? "bg-purple-700" : "", button.type === "secondary" ? "bg-purple-200" : "", button.type === "alternative" ? "bg-gray-300" : "") }),
|
|
7318
7308
|
React__default.createElement(Dropdown, __assign({}, dropDown, { className: cn("h-full rounded-l-none border !border-l-0 px-2 transition-all hover:!border-l-0", button.type === "primary"
|
|
7319
7309
|
? "border-purple-600 bg-purple-600 !text-white hover:border-purple-700 hover:bg-purple-700 active:!border-purple-800 active:!bg-purple-800"
|
|
7320
7310
|
: "", button.type === "secondary"
|
|
7321
|
-
? "border-purple-
|
|
7311
|
+
? "border-purple-50 bg-purple-50 !text-purple-700 hover:border-purple-100 hover:bg-purple-100 active:!border-purple-300 active:!bg-purple-300"
|
|
7322
7312
|
: "", button.type === "alternative"
|
|
7323
|
-
? "border-gray-300 bg-white !text-gray-
|
|
7313
|
+
? "border-gray-300 bg-white !text-gray-700 hover:border-gray-300 hover:bg-gray-50 active:bg-gray-100"
|
|
7324
7314
|
: ""), xPosition: xPosition || "right" })),
|
|
7325
7315
|
React__default.createElement("div", { className: "hidden !bg-purple-100 !text-purple-600 transition-all hover:bg-purple-200 focus:bg-purple-300" })));
|
|
7326
7316
|
};
|
|
@@ -7348,12 +7338,12 @@ var ToggleSwitch = function (_a) {
|
|
|
7348
7338
|
setToggleChecked(v);
|
|
7349
7339
|
onChangeHandler && onChangeHandler(v, toggleValue);
|
|
7350
7340
|
};
|
|
7351
|
-
return (React__default.createElement(
|
|
7341
|
+
return (React__default.createElement(ue.Group, null,
|
|
7352
7342
|
React__default.createElement("div", { className: cn("flex items-center justify-between text-center", groupStyles && groupStyles) },
|
|
7353
|
-
label && (React__default.createElement(
|
|
7343
|
+
label && (React__default.createElement(ue.Label, { className: cn("mr-2", labelStyles && labelStyles) },
|
|
7354
7344
|
label,
|
|
7355
7345
|
isRequired && (React__default.createElement("span", { className: "text-red-500" }, "\u00A0*")))),
|
|
7356
|
-
React__default.createElement(
|
|
7346
|
+
React__default.createElement(ue, { checked: toggleChecked, name: name, value: toggleValue, id: id, className: switchStyles, onChange: isDisabled
|
|
7357
7347
|
? function () { return handleToggleChange(null); }
|
|
7358
7348
|
: function (v) { return handleToggleChange(v); }, "aria-disabled": isDisabled },
|
|
7359
7349
|
React__default.createElement("span", { className: "sr-only" },
|
|
@@ -7433,7 +7423,7 @@ var InputCounter = function (_a) {
|
|
|
7433
7423
|
var defaultStyles = "border py-2 px-3 rounded text-sm leading-5 font-normal w-full border-gray-300 shadow-sm";
|
|
7434
7424
|
/** Base input field component */
|
|
7435
7425
|
var BaseField = function (_a, ref) {
|
|
7436
|
-
var onFocus = _a.onFocus, onBlur = _a.onBlur, id = _a.id, name = _a.name, type = _a.type, value = _a.value, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, maxLength = _a.maxLength, placeholder = _a.placeholder, _b = _a.className, className = _b === void 0 ? defaultStyles : _b, onChange = _a.onChange, onValueChange = _a.onValueChange;
|
|
7426
|
+
var onFocus = _a.onFocus, onBlur = _a.onBlur, id = _a.id, name = _a.name, type = _a.type, value = _a.value, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, maxLength = _a.maxLength, placeholder = _a.placeholder, _b = _a.className, className = _b === void 0 ? defaultStyles : _b, onChange = _a.onChange, onValueChange = _a.onValueChange, props = __rest(_a, ["onFocus", "onBlur", "id", "name", "type", "value", "defaultValue", "isDisabled", "isReadonly", "maxLength", "placeholder", "className", "onChange", "onValueChange"]);
|
|
7437
7427
|
var handleChange = function (e) {
|
|
7438
7428
|
var targetValue = e.currentTarget.value;
|
|
7439
7429
|
onChange && onChange(targetValue);
|
|
@@ -7445,9 +7435,9 @@ var BaseField = function (_a, ref) {
|
|
|
7445
7435
|
var handleBlur = function () {
|
|
7446
7436
|
onBlur && onBlur();
|
|
7447
7437
|
};
|
|
7448
|
-
return (React__default.createElement("input", { onFocus: handleFocus, onBlur: handleBlur, onChange: function (e) {
|
|
7438
|
+
return (React__default.createElement("input", __assign({ onFocus: handleFocus, onBlur: handleBlur, onChange: function (e) {
|
|
7449
7439
|
handleChange(e);
|
|
7450
|
-
}, placeholder: placeholder, ref: ref, type: type, name: name, id: id, className: cn(isDisabled ? "opacity-50" : "", className), disabled: isDisabled, readOnly: isReadonly, value: value, defaultValue: defaultValue, maxLength: maxLength, autoComplete: "off" }));
|
|
7440
|
+
}, placeholder: placeholder, ref: ref, type: type, name: name, id: id, className: cn(isDisabled ? "opacity-50" : "", className), disabled: isDisabled, readOnly: isReadonly, value: value, defaultValue: defaultValue, maxLength: maxLength, autoComplete: "off" }, props)));
|
|
7451
7441
|
};
|
|
7452
7442
|
var _BaseField = forwardRef(BaseField);
|
|
7453
7443
|
|
|
@@ -7465,7 +7455,7 @@ var useId = function () {
|
|
|
7465
7455
|
};
|
|
7466
7456
|
|
|
7467
7457
|
var TextInput = function (_a, ref) {
|
|
7468
|
-
var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, onChange = _a.onChange, placeholder = _a.placeholder, externalValue = _a.value, className = _a.className;
|
|
7458
|
+
var label = _a.label, isFocused = _a.isFocused, isError = _a.isError, id = _a.id, name = _a.name, isRequired = _a.isRequired, type = _a.type, defaultValue = _a.defaultValue, isDisabled = _a.isDisabled, isReadonly = _a.isReadonly, message = _a.message, isShowCounter = _a.isShowCounter, maxLength = _a.maxLength, onChange = _a.onChange, placeholder = _a.placeholder, externalValue = _a.value, className = _a.className, props = __rest(_a, ["label", "isFocused", "isError", "id", "name", "isRequired", "type", "defaultValue", "isDisabled", "isReadonly", "message", "isShowCounter", "maxLength", "onChange", "placeholder", "value", "className"]);
|
|
7469
7459
|
var uniqueID = useId();
|
|
7470
7460
|
var _b = useState(Boolean(isFocused)), isFocus = _b[0], setIsFocus = _b[1];
|
|
7471
7461
|
var _c = useState(externalValue || defaultValue || ""), value = _c[0], setValue = _c[1];
|
|
@@ -7503,11 +7493,11 @@ var TextInput = function (_a, ref) {
|
|
|
7503
7493
|
name = id;
|
|
7504
7494
|
return (React__default.createElement("div", { className: "relative" },
|
|
7505
7495
|
React__default.createElement(InputLabel, { isPlaceholder: true, label: label, isRequired: isRequired, id: id, isError: isError, isActive: true, isDisabled: isDisabled }),
|
|
7506
|
-
React__default.createElement(_BaseField, { onFocus: handleInputFocus, onBlur: handleInputBlur, onChange: onChange, onValueChange: setValue, ref: ref, type: type, name: name, id: id, className: cn("w-full rounded border py-2 px-3 text-sm font-normal leading-5", { "border-gray-300": !isFocus && !isError }, {
|
|
7496
|
+
React__default.createElement(_BaseField, __assign({ onFocus: handleInputFocus, onBlur: handleInputBlur, onChange: onChange, onValueChange: setValue, ref: ref, type: type, name: name, id: id, className: cn("w-full rounded border py-2 px-3 text-sm font-normal leading-5", { "border-gray-300": !isFocus && !isError }, {
|
|
7507
7497
|
"!border-purple-500 shadow-none outline-purple-500 focus:!ring-purple-500": isFocus && !isError
|
|
7508
7498
|
}, {
|
|
7509
7499
|
"!border-red-500 shadow-none focus:ring-red-500": isError
|
|
7510
|
-
}, className), isDisabled: isDisabled, isReadonly: isReadonly, value: value, defaultValue: defaultValue, maxLength: maxLength, placeholder: placeholder }),
|
|
7500
|
+
}, className), isDisabled: isDisabled, isReadonly: isReadonly, value: value, defaultValue: defaultValue, maxLength: maxLength, placeholder: placeholder }, props)),
|
|
7511
7501
|
React__default.createElement("div", { className: "flex flex-row space-x-3" },
|
|
7512
7502
|
React__default.createElement("div", { className: "grow" }, message && (React__default.createElement("span", { className: cn("mt-1 block text-sm", isError ? "text-red-500" : "text-gray-500") }, message))),
|
|
7513
7503
|
isShowCounter && (React__default.createElement("div", { className: "shrink-0" },
|
|
@@ -7793,23 +7783,24 @@ var Select = function (_a) {
|
|
|
7793
7783
|
|
|
7794
7784
|
/** Comment */
|
|
7795
7785
|
var Checkbox = function (_a) {
|
|
7796
|
-
var label = _a.label, id = _a.id, isDisabled = _a.isDisabled, isChecked = _a.isChecked, isRequired = _a.isRequired, isError = _a.isError, message = _a.message, value = _a.value, onChange = _a.onChange;
|
|
7786
|
+
var label = _a.label, id = _a.id, isDisabled = _a.isDisabled, isChecked = _a.isChecked, isRequired = _a.isRequired, isError = _a.isError, message = _a.message, value = _a.value, onChange = _a.onChange, hasBorder = _a.hasBorder, className = _a.className, props = __rest(_a, ["label", "id", "isDisabled", "isChecked", "isRequired", "isError", "message", "value", "onChange", "hasBorder", "className"]);
|
|
7797
7787
|
var uniqueID = useId();
|
|
7798
7788
|
if (!id)
|
|
7799
7789
|
id = "cb-".concat(uniqueID);
|
|
7800
|
-
var
|
|
7801
|
-
var wrapperStyles = cn('relative flex items-
|
|
7790
|
+
var checkboxStyles = cn('rounded-sm border-gray-300 text-sm font-normal leading-5 text-purple-600 focus:ring-purple-600', { 'border-red-500 shadow-none': isError });
|
|
7791
|
+
var wrapperStyles = cn('relative flex items-center min-h-[38px]', { 'opacity-50': isDisabled }, { 'rounded-sm ring-1 px-3 ring-gray-300': hasBorder }, { 'py-3': hasBorder && message }, className);
|
|
7802
7792
|
var handleChange = function (e) {
|
|
7803
|
-
|
|
7804
|
-
var
|
|
7793
|
+
console.log(e);
|
|
7794
|
+
var targetValue = e.target.value;
|
|
7795
|
+
var targetChecked = e.target.checked;
|
|
7805
7796
|
typeof onChange === 'function' && onChange(targetValue, targetChecked);
|
|
7806
7797
|
};
|
|
7807
7798
|
return (React__default.createElement("div", { className: wrapperStyles },
|
|
7808
|
-
React__default.createElement("div", { className: "flex items-center
|
|
7809
|
-
React__default.createElement("input", { id: id, "aria-describedby": "".concat(id, "-description"), name: id, value: value, type: "checkbox", className:
|
|
7799
|
+
React__default.createElement("div", { className: "flex items-center" },
|
|
7800
|
+
React__default.createElement("input", __assign({ id: id, "aria-describedby": "".concat(id, "-description"), name: id, value: value, type: "checkbox", className: checkboxStyles, disabled: isDisabled, checked: isChecked, onChange: function (e) {
|
|
7810
7801
|
handleChange(e);
|
|
7811
|
-
} })),
|
|
7812
|
-
React__default.createElement("div", { className: "ml-3 text-sm" },
|
|
7802
|
+
} }, props))),
|
|
7803
|
+
React__default.createElement("div", { className: "ml-3 text-sm " },
|
|
7813
7804
|
React__default.createElement("label", { htmlFor: id, className: "font-medium text-gray-700" },
|
|
7814
7805
|
React__default.createElement(InputLabel, { label: label, isRequired: isRequired, id: id })),
|
|
7815
7806
|
message && (React__default.createElement("p", { id: "".concat(id, "-description"), className: "text-gray-500" }, message)))));
|