@cambly/syntax-core 6.4.0 → 6.5.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 +87 -105
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +90 -28
- package/dist/index.js +268 -174
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +261 -168
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ var require_classnames = __commonJS({
|
|
|
60
60
|
"use strict";
|
|
61
61
|
var hasOwn = {}.hasOwnProperty;
|
|
62
62
|
var nativeCodeString = "[native code]";
|
|
63
|
-
function
|
|
63
|
+
function classNames11() {
|
|
64
64
|
var classes = [];
|
|
65
65
|
for (var i = 0; i < arguments.length; i++) {
|
|
66
66
|
var arg = arguments[i];
|
|
@@ -71,7 +71,7 @@ var require_classnames = __commonJS({
|
|
|
71
71
|
classes.push(arg);
|
|
72
72
|
} else if (Array.isArray(arg)) {
|
|
73
73
|
if (arg.length) {
|
|
74
|
-
var inner =
|
|
74
|
+
var inner = classNames11.apply(null, arg);
|
|
75
75
|
if (inner) {
|
|
76
76
|
classes.push(inner);
|
|
77
77
|
}
|
|
@@ -91,14 +91,14 @@ var require_classnames = __commonJS({
|
|
|
91
91
|
return classes.join(" ");
|
|
92
92
|
}
|
|
93
93
|
if (typeof module !== "undefined" && module.exports) {
|
|
94
|
-
|
|
95
|
-
module.exports =
|
|
94
|
+
classNames11.default = classNames11;
|
|
95
|
+
module.exports = classNames11;
|
|
96
96
|
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
97
97
|
define("classnames", [], function() {
|
|
98
|
-
return
|
|
98
|
+
return classNames11;
|
|
99
99
|
});
|
|
100
100
|
} else {
|
|
101
|
-
window.classNames =
|
|
101
|
+
window.classNames = classNames11;
|
|
102
102
|
}
|
|
103
103
|
})();
|
|
104
104
|
}
|
|
@@ -433,6 +433,7 @@ var Badge_default = Badge;
|
|
|
433
433
|
|
|
434
434
|
// src/Button/Button.tsx
|
|
435
435
|
var import_classnames4 = __toESM(require_classnames());
|
|
436
|
+
import { forwardRef as forwardRef2 } from "react";
|
|
436
437
|
|
|
437
438
|
// css-module:./colors.module.css#css-module
|
|
438
439
|
var colors_module_default2 = { "inheritColor": "_inheritColor_11wj3_2", "destructive700Color": "_destructive700Color_11wj3_6", "gray700Color": "_gray700Color_11wj3_10", "gray900Color": "_gray900Color_11wj3_14", "primary700Color": "_primary700Color_11wj3_18", "whiteColor": "_whiteColor_11wj3_22", "blackBackgroundColor": "_blackBackgroundColor_11wj3_27", "destructive100BackgroundColor": "_destructive100BackgroundColor_11wj3_31", "destructive200BackgroundColor": "_destructive200BackgroundColor_11wj3_35", "destructive300BackgroundColor": "_destructive300BackgroundColor_11wj3_39", "destructive700BackgroundColor": "_destructive700BackgroundColor_11wj3_43", "destructive800BackgroundColor": "_destructive800BackgroundColor_11wj3_47", "destructive900BackgroundColor": "_destructive900BackgroundColor_11wj3_51", "gray10BackgroundColor": "_gray10BackgroundColor_11wj3_55", "gray30BackgroundColor": "_gray30BackgroundColor_11wj3_59", "gray60BackgroundColor": "_gray60BackgroundColor_11wj3_63", "gray80BackgroundColor": "_gray80BackgroundColor_11wj3_67", "gray100BackgroundColor": "_gray100BackgroundColor_11wj3_71", "gray200BackgroundColor": "_gray200BackgroundColor_11wj3_75", "gray300BackgroundColor": "_gray300BackgroundColor_11wj3_79", "gray700BackgroundColor": "_gray700BackgroundColor_11wj3_83", "gray800BackgroundColor": "_gray800BackgroundColor_11wj3_87", "gray900BackgroundColor": "_gray900BackgroundColor_11wj3_91", "orange100BackgroundColor": "_orange100BackgroundColor_11wj3_95", "orange200BackgroundColor": "_orange200BackgroundColor_11wj3_99", "orange300BackgroundColor": "_orange300BackgroundColor_11wj3_103", "orange700BackgroundColor": "_orange700BackgroundColor_11wj3_107", "orange800BackgroundColor": "_orange800BackgroundColor_11wj3_111", "orange900BackgroundColor": "_orange900BackgroundColor_11wj3_115", "primary100BackgroundColor": "_primary100BackgroundColor_11wj3_119", "primary200BackgroundColor": "_primary200BackgroundColor_11wj3_123", "primary300BackgroundColor": "_primary300BackgroundColor_11wj3_127", "primary700BackgroundColor": "_primary700BackgroundColor_11wj3_131", "primary800BackgroundColor": "_primary800BackgroundColor_11wj3_135", "primary900BackgroundColor": "_primary900BackgroundColor_11wj3_139", "success100BackgroundColor": "_success100BackgroundColor_11wj3_143", "success200BackgroundColor": "_success200BackgroundColor_11wj3_147", "success300BackgroundColor": "_success300BackgroundColor_11wj3_151", "success700BackgroundColor": "_success700BackgroundColor_11wj3_155", "success800BackgroundColor": "_success800BackgroundColor_11wj3_159", "success900BackgroundColor": "_success900BackgroundColor_11wj3_163", "purple100BackgroundColor": "_purple100BackgroundColor_11wj3_167", "purple200BackgroundColor": "_purple200BackgroundColor_11wj3_171", "purple300BackgroundColor": "_purple300BackgroundColor_11wj3_175", "purple700BackgroundColor": "_purple700BackgroundColor_11wj3_179", "purple800BackgroundColor": "_purple800BackgroundColor_11wj3_183", "purple900BackgroundColor": "_purple900BackgroundColor_11wj3_187", "whiteBackgroundColor": "_whiteBackgroundColor_11wj3_191", "yellow100BackgroundColor": "_yellow100BackgroundColor_11wj3_195", "yellow200BackgroundColor": "_yellow200BackgroundColor_11wj3_199", "yellow300BackgroundColor": "_yellow300BackgroundColor_11wj3_203", "yellow700BackgroundColor": "_yellow700BackgroundColor_11wj3_207", "yellow800BackgroundColor": "_yellow800BackgroundColor_11wj3_211", "yellow900BackgroundColor": "_yellow900BackgroundColor_11wj3_215" };
|
|
@@ -474,30 +475,54 @@ function foregroundColor(color) {
|
|
|
474
475
|
}
|
|
475
476
|
}
|
|
476
477
|
|
|
477
|
-
// src/
|
|
478
|
-
|
|
478
|
+
// src/colors/foregroundTypographyColor.ts
|
|
479
|
+
function foregroundTypographyColor(color) {
|
|
480
|
+
switch (color) {
|
|
481
|
+
case "secondary":
|
|
482
|
+
case "tertiary":
|
|
483
|
+
return "primary";
|
|
484
|
+
case "destructive-secondary":
|
|
485
|
+
case "destructive-tertiary":
|
|
486
|
+
return "destructive-primary";
|
|
487
|
+
case "branded":
|
|
488
|
+
return "gray900";
|
|
489
|
+
default:
|
|
490
|
+
return "white";
|
|
491
|
+
}
|
|
492
|
+
}
|
|
479
493
|
|
|
480
|
-
// css-module
|
|
481
|
-
var Button_module_default = { "button": "
|
|
494
|
+
// css-module:../Button.module.css#css-module
|
|
495
|
+
var Button_module_default = { "button": "_button_1fo30_1", "buttonGap": "_buttonGap_1fo30_9", "fullWidth": "_fullWidth_1fo30_50", "sm": "_sm_1fo30_54", "md": "_md_1fo30_61", "lg": "_lg_1fo30_68", "icon": "_icon_1fo30_75", "smIcon": "_smIcon_1fo30_79", "mdIcon": "_mdIcon_1fo30_86", "lgIcon": "_lgIcon_1fo30_93", "secondaryBorder": "_secondaryBorder_1fo30_100", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_1fo30_104", "loading": "_loading_1fo30_118", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1fo30_1", "loadingCircle": "_loadingCircle_1fo30_122" };
|
|
482
496
|
|
|
483
|
-
// src/Button/
|
|
484
|
-
|
|
497
|
+
// src/Button/constants/iconSize.ts
|
|
498
|
+
var iconSize = {
|
|
499
|
+
["sm"]: Button_module_default.smIcon,
|
|
500
|
+
["md"]: Button_module_default.mdIcon,
|
|
501
|
+
["lg"]: Button_module_default.lgIcon
|
|
502
|
+
};
|
|
503
|
+
var iconSize_default = iconSize;
|
|
504
|
+
|
|
505
|
+
// src/Button/constants/textVariant.ts
|
|
485
506
|
var textVariant = {
|
|
486
|
-
|
|
487
|
-
["
|
|
488
|
-
["
|
|
489
|
-
["lg"]: Button_module_default.buttonTextLarge
|
|
507
|
+
["sm"]: 100,
|
|
508
|
+
["md"]: 200,
|
|
509
|
+
["lg"]: 300
|
|
490
510
|
};
|
|
511
|
+
var textVariant_default = textVariant;
|
|
512
|
+
|
|
513
|
+
// src/Button/constants/loadingIconSize.ts
|
|
491
514
|
var loadingIconSize = {
|
|
492
515
|
["sm"]: 16,
|
|
493
516
|
["md"]: 20,
|
|
494
517
|
["lg"]: 24
|
|
495
518
|
};
|
|
496
|
-
var
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
519
|
+
var loadingIconSize_default = loadingIconSize;
|
|
520
|
+
|
|
521
|
+
// css-module:./Button.module.css#css-module
|
|
522
|
+
var Button_module_default2 = { "button": "_button_1fo30_1", "buttonGap": "_buttonGap_1fo30_9", "fullWidth": "_fullWidth_1fo30_50", "sm": "_sm_1fo30_54", "md": "_md_1fo30_61", "lg": "_lg_1fo30_68", "icon": "_icon_1fo30_75", "smIcon": "_smIcon_1fo30_79", "mdIcon": "_mdIcon_1fo30_86", "lgIcon": "_lgIcon_1fo30_93", "secondaryBorder": "_secondaryBorder_1fo30_100", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_1fo30_104", "loading": "_loading_1fo30_118", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1fo30_1", "loadingCircle": "_loadingCircle_1fo30_122" };
|
|
523
|
+
|
|
524
|
+
// src/Button/Button.tsx
|
|
525
|
+
import { jsx as jsx5, jsxs } from "react/jsx-runtime";
|
|
501
526
|
var Button = forwardRef2(
|
|
502
527
|
({
|
|
503
528
|
"data-testid": dataTestId,
|
|
@@ -526,32 +551,39 @@ var Button = forwardRef2(
|
|
|
526
551
|
disabled: disabled || loading,
|
|
527
552
|
onClick,
|
|
528
553
|
className: (0, import_classnames4.default)(
|
|
529
|
-
|
|
554
|
+
Button_module_default2.button,
|
|
530
555
|
foregroundColor(color),
|
|
531
556
|
backgroundColor(color),
|
|
532
|
-
|
|
557
|
+
Button_module_default2[size],
|
|
533
558
|
{
|
|
534
|
-
[
|
|
535
|
-
[
|
|
536
|
-
[
|
|
537
|
-
[
|
|
559
|
+
[Button_module_default2.fullWidth]: fullWidth,
|
|
560
|
+
[Button_module_default2.buttonGap]: size === "lg" || size === "md",
|
|
561
|
+
[Button_module_default2.secondaryBorder]: color === "secondary",
|
|
562
|
+
[Button_module_default2.secondaryDestructiveBorder]: color === "destructive-secondary"
|
|
538
563
|
}
|
|
539
564
|
),
|
|
540
565
|
children: [
|
|
541
|
-
!loading && StartIcon && /* @__PURE__ */ jsx5(StartIcon, { className: (0, import_classnames4.default)(
|
|
542
|
-
(loading && loadingText || !loading && text) && /* @__PURE__ */ jsx5(
|
|
543
|
-
|
|
566
|
+
!loading && StartIcon && /* @__PURE__ */ jsx5(StartIcon, { className: (0, import_classnames4.default)(Button_module_default2.icon, iconSize_default[size]) }),
|
|
567
|
+
(loading && loadingText || !loading && text) && /* @__PURE__ */ jsx5(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx5(
|
|
568
|
+
Typography_default,
|
|
569
|
+
{
|
|
570
|
+
size: textVariant_default[size],
|
|
571
|
+
color: foregroundTypographyColor(color),
|
|
572
|
+
children: /* @__PURE__ */ jsx5("span", { style: { fontWeight: 500 }, children: loading ? loadingText : text })
|
|
573
|
+
}
|
|
574
|
+
) }),
|
|
575
|
+
!loading && EndIcon && /* @__PURE__ */ jsx5(EndIcon, { className: (0, import_classnames4.default)(Button_module_default2.icon, iconSize_default[size]) }),
|
|
544
576
|
loading && /* @__PURE__ */ jsx5(
|
|
545
577
|
"svg",
|
|
546
578
|
{
|
|
547
|
-
className: (0, import_classnames4.default)(
|
|
579
|
+
className: (0, import_classnames4.default)(Button_module_default2.loading, foregroundColor(color)),
|
|
548
580
|
viewBox: "22 22 44 44",
|
|
549
|
-
width:
|
|
550
|
-
height:
|
|
581
|
+
width: loadingIconSize_default[size],
|
|
582
|
+
height: loadingIconSize_default[size],
|
|
551
583
|
children: /* @__PURE__ */ jsx5(
|
|
552
584
|
"circle",
|
|
553
585
|
{
|
|
554
|
-
className:
|
|
586
|
+
className: Button_module_default2.loadingCircle,
|
|
555
587
|
cx: "44",
|
|
556
588
|
cy: "44",
|
|
557
589
|
r: "20.2",
|
|
@@ -619,81 +651,8 @@ function Card({
|
|
|
619
651
|
);
|
|
620
652
|
}
|
|
621
653
|
|
|
622
|
-
// css-module:./Divider.module.css#css-module
|
|
623
|
-
var Divider_module_default = { "divider": "_divider_1ddgq_1" };
|
|
624
|
-
|
|
625
|
-
// src/Divider/Divider.tsx
|
|
626
|
-
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
627
|
-
function Divider() {
|
|
628
|
-
return /* @__PURE__ */ jsx8("hr", { className: Divider_module_default.divider });
|
|
629
|
-
}
|
|
630
|
-
Divider.displayName = "Divider";
|
|
631
|
-
|
|
632
|
-
// src/Heading/Heading.tsx
|
|
633
|
-
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
634
|
-
var Heading = ({
|
|
635
|
-
align = "start",
|
|
636
|
-
as = "h1",
|
|
637
|
-
children,
|
|
638
|
-
color = "gray900",
|
|
639
|
-
size = 500
|
|
640
|
-
}) => {
|
|
641
|
-
const weight = [700, 800].includes(size) ? "heavy" : "bold";
|
|
642
|
-
return /* @__PURE__ */ jsx9(Typography_default, { align, as, color, size, weight, children });
|
|
643
|
-
};
|
|
644
|
-
var Heading_default = Heading;
|
|
645
|
-
|
|
646
|
-
// src/IconButton/IconButton.tsx
|
|
647
|
-
var import_classnames6 = __toESM(require_classnames());
|
|
648
|
-
import { forwardRef as forwardRef3 } from "react";
|
|
649
|
-
|
|
650
|
-
// css-module:./IconButton.module.css#css-module
|
|
651
|
-
var IconButton_module_default = { "iconButton": "_iconButton_13wmh_1", "sm": "_sm_13wmh_46", "md": "_md_13wmh_51", "lg": "_lg_13wmh_56", "smIcon": "_smIcon_13wmh_61", "mdIcon": "_mdIcon_13wmh_68", "lgIcon": "_lgIcon_13wmh_75" };
|
|
652
|
-
|
|
653
|
-
// src/IconButton/IconButton.tsx
|
|
654
|
-
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
655
|
-
var iconSize2 = {
|
|
656
|
-
["sm"]: IconButton_module_default.smIcon,
|
|
657
|
-
["md"]: IconButton_module_default.mdIcon,
|
|
658
|
-
["lg"]: IconButton_module_default.lgIcon
|
|
659
|
-
};
|
|
660
|
-
var IconButton = forwardRef3(
|
|
661
|
-
({
|
|
662
|
-
accessibilityLabel,
|
|
663
|
-
color = "primary",
|
|
664
|
-
"data-testid": dataTestId,
|
|
665
|
-
disabled = false,
|
|
666
|
-
icon: Icon,
|
|
667
|
-
size = "md",
|
|
668
|
-
tooltip,
|
|
669
|
-
onClick
|
|
670
|
-
}, ref) => {
|
|
671
|
-
return /* @__PURE__ */ jsx10(
|
|
672
|
-
"button",
|
|
673
|
-
{
|
|
674
|
-
"aria-label": accessibilityLabel,
|
|
675
|
-
"data-testid": dataTestId,
|
|
676
|
-
type: "button",
|
|
677
|
-
title: tooltip,
|
|
678
|
-
disabled,
|
|
679
|
-
onClick,
|
|
680
|
-
className: (0, import_classnames6.default)(
|
|
681
|
-
IconButton_module_default.iconButton,
|
|
682
|
-
foregroundColor(color),
|
|
683
|
-
backgroundColor(color),
|
|
684
|
-
IconButton_module_default[size]
|
|
685
|
-
),
|
|
686
|
-
ref,
|
|
687
|
-
children: /* @__PURE__ */ jsx10(Icon, { className: iconSize2[size] })
|
|
688
|
-
}
|
|
689
|
-
);
|
|
690
|
-
}
|
|
691
|
-
);
|
|
692
|
-
IconButton.displayName = "IconButton";
|
|
693
|
-
var IconButton_default = IconButton;
|
|
694
|
-
|
|
695
654
|
// src/Checkbox/Checkbox.tsx
|
|
696
|
-
var
|
|
655
|
+
var import_classnames6 = __toESM(require_classnames());
|
|
697
656
|
import { useState as useState2 } from "react";
|
|
698
657
|
|
|
699
658
|
// src/useFocusVisible.tsx
|
|
@@ -793,7 +752,7 @@ var Checkbox_module_default = { "mainContainer": "_mainContainer_1omm6_1", "inpu
|
|
|
793
752
|
var Focus_module_default = { "accessibilityOutlineFocus": "_accessibilityOutlineFocus_1h8bq_1" };
|
|
794
753
|
|
|
795
754
|
// src/Checkbox/Checkbox.tsx
|
|
796
|
-
import { jsx as
|
|
755
|
+
import { jsx as jsx8, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
797
756
|
var typographySize = {
|
|
798
757
|
sm: 100,
|
|
799
758
|
md: 200
|
|
@@ -813,13 +772,13 @@ var Checkbox = ({
|
|
|
813
772
|
}) => {
|
|
814
773
|
const [isFocused, setIsFocused] = useState2(false);
|
|
815
774
|
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
816
|
-
const checkboxStyling = (0,
|
|
817
|
-
const uncheckedStyling = (0,
|
|
775
|
+
const checkboxStyling = (0, import_classnames6.default)(Checkbox_module_default.checkbox, Checkbox_module_default[size]);
|
|
776
|
+
const uncheckedStyling = (0, import_classnames6.default)(checkboxStyling, Checkbox_module_default.uncheckedBox, {
|
|
818
777
|
[Checkbox_module_default.uncheckedBorder]: !error,
|
|
819
778
|
[Checkbox_module_default.uncheckedErrorBorder]: error,
|
|
820
779
|
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
821
780
|
});
|
|
822
|
-
const checkedStyling = (0,
|
|
781
|
+
const checkedStyling = (0, import_classnames6.default)(checkboxStyling, Checkbox_module_default.checkedBox, {
|
|
823
782
|
[Checkbox_module_default.checkedNonError]: !error,
|
|
824
783
|
[Checkbox_module_default.checkedError]: error,
|
|
825
784
|
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
@@ -827,7 +786,7 @@ var Checkbox = ({
|
|
|
827
786
|
return /* @__PURE__ */ jsxs2(
|
|
828
787
|
"label",
|
|
829
788
|
{
|
|
830
|
-
className: (0,
|
|
789
|
+
className: (0, import_classnames6.default)(
|
|
831
790
|
Checkbox_module_default.mainContainer,
|
|
832
791
|
Checkbox_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
833
792
|
{
|
|
@@ -835,19 +794,19 @@ var Checkbox = ({
|
|
|
835
794
|
}
|
|
836
795
|
),
|
|
837
796
|
children: [
|
|
838
|
-
/* @__PURE__ */
|
|
797
|
+
/* @__PURE__ */ jsx8("div", { className: checked ? checkedStyling : uncheckedStyling, children: checked && /* @__PURE__ */ jsx8("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", width: iconWidth[size], children: /* @__PURE__ */ jsx8(
|
|
839
798
|
"path",
|
|
840
799
|
{
|
|
841
800
|
fill: "#fff",
|
|
842
801
|
d: "m9 16.2-3.5-3.5a.9839.9839 0 0 0-1.4 0c-.39.39-.39 1.01 0 1.4l4.19 4.19c.39.39 1.02.39 1.41 0L20.3 7.7c.39-.39.39-1.01 0-1.4a.9839.9839 0 0 0-1.4 0L9 16.2z"
|
|
843
802
|
}
|
|
844
803
|
) }) }),
|
|
845
|
-
/* @__PURE__ */
|
|
804
|
+
/* @__PURE__ */ jsx8(
|
|
846
805
|
"input",
|
|
847
806
|
{
|
|
848
807
|
"data-testid": dataTestId,
|
|
849
808
|
type: "checkbox",
|
|
850
|
-
className: (0,
|
|
809
|
+
className: (0, import_classnames6.default)(
|
|
851
810
|
Checkbox_module_default.inputOverlay,
|
|
852
811
|
Checkbox_module_default[size],
|
|
853
812
|
Checkbox_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`]
|
|
@@ -863,7 +822,7 @@ var Checkbox = ({
|
|
|
863
822
|
}
|
|
864
823
|
}
|
|
865
824
|
),
|
|
866
|
-
/* @__PURE__ */
|
|
825
|
+
/* @__PURE__ */ jsx8(
|
|
867
826
|
Typography_default,
|
|
868
827
|
{
|
|
869
828
|
size: typographySize[size],
|
|
@@ -877,22 +836,155 @@ var Checkbox = ({
|
|
|
877
836
|
};
|
|
878
837
|
var Checkbox_default = Checkbox;
|
|
879
838
|
|
|
839
|
+
// css-module:./Divider.module.css#css-module
|
|
840
|
+
var Divider_module_default = { "divider": "_divider_1ddgq_1" };
|
|
841
|
+
|
|
842
|
+
// src/Divider/Divider.tsx
|
|
843
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
844
|
+
function Divider() {
|
|
845
|
+
return /* @__PURE__ */ jsx9("hr", { className: Divider_module_default.divider });
|
|
846
|
+
}
|
|
847
|
+
Divider.displayName = "Divider";
|
|
848
|
+
|
|
849
|
+
// src/Heading/Heading.tsx
|
|
850
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
851
|
+
var Heading = ({
|
|
852
|
+
align = "start",
|
|
853
|
+
as = "h1",
|
|
854
|
+
children,
|
|
855
|
+
color = "gray900",
|
|
856
|
+
size = 500
|
|
857
|
+
}) => {
|
|
858
|
+
const weight = [700, 800].includes(size) ? "heavy" : "bold";
|
|
859
|
+
return /* @__PURE__ */ jsx10(Typography_default, { align, as, color, size, weight, children });
|
|
860
|
+
};
|
|
861
|
+
var Heading_default = Heading;
|
|
862
|
+
|
|
863
|
+
// src/IconButton/IconButton.tsx
|
|
864
|
+
var import_classnames7 = __toESM(require_classnames());
|
|
865
|
+
import { forwardRef as forwardRef3 } from "react";
|
|
866
|
+
|
|
867
|
+
// css-module:./IconButton.module.css#css-module
|
|
868
|
+
var IconButton_module_default = { "iconButton": "_iconButton_13wmh_1", "sm": "_sm_13wmh_46", "md": "_md_13wmh_51", "lg": "_lg_13wmh_56", "smIcon": "_smIcon_13wmh_61", "mdIcon": "_mdIcon_13wmh_68", "lgIcon": "_lgIcon_13wmh_75" };
|
|
869
|
+
|
|
870
|
+
// src/IconButton/IconButton.tsx
|
|
871
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
872
|
+
var iconSize2 = {
|
|
873
|
+
["sm"]: IconButton_module_default.smIcon,
|
|
874
|
+
["md"]: IconButton_module_default.mdIcon,
|
|
875
|
+
["lg"]: IconButton_module_default.lgIcon
|
|
876
|
+
};
|
|
877
|
+
var IconButton = forwardRef3(
|
|
878
|
+
({
|
|
879
|
+
accessibilityLabel,
|
|
880
|
+
color = "primary",
|
|
881
|
+
"data-testid": dataTestId,
|
|
882
|
+
disabled = false,
|
|
883
|
+
icon: Icon,
|
|
884
|
+
size = "md",
|
|
885
|
+
tooltip,
|
|
886
|
+
onClick
|
|
887
|
+
}, ref) => {
|
|
888
|
+
return /* @__PURE__ */ jsx11(
|
|
889
|
+
"button",
|
|
890
|
+
{
|
|
891
|
+
"aria-label": accessibilityLabel,
|
|
892
|
+
"data-testid": dataTestId,
|
|
893
|
+
type: "button",
|
|
894
|
+
title: tooltip,
|
|
895
|
+
disabled,
|
|
896
|
+
onClick,
|
|
897
|
+
className: (0, import_classnames7.default)(
|
|
898
|
+
IconButton_module_default.iconButton,
|
|
899
|
+
foregroundColor(color),
|
|
900
|
+
backgroundColor(color),
|
|
901
|
+
IconButton_module_default[size]
|
|
902
|
+
),
|
|
903
|
+
ref,
|
|
904
|
+
children: /* @__PURE__ */ jsx11(Icon, { className: iconSize2[size] })
|
|
905
|
+
}
|
|
906
|
+
);
|
|
907
|
+
}
|
|
908
|
+
);
|
|
909
|
+
IconButton.displayName = "IconButton";
|
|
910
|
+
var IconButton_default = IconButton;
|
|
911
|
+
|
|
912
|
+
// src/LinkButton/LinkButton.tsx
|
|
913
|
+
var import_classnames8 = __toESM(require_classnames());
|
|
914
|
+
|
|
915
|
+
// css-module:../Button/Button.module.css#css-module
|
|
916
|
+
var Button_module_default3 = { "button": "_button_1fo30_1", "buttonGap": "_buttonGap_1fo30_9", "fullWidth": "_fullWidth_1fo30_50", "sm": "_sm_1fo30_54", "md": "_md_1fo30_61", "lg": "_lg_1fo30_68", "icon": "_icon_1fo30_75", "smIcon": "_smIcon_1fo30_79", "mdIcon": "_mdIcon_1fo30_86", "lgIcon": "_lgIcon_1fo30_93", "secondaryBorder": "_secondaryBorder_1fo30_100", "secondaryDestructiveBorder": "_secondaryDestructiveBorder_1fo30_104", "loading": "_loading_1fo30_118", "syntaxButtonLoadingRotate": "_syntaxButtonLoadingRotate_1fo30_1", "loadingCircle": "_loadingCircle_1fo30_122" };
|
|
917
|
+
|
|
918
|
+
// css-module:./LinkButton.module.css#css-module
|
|
919
|
+
var LinkButton_module_default = { "linkButton": "_linkButton_1r7tz_1", "fitContent": "_fitContent_1r7tz_5" };
|
|
920
|
+
|
|
921
|
+
// src/LinkButton/LinkButton.tsx
|
|
922
|
+
import { jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
923
|
+
function LinkButton({
|
|
924
|
+
text,
|
|
925
|
+
href,
|
|
926
|
+
target,
|
|
927
|
+
"data-testid": dataTestId,
|
|
928
|
+
color = "primary",
|
|
929
|
+
size = "md",
|
|
930
|
+
fullWidth = false,
|
|
931
|
+
startIcon: StartIcon,
|
|
932
|
+
endIcon: EndIcon,
|
|
933
|
+
onClick
|
|
934
|
+
}) {
|
|
935
|
+
return /* @__PURE__ */ jsxs3(
|
|
936
|
+
"a",
|
|
937
|
+
{
|
|
938
|
+
href,
|
|
939
|
+
"data-testid": dataTestId,
|
|
940
|
+
target,
|
|
941
|
+
className: (0, import_classnames8.default)(
|
|
942
|
+
LinkButton_module_default.linkButton,
|
|
943
|
+
Button_module_default3.button,
|
|
944
|
+
foregroundColor(color),
|
|
945
|
+
backgroundColor(color),
|
|
946
|
+
Button_module_default3[size],
|
|
947
|
+
{
|
|
948
|
+
[Button_module_default3.fullWidth]: fullWidth,
|
|
949
|
+
[LinkButton_module_default.fitContent]: !fullWidth,
|
|
950
|
+
[Button_module_default3.buttonGap]: size === "lg" || size === "md",
|
|
951
|
+
[Button_module_default3.secondaryBorder]: color === "secondary",
|
|
952
|
+
[Button_module_default3.secondaryDestructiveBorder]: color === "destructive-secondary"
|
|
953
|
+
}
|
|
954
|
+
),
|
|
955
|
+
onClick,
|
|
956
|
+
children: [
|
|
957
|
+
StartIcon && /* @__PURE__ */ jsx12(StartIcon, { className: (0, import_classnames8.default)(Button_module_default3.icon, iconSize_default[size]) }),
|
|
958
|
+
/* @__PURE__ */ jsx12(
|
|
959
|
+
Typography_default,
|
|
960
|
+
{
|
|
961
|
+
color: foregroundTypographyColor(color),
|
|
962
|
+
size: textVariant_default[size],
|
|
963
|
+
children: /* @__PURE__ */ jsx12("span", { style: { fontWeight: 500 }, children: text })
|
|
964
|
+
}
|
|
965
|
+
),
|
|
966
|
+
EndIcon && /* @__PURE__ */ jsx12(EndIcon, { className: (0, import_classnames8.default)(Button_module_default3.icon, iconSize_default[size]) })
|
|
967
|
+
]
|
|
968
|
+
}
|
|
969
|
+
);
|
|
970
|
+
}
|
|
971
|
+
|
|
880
972
|
// css-module:./MiniActionCard.module.css#css-module
|
|
881
973
|
var MiniActionCard_module_default = { "miniActionCard": "_miniActionCard_qebkn_1", "card": "_card_qebkn_9" };
|
|
882
974
|
|
|
883
975
|
// src/MiniActionCard/MiniActionCard.tsx
|
|
884
|
-
import { jsx as
|
|
976
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
885
977
|
var MiniActionCard = ({
|
|
886
978
|
children
|
|
887
|
-
}) => /* @__PURE__ */
|
|
979
|
+
}) => /* @__PURE__ */ jsx13("div", { className: MiniActionCard_module_default.miniActionCard, children });
|
|
888
980
|
var MiniActionCard_default = MiniActionCard;
|
|
889
981
|
|
|
890
982
|
// src/Modal/Modal.tsx
|
|
891
|
-
var
|
|
983
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
892
984
|
|
|
893
985
|
// src/Modal/FocusTrap.tsx
|
|
894
986
|
import { useEffect as useEffect2, useRef } from "react";
|
|
895
|
-
import { jsx as
|
|
987
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
896
988
|
function queryFocusableAll(el) {
|
|
897
989
|
const selector = [
|
|
898
990
|
"a[href]",
|
|
@@ -953,7 +1045,7 @@ function FocusTrap({
|
|
|
953
1045
|
}
|
|
954
1046
|
};
|
|
955
1047
|
}, [elRef, previouslyFocusedElRef]);
|
|
956
|
-
return /* @__PURE__ */
|
|
1048
|
+
return /* @__PURE__ */ jsx14("div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
|
|
957
1049
|
}
|
|
958
1050
|
|
|
959
1051
|
// src/Modal/StopScroll.tsx
|
|
@@ -971,13 +1063,13 @@ function StopScroll(props) {
|
|
|
971
1063
|
|
|
972
1064
|
// src/Modal/Layer.tsx
|
|
973
1065
|
import { createPortal } from "react-dom";
|
|
974
|
-
import { jsx as
|
|
1066
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
975
1067
|
function Layer({
|
|
976
1068
|
children,
|
|
977
1069
|
zIndex = 1
|
|
978
1070
|
}) {
|
|
979
1071
|
return createPortal(
|
|
980
|
-
/* @__PURE__ */
|
|
1072
|
+
/* @__PURE__ */ jsx15(
|
|
981
1073
|
Box_default,
|
|
982
1074
|
{
|
|
983
1075
|
"data-testid": "syntax-layer",
|
|
@@ -996,9 +1088,9 @@ function Layer({
|
|
|
996
1088
|
var Modal_module_default = { "backdrop": "_backdrop_30t3h_1", "closeButton": "_closeButton_30t3h_12", "closeButtonWithImage": "_closeButtonWithImage_30t3h_32" };
|
|
997
1089
|
|
|
998
1090
|
// src/Modal/Modal.tsx
|
|
999
|
-
import { jsx as
|
|
1091
|
+
import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1000
1092
|
function XIcon({ color = "#000" }) {
|
|
1001
|
-
return /* @__PURE__ */
|
|
1093
|
+
return /* @__PURE__ */ jsx16("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", fill: color, children: /* @__PURE__ */ jsx16(
|
|
1002
1094
|
"path",
|
|
1003
1095
|
{
|
|
1004
1096
|
fill: "inherit",
|
|
@@ -1021,14 +1113,14 @@ function Modal({
|
|
|
1021
1113
|
zIndex = 1,
|
|
1022
1114
|
"data-testid": dataTestId
|
|
1023
1115
|
}) {
|
|
1024
|
-
return /* @__PURE__ */
|
|
1116
|
+
return /* @__PURE__ */ jsx16(Layer, { zIndex, children: /* @__PURE__ */ jsx16(StopScroll, { children: /* @__PURE__ */ jsx16(FocusTrap, { children: /* @__PURE__ */ jsx16(
|
|
1025
1117
|
"div",
|
|
1026
1118
|
{
|
|
1027
1119
|
className: Modal_module_default.backdrop,
|
|
1028
1120
|
role: "presentation",
|
|
1029
1121
|
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
1030
1122
|
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
1031
|
-
children: /* @__PURE__ */
|
|
1123
|
+
children: /* @__PURE__ */ jsxs4(
|
|
1032
1124
|
Box_default,
|
|
1033
1125
|
{
|
|
1034
1126
|
"data-testid": dataTestId,
|
|
@@ -1041,23 +1133,23 @@ function Modal({
|
|
|
1041
1133
|
width: "100%",
|
|
1042
1134
|
dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
|
|
1043
1135
|
children: [
|
|
1044
|
-
/* @__PURE__ */
|
|
1136
|
+
/* @__PURE__ */ jsx16(Box_default, { position: "relative", children: /* @__PURE__ */ jsx16(
|
|
1045
1137
|
"button",
|
|
1046
1138
|
{
|
|
1047
1139
|
"aria-label": accessibilityCloseLabel,
|
|
1048
1140
|
type: "button",
|
|
1049
|
-
className: (0,
|
|
1141
|
+
className: (0, import_classnames9.default)(Modal_module_default.closeButton, {
|
|
1050
1142
|
[Modal_module_default.closeButtonWithImage]: !!image
|
|
1051
1143
|
}),
|
|
1052
1144
|
onClick: onDismiss,
|
|
1053
|
-
children: /* @__PURE__ */
|
|
1145
|
+
children: /* @__PURE__ */ jsx16(XIcon, { color: image ? "#fff" : "#000" })
|
|
1054
1146
|
}
|
|
1055
1147
|
) }),
|
|
1056
|
-
image && /* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
footer && /* @__PURE__ */
|
|
1148
|
+
image && /* @__PURE__ */ jsx16(Box_default, { maxHeight: 200, children: image }),
|
|
1149
|
+
/* @__PURE__ */ jsxs4(Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
|
|
1150
|
+
/* @__PURE__ */ jsx16(Heading_default, { as: "h1", size: 500, children: header }),
|
|
1151
|
+
/* @__PURE__ */ jsx16(Box_default, { marginBottom: 4, children }),
|
|
1152
|
+
footer && /* @__PURE__ */ jsx16(
|
|
1061
1153
|
Box_default,
|
|
1062
1154
|
{
|
|
1063
1155
|
display: "flex",
|
|
@@ -1080,14 +1172,14 @@ function Modal({
|
|
|
1080
1172
|
Modal.displayName = "Modal";
|
|
1081
1173
|
|
|
1082
1174
|
// src/RadioButton/RadioButton.tsx
|
|
1083
|
-
var
|
|
1175
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
1084
1176
|
import { useState as useState3 } from "react";
|
|
1085
1177
|
|
|
1086
1178
|
// css-module:./RadioButton.module.css#css-module
|
|
1087
1179
|
var RadioButton_module_default = { "radioBaseContainer": "_radioBaseContainer_6h2zg_1", "disabled": "_disabled_6h2zg_9", "cursorDisabled": "_cursorDisabled_6h2zg_13", "cursorEnabled": "_cursorEnabled_6h2zg_17", "smBase": "_smBase_6h2zg_21", "mdBase": "_mdBase_6h2zg_25", "radioStyleOverride": "_radioStyleOverride_6h2zg_29", "smOverride": "_smOverride_6h2zg_34", "mdOverride": "_mdOverride_6h2zg_39", "background": "_background_6h2zg_44", "sm": "_sm_6h2zg_21", "md": "_md_6h2zg_25", "neutralBorder": "_neutralBorder_6h2zg_61", "smCheckedBorder": "_smCheckedBorder_6h2zg_65", "mdCheckedBorder": "_mdCheckedBorder_6h2zg_69", "errorBorderColor": "_errorBorderColor_6h2zg_73", "borderColor": "_borderColor_6h2zg_77" };
|
|
1088
1180
|
|
|
1089
1181
|
// src/RadioButton/RadioButton.tsx
|
|
1090
|
-
import { jsx as
|
|
1182
|
+
import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1091
1183
|
var RadioButton = ({
|
|
1092
1184
|
checked = false,
|
|
1093
1185
|
"data-testid": dataTestId,
|
|
@@ -1102,15 +1194,15 @@ var RadioButton = ({
|
|
|
1102
1194
|
}) => {
|
|
1103
1195
|
const [isFocused, setIsFocused] = useState3(false);
|
|
1104
1196
|
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
1105
|
-
const sharedStyles = (0,
|
|
1197
|
+
const sharedStyles = (0, import_classnames10.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
|
|
1106
1198
|
[RadioButton_module_default.errorBorderColor]: error,
|
|
1107
1199
|
[RadioButton_module_default.borderColor]: !error,
|
|
1108
1200
|
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
1109
1201
|
});
|
|
1110
|
-
return /* @__PURE__ */
|
|
1202
|
+
return /* @__PURE__ */ jsxs5(
|
|
1111
1203
|
"label",
|
|
1112
1204
|
{
|
|
1113
|
-
className: (0,
|
|
1205
|
+
className: (0, import_classnames10.default)(
|
|
1114
1206
|
RadioButton_module_default.radioBaseContainer,
|
|
1115
1207
|
RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
1116
1208
|
{
|
|
@@ -1120,23 +1212,23 @@ var RadioButton = ({
|
|
|
1120
1212
|
}
|
|
1121
1213
|
),
|
|
1122
1214
|
children: [
|
|
1123
|
-
checked ? /* @__PURE__ */
|
|
1215
|
+
checked ? /* @__PURE__ */ jsx17(
|
|
1124
1216
|
"div",
|
|
1125
1217
|
{
|
|
1126
|
-
className: (0,
|
|
1218
|
+
className: (0, import_classnames10.default)(sharedStyles, {
|
|
1127
1219
|
[RadioButton_module_default.mdCheckedBorder]: size === "md",
|
|
1128
1220
|
[RadioButton_module_default.smCheckedBorder]: size === "sm"
|
|
1129
1221
|
})
|
|
1130
1222
|
}
|
|
1131
|
-
) : /* @__PURE__ */
|
|
1132
|
-
/* @__PURE__ */
|
|
1223
|
+
) : /* @__PURE__ */ jsx17("div", { className: (0, import_classnames10.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
|
|
1224
|
+
/* @__PURE__ */ jsx17(
|
|
1133
1225
|
"input",
|
|
1134
1226
|
{
|
|
1135
1227
|
"data-testid": dataTestId,
|
|
1136
1228
|
type: "radio",
|
|
1137
1229
|
id,
|
|
1138
1230
|
name,
|
|
1139
|
-
className: (0,
|
|
1231
|
+
className: (0, import_classnames10.default)(
|
|
1140
1232
|
RadioButton_module_default.radioStyleOverride,
|
|
1141
1233
|
RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
1142
1234
|
{
|
|
@@ -1156,7 +1248,7 @@ var RadioButton = ({
|
|
|
1156
1248
|
}
|
|
1157
1249
|
}
|
|
1158
1250
|
),
|
|
1159
|
-
label && /* @__PURE__ */
|
|
1251
|
+
label && /* @__PURE__ */ jsx17(
|
|
1160
1252
|
Typography_default,
|
|
1161
1253
|
{
|
|
1162
1254
|
size: size === "md" ? 200 : 100,
|
|
@@ -1171,7 +1263,7 @@ var RadioButton = ({
|
|
|
1171
1263
|
var RadioButton_default = RadioButton;
|
|
1172
1264
|
|
|
1173
1265
|
// src/SelectList/SelectList.tsx
|
|
1174
|
-
var
|
|
1266
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
1175
1267
|
import {
|
|
1176
1268
|
useId,
|
|
1177
1269
|
useState as useState4
|
|
@@ -1185,17 +1277,17 @@ var ColorBaseGray800 = "#353535";
|
|
|
1185
1277
|
var SelectList_module_default = { "selectContainer": "_selectContainer_1cdwo_1", "opacityOverlay": "_opacityOverlay_1cdwo_7", "outerTextContainer": "_outerTextContainer_1cdwo_11", "selectWrapper": "_selectWrapper_1cdwo_16", "selectBox": "_selectBox_1cdwo_21", "selectMouseFocusStyling": "_selectMouseFocusStyling_1cdwo_37", "unselected": "_unselected_1cdwo_42", "selected": "_selected_1cdwo_46", "arrowIcon": "_arrowIcon_1cdwo_50", "sm": "_sm_1cdwo_64", "md": "_md_1cdwo_70", "lg": "_lg_1cdwo_76", "selectError": "_selectError_1cdwo_82" };
|
|
1186
1278
|
|
|
1187
1279
|
// src/SelectList/SelectOption.tsx
|
|
1188
|
-
import { jsx as
|
|
1280
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1189
1281
|
var SelectOption = ({
|
|
1190
1282
|
"data-testid": dataTestId,
|
|
1191
1283
|
value,
|
|
1192
1284
|
label,
|
|
1193
1285
|
disabled = false
|
|
1194
|
-
}) => /* @__PURE__ */
|
|
1286
|
+
}) => /* @__PURE__ */ jsx18("option", { "data-testid": dataTestId, value, disabled, children: label });
|
|
1195
1287
|
var SelectOption_default = SelectOption;
|
|
1196
1288
|
|
|
1197
1289
|
// src/SelectList/SelectList.tsx
|
|
1198
|
-
import { jsx as
|
|
1290
|
+
import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1199
1291
|
var iconSize3 = {
|
|
1200
1292
|
sm: 20,
|
|
1201
1293
|
md: 24,
|
|
@@ -1217,22 +1309,22 @@ function SelectList({
|
|
|
1217
1309
|
const id = useId();
|
|
1218
1310
|
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
1219
1311
|
const [isFocused, setIsFocused] = useState4(false);
|
|
1220
|
-
return /* @__PURE__ */
|
|
1312
|
+
return /* @__PURE__ */ jsxs6(
|
|
1221
1313
|
"div",
|
|
1222
1314
|
{
|
|
1223
|
-
className: (0,
|
|
1315
|
+
className: (0, import_classnames11.default)(SelectList_module_default.selectContainer, {
|
|
1224
1316
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
1225
1317
|
}),
|
|
1226
1318
|
children: [
|
|
1227
|
-
label && /* @__PURE__ */
|
|
1228
|
-
/* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
1319
|
+
label && /* @__PURE__ */ jsx19("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx19(Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
1320
|
+
/* @__PURE__ */ jsxs6("div", { className: SelectList_module_default.selectWrapper, children: [
|
|
1321
|
+
/* @__PURE__ */ jsxs6(
|
|
1230
1322
|
"select",
|
|
1231
1323
|
{
|
|
1232
1324
|
id,
|
|
1233
1325
|
"data-testid": dataTestId,
|
|
1234
1326
|
disabled,
|
|
1235
|
-
className: (0,
|
|
1327
|
+
className: (0, import_classnames11.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
|
|
1236
1328
|
[SelectList_module_default.unselected]: !selectedValue && !errorText,
|
|
1237
1329
|
[SelectList_module_default.selected]: selectedValue && !errorText,
|
|
1238
1330
|
[SelectList_module_default.selectError]: errorText,
|
|
@@ -1247,19 +1339,19 @@ function SelectList({
|
|
|
1247
1339
|
onFocus: () => setIsFocused(true),
|
|
1248
1340
|
onBlur: () => setIsFocused(false),
|
|
1249
1341
|
children: [
|
|
1250
|
-
placeholderText && /* @__PURE__ */
|
|
1342
|
+
placeholderText && /* @__PURE__ */ jsx19("option", { disabled: true, value: placeholderText, children: placeholderText }),
|
|
1251
1343
|
children
|
|
1252
1344
|
]
|
|
1253
1345
|
}
|
|
1254
1346
|
),
|
|
1255
|
-
/* @__PURE__ */
|
|
1347
|
+
/* @__PURE__ */ jsx19("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ jsx19(
|
|
1256
1348
|
"svg",
|
|
1257
1349
|
{
|
|
1258
1350
|
focusable: "false",
|
|
1259
1351
|
"aria-hidden": "true",
|
|
1260
1352
|
viewBox: "0 0 24 24",
|
|
1261
1353
|
width: iconSize3[size],
|
|
1262
|
-
children: /* @__PURE__ */
|
|
1354
|
+
children: /* @__PURE__ */ jsx19(
|
|
1263
1355
|
"path",
|
|
1264
1356
|
{
|
|
1265
1357
|
fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
|
|
@@ -1269,7 +1361,7 @@ function SelectList({
|
|
|
1269
1361
|
}
|
|
1270
1362
|
) })
|
|
1271
1363
|
] }),
|
|
1272
|
-
(helperText || errorText) && /* @__PURE__ */
|
|
1364
|
+
(helperText || errorText) && /* @__PURE__ */ jsx19("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx19(
|
|
1273
1365
|
Typography_default,
|
|
1274
1366
|
{
|
|
1275
1367
|
size: 100,
|
|
@@ -1284,7 +1376,7 @@ function SelectList({
|
|
|
1284
1376
|
SelectList.Option = SelectOption_default;
|
|
1285
1377
|
|
|
1286
1378
|
// src/TextField/TextField.tsx
|
|
1287
|
-
var
|
|
1379
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
1288
1380
|
import {
|
|
1289
1381
|
useId as useId2
|
|
1290
1382
|
} from "react";
|
|
@@ -1293,7 +1385,7 @@ import {
|
|
|
1293
1385
|
var TextField_module_default = { "textfield": "_textfield_cltsv_1", "label": "_label_cltsv_21", "sm": "_sm_cltsv_25", "md": "_md_cltsv_30", "lg": "_lg_cltsv_35", "inputError": "_inputError_cltsv_40" };
|
|
1294
1386
|
|
|
1295
1387
|
// src/TextField/TextField.tsx
|
|
1296
|
-
import { jsx as
|
|
1388
|
+
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1297
1389
|
function TextField({
|
|
1298
1390
|
autoComplete,
|
|
1299
1391
|
"data-testid": dataTestId,
|
|
@@ -1310,7 +1402,7 @@ function TextField({
|
|
|
1310
1402
|
}) {
|
|
1311
1403
|
const reactId = useId2();
|
|
1312
1404
|
const inputId = id != null ? id : reactId;
|
|
1313
|
-
return /* @__PURE__ */
|
|
1405
|
+
return /* @__PURE__ */ jsxs7(
|
|
1314
1406
|
Box_default,
|
|
1315
1407
|
{
|
|
1316
1408
|
display: "flex",
|
|
@@ -1323,12 +1415,12 @@ function TextField({
|
|
|
1323
1415
|
}
|
|
1324
1416
|
},
|
|
1325
1417
|
children: [
|
|
1326
|
-
label && /* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1418
|
+
label && /* @__PURE__ */ jsx20("label", { className: TextField_module_default.label, htmlFor: inputId, children: /* @__PURE__ */ jsx20(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx20(Typography_default, { size: 100, color: "gray700", children: label }) }) }),
|
|
1419
|
+
/* @__PURE__ */ jsx20(
|
|
1328
1420
|
"input",
|
|
1329
1421
|
{
|
|
1330
1422
|
autoComplete,
|
|
1331
|
-
className: (0,
|
|
1423
|
+
className: (0, import_classnames12.default)(TextField_module_default.textfield, TextField_module_default[size], {
|
|
1332
1424
|
[TextField_module_default.inputError]: errorText
|
|
1333
1425
|
}),
|
|
1334
1426
|
"data-testid": dataTestId,
|
|
@@ -1340,7 +1432,7 @@ function TextField({
|
|
|
1340
1432
|
value
|
|
1341
1433
|
}
|
|
1342
1434
|
),
|
|
1343
|
-
(helperText || errorText) && /* @__PURE__ */
|
|
1435
|
+
(helperText || errorText) && /* @__PURE__ */ jsx20(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx20(
|
|
1344
1436
|
Typography_default,
|
|
1345
1437
|
{
|
|
1346
1438
|
size: 100,
|
|
@@ -1363,6 +1455,7 @@ export {
|
|
|
1363
1455
|
Divider,
|
|
1364
1456
|
Heading_default as Heading,
|
|
1365
1457
|
IconButton_default as IconButton,
|
|
1458
|
+
LinkButton,
|
|
1366
1459
|
MiniActionCard_default as MiniActionCard,
|
|
1367
1460
|
Modal,
|
|
1368
1461
|
RadioButton_default as RadioButton,
|