@cambly/syntax-core 6.4.0 → 6.6.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 +90 -104
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +95 -28
- package/dist/index.js +270 -174
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +263 -168
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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,157 @@ 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_1b3ot_1", "fitContent": "_fitContent_1b3ot_10" };
|
|
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
|
+
rel,
|
|
928
|
+
"data-testid": dataTestId,
|
|
929
|
+
color = "primary",
|
|
930
|
+
size = "md",
|
|
931
|
+
fullWidth = false,
|
|
932
|
+
startIcon: StartIcon,
|
|
933
|
+
endIcon: EndIcon,
|
|
934
|
+
onClick
|
|
935
|
+
}) {
|
|
936
|
+
return /* @__PURE__ */ jsxs3(
|
|
937
|
+
"a",
|
|
938
|
+
{
|
|
939
|
+
href,
|
|
940
|
+
"data-testid": dataTestId,
|
|
941
|
+
target,
|
|
942
|
+
rel,
|
|
943
|
+
className: (0, import_classnames8.default)(
|
|
944
|
+
LinkButton_module_default.linkButton,
|
|
945
|
+
Button_module_default3.button,
|
|
946
|
+
foregroundColor(color),
|
|
947
|
+
backgroundColor(color),
|
|
948
|
+
Button_module_default3[size],
|
|
949
|
+
{
|
|
950
|
+
[Button_module_default3.fullWidth]: fullWidth,
|
|
951
|
+
[LinkButton_module_default.fitContent]: !fullWidth,
|
|
952
|
+
[Button_module_default3.buttonGap]: size === "lg" || size === "md",
|
|
953
|
+
[Button_module_default3.secondaryBorder]: color === "secondary",
|
|
954
|
+
[Button_module_default3.secondaryDestructiveBorder]: color === "destructive-secondary"
|
|
955
|
+
}
|
|
956
|
+
),
|
|
957
|
+
onClick,
|
|
958
|
+
children: [
|
|
959
|
+
StartIcon && /* @__PURE__ */ jsx12(StartIcon, { className: (0, import_classnames8.default)(Button_module_default3.icon, iconSize_default[size]) }),
|
|
960
|
+
/* @__PURE__ */ jsx12(
|
|
961
|
+
Typography_default,
|
|
962
|
+
{
|
|
963
|
+
color: foregroundTypographyColor(color),
|
|
964
|
+
size: textVariant_default[size],
|
|
965
|
+
children: /* @__PURE__ */ jsx12("span", { style: { fontWeight: 500 }, children: text })
|
|
966
|
+
}
|
|
967
|
+
),
|
|
968
|
+
EndIcon && /* @__PURE__ */ jsx12(EndIcon, { className: (0, import_classnames8.default)(Button_module_default3.icon, iconSize_default[size]) })
|
|
969
|
+
]
|
|
970
|
+
}
|
|
971
|
+
);
|
|
972
|
+
}
|
|
973
|
+
|
|
880
974
|
// css-module:./MiniActionCard.module.css#css-module
|
|
881
975
|
var MiniActionCard_module_default = { "miniActionCard": "_miniActionCard_qebkn_1", "card": "_card_qebkn_9" };
|
|
882
976
|
|
|
883
977
|
// src/MiniActionCard/MiniActionCard.tsx
|
|
884
|
-
import { jsx as
|
|
978
|
+
import { jsx as jsx13 } from "react/jsx-runtime";
|
|
885
979
|
var MiniActionCard = ({
|
|
886
980
|
children
|
|
887
|
-
}) => /* @__PURE__ */
|
|
981
|
+
}) => /* @__PURE__ */ jsx13("div", { className: MiniActionCard_module_default.miniActionCard, children });
|
|
888
982
|
var MiniActionCard_default = MiniActionCard;
|
|
889
983
|
|
|
890
984
|
// src/Modal/Modal.tsx
|
|
891
|
-
var
|
|
985
|
+
var import_classnames9 = __toESM(require_classnames());
|
|
892
986
|
|
|
893
987
|
// src/Modal/FocusTrap.tsx
|
|
894
988
|
import { useEffect as useEffect2, useRef } from "react";
|
|
895
|
-
import { jsx as
|
|
989
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
896
990
|
function queryFocusableAll(el) {
|
|
897
991
|
const selector = [
|
|
898
992
|
"a[href]",
|
|
@@ -953,7 +1047,7 @@ function FocusTrap({
|
|
|
953
1047
|
}
|
|
954
1048
|
};
|
|
955
1049
|
}, [elRef, previouslyFocusedElRef]);
|
|
956
|
-
return /* @__PURE__ */
|
|
1050
|
+
return /* @__PURE__ */ jsx14("div", { "data-testid": "syntax-focus-trap", ref: elRef, children });
|
|
957
1051
|
}
|
|
958
1052
|
|
|
959
1053
|
// src/Modal/StopScroll.tsx
|
|
@@ -971,13 +1065,13 @@ function StopScroll(props) {
|
|
|
971
1065
|
|
|
972
1066
|
// src/Modal/Layer.tsx
|
|
973
1067
|
import { createPortal } from "react-dom";
|
|
974
|
-
import { jsx as
|
|
1068
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
975
1069
|
function Layer({
|
|
976
1070
|
children,
|
|
977
1071
|
zIndex = 1
|
|
978
1072
|
}) {
|
|
979
1073
|
return createPortal(
|
|
980
|
-
/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ jsx15(
|
|
981
1075
|
Box_default,
|
|
982
1076
|
{
|
|
983
1077
|
"data-testid": "syntax-layer",
|
|
@@ -996,9 +1090,9 @@ function Layer({
|
|
|
996
1090
|
var Modal_module_default = { "backdrop": "_backdrop_30t3h_1", "closeButton": "_closeButton_30t3h_12", "closeButtonWithImage": "_closeButtonWithImage_30t3h_32" };
|
|
997
1091
|
|
|
998
1092
|
// src/Modal/Modal.tsx
|
|
999
|
-
import { jsx as
|
|
1093
|
+
import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1000
1094
|
function XIcon({ color = "#000" }) {
|
|
1001
|
-
return /* @__PURE__ */
|
|
1095
|
+
return /* @__PURE__ */ jsx16("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", fill: color, children: /* @__PURE__ */ jsx16(
|
|
1002
1096
|
"path",
|
|
1003
1097
|
{
|
|
1004
1098
|
fill: "inherit",
|
|
@@ -1021,14 +1115,14 @@ function Modal({
|
|
|
1021
1115
|
zIndex = 1,
|
|
1022
1116
|
"data-testid": dataTestId
|
|
1023
1117
|
}) {
|
|
1024
|
-
return /* @__PURE__ */
|
|
1118
|
+
return /* @__PURE__ */ jsx16(Layer, { zIndex, children: /* @__PURE__ */ jsx16(StopScroll, { children: /* @__PURE__ */ jsx16(FocusTrap, { children: /* @__PURE__ */ jsx16(
|
|
1025
1119
|
"div",
|
|
1026
1120
|
{
|
|
1027
1121
|
className: Modal_module_default.backdrop,
|
|
1028
1122
|
role: "presentation",
|
|
1029
1123
|
onClick: (e) => e.target === e.currentTarget && onDismiss(),
|
|
1030
1124
|
onKeyDown: (e) => e.key === "Escape" && onDismiss(),
|
|
1031
|
-
children: /* @__PURE__ */
|
|
1125
|
+
children: /* @__PURE__ */ jsxs4(
|
|
1032
1126
|
Box_default,
|
|
1033
1127
|
{
|
|
1034
1128
|
"data-testid": dataTestId,
|
|
@@ -1041,23 +1135,23 @@ function Modal({
|
|
|
1041
1135
|
width: "100%",
|
|
1042
1136
|
dangerouslySetInlineStyle: { __style: { overflow: "hidden" } },
|
|
1043
1137
|
children: [
|
|
1044
|
-
/* @__PURE__ */
|
|
1138
|
+
/* @__PURE__ */ jsx16(Box_default, { position: "relative", children: /* @__PURE__ */ jsx16(
|
|
1045
1139
|
"button",
|
|
1046
1140
|
{
|
|
1047
1141
|
"aria-label": accessibilityCloseLabel,
|
|
1048
1142
|
type: "button",
|
|
1049
|
-
className: (0,
|
|
1143
|
+
className: (0, import_classnames9.default)(Modal_module_default.closeButton, {
|
|
1050
1144
|
[Modal_module_default.closeButtonWithImage]: !!image
|
|
1051
1145
|
}),
|
|
1052
1146
|
onClick: onDismiss,
|
|
1053
|
-
children: /* @__PURE__ */
|
|
1147
|
+
children: /* @__PURE__ */ jsx16(XIcon, { color: image ? "#fff" : "#000" })
|
|
1054
1148
|
}
|
|
1055
1149
|
) }),
|
|
1056
|
-
image && /* @__PURE__ */
|
|
1057
|
-
/* @__PURE__ */
|
|
1058
|
-
/* @__PURE__ */
|
|
1059
|
-
/* @__PURE__ */
|
|
1060
|
-
footer && /* @__PURE__ */
|
|
1150
|
+
image && /* @__PURE__ */ jsx16(Box_default, { maxHeight: 200, children: image }),
|
|
1151
|
+
/* @__PURE__ */ jsxs4(Box_default, { display: "flex", gap: 3, direction: "column", padding: 9, children: [
|
|
1152
|
+
/* @__PURE__ */ jsx16(Heading_default, { as: "h1", size: 500, children: header }),
|
|
1153
|
+
/* @__PURE__ */ jsx16(Box_default, { marginBottom: 4, children }),
|
|
1154
|
+
footer && /* @__PURE__ */ jsx16(
|
|
1061
1155
|
Box_default,
|
|
1062
1156
|
{
|
|
1063
1157
|
display: "flex",
|
|
@@ -1080,14 +1174,14 @@ function Modal({
|
|
|
1080
1174
|
Modal.displayName = "Modal";
|
|
1081
1175
|
|
|
1082
1176
|
// src/RadioButton/RadioButton.tsx
|
|
1083
|
-
var
|
|
1177
|
+
var import_classnames10 = __toESM(require_classnames());
|
|
1084
1178
|
import { useState as useState3 } from "react";
|
|
1085
1179
|
|
|
1086
1180
|
// css-module:./RadioButton.module.css#css-module
|
|
1087
1181
|
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
1182
|
|
|
1089
1183
|
// src/RadioButton/RadioButton.tsx
|
|
1090
|
-
import { jsx as
|
|
1184
|
+
import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1091
1185
|
var RadioButton = ({
|
|
1092
1186
|
checked = false,
|
|
1093
1187
|
"data-testid": dataTestId,
|
|
@@ -1102,15 +1196,15 @@ var RadioButton = ({
|
|
|
1102
1196
|
}) => {
|
|
1103
1197
|
const [isFocused, setIsFocused] = useState3(false);
|
|
1104
1198
|
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
1105
|
-
const sharedStyles = (0,
|
|
1199
|
+
const sharedStyles = (0, import_classnames10.default)(RadioButton_module_default.background, RadioButton_module_default[size], {
|
|
1106
1200
|
[RadioButton_module_default.errorBorderColor]: error,
|
|
1107
1201
|
[RadioButton_module_default.borderColor]: !error,
|
|
1108
1202
|
[Focus_module_default.accessibilityOutlineFocus]: isFocused && isFocusVisible2
|
|
1109
1203
|
});
|
|
1110
|
-
return /* @__PURE__ */
|
|
1204
|
+
return /* @__PURE__ */ jsxs5(
|
|
1111
1205
|
"label",
|
|
1112
1206
|
{
|
|
1113
|
-
className: (0,
|
|
1207
|
+
className: (0, import_classnames10.default)(
|
|
1114
1208
|
RadioButton_module_default.radioBaseContainer,
|
|
1115
1209
|
RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
1116
1210
|
{
|
|
@@ -1120,23 +1214,23 @@ var RadioButton = ({
|
|
|
1120
1214
|
}
|
|
1121
1215
|
),
|
|
1122
1216
|
children: [
|
|
1123
|
-
checked ? /* @__PURE__ */
|
|
1217
|
+
checked ? /* @__PURE__ */ jsx17(
|
|
1124
1218
|
"div",
|
|
1125
1219
|
{
|
|
1126
|
-
className: (0,
|
|
1220
|
+
className: (0, import_classnames10.default)(sharedStyles, {
|
|
1127
1221
|
[RadioButton_module_default.mdCheckedBorder]: size === "md",
|
|
1128
1222
|
[RadioButton_module_default.smCheckedBorder]: size === "sm"
|
|
1129
1223
|
})
|
|
1130
1224
|
}
|
|
1131
|
-
) : /* @__PURE__ */
|
|
1132
|
-
/* @__PURE__ */
|
|
1225
|
+
) : /* @__PURE__ */ jsx17("div", { className: (0, import_classnames10.default)(sharedStyles, RadioButton_module_default.neutralBorder) }),
|
|
1226
|
+
/* @__PURE__ */ jsx17(
|
|
1133
1227
|
"input",
|
|
1134
1228
|
{
|
|
1135
1229
|
"data-testid": dataTestId,
|
|
1136
1230
|
type: "radio",
|
|
1137
1231
|
id,
|
|
1138
1232
|
name,
|
|
1139
|
-
className: (0,
|
|
1233
|
+
className: (0, import_classnames10.default)(
|
|
1140
1234
|
RadioButton_module_default.radioStyleOverride,
|
|
1141
1235
|
RadioButton_module_default[`cursor${disabled ? "Disabled" : "Enabled"}`],
|
|
1142
1236
|
{
|
|
@@ -1156,7 +1250,7 @@ var RadioButton = ({
|
|
|
1156
1250
|
}
|
|
1157
1251
|
}
|
|
1158
1252
|
),
|
|
1159
|
-
label && /* @__PURE__ */
|
|
1253
|
+
label && /* @__PURE__ */ jsx17(
|
|
1160
1254
|
Typography_default,
|
|
1161
1255
|
{
|
|
1162
1256
|
size: size === "md" ? 200 : 100,
|
|
@@ -1171,7 +1265,7 @@ var RadioButton = ({
|
|
|
1171
1265
|
var RadioButton_default = RadioButton;
|
|
1172
1266
|
|
|
1173
1267
|
// src/SelectList/SelectList.tsx
|
|
1174
|
-
var
|
|
1268
|
+
var import_classnames11 = __toESM(require_classnames());
|
|
1175
1269
|
import {
|
|
1176
1270
|
useId,
|
|
1177
1271
|
useState as useState4
|
|
@@ -1185,17 +1279,17 @@ var ColorBaseGray800 = "#353535";
|
|
|
1185
1279
|
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
1280
|
|
|
1187
1281
|
// src/SelectList/SelectOption.tsx
|
|
1188
|
-
import { jsx as
|
|
1282
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1189
1283
|
var SelectOption = ({
|
|
1190
1284
|
"data-testid": dataTestId,
|
|
1191
1285
|
value,
|
|
1192
1286
|
label,
|
|
1193
1287
|
disabled = false
|
|
1194
|
-
}) => /* @__PURE__ */
|
|
1288
|
+
}) => /* @__PURE__ */ jsx18("option", { "data-testid": dataTestId, value, disabled, children: label });
|
|
1195
1289
|
var SelectOption_default = SelectOption;
|
|
1196
1290
|
|
|
1197
1291
|
// src/SelectList/SelectList.tsx
|
|
1198
|
-
import { jsx as
|
|
1292
|
+
import { jsx as jsx19, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1199
1293
|
var iconSize3 = {
|
|
1200
1294
|
sm: 20,
|
|
1201
1295
|
md: 24,
|
|
@@ -1217,22 +1311,22 @@ function SelectList({
|
|
|
1217
1311
|
const id = useId();
|
|
1218
1312
|
const { isFocusVisible: isFocusVisible2 } = useFocusVisible();
|
|
1219
1313
|
const [isFocused, setIsFocused] = useState4(false);
|
|
1220
|
-
return /* @__PURE__ */
|
|
1314
|
+
return /* @__PURE__ */ jsxs6(
|
|
1221
1315
|
"div",
|
|
1222
1316
|
{
|
|
1223
|
-
className: (0,
|
|
1317
|
+
className: (0, import_classnames11.default)(SelectList_module_default.selectContainer, {
|
|
1224
1318
|
[SelectList_module_default.opacityOverlay]: disabled
|
|
1225
1319
|
}),
|
|
1226
1320
|
children: [
|
|
1227
|
-
label && /* @__PURE__ */
|
|
1228
|
-
/* @__PURE__ */
|
|
1229
|
-
/* @__PURE__ */
|
|
1321
|
+
label && /* @__PURE__ */ jsx19("label", { htmlFor: id, className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx19(Typography_default, { size: 100, color: "gray700", children: label }) }),
|
|
1322
|
+
/* @__PURE__ */ jsxs6("div", { className: SelectList_module_default.selectWrapper, children: [
|
|
1323
|
+
/* @__PURE__ */ jsxs6(
|
|
1230
1324
|
"select",
|
|
1231
1325
|
{
|
|
1232
1326
|
id,
|
|
1233
1327
|
"data-testid": dataTestId,
|
|
1234
1328
|
disabled,
|
|
1235
|
-
className: (0,
|
|
1329
|
+
className: (0, import_classnames11.default)(SelectList_module_default.selectBox, SelectList_module_default[size], {
|
|
1236
1330
|
[SelectList_module_default.unselected]: !selectedValue && !errorText,
|
|
1237
1331
|
[SelectList_module_default.selected]: selectedValue && !errorText,
|
|
1238
1332
|
[SelectList_module_default.selectError]: errorText,
|
|
@@ -1247,19 +1341,19 @@ function SelectList({
|
|
|
1247
1341
|
onFocus: () => setIsFocused(true),
|
|
1248
1342
|
onBlur: () => setIsFocused(false),
|
|
1249
1343
|
children: [
|
|
1250
|
-
placeholderText && /* @__PURE__ */
|
|
1344
|
+
placeholderText && /* @__PURE__ */ jsx19("option", { disabled: true, value: placeholderText, children: placeholderText }),
|
|
1251
1345
|
children
|
|
1252
1346
|
]
|
|
1253
1347
|
}
|
|
1254
1348
|
),
|
|
1255
|
-
/* @__PURE__ */
|
|
1349
|
+
/* @__PURE__ */ jsx19("div", { className: SelectList_module_default.arrowIcon, children: /* @__PURE__ */ jsx19(
|
|
1256
1350
|
"svg",
|
|
1257
1351
|
{
|
|
1258
1352
|
focusable: "false",
|
|
1259
1353
|
"aria-hidden": "true",
|
|
1260
1354
|
viewBox: "0 0 24 24",
|
|
1261
1355
|
width: iconSize3[size],
|
|
1262
|
-
children: /* @__PURE__ */
|
|
1356
|
+
children: /* @__PURE__ */ jsx19(
|
|
1263
1357
|
"path",
|
|
1264
1358
|
{
|
|
1265
1359
|
fill: errorText ? ColorBaseDestructive700 : ColorBaseGray800,
|
|
@@ -1269,7 +1363,7 @@ function SelectList({
|
|
|
1269
1363
|
}
|
|
1270
1364
|
) })
|
|
1271
1365
|
] }),
|
|
1272
|
-
(helperText || errorText) && /* @__PURE__ */
|
|
1366
|
+
(helperText || errorText) && /* @__PURE__ */ jsx19("div", { className: SelectList_module_default.outerTextContainer, children: /* @__PURE__ */ jsx19(
|
|
1273
1367
|
Typography_default,
|
|
1274
1368
|
{
|
|
1275
1369
|
size: 100,
|
|
@@ -1284,7 +1378,7 @@ function SelectList({
|
|
|
1284
1378
|
SelectList.Option = SelectOption_default;
|
|
1285
1379
|
|
|
1286
1380
|
// src/TextField/TextField.tsx
|
|
1287
|
-
var
|
|
1381
|
+
var import_classnames12 = __toESM(require_classnames());
|
|
1288
1382
|
import {
|
|
1289
1383
|
useId as useId2
|
|
1290
1384
|
} from "react";
|
|
@@ -1293,7 +1387,7 @@ import {
|
|
|
1293
1387
|
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
1388
|
|
|
1295
1389
|
// src/TextField/TextField.tsx
|
|
1296
|
-
import { jsx as
|
|
1390
|
+
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1297
1391
|
function TextField({
|
|
1298
1392
|
autoComplete,
|
|
1299
1393
|
"data-testid": dataTestId,
|
|
@@ -1310,7 +1404,7 @@ function TextField({
|
|
|
1310
1404
|
}) {
|
|
1311
1405
|
const reactId = useId2();
|
|
1312
1406
|
const inputId = id != null ? id : reactId;
|
|
1313
|
-
return /* @__PURE__ */
|
|
1407
|
+
return /* @__PURE__ */ jsxs7(
|
|
1314
1408
|
Box_default,
|
|
1315
1409
|
{
|
|
1316
1410
|
display: "flex",
|
|
@@ -1323,12 +1417,12 @@ function TextField({
|
|
|
1323
1417
|
}
|
|
1324
1418
|
},
|
|
1325
1419
|
children: [
|
|
1326
|
-
label && /* @__PURE__ */
|
|
1327
|
-
/* @__PURE__ */
|
|
1420
|
+
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 }) }) }),
|
|
1421
|
+
/* @__PURE__ */ jsx20(
|
|
1328
1422
|
"input",
|
|
1329
1423
|
{
|
|
1330
1424
|
autoComplete,
|
|
1331
|
-
className: (0,
|
|
1425
|
+
className: (0, import_classnames12.default)(TextField_module_default.textfield, TextField_module_default[size], {
|
|
1332
1426
|
[TextField_module_default.inputError]: errorText
|
|
1333
1427
|
}),
|
|
1334
1428
|
"data-testid": dataTestId,
|
|
@@ -1340,7 +1434,7 @@ function TextField({
|
|
|
1340
1434
|
value
|
|
1341
1435
|
}
|
|
1342
1436
|
),
|
|
1343
|
-
(helperText || errorText) && /* @__PURE__ */
|
|
1437
|
+
(helperText || errorText) && /* @__PURE__ */ jsx20(Box_default, { paddingX: 1, children: /* @__PURE__ */ jsx20(
|
|
1344
1438
|
Typography_default,
|
|
1345
1439
|
{
|
|
1346
1440
|
size: 100,
|
|
@@ -1363,6 +1457,7 @@ export {
|
|
|
1363
1457
|
Divider,
|
|
1364
1458
|
Heading_default as Heading,
|
|
1365
1459
|
IconButton_default as IconButton,
|
|
1460
|
+
LinkButton,
|
|
1366
1461
|
MiniActionCard_default as MiniActionCard,
|
|
1367
1462
|
Modal,
|
|
1368
1463
|
RadioButton_default as RadioButton,
|