@umami/react-zen 0.17.0 → 0.19.0
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.css +142 -4
- package/dist/index.d.ts +762 -804
- package/dist/index.js +336 -212
- package/dist/index.mjs +373 -1060
- package/dist/styles.css +154 -9
- package/dist/zen.css +142 -0
- package/package.json +6 -5
package/dist/index.js
CHANGED
|
@@ -171,7 +171,7 @@ var require_classnames = __commonJS({
|
|
|
171
171
|
(function() {
|
|
172
172
|
"use strict";
|
|
173
173
|
var hasOwn = {}.hasOwnProperty;
|
|
174
|
-
function
|
|
174
|
+
function classNames51() {
|
|
175
175
|
var classes = "";
|
|
176
176
|
for (var i = 0; i < arguments.length; i++) {
|
|
177
177
|
var arg = arguments[i];
|
|
@@ -189,7 +189,7 @@ var require_classnames = __commonJS({
|
|
|
189
189
|
return "";
|
|
190
190
|
}
|
|
191
191
|
if (Array.isArray(arg)) {
|
|
192
|
-
return
|
|
192
|
+
return classNames51.apply(null, arg);
|
|
193
193
|
}
|
|
194
194
|
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
195
195
|
return arg.toString();
|
|
@@ -212,14 +212,14 @@ var require_classnames = __commonJS({
|
|
|
212
212
|
return value + newClass;
|
|
213
213
|
}
|
|
214
214
|
if (typeof module2 !== "undefined" && module2.exports) {
|
|
215
|
-
|
|
216
|
-
module2.exports =
|
|
215
|
+
classNames51.default = classNames51;
|
|
216
|
+
module2.exports = classNames51;
|
|
217
217
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
218
218
|
define("classnames", [], function() {
|
|
219
|
-
return
|
|
219
|
+
return classNames51;
|
|
220
220
|
});
|
|
221
221
|
} else {
|
|
222
|
-
window.classNames =
|
|
222
|
+
window.classNames = classNames51;
|
|
223
223
|
}
|
|
224
224
|
})();
|
|
225
225
|
}
|
|
@@ -26186,6 +26186,13 @@ var global_default = {
|
|
|
26186
26186
|
"display-block": "global_display-block",
|
|
26187
26187
|
"display-flex": "global_display-flex",
|
|
26188
26188
|
"display-inline-flex": "global_display-inline-flex",
|
|
26189
|
+
"display-grid": "global_display-grid",
|
|
26190
|
+
"display-inline-grid": "global_display-inline-grid",
|
|
26191
|
+
"position-absolute": "global_position-absolute",
|
|
26192
|
+
"position-fixed": "global_position-fixed",
|
|
26193
|
+
"position-stick": "global_position-stick",
|
|
26194
|
+
"position-static": "global_position-static",
|
|
26195
|
+
"position-relative": "global_position-relative",
|
|
26189
26196
|
"font-size": "global_font-size",
|
|
26190
26197
|
"font-size-1": "global_font-size-1",
|
|
26191
26198
|
"font-size-2": "global_font-size-2",
|
|
@@ -26227,9 +26234,14 @@ var global_default = {
|
|
|
26227
26234
|
"background-color-800": "global_background-color-800",
|
|
26228
26235
|
"background-color-900": "global_background-color-900",
|
|
26229
26236
|
"background-color-950": "global_background-color-950",
|
|
26230
|
-
"align-left": "
|
|
26231
|
-
"align-center": "
|
|
26232
|
-
"align-right": "
|
|
26237
|
+
"text-align-left": "global_text-align-left",
|
|
26238
|
+
"text-align-center": "global_text-align-center",
|
|
26239
|
+
"text-align-right": "global_text-align-right",
|
|
26240
|
+
"text-wrap-wrap": "global_text-wrap-wrap",
|
|
26241
|
+
"text-wrap-nowrap": "global_text-wrap-nowrap",
|
|
26242
|
+
"text-wrap-balance": "global_text-wrap-balance",
|
|
26243
|
+
"text-wrap-pretty": "global_text-wrap-pretty",
|
|
26244
|
+
"text-wrap-stable": "global_text-wrap-stable",
|
|
26233
26245
|
"letter-spacing-tighter": "global_letter-spacing-tighter",
|
|
26234
26246
|
"letter-spacing-tight": "global_letter-spacing-tight",
|
|
26235
26247
|
"letter-spacing-wide": "global_letter-spacing-wide",
|
|
@@ -26513,7 +26525,12 @@ var global_default = {
|
|
|
26513
26525
|
"align-self-stretch": "global_align-self-stretch",
|
|
26514
26526
|
"align-self-safe-center": "global_align-self-safe-center",
|
|
26515
26527
|
"align-self-unsafe-center": "global_align-self-unsafe-center",
|
|
26528
|
+
"grid-auto-flow-row": "global_grid-auto-flow-row",
|
|
26529
|
+
"grid-auto-flow-column": "global_grid-auto-flow-column",
|
|
26530
|
+
"grid-auto-flow-row-dense": "global_grid-auto-flow-row-dense",
|
|
26531
|
+
"grid-auto-flow-column-dense": "global_grid-auto-flow-column-dense",
|
|
26516
26532
|
"display-xs": "global_display-xs",
|
|
26533
|
+
"position-xs": "global_position-xs",
|
|
26517
26534
|
"font-size-xs": "global_font-size-xs",
|
|
26518
26535
|
"font-weight-xs": "global_font-weight-xs",
|
|
26519
26536
|
"border-size-xs": "global_border-size-xs",
|
|
@@ -26551,7 +26568,13 @@ var global_default = {
|
|
|
26551
26568
|
"align-content-xs": "global_align-content-xs",
|
|
26552
26569
|
"align-items-xs": "global_align-items-xs",
|
|
26553
26570
|
"align-self-xs": "global_align-self-xs",
|
|
26571
|
+
"grid-template-rows-xs": "global_grid-template-rows-xs",
|
|
26572
|
+
"grid-template-columns-xs": "global_grid-template-columns-xs",
|
|
26573
|
+
"flex-basis-xs": "global_flex-basis-xs",
|
|
26574
|
+
"flex-grow-xs": "global_flex-grow-xs",
|
|
26575
|
+
"flex-shrink-xs": "global_flex-shrink-xs",
|
|
26554
26576
|
"display-sm": "global_display-sm",
|
|
26577
|
+
"position-sm": "global_position-sm",
|
|
26555
26578
|
"font-size-sm": "global_font-size-sm",
|
|
26556
26579
|
"font-weight-sm": "global_font-weight-sm",
|
|
26557
26580
|
"border-size-sm": "global_border-size-sm",
|
|
@@ -26589,7 +26612,13 @@ var global_default = {
|
|
|
26589
26612
|
"align-content-sm": "global_align-content-sm",
|
|
26590
26613
|
"align-items-sm": "global_align-items-sm",
|
|
26591
26614
|
"align-self-sm": "global_align-self-sm",
|
|
26615
|
+
"grid-template-rows-sm": "global_grid-template-rows-sm",
|
|
26616
|
+
"grid-template-columns-sm": "global_grid-template-columns-sm",
|
|
26617
|
+
"flex-basis-sm": "global_flex-basis-sm",
|
|
26618
|
+
"flex-grow-sm": "global_flex-grow-sm",
|
|
26619
|
+
"flex-shrink-sm": "global_flex-shrink-sm",
|
|
26592
26620
|
"display-md": "global_display-md",
|
|
26621
|
+
"position-md": "global_position-md",
|
|
26593
26622
|
"font-size-md": "global_font-size-md",
|
|
26594
26623
|
"font-weight-md": "global_font-weight-md",
|
|
26595
26624
|
"border-size-md": "global_border-size-md",
|
|
@@ -26627,7 +26656,13 @@ var global_default = {
|
|
|
26627
26656
|
"align-content-md": "global_align-content-md",
|
|
26628
26657
|
"align-items-md": "global_align-items-md",
|
|
26629
26658
|
"align-self-md": "global_align-self-md",
|
|
26659
|
+
"grid-template-rows-md": "global_grid-template-rows-md",
|
|
26660
|
+
"grid-template-columns-md": "global_grid-template-columns-md",
|
|
26661
|
+
"flex-basis-md": "global_flex-basis-md",
|
|
26662
|
+
"flex-grow-md": "global_flex-grow-md",
|
|
26663
|
+
"flex-shrink-md": "global_flex-shrink-md",
|
|
26630
26664
|
"display-lg": "global_display-lg",
|
|
26665
|
+
"position-lg": "global_position-lg",
|
|
26631
26666
|
"font-size-lg": "global_font-size-lg",
|
|
26632
26667
|
"font-weight-lg": "global_font-weight-lg",
|
|
26633
26668
|
"border-size-lg": "global_border-size-lg",
|
|
@@ -26665,7 +26700,13 @@ var global_default = {
|
|
|
26665
26700
|
"align-content-lg": "global_align-content-lg",
|
|
26666
26701
|
"align-items-lg": "global_align-items-lg",
|
|
26667
26702
|
"align-self-lg": "global_align-self-lg",
|
|
26703
|
+
"grid-template-rows-lg": "global_grid-template-rows-lg",
|
|
26704
|
+
"grid-template-columns-lg": "global_grid-template-columns-lg",
|
|
26705
|
+
"flex-basis-lg": "global_flex-basis-lg",
|
|
26706
|
+
"flex-grow-lg": "global_flex-grow-lg",
|
|
26707
|
+
"flex-shrink-lg": "global_flex-shrink-lg",
|
|
26668
26708
|
"display-xl": "global_display-xl",
|
|
26709
|
+
"position-xl": "global_position-xl",
|
|
26669
26710
|
"font-size-xl": "global_font-size-xl",
|
|
26670
26711
|
"font-weight-xl": "global_font-weight-xl",
|
|
26671
26712
|
"border-size-xl": "global_border-size-xl",
|
|
@@ -26702,16 +26743,22 @@ var global_default = {
|
|
|
26702
26743
|
"justify-items-xl": "global_justify-items-xl",
|
|
26703
26744
|
"align-content-xl": "global_align-content-xl",
|
|
26704
26745
|
"align-items-xl": "global_align-items-xl",
|
|
26705
|
-
"align-self-xl": "global_align-self-xl"
|
|
26746
|
+
"align-self-xl": "global_align-self-xl",
|
|
26747
|
+
"grid-template-rows-xl": "global_grid-template-rows-xl",
|
|
26748
|
+
"grid-template-columns-xl": "global_grid-template-columns-xl",
|
|
26749
|
+
"flex-basis-xl": "global_flex-basis-xl",
|
|
26750
|
+
"flex-grow-xl": "global_flex-grow-xl",
|
|
26751
|
+
"flex-shrink-xl": "global_flex-shrink-xl"
|
|
26706
26752
|
};
|
|
26707
26753
|
|
|
26708
26754
|
// src/lib/utils.ts
|
|
26709
26755
|
var CSS_MAP = {
|
|
26710
26756
|
display: "display",
|
|
26711
|
-
|
|
26712
|
-
|
|
26713
|
-
|
|
26714
|
-
|
|
26757
|
+
position: "position",
|
|
26758
|
+
fontSize: "font-size",
|
|
26759
|
+
fontWeight: "font-weight",
|
|
26760
|
+
textAlign: "text-align",
|
|
26761
|
+
textWrap: "text-wrap",
|
|
26715
26762
|
letterSpacing: "letter-spacing",
|
|
26716
26763
|
backgroundColor: "background-color",
|
|
26717
26764
|
borderSize: "border-size",
|
|
@@ -26740,15 +26787,38 @@ var CSS_MAP = {
|
|
|
26740
26787
|
gap: "gap",
|
|
26741
26788
|
gapX: "gap-x",
|
|
26742
26789
|
gapY: "gap-y",
|
|
26743
|
-
|
|
26790
|
+
flexDirection: "flex-direction",
|
|
26744
26791
|
flexWrap: "flex-wrap",
|
|
26745
26792
|
justifyContent: "justify-content",
|
|
26746
26793
|
justifyItems: "justify-items",
|
|
26747
26794
|
alignContent: "align-content",
|
|
26748
26795
|
alignItems: "align-items",
|
|
26749
|
-
alignSelf: "align-self"
|
|
26750
|
-
|
|
26751
|
-
|
|
26796
|
+
alignSelf: "align-self",
|
|
26797
|
+
gridAutoRows: "grid-auto-rows",
|
|
26798
|
+
gridTemplateRows: "grid-template-rows",
|
|
26799
|
+
gridTemplateColumns: "grid-template-columns",
|
|
26800
|
+
gridAutoFlow: "grid-auto-flow",
|
|
26801
|
+
flexBasis: "flex-basis",
|
|
26802
|
+
flexGrow: "flex-grow",
|
|
26803
|
+
flexShrink: "flex-shrink",
|
|
26804
|
+
top: "top",
|
|
26805
|
+
right: "right",
|
|
26806
|
+
bottom: "bottom",
|
|
26807
|
+
left: "left"
|
|
26808
|
+
};
|
|
26809
|
+
var excludedProps = [
|
|
26810
|
+
"width",
|
|
26811
|
+
"height",
|
|
26812
|
+
"minWidth",
|
|
26813
|
+
"maxWidth",
|
|
26814
|
+
"minHeight",
|
|
26815
|
+
"maxHeight",
|
|
26816
|
+
"gridTemplateRows",
|
|
26817
|
+
"gridTemplateColumns",
|
|
26818
|
+
"flexBasis",
|
|
26819
|
+
"flexGrow",
|
|
26820
|
+
"flexShrink"
|
|
26821
|
+
];
|
|
26752
26822
|
function mapProps(props) {
|
|
26753
26823
|
const classes = [];
|
|
26754
26824
|
const styleProps = {};
|
|
@@ -26814,6 +26884,14 @@ function Box({
|
|
|
26814
26884
|
minHeight,
|
|
26815
26885
|
maxHeight,
|
|
26816
26886
|
position,
|
|
26887
|
+
align,
|
|
26888
|
+
basis,
|
|
26889
|
+
grow,
|
|
26890
|
+
shrink,
|
|
26891
|
+
top,
|
|
26892
|
+
right,
|
|
26893
|
+
bottom,
|
|
26894
|
+
left,
|
|
26817
26895
|
as = "div",
|
|
26818
26896
|
asChild,
|
|
26819
26897
|
className,
|
|
@@ -26848,7 +26926,15 @@ function Box({
|
|
|
26848
26926
|
height,
|
|
26849
26927
|
minHeight,
|
|
26850
26928
|
maxHeight,
|
|
26851
|
-
position
|
|
26929
|
+
position,
|
|
26930
|
+
textAlign: align,
|
|
26931
|
+
flexBasis: basis,
|
|
26932
|
+
flexGrow: grow,
|
|
26933
|
+
flexShrink: shrink,
|
|
26934
|
+
top,
|
|
26935
|
+
right,
|
|
26936
|
+
bottom,
|
|
26937
|
+
left
|
|
26852
26938
|
});
|
|
26853
26939
|
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
26854
26940
|
Component,
|
|
@@ -26884,8 +26970,8 @@ function Flexbox({
|
|
|
26884
26970
|
}) {
|
|
26885
26971
|
const [classes, styleProps] = mapProps({
|
|
26886
26972
|
display,
|
|
26887
|
-
direction,
|
|
26888
|
-
wrap,
|
|
26973
|
+
flexDirection: direction,
|
|
26974
|
+
flexWrap: wrap,
|
|
26889
26975
|
justifyContent,
|
|
26890
26976
|
justifyItems,
|
|
26891
26977
|
alignContent,
|
|
@@ -26930,7 +27016,13 @@ function Text({
|
|
|
26930
27016
|
...props
|
|
26931
27017
|
}) {
|
|
26932
27018
|
const Component = asChild ? Slot : as;
|
|
26933
|
-
const [classes, styleProps] = mapProps({
|
|
27019
|
+
const [classes, styleProps] = mapProps({
|
|
27020
|
+
fontSize: size,
|
|
27021
|
+
textAlign: align,
|
|
27022
|
+
textWrap: wrap,
|
|
27023
|
+
fontWeight: weight,
|
|
27024
|
+
letterSpacing
|
|
27025
|
+
});
|
|
26934
27026
|
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
26935
27027
|
Component,
|
|
26936
27028
|
{
|
|
@@ -27646,7 +27738,7 @@ function Container({
|
|
|
27646
27738
|
...props
|
|
27647
27739
|
}) {
|
|
27648
27740
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
|
|
27649
|
-
|
|
27741
|
+
Box,
|
|
27650
27742
|
{
|
|
27651
27743
|
...props,
|
|
27652
27744
|
className: (0, import_classnames20.default)(
|
|
@@ -27918,11 +28010,43 @@ function Dots({ className, ...props }) {
|
|
|
27918
28010
|
}
|
|
27919
28011
|
|
|
27920
28012
|
// src/components/Grid.tsx
|
|
27921
|
-
|
|
28013
|
+
var import_classnames28 = __toESM(require_classnames());
|
|
28014
|
+
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
28015
|
+
function Grid({
|
|
28016
|
+
display = "grid",
|
|
28017
|
+
justifyContent,
|
|
28018
|
+
justifyItems,
|
|
28019
|
+
alignContent,
|
|
28020
|
+
alignItems,
|
|
28021
|
+
gap,
|
|
28022
|
+
gapX,
|
|
28023
|
+
gapY,
|
|
28024
|
+
autoFlow,
|
|
28025
|
+
rows,
|
|
28026
|
+
columns,
|
|
28027
|
+
className,
|
|
28028
|
+
style,
|
|
28029
|
+
children,
|
|
28030
|
+
...props
|
|
28031
|
+
}) {
|
|
28032
|
+
const [classes, styleProps] = mapProps({
|
|
28033
|
+
display,
|
|
28034
|
+
justifyContent,
|
|
28035
|
+
justifyItems,
|
|
28036
|
+
alignContent,
|
|
28037
|
+
alignItems,
|
|
28038
|
+
gap,
|
|
28039
|
+
gapX,
|
|
28040
|
+
gapY,
|
|
28041
|
+
gridTemplateRows: rows,
|
|
28042
|
+
gridTemplateColumns: columns,
|
|
28043
|
+
gridAutoFlow: autoFlow
|
|
28044
|
+
});
|
|
28045
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(Box, { ...props, className: (0, import_classnames28.default)(className, classes), style: { ...styleProps, ...style }, children });
|
|
27922
28046
|
}
|
|
27923
28047
|
|
|
27924
28048
|
// src/components/Heading.tsx
|
|
27925
|
-
var
|
|
28049
|
+
var import_classnames29 = __toESM(require_classnames());
|
|
27926
28050
|
|
|
27927
28051
|
// src/components/Heading.module.css
|
|
27928
28052
|
var Heading_default = {
|
|
@@ -27930,7 +28054,7 @@ var Heading_default = {
|
|
|
27930
28054
|
};
|
|
27931
28055
|
|
|
27932
28056
|
// src/components/Heading.tsx
|
|
27933
|
-
var
|
|
28057
|
+
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
27934
28058
|
function Heading({
|
|
27935
28059
|
size = "5",
|
|
27936
28060
|
weight,
|
|
@@ -27940,12 +28064,12 @@ function Heading({
|
|
|
27940
28064
|
children,
|
|
27941
28065
|
...props
|
|
27942
28066
|
}) {
|
|
27943
|
-
const [classes, styleProps] = mapProps({ size, align, weight });
|
|
27944
|
-
return /* @__PURE__ */ (0,
|
|
28067
|
+
const [classes, styleProps] = mapProps({ fontSize: size, textAlign: align, fontWeight: weight });
|
|
28068
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
|
|
27945
28069
|
Box,
|
|
27946
28070
|
{
|
|
27947
28071
|
...props,
|
|
27948
|
-
className: (0,
|
|
28072
|
+
className: (0, import_classnames29.default)(Heading_default.heading, className, classes),
|
|
27949
28073
|
style: { ...styleProps, ...style },
|
|
27950
28074
|
children
|
|
27951
28075
|
}
|
|
@@ -27961,7 +28085,7 @@ var HoverTrigger_default = {
|
|
|
27961
28085
|
};
|
|
27962
28086
|
|
|
27963
28087
|
// src/components/HoverTrigger.tsx
|
|
27964
|
-
var
|
|
28088
|
+
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
27965
28089
|
var CLOSE_DELAY = 500;
|
|
27966
28090
|
function HoverTrigger({
|
|
27967
28091
|
isOpen,
|
|
@@ -28010,9 +28134,9 @@ function HoverTrigger({
|
|
|
28010
28134
|
}
|
|
28011
28135
|
}, closeDelay);
|
|
28012
28136
|
};
|
|
28013
|
-
return /* @__PURE__ */ (0,
|
|
28014
|
-
/* @__PURE__ */ (0,
|
|
28015
|
-
/* @__PURE__ */ (0,
|
|
28137
|
+
return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
|
|
28138
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { ref: triggerRef, onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, children: triggerElement }),
|
|
28139
|
+
/* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Popover, { isOpen: open, isNonModal: true, triggerRef, children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
28016
28140
|
"div",
|
|
28017
28141
|
{
|
|
28018
28142
|
className: HoverTrigger_default.wrapper,
|
|
@@ -28026,7 +28150,7 @@ function HoverTrigger({
|
|
|
28026
28150
|
|
|
28027
28151
|
// src/components/InlineEditField.tsx
|
|
28028
28152
|
var import_react162 = require("react");
|
|
28029
|
-
var
|
|
28153
|
+
var import_classnames30 = __toESM(require_classnames());
|
|
28030
28154
|
|
|
28031
28155
|
// src/components/InlineEditField.module.css
|
|
28032
28156
|
var InlineEditField_default = {
|
|
@@ -28035,7 +28159,7 @@ var InlineEditField_default = {
|
|
|
28035
28159
|
};
|
|
28036
28160
|
|
|
28037
28161
|
// src/components/InlineEditField.tsx
|
|
28038
|
-
var
|
|
28162
|
+
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
28039
28163
|
function InlineEditField({
|
|
28040
28164
|
value: defaultValue = "",
|
|
28041
28165
|
defaultEdit,
|
|
@@ -28070,17 +28194,17 @@ function InlineEditField({
|
|
|
28070
28194
|
handleCancel();
|
|
28071
28195
|
}
|
|
28072
28196
|
};
|
|
28073
|
-
return /* @__PURE__ */ (0,
|
|
28197
|
+
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
28074
28198
|
"div",
|
|
28075
28199
|
{
|
|
28076
28200
|
"aria-label": "Edit",
|
|
28077
28201
|
...props,
|
|
28078
|
-
className: (0,
|
|
28202
|
+
className: (0, import_classnames30.default)(InlineEditField_default.edit, className),
|
|
28079
28203
|
onClick: handleEdit,
|
|
28080
28204
|
children: [
|
|
28081
28205
|
!edit && children,
|
|
28082
|
-
!edit && /* @__PURE__ */ (0,
|
|
28083
|
-
edit && /* @__PURE__ */ (0,
|
|
28206
|
+
!edit && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icon, { className: InlineEditField_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Icons.Edit, {}) }),
|
|
28207
|
+
edit && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
28084
28208
|
TextField,
|
|
28085
28209
|
{
|
|
28086
28210
|
value,
|
|
@@ -28096,7 +28220,7 @@ function InlineEditField({
|
|
|
28096
28220
|
}
|
|
28097
28221
|
|
|
28098
28222
|
// src/components/Loading.tsx
|
|
28099
|
-
var
|
|
28223
|
+
var import_classnames31 = __toESM(require_classnames());
|
|
28100
28224
|
|
|
28101
28225
|
// src/components/Loading.module.css
|
|
28102
28226
|
var Loading_default = {
|
|
@@ -28107,20 +28231,20 @@ var Loading_default = {
|
|
|
28107
28231
|
};
|
|
28108
28232
|
|
|
28109
28233
|
// src/components/Loading.tsx
|
|
28110
|
-
var
|
|
28234
|
+
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
28111
28235
|
function Loading(props) {
|
|
28112
28236
|
const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
|
|
28113
|
-
return /* @__PURE__ */ (0,
|
|
28114
|
-
icon === "dots" && /* @__PURE__ */ (0,
|
|
28115
|
-
icon === "spinner" && /* @__PURE__ */ (0,
|
|
28237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { ...domProps, className: (0, import_classnames31.default)(Loading_default.loading, className, Loading_default[position]), children: [
|
|
28238
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Dots, {}),
|
|
28239
|
+
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Spinner, { size })
|
|
28116
28240
|
] });
|
|
28117
28241
|
}
|
|
28118
28242
|
|
|
28119
28243
|
// src/components/Menu.tsx
|
|
28120
|
-
var
|
|
28244
|
+
var import_classnames33 = __toESM(require_classnames());
|
|
28121
28245
|
|
|
28122
28246
|
// src/components/MenuItem.tsx
|
|
28123
|
-
var
|
|
28247
|
+
var import_classnames32 = __toESM(require_classnames());
|
|
28124
28248
|
|
|
28125
28249
|
// src/components/MenuItem.module.css
|
|
28126
28250
|
var MenuItem_default = {
|
|
@@ -28129,11 +28253,11 @@ var MenuItem_default = {
|
|
|
28129
28253
|
};
|
|
28130
28254
|
|
|
28131
28255
|
// src/components/MenuItem.tsx
|
|
28132
|
-
var
|
|
28256
|
+
var import_jsx_runtime41 = require("react/jsx-runtime");
|
|
28133
28257
|
function MenuItem2({ children, className, ...props }) {
|
|
28134
|
-
return /* @__PURE__ */ (0,
|
|
28258
|
+
return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames32.default)(MenuItem_default.item, className), children: [
|
|
28135
28259
|
children,
|
|
28136
|
-
/* @__PURE__ */ (0,
|
|
28260
|
+
/* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icon, { className: MenuItem_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Icons.Check, {}) }) })
|
|
28137
28261
|
] });
|
|
28138
28262
|
}
|
|
28139
28263
|
|
|
@@ -28144,18 +28268,18 @@ var Menu_default = {
|
|
|
28144
28268
|
};
|
|
28145
28269
|
|
|
28146
28270
|
// src/components/Menu.tsx
|
|
28147
|
-
var
|
|
28271
|
+
var import_jsx_runtime42 = require("react/jsx-runtime");
|
|
28148
28272
|
function Menu({ items, className, children, ...props }) {
|
|
28149
|
-
return /* @__PURE__ */ (0,
|
|
28273
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($3674c52c6b3c5bce$export$d9b273488cd8ce6f, { ...props, className: (0, import_classnames33.default)(Menu_default.menu, className), children: children || items?.map((item, index) => {
|
|
28150
28274
|
if (item === null) {
|
|
28151
|
-
return /* @__PURE__ */ (0,
|
|
28275
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { className: Menu_default.separator }, index);
|
|
28152
28276
|
}
|
|
28153
|
-
return /* @__PURE__ */ (0,
|
|
28277
|
+
return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MenuItem2, { id: item, children: item }, index);
|
|
28154
28278
|
}) });
|
|
28155
28279
|
}
|
|
28156
28280
|
|
|
28157
28281
|
// src/components/Modal.tsx
|
|
28158
|
-
var
|
|
28282
|
+
var import_classnames34 = __toESM(require_classnames());
|
|
28159
28283
|
|
|
28160
28284
|
// src/components/Modal.module.css
|
|
28161
28285
|
var Modal_default = {
|
|
@@ -28166,12 +28290,12 @@ var Modal_default = {
|
|
|
28166
28290
|
};
|
|
28167
28291
|
|
|
28168
28292
|
// src/components/Modal.tsx
|
|
28169
|
-
var
|
|
28293
|
+
var import_jsx_runtime43 = require("react/jsx-runtime");
|
|
28170
28294
|
function Modal({ children, className, ...props }) {
|
|
28171
|
-
return /* @__PURE__ */ (0,
|
|
28295
|
+
return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)($f3f84453ead64de5$export$8948f78d83984c69, { ...props, className: Modal_default.overlay, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
|
|
28172
28296
|
$f3f84453ead64de5$export$2b77a92f1a5ad772,
|
|
28173
28297
|
{
|
|
28174
|
-
className: (0,
|
|
28298
|
+
className: (0, import_classnames34.default)(Modal_default.modal, className),
|
|
28175
28299
|
isDismissable: true,
|
|
28176
28300
|
isKeyboardDismissDisabled: true,
|
|
28177
28301
|
children
|
|
@@ -28180,7 +28304,7 @@ function Modal({ children, className, ...props }) {
|
|
|
28180
28304
|
}
|
|
28181
28305
|
|
|
28182
28306
|
// src/components/NavigationMenu.tsx
|
|
28183
|
-
var
|
|
28307
|
+
var import_classnames35 = __toESM(require_classnames());
|
|
28184
28308
|
|
|
28185
28309
|
// src/components/hooks/useNavigationMenu.ts
|
|
28186
28310
|
var initialState3 = { activeMenu: null };
|
|
@@ -28198,14 +28322,14 @@ var NavigationMenu_default = {
|
|
|
28198
28322
|
};
|
|
28199
28323
|
|
|
28200
28324
|
// src/components/NavigationMenu.tsx
|
|
28201
|
-
var
|
|
28325
|
+
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
28202
28326
|
function NavigationMenu({
|
|
28203
28327
|
showArrow = true,
|
|
28204
28328
|
className,
|
|
28205
28329
|
children,
|
|
28206
28330
|
...props
|
|
28207
28331
|
}) {
|
|
28208
|
-
return /* @__PURE__ */ (0,
|
|
28332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ...props, className: (0, import_classnames35.default)(NavigationMenu_default.nav, className), children });
|
|
28209
28333
|
}
|
|
28210
28334
|
function NavigationMenuItem({
|
|
28211
28335
|
label,
|
|
@@ -28215,20 +28339,20 @@ function NavigationMenuItem({
|
|
|
28215
28339
|
}) {
|
|
28216
28340
|
const { activeMenu } = useNavigationMenu();
|
|
28217
28341
|
if (label) {
|
|
28218
|
-
return /* @__PURE__ */ (0,
|
|
28219
|
-
/* @__PURE__ */ (0,
|
|
28220
|
-
/* @__PURE__ */ (0,
|
|
28221
|
-
/* @__PURE__ */ (0,
|
|
28342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(HoverTrigger, { isOpen: activeMenu === label, onHoverStart: () => setActiveMenu(label), children: [
|
|
28343
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { ...props, className: (0, import_classnames35.default)(NavigationMenu_default.item, className), children: [
|
|
28344
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Text, { children: label }),
|
|
28345
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { rotate: 90, size: "xs", className: NavigationMenu_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icons.Chevron, {}) })
|
|
28222
28346
|
] }),
|
|
28223
28347
|
children
|
|
28224
28348
|
] });
|
|
28225
28349
|
}
|
|
28226
|
-
return /* @__PURE__ */ (0,
|
|
28350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { ...props, className: (0, import_classnames35.default)(NavigationMenu_default.item, className), children });
|
|
28227
28351
|
}
|
|
28228
28352
|
|
|
28229
28353
|
// src/components/PasswordField.tsx
|
|
28230
28354
|
var import_react163 = require("react");
|
|
28231
|
-
var
|
|
28355
|
+
var import_classnames36 = __toESM(require_classnames());
|
|
28232
28356
|
|
|
28233
28357
|
// src/components/PasswordField.module.css
|
|
28234
28358
|
var PasswordField_default = {
|
|
@@ -28236,24 +28360,24 @@ var PasswordField_default = {
|
|
|
28236
28360
|
};
|
|
28237
28361
|
|
|
28238
28362
|
// src/components/PasswordField.tsx
|
|
28239
|
-
var
|
|
28363
|
+
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
28240
28364
|
var PasswordField = (0, import_react163.forwardRef)(
|
|
28241
28365
|
({ label, className, ...props }, ref) => {
|
|
28242
28366
|
const [show, setShow] = (0, import_react163.useState)(false);
|
|
28243
28367
|
const type = show ? "text" : "password";
|
|
28244
28368
|
const handleShowPassword = () => setShow((state) => !state);
|
|
28245
|
-
return /* @__PURE__ */ (0,
|
|
28246
|
-
label && /* @__PURE__ */ (0,
|
|
28247
|
-
/* @__PURE__ */ (0,
|
|
28248
|
-
/* @__PURE__ */ (0,
|
|
28249
|
-
/* @__PURE__ */ (0,
|
|
28369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)($bcdf0525bf22703d$export$2c73285ae9390cec, { ...props, ref, className: (0, import_classnames36.default)(input_default.field, className), children: [
|
|
28370
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Label, { children: label }),
|
|
28371
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: input_default.row, children: [
|
|
28372
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)($3985021b0ad6602f$export$f5b8910cec6cf069, { type, className: input_default.input }),
|
|
28373
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { onClick: handleShowPassword, className: (0, import_classnames36.default)(PasswordField_default.icon, input_default.icon), children: show ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icons.EyeSlash, {}) : /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icons.Eye, {}) })
|
|
28250
28374
|
] })
|
|
28251
28375
|
] });
|
|
28252
28376
|
}
|
|
28253
28377
|
);
|
|
28254
28378
|
|
|
28255
28379
|
// src/components/ProgressBar.tsx
|
|
28256
|
-
var
|
|
28380
|
+
var import_classnames37 = __toESM(require_classnames());
|
|
28257
28381
|
|
|
28258
28382
|
// src/components/ProgressBar.module.css
|
|
28259
28383
|
var ProgressBar_default = {
|
|
@@ -28264,18 +28388,18 @@ var ProgressBar_default = {
|
|
|
28264
28388
|
};
|
|
28265
28389
|
|
|
28266
28390
|
// src/components/ProgressBar.tsx
|
|
28267
|
-
var
|
|
28391
|
+
var import_jsx_runtime46 = require("react/jsx-runtime");
|
|
28268
28392
|
function ProgressBar({ className, showValue, ...props }) {
|
|
28269
|
-
return /* @__PURE__ */ (0,
|
|
28270
|
-
return /* @__PURE__ */ (0,
|
|
28271
|
-
/* @__PURE__ */ (0,
|
|
28272
|
-
showValue && /* @__PURE__ */ (0,
|
|
28393
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames37.default)(ProgressBar_default.progressbar, className), children: ({ percentage = 0, valueText }) => {
|
|
28394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
|
|
28395
|
+
/* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: ProgressBar_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: ProgressBar_default.fill, style: { width: `${percentage}%` } }) }),
|
|
28396
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { className: ProgressBar_default.value, children: valueText })
|
|
28273
28397
|
] });
|
|
28274
28398
|
} });
|
|
28275
28399
|
}
|
|
28276
28400
|
|
|
28277
28401
|
// src/components/ProgressCircle.tsx
|
|
28278
|
-
var
|
|
28402
|
+
var import_classnames38 = __toESM(require_classnames());
|
|
28279
28403
|
|
|
28280
28404
|
// src/components/ProgressCircle.module.css
|
|
28281
28405
|
var ProgressCircle_default = {
|
|
@@ -28286,16 +28410,16 @@ var ProgressCircle_default = {
|
|
|
28286
28410
|
};
|
|
28287
28411
|
|
|
28288
28412
|
// src/components/ProgressCircle.tsx
|
|
28289
|
-
var
|
|
28413
|
+
var import_jsx_runtime47 = require("react/jsx-runtime");
|
|
28290
28414
|
function ProgressCircle({ className, showValue, ...props }) {
|
|
28291
|
-
return /* @__PURE__ */ (0,
|
|
28415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)($0393f8ab869a0f1a$export$c17561cb55d4db30, { ...props, className: (0, import_classnames38.default)(ProgressCircle_default.progresscircle, className), children: ({ percentage = 0, valueText }) => {
|
|
28292
28416
|
const radius = 45;
|
|
28293
28417
|
const circumference = radius * 2 * Math.PI;
|
|
28294
28418
|
const offset = circumference - percentage / 100 * circumference;
|
|
28295
|
-
return /* @__PURE__ */ (0,
|
|
28296
|
-
/* @__PURE__ */ (0,
|
|
28297
|
-
/* @__PURE__ */ (0,
|
|
28298
|
-
/* @__PURE__ */ (0,
|
|
28419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
|
|
28420
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("svg", { viewBox: "0 0 100 100", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
28421
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)("circle", { className: ProgressCircle_default.track, cx: "50", cy: "50", r: "45" }),
|
|
28422
|
+
/* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
28299
28423
|
"circle",
|
|
28300
28424
|
{
|
|
28301
28425
|
className: ProgressCircle_default.fill,
|
|
@@ -28307,14 +28431,14 @@ function ProgressCircle({ className, showValue, ...props }) {
|
|
|
28307
28431
|
}
|
|
28308
28432
|
)
|
|
28309
28433
|
] }),
|
|
28310
|
-
showValue && /* @__PURE__ */ (0,
|
|
28434
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("label", { className: ProgressCircle_default.value, children: valueText })
|
|
28311
28435
|
] });
|
|
28312
28436
|
} });
|
|
28313
28437
|
}
|
|
28314
28438
|
|
|
28315
28439
|
// src/components/RadioGroup.tsx
|
|
28316
28440
|
var import_react164 = require("react");
|
|
28317
|
-
var
|
|
28441
|
+
var import_classnames39 = __toESM(require_classnames());
|
|
28318
28442
|
|
|
28319
28443
|
// src/components/RadioGroup.module.css
|
|
28320
28444
|
var RadioGroup_default = {
|
|
@@ -28323,22 +28447,22 @@ var RadioGroup_default = {
|
|
|
28323
28447
|
};
|
|
28324
28448
|
|
|
28325
28449
|
// src/components/RadioGroup.tsx
|
|
28326
|
-
var
|
|
28450
|
+
var import_jsx_runtime48 = require("react/jsx-runtime");
|
|
28327
28451
|
var RadioGroup = (0, import_react164.forwardRef)(
|
|
28328
28452
|
({ label, children, className, ...props }, ref) => {
|
|
28329
|
-
return /* @__PURE__ */ (0,
|
|
28330
|
-
label && /* @__PURE__ */ (0,
|
|
28453
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)($b6c3ddc6086f204d$export$a98f0dcb43a68a25, { ...props, ref, className: (0, import_classnames39.default)(RadioGroup_default.radiogroup, className), children: [
|
|
28454
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Label, { children: label }),
|
|
28331
28455
|
children
|
|
28332
28456
|
] });
|
|
28333
28457
|
}
|
|
28334
28458
|
);
|
|
28335
28459
|
function Radio({ children, className, ...props }) {
|
|
28336
|
-
return /* @__PURE__ */ (0,
|
|
28460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)($b6c3ddc6086f204d$export$d7b12c4107be0d61, { ...props, className: (0, import_classnames39.default)(RadioGroup_default.radio, className), children });
|
|
28337
28461
|
}
|
|
28338
28462
|
|
|
28339
28463
|
// src/components/SearchField.tsx
|
|
28340
28464
|
var import_react165 = require("react");
|
|
28341
|
-
var
|
|
28465
|
+
var import_classnames40 = __toESM(require_classnames());
|
|
28342
28466
|
|
|
28343
28467
|
// src/components/SearchField.module.css
|
|
28344
28468
|
var SearchField_default = {
|
|
@@ -28348,7 +28472,7 @@ var SearchField_default = {
|
|
|
28348
28472
|
};
|
|
28349
28473
|
|
|
28350
28474
|
// src/components/SearchField.tsx
|
|
28351
|
-
var
|
|
28475
|
+
var import_jsx_runtime49 = require("react/jsx-runtime");
|
|
28352
28476
|
var SearchField = (0, import_react165.forwardRef)(
|
|
28353
28477
|
({ label, value, delay = 0, onSearch, className, ...props }, ref) => {
|
|
28354
28478
|
const [search, setSearch] = (0, import_react165.useState)(value ?? "");
|
|
@@ -28369,24 +28493,24 @@ var SearchField = (0, import_react165.forwardRef)(
|
|
|
28369
28493
|
onSearch?.(searchValue);
|
|
28370
28494
|
}
|
|
28371
28495
|
}, [searchValue, delay, onSearch]);
|
|
28372
|
-
return /* @__PURE__ */ (0,
|
|
28373
|
-
return /* @__PURE__ */ (0,
|
|
28374
|
-
label && /* @__PURE__ */ (0,
|
|
28375
|
-
/* @__PURE__ */ (0,
|
|
28376
|
-
/* @__PURE__ */ (0,
|
|
28377
|
-
/* @__PURE__ */ (0,
|
|
28496
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)($440f4836bcb56932$export$b94867ecbd698f21, { ...props, ref, className: (0, import_classnames40.default)(input_default.field, className), children: ({ state }) => {
|
|
28497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_jsx_runtime49.Fragment, { children: [
|
|
28498
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Label, { children: label }),
|
|
28499
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: input_default.row, children: [
|
|
28500
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.MagnifyingGlass, { className: (0, import_classnames40.default)(SearchField_default.search, input_default.icon) }),
|
|
28501
|
+
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
28378
28502
|
$3985021b0ad6602f$export$f5b8910cec6cf069,
|
|
28379
28503
|
{
|
|
28380
|
-
className: (0,
|
|
28504
|
+
className: (0, import_classnames40.default)(SearchField_default.input, input_default.input),
|
|
28381
28505
|
onChange: handleChange
|
|
28382
28506
|
}
|
|
28383
28507
|
),
|
|
28384
|
-
state.value && /* @__PURE__ */ (0,
|
|
28508
|
+
state.value && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
|
|
28385
28509
|
$d2b4bc8c273e7be6$export$353f5b6fc5456de1,
|
|
28386
28510
|
{
|
|
28387
|
-
className: (0,
|
|
28511
|
+
className: (0, import_classnames40.default)(SearchField_default.close, input_default.icon),
|
|
28388
28512
|
onPress: resetSearch,
|
|
28389
|
-
children: /* @__PURE__ */ (0,
|
|
28513
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icons.Close, {}) })
|
|
28390
28514
|
}
|
|
28391
28515
|
)
|
|
28392
28516
|
] })
|
|
@@ -28397,7 +28521,7 @@ var SearchField = (0, import_react165.forwardRef)(
|
|
|
28397
28521
|
|
|
28398
28522
|
// src/components/Select.tsx
|
|
28399
28523
|
var import_react166 = require("react");
|
|
28400
|
-
var
|
|
28524
|
+
var import_classnames41 = __toESM(require_classnames());
|
|
28401
28525
|
|
|
28402
28526
|
// src/components/Select.module.css
|
|
28403
28527
|
var Select_default = {
|
|
@@ -28407,7 +28531,7 @@ var Select_default = {
|
|
|
28407
28531
|
};
|
|
28408
28532
|
|
|
28409
28533
|
// src/components/Select.tsx
|
|
28410
|
-
var
|
|
28534
|
+
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
28411
28535
|
var Select = (0, import_react166.forwardRef)(
|
|
28412
28536
|
({
|
|
28413
28537
|
children,
|
|
@@ -28423,20 +28547,20 @@ var Select = (0, import_react166.forwardRef)(
|
|
|
28423
28547
|
onSelectionChange?.(e);
|
|
28424
28548
|
onChange?.(e);
|
|
28425
28549
|
};
|
|
28426
|
-
return /* @__PURE__ */ (0,
|
|
28550
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
|
|
28427
28551
|
$82d7e5349645de74$export$ef9b1a59e592288f,
|
|
28428
28552
|
{
|
|
28429
28553
|
...props,
|
|
28430
28554
|
ref,
|
|
28431
|
-
className: (0,
|
|
28555
|
+
className: (0, import_classnames41.default)(input_default.field, className),
|
|
28432
28556
|
onSelectionChange: handleChange,
|
|
28433
28557
|
children: [
|
|
28434
|
-
label && /* @__PURE__ */ (0,
|
|
28435
|
-
/* @__PURE__ */ (0,
|
|
28436
|
-
/* @__PURE__ */ (0,
|
|
28437
|
-
/* @__PURE__ */ (0,
|
|
28558
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Label, { children: label }),
|
|
28559
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames41.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
28560
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
28561
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Icons.Chevron, {}) }) })
|
|
28438
28562
|
] }) }),
|
|
28439
|
-
/* @__PURE__ */ (0,
|
|
28563
|
+
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(List, { items, className: Select_default.list, children }) })
|
|
28440
28564
|
]
|
|
28441
28565
|
}
|
|
28442
28566
|
);
|
|
@@ -28445,7 +28569,7 @@ var Select = (0, import_react166.forwardRef)(
|
|
|
28445
28569
|
|
|
28446
28570
|
// src/components/Slider.tsx
|
|
28447
28571
|
var import_react167 = require("react");
|
|
28448
|
-
var
|
|
28572
|
+
var import_classnames42 = __toESM(require_classnames());
|
|
28449
28573
|
|
|
28450
28574
|
// src/components/Slider.module.css
|
|
28451
28575
|
var Slider_default = {
|
|
@@ -28457,18 +28581,18 @@ var Slider_default = {
|
|
|
28457
28581
|
};
|
|
28458
28582
|
|
|
28459
28583
|
// src/components/Slider.tsx
|
|
28460
|
-
var
|
|
28584
|
+
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
28461
28585
|
var Slider = (0, import_react167.forwardRef)(
|
|
28462
28586
|
({ className, showValue = true, label, ...props }, ref) => {
|
|
28463
|
-
return /* @__PURE__ */ (0,
|
|
28464
|
-
/* @__PURE__ */ (0,
|
|
28465
|
-
label && /* @__PURE__ */ (0,
|
|
28466
|
-
showValue && /* @__PURE__ */ (0,
|
|
28587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames42.default)(Slider_default.slider, className), children: [
|
|
28588
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: Slider_default.header, children: [
|
|
28589
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Label, { className: Slider_default.label, children: label }),
|
|
28590
|
+
showValue && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
|
|
28467
28591
|
] }),
|
|
28468
|
-
/* @__PURE__ */ (0,
|
|
28592
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)($6f909507e6374d18$export$105594979f116971, { className: Slider_default.track, children: ({ state }) => {
|
|
28469
28593
|
const isHorizontal = state.orientation === "horizontal";
|
|
28470
|
-
return /* @__PURE__ */ (0,
|
|
28471
|
-
/* @__PURE__ */ (0,
|
|
28594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(import_jsx_runtime51.Fragment, { children: [
|
|
28595
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
|
|
28472
28596
|
"div",
|
|
28473
28597
|
{
|
|
28474
28598
|
className: Slider_default.fill,
|
|
@@ -28477,7 +28601,7 @@ var Slider = (0, import_react167.forwardRef)(
|
|
|
28477
28601
|
}
|
|
28478
28602
|
}
|
|
28479
28603
|
),
|
|
28480
|
-
/* @__PURE__ */ (0,
|
|
28604
|
+
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)($6f909507e6374d18$export$2c1b491743890dec, { className: Slider_default.thumb })
|
|
28481
28605
|
] });
|
|
28482
28606
|
} })
|
|
28483
28607
|
] });
|
|
@@ -28485,7 +28609,7 @@ var Slider = (0, import_react167.forwardRef)(
|
|
|
28485
28609
|
);
|
|
28486
28610
|
|
|
28487
28611
|
// src/components/StatusLight.tsx
|
|
28488
|
-
var
|
|
28612
|
+
var import_classnames43 = __toESM(require_classnames());
|
|
28489
28613
|
|
|
28490
28614
|
// src/components/StatusLight.module.css
|
|
28491
28615
|
var StatusLight_default = {
|
|
@@ -28500,14 +28624,14 @@ var StatusLight_default = {
|
|
|
28500
28624
|
};
|
|
28501
28625
|
|
|
28502
28626
|
// src/components/StatusLight.tsx
|
|
28503
|
-
var
|
|
28627
|
+
var import_jsx_runtime52 = require("react/jsx-runtime");
|
|
28504
28628
|
function StatusLight(props) {
|
|
28505
28629
|
const { color, variant = "inactive", children, className, ...domProps } = props;
|
|
28506
|
-
return /* @__PURE__ */ (0,
|
|
28507
|
-
/* @__PURE__ */ (0,
|
|
28630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { ...domProps, className: (0, import_classnames43.default)(StatusLight_default.statuslight, className), children: [
|
|
28631
|
+
/* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
|
|
28508
28632
|
"div",
|
|
28509
28633
|
{
|
|
28510
|
-
className: (0,
|
|
28634
|
+
className: (0, import_classnames43.default)(StatusLight_default.status, StatusLight_default[variant]),
|
|
28511
28635
|
style: { backgroundColor: color }
|
|
28512
28636
|
}
|
|
28513
28637
|
) }),
|
|
@@ -28517,7 +28641,7 @@ function StatusLight(props) {
|
|
|
28517
28641
|
|
|
28518
28642
|
// src/components/Switch.tsx
|
|
28519
28643
|
var import_react168 = require("react");
|
|
28520
|
-
var
|
|
28644
|
+
var import_classnames44 = __toESM(require_classnames());
|
|
28521
28645
|
|
|
28522
28646
|
// src/components/Switch.module.css
|
|
28523
28647
|
var Switch_default = {
|
|
@@ -28527,21 +28651,21 @@ var Switch_default = {
|
|
|
28527
28651
|
};
|
|
28528
28652
|
|
|
28529
28653
|
// src/components/Switch.tsx
|
|
28530
|
-
var
|
|
28654
|
+
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
28531
28655
|
var Switch = (0, import_react168.forwardRef)(
|
|
28532
28656
|
({ label, children, className, ...props }, ref) => {
|
|
28533
28657
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
28534
|
-
return /* @__PURE__ */ (0,
|
|
28535
|
-
label && /* @__PURE__ */ (0,
|
|
28536
|
-
/* @__PURE__ */ (0,
|
|
28658
|
+
return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(import_jsx_runtime53.Fragment, { children: [
|
|
28659
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label, { children: label }),
|
|
28660
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
|
|
28537
28661
|
$8e59e948500a8fe1$export$b5d5cf8927ab7262,
|
|
28538
28662
|
{
|
|
28539
28663
|
...props,
|
|
28540
28664
|
isSelected,
|
|
28541
28665
|
ref,
|
|
28542
|
-
className: (0,
|
|
28666
|
+
className: (0, import_classnames44.default)(Switch_default.switch, className),
|
|
28543
28667
|
children: [
|
|
28544
|
-
/* @__PURE__ */ (0,
|
|
28668
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: Switch_default.knob }) }),
|
|
28545
28669
|
children
|
|
28546
28670
|
]
|
|
28547
28671
|
}
|
|
@@ -28559,22 +28683,22 @@ var Tabs_default = {
|
|
|
28559
28683
|
};
|
|
28560
28684
|
|
|
28561
28685
|
// src/components/Tabs.tsx
|
|
28562
|
-
var
|
|
28686
|
+
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
28563
28687
|
function Tabs({ children, ...props }) {
|
|
28564
|
-
return /* @__PURE__ */ (0,
|
|
28688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($5e8ad37a45e1c704$export$b2539bed5023c21c, { ...props, className: Tabs_default.tabs, children });
|
|
28565
28689
|
}
|
|
28566
28690
|
function TabList({ children, ...props }) {
|
|
28567
|
-
return /* @__PURE__ */ (0,
|
|
28691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($5e8ad37a45e1c704$export$e51a686c67fdaa2d, { ...props, className: Tabs_default.list, children });
|
|
28568
28692
|
}
|
|
28569
28693
|
function Tab({ children, ...props }) {
|
|
28570
|
-
return /* @__PURE__ */ (0,
|
|
28694
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($5e8ad37a45e1c704$export$3e41faf802a29e71, { ...props, className: Tabs_default.tab, children });
|
|
28571
28695
|
}
|
|
28572
28696
|
function TabPanel({ children, ...props }) {
|
|
28573
|
-
return /* @__PURE__ */ (0,
|
|
28697
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)($5e8ad37a45e1c704$export$3d96ec278d3efce4, { ...props, className: Tabs_default.panel, children });
|
|
28574
28698
|
}
|
|
28575
28699
|
|
|
28576
28700
|
// src/components/TextOverflow.tsx
|
|
28577
|
-
var
|
|
28701
|
+
var import_classnames45 = __toESM(require_classnames());
|
|
28578
28702
|
|
|
28579
28703
|
// src/components/TextOverflow.module.css
|
|
28580
28704
|
var TextOverflow_default = {
|
|
@@ -28583,15 +28707,15 @@ var TextOverflow_default = {
|
|
|
28583
28707
|
};
|
|
28584
28708
|
|
|
28585
28709
|
// src/components/TextOverflow.tsx
|
|
28586
|
-
var
|
|
28710
|
+
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
28587
28711
|
function TextOverflow({ asChild, children, className, ...props }) {
|
|
28588
28712
|
const Component = asChild ? Slot : Text;
|
|
28589
|
-
return /* @__PURE__ */ (0,
|
|
28713
|
+
return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("div", { ...props, className: (0, import_classnames45.default)(TextOverflow_default.wrapper, className), children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Component, { className: TextOverflow_default.overflow, children }) });
|
|
28590
28714
|
}
|
|
28591
28715
|
|
|
28592
28716
|
// src/components/TextArea.tsx
|
|
28593
28717
|
var import_react169 = require("react");
|
|
28594
|
-
var
|
|
28718
|
+
var import_classnames46 = __toESM(require_classnames());
|
|
28595
28719
|
|
|
28596
28720
|
// src/components/TextArea.module.css
|
|
28597
28721
|
var TextArea_default = {
|
|
@@ -28602,24 +28726,24 @@ var TextArea_default = {
|
|
|
28602
28726
|
};
|
|
28603
28727
|
|
|
28604
28728
|
// src/components/TextArea.tsx
|
|
28605
|
-
var
|
|
28729
|
+
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
28606
28730
|
var TextArea = (0, import_react169.forwardRef)(
|
|
28607
28731
|
({ rows, cols, resize, className, style, children, ...props }, ref) => {
|
|
28608
|
-
return /* @__PURE__ */ (0,
|
|
28732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
28609
28733
|
TextField,
|
|
28610
28734
|
{
|
|
28611
28735
|
...props,
|
|
28612
28736
|
ref,
|
|
28613
|
-
className: (0,
|
|
28737
|
+
className: (0, import_classnames46.default)(resize && TextArea_default[`resize-${resize}`]),
|
|
28614
28738
|
asChild: true,
|
|
28615
|
-
children: /* @__PURE__ */ (0,
|
|
28739
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
|
|
28616
28740
|
}
|
|
28617
28741
|
);
|
|
28618
28742
|
}
|
|
28619
28743
|
);
|
|
28620
28744
|
|
|
28621
28745
|
// src/components/Toast.tsx
|
|
28622
|
-
var
|
|
28746
|
+
var import_classnames47 = __toESM(require_classnames());
|
|
28623
28747
|
var import_react171 = require("react");
|
|
28624
28748
|
|
|
28625
28749
|
// node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
@@ -28641,7 +28765,7 @@ var import_react170 = __toESM(require("react"), 1);
|
|
|
28641
28765
|
|
|
28642
28766
|
// node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-context/dist/index.mjs
|
|
28643
28767
|
var React7 = __toESM(require("react"), 1);
|
|
28644
|
-
var
|
|
28768
|
+
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
28645
28769
|
function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
28646
28770
|
let defaultContexts = [];
|
|
28647
28771
|
function createContext32(rootComponentName, defaultContext) {
|
|
@@ -28652,7 +28776,7 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
|
|
|
28652
28776
|
const { scope, children, ...context } = props;
|
|
28653
28777
|
const Context = scope?.[scopeName][index] || BaseContext;
|
|
28654
28778
|
const value = React7.useMemo(() => context, Object.values(context));
|
|
28655
|
-
return /* @__PURE__ */ (0,
|
|
28779
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Context.Provider, { value, children });
|
|
28656
28780
|
}
|
|
28657
28781
|
function useContext22(consumerName, scope) {
|
|
28658
28782
|
const Context = scope?.[scopeName][index] || BaseContext;
|
|
@@ -28701,7 +28825,7 @@ function composeContextScopes(...scopes) {
|
|
|
28701
28825
|
}
|
|
28702
28826
|
|
|
28703
28827
|
// node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
28704
|
-
var
|
|
28828
|
+
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
28705
28829
|
function createCollection(name) {
|
|
28706
28830
|
const PROVIDER_NAME2 = name + "CollectionProvider";
|
|
28707
28831
|
const [createCollectionContext, createCollectionScope2] = createContextScope(PROVIDER_NAME2);
|
|
@@ -28713,7 +28837,7 @@ function createCollection(name) {
|
|
|
28713
28837
|
const { scope, children } = props;
|
|
28714
28838
|
const ref = import_react170.default.useRef(null);
|
|
28715
28839
|
const itemMap = import_react170.default.useRef(/* @__PURE__ */ new Map()).current;
|
|
28716
|
-
return /* @__PURE__ */ (0,
|
|
28840
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
28717
28841
|
};
|
|
28718
28842
|
CollectionProvider.displayName = PROVIDER_NAME2;
|
|
28719
28843
|
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
@@ -28722,7 +28846,7 @@ function createCollection(name) {
|
|
|
28722
28846
|
const { scope, children } = props;
|
|
28723
28847
|
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
28724
28848
|
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
28725
|
-
return /* @__PURE__ */ (0,
|
|
28849
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Slot, { ref: composedRefs, children });
|
|
28726
28850
|
}
|
|
28727
28851
|
);
|
|
28728
28852
|
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
@@ -28738,7 +28862,7 @@ function createCollection(name) {
|
|
|
28738
28862
|
context.itemMap.set(ref, { ref, ...itemData });
|
|
28739
28863
|
return () => void context.itemMap.delete(ref);
|
|
28740
28864
|
});
|
|
28741
|
-
return /* @__PURE__ */ (0,
|
|
28865
|
+
return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Slot, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
28742
28866
|
}
|
|
28743
28867
|
);
|
|
28744
28868
|
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
@@ -28765,7 +28889,7 @@ function createCollection(name) {
|
|
|
28765
28889
|
|
|
28766
28890
|
// node_modules/@radix-ui/react-context/dist/index.mjs
|
|
28767
28891
|
var React9 = __toESM(require("react"), 1);
|
|
28768
|
-
var
|
|
28892
|
+
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
28769
28893
|
function createContextScope2(scopeName, createContextScopeDeps = []) {
|
|
28770
28894
|
let defaultContexts = [];
|
|
28771
28895
|
function createContext32(rootComponentName, defaultContext) {
|
|
@@ -28776,7 +28900,7 @@ function createContextScope2(scopeName, createContextScopeDeps = []) {
|
|
|
28776
28900
|
const { scope, children, ...context } = props;
|
|
28777
28901
|
const Context = scope?.[scopeName]?.[index] || BaseContext;
|
|
28778
28902
|
const value = React9.useMemo(() => context, Object.values(context));
|
|
28779
|
-
return /* @__PURE__ */ (0,
|
|
28903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Context.Provider, { value, children });
|
|
28780
28904
|
};
|
|
28781
28905
|
Provider.displayName = rootComponentName + "Provider";
|
|
28782
28906
|
function useContext22(consumerName, scope) {
|
|
@@ -28830,7 +28954,7 @@ var React13 = __toESM(require("react"), 1);
|
|
|
28830
28954
|
// node_modules/@radix-ui/react-primitive/dist/index.mjs
|
|
28831
28955
|
var React10 = __toESM(require("react"), 1);
|
|
28832
28956
|
var ReactDOM = __toESM(require("react-dom"), 1);
|
|
28833
|
-
var
|
|
28957
|
+
var import_jsx_runtime60 = require("react/jsx-runtime");
|
|
28834
28958
|
var NODES = [
|
|
28835
28959
|
"a",
|
|
28836
28960
|
"button",
|
|
@@ -28856,7 +28980,7 @@ var Primitive = NODES.reduce((primitive, node) => {
|
|
|
28856
28980
|
if (typeof window !== "undefined") {
|
|
28857
28981
|
window[Symbol.for("radix-ui")] = true;
|
|
28858
28982
|
}
|
|
28859
|
-
return /* @__PURE__ */ (0,
|
|
28983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Comp, { ...primitiveProps, ref: forwardedRef });
|
|
28860
28984
|
});
|
|
28861
28985
|
Node2.displayName = `Primitive.${node}`;
|
|
28862
28986
|
return { ...primitive, [node]: Node2 };
|
|
@@ -28891,7 +29015,7 @@ function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.docum
|
|
|
28891
29015
|
}
|
|
28892
29016
|
|
|
28893
29017
|
// node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs
|
|
28894
|
-
var
|
|
29018
|
+
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
28895
29019
|
var DISMISSABLE_LAYER_NAME = "DismissableLayer";
|
|
28896
29020
|
var CONTEXT_UPDATE = "dismissableLayer.update";
|
|
28897
29021
|
var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
|
|
@@ -28979,7 +29103,7 @@ var DismissableLayer = React13.forwardRef(
|
|
|
28979
29103
|
document.addEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
28980
29104
|
return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
|
|
28981
29105
|
}, []);
|
|
28982
|
-
return /* @__PURE__ */ (0,
|
|
29106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
28983
29107
|
Primitive.div,
|
|
28984
29108
|
{
|
|
28985
29109
|
...layerProps,
|
|
@@ -29013,7 +29137,7 @@ var DismissableLayerBranch = React13.forwardRef((props, forwardedRef) => {
|
|
|
29013
29137
|
};
|
|
29014
29138
|
}
|
|
29015
29139
|
}, [context.branches]);
|
|
29016
|
-
return /* @__PURE__ */ (0,
|
|
29140
|
+
return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Primitive.div, { ...props, ref: composedRefs });
|
|
29017
29141
|
});
|
|
29018
29142
|
DismissableLayerBranch.displayName = BRANCH_NAME;
|
|
29019
29143
|
function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {
|
|
@@ -29107,14 +29231,14 @@ var useLayoutEffect2 = Boolean(globalThis?.document) ? React14.useLayoutEffect :
|
|
|
29107
29231
|
};
|
|
29108
29232
|
|
|
29109
29233
|
// node_modules/@radix-ui/react-portal/dist/index.mjs
|
|
29110
|
-
var
|
|
29234
|
+
var import_jsx_runtime62 = require("react/jsx-runtime");
|
|
29111
29235
|
var PORTAL_NAME = "Portal";
|
|
29112
29236
|
var Portal = React15.forwardRef((props, forwardedRef) => {
|
|
29113
29237
|
const { container: containerProp, ...portalProps } = props;
|
|
29114
29238
|
const [mounted, setMounted] = React15.useState(false);
|
|
29115
29239
|
useLayoutEffect2(() => setMounted(true), []);
|
|
29116
29240
|
const container = containerProp || mounted && globalThis?.document?.body;
|
|
29117
|
-
return container ? import_react_dom9.default.createPortal(/* @__PURE__ */ (0,
|
|
29241
|
+
return container ? import_react_dom9.default.createPortal(/* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
|
|
29118
29242
|
});
|
|
29119
29243
|
Portal.displayName = PORTAL_NAME;
|
|
29120
29244
|
|
|
@@ -29289,11 +29413,11 @@ function useUncontrolledState({
|
|
|
29289
29413
|
|
|
29290
29414
|
// node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
29291
29415
|
var React18 = __toESM(require("react"), 1);
|
|
29292
|
-
var
|
|
29416
|
+
var import_jsx_runtime63 = require("react/jsx-runtime");
|
|
29293
29417
|
var NAME = "VisuallyHidden";
|
|
29294
29418
|
var VisuallyHidden = React18.forwardRef(
|
|
29295
29419
|
(props, forwardedRef) => {
|
|
29296
|
-
return /* @__PURE__ */ (0,
|
|
29420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
29297
29421
|
Primitive.span,
|
|
29298
29422
|
{
|
|
29299
29423
|
...props,
|
|
@@ -29319,7 +29443,7 @@ var VisuallyHidden = React18.forwardRef(
|
|
|
29319
29443
|
VisuallyHidden.displayName = NAME;
|
|
29320
29444
|
|
|
29321
29445
|
// node_modules/@radix-ui/react-toast/dist/index.mjs
|
|
29322
|
-
var
|
|
29446
|
+
var import_jsx_runtime64 = require("react/jsx-runtime");
|
|
29323
29447
|
var PROVIDER_NAME = "ToastProvider";
|
|
29324
29448
|
var [Collection, useCollection, createCollectionScope] = createCollection("Toast");
|
|
29325
29449
|
var [createToastContext, createToastScope] = createContextScope2("Toast", [createCollectionScope]);
|
|
@@ -29342,7 +29466,7 @@ var ToastProvider = (props) => {
|
|
|
29342
29466
|
`Invalid prop \`label\` supplied to \`${PROVIDER_NAME}\`. Expected non-empty \`string\`.`
|
|
29343
29467
|
);
|
|
29344
29468
|
}
|
|
29345
|
-
return /* @__PURE__ */ (0,
|
|
29469
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Collection.Provider, { scope: __scopeToast, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29346
29470
|
ToastProviderProvider,
|
|
29347
29471
|
{
|
|
29348
29472
|
scope: __scopeToast,
|
|
@@ -29473,7 +29597,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
29473
29597
|
return () => viewport.removeEventListener("keydown", handleKeyDown);
|
|
29474
29598
|
}
|
|
29475
29599
|
}, [getItems, getSortedTabbableCandidates]);
|
|
29476
|
-
return /* @__PURE__ */ (0,
|
|
29600
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(
|
|
29477
29601
|
Branch,
|
|
29478
29602
|
{
|
|
29479
29603
|
ref: wrapperRef,
|
|
@@ -29482,7 +29606,7 @@ var ToastViewport = React19.forwardRef(
|
|
|
29482
29606
|
tabIndex: -1,
|
|
29483
29607
|
style: { pointerEvents: hasToasts ? void 0 : "none" },
|
|
29484
29608
|
children: [
|
|
29485
|
-
hasToasts && /* @__PURE__ */ (0,
|
|
29609
|
+
hasToasts && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29486
29610
|
FocusProxy,
|
|
29487
29611
|
{
|
|
29488
29612
|
ref: headFocusProxyRef,
|
|
@@ -29494,8 +29618,8 @@ var ToastViewport = React19.forwardRef(
|
|
|
29494
29618
|
}
|
|
29495
29619
|
}
|
|
29496
29620
|
),
|
|
29497
|
-
/* @__PURE__ */ (0,
|
|
29498
|
-
hasToasts && /* @__PURE__ */ (0,
|
|
29621
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Collection.Slot, { scope: __scopeToast, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Primitive.ol, { tabIndex: -1, ...viewportProps, ref: composedRefs }) }),
|
|
29622
|
+
hasToasts && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29499
29623
|
FocusProxy,
|
|
29500
29624
|
{
|
|
29501
29625
|
ref: tailFocusProxyRef,
|
|
@@ -29518,7 +29642,7 @@ var FocusProxy = React19.forwardRef(
|
|
|
29518
29642
|
(props, forwardedRef) => {
|
|
29519
29643
|
const { __scopeToast, onFocusFromOutsideViewport, ...proxyProps } = props;
|
|
29520
29644
|
const context = useToastProviderContext(FOCUS_PROXY_NAME, __scopeToast);
|
|
29521
|
-
return /* @__PURE__ */ (0,
|
|
29645
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29522
29646
|
VisuallyHidden,
|
|
29523
29647
|
{
|
|
29524
29648
|
"aria-hidden": true,
|
|
@@ -29549,7 +29673,7 @@ var Toast = React19.forwardRef(
|
|
|
29549
29673
|
defaultProp: defaultOpen,
|
|
29550
29674
|
onChange: onOpenChange
|
|
29551
29675
|
});
|
|
29552
|
-
return /* @__PURE__ */ (0,
|
|
29676
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Presence, { present: forceMount || open, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29553
29677
|
ToastImpl,
|
|
29554
29678
|
{
|
|
29555
29679
|
open,
|
|
@@ -29665,8 +29789,8 @@ var ToastImpl = React19.forwardRef(
|
|
|
29665
29789
|
return node ? getAnnounceTextContent(node) : null;
|
|
29666
29790
|
}, [node]);
|
|
29667
29791
|
if (!context.viewport) return null;
|
|
29668
|
-
return /* @__PURE__ */ (0,
|
|
29669
|
-
announceTextContent && /* @__PURE__ */ (0,
|
|
29792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
29793
|
+
announceTextContent && /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29670
29794
|
ToastAnnounce,
|
|
29671
29795
|
{
|
|
29672
29796
|
__scopeToast,
|
|
@@ -29676,8 +29800,8 @@ var ToastImpl = React19.forwardRef(
|
|
|
29676
29800
|
children: announceTextContent
|
|
29677
29801
|
}
|
|
29678
29802
|
),
|
|
29679
|
-
/* @__PURE__ */ (0,
|
|
29680
|
-
/* @__PURE__ */ (0,
|
|
29803
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastInteractiveProvider, { scope: __scopeToast, onClose: handleClose, children: ReactDOM3.createPortal(
|
|
29804
|
+
/* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Collection.ItemSlot, { scope: __scopeToast, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29681
29805
|
Root,
|
|
29682
29806
|
{
|
|
29683
29807
|
asChild: true,
|
|
@@ -29685,7 +29809,7 @@ var ToastImpl = React19.forwardRef(
|
|
|
29685
29809
|
if (!context.isFocusedToastEscapeKeyDownRef.current) handleClose();
|
|
29686
29810
|
context.isFocusedToastEscapeKeyDownRef.current = false;
|
|
29687
29811
|
}),
|
|
29688
|
-
children: /* @__PURE__ */ (0,
|
|
29812
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29689
29813
|
Primitive.li,
|
|
29690
29814
|
{
|
|
29691
29815
|
role: "status",
|
|
@@ -29785,7 +29909,7 @@ var ToastAnnounce = (props) => {
|
|
|
29785
29909
|
const timer = window.setTimeout(() => setIsAnnounced(true), 1e3);
|
|
29786
29910
|
return () => window.clearTimeout(timer);
|
|
29787
29911
|
}, []);
|
|
29788
|
-
return isAnnounced ? null : /* @__PURE__ */ (0,
|
|
29912
|
+
return isAnnounced ? null : /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Portal, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(VisuallyHidden, { ...announceProps, children: renderAnnounceText && /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_jsx_runtime64.Fragment, { children: [
|
|
29789
29913
|
context.label,
|
|
29790
29914
|
" ",
|
|
29791
29915
|
children
|
|
@@ -29795,7 +29919,7 @@ var TITLE_NAME = "ToastTitle";
|
|
|
29795
29919
|
var ToastTitle = React19.forwardRef(
|
|
29796
29920
|
(props, forwardedRef) => {
|
|
29797
29921
|
const { __scopeToast, ...titleProps } = props;
|
|
29798
|
-
return /* @__PURE__ */ (0,
|
|
29922
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Primitive.div, { ...titleProps, ref: forwardedRef });
|
|
29799
29923
|
}
|
|
29800
29924
|
);
|
|
29801
29925
|
ToastTitle.displayName = TITLE_NAME;
|
|
@@ -29803,7 +29927,7 @@ var DESCRIPTION_NAME = "ToastDescription";
|
|
|
29803
29927
|
var ToastDescription = React19.forwardRef(
|
|
29804
29928
|
(props, forwardedRef) => {
|
|
29805
29929
|
const { __scopeToast, ...descriptionProps } = props;
|
|
29806
|
-
return /* @__PURE__ */ (0,
|
|
29930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Primitive.div, { ...descriptionProps, ref: forwardedRef });
|
|
29807
29931
|
}
|
|
29808
29932
|
);
|
|
29809
29933
|
ToastDescription.displayName = DESCRIPTION_NAME;
|
|
@@ -29817,7 +29941,7 @@ var ToastAction = React19.forwardRef(
|
|
|
29817
29941
|
);
|
|
29818
29942
|
return null;
|
|
29819
29943
|
}
|
|
29820
|
-
return /* @__PURE__ */ (0,
|
|
29944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastAnnounceExclude, { altText, asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastClose, { ...actionProps, ref: forwardedRef }) });
|
|
29821
29945
|
}
|
|
29822
29946
|
);
|
|
29823
29947
|
ToastAction.displayName = ACTION_NAME;
|
|
@@ -29826,7 +29950,7 @@ var ToastClose = React19.forwardRef(
|
|
|
29826
29950
|
(props, forwardedRef) => {
|
|
29827
29951
|
const { __scopeToast, ...closeProps } = props;
|
|
29828
29952
|
const interactiveContext = useToastInteractiveContext(CLOSE_NAME, __scopeToast);
|
|
29829
|
-
return /* @__PURE__ */ (0,
|
|
29953
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(ToastAnnounceExclude, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29830
29954
|
Primitive.button,
|
|
29831
29955
|
{
|
|
29832
29956
|
type: "button",
|
|
@@ -29840,7 +29964,7 @@ var ToastClose = React19.forwardRef(
|
|
|
29840
29964
|
ToastClose.displayName = CLOSE_NAME;
|
|
29841
29965
|
var ToastAnnounceExclude = React19.forwardRef((props, forwardedRef) => {
|
|
29842
29966
|
const { __scopeToast, altText, ...announceExcludeProps } = props;
|
|
29843
|
-
return /* @__PURE__ */ (0,
|
|
29967
|
+
return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
|
|
29844
29968
|
Primitive.div,
|
|
29845
29969
|
{
|
|
29846
29970
|
"data-radix-toast-announce-exclude": "",
|
|
@@ -29946,7 +30070,7 @@ var Toast_default = {
|
|
|
29946
30070
|
};
|
|
29947
30071
|
|
|
29948
30072
|
// src/components/Toast.tsx
|
|
29949
|
-
var
|
|
30073
|
+
var import_jsx_runtime65 = require("react/jsx-runtime");
|
|
29950
30074
|
var import_react172 = require("react");
|
|
29951
30075
|
var icons = {
|
|
29952
30076
|
info: Icons.Info,
|
|
@@ -29962,27 +30086,27 @@ function Toast2({
|
|
|
29962
30086
|
children,
|
|
29963
30087
|
...props
|
|
29964
30088
|
}) {
|
|
29965
|
-
return /* @__PURE__ */ (0,
|
|
29966
|
-
/* @__PURE__ */ (0,
|
|
29967
|
-
title && /* @__PURE__ */ (0,
|
|
29968
|
-
description && /* @__PURE__ */ (0,
|
|
29969
|
-
children && /* @__PURE__ */ (0,
|
|
29970
|
-
!children && allowClose && /* @__PURE__ */ (0,
|
|
30089
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(Root2, { ...props, className: (0, import_classnames47.default)(Toast_default.toast, className, variant && Toast_default[variant]), children: [
|
|
30090
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { className: Toast_default.icon, size: "md", children: variant && (0, import_react171.createElement)(icons[variant]) }),
|
|
30091
|
+
title && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToastTitle, { className: Toast_default.title, children: title }),
|
|
30092
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToastDescription, { className: Toast_default.description, children: description }),
|
|
30093
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToastAction, { className: Toast_default.action, altText: actionText || "Action", asChild: true, children }),
|
|
30094
|
+
!children && allowClose && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(ToastClose, { className: Toast_default.close, "aria-label": "Close", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icon, { size: "sm", "aria-hidden": true, children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Icons.Close, {}) }) })
|
|
29971
30095
|
] });
|
|
29972
30096
|
}
|
|
29973
30097
|
function Toaster(props) {
|
|
29974
30098
|
const { toasts } = useToast();
|
|
29975
|
-
return /* @__PURE__ */ (0,
|
|
30099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
|
|
29976
30100
|
toasts.map(({ id, message, props: props2 }) => {
|
|
29977
30101
|
return /* @__PURE__ */ (0, import_react172.createElement)(Toast2, { ...props2, key: id, description: message });
|
|
29978
30102
|
}),
|
|
29979
|
-
/* @__PURE__ */ (0,
|
|
30103
|
+
/* @__PURE__ */ (0, import_jsx_runtime65.jsx)(Viewport, { className: Toast_default.viewport, ...props })
|
|
29980
30104
|
] });
|
|
29981
30105
|
}
|
|
29982
30106
|
|
|
29983
30107
|
// src/components/Toggle.tsx
|
|
29984
30108
|
var import_react173 = require("react");
|
|
29985
|
-
var
|
|
30109
|
+
var import_classnames48 = __toESM(require_classnames());
|
|
29986
30110
|
|
|
29987
30111
|
// src/components/Toggle.module.css
|
|
29988
30112
|
var Toggle_default = {
|
|
@@ -29990,19 +30114,19 @@ var Toggle_default = {
|
|
|
29990
30114
|
};
|
|
29991
30115
|
|
|
29992
30116
|
// src/components/Toggle.tsx
|
|
29993
|
-
var
|
|
30117
|
+
var import_jsx_runtime66 = require("react/jsx-runtime");
|
|
29994
30118
|
var Toggle = (0, import_react173.forwardRef)(
|
|
29995
30119
|
({ label, children, className, ...props }, ref) => {
|
|
29996
30120
|
const isSelected = typeof props.value !== "undefined" ? !!props.value : void 0;
|
|
29997
|
-
return /* @__PURE__ */ (0,
|
|
29998
|
-
label && /* @__PURE__ */ (0,
|
|
29999
|
-
/* @__PURE__ */ (0,
|
|
30121
|
+
return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_jsx_runtime66.Fragment, { children: [
|
|
30122
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(Label, { children: label }),
|
|
30123
|
+
/* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
|
|
30000
30124
|
$efde0372d7a700fe$export$d2b052e7b4be1756,
|
|
30001
30125
|
{
|
|
30002
30126
|
...props,
|
|
30003
30127
|
ref,
|
|
30004
30128
|
isSelected,
|
|
30005
|
-
className: (0,
|
|
30129
|
+
className: (0, import_classnames48.default)(Toggle_default.toggle, className),
|
|
30006
30130
|
children
|
|
30007
30131
|
}
|
|
30008
30132
|
)
|
|
@@ -30011,7 +30135,7 @@ var Toggle = (0, import_react173.forwardRef)(
|
|
|
30011
30135
|
);
|
|
30012
30136
|
|
|
30013
30137
|
// src/components/ToggleGroup.tsx
|
|
30014
|
-
var
|
|
30138
|
+
var import_classnames49 = __toESM(require_classnames());
|
|
30015
30139
|
|
|
30016
30140
|
// src/components/ToggleGroup.module.css
|
|
30017
30141
|
var ToggleGroup_default = {
|
|
@@ -30021,19 +30145,19 @@ var ToggleGroup_default = {
|
|
|
30021
30145
|
};
|
|
30022
30146
|
|
|
30023
30147
|
// src/components/ToggleGroup.tsx
|
|
30024
|
-
var
|
|
30148
|
+
var import_jsx_runtime67 = require("react/jsx-runtime");
|
|
30025
30149
|
function ToggleGroup({ label, className, children, ...props }) {
|
|
30026
|
-
return /* @__PURE__ */ (0,
|
|
30027
|
-
label && /* @__PURE__ */ (0,
|
|
30028
|
-
/* @__PURE__ */ (0,
|
|
30150
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsxs)($eaf9e70818b436db$export$67ea30858aaf75e3, { ...props, className: (0, import_classnames49.default)(ToggleGroup_default.group, className), selectionBehavior: "toggle", children: [
|
|
30151
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime67.jsx)(Label, { children: label }),
|
|
30152
|
+
/* @__PURE__ */ (0, import_jsx_runtime67.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
|
|
30029
30153
|
] });
|
|
30030
30154
|
}
|
|
30031
30155
|
function ToggleGroupItem({ className, children, ...props }) {
|
|
30032
|
-
return /* @__PURE__ */ (0,
|
|
30156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime67.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames49.default)(ToggleGroup_default.item, className), children });
|
|
30033
30157
|
}
|
|
30034
30158
|
|
|
30035
30159
|
// src/components/Tooltip.tsx
|
|
30036
|
-
var
|
|
30160
|
+
var import_classnames50 = __toESM(require_classnames());
|
|
30037
30161
|
|
|
30038
30162
|
// src/components/Tooltip.module.css
|
|
30039
30163
|
var Tooltip_default = {
|
|
@@ -30043,21 +30167,21 @@ var Tooltip_default = {
|
|
|
30043
30167
|
};
|
|
30044
30168
|
|
|
30045
30169
|
// src/components/Tooltip.tsx
|
|
30046
|
-
var
|
|
30170
|
+
var import_jsx_runtime68 = require("react/jsx-runtime");
|
|
30047
30171
|
function Tooltip({ children, className, ...props }) {
|
|
30048
|
-
return /* @__PURE__ */ (0,
|
|
30049
|
-
/* @__PURE__ */ (0,
|
|
30172
|
+
return /* @__PURE__ */ (0, import_jsx_runtime68.jsxs)($4e3b923658d69c60$export$28c660c63b792dea, { ...props, className: (0, import_classnames50.default)(Tooltip_default.tooltip, className), children: [
|
|
30173
|
+
/* @__PURE__ */ (0, import_jsx_runtime68.jsx)($44f671af83e7d9e0$export$746d02f47f4d381, { className: Tooltip_default.arrow, children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("svg", { width: 8, height: 8, viewBox: "0 0 8 8", children: /* @__PURE__ */ (0, import_jsx_runtime68.jsx)("path", { d: "M0 0 L4 4 L8 0" }) }) }),
|
|
30050
30174
|
children
|
|
30051
30175
|
] });
|
|
30052
30176
|
}
|
|
30053
30177
|
|
|
30054
30178
|
// src/components/ZenProvider.tsx
|
|
30055
|
-
var
|
|
30179
|
+
var import_jsx_runtime69 = require("react/jsx-runtime");
|
|
30056
30180
|
function ZenProvider({ config = {}, children }) {
|
|
30057
30181
|
const { toast: toast2 } = config;
|
|
30058
|
-
return /* @__PURE__ */ (0,
|
|
30182
|
+
return /* @__PURE__ */ (0, import_jsx_runtime69.jsxs)(ToastProvider, { ...toast2, children: [
|
|
30059
30183
|
children,
|
|
30060
|
-
/* @__PURE__ */ (0,
|
|
30184
|
+
/* @__PURE__ */ (0, import_jsx_runtime69.jsx)(Toaster, {})
|
|
30061
30185
|
] });
|
|
30062
30186
|
}
|
|
30063
30187
|
/*! Bundled license information:
|