@ballistix.digital/react-components 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +595 -0
- package/dist/index.esm.js +424 -332
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +441 -334
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
|
|
2
|
+
import { ArrowPathIcon, ExclamationCircleIcon, CheckIcon, ChevronDownIcon, EllipsisVerticalIcon, ChevronRightIcon, HomeIcon, ChevronLeftIcon, ArrowLongLeftIcon, ArrowLongRightIcon } from '@heroicons/react/20/solid';
|
|
2
3
|
import React, { useCallback, useMemo, Children, Fragment, useState, useEffect } from 'react';
|
|
3
|
-
import { Menu, Transition,
|
|
4
|
-
import { ChevronDownIcon, EllipsisVerticalIcon, ChevronLeftIcon, ChevronRightIcon, ArrowLongLeftIcon, ArrowLongRightIcon } from '@heroicons/react/20/solid';
|
|
4
|
+
import { Menu, Transition, Dialog } from '@headlessui/react';
|
|
5
5
|
|
|
6
6
|
/******************************************************************************
|
|
7
7
|
Copyright (c) Microsoft Corporation.
|
|
@@ -30,7 +30,9 @@ var __assign = function() {
|
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
var AvatarElement = function (props) {
|
|
33
|
-
var src = props.src, placeholder = props.placeholder,
|
|
33
|
+
var src = props.src, placeholder = props.placeholder,
|
|
34
|
+
// alt = 'avatar',
|
|
35
|
+
children = props.children, url = props.url, _a = props.size, size = _a === void 0 ? 'md' : _a, _b = props.figure, figure = _b === void 0 ? 'block' : _b, status = props.status, isDisabled = props.isDisabled, isLoading = props.isLoading, customStyles = props.styles;
|
|
34
36
|
var toClassName = useCallback(function () {
|
|
35
37
|
var values = [];
|
|
36
38
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -39,24 +41,44 @@ var AvatarElement = function (props) {
|
|
|
39
41
|
return values.filter(Boolean).join(' ');
|
|
40
42
|
}, []);
|
|
41
43
|
var style = useMemo(function () { return ({
|
|
44
|
+
loading: toClassName(styles$h.base.loading, size && styles$h[size].container, figure && styles$h[figure].container, isDisabled && styles$h.disabled.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.loading),
|
|
45
|
+
spinner: toClassName(styles$h.base.spinner, size && styles$h[size].container, figure && styles$h[figure].container, isDisabled && styles$h.disabled.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.spinner),
|
|
42
46
|
empty: toClassName(styles$h.base.empty, size && styles$h[size].container, figure && styles$h[figure].container, isDisabled && styles$h.disabled.container, isLoading && styles$h.loading.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.empty),
|
|
43
47
|
placeholder: toClassName(styles$h.base.placeholder, size && styles$h[size].container, figure && styles$h[figure].container, isDisabled && styles$h.disabled.container, isLoading && styles$h.loading.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.placeholder),
|
|
44
48
|
container: toClassName(styles$h.base.container, size && styles$h[size].container, figure && styles$h[figure].container, isDisabled && styles$h.disabled.container, isLoading && styles$h.loading.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
45
|
-
indicator: toClassName(styles$h.indicator.container, size && styles$h.indicator[size], figure && styles$h.indicator[figure], isDisabled && styles$h.indicator.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.indicator),
|
|
46
|
-
}); }, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
+
indicator: toClassName(styles$h.indicator.container, size && styles$h.indicator[size], figure && styles$h.indicator[figure], status && styles$h.indicator[status], isDisabled && styles$h.indicator.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.indicator),
|
|
50
|
+
}); }, [
|
|
51
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
52
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.empty,
|
|
53
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.indicator,
|
|
54
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.loading,
|
|
55
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.placeholder,
|
|
56
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.spinner,
|
|
57
|
+
figure,
|
|
58
|
+
isDisabled,
|
|
59
|
+
isLoading,
|
|
60
|
+
size,
|
|
61
|
+
status,
|
|
62
|
+
toClassName,
|
|
63
|
+
]);
|
|
64
|
+
if (isLoading) {
|
|
65
|
+
return (jsx("span", __assign({ className: style.loading }, { children: jsx(ArrowPathIcon, { className: style.spinner }) })));
|
|
66
|
+
}
|
|
67
|
+
if (!placeholder && !src) {
|
|
68
|
+
return (jsxs("span", __assign({ className: style.empty }, { children: [jsx("svg", __assign({ className: "h-full w-full text-gray-300", fill: "currentColor", viewBox: "0 0 24 24" }, { children: jsx("path", { d: "M24 20.993V24H0v-2.996A14.977 14.977 0 0112.004 15c4.904 0 9.26 2.354 11.996 5.993zM16.002 8.999a4 4 0 11-8 0 4 4 0 018 0z" }) })), status && jsx("span", { className: style.indicator })] })));
|
|
49
69
|
}
|
|
50
70
|
if (!src) {
|
|
51
|
-
return (
|
|
71
|
+
return (jsxs("span", __assign({ className: style.placeholder }, { children: [jsx("span", __assign({ className: "text-".concat(size, " font-medium leading-none text-white") }, { children: placeholder })), status && jsx("span", { className: style.indicator })] })));
|
|
52
72
|
}
|
|
53
|
-
return (jsx("a", __assign({ href: url }, { children: jsxs("div", __assign({ className: "flex items-center" }, { children: [jsxs("span", __assign({ className: "inline-block relative" }, { children: [jsx("
|
|
73
|
+
return (jsx("a", __assign({ href: url }, { children: jsxs("div", __assign({ className: "flex items-center" }, { children: [jsxs("span", __assign({ className: "inline-block relative" }, { children: [jsx("div", { className: style.container, style: { backgroundImage: "url(".concat(src, ")") } }), status && jsx("span", { className: style.indicator })] })), children && jsx("div", __assign({ className: "ml-3" }, { children: children }))] })) })));
|
|
54
74
|
};
|
|
55
75
|
|
|
56
76
|
var base$5 = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
77
|
+
loading: 'inline-block relative overflow-hidden bg-gray-50 flex items-center justify-center',
|
|
78
|
+
empty: 'inline-block relative overflow-hidden bg-gray-50 text-red-400',
|
|
79
|
+
placeholder: 'relative inline-flex items-center justify-center bg-gray-500',
|
|
80
|
+
container: 'inline-block bg-gray-100 bg-cover bg-center',
|
|
81
|
+
spinner: 'w-5 h-5 animate-spin text-gray-400',
|
|
60
82
|
};
|
|
61
83
|
var xs$1 = {
|
|
62
84
|
container: 'h-6 w-6',
|
|
@@ -94,15 +116,9 @@ var indicator$1 = {
|
|
|
94
116
|
md: 'h-2.5 w-2.5',
|
|
95
117
|
lg: 'h-3 w-3',
|
|
96
118
|
xl: 'h-3.5 w-3.5',
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
};
|
|
101
|
-
var offline = {
|
|
102
|
-
container: 'bg-gray-300',
|
|
103
|
-
};
|
|
104
|
-
var blocked = {
|
|
105
|
-
container: 'bg-red-400',
|
|
119
|
+
offline: 'bg-gray-300',
|
|
120
|
+
online: 'bg-green-400',
|
|
121
|
+
blocked: 'bg-red-400',
|
|
106
122
|
};
|
|
107
123
|
var styles$h = {
|
|
108
124
|
base: base$5,
|
|
@@ -116,161 +132,8 @@ var styles$h = {
|
|
|
116
132
|
disabled: disabled$2,
|
|
117
133
|
loading: loading$2,
|
|
118
134
|
indicator: indicator$1,
|
|
119
|
-
online: online,
|
|
120
|
-
offline: offline,
|
|
121
|
-
blocked: blocked,
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
var BadgeElement = function (props) {
|
|
125
|
-
var children = props.children, _a = props.color, color = _a === void 0 ? 'gray' : _a, _b = props.type, type = _b === void 0 ? 'normal' : _b, _c = props.size, size = _c === void 0 ? 'sm' : _c, _d = props.figure, figure = _d === void 0 ? 'block' : _d, isDisabled = props.isDisabled, isLoading = props.isLoading, onClose = props.onClose, customStyles = props.styles;
|
|
126
|
-
var toClassName = useCallback(function () {
|
|
127
|
-
var values = [];
|
|
128
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
129
|
-
values[_i] = arguments[_i];
|
|
130
|
-
}
|
|
131
|
-
return values.filter(Boolean).join(' ');
|
|
132
|
-
}, []);
|
|
133
|
-
var style = useMemo(function () { return ({
|
|
134
|
-
container: toClassName(type && styles$g[type].container, color && styles$g[color].container, size && styles$g[size].container, figure && styles$g[figure].container, isDisabled && styles$g.disabled.container, isLoading && styles$g.loading.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
135
|
-
indicator: toClassName(color && styles$g[color].indicator, size && styles$g[size].indicator, customStyles === null || customStyles === void 0 ? void 0 : customStyles.indicator),
|
|
136
|
-
button: toClassName('flex-shrink-0 ml-0.5 h-4 w-4 rounded-full inline-flex items-center justify-center focus:text-white focus:outline-none', color && styles$g[color].button, size && styles$g[size].button, customStyles === null || customStyles === void 0 ? void 0 : customStyles.button),
|
|
137
|
-
}); }, [customStyles]);
|
|
138
|
-
return (jsxs("span", __assign({ className: style.container }, { children: [type === 'indicator' && (jsx("svg", __assign({ className: style.indicator, fill: "currentColor", viewBox: "0 0 8 8" }, { children: jsx("circle", { cx: 4, cy: 4, r: 3 }) }))), children, type === 'close' && (jsxs("button", __assign({ type: "button", className: style.button, onClick: onClose }, { children: [jsx("span", __assign({ className: "sr-only" }, { children: "Remove large option" })), jsx("svg", __assign({ className: "h-2 w-2", stroke: "currentColor", fill: "none", viewBox: "0 0 8 8" }, { children: jsx("path", { strokeLinecap: "round", strokeWidth: "1.5", d: "M1 1l6 6m0-6L1 7" }) }))] })))] })));
|
|
139
|
-
};
|
|
140
|
-
|
|
141
|
-
var normal = {
|
|
142
|
-
container: 'inline-flex items-center px-2.5 py-0.5 font-medium',
|
|
143
|
-
};
|
|
144
|
-
var indicator = {
|
|
145
|
-
container: 'inline-flex items-center px-2.5 py-0.5 font-medium',
|
|
146
|
-
};
|
|
147
|
-
var close = {
|
|
148
|
-
container: 'inline-flex items-center pl-2.5 pr-1 py-0.5 font-medium',
|
|
149
|
-
};
|
|
150
|
-
var primary$1 = {
|
|
151
|
-
container: "shadow-sm text-white bg-indigo-600 hover:bg-indigo-700",
|
|
152
|
-
};
|
|
153
|
-
var secondary$1 = {
|
|
154
|
-
container: "shadow-none text-indigo-700 bg-indigo-100 hover:bg-indigo-200",
|
|
155
|
-
};
|
|
156
|
-
var outline$1 = {
|
|
157
|
-
container: "border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
158
|
-
};
|
|
159
|
-
var sm$1 = {
|
|
160
|
-
container: 'text-xs',
|
|
161
|
-
indicator: 'mr-1.5 h-2 w-2 ',
|
|
162
|
-
button: '',
|
|
163
|
-
};
|
|
164
|
-
var lg$1 = {
|
|
165
|
-
container: 'text-sm',
|
|
166
|
-
indicator: '-ml-0.5 mr-1.5 h-2 w-2',
|
|
167
|
-
button: '',
|
|
168
|
-
};
|
|
169
|
-
var block$1 = {
|
|
170
|
-
container: 'rounded-md',
|
|
171
|
-
};
|
|
172
|
-
var rounded$1 = {
|
|
173
|
-
container: 'rounded-full',
|
|
174
|
-
};
|
|
175
|
-
var gray = {
|
|
176
|
-
container: 'bg-gray-100 text-gray-800',
|
|
177
|
-
indicator: 'text-gray-400',
|
|
178
|
-
button: 'text-gray-400 hover:bg-gray-200 hover:text-gray-500 focus:bg-gray-500',
|
|
179
|
-
};
|
|
180
|
-
var red = {
|
|
181
|
-
container: 'bg-red-100 text-red-800',
|
|
182
|
-
indicator: 'text-red-400',
|
|
183
|
-
button: 'text-red-400 hover:bg-red-200 hover:text-red-500 focus:bg-red-500',
|
|
184
|
-
};
|
|
185
|
-
var yellow = {
|
|
186
|
-
container: 'bg-yellow-100 text-yellow-800',
|
|
187
|
-
indicator: 'text-yellow-400',
|
|
188
|
-
button: 'text-yellow-400 hover:bg-yellow-200 hover:text-yellow-500 focus:bg-yellow-500',
|
|
189
|
-
};
|
|
190
|
-
var green = {
|
|
191
|
-
container: 'bg-green-100 text-green-800',
|
|
192
|
-
indicator: 'text-green-400',
|
|
193
|
-
button: 'text-green-400 hover:bg-green-200 hover:text-green-500 focus:bg-green-500',
|
|
194
|
-
};
|
|
195
|
-
var blue = {
|
|
196
|
-
container: 'bg-blue-100 text-blue-800',
|
|
197
|
-
indicator: 'text-blue-400',
|
|
198
|
-
button: 'text-blue-400 hover:bg-blue-200 hover:text-blue-500 focus:bg-blue-500',
|
|
199
|
-
};
|
|
200
|
-
var indigo = {
|
|
201
|
-
container: 'bg-indigo-100 text-indigo-800',
|
|
202
|
-
indicator: 'text-indigo-400',
|
|
203
|
-
button: 'text-indigo-400 hover:bg-indigo-200 hover:text-indigo-500 focus:outline-none focus:bg-indigo-500',
|
|
204
|
-
};
|
|
205
|
-
var purple = {
|
|
206
|
-
container: 'bg-purple-100 text-purple-800',
|
|
207
|
-
indicator: 'text-purple-400',
|
|
208
|
-
button: 'text-purple-400 hover:bg-purple-200 hover:text-purple-500 focus:bg-purple-500',
|
|
209
|
-
};
|
|
210
|
-
var pink = {
|
|
211
|
-
container: 'bg-pink-100 text-pink-800',
|
|
212
|
-
indicator: 'text-pink-400',
|
|
213
|
-
button: 'text-pink-400 hover:bg-pink-200 hover:text-pink-500 focus:bg-purple-500',
|
|
214
|
-
};
|
|
215
|
-
var disabled$1 = {
|
|
216
|
-
container: 'opacity-20 cursor-not-allowed',
|
|
217
|
-
};
|
|
218
|
-
var loading$1 = {
|
|
219
|
-
container: 'cursor-progress',
|
|
220
|
-
};
|
|
221
|
-
var styles$g = {
|
|
222
|
-
normal: normal,
|
|
223
|
-
indicator: indicator,
|
|
224
|
-
close: close,
|
|
225
|
-
primary: primary$1,
|
|
226
|
-
secondary: secondary$1,
|
|
227
|
-
outline: outline$1,
|
|
228
|
-
sm: sm$1,
|
|
229
|
-
lg: lg$1,
|
|
230
|
-
block: block$1,
|
|
231
|
-
rounded: rounded$1,
|
|
232
|
-
gray: gray,
|
|
233
|
-
red: red,
|
|
234
|
-
yellow: yellow,
|
|
235
|
-
green: green,
|
|
236
|
-
blue: blue,
|
|
237
|
-
indigo: indigo,
|
|
238
|
-
purple: purple,
|
|
239
|
-
pink: pink,
|
|
240
|
-
disabled: disabled$1,
|
|
241
|
-
loading: loading$1,
|
|
242
135
|
};
|
|
243
136
|
|
|
244
|
-
function styleInject(css, ref) {
|
|
245
|
-
if ( ref === void 0 ) ref = {};
|
|
246
|
-
var insertAt = ref.insertAt;
|
|
247
|
-
|
|
248
|
-
if (!css || typeof document === 'undefined') { return; }
|
|
249
|
-
|
|
250
|
-
var head = document.head || document.getElementsByTagName('head')[0];
|
|
251
|
-
var style = document.createElement('style');
|
|
252
|
-
style.type = 'text/css';
|
|
253
|
-
|
|
254
|
-
if (insertAt === 'top') {
|
|
255
|
-
if (head.firstChild) {
|
|
256
|
-
head.insertBefore(style, head.firstChild);
|
|
257
|
-
} else {
|
|
258
|
-
head.appendChild(style);
|
|
259
|
-
}
|
|
260
|
-
} else {
|
|
261
|
-
head.appendChild(style);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
if (style.styleSheet) {
|
|
265
|
-
style.styleSheet.cssText = css;
|
|
266
|
-
} else {
|
|
267
|
-
style.appendChild(document.createTextNode(css));
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
var css_248z = "/*\n! tailwindcss v3.2.6 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n border-width: 0; /* 2 */\n border-style: solid; /* 2 */\n border-color: #e5e7eb; /* 2 */\n}\n\n::before,\n::after {\n --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured `sans` font-family by default.\n5. Use the user's configured `sans` font-feature-settings by default.\n*/\n\nhtml {\n line-height: 1.5; /* 1 */\n -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */\n tab-size: 4; /* 3 */\n font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"; /* 4 */\n font-feature-settings: normal; /* 5 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.\n*/\n\nbody {\n margin: 0; /* 1 */\n line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n height: 0; /* 1 */\n color: inherit; /* 2 */\n border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n font-size: inherit;\n font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n color: inherit;\n text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n font-weight: bolder;\n}\n\n/*\n1. Use the user's configured `mono` font family by default.\n2. Correct the odd `em` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n font-size: 80%;\n}\n\n/*\nPrevent `sub` and `sup` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n}\n\nsub {\n bottom: -0.25em;\n}\n\nsup {\n top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n text-indent: 0; /* 1 */\n border-color: inherit; /* 2 */\n border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n font-family: inherit; /* 1 */\n font-size: 100%; /* 1 */\n font-weight: inherit; /* 1 */\n line-height: inherit; /* 1 */\n color: inherit; /* 1 */\n margin: 0; /* 2 */\n padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\n[type='button'],\n[type='reset'],\n[type='submit'] {\n -webkit-appearance: button; /* 1 */\n background-color: transparent; /* 2 */\n background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n outline: auto;\n}\n\n/*\nRemove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to `inherit` in Safari.\n*/\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n margin: 0;\n}\n\nfieldset {\n margin: 0;\n padding: 0;\n}\n\nlegend {\n padding: 0;\n}\n\nol,\nul,\nmenu {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n opacity: 1; /* 1 */\n color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role=\"button\"] {\n cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n cursor: default;\n}\n\n/*\n1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)\n This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n display: block; /* 1 */\n vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n max-width: 100%;\n height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n display: none;\n}\n\n*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n}\n.container {\n width: 100%;\n}\n@media (min-width: 640px) {\n\n .container {\n max-width: 640px;\n }\n}\n@media (min-width: 768px) {\n\n .container {\n max-width: 768px;\n }\n}\n@media (min-width: 1024px) {\n\n .container {\n max-width: 1024px;\n }\n}\n@media (min-width: 1280px) {\n\n .container {\n max-width: 1280px;\n }\n}\n@media (min-width: 1536px) {\n\n .container {\n max-width: 1536px;\n }\n}\n.sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n.pointer-events-none {\n pointer-events: none;\n}\n.pointer-events-auto {\n pointer-events: auto;\n}\n.fixed {\n position: fixed;\n}\n.absolute {\n position: absolute;\n}\n.relative {\n position: relative;\n}\n.sticky {\n position: sticky;\n}\n.inset-0 {\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n}\n.inset-y-0 {\n top: 0px;\n bottom: 0px;\n}\n.bottom-0 {\n bottom: 0px;\n}\n.left-0 {\n left: 0px;\n}\n.right-0 {\n right: 0px;\n}\n.top-0 {\n top: 0px;\n}\n.isolate {\n isolation: isolate;\n}\n.z-0 {\n z-index: 0;\n}\n.z-10 {\n z-index: 10;\n}\n.z-20 {\n z-index: 20;\n}\n.mx-auto {\n margin-left: auto;\n margin-right: auto;\n}\n.-mb-px {\n margin-bottom: -1px;\n}\n.-ml-0 {\n margin-left: -0px;\n}\n.-ml-0\\.5 {\n margin-left: -0.125rem;\n}\n.-ml-px {\n margin-left: -1px;\n}\n.-mr-1 {\n margin-right: -0.25rem;\n}\n.-mt-px {\n margin-top: -1px;\n}\n.mb-4 {\n margin-bottom: 1rem;\n}\n.ml-0 {\n margin-left: 0px;\n}\n.ml-0\\.5 {\n margin-left: 0.125rem;\n}\n.ml-2 {\n margin-left: 0.5rem;\n}\n.ml-3 {\n margin-left: 0.75rem;\n}\n.mr-1 {\n margin-right: 0.25rem;\n}\n.mr-1\\.5 {\n margin-right: 0.375rem;\n}\n.mr-3 {\n margin-right: 0.75rem;\n}\n.mr-4 {\n margin-right: 1rem;\n}\n.mt-1 {\n margin-top: 0.25rem;\n}\n.mt-2 {\n margin-top: 0.5rem;\n}\n.mt-5 {\n margin-top: 1.25rem;\n}\n.block {\n display: block;\n}\n.inline-block {\n display: inline-block;\n}\n.flex {\n display: flex;\n}\n.inline-flex {\n display: inline-flex;\n}\n.hidden {\n display: none;\n}\n.h-1 {\n height: 0.25rem;\n}\n.h-1\\.5 {\n height: 0.375rem;\n}\n.h-10 {\n height: 2.5rem;\n}\n.h-12 {\n height: 3rem;\n}\n.h-14 {\n height: 3.5rem;\n}\n.h-16 {\n height: 4rem;\n}\n.h-2 {\n height: 0.5rem;\n}\n.h-2\\.5 {\n height: 0.625rem;\n}\n.h-3 {\n height: 0.75rem;\n}\n.h-3\\.5 {\n height: 0.875rem;\n}\n.h-32 {\n height: 8rem;\n}\n.h-4 {\n height: 1rem;\n}\n.h-5 {\n height: 1.25rem;\n}\n.h-6 {\n height: 1.5rem;\n}\n.h-7 {\n height: 1.75rem;\n}\n.h-8 {\n height: 2rem;\n}\n.h-full {\n height: 100%;\n}\n.min-h-0 {\n min-height: 0px;\n}\n.min-h-full {\n min-height: 100%;\n}\n.w-0 {\n width: 0px;\n}\n.w-1 {\n width: 0.25rem;\n}\n.w-1\\.5 {\n width: 0.375rem;\n}\n.w-10 {\n width: 2.5rem;\n}\n.w-12 {\n width: 3rem;\n}\n.w-14 {\n width: 3.5rem;\n}\n.w-16 {\n width: 4rem;\n}\n.w-2 {\n width: 0.5rem;\n}\n.w-2\\.5 {\n width: 0.625rem;\n}\n.w-3 {\n width: 0.75rem;\n}\n.w-3\\.5 {\n width: 0.875rem;\n}\n.w-4 {\n width: 1rem;\n}\n.w-48 {\n width: 12rem;\n}\n.w-5 {\n width: 1.25rem;\n}\n.w-56 {\n width: 14rem;\n}\n.w-6 {\n width: 1.5rem;\n}\n.w-7 {\n width: 1.75rem;\n}\n.w-8 {\n width: 2rem;\n}\n.w-auto {\n width: auto;\n}\n.w-full {\n width: 100%;\n}\n.w-screen {\n width: 100vw;\n}\n.max-w-2xl {\n max-width: 42rem;\n}\n.max-w-4xl {\n max-width: 56rem;\n}\n.max-w-7xl {\n max-width: 80rem;\n}\n.max-w-full {\n max-width: 100%;\n}\n.max-w-lg {\n max-width: 32rem;\n}\n.max-w-md {\n max-width: 28rem;\n}\n.max-w-sm {\n max-width: 24rem;\n}\n.max-w-xs {\n max-width: 20rem;\n}\n.flex-1 {\n flex: 1 1 0%;\n}\n.flex-shrink-0 {\n flex-shrink: 0;\n}\n.origin-top-right {\n transform-origin: top right;\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-0 {\n --tw-translate-x: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-1\\/2 {\n --tw-translate-x: 50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-x-full {\n --tw-translate-x: 100%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-2 {\n --tw-translate-y: 0.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.translate-y-4 {\n --tw-translate-y: 1rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.scale-95 {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.transform {\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n.cursor-not-allowed {\n cursor: not-allowed;\n}\n.cursor-pointer {\n cursor: pointer;\n}\n.cursor-progress {\n cursor: progress;\n}\n.flex-row-reverse {\n flex-direction: row-reverse;\n}\n.flex-col {\n flex-direction: column;\n}\n.items-end {\n align-items: flex-end;\n}\n.items-center {\n align-items: center;\n}\n.justify-start {\n justify-content: flex-start;\n}\n.justify-end {\n justify-content: flex-end;\n}\n.justify-center {\n justify-content: center;\n}\n.justify-between {\n justify-content: space-between;\n}\n.-space-x-px > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(-1px * var(--tw-space-x-reverse));\n margin-left: calc(-1px * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-x-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(1rem * var(--tw-space-x-reverse));\n margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-x-8 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-x-reverse: 0;\n margin-right: calc(2rem * var(--tw-space-x-reverse));\n margin-left: calc(2rem * calc(1 - var(--tw-space-x-reverse)));\n}\n.space-y-1 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));\n}\n.space-y-3 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));\n}\n.space-y-4 > :not([hidden]) ~ :not([hidden]) {\n --tw-space-y-reverse: 0;\n margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));\n margin-bottom: calc(1rem * var(--tw-space-y-reverse));\n}\n.divide-y > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--tw-divide-y-reverse));\n}\n.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(243 244 246 / var(--tw-divide-opacity));\n}\n.divide-gray-200 > :not([hidden]) ~ :not([hidden]) {\n --tw-divide-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-divide-opacity));\n}\n.self-end {\n align-self: flex-end;\n}\n.self-center {\n align-self: center;\n}\n.overflow-hidden {\n overflow: hidden;\n}\n.overflow-y-auto {\n overflow-y: auto;\n}\n.whitespace-nowrap {\n white-space: nowrap;\n}\n.rounded {\n border-radius: 0.25rem;\n}\n.rounded-full {\n border-radius: 9999px;\n}\n.rounded-lg {\n border-radius: 0.5rem;\n}\n.rounded-md {\n border-radius: 0.375rem;\n}\n.rounded-l-md {\n border-top-left-radius: 0.375rem;\n border-bottom-left-radius: 0.375rem;\n}\n.rounded-r-md {\n border-top-right-radius: 0.375rem;\n border-bottom-right-radius: 0.375rem;\n}\n.border {\n border-width: 1px;\n}\n.border-b {\n border-bottom-width: 1px;\n}\n.border-b-2 {\n border-bottom-width: 2px;\n}\n.border-r {\n border-right-width: 1px;\n}\n.border-t {\n border-top-width: 1px;\n}\n.border-t-2 {\n border-top-width: 2px;\n}\n.border-gray-200 {\n --tw-border-opacity: 1;\n border-color: rgb(229 231 235 / var(--tw-border-opacity));\n}\n.border-gray-300 {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.border-indigo-500 {\n --tw-border-opacity: 1;\n border-color: rgb(99 102 241 / var(--tw-border-opacity));\n}\n.border-transparent {\n border-color: transparent;\n}\n.bg-blue-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(219 234 254 / var(--tw-bg-opacity));\n}\n.bg-gray-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.bg-gray-300 {\n --tw-bg-opacity: 1;\n background-color: rgb(209 213 219 / var(--tw-bg-opacity));\n}\n.bg-gray-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}\n.bg-gray-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(107 114 128 / var(--tw-bg-opacity));\n}\n.bg-gray-700 {\n --tw-bg-opacity: 1;\n background-color: rgb(55 65 81 / var(--tw-bg-opacity));\n}\n.bg-gray-800 {\n --tw-bg-opacity: 1;\n background-color: rgb(31 41 55 / var(--tw-bg-opacity));\n}\n.bg-gray-900 {\n --tw-bg-opacity: 1;\n background-color: rgb(17 24 39 / var(--tw-bg-opacity));\n}\n.bg-green-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(220 252 231 / var(--tw-bg-opacity));\n}\n.bg-green-400 {\n --tw-bg-opacity: 1;\n background-color: rgb(74 222 128 / var(--tw-bg-opacity));\n}\n.bg-indigo-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(224 231 255 / var(--tw-bg-opacity));\n}\n.bg-indigo-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(238 242 255 / var(--tw-bg-opacity));\n}\n.bg-indigo-600 {\n --tw-bg-opacity: 1;\n background-color: rgb(79 70 229 / var(--tw-bg-opacity));\n}\n.bg-pink-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(252 231 243 / var(--tw-bg-opacity));\n}\n.bg-purple-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(243 232 255 / var(--tw-bg-opacity));\n}\n.bg-purple-500 {\n --tw-bg-opacity: 1;\n background-color: rgb(168 85 247 / var(--tw-bg-opacity));\n}\n.bg-red-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 226 226 / var(--tw-bg-opacity));\n}\n.bg-red-400 {\n --tw-bg-opacity: 1;\n background-color: rgb(248 113 113 / var(--tw-bg-opacity));\n}\n.bg-red-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 242 242 / var(--tw-bg-opacity));\n}\n.bg-white {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.bg-yellow-100 {\n --tw-bg-opacity: 1;\n background-color: rgb(254 249 195 / var(--tw-bg-opacity));\n}\n.bg-opacity-75 {\n --tw-bg-opacity: 0.75;\n}\n.p-1 {\n padding: 0.25rem;\n}\n.p-2 {\n padding: 0.5rem;\n}\n.p-4 {\n padding: 1rem;\n}\n.px-1 {\n padding-left: 0.25rem;\n padding-right: 0.25rem;\n}\n.px-2 {\n padding-left: 0.5rem;\n padding-right: 0.5rem;\n}\n.px-2\\.5 {\n padding-left: 0.625rem;\n padding-right: 0.625rem;\n}\n.px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem;\n}\n.px-3\\.5 {\n padding-left: 0.875rem;\n padding-right: 0.875rem;\n}\n.px-4 {\n padding-left: 1rem;\n padding-right: 1rem;\n}\n.px-5 {\n padding-left: 1.25rem;\n padding-right: 1.25rem;\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n}\n.py-0 {\n padding-top: 0px;\n padding-bottom: 0px;\n}\n.py-0\\.5 {\n padding-top: 0.125rem;\n padding-bottom: 0.125rem;\n}\n.py-1 {\n padding-top: 0.25rem;\n padding-bottom: 0.25rem;\n}\n.py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem;\n}\n.py-2 {\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n}\n.py-2\\.5 {\n padding-top: 0.625rem;\n padding-bottom: 0.625rem;\n}\n.py-3 {\n padding-top: 0.75rem;\n padding-bottom: 0.75rem;\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem;\n}\n.py-5 {\n padding-top: 1.25rem;\n padding-bottom: 1.25rem;\n}\n.py-6 {\n padding-top: 1.5rem;\n padding-bottom: 1.5rem;\n}\n.pb-3 {\n padding-bottom: 0.75rem;\n}\n.pb-4 {\n padding-bottom: 1rem;\n}\n.pl-10 {\n padding-left: 2.5rem;\n}\n.pl-2 {\n padding-left: 0.5rem;\n}\n.pl-2\\.5 {\n padding-left: 0.625rem;\n}\n.pl-3 {\n padding-left: 0.75rem;\n}\n.pr-1 {\n padding-right: 0.25rem;\n}\n.pr-2 {\n padding-right: 0.5rem;\n}\n.pr-3 {\n padding-right: 0.75rem;\n}\n.pt-16 {\n padding-top: 4rem;\n}\n.pt-2 {\n padding-top: 0.5rem;\n}\n.pt-4 {\n padding-top: 1rem;\n}\n.pt-5 {\n padding-top: 1.25rem;\n}\n.text-left {\n text-align: left;\n}\n.text-center {\n text-align: center;\n}\n.text-base {\n font-size: 1rem;\n line-height: 1.5rem;\n}\n.text-lg {\n font-size: 1.125rem;\n line-height: 1.75rem;\n}\n.text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n}\n.text-xs {\n font-size: 0.75rem;\n line-height: 1rem;\n}\n.font-bold {\n font-weight: 700;\n}\n.font-medium {\n font-weight: 500;\n}\n.leading-5 {\n line-height: 1.25rem;\n}\n.leading-none {\n line-height: 1;\n}\n.text-blue-400 {\n --tw-text-opacity: 1;\n color: rgb(96 165 250 / var(--tw-text-opacity));\n}\n.text-blue-800 {\n --tw-text-opacity: 1;\n color: rgb(30 64 175 / var(--tw-text-opacity));\n}\n.text-gray-300 {\n --tw-text-opacity: 1;\n color: rgb(209 213 219 / var(--tw-text-opacity));\n}\n.text-gray-400 {\n --tw-text-opacity: 1;\n color: rgb(156 163 175 / var(--tw-text-opacity));\n}\n.text-gray-500 {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.text-gray-600 {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity));\n}\n.text-gray-700 {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n.text-gray-800 {\n --tw-text-opacity: 1;\n color: rgb(31 41 55 / var(--tw-text-opacity));\n}\n.text-gray-900 {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.text-green-400 {\n --tw-text-opacity: 1;\n color: rgb(74 222 128 / var(--tw-text-opacity));\n}\n.text-green-800 {\n --tw-text-opacity: 1;\n color: rgb(22 101 52 / var(--tw-text-opacity));\n}\n.text-indigo-400 {\n --tw-text-opacity: 1;\n color: rgb(129 140 248 / var(--tw-text-opacity));\n}\n.text-indigo-600 {\n --tw-text-opacity: 1;\n color: rgb(79 70 229 / var(--tw-text-opacity));\n}\n.text-indigo-700 {\n --tw-text-opacity: 1;\n color: rgb(67 56 202 / var(--tw-text-opacity));\n}\n.text-indigo-800 {\n --tw-text-opacity: 1;\n color: rgb(55 48 163 / var(--tw-text-opacity));\n}\n.text-pink-400 {\n --tw-text-opacity: 1;\n color: rgb(244 114 182 / var(--tw-text-opacity));\n}\n.text-pink-800 {\n --tw-text-opacity: 1;\n color: rgb(157 23 77 / var(--tw-text-opacity));\n}\n.text-purple-400 {\n --tw-text-opacity: 1;\n color: rgb(192 132 252 / var(--tw-text-opacity));\n}\n.text-purple-800 {\n --tw-text-opacity: 1;\n color: rgb(107 33 168 / var(--tw-text-opacity));\n}\n.text-red-400 {\n --tw-text-opacity: 1;\n color: rgb(248 113 113 / var(--tw-text-opacity));\n}\n.text-red-800 {\n --tw-text-opacity: 1;\n color: rgb(153 27 27 / var(--tw-text-opacity));\n}\n.text-white {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.text-yellow-400 {\n --tw-text-opacity: 1;\n color: rgb(250 204 21 / var(--tw-text-opacity));\n}\n.text-yellow-800 {\n --tw-text-opacity: 1;\n color: rgb(133 77 14 / var(--tw-text-opacity));\n}\n.underline {\n text-decoration-line: underline;\n}\n.placeholder-gray-400::placeholder {\n --tw-placeholder-opacity: 1;\n color: rgb(156 163 175 / var(--tw-placeholder-opacity));\n}\n.opacity-0 {\n opacity: 0;\n}\n.opacity-100 {\n opacity: 1;\n}\n.opacity-20 {\n opacity: 0.2;\n}\n.shadow {\n --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-lg {\n --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-none {\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-sm {\n --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.shadow-xl {\n --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n.outline {\n outline-style: solid;\n}\n.ring-1 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.ring-2 {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.ring-black {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity));\n}\n.ring-white {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity));\n}\n.ring-opacity-5 {\n --tw-ring-opacity: 0.05;\n}\n.filter {\n filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);\n}\n.transition {\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.transition-opacity {\n transition-property: opacity;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms;\n}\n.duration-100 {\n transition-duration: 100ms;\n}\n.duration-200 {\n transition-duration: 200ms;\n}\n.duration-300 {\n transition-duration: 300ms;\n}\n.duration-500 {\n transition-duration: 500ms;\n}\n.duration-75 {\n transition-duration: 75ms;\n}\n.ease-in {\n transition-timing-function: cubic-bezier(0.4, 0, 1, 1);\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n}\n.ease-out {\n transition-timing-function: cubic-bezier(0, 0, 0.2, 1);\n}\n.hover\\:border-gray-300:hover {\n --tw-border-opacity: 1;\n border-color: rgb(209 213 219 / var(--tw-border-opacity));\n}\n.hover\\:bg-blue-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(191 219 254 / var(--tw-bg-opacity));\n}\n.hover\\:bg-gray-100:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(243 244 246 / var(--tw-bg-opacity));\n}\n.hover\\:bg-gray-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(229 231 235 / var(--tw-bg-opacity));\n}\n.hover\\:bg-gray-50:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(249 250 251 / var(--tw-bg-opacity));\n}\n.hover\\:bg-gray-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(55 65 81 / var(--tw-bg-opacity));\n}\n.hover\\:bg-green-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(187 247 208 / var(--tw-bg-opacity));\n}\n.hover\\:bg-indigo-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(199 210 254 / var(--tw-bg-opacity));\n}\n.hover\\:bg-indigo-700:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(67 56 202 / var(--tw-bg-opacity));\n}\n.hover\\:bg-pink-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(251 207 232 / var(--tw-bg-opacity));\n}\n.hover\\:bg-purple-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(233 213 255 / var(--tw-bg-opacity));\n}\n.hover\\:bg-red-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(254 202 202 / var(--tw-bg-opacity));\n}\n.hover\\:bg-yellow-200:hover {\n --tw-bg-opacity: 1;\n background-color: rgb(254 240 138 / var(--tw-bg-opacity));\n}\n.hover\\:text-blue-500:hover {\n --tw-text-opacity: 1;\n color: rgb(59 130 246 / var(--tw-text-opacity));\n}\n.hover\\:text-gray-500:hover {\n --tw-text-opacity: 1;\n color: rgb(107 114 128 / var(--tw-text-opacity));\n}\n.hover\\:text-gray-600:hover {\n --tw-text-opacity: 1;\n color: rgb(75 85 99 / var(--tw-text-opacity));\n}\n.hover\\:text-gray-700:hover {\n --tw-text-opacity: 1;\n color: rgb(55 65 81 / var(--tw-text-opacity));\n}\n.hover\\:text-gray-900:hover {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.hover\\:text-green-500:hover {\n --tw-text-opacity: 1;\n color: rgb(34 197 94 / var(--tw-text-opacity));\n}\n.hover\\:text-indigo-500:hover {\n --tw-text-opacity: 1;\n color: rgb(99 102 241 / var(--tw-text-opacity));\n}\n.hover\\:text-pink-500:hover {\n --tw-text-opacity: 1;\n color: rgb(236 72 153 / var(--tw-text-opacity));\n}\n.hover\\:text-purple-500:hover {\n --tw-text-opacity: 1;\n color: rgb(168 85 247 / var(--tw-text-opacity));\n}\n.hover\\:text-red-500:hover {\n --tw-text-opacity: 1;\n color: rgb(239 68 68 / var(--tw-text-opacity));\n}\n.hover\\:text-white:hover {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.hover\\:text-yellow-500:hover {\n --tw-text-opacity: 1;\n color: rgb(234 179 8 / var(--tw-text-opacity));\n}\n.focus\\:z-10:focus {\n z-index: 10;\n}\n.focus\\:z-20:focus {\n z-index: 20;\n}\n.focus\\:border-indigo-500:focus {\n --tw-border-opacity: 1;\n border-color: rgb(99 102 241 / var(--tw-border-opacity));\n}\n.focus\\:border-white:focus {\n --tw-border-opacity: 1;\n border-color: rgb(255 255 255 / var(--tw-border-opacity));\n}\n.focus\\:bg-blue-500:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(59 130 246 / var(--tw-bg-opacity));\n}\n.focus\\:bg-gray-500:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(107 114 128 / var(--tw-bg-opacity));\n}\n.focus\\:bg-green-500:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(34 197 94 / var(--tw-bg-opacity));\n}\n.focus\\:bg-indigo-500:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(99 102 241 / var(--tw-bg-opacity));\n}\n.focus\\:bg-purple-500:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(168 85 247 / var(--tw-bg-opacity));\n}\n.focus\\:bg-red-500:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(239 68 68 / var(--tw-bg-opacity));\n}\n.focus\\:bg-white:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(255 255 255 / var(--tw-bg-opacity));\n}\n.focus\\:bg-yellow-500:focus {\n --tw-bg-opacity: 1;\n background-color: rgb(234 179 8 / var(--tw-bg-opacity));\n}\n.focus\\:text-gray-900:focus {\n --tw-text-opacity: 1;\n color: rgb(17 24 39 / var(--tw-text-opacity));\n}\n.focus\\:text-white:focus {\n --tw-text-opacity: 1;\n color: rgb(255 255 255 / var(--tw-text-opacity));\n}\n.focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px;\n}\n.focus\\:ring-1:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:ring-2:focus {\n --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n}\n.focus\\:ring-inset:focus {\n --tw-ring-inset: inset;\n}\n.focus\\:ring-indigo-500:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity));\n}\n.focus\\:ring-white:focus {\n --tw-ring-opacity: 1;\n --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity));\n}\n.focus\\:ring-offset-2:focus {\n --tw-ring-offset-width: 2px;\n}\n.focus\\:ring-offset-gray-100:focus {\n --tw-ring-offset-color: #f3f4f6;\n}\n.focus\\:ring-offset-gray-800:focus {\n --tw-ring-offset-color: #1f2937;\n}\n@media (min-width: 640px) {\n\n .sm\\:static {\n position: static;\n }\n\n .sm\\:inset-auto {\n top: auto;\n right: auto;\n bottom: auto;\n left: auto;\n }\n\n .sm\\:mb-0 {\n margin-bottom: 0px;\n }\n\n .sm\\:mb-4 {\n margin-bottom: 1rem;\n }\n\n .sm\\:ml-6 {\n margin-left: 1.5rem;\n }\n\n .sm\\:mr-4 {\n margin-right: 1rem;\n }\n\n .sm\\:block {\n display: block;\n }\n\n .sm\\:flex {\n display: flex;\n }\n\n .sm\\:hidden {\n display: none;\n }\n\n .sm\\:w-1\\/6 {\n width: 16.666667%;\n }\n\n .sm\\:w-32 {\n width: 8rem;\n }\n\n .sm\\:w-full {\n width: 100%;\n }\n\n .sm\\:max-w-2xl {\n max-width: 42rem;\n }\n\n .sm\\:max-w-4xl {\n max-width: 56rem;\n }\n\n .sm\\:max-w-md {\n max-width: 28rem;\n }\n\n .sm\\:max-w-sm {\n max-width: 24rem;\n }\n\n .sm\\:max-w-xs {\n max-width: 20rem;\n }\n\n .sm\\:flex-1 {\n flex: 1 1 0%;\n }\n\n .sm\\:translate-x-0 {\n --tw-translate-x: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n\n .sm\\:translate-x-2 {\n --tw-translate-x: 0.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n\n .sm\\:translate-y-0 {\n --tw-translate-y: 0px;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n\n .sm\\:scale-100 {\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n\n .sm\\:scale-95 {\n --tw-scale-x: .95;\n --tw-scale-y: .95;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n }\n\n .sm\\:items-start {\n align-items: flex-start;\n }\n\n .sm\\:items-end {\n align-items: flex-end;\n }\n\n .sm\\:items-center {\n align-items: center;\n }\n\n .sm\\:items-stretch {\n align-items: stretch;\n }\n\n .sm\\:justify-start {\n justify-content: flex-start;\n }\n\n .sm\\:justify-between {\n justify-content: space-between;\n }\n\n .sm\\:rounded-lg {\n border-radius: 0.5rem;\n }\n\n .sm\\:rounded-md {\n border-radius: 0.375rem;\n }\n\n .sm\\:p-0 {\n padding: 0px;\n }\n\n .sm\\:p-6 {\n padding: 1.5rem;\n }\n\n .sm\\:px-0 {\n padding-left: 0px;\n padding-right: 0px;\n }\n\n .sm\\:px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem;\n }\n\n .sm\\:pr-0 {\n padding-right: 0px;\n }\n\n .sm\\:text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n .sm\\:duration-700 {\n transition-duration: 700ms;\n }\n}\n@media (min-width: 768px) {\n\n .md\\:-mt-px {\n margin-top: -1px;\n }\n\n .md\\:mb-0 {\n margin-bottom: 0px;\n }\n\n .md\\:flex {\n display: flex;\n }\n}\n@media (min-width: 1024px) {\n\n .lg\\:ml-6 {\n margin-left: 1.5rem;\n }\n\n .lg\\:block {\n display: block;\n }\n\n .lg\\:hidden {\n display: none;\n }\n\n .lg\\:max-w-xs {\n max-width: 20rem;\n }\n\n .lg\\:justify-end {\n justify-content: flex-end;\n }\n\n .lg\\:px-8 {\n padding-left: 2rem;\n padding-right: 2rem;\n }\n}";
|
|
272
|
-
styleInject(css_248z);
|
|
273
|
-
|
|
274
137
|
var ButtonElement = function (props) {
|
|
275
138
|
var children = props.children, _a = props.type, type = _a === void 0 ? 'primary' : _a, _b = props.size, size = _b === void 0 ? 'md' : _b, _c = props.figure, figure = _c === void 0 ? 'block' : _c, _d = props.status, status = _d === void 0 ? 'idle' : _d, isDisabled = props.isDisabled, customStyles = props.styles, onClick = props.onClick;
|
|
276
139
|
var toClassName = useCallback(function () {
|
|
@@ -281,76 +144,87 @@ var ButtonElement = function (props) {
|
|
|
281
144
|
return values.filter(Boolean).join(' ');
|
|
282
145
|
}, []);
|
|
283
146
|
var style = useMemo(function () { return ({
|
|
284
|
-
container: toClassName(styles$
|
|
285
|
-
}); }, [
|
|
286
|
-
|
|
147
|
+
container: toClassName(styles$g.base.container, type && styles$g[type].container, size && styles$g[size].container, figure && styles$g[figure].container, status && styles$g[status].container, isDisabled && styles$g.disabled.container, status === 'loading' && styles$g.loading.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
148
|
+
}); }, [
|
|
149
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
150
|
+
figure,
|
|
151
|
+
isDisabled,
|
|
152
|
+
size,
|
|
153
|
+
status,
|
|
154
|
+
toClassName,
|
|
155
|
+
type,
|
|
156
|
+
]);
|
|
157
|
+
return (jsxs("button", __assign({ type: "button", className: style.container, disabled: isDisabled || status !== 'idle', onClick: onClick }, { children: [status === 'idle' && children, status === 'loading' && (jsxs("div", __assign({ className: styles$g.base.loading }, { children: [jsx(ArrowPathIcon, { className: styles$g.base.spinner }), jsx("p", { children: "Loading..." })] }))), status === 'error' && (jsxs("div", __assign({ className: styles$g.base.loading }, { children: [jsx(ExclamationCircleIcon, { className: styles$g.base.icon }), jsx("p", { children: "Oops" })] }))), status === 'success' && (jsxs("div", __assign({ className: styles$g.base.loading }, { children: [jsx(CheckIcon, { className: styles$g.base.icon }), jsx("p", { children: "Success" })] })))] })));
|
|
287
158
|
};
|
|
288
159
|
|
|
289
160
|
var base$4 = {
|
|
290
161
|
container: 'inline-flex items-center border border-transparent font-medium focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500',
|
|
162
|
+
loading: 'flex gap-2',
|
|
163
|
+
icon: 'w-5',
|
|
164
|
+
spinner: 'w-5 animate-spin',
|
|
291
165
|
};
|
|
292
|
-
var primary = {
|
|
166
|
+
var primary$1 = {
|
|
293
167
|
container: "shadow-sm text-white bg-indigo-600 hover:bg-indigo-700",
|
|
294
168
|
};
|
|
295
|
-
var secondary = {
|
|
169
|
+
var secondary$1 = {
|
|
296
170
|
container: "shadow-none text-indigo-700 bg-indigo-100 hover:bg-indigo-200",
|
|
297
171
|
};
|
|
298
|
-
var outline = {
|
|
299
|
-
container: "border-gray-300
|
|
172
|
+
var outline$1 = {
|
|
173
|
+
container: "border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
300
174
|
};
|
|
301
175
|
var xs = {
|
|
302
176
|
container: 'px-3 py-1.5 text-xs',
|
|
303
177
|
};
|
|
304
|
-
var sm = {
|
|
178
|
+
var sm$1 = {
|
|
305
179
|
container: 'px-3.5 py-2 text-sm',
|
|
306
180
|
};
|
|
307
181
|
var md = {
|
|
308
182
|
container: 'px-4 py-2.5 text-sm',
|
|
309
183
|
};
|
|
310
|
-
var lg = {
|
|
184
|
+
var lg$1 = {
|
|
311
185
|
container: 'px-5 py-2.5 text-base',
|
|
312
186
|
};
|
|
313
187
|
var xl = {
|
|
314
188
|
container: 'px-6 py-3 text-base',
|
|
315
189
|
};
|
|
316
|
-
var block = {
|
|
190
|
+
var block$1 = {
|
|
317
191
|
container: 'rounded-md',
|
|
318
192
|
};
|
|
319
|
-
var rounded = {
|
|
193
|
+
var rounded$1 = {
|
|
320
194
|
container: 'rounded-full',
|
|
321
195
|
};
|
|
322
196
|
var idle = {
|
|
323
197
|
container: '',
|
|
324
198
|
};
|
|
325
|
-
var loading = {
|
|
199
|
+
var loading$1 = {
|
|
326
200
|
container: 'cursor-progress',
|
|
327
201
|
};
|
|
328
202
|
var success = {
|
|
329
|
-
container: '',
|
|
203
|
+
container: 'bg-emerald-500 hover:bg-emerald-600',
|
|
330
204
|
};
|
|
331
205
|
var error = {
|
|
332
|
-
container: '',
|
|
206
|
+
container: 'bg-rose-400 hover:bg-rose-500',
|
|
333
207
|
};
|
|
334
|
-
var disabled = {
|
|
208
|
+
var disabled$1 = {
|
|
335
209
|
container: 'opacity-20 cursor-not-allowed',
|
|
336
210
|
};
|
|
337
|
-
var styles$
|
|
211
|
+
var styles$g = {
|
|
338
212
|
base: base$4,
|
|
339
|
-
primary: primary,
|
|
340
|
-
secondary: secondary,
|
|
341
|
-
outline: outline,
|
|
213
|
+
primary: primary$1,
|
|
214
|
+
secondary: secondary$1,
|
|
215
|
+
outline: outline$1,
|
|
342
216
|
xs: xs,
|
|
343
|
-
sm: sm,
|
|
217
|
+
sm: sm$1,
|
|
344
218
|
md: md,
|
|
345
|
-
lg: lg,
|
|
219
|
+
lg: lg$1,
|
|
346
220
|
xl: xl,
|
|
347
|
-
block: block,
|
|
348
|
-
rounded: rounded,
|
|
221
|
+
block: block$1,
|
|
222
|
+
rounded: rounded$1,
|
|
349
223
|
idle: idle,
|
|
350
|
-
loading: loading,
|
|
224
|
+
loading: loading$1,
|
|
351
225
|
success: success,
|
|
352
226
|
error: error,
|
|
353
|
-
disabled: disabled,
|
|
227
|
+
disabled: disabled$1,
|
|
354
228
|
};
|
|
355
229
|
|
|
356
230
|
var ButtonGroupElement = function (props) {
|
|
@@ -363,11 +237,17 @@ var ButtonGroupElement = function (props) {
|
|
|
363
237
|
return values.filter(Boolean).join(' ');
|
|
364
238
|
}, []);
|
|
365
239
|
var style = useMemo(function () { return ({
|
|
366
|
-
container: toClassName(styles$
|
|
367
|
-
firstButton: toClassName(styles$
|
|
368
|
-
button: toClassName(styles$
|
|
369
|
-
lastButton: toClassName(styles$
|
|
370
|
-
}); }, [
|
|
240
|
+
container: toClassName(styles$f.base.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
241
|
+
firstButton: toClassName(styles$f.base.firstButton, customStyles === null || customStyles === void 0 ? void 0 : customStyles.firstButton),
|
|
242
|
+
button: toClassName(styles$f.base.button, customStyles === null || customStyles === void 0 ? void 0 : customStyles.button),
|
|
243
|
+
lastButton: toClassName(styles$f.base.lastButton, customStyles === null || customStyles === void 0 ? void 0 : customStyles.lastButton),
|
|
244
|
+
}); }, [
|
|
245
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.button,
|
|
246
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
247
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.firstButton,
|
|
248
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.lastButton,
|
|
249
|
+
toClassName,
|
|
250
|
+
]);
|
|
371
251
|
return (jsx("span", __assign({ className: style.container }, { children: Children.map(children, function (child, index) {
|
|
372
252
|
var _a;
|
|
373
253
|
var className = style.button;
|
|
@@ -387,10 +267,10 @@ var base$3 = {
|
|
|
387
267
|
button: '-ml-px relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500',
|
|
388
268
|
lastButton: '-ml-px relative inline-flex items-center px-4 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:z-10 focus:outline-none focus:ring-1 focus:ring-indigo-500 focus:border-indigo-500',
|
|
389
269
|
};
|
|
390
|
-
var styles$
|
|
270
|
+
var styles$f = { base: base$3 };
|
|
391
271
|
|
|
392
|
-
var Container$
|
|
393
|
-
var children = props.children, label = props.label, _a = props.type, type = _a === void 0 ? 'button' : _a, customStyles = props.styles;
|
|
272
|
+
var Container$4 = function (props) {
|
|
273
|
+
var children = props.children, label = props.label, _a = props.type, type = _a === void 0 ? 'button' : _a, _b = props.direction, direction = _b === void 0 ? 'left' : _b, customStyles = props.styles;
|
|
394
274
|
var toClassName = useCallback(function () {
|
|
395
275
|
var values = [];
|
|
396
276
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -399,16 +279,24 @@ var Container$3 = function (props) {
|
|
|
399
279
|
return values.filter(Boolean).join(' ');
|
|
400
280
|
}, []);
|
|
401
281
|
var style = useMemo(function () { return ({
|
|
402
|
-
container: toClassName(styles$
|
|
403
|
-
button: toClassName(styles$
|
|
404
|
-
compact: toClassName(styles$
|
|
405
|
-
dots: toClassName(styles$
|
|
406
|
-
items: toClassName(styles$
|
|
407
|
-
}); }, [
|
|
282
|
+
container: toClassName(styles$e.base.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
283
|
+
button: toClassName(styles$e.base.button, customStyles === null || customStyles === void 0 ? void 0 : customStyles.button),
|
|
284
|
+
compact: toClassName(styles$e.base.compact, customStyles === null || customStyles === void 0 ? void 0 : customStyles.compact),
|
|
285
|
+
dots: toClassName(styles$e.base.dots, customStyles === null || customStyles === void 0 ? void 0 : customStyles.dots),
|
|
286
|
+
items: toClassName(styles$e.base.items, direction && (styles$e === null || styles$e === void 0 ? void 0 : styles$e[direction].items), customStyles === null || customStyles === void 0 ? void 0 : customStyles.items),
|
|
287
|
+
}); }, [
|
|
288
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.button,
|
|
289
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.compact,
|
|
290
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
291
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.dots,
|
|
292
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.items,
|
|
293
|
+
direction,
|
|
294
|
+
toClassName,
|
|
295
|
+
]);
|
|
408
296
|
return (jsxs(Menu, __assign({ as: "div", className: style.container }, { children: [jsxs("div", { children: [type === 'button' && (jsxs(Menu.Button, __assign({ className: style.button }, { children: [label, jsx(ChevronDownIcon, { className: "-mr-1 ml-2 h-5 w-5", "aria-hidden": "true" })] }))), type === 'compact' && (jsxs(Menu.Button, __assign({ className: style.compact }, { children: [jsx("span", __assign({ className: "sr-only" }, { children: label })), jsx(EllipsisVerticalIcon, { className: style.dots, "aria-hidden": "true" })] })))] }), jsx(Transition, __assign({ 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" }, { children: jsx(Menu.Items, __assign({ className: style.items }, { children: children })) }))] })));
|
|
409
297
|
};
|
|
410
|
-
var
|
|
411
|
-
Container: Container$
|
|
298
|
+
var DropdownElement = {
|
|
299
|
+
Container: Container$4,
|
|
412
300
|
Item: Menu.Item,
|
|
413
301
|
};
|
|
414
302
|
|
|
@@ -417,18 +305,152 @@ var base$2 = {
|
|
|
417
305
|
button: 'inline-flex justify-center w-full rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-sm font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500',
|
|
418
306
|
compact: 'bg-gray-100 rounded-full flex items-center text-gray-400 hover:text-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-offset-gray-100 focus:ring-indigo-500',
|
|
419
307
|
dots: 'h-7 w-7 p-1',
|
|
420
|
-
items: '
|
|
308
|
+
items: 'absolute mt-2 w-56 rounded-md shadow-lg bg-white ring-1 ring-black ring-opacity-5 divide-y divide-gray-100 focus:outline-none',
|
|
421
309
|
};
|
|
422
|
-
var
|
|
310
|
+
var left$1 = {
|
|
311
|
+
items: 'origin-top-right right-0',
|
|
312
|
+
};
|
|
313
|
+
var right$1 = {
|
|
314
|
+
items: 'origin-top-left left-0',
|
|
315
|
+
};
|
|
316
|
+
var styles$e = {
|
|
423
317
|
base: base$2,
|
|
318
|
+
left: left$1,
|
|
319
|
+
right: right$1,
|
|
424
320
|
};
|
|
425
321
|
|
|
426
|
-
var
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
322
|
+
var BadgeElement = function (props) {
|
|
323
|
+
var children = props.children, _a = props.color, color = _a === void 0 ? 'gray' : _a, _b = props.type, type = _b === void 0 ? 'normal' : _b, _c = props.size, size = _c === void 0 ? 'sm' : _c, _d = props.figure, figure = _d === void 0 ? 'block' : _d, isDisabled = props.isDisabled, isLoading = props.isLoading, onClose = props.onClose, customStyles = props.styles;
|
|
324
|
+
var toClassName = useCallback(function () {
|
|
325
|
+
var values = [];
|
|
326
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
327
|
+
values[_i] = arguments[_i];
|
|
328
|
+
}
|
|
329
|
+
return values.filter(Boolean).join(' ');
|
|
330
|
+
}, []);
|
|
331
|
+
var style = useMemo(function () { return ({
|
|
332
|
+
container: toClassName(type && styles$d[type].container, color && styles$d[color].container, size && styles$d[size].container, figure && styles$d[figure].container, isDisabled && styles$d.disabled.container, isLoading && styles$d.loading.container, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
333
|
+
indicator: toClassName(color && styles$d[color].indicator, size && styles$d[size].indicator, customStyles === null || customStyles === void 0 ? void 0 : customStyles.indicator),
|
|
334
|
+
button: toClassName('flex-shrink-0 ml-0.5 h-4 w-4 rounded-full inline-flex items-center justify-center focus:text-white focus:outline-none', color && styles$d[color].button, size && styles$d[size].button, customStyles === null || customStyles === void 0 ? void 0 : customStyles.button),
|
|
335
|
+
}); }, [
|
|
336
|
+
color,
|
|
337
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.button,
|
|
338
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
339
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.indicator,
|
|
340
|
+
figure,
|
|
341
|
+
isDisabled,
|
|
342
|
+
isLoading,
|
|
343
|
+
size,
|
|
344
|
+
toClassName,
|
|
345
|
+
type,
|
|
346
|
+
]);
|
|
347
|
+
if (isLoading) {
|
|
348
|
+
return (jsxs("span", __assign({ className: style.container }, { children: [type === 'indicator' && (jsx("svg", __assign({ className: style.indicator, fill: "currentColor", viewBox: "0 0 8 8" }, { children: jsx("circle", { cx: 4, cy: 4, r: 3 }) }))), "Loading..."] })));
|
|
349
|
+
}
|
|
350
|
+
return (jsxs("span", __assign({ className: style.container }, { children: [type === 'indicator' && (jsx("svg", __assign({ className: style.indicator, fill: "currentColor", viewBox: "0 0 8 8" }, { children: jsx("circle", { cx: 4, cy: 4, r: 3 }) }))), children, type === 'close' && (jsxs("button", __assign({ type: "button", className: style.button, onClick: onClose }, { children: [jsx("span", __assign({ className: "sr-only" }, { children: "Remove large option" })), jsx("svg", __assign({ className: "h-2 w-2", stroke: "currentColor", fill: "none", viewBox: "0 0 8 8" }, { children: jsx("path", { strokeLinecap: "round", strokeWidth: "1.5", d: "M1 1l6 6m0-6L1 7" }) }))] })))] })));
|
|
351
|
+
};
|
|
352
|
+
|
|
353
|
+
var normal = {
|
|
354
|
+
container: 'inline-flex items-center px-2.5 py-0.5 font-medium',
|
|
355
|
+
};
|
|
356
|
+
var indicator = {
|
|
357
|
+
container: 'inline-flex items-center px-2.5 py-0.5 font-medium',
|
|
358
|
+
};
|
|
359
|
+
var close = {
|
|
360
|
+
container: 'inline-flex items-center pl-2.5 pr-1 py-0.5 font-medium',
|
|
361
|
+
};
|
|
362
|
+
var primary = {
|
|
363
|
+
container: "shadow-sm text-white bg-indigo-600 hover:bg-indigo-700",
|
|
364
|
+
};
|
|
365
|
+
var secondary = {
|
|
366
|
+
container: "shadow-none text-indigo-700 bg-indigo-100 hover:bg-indigo-200",
|
|
367
|
+
};
|
|
368
|
+
var outline = {
|
|
369
|
+
container: "border-gray-300 text-gray-700 bg-white hover:bg-gray-50",
|
|
370
|
+
};
|
|
371
|
+
var sm = {
|
|
372
|
+
container: 'text-xs',
|
|
373
|
+
indicator: 'mr-1.5 h-2 w-2 ',
|
|
374
|
+
button: '',
|
|
375
|
+
};
|
|
376
|
+
var lg = {
|
|
377
|
+
container: 'text-sm',
|
|
378
|
+
indicator: '-ml-0.5 mr-1.5 h-2 w-2',
|
|
379
|
+
button: '',
|
|
380
|
+
};
|
|
381
|
+
var block = {
|
|
382
|
+
container: 'rounded-md',
|
|
383
|
+
};
|
|
384
|
+
var rounded = {
|
|
385
|
+
container: 'rounded-full',
|
|
386
|
+
};
|
|
387
|
+
var gray = {
|
|
388
|
+
container: 'bg-gray-100 text-gray-800',
|
|
389
|
+
indicator: 'text-gray-400',
|
|
390
|
+
button: 'text-gray-400 hover:bg-gray-200 hover:text-gray-500 focus:bg-gray-500',
|
|
391
|
+
};
|
|
392
|
+
var red = {
|
|
393
|
+
container: 'bg-red-100 text-red-800',
|
|
394
|
+
indicator: 'text-red-400',
|
|
395
|
+
button: 'text-red-400 hover:bg-red-200 hover:text-red-500 focus:bg-red-500',
|
|
396
|
+
};
|
|
397
|
+
var yellow = {
|
|
398
|
+
container: 'bg-yellow-100 text-yellow-800',
|
|
399
|
+
indicator: 'text-yellow-400',
|
|
400
|
+
button: 'text-yellow-400 hover:bg-yellow-200 hover:text-yellow-500 focus:bg-yellow-500',
|
|
401
|
+
};
|
|
402
|
+
var green = {
|
|
403
|
+
container: 'bg-green-100 text-green-800',
|
|
404
|
+
indicator: 'text-green-400',
|
|
405
|
+
button: 'text-green-400 hover:bg-green-200 hover:text-green-500 focus:bg-green-500',
|
|
406
|
+
};
|
|
407
|
+
var blue = {
|
|
408
|
+
container: 'bg-blue-100 text-blue-800',
|
|
409
|
+
indicator: 'text-blue-400',
|
|
410
|
+
button: 'text-blue-400 hover:bg-blue-200 hover:text-blue-500 focus:bg-blue-500',
|
|
411
|
+
};
|
|
412
|
+
var indigo = {
|
|
413
|
+
container: 'bg-indigo-100 text-indigo-800',
|
|
414
|
+
indicator: 'text-indigo-400',
|
|
415
|
+
button: 'text-indigo-400 hover:bg-indigo-200 hover:text-indigo-500 focus:outline-none focus:bg-indigo-500',
|
|
416
|
+
};
|
|
417
|
+
var purple = {
|
|
418
|
+
container: 'bg-purple-100 text-purple-800',
|
|
419
|
+
indicator: 'text-purple-400',
|
|
420
|
+
button: 'text-purple-400 hover:bg-purple-200 hover:text-purple-500 focus:bg-purple-500',
|
|
421
|
+
};
|
|
422
|
+
var pink = {
|
|
423
|
+
container: 'bg-pink-100 text-pink-800',
|
|
424
|
+
indicator: 'text-pink-400',
|
|
425
|
+
button: 'text-pink-400 hover:bg-pink-200 hover:text-pink-500 focus:bg-purple-500',
|
|
426
|
+
};
|
|
427
|
+
var disabled = {
|
|
428
|
+
container: 'opacity-20 cursor-not-allowed',
|
|
429
|
+
};
|
|
430
|
+
var loading = {
|
|
431
|
+
container: 'cursor-progress',
|
|
432
|
+
};
|
|
433
|
+
var styles$d = {
|
|
434
|
+
normal: normal,
|
|
435
|
+
indicator: indicator,
|
|
436
|
+
close: close,
|
|
437
|
+
primary: primary,
|
|
438
|
+
secondary: secondary,
|
|
439
|
+
outline: outline,
|
|
440
|
+
sm: sm,
|
|
441
|
+
lg: lg,
|
|
442
|
+
block: block,
|
|
443
|
+
rounded: rounded,
|
|
444
|
+
gray: gray,
|
|
445
|
+
red: red,
|
|
446
|
+
yellow: yellow,
|
|
447
|
+
green: green,
|
|
448
|
+
blue: blue,
|
|
449
|
+
indigo: indigo,
|
|
450
|
+
purple: purple,
|
|
451
|
+
pink: pink,
|
|
452
|
+
disabled: disabled,
|
|
453
|
+
loading: loading,
|
|
432
454
|
};
|
|
433
455
|
|
|
434
456
|
var ContainerLayout = function (props) {
|
|
@@ -501,7 +523,15 @@ var DividerLayout = function (props) {
|
|
|
501
523
|
line: toClassName(styles$c.base.line, type && styles$c[type].line, customStyles === null || customStyles === void 0 ? void 0 : customStyles.line),
|
|
502
524
|
body: toClassName(styles$c.base.body, type && styles$c[type].body, customStyles === null || customStyles === void 0 ? void 0 : customStyles.body),
|
|
503
525
|
content: toClassName(styles$c.base.content, type && styles$c[type].content, customStyles === null || customStyles === void 0 ? void 0 : customStyles.content),
|
|
504
|
-
}); }, [
|
|
526
|
+
}); }, [
|
|
527
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.body,
|
|
528
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
529
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.content,
|
|
530
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.head,
|
|
531
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.line,
|
|
532
|
+
toClassName,
|
|
533
|
+
type,
|
|
534
|
+
]);
|
|
505
535
|
return (jsxs("div", __assign({ className: style.container }, { children: [jsx("div", __assign({ className: style.head, "aria-hidden": "true" }, { children: jsx("div", { className: style.line }) })), jsx("div", __assign({ className: style.body }, { children: jsx("div", __assign({ className: style.content }, { children: children })) }))] })));
|
|
506
536
|
};
|
|
507
537
|
|
|
@@ -562,8 +592,15 @@ var ListContainerLayout = function (props) {
|
|
|
562
592
|
item: toClassName(isSticky
|
|
563
593
|
? styles$b["".concat(selector, "_sticky")].item
|
|
564
594
|
: styles$b[selector].item, customStyles === null || customStyles === void 0 ? void 0 : customStyles.item),
|
|
565
|
-
}); }, [
|
|
566
|
-
|
|
595
|
+
}); }, [
|
|
596
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
597
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.item,
|
|
598
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.list,
|
|
599
|
+
isSticky,
|
|
600
|
+
selector,
|
|
601
|
+
toClassName,
|
|
602
|
+
]);
|
|
603
|
+
return (jsx("div", __assign({ className: style.container }, { children: jsx("ul", __assign({ className: style.list }, { children: Children.map(children, function (child, index) {
|
|
567
604
|
var _a;
|
|
568
605
|
return (jsx("li", __assign({ className: style.item }, { children: child }), (_a = child.key) !== null && _a !== void 0 ? _a : index));
|
|
569
606
|
}) })) })));
|
|
@@ -622,7 +659,16 @@ var MediaObjectLayout = function (props) {
|
|
|
622
659
|
svg: toClassName(styles$a[selector].svg, customStyles === null || customStyles === void 0 ? void 0 : customStyles.svg),
|
|
623
660
|
title: toClassName(styles$a[selector].title, customStyles === null || customStyles === void 0 ? void 0 : customStyles.title),
|
|
624
661
|
paragraph: toClassName(styles$a[selector].paragraph, customStyles === null || customStyles === void 0 ? void 0 : customStyles.paragraph),
|
|
625
|
-
}); }, [
|
|
662
|
+
}); }, [
|
|
663
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.container,
|
|
664
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.figure,
|
|
665
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.paragraph,
|
|
666
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.svg,
|
|
667
|
+
customStyles === null || customStyles === void 0 ? void 0 : customStyles.title,
|
|
668
|
+
isReversed,
|
|
669
|
+
selector,
|
|
670
|
+
toClassName,
|
|
671
|
+
]);
|
|
626
672
|
var $svg = useMemo(function () {
|
|
627
673
|
var result = (jsx("svg", __assign({ className: style.svg, preserveAspectRatio: "none", stroke: "currentColor", fill: "none", viewBox: "0 0 200 200", "aria-hidden": "true" }, { children: jsx("path", { vectorEffect: "non-scaling-stroke", strokeWidth: 1, d: "M0 0l200 200M0 200L200 0" }) })));
|
|
628
674
|
if (customFigure) {
|
|
@@ -631,7 +677,7 @@ var MediaObjectLayout = function (props) {
|
|
|
631
677
|
});
|
|
632
678
|
}
|
|
633
679
|
return result;
|
|
634
|
-
}, [style]);
|
|
680
|
+
}, [customFigure, style.svg]);
|
|
635
681
|
return (jsxs("div", __assign({ className: style.container }, { children: [jsx("div", __assign({ className: style.figure }, { children: $svg })), jsxs("div", { children: [jsx("h4", __assign({ className: style.title }, { children: title })), jsx("p", __assign({ className: style.paragraph }, { children: paragraph }))] })] })));
|
|
636
682
|
};
|
|
637
683
|
|
|
@@ -693,8 +739,8 @@ var styles$a = {
|
|
|
693
739
|
wide: wide,
|
|
694
740
|
};
|
|
695
741
|
|
|
696
|
-
var
|
|
697
|
-
var
|
|
742
|
+
var Container$3 = function (props) {
|
|
743
|
+
var children = props.children, _a = props.type, type = _a === void 0 ? 'normal' : _a, customStyles = props.styles;
|
|
698
744
|
var typeStyle = useMemo(function () {
|
|
699
745
|
var result;
|
|
700
746
|
switch (type) {
|
|
@@ -706,7 +752,7 @@ var LayoutPanel = function (props) {
|
|
|
706
752
|
break;
|
|
707
753
|
}
|
|
708
754
|
return result;
|
|
709
|
-
}, []);
|
|
755
|
+
}, [type]);
|
|
710
756
|
var toClassName = useCallback(function () {
|
|
711
757
|
var values = [];
|
|
712
758
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -716,32 +762,11 @@ var LayoutPanel = function (props) {
|
|
|
716
762
|
}, []);
|
|
717
763
|
var style = useMemo(function () { return ({
|
|
718
764
|
container: toClassName(styles$9.container, typeStyle, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
foot: toClassName(styles$9.foot, customStyles === null || customStyles === void 0 ? void 0 : customStyles.foot),
|
|
722
|
-
}); }, [customStyles]);
|
|
723
|
-
return (jsxs("div", __assign({ className: style.container }, { children: [head && jsx("div", __assign({ className: style.head }, { children: head })), children && jsx("div", __assign({ className: style.body }, { children: children })), foot && jsx("div", __assign({ className: style.foot }, { children: foot }))] })));
|
|
724
|
-
};
|
|
725
|
-
|
|
726
|
-
var styles$9 = {
|
|
727
|
-
container: 'bg-white overflow-hidden shadow',
|
|
728
|
-
head: 'px-4 py-5 sm:px-6',
|
|
729
|
-
body: 'px-4 py-5 sm:p-6',
|
|
730
|
-
foot: 'px-4 py-5 sm:px-6',
|
|
731
|
-
};
|
|
732
|
-
|
|
733
|
-
var Layout = {
|
|
734
|
-
Container: ContainerLayout,
|
|
735
|
-
Divider: DividerLayout,
|
|
736
|
-
ListContainer: ListContainerLayout,
|
|
737
|
-
MediaObject: MediaObjectLayout,
|
|
738
|
-
Panel: LayoutPanel,
|
|
739
|
-
};
|
|
740
|
-
|
|
741
|
-
var NavbarNavigationLogo = function () {
|
|
742
|
-
return (jsxs("div", __assign({ className: "flex flex-shrink-0 items-center" }, { children: [jsx("img", { className: "block h-8 w-auto lg:hidden", src: "https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=500", alt: "Your Company" }), jsx("img", { className: "hidden h-8 w-auto lg:block", src: "https://tailwindui.com/img/logos/mark.svg?color=indigo&shade=500", alt: "Your Company" })] })));
|
|
765
|
+
}); }, [customStyles === null || customStyles === void 0 ? void 0 : customStyles.container, toClassName, typeStyle]);
|
|
766
|
+
return jsx("div", __assign({ className: style.container }, { children: children }));
|
|
743
767
|
};
|
|
744
|
-
var
|
|
768
|
+
var Section = function (props) {
|
|
769
|
+
var children = props.children, customStyles = props.styles;
|
|
745
770
|
var toClassName = useCallback(function () {
|
|
746
771
|
var values = [];
|
|
747
772
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -749,17 +774,23 @@ var NavbarNavigationRoutes = function () {
|
|
|
749
774
|
}
|
|
750
775
|
return values.filter(Boolean).join(' ');
|
|
751
776
|
}, []);
|
|
752
|
-
var
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
var
|
|
777
|
+
var style = useMemo(function () { return ({
|
|
778
|
+
container: toClassName(styles$9.section, customStyles === null || customStyles === void 0 ? void 0 : customStyles.container),
|
|
779
|
+
}); }, [customStyles === null || customStyles === void 0 ? void 0 : customStyles.container, toClassName]);
|
|
780
|
+
return jsx("div", __assign({ className: style.container }, { children: children }));
|
|
781
|
+
};
|
|
782
|
+
var LayoutPanel = {
|
|
783
|
+
Container: Container$3,
|
|
784
|
+
Section: Section,
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
var styles$9 = {
|
|
788
|
+
container: 'bg-white overflow-hidden shadow',
|
|
789
|
+
section: 'px-4 py-5 sm:px-6',
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
var BreadcrumbsNavigation = function (props) {
|
|
793
|
+
var _a = props.href, href = _a === void 0 ? '/' : _a, pages = props.pages, _b = props.type, type = _b === void 0 ? 'slashes' : _b, customSeparator = props.separator, customStyles = props.styles;
|
|
763
794
|
var toClassName = useCallback(function () {
|
|
764
795
|
var values = [];
|
|
765
796
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -767,54 +798,133 @@ var NavbarNavigationAccount = function () {
|
|
|
767
798
|
}
|
|
768
799
|
return values.filter(Boolean).join(' ');
|
|
769
800
|
}, []);
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
};
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
801
|
+
var style = useMemo(function () {
|
|
802
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2;
|
|
803
|
+
return ({
|
|
804
|
+
container: toClassName(type && styles$8[type].container, (_a = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _a === void 0 ? void 0 : _a.container),
|
|
805
|
+
list: toClassName(type && styles$8[type].list, (_b = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _b === void 0 ? void 0 : _b.list),
|
|
806
|
+
separator: toClassName(type && styles$8[type].separator, (_c = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _c === void 0 ? void 0 : _c.separator),
|
|
807
|
+
home: {
|
|
808
|
+
container: toClassName(type && ((_d = styles$8[type].home) === null || _d === void 0 ? void 0 : _d.container), (_f = (_e = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _e === void 0 ? void 0 : _e.home) === null || _f === void 0 ? void 0 : _f.container),
|
|
809
|
+
content: toClassName(type && ((_g = styles$8[type].home) === null || _g === void 0 ? void 0 : _g.content), (_j = (_h = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _h === void 0 ? void 0 : _h.home) === null || _j === void 0 ? void 0 : _j.content),
|
|
810
|
+
link: toClassName(type && ((_k = styles$8[type].home) === null || _k === void 0 ? void 0 : _k.link), (_m = (_l = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _l === void 0 ? void 0 : _l.home) === null || _m === void 0 ? void 0 : _m.link),
|
|
811
|
+
icon: toClassName(type && ((_o = styles$8[type].home) === null || _o === void 0 ? void 0 : _o.icon), (_q = (_p = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _p === void 0 ? void 0 : _p.home) === null || _q === void 0 ? void 0 : _q.icon),
|
|
812
|
+
span: toClassName(type && ((_r = styles$8[type].home) === null || _r === void 0 ? void 0 : _r.span), (_t = (_s = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _s === void 0 ? void 0 : _s.home) === null || _t === void 0 ? void 0 : _t.span),
|
|
813
|
+
},
|
|
814
|
+
page: {
|
|
815
|
+
container: toClassName(type && ((_u = styles$8[type].page) === null || _u === void 0 ? void 0 : _u.container), (_w = (_v = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _v === void 0 ? void 0 : _v.page) === null || _w === void 0 ? void 0 : _w.container),
|
|
816
|
+
content: toClassName(type && ((_x = styles$8[type].page) === null || _x === void 0 ? void 0 : _x.content), (_z = (_y = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _y === void 0 ? void 0 : _y.page) === null || _z === void 0 ? void 0 : _z.content),
|
|
817
|
+
link: toClassName(type && ((_0 = styles$8[type].page) === null || _0 === void 0 ? void 0 : _0.link), (_2 = (_1 = customStyles === null || customStyles === void 0 ? void 0 : customStyles[type]) === null || _1 === void 0 ? void 0 : _1.page) === null || _2 === void 0 ? void 0 : _2.link),
|
|
818
|
+
},
|
|
819
|
+
});
|
|
820
|
+
}, [customStyles, toClassName, type]);
|
|
821
|
+
var separator = useMemo(function () {
|
|
822
|
+
var component;
|
|
823
|
+
switch (type) {
|
|
824
|
+
case 'slashes':
|
|
825
|
+
component = (jsx("svg", __assign({ className: style.separator, fill: "currentColor", viewBox: "0 0 20 20", "aria-hidden": "true" }, { children: jsx("path", { d: "M5.555 17.776l8-16 .894.448-8 16-.894-.448z" }) })));
|
|
826
|
+
break;
|
|
827
|
+
case 'chevrons':
|
|
828
|
+
component = (jsx(ChevronRightIcon, { className: style.separator, "aria-hidden": "true" }));
|
|
829
|
+
break;
|
|
830
|
+
case 'panel':
|
|
831
|
+
component = (jsx("svg", __assign({ className: style.separator, viewBox: "0 0 24 44", preserveAspectRatio: "none", fill: "currentColor", "aria-hidden": "true" }, { children: jsx("path", { d: "M.293 0l22 22-22 22h1.414l22-22-22-22H.293z" }) })));
|
|
832
|
+
break;
|
|
833
|
+
case 'bar':
|
|
834
|
+
component = (jsx("svg", __assign({ className: style.separator, viewBox: "0 0 24 44", preserveAspectRatio: "none", fill: "currentColor", "aria-hidden": "true" }, { children: jsx("path", { d: "M.293 0l22 22-22 22h1.414l22-22-22-22H.293z" }) })));
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
if (customSeparator) {
|
|
838
|
+
component = customSeparator;
|
|
839
|
+
}
|
|
840
|
+
return component;
|
|
841
|
+
}, [customSeparator, style.separator, type]);
|
|
842
|
+
var HomeLink = function () {
|
|
843
|
+
return (jsx("li", __assign({ className: style.home.container }, { children: jsx("div", __assign({ className: style.home.content }, { children: jsxs("a", __assign({ href: href, className: style.home.link }, { children: [jsx(HomeIcon, { className: style.home.icon, "aria-hidden": "true" }), jsx("span", __assign({ className: style.home.span }, { children: "Home" }))] })) })) })));
|
|
844
|
+
};
|
|
845
|
+
var PageLink = function (props) {
|
|
846
|
+
var page = props.page;
|
|
847
|
+
return (jsx("li", __assign({ className: style.page.container }, { children: jsxs("div", __assign({ className: style.page.content }, { children: [separator, jsx("a", __assign({ href: page.href, className: style.page.link, "aria-current": page.isCurrent ? 'page' : undefined }, { children: page.name }))] })) }), page.name));
|
|
848
|
+
};
|
|
849
|
+
return (jsx("nav", __assign({ className: style.container, "aria-label": "Breadcrumb" }, { children: jsxs("ol", __assign({ className: style.list }, { children: [jsx(HomeLink, {}), pages.map(function (page) { return (jsx(PageLink, { page: page }, page.name)); })] })) })));
|
|
811
850
|
};
|
|
812
851
|
|
|
852
|
+
var slashes = {
|
|
853
|
+
container: 'flex',
|
|
854
|
+
list: 'flex items-center space-x-4',
|
|
855
|
+
separator: 'h-5 w-5 flex-shrink-0 text-gray-300',
|
|
856
|
+
home: {
|
|
857
|
+
container: 'flex',
|
|
858
|
+
content: 'flex items-center',
|
|
859
|
+
link: 'text-gray-400 hover:text-gray-500',
|
|
860
|
+
icon: 'h-5 w-5 flex-shrink-0',
|
|
861
|
+
span: 'sr-only',
|
|
862
|
+
},
|
|
863
|
+
page: {
|
|
864
|
+
container: 'flex',
|
|
865
|
+
content: 'flex items-center',
|
|
866
|
+
link: 'ml-4 text-sm font-medium text-gray-500 hover:text-gray-700',
|
|
867
|
+
},
|
|
868
|
+
};
|
|
869
|
+
var chevrons = {
|
|
870
|
+
container: 'flex',
|
|
871
|
+
list: 'flex items-center space-x-4',
|
|
872
|
+
separator: 'h-5 w-5 flex-shrink-0 text-gray-400',
|
|
873
|
+
home: {
|
|
874
|
+
container: 'flex',
|
|
875
|
+
content: 'flex items-center',
|
|
876
|
+
link: 'text-gray-400 hover:text-gray-500',
|
|
877
|
+
icon: 'h-5 w-5 flex-shrink-0',
|
|
878
|
+
span: 'sr-only',
|
|
879
|
+
},
|
|
880
|
+
page: {
|
|
881
|
+
container: 'flex',
|
|
882
|
+
content: 'flex items-center',
|
|
883
|
+
link: 'ml-4 text-sm font-medium text-gray-500 hover:text-gray-700',
|
|
884
|
+
},
|
|
885
|
+
};
|
|
886
|
+
var panel = {
|
|
887
|
+
container: 'flex',
|
|
888
|
+
list: 'flex space-x-4 rounded-md bg-white px-6 shadow',
|
|
889
|
+
separator: 'h-full w-6 flex-shrink-0 text-gray-200',
|
|
890
|
+
home: {
|
|
891
|
+
container: 'flex',
|
|
892
|
+
content: 'flex items-center',
|
|
893
|
+
link: 'text-gray-400 hover:text-gray-500',
|
|
894
|
+
icon: 'h-5 w-5 flex-shrink-0',
|
|
895
|
+
span: 'sr-only',
|
|
896
|
+
},
|
|
897
|
+
page: {
|
|
898
|
+
container: 'flex',
|
|
899
|
+
content: 'flex items-center',
|
|
900
|
+
link: 'ml-4 text-sm font-medium text-gray-500 hover:text-gray-700',
|
|
901
|
+
},
|
|
902
|
+
};
|
|
903
|
+
var bar = {
|
|
904
|
+
container: 'flex border-b border-gray-200 bg-white',
|
|
905
|
+
list: 'mx-auto flex w-full max-w-screen-xl space-x-4 px-4 sm:px-6 lg:px-8',
|
|
906
|
+
separator: 'h-full w-6 flex-shrink-0 text-gray-200',
|
|
907
|
+
home: {
|
|
908
|
+
container: 'flex',
|
|
909
|
+
content: 'flex items-center',
|
|
910
|
+
link: 'text-gray-400 hover:text-gray-500',
|
|
911
|
+
icon: 'h-5 w-5 flex-shrink-0',
|
|
912
|
+
span: 'sr-only',
|
|
913
|
+
},
|
|
914
|
+
page: {
|
|
915
|
+
container: 'flex',
|
|
916
|
+
content: 'flex items-center',
|
|
917
|
+
link: 'ml-4 text-sm font-medium text-gray-500 hover:text-gray-700',
|
|
918
|
+
},
|
|
919
|
+
};
|
|
813
920
|
var styles$8 = {
|
|
814
|
-
|
|
921
|
+
slashes: slashes,
|
|
922
|
+
chevrons: chevrons,
|
|
923
|
+
panel: panel,
|
|
924
|
+
bar: bar,
|
|
815
925
|
};
|
|
816
926
|
|
|
817
|
-
var
|
|
927
|
+
var PanelPaginationNavigation = function (props) {
|
|
818
928
|
var _a = props.min, min = _a === void 0 ? 1 : _a, _b = props.max, max = _b === void 0 ? 20 : _b, customStyles = props.styles, children = props.children, onChange = props.onChange;
|
|
819
929
|
var _c = useState(2), current = _c[0], setCurrent = _c[1];
|
|
820
930
|
var toClassName = useCallback(function () {
|
|
@@ -988,11 +1098,6 @@ var styles$6 = {
|
|
|
988
1098
|
divider: 'inline-flex items-center border-t-2 border-transparent px-4 pt-4 text-sm font-medium text-gray-500',
|
|
989
1099
|
};
|
|
990
1100
|
|
|
991
|
-
var Pagination = {
|
|
992
|
-
Card: CardPaginationNavigation,
|
|
993
|
-
Page: PagePaginationNavigation,
|
|
994
|
-
};
|
|
995
|
-
|
|
996
1101
|
var Container$2 = function (props) {
|
|
997
1102
|
var children = props.children, customStyles = props.styles;
|
|
998
1103
|
var _a = useState(''), active = _a[0], setActive = _a[1];
|
|
@@ -1101,7 +1206,8 @@ var List$1 = function (props) {
|
|
|
1101
1206
|
tab = initialTab;
|
|
1102
1207
|
}
|
|
1103
1208
|
setActive && setActive(tab === null || tab === void 0 ? void 0 : tab.props.accessor);
|
|
1104
|
-
|
|
1209
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1210
|
+
}, [setActive]);
|
|
1105
1211
|
return (jsxs(Fragment$1, { children: [jsxs("div", __assign({ className: "sm:hidden" }, { children: [jsx("label", __assign({ htmlFor: "tabs", className: "sr-only" }, { children: "Select a tab" })), jsx("select", __assign({ id: "tabs", name: "tabs", value: active, className: toClassName(styles$4.select, customStyles === null || customStyles === void 0 ? void 0 : customStyles.select), onChange: handleChangeSelect }, { children: Children.map(children, function (child) {
|
|
1106
1212
|
var _a;
|
|
1107
1213
|
return (jsx("option", __assign({ value: child.props.accessor }, { children: child.props.children }), (_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.accessor));
|
|
@@ -1213,14 +1319,6 @@ var styles$3 = {
|
|
|
1213
1319
|
},
|
|
1214
1320
|
};
|
|
1215
1321
|
|
|
1216
|
-
var Navigation = {
|
|
1217
|
-
Navbar: NavbarNavigation,
|
|
1218
|
-
Pagination: Pagination,
|
|
1219
|
-
Sidebar: SidebarNavigation,
|
|
1220
|
-
Tab: TabNavigation,
|
|
1221
|
-
Vertical: VerticalNavigation,
|
|
1222
|
-
};
|
|
1223
|
-
|
|
1224
1322
|
var ModalOverlay = function (props) {
|
|
1225
1323
|
var children = props.children, trigger = props.trigger, _a = props.size, size = _a === void 0 ? 'md' : _a, customStyles = props.styles;
|
|
1226
1324
|
var _b = useState(trigger ? false : true), isOpen = _b[0], setIsOpen = _b[1];
|
|
@@ -1361,7 +1459,7 @@ var NotificationOverlayItem = function (props) {
|
|
|
1361
1459
|
}, []);
|
|
1362
1460
|
return (jsxs(Fragment$1, { children: [jsx(Transition, __assign({ show: isOpen, as: Fragment, enter: style.panel.transition.enter, enterFrom: style.panel.transition.enterFrom, enterTo: style.panel.transition.enterTo, leave: style.panel.transition.leave, leaveFrom: style.panel.transition.leaveFrom, leaveTo: style.panel.transition.leaveTo }, { children: jsx("div", __assign({ className: style.panel.container }, { children: children(options) })) })), trigger && trigger(options)] }));
|
|
1363
1461
|
};
|
|
1364
|
-
var
|
|
1462
|
+
var NotificationOverlay = {
|
|
1365
1463
|
Container: NotificationOverlayContainer,
|
|
1366
1464
|
Item: NotificationOverlayItem,
|
|
1367
1465
|
};
|
|
@@ -1483,11 +1581,5 @@ var styles = {
|
|
|
1483
1581
|
xl: 'max-w-4xl',
|
|
1484
1582
|
};
|
|
1485
1583
|
|
|
1486
|
-
|
|
1487
|
-
Modal: ModalOverlay,
|
|
1488
|
-
Notification: Notification,
|
|
1489
|
-
SlideOver: SlideOverOverlay,
|
|
1490
|
-
};
|
|
1491
|
-
|
|
1492
|
-
export { Element, Layout, Navigation, Overlay };
|
|
1584
|
+
export { AvatarElement as Avatar, BadgeElement as Badge, BreadcrumbsNavigation as Breadcrumbs, ButtonElement as Button, ButtonGroupElement as ButtonGroup, ContainerLayout as Container, DividerLayout as Divider, DropdownElement as Dropdown, ListContainerLayout as ListContainer, MediaObjectLayout as MediaObject, ModalOverlay as Modal, NotificationOverlay as Notification, PagePaginationNavigation as PagePagination, LayoutPanel as Panel, PanelPaginationNavigation as PanelPagination, SidebarNavigation as Sidebar, SlideOverOverlay as SlideOver, TabNavigation as Tab, VerticalNavigation as Vertical };
|
|
1493
1585
|
//# sourceMappingURL=index.esm.js.map
|