@octoguide/mui-ui-toolkit 0.7.6 → 0.8.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.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/dist/index.js +182 -118
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +132 -69
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2743,8 +2743,70 @@ var MultiSelect = ({
|
|
|
2743
2743
|
};
|
|
2744
2744
|
MultiSelect.displayName = "ToolkitMultiSelect";
|
|
2745
2745
|
|
|
2746
|
+
// src/components/OtpInput/OtpInput.tsx
|
|
2747
|
+
import { useRef as useRef2, useCallback as useCallback4 } from "react";
|
|
2748
|
+
import Box5 from "@mui/material/Box";
|
|
2749
|
+
import OutlinedInput from "@mui/material/OutlinedInput";
|
|
2750
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2751
|
+
var OTP_LENGTH = 6;
|
|
2752
|
+
var OtpInput = ({ value, onChange, error, disabled }) => {
|
|
2753
|
+
const inputRefs = useRef2([]);
|
|
2754
|
+
const digits = Array.from({ length: OTP_LENGTH }, (_, i) => value[i] ?? "");
|
|
2755
|
+
const handleChange = useCallback4(
|
|
2756
|
+
(index, char) => {
|
|
2757
|
+
const digit = char.replace(/\D/g, "").slice(-1);
|
|
2758
|
+
const next = digits.map((d, i) => i === index ? digit : d).join("");
|
|
2759
|
+
onChange(next);
|
|
2760
|
+
if (digit && index < OTP_LENGTH - 1) inputRefs.current[index + 1]?.focus();
|
|
2761
|
+
},
|
|
2762
|
+
[digits, onChange]
|
|
2763
|
+
);
|
|
2764
|
+
const handleKeyDown = useCallback4(
|
|
2765
|
+
(index, e) => {
|
|
2766
|
+
if (e.key === "Backspace" && !digits[index] && index > 0) {
|
|
2767
|
+
inputRefs.current[index - 1]?.focus();
|
|
2768
|
+
}
|
|
2769
|
+
},
|
|
2770
|
+
[digits]
|
|
2771
|
+
);
|
|
2772
|
+
const handlePaste = useCallback4(
|
|
2773
|
+
(e) => {
|
|
2774
|
+
const pasted = e.clipboardData.getData("text").replace(/\D/g, "").slice(0, OTP_LENGTH);
|
|
2775
|
+
if (pasted) {
|
|
2776
|
+
onChange(pasted.padEnd(OTP_LENGTH, "").slice(0, OTP_LENGTH));
|
|
2777
|
+
inputRefs.current[Math.min(pasted.length, OTP_LENGTH - 1)]?.focus();
|
|
2778
|
+
}
|
|
2779
|
+
e.preventDefault();
|
|
2780
|
+
},
|
|
2781
|
+
[onChange]
|
|
2782
|
+
);
|
|
2783
|
+
return /* @__PURE__ */ jsx19(Box5, { sx: { display: "flex", gap: 1.5, justifyContent: "space-between", mb: 2.5 }, children: digits.map((digit, i) => /* @__PURE__ */ jsx19(
|
|
2784
|
+
OutlinedInput,
|
|
2785
|
+
{
|
|
2786
|
+
inputRef: (el) => {
|
|
2787
|
+
inputRefs.current[i] = el;
|
|
2788
|
+
},
|
|
2789
|
+
value: digit,
|
|
2790
|
+
onChange: (e) => handleChange(i, e.target.value),
|
|
2791
|
+
onKeyDown: (e) => handleKeyDown(i, e),
|
|
2792
|
+
onPaste: handlePaste,
|
|
2793
|
+
placeholder: "-",
|
|
2794
|
+
disabled,
|
|
2795
|
+
inputProps: {
|
|
2796
|
+
maxLength: 1,
|
|
2797
|
+
autoComplete: "one-time-code",
|
|
2798
|
+
style: { textAlign: "center", fontSize: "1.25rem", padding: "12px 0" }
|
|
2799
|
+
},
|
|
2800
|
+
error,
|
|
2801
|
+
sx: { width: 48, "& .MuiOutlinedInput-notchedOutline": { borderRadius: 1.5 } }
|
|
2802
|
+
},
|
|
2803
|
+
i
|
|
2804
|
+
)) });
|
|
2805
|
+
};
|
|
2806
|
+
OtpInput.displayName = "ToolkitOtpInput";
|
|
2807
|
+
|
|
2746
2808
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
2747
|
-
import React8, { useEffect as useEffect3, useRef as
|
|
2809
|
+
import React8, { useEffect as useEffect3, useRef as useRef3 } from "react";
|
|
2748
2810
|
import Portal from "@mui/material/Portal";
|
|
2749
2811
|
import CircularProgress3 from "@mui/material/CircularProgress";
|
|
2750
2812
|
import { useForkRef } from "@mui/material/utils";
|
|
@@ -2954,7 +3016,7 @@ var StyledScreenReaderOnly2 = styled13("span")(() => ({
|
|
|
2954
3016
|
}));
|
|
2955
3017
|
|
|
2956
3018
|
// src/components/PageSpinner/PageSpinner.tsx
|
|
2957
|
-
import { jsx as
|
|
3019
|
+
import { jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2958
3020
|
var ARIA_REANNOUNCE_INTERVAL = 3e4;
|
|
2959
3021
|
var PageSpinner = React8.forwardRef(
|
|
2960
3022
|
function PageSpinner2({
|
|
@@ -2966,7 +3028,7 @@ var PageSpinner = React8.forwardRef(
|
|
|
2966
3028
|
messageTone = "assertive",
|
|
2967
3029
|
...restProps
|
|
2968
3030
|
}, ref) {
|
|
2969
|
-
const internalRef =
|
|
3031
|
+
const internalRef = useRef3(null);
|
|
2970
3032
|
const mergedRef = useForkRef(ref, internalRef);
|
|
2971
3033
|
useEffect3(() => {
|
|
2972
3034
|
const blockKeyDown = (e) => e.preventDefault();
|
|
@@ -2988,7 +3050,7 @@ var PageSpinner = React8.forwardRef(
|
|
|
2988
3050
|
backgroundScrollTether(false);
|
|
2989
3051
|
};
|
|
2990
3052
|
}, [message, rootNode, messageTone]);
|
|
2991
|
-
return /* @__PURE__ */
|
|
3053
|
+
return /* @__PURE__ */ jsx20(Portal, { container: rootNode, children: /* @__PURE__ */ jsxs8(
|
|
2992
3054
|
StyledPageSpinnerRoot,
|
|
2993
3055
|
{
|
|
2994
3056
|
"data-component-id": "PageSpinner",
|
|
@@ -2996,9 +3058,9 @@ var PageSpinner = React8.forwardRef(
|
|
|
2996
3058
|
ref: mergedRef,
|
|
2997
3059
|
...getCleanProps(restProps),
|
|
2998
3060
|
children: [
|
|
2999
|
-
/* @__PURE__ */
|
|
3061
|
+
/* @__PURE__ */ jsx20(StyledOverlay, { $darkBg: isOnDarkBg }),
|
|
3000
3062
|
/* @__PURE__ */ jsxs8(StyledSpinnerCentre, { children: [
|
|
3001
|
-
/* @__PURE__ */
|
|
3063
|
+
/* @__PURE__ */ jsx20(
|
|
3002
3064
|
CircularProgress3,
|
|
3003
3065
|
{
|
|
3004
3066
|
size: 60,
|
|
@@ -3006,8 +3068,8 @@ var PageSpinner = React8.forwardRef(
|
|
|
3006
3068
|
"aria-hidden": "true"
|
|
3007
3069
|
}
|
|
3008
3070
|
),
|
|
3009
|
-
customMessageLayout ?? /* @__PURE__ */
|
|
3010
|
-
srText && /* @__PURE__ */
|
|
3071
|
+
customMessageLayout ?? /* @__PURE__ */ jsx20(StyledSpinnerMessage, { $darkBg: isOnDarkBg, children: message }),
|
|
3072
|
+
srText && /* @__PURE__ */ jsx20(StyledScreenReaderOnly2, { children: srText })
|
|
3011
3073
|
] })
|
|
3012
3074
|
]
|
|
3013
3075
|
}
|
|
@@ -3084,15 +3146,15 @@ var StyledPaginationItem = styled14(MuiPaginationItem, {
|
|
|
3084
3146
|
});
|
|
3085
3147
|
|
|
3086
3148
|
// src/components/Pagination/Pagination.tsx
|
|
3087
|
-
import { jsx as
|
|
3149
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
3088
3150
|
var Pagination = React9.forwardRef(
|
|
3089
3151
|
function Pagination2({ variant = "text", shape = "circular", color = "default", ...restProps }, ref) {
|
|
3090
|
-
return /* @__PURE__ */
|
|
3152
|
+
return /* @__PURE__ */ jsx21(
|
|
3091
3153
|
MuiPagination,
|
|
3092
3154
|
{
|
|
3093
3155
|
ref,
|
|
3094
3156
|
"data-component-id": "Pagination",
|
|
3095
|
-
renderItem: (item) => /* @__PURE__ */
|
|
3157
|
+
renderItem: (item) => /* @__PURE__ */ jsx21(
|
|
3096
3158
|
StyledPaginationItem,
|
|
3097
3159
|
{
|
|
3098
3160
|
$variant: variant,
|
|
@@ -3146,10 +3208,10 @@ var StyledParagraph = styled15("p", {
|
|
|
3146
3208
|
}));
|
|
3147
3209
|
|
|
3148
3210
|
// src/components/Paragraph/Paragraph.tsx
|
|
3149
|
-
import { jsx as
|
|
3211
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
3150
3212
|
var Paragraph = React10.forwardRef(
|
|
3151
3213
|
function Paragraph2({ children, variant = "regular", isOnDarkBg = false, ...restProps }, ref) {
|
|
3152
|
-
return /* @__PURE__ */
|
|
3214
|
+
return /* @__PURE__ */ jsx22(
|
|
3153
3215
|
StyledParagraph,
|
|
3154
3216
|
{
|
|
3155
3217
|
$variant: variant,
|
|
@@ -3206,16 +3268,16 @@ var StyledScreenReaderOnly3 = styled16("span")({
|
|
|
3206
3268
|
});
|
|
3207
3269
|
|
|
3208
3270
|
// src/components/Password/PasswordRule.tsx
|
|
3209
|
-
import { jsx as
|
|
3271
|
+
import { jsx as jsx23, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
3210
3272
|
var PasswordRule = ({ valid = false, rule = "", idx }) => /* @__PURE__ */ jsxs9(
|
|
3211
3273
|
StyledPasswordRule,
|
|
3212
3274
|
{
|
|
3213
3275
|
className: valid ? "PasswordRule--valid" : "PasswordRule--invalid",
|
|
3214
3276
|
"data-testid": `password-rule-${idx}`,
|
|
3215
3277
|
children: [
|
|
3216
|
-
/* @__PURE__ */
|
|
3217
|
-
/* @__PURE__ */
|
|
3218
|
-
/* @__PURE__ */
|
|
3278
|
+
/* @__PURE__ */ jsx23(StyledPasswordRuleIcon, { children: valid ? /* @__PURE__ */ jsx23(CheckCircleIcon, { fontSize: "small", "aria-hidden": "true" }) : /* @__PURE__ */ jsx23(CancelIcon, { fontSize: "small", "aria-hidden": "true" }) }),
|
|
3279
|
+
/* @__PURE__ */ jsx23(StyledPasswordRuleText, { children: rule }),
|
|
3280
|
+
/* @__PURE__ */ jsx23(StyledScreenReaderOnly3, { children: valid ? "supplied" : "not supplied" })
|
|
3219
3281
|
]
|
|
3220
3282
|
}
|
|
3221
3283
|
);
|
|
@@ -3244,7 +3306,7 @@ var StyledPasswordRuleTitle = styled17("div")(({ theme }) => ({
|
|
|
3244
3306
|
}));
|
|
3245
3307
|
|
|
3246
3308
|
// src/components/Password/PasswordCriteria.tsx
|
|
3247
|
-
import { jsx as
|
|
3309
|
+
import { jsx as jsx24, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
3248
3310
|
var PasswordRules = [
|
|
3249
3311
|
{ key: "minLength", rule: "Minimum 8 characters" },
|
|
3250
3312
|
{ key: "lowercase", rule: "At least one lowercase letter" },
|
|
@@ -3261,7 +3323,7 @@ var passwordValidator = (value) => ({
|
|
|
3261
3323
|
});
|
|
3262
3324
|
var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) => {
|
|
3263
3325
|
const validity = passwordValidator(value);
|
|
3264
|
-
return /* @__PURE__ */
|
|
3326
|
+
return /* @__PURE__ */ jsx24(
|
|
3265
3327
|
StyledPasswordCriteriaContainer,
|
|
3266
3328
|
{
|
|
3267
3329
|
$show: show,
|
|
@@ -3271,8 +3333,8 @@ var PasswordCriteria = ({ show = false, value = "", id = "passwordCriteria" }) =
|
|
|
3271
3333
|
role: "status",
|
|
3272
3334
|
"aria-live": "polite",
|
|
3273
3335
|
children: /* @__PURE__ */ jsxs10(Card, { compact: true, children: [
|
|
3274
|
-
/* @__PURE__ */
|
|
3275
|
-
PasswordRules.map((item, idx) => /* @__PURE__ */
|
|
3336
|
+
/* @__PURE__ */ jsx24(StyledPasswordRuleTitle, { children: "Password must contain:" }),
|
|
3337
|
+
PasswordRules.map((item, idx) => /* @__PURE__ */ jsx24(PasswordRule, { valid: validity[item.key], rule: item.rule, idx }, item.key))
|
|
3276
3338
|
] })
|
|
3277
3339
|
}
|
|
3278
3340
|
);
|
|
@@ -3290,7 +3352,7 @@ var StyledPasswordInputWrapper = styled18("div")({
|
|
|
3290
3352
|
});
|
|
3291
3353
|
|
|
3292
3354
|
// src/components/Password/Password.tsx
|
|
3293
|
-
import { jsx as
|
|
3355
|
+
import { jsx as jsx25, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
3294
3356
|
var Password = React11.forwardRef(
|
|
3295
3357
|
function Password2({
|
|
3296
3358
|
isInvalid,
|
|
@@ -3323,7 +3385,7 @@ var Password = React11.forwardRef(
|
|
|
3323
3385
|
const criteriaId = id ? `${id}-criteria` : "passwordCriteria";
|
|
3324
3386
|
const cleanRest = getCleanProps(rest);
|
|
3325
3387
|
return /* @__PURE__ */ jsxs11(StyledPasswordRoot, { className, ...cleanRest, children: [
|
|
3326
|
-
/* @__PURE__ */
|
|
3388
|
+
/* @__PURE__ */ jsx25(StyledPasswordInputWrapper, { children: /* @__PURE__ */ jsx25(
|
|
3327
3389
|
TextField,
|
|
3328
3390
|
{
|
|
3329
3391
|
ref,
|
|
@@ -3342,7 +3404,7 @@ var Password = React11.forwardRef(
|
|
|
3342
3404
|
onChange: handleChange
|
|
3343
3405
|
}
|
|
3344
3406
|
) }),
|
|
3345
|
-
/* @__PURE__ */
|
|
3407
|
+
/* @__PURE__ */ jsx25(PasswordCriteria, { show: showCriteria, value, id: criteriaId })
|
|
3346
3408
|
] });
|
|
3347
3409
|
}
|
|
3348
3410
|
);
|
|
@@ -3437,7 +3499,7 @@ var StyledScreenReaderOnly4 = styled19("span")({
|
|
|
3437
3499
|
});
|
|
3438
3500
|
|
|
3439
3501
|
// src/components/Spinner/Spinner.tsx
|
|
3440
|
-
import { jsx as
|
|
3502
|
+
import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
3441
3503
|
var Spinner = React12.forwardRef(
|
|
3442
3504
|
function Spinner2({ size = "sm", message, isOnDarkBg = false, srText, isInline = false, ...restProps }, ref) {
|
|
3443
3505
|
return /* @__PURE__ */ jsxs12(
|
|
@@ -3449,11 +3511,11 @@ var Spinner = React12.forwardRef(
|
|
|
3449
3511
|
...getCleanProps(restProps),
|
|
3450
3512
|
children: [
|
|
3451
3513
|
/* @__PURE__ */ jsxs12(StyledSpinnerIconContainer, { $size: size, "aria-hidden": "true", children: [
|
|
3452
|
-
/* @__PURE__ */
|
|
3453
|
-
/* @__PURE__ */
|
|
3514
|
+
/* @__PURE__ */ jsx26(StyledSpinnerBackground, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" }),
|
|
3515
|
+
/* @__PURE__ */ jsx26(StyledSpinner, { $size: size, $darkBg: isOnDarkBg, "aria-hidden": "true" })
|
|
3454
3516
|
] }),
|
|
3455
|
-
message && /* @__PURE__ */
|
|
3456
|
-
srText && /* @__PURE__ */
|
|
3517
|
+
message && /* @__PURE__ */ jsx26(StyledSpinnerMessage2, { $darkBg: isOnDarkBg, $inline: isInline, children: message }),
|
|
3518
|
+
srText && /* @__PURE__ */ jsx26(StyledScreenReaderOnly4, { children: srText })
|
|
3457
3519
|
]
|
|
3458
3520
|
}
|
|
3459
3521
|
);
|
|
@@ -3579,7 +3641,7 @@ var StyledSwitch = styled20("label", {
|
|
|
3579
3641
|
}));
|
|
3580
3642
|
|
|
3581
3643
|
// src/components/Toggle/Toggle.tsx
|
|
3582
|
-
import { jsx as
|
|
3644
|
+
import { jsx as jsx27, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
3583
3645
|
function Toggle({
|
|
3584
3646
|
name,
|
|
3585
3647
|
checked = false,
|
|
@@ -3592,8 +3654,8 @@ function Toggle({
|
|
|
3592
3654
|
}) {
|
|
3593
3655
|
const testId = restProps["data-testid"];
|
|
3594
3656
|
return /* @__PURE__ */ jsxs13(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
3595
|
-
label && /* @__PURE__ */
|
|
3596
|
-
description && /* @__PURE__ */
|
|
3657
|
+
label && /* @__PURE__ */ jsx27(StyledLegend, { children: label }),
|
|
3658
|
+
description && /* @__PURE__ */ jsx27(FormHelperText, { children: description }),
|
|
3597
3659
|
/* @__PURE__ */ jsxs13(StyledToggleWrapper, { children: [
|
|
3598
3660
|
/* @__PURE__ */ jsxs13(
|
|
3599
3661
|
StyledSwitch,
|
|
@@ -3603,7 +3665,7 @@ function Toggle({
|
|
|
3603
3665
|
controlType: "off",
|
|
3604
3666
|
"data-testid": testId ? `${testId}-off` : void 0,
|
|
3605
3667
|
children: [
|
|
3606
|
-
/* @__PURE__ */
|
|
3668
|
+
/* @__PURE__ */ jsx27(
|
|
3607
3669
|
"input",
|
|
3608
3670
|
{
|
|
3609
3671
|
checked: !checked,
|
|
@@ -3627,7 +3689,7 @@ function Toggle({
|
|
|
3627
3689
|
controlType: "on",
|
|
3628
3690
|
"data-testid": testId ? `${testId}-on` : void 0,
|
|
3629
3691
|
children: [
|
|
3630
|
-
/* @__PURE__ */
|
|
3692
|
+
/* @__PURE__ */ jsx27(
|
|
3631
3693
|
"input",
|
|
3632
3694
|
{
|
|
3633
3695
|
checked,
|
|
@@ -3644,7 +3706,7 @@ function Toggle({
|
|
|
3644
3706
|
}
|
|
3645
3707
|
)
|
|
3646
3708
|
] }),
|
|
3647
|
-
error && /* @__PURE__ */
|
|
3709
|
+
error && /* @__PURE__ */ jsx27(FormHelperText, { error: true, children: error })
|
|
3648
3710
|
] });
|
|
3649
3711
|
}
|
|
3650
3712
|
Toggle.displayName = "ToolkitToggle";
|
|
@@ -3661,7 +3723,7 @@ import {
|
|
|
3661
3723
|
TableSortLabel as MuiTableSortLabel
|
|
3662
3724
|
} from "@mui/material";
|
|
3663
3725
|
import { styled as styled21 } from "@mui/material/styles";
|
|
3664
|
-
import { jsx as
|
|
3726
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3665
3727
|
var StyledTableContainer = styled21(MuiTableContainer)(() => ({
|
|
3666
3728
|
overflowX: "auto"
|
|
3667
3729
|
}));
|
|
@@ -3672,25 +3734,25 @@ var StyledHeadCell = styled21(MuiTableCell)(({ theme }) => ({
|
|
|
3672
3734
|
borderBottomColor: theme.tokens.components.table.borderColor
|
|
3673
3735
|
}));
|
|
3674
3736
|
function Table(props) {
|
|
3675
|
-
return /* @__PURE__ */
|
|
3737
|
+
return /* @__PURE__ */ jsx28(MuiTable, { ...props });
|
|
3676
3738
|
}
|
|
3677
3739
|
function TableHead(props) {
|
|
3678
|
-
return /* @__PURE__ */
|
|
3740
|
+
return /* @__PURE__ */ jsx28(MuiTableHead, { ...props });
|
|
3679
3741
|
}
|
|
3680
3742
|
function TableBody(props) {
|
|
3681
|
-
return /* @__PURE__ */
|
|
3743
|
+
return /* @__PURE__ */ jsx28(MuiTableBody, { ...props });
|
|
3682
3744
|
}
|
|
3683
3745
|
function TableRow(props) {
|
|
3684
|
-
return /* @__PURE__ */
|
|
3746
|
+
return /* @__PURE__ */ jsx28(MuiTableRow, { ...props });
|
|
3685
3747
|
}
|
|
3686
3748
|
function TableCell(props) {
|
|
3687
|
-
return /* @__PURE__ */
|
|
3749
|
+
return /* @__PURE__ */ jsx28(MuiTableCell, { ...props });
|
|
3688
3750
|
}
|
|
3689
3751
|
function TableHeadCell(props) {
|
|
3690
|
-
return /* @__PURE__ */
|
|
3752
|
+
return /* @__PURE__ */ jsx28(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
3691
3753
|
}
|
|
3692
3754
|
function TableContainer(props) {
|
|
3693
|
-
return /* @__PURE__ */
|
|
3755
|
+
return /* @__PURE__ */ jsx28(StyledTableContainer, { ...props });
|
|
3694
3756
|
}
|
|
3695
3757
|
var TablePagination = MuiTablePagination;
|
|
3696
3758
|
var TableSortLabel = MuiTableSortLabel;
|
|
@@ -3705,10 +3767,10 @@ TableContainer.displayName = "ToolkitTableContainer";
|
|
|
3705
3767
|
// src/foundation/H1/H1.tsx
|
|
3706
3768
|
import React13 from "react";
|
|
3707
3769
|
import { Typography } from "@mui/material";
|
|
3708
|
-
import { jsx as
|
|
3770
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
3709
3771
|
var H1 = React13.forwardRef(
|
|
3710
3772
|
function H12({ color = "text.primary", children, ...props }, ref) {
|
|
3711
|
-
return /* @__PURE__ */
|
|
3773
|
+
return /* @__PURE__ */ jsx29(Typography, { ref, variant: "h1", color, ...props, children });
|
|
3712
3774
|
}
|
|
3713
3775
|
);
|
|
3714
3776
|
H1.displayName = "ToolkitH1";
|
|
@@ -3716,10 +3778,10 @@ H1.displayName = "ToolkitH1";
|
|
|
3716
3778
|
// src/foundation/H2/H2.tsx
|
|
3717
3779
|
import React14 from "react";
|
|
3718
3780
|
import { Typography as Typography2 } from "@mui/material";
|
|
3719
|
-
import { jsx as
|
|
3781
|
+
import { jsx as jsx30 } from "react/jsx-runtime";
|
|
3720
3782
|
var H2 = React14.forwardRef(
|
|
3721
3783
|
function H22({ color = "text.primary", children, ...props }, ref) {
|
|
3722
|
-
return /* @__PURE__ */
|
|
3784
|
+
return /* @__PURE__ */ jsx30(Typography2, { ref, variant: "h2", color, ...props, children });
|
|
3723
3785
|
}
|
|
3724
3786
|
);
|
|
3725
3787
|
H2.displayName = "ToolkitH2";
|
|
@@ -3727,10 +3789,10 @@ H2.displayName = "ToolkitH2";
|
|
|
3727
3789
|
// src/foundation/H3/H3.tsx
|
|
3728
3790
|
import React15 from "react";
|
|
3729
3791
|
import { Typography as Typography3 } from "@mui/material";
|
|
3730
|
-
import { jsx as
|
|
3792
|
+
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3731
3793
|
var H3 = React15.forwardRef(
|
|
3732
3794
|
function H32({ color = "text.primary", children, ...props }, ref) {
|
|
3733
|
-
return /* @__PURE__ */
|
|
3795
|
+
return /* @__PURE__ */ jsx31(Typography3, { ref, variant: "h3", color, ...props, children });
|
|
3734
3796
|
}
|
|
3735
3797
|
);
|
|
3736
3798
|
H3.displayName = "ToolkitH3";
|
|
@@ -3738,10 +3800,10 @@ H3.displayName = "ToolkitH3";
|
|
|
3738
3800
|
// src/foundation/H4/H4.tsx
|
|
3739
3801
|
import React16 from "react";
|
|
3740
3802
|
import { Typography as Typography4 } from "@mui/material";
|
|
3741
|
-
import { jsx as
|
|
3803
|
+
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3742
3804
|
var H4 = React16.forwardRef(
|
|
3743
3805
|
function H42({ color = "text.primary", children, ...props }, ref) {
|
|
3744
|
-
return /* @__PURE__ */
|
|
3806
|
+
return /* @__PURE__ */ jsx32(Typography4, { ref, variant: "h4", color, ...props, children });
|
|
3745
3807
|
}
|
|
3746
3808
|
);
|
|
3747
3809
|
H4.displayName = "ToolkitH4";
|
|
@@ -3749,10 +3811,10 @@ H4.displayName = "ToolkitH4";
|
|
|
3749
3811
|
// src/foundation/H5/H5.tsx
|
|
3750
3812
|
import React17 from "react";
|
|
3751
3813
|
import { Typography as Typography5 } from "@mui/material";
|
|
3752
|
-
import { jsx as
|
|
3814
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3753
3815
|
var H5 = React17.forwardRef(
|
|
3754
3816
|
function H52({ color = "text.primary", children, ...props }, ref) {
|
|
3755
|
-
return /* @__PURE__ */
|
|
3817
|
+
return /* @__PURE__ */ jsx33(Typography5, { ref, variant: "h5", color, ...props, children });
|
|
3756
3818
|
}
|
|
3757
3819
|
);
|
|
3758
3820
|
H5.displayName = "ToolkitH5";
|
|
@@ -3760,10 +3822,10 @@ H5.displayName = "ToolkitH5";
|
|
|
3760
3822
|
// src/foundation/H6/H6.tsx
|
|
3761
3823
|
import React18 from "react";
|
|
3762
3824
|
import { Typography as Typography6 } from "@mui/material";
|
|
3763
|
-
import { jsx as
|
|
3825
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3764
3826
|
var H6 = React18.forwardRef(
|
|
3765
3827
|
function H62({ color = "text.primary", children, ...props }, ref) {
|
|
3766
|
-
return /* @__PURE__ */
|
|
3828
|
+
return /* @__PURE__ */ jsx34(Typography6, { ref, variant: "h6", color, ...props, children });
|
|
3767
3829
|
}
|
|
3768
3830
|
);
|
|
3769
3831
|
H6.displayName = "ToolkitH6";
|
|
@@ -3771,10 +3833,10 @@ H6.displayName = "ToolkitH6";
|
|
|
3771
3833
|
// src/foundation/Subtitle1/Subtitle1.tsx
|
|
3772
3834
|
import React19 from "react";
|
|
3773
3835
|
import { Typography as Typography7 } from "@mui/material";
|
|
3774
|
-
import { jsx as
|
|
3836
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3775
3837
|
var Subtitle1 = React19.forwardRef(
|
|
3776
3838
|
function Subtitle12({ color = "text.primary", children, ...props }, ref) {
|
|
3777
|
-
return /* @__PURE__ */
|
|
3839
|
+
return /* @__PURE__ */ jsx35(Typography7, { ref, variant: "subtitle1", color, ...props, children });
|
|
3778
3840
|
}
|
|
3779
3841
|
);
|
|
3780
3842
|
Subtitle1.displayName = "ToolkitSubtitle1";
|
|
@@ -3782,10 +3844,10 @@ Subtitle1.displayName = "ToolkitSubtitle1";
|
|
|
3782
3844
|
// src/foundation/Subtitle2/Subtitle2.tsx
|
|
3783
3845
|
import React20 from "react";
|
|
3784
3846
|
import { Typography as Typography8 } from "@mui/material";
|
|
3785
|
-
import { jsx as
|
|
3847
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3786
3848
|
var Subtitle2 = React20.forwardRef(
|
|
3787
3849
|
function Subtitle22({ color = "text.primary", children, ...props }, ref) {
|
|
3788
|
-
return /* @__PURE__ */
|
|
3850
|
+
return /* @__PURE__ */ jsx36(Typography8, { ref, variant: "subtitle2", color, ...props, children });
|
|
3789
3851
|
}
|
|
3790
3852
|
);
|
|
3791
3853
|
Subtitle2.displayName = "ToolkitSubtitle2";
|
|
@@ -3793,10 +3855,10 @@ Subtitle2.displayName = "ToolkitSubtitle2";
|
|
|
3793
3855
|
// src/foundation/Body1/Body1.tsx
|
|
3794
3856
|
import React21 from "react";
|
|
3795
3857
|
import { Typography as Typography9 } from "@mui/material";
|
|
3796
|
-
import { jsx as
|
|
3858
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3797
3859
|
var Body1 = React21.forwardRef(
|
|
3798
3860
|
function Body12({ color = "text.primary", children, ...props }, ref) {
|
|
3799
|
-
return /* @__PURE__ */
|
|
3861
|
+
return /* @__PURE__ */ jsx37(Typography9, { ref, variant: "body1", color, ...props, children });
|
|
3800
3862
|
}
|
|
3801
3863
|
);
|
|
3802
3864
|
Body1.displayName = "ToolkitBody1";
|
|
@@ -3804,10 +3866,10 @@ Body1.displayName = "ToolkitBody1";
|
|
|
3804
3866
|
// src/foundation/Body2/Body2.tsx
|
|
3805
3867
|
import React22 from "react";
|
|
3806
3868
|
import { Typography as Typography10 } from "@mui/material";
|
|
3807
|
-
import { jsx as
|
|
3869
|
+
import { jsx as jsx38 } from "react/jsx-runtime";
|
|
3808
3870
|
var Body2 = React22.forwardRef(
|
|
3809
3871
|
function Body22({ color = "text.primary", children, ...props }, ref) {
|
|
3810
|
-
return /* @__PURE__ */
|
|
3872
|
+
return /* @__PURE__ */ jsx38(Typography10, { ref, variant: "body2", color, ...props, children });
|
|
3811
3873
|
}
|
|
3812
3874
|
);
|
|
3813
3875
|
Body2.displayName = "ToolkitBody2";
|
|
@@ -3815,10 +3877,10 @@ Body2.displayName = "ToolkitBody2";
|
|
|
3815
3877
|
// src/foundation/Caption/Caption.tsx
|
|
3816
3878
|
import React23 from "react";
|
|
3817
3879
|
import { Typography as Typography11 } from "@mui/material";
|
|
3818
|
-
import { jsx as
|
|
3880
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3819
3881
|
var Caption = React23.forwardRef(
|
|
3820
3882
|
function Caption2({ color = "text.primary", children, ...props }, ref) {
|
|
3821
|
-
return /* @__PURE__ */
|
|
3883
|
+
return /* @__PURE__ */ jsx39(Typography11, { ref, variant: "caption", color, ...props, children });
|
|
3822
3884
|
}
|
|
3823
3885
|
);
|
|
3824
3886
|
Caption.displayName = "ToolkitCaption";
|
|
@@ -3826,10 +3888,10 @@ Caption.displayName = "ToolkitCaption";
|
|
|
3826
3888
|
// src/foundation/Overline/Overline.tsx
|
|
3827
3889
|
import React24 from "react";
|
|
3828
3890
|
import { Typography as Typography12 } from "@mui/material";
|
|
3829
|
-
import { jsx as
|
|
3891
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3830
3892
|
var Overline = React24.forwardRef(
|
|
3831
3893
|
function Overline2({ color = "text.primary", children, ...props }, ref) {
|
|
3832
|
-
return /* @__PURE__ */
|
|
3894
|
+
return /* @__PURE__ */ jsx40(Typography12, { ref, variant: "overline", color, ...props, children });
|
|
3833
3895
|
}
|
|
3834
3896
|
);
|
|
3835
3897
|
Overline.displayName = "ToolkitOverline";
|
|
@@ -3837,10 +3899,10 @@ Overline.displayName = "ToolkitOverline";
|
|
|
3837
3899
|
// src/foundation/TypographyButton/TypographyButton.tsx
|
|
3838
3900
|
import React25 from "react";
|
|
3839
3901
|
import { Typography as Typography13 } from "@mui/material";
|
|
3840
|
-
import { jsx as
|
|
3902
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3841
3903
|
var TypographyButton = React25.forwardRef(
|
|
3842
3904
|
function TypographyButton2({ color = "text.primary", children, ...props }, ref) {
|
|
3843
|
-
return /* @__PURE__ */
|
|
3905
|
+
return /* @__PURE__ */ jsx41(Typography13, { ref, variant: "button", color, ...props, children });
|
|
3844
3906
|
}
|
|
3845
3907
|
);
|
|
3846
3908
|
TypographyButton.displayName = "ToolkitTypographyButton";
|
|
@@ -3889,6 +3951,7 @@ export {
|
|
|
3889
3951
|
MobileDateTimePicker,
|
|
3890
3952
|
MobileTimePicker,
|
|
3891
3953
|
MultiSelect,
|
|
3954
|
+
OtpInput,
|
|
3892
3955
|
Overline,
|
|
3893
3956
|
PageSpinner,
|
|
3894
3957
|
Pagination,
|