@octoguide/mui-ui-toolkit 0.3.0 → 0.4.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 +160 -18
- package/dist/index.d.ts +160 -18
- package/dist/index.js +768 -173
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +737 -147
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -124,6 +124,16 @@ var defaultTheme = {
|
|
|
124
124
|
linkColor: "rgba(255, 255, 255, 0.7)",
|
|
125
125
|
linkHoverColor: "#ffffff"
|
|
126
126
|
},
|
|
127
|
+
icon: {
|
|
128
|
+
xs: "12px",
|
|
129
|
+
sm: "16px",
|
|
130
|
+
md: "20px",
|
|
131
|
+
lg: "24px",
|
|
132
|
+
xl: "28px",
|
|
133
|
+
xxl: "32px",
|
|
134
|
+
xxxl: "36px",
|
|
135
|
+
display: "56px"
|
|
136
|
+
},
|
|
127
137
|
button: {
|
|
128
138
|
// Sizes & paddings (identical across themes)
|
|
129
139
|
paddingX: "12px",
|
|
@@ -1089,14 +1099,133 @@ function ToolkitThemeProvider({
|
|
|
1089
1099
|
] });
|
|
1090
1100
|
}
|
|
1091
1101
|
|
|
1092
|
-
// src/components/
|
|
1102
|
+
// src/components/ABNInput/ABNInput.tsx
|
|
1103
|
+
import React2 from "react";
|
|
1104
|
+
import CircularProgress from "@mui/material/CircularProgress";
|
|
1105
|
+
import InputAdornment2 from "@mui/material/InputAdornment";
|
|
1106
|
+
|
|
1107
|
+
// src/components/TextField/TextField.tsx
|
|
1108
|
+
import React, { useState } from "react";
|
|
1093
1109
|
import {
|
|
1094
|
-
|
|
1095
|
-
|
|
1110
|
+
TextField as MuiTextField,
|
|
1111
|
+
InputAdornment,
|
|
1112
|
+
IconButton,
|
|
1113
|
+
SvgIcon
|
|
1096
1114
|
} from "@mui/material";
|
|
1097
1115
|
import { styled } from "@mui/material/styles";
|
|
1098
1116
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
1099
|
-
var
|
|
1117
|
+
var VisibilityIcon = /* @__PURE__ */ jsx2(SvgIcon, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx2("path", { fill: "currentColor", d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3" }) });
|
|
1118
|
+
var VisibilityOffIcon = /* @__PURE__ */ jsx2(SvgIcon, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx2("path", { fill: "currentColor", d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75C21.27 5.61 17 2.5 12 2.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 5.13 11.35 5 12 5M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27M7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01" }) });
|
|
1119
|
+
var StyledTextField = styled(MuiTextField)(({ theme }) => ({
|
|
1120
|
+
// Transition on the entire field when focus changes
|
|
1121
|
+
"& .MuiOutlinedInput-root": {
|
|
1122
|
+
transition: `box-shadow ${theme.tokens.transitions.durationFast} ${theme.tokens.transitions.easingDefault}`,
|
|
1123
|
+
"&.Mui-focused": {
|
|
1124
|
+
boxShadow: theme.tokens.shadows.xs
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
}));
|
|
1128
|
+
var TextField = React.forwardRef(
|
|
1129
|
+
function TextField2({ error, FormHelperTextProps, inputProps, label, showPasswordToggle, type, slotProps, ...props }, ref) {
|
|
1130
|
+
const [showPassword, setShowPassword] = useState(false);
|
|
1131
|
+
if (process.env.NODE_ENV !== "production") {
|
|
1132
|
+
if (!label && !props["aria-label"] && !props["aria-labelledby"] && !inputProps?.["aria-label"] && !inputProps?.["aria-labelledby"]) {
|
|
1133
|
+
console.warn("[ToolkitTextField] Missing accessible label. Provide `label`, `aria-label`, or `aria-labelledby`.");
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
const resolvedType = showPasswordToggle && type === "password" ? showPassword ? "text" : "password" : type;
|
|
1137
|
+
const toggleAdornment = showPasswordToggle && type === "password" ? /* @__PURE__ */ jsx2(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx2(
|
|
1138
|
+
IconButton,
|
|
1139
|
+
{
|
|
1140
|
+
"aria-label": showPassword ? "Hide password" : "Show password",
|
|
1141
|
+
onClick: () => setShowPassword((prev) => !prev),
|
|
1142
|
+
edge: "end",
|
|
1143
|
+
children: showPassword ? VisibilityOffIcon : VisibilityIcon
|
|
1144
|
+
}
|
|
1145
|
+
) }) : null;
|
|
1146
|
+
const mergedSlotProps = toggleAdornment ? { ...slotProps, input: { endAdornment: toggleAdornment, ...slotProps?.input } } : slotProps;
|
|
1147
|
+
return /* @__PURE__ */ jsx2(
|
|
1148
|
+
StyledTextField,
|
|
1149
|
+
{
|
|
1150
|
+
fullWidth: true,
|
|
1151
|
+
variant: "outlined",
|
|
1152
|
+
label,
|
|
1153
|
+
error,
|
|
1154
|
+
type: resolvedType,
|
|
1155
|
+
inputRef: ref,
|
|
1156
|
+
inputProps,
|
|
1157
|
+
slotProps: mergedSlotProps,
|
|
1158
|
+
FormHelperTextProps: error ? { role: "alert", ...FormHelperTextProps } : FormHelperTextProps,
|
|
1159
|
+
...props
|
|
1160
|
+
}
|
|
1161
|
+
);
|
|
1162
|
+
}
|
|
1163
|
+
);
|
|
1164
|
+
TextField.displayName = "ToolkitTextField";
|
|
1165
|
+
|
|
1166
|
+
// src/utils/getCleanProps.ts
|
|
1167
|
+
function getCleanProps(props) {
|
|
1168
|
+
const { style: _style, role: _role, ...cleanProps } = props;
|
|
1169
|
+
return cleanProps;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
// src/utils/formatABN.ts
|
|
1173
|
+
function formatABN(value) {
|
|
1174
|
+
const digits = value.replace(/\D/g, "").slice(0, 11);
|
|
1175
|
+
if (digits.length <= 2) return digits;
|
|
1176
|
+
if (digits.length <= 5) return `${digits.slice(0, 2)} ${digits.slice(2)}`;
|
|
1177
|
+
if (digits.length <= 8) return `${digits.slice(0, 2)} ${digits.slice(2, 5)} ${digits.slice(5)}`;
|
|
1178
|
+
return `${digits.slice(0, 2)} ${digits.slice(2, 5)} ${digits.slice(5, 8)} ${digits.slice(8)}`;
|
|
1179
|
+
}
|
|
1180
|
+
|
|
1181
|
+
// src/components/ABNInput/ABNInput.tsx
|
|
1182
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
1183
|
+
var ABNInput = React2.forwardRef(
|
|
1184
|
+
function ABNInput2({ value = "", onChange, isInvalid, readOnly, isLoading, slotProps, error, ...restProps }, ref) {
|
|
1185
|
+
const formatted = formatABN(String(value));
|
|
1186
|
+
const handleChange = (event) => {
|
|
1187
|
+
const newFormatted = formatABN(event.target.value);
|
|
1188
|
+
onChange?.(event, {
|
|
1189
|
+
value: newFormatted,
|
|
1190
|
+
unformattedValue: newFormatted.replace(/\s/g, "")
|
|
1191
|
+
});
|
|
1192
|
+
};
|
|
1193
|
+
const endAdornment = isLoading ? /* @__PURE__ */ jsx3(InputAdornment2, { position: "end", children: /* @__PURE__ */ jsx3(CircularProgress, { size: 20 }) }) : void 0;
|
|
1194
|
+
const mergedSlotProps = {
|
|
1195
|
+
...slotProps,
|
|
1196
|
+
htmlInput: {
|
|
1197
|
+
maxLength: 14,
|
|
1198
|
+
inputMode: "numeric",
|
|
1199
|
+
readOnly,
|
|
1200
|
+
...slotProps?.htmlInput
|
|
1201
|
+
},
|
|
1202
|
+
...endAdornment && {
|
|
1203
|
+
input: { endAdornment, ...slotProps?.input }
|
|
1204
|
+
}
|
|
1205
|
+
};
|
|
1206
|
+
return /* @__PURE__ */ jsx3(
|
|
1207
|
+
TextField,
|
|
1208
|
+
{
|
|
1209
|
+
...getCleanProps(restProps),
|
|
1210
|
+
ref,
|
|
1211
|
+
value: formatted,
|
|
1212
|
+
onChange: handleChange,
|
|
1213
|
+
error: isInvalid || !!error,
|
|
1214
|
+
slotProps: mergedSlotProps
|
|
1215
|
+
}
|
|
1216
|
+
);
|
|
1217
|
+
}
|
|
1218
|
+
);
|
|
1219
|
+
ABNInput.displayName = "ToolkitABNInput";
|
|
1220
|
+
|
|
1221
|
+
// src/components/Button/Button.tsx
|
|
1222
|
+
import {
|
|
1223
|
+
Button as MuiButton,
|
|
1224
|
+
CircularProgress as CircularProgress2
|
|
1225
|
+
} from "@mui/material";
|
|
1226
|
+
import { styled as styled2 } from "@mui/material/styles";
|
|
1227
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
1228
|
+
var StyledButton = styled2(MuiButton)(({ theme }) => ({
|
|
1100
1229
|
// Gap between icon and label — not surfaced by MUI's styleOverrides
|
|
1101
1230
|
"& .MuiButton-startIcon": {
|
|
1102
1231
|
marginRight: theme.tokens.components.button.iconGap
|
|
@@ -1108,14 +1237,14 @@ var StyledButton = styled(MuiButton)(({ theme }) => ({
|
|
|
1108
1237
|
function Button({ loading, disabled, children, ...props }) {
|
|
1109
1238
|
const baseLabel = props["aria-label"] ?? (typeof children === "string" ? children : void 0);
|
|
1110
1239
|
const ariaLabel = loading && baseLabel ? `${baseLabel}, loading` : props["aria-label"];
|
|
1111
|
-
return /* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ jsx4(
|
|
1112
1241
|
StyledButton,
|
|
1113
1242
|
{
|
|
1114
1243
|
...props,
|
|
1115
1244
|
disabled: disabled || loading,
|
|
1116
1245
|
"aria-busy": loading || void 0,
|
|
1117
1246
|
"aria-label": ariaLabel,
|
|
1118
|
-
startIcon: loading ? /* @__PURE__ */
|
|
1247
|
+
startIcon: loading ? /* @__PURE__ */ jsx4(CircularProgress2, { size: 16, color: "inherit" }) : props.startIcon,
|
|
1119
1248
|
children
|
|
1120
1249
|
}
|
|
1121
1250
|
);
|
|
@@ -1123,10 +1252,10 @@ function Button({ loading, disabled, children, ...props }) {
|
|
|
1123
1252
|
Button.displayName = "ToolkitButton";
|
|
1124
1253
|
|
|
1125
1254
|
// src/components/Chip/Chip.tsx
|
|
1126
|
-
import { Chip as MuiChip, SvgIcon } from "@mui/material";
|
|
1127
|
-
import { jsx as
|
|
1255
|
+
import { Chip as MuiChip, SvgIcon as SvgIcon2 } from "@mui/material";
|
|
1256
|
+
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1128
1257
|
function CircleXIcon(props) {
|
|
1129
|
-
return /* @__PURE__ */
|
|
1258
|
+
return /* @__PURE__ */ jsx5(SvgIcon2, { ...props, viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5(
|
|
1130
1259
|
"path",
|
|
1131
1260
|
{
|
|
1132
1261
|
fill: "currentColor",
|
|
@@ -1137,12 +1266,12 @@ function CircleXIcon(props) {
|
|
|
1137
1266
|
) });
|
|
1138
1267
|
}
|
|
1139
1268
|
function Chip({ deleteIcon, onDelete, ...props }) {
|
|
1140
|
-
return /* @__PURE__ */
|
|
1269
|
+
return /* @__PURE__ */ jsx5(
|
|
1141
1270
|
MuiChip,
|
|
1142
1271
|
{
|
|
1143
1272
|
...props,
|
|
1144
1273
|
onDelete,
|
|
1145
|
-
deleteIcon: onDelete ? deleteIcon ?? /* @__PURE__ */
|
|
1274
|
+
deleteIcon: onDelete ? deleteIcon ?? /* @__PURE__ */ jsx5(CircleXIcon, {}) : void 0
|
|
1146
1275
|
}
|
|
1147
1276
|
);
|
|
1148
1277
|
}
|
|
@@ -1155,9 +1284,9 @@ import {
|
|
|
1155
1284
|
CardHeader as MuiCardHeader,
|
|
1156
1285
|
CardActions as MuiCardActions
|
|
1157
1286
|
} from "@mui/material";
|
|
1158
|
-
import { styled as
|
|
1159
|
-
import { jsx as
|
|
1160
|
-
var StyledCard =
|
|
1287
|
+
import { styled as styled3 } from "@mui/material/styles";
|
|
1288
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
1289
|
+
var StyledCard = styled3(MuiCard, {
|
|
1161
1290
|
shouldForwardProp: (prop) => prop !== "compact"
|
|
1162
1291
|
})(({ theme, compact }) => ({
|
|
1163
1292
|
padding: compact ? theme.tokens.components.card.paddingCompact : theme.tokens.components.card.padding,
|
|
@@ -1172,83 +1301,24 @@ var StyledCard = styled2(MuiCard, {
|
|
|
1172
1301
|
}
|
|
1173
1302
|
}));
|
|
1174
1303
|
function Card({ compact, children, ...props }) {
|
|
1175
|
-
return /* @__PURE__ */
|
|
1304
|
+
return /* @__PURE__ */ jsx6(StyledCard, { compact, ...props, children });
|
|
1176
1305
|
}
|
|
1177
1306
|
var CardContent = MuiCardContent;
|
|
1178
1307
|
var CardHeader = MuiCardHeader;
|
|
1179
1308
|
var CardActions = MuiCardActions;
|
|
1180
1309
|
Card.displayName = "ToolkitCard";
|
|
1181
1310
|
|
|
1182
|
-
// src/components/TextField/TextField.tsx
|
|
1183
|
-
import React, { useState } from "react";
|
|
1184
|
-
import {
|
|
1185
|
-
TextField as MuiTextField,
|
|
1186
|
-
InputAdornment,
|
|
1187
|
-
IconButton,
|
|
1188
|
-
SvgIcon as SvgIcon2
|
|
1189
|
-
} from "@mui/material";
|
|
1190
|
-
import { styled as styled3 } from "@mui/material/styles";
|
|
1191
|
-
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
1192
|
-
var VisibilityIcon = /* @__PURE__ */ jsx5(SvgIcon2, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5("path", { fill: "currentColor", d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3" }) });
|
|
1193
|
-
var VisibilityOffIcon = /* @__PURE__ */ jsx5(SvgIcon2, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx5("path", { fill: "currentColor", d: "M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75C21.27 5.61 17 2.5 12 2.5c-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 5.13 11.35 5 12 5M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27M7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01" }) });
|
|
1194
|
-
var StyledTextField = styled3(MuiTextField)(({ theme }) => ({
|
|
1195
|
-
// Transition on the entire field when focus changes
|
|
1196
|
-
"& .MuiOutlinedInput-root": {
|
|
1197
|
-
transition: `box-shadow ${theme.tokens.transitions.durationFast} ${theme.tokens.transitions.easingDefault}`,
|
|
1198
|
-
"&.Mui-focused": {
|
|
1199
|
-
boxShadow: theme.tokens.shadows.xs
|
|
1200
|
-
}
|
|
1201
|
-
}
|
|
1202
|
-
}));
|
|
1203
|
-
var TextField = React.forwardRef(
|
|
1204
|
-
function TextField2({ error, FormHelperTextProps, inputProps, label, showPasswordToggle, type, slotProps, ...props }, ref) {
|
|
1205
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
1206
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1207
|
-
if (!label && !props["aria-label"] && !props["aria-labelledby"] && !inputProps?.["aria-label"] && !inputProps?.["aria-labelledby"]) {
|
|
1208
|
-
console.warn("[ToolkitTextField] Missing accessible label. Provide `label`, `aria-label`, or `aria-labelledby`.");
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
const resolvedType = showPasswordToggle && type === "password" ? showPassword ? "text" : "password" : type;
|
|
1212
|
-
const toggleAdornment = showPasswordToggle && type === "password" ? /* @__PURE__ */ jsx5(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx5(
|
|
1213
|
-
IconButton,
|
|
1214
|
-
{
|
|
1215
|
-
"aria-label": showPassword ? "Hide password" : "Show password",
|
|
1216
|
-
onClick: () => setShowPassword((prev) => !prev),
|
|
1217
|
-
edge: "end",
|
|
1218
|
-
children: showPassword ? VisibilityOffIcon : VisibilityIcon
|
|
1219
|
-
}
|
|
1220
|
-
) }) : null;
|
|
1221
|
-
const mergedSlotProps = toggleAdornment ? { ...slotProps, input: { endAdornment: toggleAdornment, ...slotProps?.input } } : slotProps;
|
|
1222
|
-
return /* @__PURE__ */ jsx5(
|
|
1223
|
-
StyledTextField,
|
|
1224
|
-
{
|
|
1225
|
-
fullWidth: true,
|
|
1226
|
-
variant: "outlined",
|
|
1227
|
-
label,
|
|
1228
|
-
error,
|
|
1229
|
-
type: resolvedType,
|
|
1230
|
-
inputRef: ref,
|
|
1231
|
-
inputProps,
|
|
1232
|
-
slotProps: mergedSlotProps,
|
|
1233
|
-
FormHelperTextProps: error ? { role: "alert", ...FormHelperTextProps } : FormHelperTextProps,
|
|
1234
|
-
...props
|
|
1235
|
-
}
|
|
1236
|
-
);
|
|
1237
|
-
}
|
|
1238
|
-
);
|
|
1239
|
-
TextField.displayName = "ToolkitTextField";
|
|
1240
|
-
|
|
1241
1311
|
// src/components/Alert/Alert.tsx
|
|
1242
1312
|
import {
|
|
1243
1313
|
Alert as MuiAlert,
|
|
1244
1314
|
AlertTitle as MuiAlertTitle,
|
|
1245
1315
|
SvgIcon as SvgIcon3
|
|
1246
1316
|
} from "@mui/material";
|
|
1247
|
-
import { jsx as
|
|
1248
|
-
var InfoIcon = /* @__PURE__ */
|
|
1249
|
-
var SuccessIcon = /* @__PURE__ */
|
|
1250
|
-
var WarningIcon = /* @__PURE__ */
|
|
1251
|
-
var ErrorIcon = /* @__PURE__ */
|
|
1317
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
1318
|
+
var InfoIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-10 5.75a.75.75 0 0 0 .75-.75v-6a.75.75 0 0 0-1.5 0v6c0 .414.336.75.75.75M12 7a1 1 0 1 1 0 2a1 1 0 0 1 0-2", clipRule: "evenodd" }) });
|
|
1319
|
+
var SuccessIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2s10 4.477 10 10m-5.97-3.03a.75.75 0 0 1 0 1.06l-5 5a.75.75 0 0 1-1.06 0l-2-2a.75.75 0 1 1 1.06-1.06l1.47 1.47l2.235-2.235L14.97 8.97a.75.75 0 0 1 1.06 0", clipRule: "evenodd" }) });
|
|
1320
|
+
var WarningIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.312 10.762C8.23 5.587 9.689 3 12 3c2.31 0 3.77 2.587 6.688 7.762l.364.644c2.425 4.3 3.638 6.45 2.542 8.022S17.786 21 12.364 21h-.728c-5.422 0-8.134 0-9.23-1.572s.117-3.722 2.542-8.022zM12 7.25a.75.75 0 0 1 .75.75v5a.75.75 0 0 1-1.5 0V8a.75.75 0 0 1 .75-.75M12 17a1 1 0 1 0 0-2a1 1 0 0 0 0 2", clipRule: "evenodd" }) });
|
|
1321
|
+
var ErrorIcon = /* @__PURE__ */ jsx7(SvgIcon3, { viewBox: "0 0 24 24", children: /* @__PURE__ */ jsx7("path", { fill: "currentColor", fillRule: "evenodd", d: "M7.843 3.802C9.872 2.601 10.886 2 12 2c1.114 0 2.128.6 4.157 1.802l.686.406c2.029 1.202 3.043 1.803 3.6 2.792c.557.99.557 2.19.557 4.594v.812c0 2.403 0 3.605-.557 4.594c-.557.99-1.571 1.59-3.6 2.791l-.686.407C14.128 21.399 13.114 22 12 22c-1.114 0-2.128-.6-4.157-1.802l-.686-.407c-2.029-1.2-3.043-1.802-3.6-2.791C3 16.01 3 14.81 3 12.406v-.812C3 9.19 3 7.989 3.557 7c.557-.99 1.571-1.59 3.6-2.792zM13 16a1 1 0 1 1-2 0a1 1 0 0 1 2 0m-1-9.75a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0V7a.75.75 0 0 1 .75-.75", clipRule: "evenodd" }) });
|
|
1252
1322
|
var defaultIconMapping = {
|
|
1253
1323
|
info: InfoIcon,
|
|
1254
1324
|
success: SuccessIcon,
|
|
@@ -1256,10 +1326,10 @@ var defaultIconMapping = {
|
|
|
1256
1326
|
error: ErrorIcon
|
|
1257
1327
|
};
|
|
1258
1328
|
function Alert({ iconMapping, ...props }) {
|
|
1259
|
-
return /* @__PURE__ */
|
|
1329
|
+
return /* @__PURE__ */ jsx7(MuiAlert, { iconMapping: { ...defaultIconMapping, ...iconMapping }, ...props });
|
|
1260
1330
|
}
|
|
1261
1331
|
function AlertTitle(props) {
|
|
1262
|
-
return /* @__PURE__ */
|
|
1332
|
+
return /* @__PURE__ */ jsx7(MuiAlertTitle, { ...props });
|
|
1263
1333
|
}
|
|
1264
1334
|
Alert.displayName = "ToolkitAlert";
|
|
1265
1335
|
AlertTitle.displayName = "ToolkitAlertTitle";
|
|
@@ -1272,7 +1342,7 @@ import {
|
|
|
1272
1342
|
} from "@mui/material";
|
|
1273
1343
|
import { styled as styled4 } from "@mui/material/styles";
|
|
1274
1344
|
import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
|
|
1275
|
-
import { jsx as
|
|
1345
|
+
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
1276
1346
|
var StandaloneAccordion = styled4(MuiAccordion)(({ theme }) => ({
|
|
1277
1347
|
borderRadius: `${theme.tokens.components.accordion.standaloneRadius} !important`,
|
|
1278
1348
|
backgroundColor: theme.tokens.components.accordion.standaloneBackground,
|
|
@@ -1290,13 +1360,13 @@ var StandaloneAccordion = styled4(MuiAccordion)(({ theme }) => ({
|
|
|
1290
1360
|
}
|
|
1291
1361
|
}));
|
|
1292
1362
|
function Accordion(props) {
|
|
1293
|
-
return /* @__PURE__ */
|
|
1363
|
+
return /* @__PURE__ */ jsx8(MuiAccordion, { ...props });
|
|
1294
1364
|
}
|
|
1295
1365
|
function AccordionSummary({ expandIcon, ...props }) {
|
|
1296
|
-
return /* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ jsx8(MuiAccordionSummary, { expandIcon: expandIcon ?? /* @__PURE__ */ jsx8(ExpandMoreIcon, {}), ...props });
|
|
1297
1367
|
}
|
|
1298
1368
|
function AccordionDetails(props) {
|
|
1299
|
-
return /* @__PURE__ */
|
|
1369
|
+
return /* @__PURE__ */ jsx8(MuiAccordionDetails, { ...props });
|
|
1300
1370
|
}
|
|
1301
1371
|
Accordion.displayName = "ToolkitAccordion";
|
|
1302
1372
|
AccordionSummary.displayName = "ToolkitAccordionSummary";
|
|
@@ -1307,7 +1377,7 @@ StandaloneAccordion.displayName = "ToolkitStandaloneAccordion";
|
|
|
1307
1377
|
import MuiAvatar from "@mui/material/Avatar";
|
|
1308
1378
|
import { styled as styled5 } from "@mui/material/styles";
|
|
1309
1379
|
import { default as default2 } from "@mui/material/AvatarGroup";
|
|
1310
|
-
import { jsx as
|
|
1380
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
1311
1381
|
function getDimension(avatar, size) {
|
|
1312
1382
|
const map = {
|
|
1313
1383
|
xs: avatar.sizeXs,
|
|
@@ -1329,7 +1399,7 @@ var StyledAvatar = styled5(MuiAvatar, {
|
|
|
1329
1399
|
};
|
|
1330
1400
|
});
|
|
1331
1401
|
function Avatar({ size = "md", ...props }) {
|
|
1332
|
-
return /* @__PURE__ */
|
|
1402
|
+
return /* @__PURE__ */ jsx9(StyledAvatar, { size, ...props });
|
|
1333
1403
|
}
|
|
1334
1404
|
|
|
1335
1405
|
// src/components/ToggleButton/ToggleButton.tsx
|
|
@@ -1337,13 +1407,13 @@ import {
|
|
|
1337
1407
|
ToggleButton as MuiToggleButton,
|
|
1338
1408
|
ToggleButtonGroup as MuiToggleButtonGroup
|
|
1339
1409
|
} from "@mui/material";
|
|
1340
|
-
import { jsx as
|
|
1410
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
1341
1411
|
function ToggleButton(props) {
|
|
1342
|
-
return /* @__PURE__ */
|
|
1412
|
+
return /* @__PURE__ */ jsx10(MuiToggleButton, { ...props });
|
|
1343
1413
|
}
|
|
1344
1414
|
ToggleButton.displayName = "ToolkitToggleButton";
|
|
1345
1415
|
function ToggleButtonGroup(props) {
|
|
1346
|
-
return /* @__PURE__ */
|
|
1416
|
+
return /* @__PURE__ */ jsx10(MuiToggleButtonGroup, { ...props });
|
|
1347
1417
|
}
|
|
1348
1418
|
ToggleButtonGroup.displayName = "ToolkitToggleButtonGroup";
|
|
1349
1419
|
|
|
@@ -1406,73 +1476,73 @@ import Button2 from "@mui/material/Button";
|
|
|
1406
1476
|
import Box from "@mui/material/Box";
|
|
1407
1477
|
import TextField3 from "@mui/material/TextField";
|
|
1408
1478
|
import { styled as styled6 } from "@mui/material/styles";
|
|
1409
|
-
import { Fragment, jsx as
|
|
1479
|
+
import { Fragment, jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
1410
1480
|
function DateLocalizationProvider({ children }) {
|
|
1411
|
-
return /* @__PURE__ */
|
|
1481
|
+
return /* @__PURE__ */ jsx11(LocalizationProvider, { dateAdapter: AdapterDayjs, children });
|
|
1412
1482
|
}
|
|
1413
1483
|
DateLocalizationProvider.displayName = "ToolkitDateLocalizationProvider";
|
|
1414
1484
|
function DatePicker(props) {
|
|
1415
|
-
return /* @__PURE__ */
|
|
1485
|
+
return /* @__PURE__ */ jsx11(MuiDatePicker, { ...props });
|
|
1416
1486
|
}
|
|
1417
1487
|
DatePicker.displayName = "ToolkitDatePicker";
|
|
1418
1488
|
function DesktopDatePicker(props) {
|
|
1419
|
-
return /* @__PURE__ */
|
|
1489
|
+
return /* @__PURE__ */ jsx11(MuiDesktopDatePicker, { ...props });
|
|
1420
1490
|
}
|
|
1421
1491
|
DesktopDatePicker.displayName = "ToolkitDesktopDatePicker";
|
|
1422
1492
|
function MobileDatePicker(props) {
|
|
1423
|
-
return /* @__PURE__ */
|
|
1493
|
+
return /* @__PURE__ */ jsx11(MuiMobileDatePicker, { ...props });
|
|
1424
1494
|
}
|
|
1425
1495
|
MobileDatePicker.displayName = "ToolkitMobileDatePicker";
|
|
1426
1496
|
function DateField(props) {
|
|
1427
|
-
return /* @__PURE__ */
|
|
1497
|
+
return /* @__PURE__ */ jsx11(MuiDateField, { ...props });
|
|
1428
1498
|
}
|
|
1429
1499
|
DateField.displayName = "ToolkitDateField";
|
|
1430
1500
|
function StaticDatePicker(props) {
|
|
1431
|
-
return /* @__PURE__ */
|
|
1501
|
+
return /* @__PURE__ */ jsx11(MuiStaticDatePicker, { ...props });
|
|
1432
1502
|
}
|
|
1433
1503
|
StaticDatePicker.displayName = "ToolkitStaticDatePicker";
|
|
1434
1504
|
function TimePicker(props) {
|
|
1435
|
-
return /* @__PURE__ */
|
|
1505
|
+
return /* @__PURE__ */ jsx11(MuiTimePicker, { ...props });
|
|
1436
1506
|
}
|
|
1437
1507
|
TimePicker.displayName = "ToolkitTimePicker";
|
|
1438
1508
|
function DesktopTimePicker(props) {
|
|
1439
|
-
return /* @__PURE__ */
|
|
1509
|
+
return /* @__PURE__ */ jsx11(MuiDesktopTimePicker, { ...props });
|
|
1440
1510
|
}
|
|
1441
1511
|
DesktopTimePicker.displayName = "ToolkitDesktopTimePicker";
|
|
1442
1512
|
function MobileTimePicker(props) {
|
|
1443
|
-
return /* @__PURE__ */
|
|
1513
|
+
return /* @__PURE__ */ jsx11(MuiMobileTimePicker, { ...props });
|
|
1444
1514
|
}
|
|
1445
1515
|
MobileTimePicker.displayName = "ToolkitMobileTimePicker";
|
|
1446
1516
|
function TimeField(props) {
|
|
1447
|
-
return /* @__PURE__ */
|
|
1517
|
+
return /* @__PURE__ */ jsx11(MuiTimeField, { ...props });
|
|
1448
1518
|
}
|
|
1449
1519
|
TimeField.displayName = "ToolkitTimeField";
|
|
1450
1520
|
function StaticTimePicker(props) {
|
|
1451
|
-
return /* @__PURE__ */
|
|
1521
|
+
return /* @__PURE__ */ jsx11(MuiStaticTimePicker, { ...props });
|
|
1452
1522
|
}
|
|
1453
1523
|
StaticTimePicker.displayName = "ToolkitStaticTimePicker";
|
|
1454
1524
|
function DateTimePicker(props) {
|
|
1455
|
-
return /* @__PURE__ */
|
|
1525
|
+
return /* @__PURE__ */ jsx11(MuiDateTimePicker, { ...props });
|
|
1456
1526
|
}
|
|
1457
1527
|
DateTimePicker.displayName = "ToolkitDateTimePicker";
|
|
1458
1528
|
function DesktopDateTimePicker(props) {
|
|
1459
|
-
return /* @__PURE__ */
|
|
1529
|
+
return /* @__PURE__ */ jsx11(MuiDesktopDateTimePicker, { ...props });
|
|
1460
1530
|
}
|
|
1461
1531
|
DesktopDateTimePicker.displayName = "ToolkitDesktopDateTimePicker";
|
|
1462
1532
|
function MobileDateTimePicker(props) {
|
|
1463
|
-
return /* @__PURE__ */
|
|
1533
|
+
return /* @__PURE__ */ jsx11(MuiMobileDateTimePicker, { ...props });
|
|
1464
1534
|
}
|
|
1465
1535
|
MobileDateTimePicker.displayName = "ToolkitMobileDateTimePicker";
|
|
1466
1536
|
function DateTimeField(props) {
|
|
1467
|
-
return /* @__PURE__ */
|
|
1537
|
+
return /* @__PURE__ */ jsx11(MuiDateTimeField, { ...props });
|
|
1468
1538
|
}
|
|
1469
1539
|
DateTimeField.displayName = "ToolkitDateTimeField";
|
|
1470
1540
|
function StaticDateTimePicker(props) {
|
|
1471
|
-
return /* @__PURE__ */
|
|
1541
|
+
return /* @__PURE__ */ jsx11(MuiStaticDateTimePicker, { ...props });
|
|
1472
1542
|
}
|
|
1473
1543
|
StaticDateTimePicker.displayName = "ToolkitStaticDateTimePicker";
|
|
1474
1544
|
function DateCalendar(props) {
|
|
1475
|
-
return /* @__PURE__ */
|
|
1545
|
+
return /* @__PURE__ */ jsx11(MuiDateCalendar, { ...props });
|
|
1476
1546
|
}
|
|
1477
1547
|
DateCalendar.displayName = "ToolkitDateCalendar";
|
|
1478
1548
|
var RangeRow = styled6(Box)(({ theme }) => ({
|
|
@@ -1499,10 +1569,10 @@ function DateRangePickerInput({
|
|
|
1499
1569
|
setOpen(false);
|
|
1500
1570
|
};
|
|
1501
1571
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
1502
|
-
/* @__PURE__ */
|
|
1572
|
+
/* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1503
1573
|
/* @__PURE__ */ jsxs2(Dialog, { open, onClose: handleCancel, maxWidth: "sm", fullWidth: true, children: [
|
|
1504
|
-
/* @__PURE__ */
|
|
1505
|
-
/* @__PURE__ */
|
|
1574
|
+
/* @__PURE__ */ jsx11(DialogContent, { children: /* @__PURE__ */ jsxs2(RangeRow, { children: [
|
|
1575
|
+
/* @__PURE__ */ jsx11(
|
|
1506
1576
|
MuiDatePicker,
|
|
1507
1577
|
{
|
|
1508
1578
|
label: startLabel,
|
|
@@ -1511,7 +1581,7 @@ function DateRangePickerInput({
|
|
|
1511
1581
|
slotProps: { textField: { fullWidth: true } }
|
|
1512
1582
|
}
|
|
1513
1583
|
),
|
|
1514
|
-
/* @__PURE__ */
|
|
1584
|
+
/* @__PURE__ */ jsx11(
|
|
1515
1585
|
MuiDatePicker,
|
|
1516
1586
|
{
|
|
1517
1587
|
label: endLabel,
|
|
@@ -1522,8 +1592,8 @@ function DateRangePickerInput({
|
|
|
1522
1592
|
)
|
|
1523
1593
|
] }) }),
|
|
1524
1594
|
/* @__PURE__ */ jsxs2(DialogActions, { children: [
|
|
1525
|
-
/* @__PURE__ */
|
|
1526
|
-
/* @__PURE__ */
|
|
1595
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1596
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1527
1597
|
] })
|
|
1528
1598
|
] })
|
|
1529
1599
|
] });
|
|
@@ -1556,10 +1626,10 @@ function DateRangePickerCalendar({
|
|
|
1556
1626
|
}
|
|
1557
1627
|
};
|
|
1558
1628
|
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
1559
|
-
/* @__PURE__ */
|
|
1629
|
+
/* @__PURE__ */ jsx11(Button2, { variant: "contained", color: "inherit", disableElevation: true, onClick: handleOpen, children: buttonLabel }),
|
|
1560
1630
|
/* @__PURE__ */ jsxs2(Dialog, { open, onClose: handleCancel, children: [
|
|
1561
1631
|
/* @__PURE__ */ jsxs2(DialogContent, { sx: { p: 1 }, children: [
|
|
1562
|
-
/* @__PURE__ */
|
|
1632
|
+
/* @__PURE__ */ jsx11(Box, { sx: { mb: 1, px: 1 }, children: /* @__PURE__ */ jsx11(
|
|
1563
1633
|
TextField3,
|
|
1564
1634
|
{
|
|
1565
1635
|
size: "small",
|
|
@@ -1569,7 +1639,7 @@ function DateRangePickerCalendar({
|
|
|
1569
1639
|
fullWidth: true
|
|
1570
1640
|
}
|
|
1571
1641
|
) }),
|
|
1572
|
-
/* @__PURE__ */
|
|
1642
|
+
/* @__PURE__ */ jsx11(
|
|
1573
1643
|
MuiDateCalendar,
|
|
1574
1644
|
{
|
|
1575
1645
|
value: selecting === "start" ? draft.start : draft.end,
|
|
@@ -1578,8 +1648,8 @@ function DateRangePickerCalendar({
|
|
|
1578
1648
|
)
|
|
1579
1649
|
] }),
|
|
1580
1650
|
/* @__PURE__ */ jsxs2(DialogActions, { children: [
|
|
1581
|
-
/* @__PURE__ */
|
|
1582
|
-
/* @__PURE__ */
|
|
1651
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleCancel, color: "inherit", children: "Cancel" }),
|
|
1652
|
+
/* @__PURE__ */ jsx11(Button2, { onClick: handleOk, color: "inherit", children: "OK" })
|
|
1583
1653
|
] })
|
|
1584
1654
|
] })
|
|
1585
1655
|
] });
|
|
@@ -1588,9 +1658,9 @@ DateRangePickerCalendar.displayName = "ToolkitDateRangePickerCalendar";
|
|
|
1588
1658
|
|
|
1589
1659
|
// src/foundation/Grid/Grid.tsx
|
|
1590
1660
|
import { Grid2 as MuiGrid2 } from "@mui/material";
|
|
1591
|
-
import { jsx as
|
|
1661
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1592
1662
|
function Grid({ container, spacing, ...props }) {
|
|
1593
|
-
return /* @__PURE__ */
|
|
1663
|
+
return /* @__PURE__ */ jsx12(
|
|
1594
1664
|
MuiGrid2,
|
|
1595
1665
|
{
|
|
1596
1666
|
container,
|
|
@@ -1601,110 +1671,617 @@ function Grid({ container, spacing, ...props }) {
|
|
|
1601
1671
|
}
|
|
1602
1672
|
Grid.displayName = "ToolkitGrid";
|
|
1603
1673
|
|
|
1674
|
+
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1675
|
+
import ChevronRightIcon from "@mui/icons-material/ChevronRight";
|
|
1676
|
+
|
|
1677
|
+
// src/components/InternalLinkItem/InternalLinkItem.styles.tsx
|
|
1678
|
+
import Box2 from "@mui/material/Box";
|
|
1679
|
+
import { styled as styled7 } from "@mui/material/styles";
|
|
1680
|
+
var StyledWrapper = styled7("div")(({ theme }) => ({
|
|
1681
|
+
"& > a, & > div": {
|
|
1682
|
+
textDecoration: "none",
|
|
1683
|
+
color: theme.tokens.colors.textPrimary,
|
|
1684
|
+
"&:hover": {
|
|
1685
|
+
color: theme.tokens.colors.textPrimary
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
}));
|
|
1689
|
+
var StyledListItemContainer = styled7(Box2)(({ theme }) => ({
|
|
1690
|
+
width: "100%",
|
|
1691
|
+
minHeight: "66px",
|
|
1692
|
+
borderTop: `1px solid ${theme.tokens.colors.divider}`,
|
|
1693
|
+
borderBottom: `1px solid ${theme.tokens.colors.divider}`,
|
|
1694
|
+
display: "flex",
|
|
1695
|
+
alignItems: "center",
|
|
1696
|
+
textDecoration: "none",
|
|
1697
|
+
color: "inherit",
|
|
1698
|
+
transition: [
|
|
1699
|
+
`border-color ${theme.tokens.transitions.durationBase} ease-in`,
|
|
1700
|
+
`box-shadow ${theme.tokens.transitions.durationBase} ease-in`,
|
|
1701
|
+
`background-color ${theme.tokens.transitions.durationBase} ease-in`,
|
|
1702
|
+
`color ${theme.tokens.transitions.durationBase} ease-in`,
|
|
1703
|
+
`fill ${theme.tokens.transitions.durationBase} ease-in`
|
|
1704
|
+
].join(", "),
|
|
1705
|
+
"& .iconColor svg": {
|
|
1706
|
+
color: theme.tokens.colors.primary,
|
|
1707
|
+
fill: theme.tokens.colors.primary,
|
|
1708
|
+
transition: `all ${theme.tokens.transitions.durationBase} ease`
|
|
1709
|
+
},
|
|
1710
|
+
"&:hover": {
|
|
1711
|
+
backgroundColor: theme.tokens.colors.backgroundSubtle,
|
|
1712
|
+
borderTop: `1px solid ${theme.tokens.colors.textPrimary}`,
|
|
1713
|
+
borderBottom: `1px solid ${theme.tokens.colors.textPrimary}`,
|
|
1714
|
+
cursor: "pointer",
|
|
1715
|
+
"& .itemLabel": {
|
|
1716
|
+
textDecoration: "underline"
|
|
1717
|
+
},
|
|
1718
|
+
"& .iconColor svg": {
|
|
1719
|
+
color: theme.tokens.colors.textPrimary,
|
|
1720
|
+
fill: theme.tokens.colors.textPrimary,
|
|
1721
|
+
transform: "translateX(4px)"
|
|
1722
|
+
}
|
|
1723
|
+
},
|
|
1724
|
+
"&:focus, &:active": {
|
|
1725
|
+
boxShadow: `inset 0 0 0 3px ${theme.tokens.colors.border}`,
|
|
1726
|
+
borderTop: "1px solid transparent",
|
|
1727
|
+
borderBottom: "1px solid transparent",
|
|
1728
|
+
outlineColor: "transparent",
|
|
1729
|
+
outlineStyle: "solid"
|
|
1730
|
+
}
|
|
1731
|
+
}));
|
|
1732
|
+
var StyledLeftIconWrapper = styled7("span")({
|
|
1733
|
+
display: "flex",
|
|
1734
|
+
paddingLeft: "4px"
|
|
1735
|
+
});
|
|
1736
|
+
var StyledRightIconWrapper = styled7("span")({
|
|
1737
|
+
display: "flex",
|
|
1738
|
+
paddingRight: "4px"
|
|
1739
|
+
});
|
|
1740
|
+
var StyledLabelContainer = styled7("div")({
|
|
1741
|
+
flex: 1,
|
|
1742
|
+
padding: "12px 8px"
|
|
1743
|
+
});
|
|
1744
|
+
var StyledLabel = styled7("p")(({ theme }) => ({
|
|
1745
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1746
|
+
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1747
|
+
lineHeight: "20px",
|
|
1748
|
+
fontWeight: theme.tokens.typography.fontWeightSemiBold,
|
|
1749
|
+
margin: 0,
|
|
1750
|
+
textDecoration: "none"
|
|
1751
|
+
}));
|
|
1752
|
+
var StyledCaption = styled7("p")(({ theme }) => ({
|
|
1753
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1754
|
+
color: theme.tokens.colors.textSecondary,
|
|
1755
|
+
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1756
|
+
lineHeight: "20px",
|
|
1757
|
+
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
1758
|
+
margin: 0,
|
|
1759
|
+
textDecoration: "none"
|
|
1760
|
+
}));
|
|
1761
|
+
|
|
1762
|
+
// src/components/InternalLinkItem/InternalLinkItem.tsx
|
|
1763
|
+
import { jsx as jsx13, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1764
|
+
function InternalLinkItem({
|
|
1765
|
+
link,
|
|
1766
|
+
icon,
|
|
1767
|
+
label,
|
|
1768
|
+
caption,
|
|
1769
|
+
component,
|
|
1770
|
+
...restProps
|
|
1771
|
+
}) {
|
|
1772
|
+
return /* @__PURE__ */ jsx13(StyledWrapper, { "data-component-id": "internalLinkItem", children: /* @__PURE__ */ jsxs3(
|
|
1773
|
+
StyledListItemContainer,
|
|
1774
|
+
{
|
|
1775
|
+
component: component ?? "a",
|
|
1776
|
+
href: link,
|
|
1777
|
+
...getCleanProps(restProps),
|
|
1778
|
+
children: [
|
|
1779
|
+
icon && /* @__PURE__ */ jsx13(StyledLeftIconWrapper, { "data-testid": "icon_container", children: icon }),
|
|
1780
|
+
/* @__PURE__ */ jsxs3(StyledLabelContainer, { children: [
|
|
1781
|
+
/* @__PURE__ */ jsx13(StyledLabel, { className: "itemLabel", children: label }),
|
|
1782
|
+
caption && /* @__PURE__ */ jsx13(StyledCaption, { children: caption })
|
|
1783
|
+
] }),
|
|
1784
|
+
/* @__PURE__ */ jsx13(StyledRightIconWrapper, { className: "iconColor", "data-testid": "icon_action_container", children: /* @__PURE__ */ jsx13(ChevronRightIcon, { fontSize: "small" }) })
|
|
1785
|
+
]
|
|
1786
|
+
}
|
|
1787
|
+
) });
|
|
1788
|
+
}
|
|
1789
|
+
InternalLinkItem.displayName = "ToolkitInternalLinkItem";
|
|
1790
|
+
|
|
1791
|
+
// src/components/Link/Link.tsx
|
|
1792
|
+
import React4 from "react";
|
|
1793
|
+
import OpenInNewIcon from "@mui/icons-material/OpenInNew";
|
|
1794
|
+
import SvgIcon4 from "@mui/material/SvgIcon";
|
|
1795
|
+
|
|
1796
|
+
// src/components/Link/Link.styles.tsx
|
|
1797
|
+
import Box3 from "@mui/material/Box";
|
|
1798
|
+
import { styled as styled8, alpha as alpha2 } from "@mui/material/styles";
|
|
1799
|
+
var StyledScreenReaderOnly = styled8("span")({
|
|
1800
|
+
position: "absolute",
|
|
1801
|
+
width: "1px",
|
|
1802
|
+
height: "1px",
|
|
1803
|
+
padding: 0,
|
|
1804
|
+
margin: "-1px",
|
|
1805
|
+
overflow: "hidden",
|
|
1806
|
+
clip: "rect(0, 0, 0, 0)",
|
|
1807
|
+
whiteSpace: "nowrap",
|
|
1808
|
+
border: 0
|
|
1809
|
+
});
|
|
1810
|
+
var StyledIconSpan = styled8("span", {
|
|
1811
|
+
shouldForwardProp: (prop) => prop !== "iconright"
|
|
1812
|
+
})(({ iconright }) => ({
|
|
1813
|
+
display: "inline-flex",
|
|
1814
|
+
alignItems: "center",
|
|
1815
|
+
paddingLeft: iconright ? "4px" : void 0,
|
|
1816
|
+
paddingRight: iconright ? void 0 : "4px"
|
|
1817
|
+
}));
|
|
1818
|
+
var StyledAnchor = styled8(Box3, {
|
|
1819
|
+
shouldForwardProp: (prop) => !["tint", "isOnDarkBg", "standalonelink", "iconright"].includes(prop)
|
|
1820
|
+
})(({ theme, tint = "primary", isOnDarkBg, standalonelink, iconright }) => {
|
|
1821
|
+
const resolvedTint = isOnDarkBg ? "white" : tint;
|
|
1822
|
+
const baseColors = {
|
|
1823
|
+
primary: theme.tokens.colors.primary,
|
|
1824
|
+
black: theme.tokens.colors.textPrimary,
|
|
1825
|
+
error: theme.tokens.colors.error,
|
|
1826
|
+
white: theme.palette.common.white
|
|
1827
|
+
};
|
|
1828
|
+
const hoverColors = {
|
|
1829
|
+
primary: theme.tokens.colors.textPrimary,
|
|
1830
|
+
black: theme.tokens.colors.primary,
|
|
1831
|
+
error: theme.tokens.colors.textPrimary,
|
|
1832
|
+
white: theme.tokens.colors.border
|
|
1833
|
+
};
|
|
1834
|
+
const baseColor = baseColors[resolvedTint];
|
|
1835
|
+
const hoverColor = hoverColors[resolvedTint];
|
|
1836
|
+
return {
|
|
1837
|
+
display: "inline-flex",
|
|
1838
|
+
alignItems: "center",
|
|
1839
|
+
flexDirection: iconright ? "row-reverse" : void 0,
|
|
1840
|
+
verticalAlign: "bottom",
|
|
1841
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1842
|
+
textDecoration: "underline",
|
|
1843
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
1844
|
+
cursor: "pointer",
|
|
1845
|
+
transition: `all ${theme.tokens.transitions.durationBase} ease`,
|
|
1846
|
+
color: baseColor,
|
|
1847
|
+
"& svg": {
|
|
1848
|
+
color: baseColor,
|
|
1849
|
+
transition: `all ${theme.tokens.transitions.durationBase} ease`
|
|
1850
|
+
},
|
|
1851
|
+
"&:hover": {
|
|
1852
|
+
textDecoration: "none",
|
|
1853
|
+
color: hoverColor,
|
|
1854
|
+
"& svg": { color: hoverColor }
|
|
1855
|
+
},
|
|
1856
|
+
"&:focus-visible": {
|
|
1857
|
+
textDecoration: "underline",
|
|
1858
|
+
color: baseColor,
|
|
1859
|
+
outline: "none",
|
|
1860
|
+
boxShadow: `0 0 0 3px ${alpha2(baseColor, 0.35)}`,
|
|
1861
|
+
"& svg": { color: baseColor }
|
|
1862
|
+
},
|
|
1863
|
+
"&:active": {
|
|
1864
|
+
color: hoverColor,
|
|
1865
|
+
boxShadow: `0 0 0 3px ${alpha2(isOnDarkBg ? baseColor : hoverColor, 0.65)}`,
|
|
1866
|
+
textDecoration: "none",
|
|
1867
|
+
"& svg": { color: hoverColor }
|
|
1868
|
+
},
|
|
1869
|
+
...standalonelink && {
|
|
1870
|
+
paddingTop: "0.75rem",
|
|
1871
|
+
paddingBottom: "0.75rem"
|
|
1872
|
+
}
|
|
1873
|
+
};
|
|
1874
|
+
});
|
|
1875
|
+
|
|
1876
|
+
// src/components/Link/Link.tsx
|
|
1877
|
+
import { jsx as jsx14, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1878
|
+
var Variant = {
|
|
1879
|
+
standard: "standard",
|
|
1880
|
+
external: "external",
|
|
1881
|
+
file: "file"
|
|
1882
|
+
};
|
|
1883
|
+
function DocumentIcon() {
|
|
1884
|
+
return /* @__PURE__ */ jsx14(SvgIcon4, { viewBox: "0 0 384 512", fontSize: "inherit", children: /* @__PURE__ */ jsx14(
|
|
1885
|
+
"path",
|
|
1886
|
+
{
|
|
1887
|
+
fillRule: "evenodd",
|
|
1888
|
+
d: "M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"
|
|
1889
|
+
}
|
|
1890
|
+
) });
|
|
1891
|
+
}
|
|
1892
|
+
function getIcon(variant, icon) {
|
|
1893
|
+
switch (variant) {
|
|
1894
|
+
case Variant.external:
|
|
1895
|
+
return OpenInNewIcon;
|
|
1896
|
+
case Variant.file:
|
|
1897
|
+
return DocumentIcon;
|
|
1898
|
+
default:
|
|
1899
|
+
return icon;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
var Link = React4.forwardRef(function Link2({
|
|
1903
|
+
children,
|
|
1904
|
+
variant = "standard",
|
|
1905
|
+
icon,
|
|
1906
|
+
color = "primary",
|
|
1907
|
+
target: targetProp,
|
|
1908
|
+
iconToRight,
|
|
1909
|
+
href,
|
|
1910
|
+
component,
|
|
1911
|
+
standalone,
|
|
1912
|
+
isOnDarkBg,
|
|
1913
|
+
...restProps
|
|
1914
|
+
}, ref) {
|
|
1915
|
+
const Icon = getIcon(variant, icon);
|
|
1916
|
+
const target = variant !== Variant.standard ? "_blank" : targetProp;
|
|
1917
|
+
const iconright = variant === Variant.external ? true : !!iconToRight;
|
|
1918
|
+
const urlProp = component ? { to: href } : { href };
|
|
1919
|
+
return /* @__PURE__ */ jsxs4(
|
|
1920
|
+
StyledAnchor,
|
|
1921
|
+
{
|
|
1922
|
+
component: component ?? "a",
|
|
1923
|
+
...getCleanProps(restProps),
|
|
1924
|
+
...urlProp,
|
|
1925
|
+
"data-component-id": "Link",
|
|
1926
|
+
tint: color,
|
|
1927
|
+
isOnDarkBg,
|
|
1928
|
+
target,
|
|
1929
|
+
iconright,
|
|
1930
|
+
standalonelink: !!standalone,
|
|
1931
|
+
ref,
|
|
1932
|
+
children: [
|
|
1933
|
+
Icon && /* @__PURE__ */ jsx14(StyledIconSpan, { iconright, children: /* @__PURE__ */ jsx14(Icon, { fontSize: "inherit" }) }),
|
|
1934
|
+
children,
|
|
1935
|
+
variant === Variant.external && /* @__PURE__ */ jsx14(StyledScreenReaderOnly, { children: ", opens in a new tab" })
|
|
1936
|
+
]
|
|
1937
|
+
}
|
|
1938
|
+
);
|
|
1939
|
+
});
|
|
1940
|
+
Link.displayName = "ToolkitLink";
|
|
1941
|
+
|
|
1942
|
+
// src/components/Toggle/Toggle.tsx
|
|
1943
|
+
import FormHelperText from "@mui/material/FormHelperText";
|
|
1944
|
+
|
|
1945
|
+
// src/components/Toggle/Toggle.styles.tsx
|
|
1946
|
+
import { styled as styled9 } from "@mui/material/styles";
|
|
1947
|
+
var StyledFieldset = styled9("fieldset")(({ theme }) => ({
|
|
1948
|
+
border: "none",
|
|
1949
|
+
margin: 0,
|
|
1950
|
+
padding: 0,
|
|
1951
|
+
minWidth: 0
|
|
1952
|
+
}));
|
|
1953
|
+
var StyledLegend = styled9("legend")(({ theme }) => ({
|
|
1954
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1955
|
+
fontSize: theme.tokens.typography.fontSizeLg,
|
|
1956
|
+
fontWeight: theme.tokens.typography.fontWeightRegular,
|
|
1957
|
+
color: theme.tokens.colors.textPrimary,
|
|
1958
|
+
marginBottom: theme.spacing(1),
|
|
1959
|
+
padding: 0
|
|
1960
|
+
}));
|
|
1961
|
+
var StyledToggleWrapper = styled9("div")(({ theme }) => ({
|
|
1962
|
+
display: "flex",
|
|
1963
|
+
flexDirection: "row",
|
|
1964
|
+
width: theme.spacing(15),
|
|
1965
|
+
height: theme.spacing(6),
|
|
1966
|
+
backgroundColor: theme.palette.common.white,
|
|
1967
|
+
border: `1px solid ${theme.tokens.colors.border}`,
|
|
1968
|
+
borderRadius: theme.tokens.borderRadius.md
|
|
1969
|
+
}));
|
|
1970
|
+
var StyledSwitch = styled9("label", {
|
|
1971
|
+
shouldForwardProp: (prop) => prop !== "selected" && prop !== "controlType"
|
|
1972
|
+
})(({ theme, selected, controlType }) => ({
|
|
1973
|
+
position: "relative",
|
|
1974
|
+
display: "inline-flex",
|
|
1975
|
+
alignItems: "center",
|
|
1976
|
+
justifyContent: "center",
|
|
1977
|
+
width: "54px",
|
|
1978
|
+
fontSize: theme.tokens.typography.fontSizeMd,
|
|
1979
|
+
fontFamily: theme.tokens.typography.fontFamilyBase,
|
|
1980
|
+
fontWeight: theme.tokens.typography.fontWeightBold,
|
|
1981
|
+
color: theme.tokens.colors.textPrimary,
|
|
1982
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
1983
|
+
userSelect: "none",
|
|
1984
|
+
cursor: "pointer",
|
|
1985
|
+
transition: `all ${theme.tokens.transitions.durationBase} ease`,
|
|
1986
|
+
"&::before": {
|
|
1987
|
+
position: "absolute",
|
|
1988
|
+
top: 0,
|
|
1989
|
+
left: 0,
|
|
1990
|
+
display: "block",
|
|
1991
|
+
content: '""',
|
|
1992
|
+
border: "1px solid transparent",
|
|
1993
|
+
width: "100%",
|
|
1994
|
+
height: "100%",
|
|
1995
|
+
borderRadius: theme.tokens.borderRadius.md,
|
|
1996
|
+
visibility: "hidden"
|
|
1997
|
+
},
|
|
1998
|
+
"&:active": {
|
|
1999
|
+
color: theme.palette.common.white
|
|
2000
|
+
},
|
|
2001
|
+
"& input": {
|
|
2002
|
+
position: "absolute",
|
|
2003
|
+
width: "1px",
|
|
2004
|
+
height: "1px",
|
|
2005
|
+
padding: 0,
|
|
2006
|
+
margin: "-1px",
|
|
2007
|
+
overflow: "hidden",
|
|
2008
|
+
clip: "rect(0, 0, 0, 0)",
|
|
2009
|
+
whiteSpace: "nowrap",
|
|
2010
|
+
border: 0
|
|
2011
|
+
},
|
|
2012
|
+
...!selected && {
|
|
2013
|
+
"&:hover": {
|
|
2014
|
+
textDecoration: "underline",
|
|
2015
|
+
backgroundColor: theme.tokens.colors.border,
|
|
2016
|
+
"&:active": {
|
|
2017
|
+
textDecoration: "none"
|
|
2018
|
+
},
|
|
2019
|
+
"&::before": {
|
|
2020
|
+
visibility: "visible"
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
},
|
|
2024
|
+
...selected && {
|
|
2025
|
+
color: theme.palette.common.white,
|
|
2026
|
+
"&::before": {
|
|
2027
|
+
visibility: "visible",
|
|
2028
|
+
borderWidth: "3px"
|
|
2029
|
+
}
|
|
2030
|
+
},
|
|
2031
|
+
...controlType === "off" && {
|
|
2032
|
+
margin: theme.spacing(0.5),
|
|
2033
|
+
"&:focus-within": {
|
|
2034
|
+
boxShadow: `inset 0 0 0 3px ${theme.tokens.colors.border}`
|
|
2035
|
+
},
|
|
2036
|
+
"&:active": {
|
|
2037
|
+
backgroundColor: theme.tokens.colors.backgroundSubtle,
|
|
2038
|
+
boxShadow: `inset 3px 3px 0 0 ${theme.tokens.colors.border}, inset -3px -3px 0 0 ${theme.tokens.colors.border}`
|
|
2039
|
+
},
|
|
2040
|
+
...selected && {
|
|
2041
|
+
backgroundColor: theme.tokens.colors.textPrimary
|
|
2042
|
+
}
|
|
2043
|
+
},
|
|
2044
|
+
...controlType === "on" && {
|
|
2045
|
+
margin: `${theme.spacing(0.5)} ${theme.spacing(0.5)} ${theme.spacing(0.5)} 0`,
|
|
2046
|
+
"&:focus-within": {
|
|
2047
|
+
boxShadow: `inset 0 0 0 3px ${theme.tokens.colors.primary}`
|
|
2048
|
+
},
|
|
2049
|
+
"&:active": {
|
|
2050
|
+
backgroundColor: theme.tokens.colors.primary,
|
|
2051
|
+
boxShadow: `inset 3px 3px 0 0 ${theme.tokens.colors.primary}, inset -3px -3px 0 0 ${theme.tokens.colors.primary}`
|
|
2052
|
+
},
|
|
2053
|
+
...selected && {
|
|
2054
|
+
backgroundColor: theme.tokens.colors.primary
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
2057
|
+
}));
|
|
2058
|
+
|
|
2059
|
+
// src/components/Toggle/Toggle.tsx
|
|
2060
|
+
import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
2061
|
+
function Toggle({
|
|
2062
|
+
name,
|
|
2063
|
+
checked = false,
|
|
2064
|
+
label,
|
|
2065
|
+
description,
|
|
2066
|
+
error,
|
|
2067
|
+
onChange,
|
|
2068
|
+
onBlur,
|
|
2069
|
+
...restProps
|
|
2070
|
+
}) {
|
|
2071
|
+
return /* @__PURE__ */ jsxs5(StyledFieldset, { "data-component-id": "toggle", ...getCleanProps(restProps), children: [
|
|
2072
|
+
label && /* @__PURE__ */ jsx15(StyledLegend, { children: label }),
|
|
2073
|
+
description && /* @__PURE__ */ jsx15(FormHelperText, { children: description }),
|
|
2074
|
+
/* @__PURE__ */ jsxs5(StyledToggleWrapper, { children: [
|
|
2075
|
+
/* @__PURE__ */ jsxs5(
|
|
2076
|
+
StyledSwitch,
|
|
2077
|
+
{
|
|
2078
|
+
htmlFor: `${name}off`,
|
|
2079
|
+
selected: !checked,
|
|
2080
|
+
controlType: "off",
|
|
2081
|
+
children: [
|
|
2082
|
+
/* @__PURE__ */ jsx15(
|
|
2083
|
+
"input",
|
|
2084
|
+
{
|
|
2085
|
+
checked: !checked,
|
|
2086
|
+
id: `${name}off`,
|
|
2087
|
+
name,
|
|
2088
|
+
onChange: () => onChange?.(false),
|
|
2089
|
+
onBlur,
|
|
2090
|
+
type: "radio",
|
|
2091
|
+
readOnly: !onChange
|
|
2092
|
+
}
|
|
2093
|
+
),
|
|
2094
|
+
"Off"
|
|
2095
|
+
]
|
|
2096
|
+
}
|
|
2097
|
+
),
|
|
2098
|
+
/* @__PURE__ */ jsxs5(
|
|
2099
|
+
StyledSwitch,
|
|
2100
|
+
{
|
|
2101
|
+
htmlFor: `${name}on`,
|
|
2102
|
+
selected: checked,
|
|
2103
|
+
controlType: "on",
|
|
2104
|
+
children: [
|
|
2105
|
+
/* @__PURE__ */ jsx15(
|
|
2106
|
+
"input",
|
|
2107
|
+
{
|
|
2108
|
+
checked,
|
|
2109
|
+
id: `${name}on`,
|
|
2110
|
+
name,
|
|
2111
|
+
onChange: () => onChange?.(true),
|
|
2112
|
+
onBlur,
|
|
2113
|
+
type: "radio",
|
|
2114
|
+
readOnly: !onChange
|
|
2115
|
+
}
|
|
2116
|
+
),
|
|
2117
|
+
"On"
|
|
2118
|
+
]
|
|
2119
|
+
}
|
|
2120
|
+
)
|
|
2121
|
+
] }),
|
|
2122
|
+
error && /* @__PURE__ */ jsx15(FormHelperText, { error: true, children: error })
|
|
2123
|
+
] });
|
|
2124
|
+
}
|
|
2125
|
+
Toggle.displayName = "ToolkitToggle";
|
|
2126
|
+
|
|
2127
|
+
// src/components/Table/Table.tsx
|
|
2128
|
+
import {
|
|
2129
|
+
Table as MuiTable,
|
|
2130
|
+
TableHead as MuiTableHead,
|
|
2131
|
+
TableBody as MuiTableBody,
|
|
2132
|
+
TableRow as MuiTableRow,
|
|
2133
|
+
TableCell as MuiTableCell,
|
|
2134
|
+
TableContainer as MuiTableContainer,
|
|
2135
|
+
TablePagination as MuiTablePagination,
|
|
2136
|
+
TableSortLabel as MuiTableSortLabel
|
|
2137
|
+
} from "@mui/material";
|
|
2138
|
+
import { styled as styled10 } from "@mui/material/styles";
|
|
2139
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
2140
|
+
var StyledTableContainer = styled10(MuiTableContainer)(() => ({
|
|
2141
|
+
overflowX: "auto"
|
|
2142
|
+
}));
|
|
2143
|
+
var StyledHeadCell = styled10(MuiTableCell)(({ theme }) => ({
|
|
2144
|
+
fontWeight: theme.tokens.components.table.headerFontWeight,
|
|
2145
|
+
backgroundColor: theme.tokens.components.table.headerBackground,
|
|
2146
|
+
borderBottomWidth: theme.tokens.components.table.borderWidth,
|
|
2147
|
+
borderBottomColor: theme.tokens.components.table.borderColor
|
|
2148
|
+
}));
|
|
2149
|
+
function Table(props) {
|
|
2150
|
+
return /* @__PURE__ */ jsx16(MuiTable, { ...props });
|
|
2151
|
+
}
|
|
2152
|
+
function TableHead(props) {
|
|
2153
|
+
return /* @__PURE__ */ jsx16(MuiTableHead, { ...props });
|
|
2154
|
+
}
|
|
2155
|
+
function TableBody(props) {
|
|
2156
|
+
return /* @__PURE__ */ jsx16(MuiTableBody, { ...props });
|
|
2157
|
+
}
|
|
2158
|
+
function TableRow(props) {
|
|
2159
|
+
return /* @__PURE__ */ jsx16(MuiTableRow, { ...props });
|
|
2160
|
+
}
|
|
2161
|
+
function TableCell(props) {
|
|
2162
|
+
return /* @__PURE__ */ jsx16(MuiTableCell, { ...props });
|
|
2163
|
+
}
|
|
2164
|
+
function TableHeadCell(props) {
|
|
2165
|
+
return /* @__PURE__ */ jsx16(StyledHeadCell, { component: "th", scope: "col", ...props });
|
|
2166
|
+
}
|
|
2167
|
+
function TableContainer(props) {
|
|
2168
|
+
return /* @__PURE__ */ jsx16(StyledTableContainer, { ...props });
|
|
2169
|
+
}
|
|
2170
|
+
var TablePagination = MuiTablePagination;
|
|
2171
|
+
var TableSortLabel = MuiTableSortLabel;
|
|
2172
|
+
Table.displayName = "ToolkitTable";
|
|
2173
|
+
TableHead.displayName = "ToolkitTableHead";
|
|
2174
|
+
TableBody.displayName = "ToolkitTableBody";
|
|
2175
|
+
TableRow.displayName = "ToolkitTableRow";
|
|
2176
|
+
TableCell.displayName = "ToolkitTableCell";
|
|
2177
|
+
TableHeadCell.displayName = "ToolkitTableHeadCell";
|
|
2178
|
+
TableContainer.displayName = "ToolkitTableContainer";
|
|
2179
|
+
|
|
1604
2180
|
// src/foundation/H1/H1.tsx
|
|
1605
2181
|
import { Typography } from "@mui/material";
|
|
1606
|
-
import { jsx as
|
|
2182
|
+
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1607
2183
|
function H1({ color = "text.primary", children, ...props }) {
|
|
1608
|
-
return /* @__PURE__ */
|
|
2184
|
+
return /* @__PURE__ */ jsx17(Typography, { variant: "h1", color, ...props, children });
|
|
1609
2185
|
}
|
|
1610
2186
|
H1.displayName = "ToolkitH1";
|
|
1611
2187
|
|
|
1612
2188
|
// src/foundation/H2/H2.tsx
|
|
1613
2189
|
import { Typography as Typography2 } from "@mui/material";
|
|
1614
|
-
import { jsx as
|
|
2190
|
+
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1615
2191
|
function H2({ color = "text.primary", children, ...props }) {
|
|
1616
|
-
return /* @__PURE__ */
|
|
2192
|
+
return /* @__PURE__ */ jsx18(Typography2, { variant: "h2", color, ...props, children });
|
|
1617
2193
|
}
|
|
1618
2194
|
H2.displayName = "ToolkitH2";
|
|
1619
2195
|
|
|
1620
2196
|
// src/foundation/H3/H3.tsx
|
|
1621
2197
|
import { Typography as Typography3 } from "@mui/material";
|
|
1622
|
-
import { jsx as
|
|
2198
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1623
2199
|
function H3({ color = "text.primary", children, ...props }) {
|
|
1624
|
-
return /* @__PURE__ */
|
|
2200
|
+
return /* @__PURE__ */ jsx19(Typography3, { variant: "h3", color, ...props, children });
|
|
1625
2201
|
}
|
|
1626
2202
|
H3.displayName = "ToolkitH3";
|
|
1627
2203
|
|
|
1628
2204
|
// src/foundation/H4/H4.tsx
|
|
1629
2205
|
import { Typography as Typography4 } from "@mui/material";
|
|
1630
|
-
import { jsx as
|
|
2206
|
+
import { jsx as jsx20 } from "react/jsx-runtime";
|
|
1631
2207
|
function H4({ color = "text.primary", children, ...props }) {
|
|
1632
|
-
return /* @__PURE__ */
|
|
2208
|
+
return /* @__PURE__ */ jsx20(Typography4, { variant: "h4", color, ...props, children });
|
|
1633
2209
|
}
|
|
1634
2210
|
H4.displayName = "ToolkitH4";
|
|
1635
2211
|
|
|
1636
2212
|
// src/foundation/H5/H5.tsx
|
|
1637
2213
|
import { Typography as Typography5 } from "@mui/material";
|
|
1638
|
-
import { jsx as
|
|
2214
|
+
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
1639
2215
|
function H5({ color = "text.primary", children, ...props }) {
|
|
1640
|
-
return /* @__PURE__ */
|
|
2216
|
+
return /* @__PURE__ */ jsx21(Typography5, { variant: "h5", color, ...props, children });
|
|
1641
2217
|
}
|
|
1642
2218
|
H5.displayName = "ToolkitH5";
|
|
1643
2219
|
|
|
1644
2220
|
// src/foundation/H6/H6.tsx
|
|
1645
2221
|
import { Typography as Typography6 } from "@mui/material";
|
|
1646
|
-
import { jsx as
|
|
2222
|
+
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
1647
2223
|
function H6({ color = "text.primary", children, ...props }) {
|
|
1648
|
-
return /* @__PURE__ */
|
|
2224
|
+
return /* @__PURE__ */ jsx22(Typography6, { variant: "h6", color, ...props, children });
|
|
1649
2225
|
}
|
|
1650
2226
|
H6.displayName = "ToolkitH6";
|
|
1651
2227
|
|
|
1652
2228
|
// src/foundation/Subtitle1/Subtitle1.tsx
|
|
1653
2229
|
import { Typography as Typography7 } from "@mui/material";
|
|
1654
|
-
import { jsx as
|
|
2230
|
+
import { jsx as jsx23 } from "react/jsx-runtime";
|
|
1655
2231
|
function Subtitle1({ color = "text.primary", children, ...props }) {
|
|
1656
|
-
return /* @__PURE__ */
|
|
2232
|
+
return /* @__PURE__ */ jsx23(Typography7, { variant: "subtitle1", color, ...props, children });
|
|
1657
2233
|
}
|
|
1658
2234
|
Subtitle1.displayName = "ToolkitSubtitle1";
|
|
1659
2235
|
|
|
1660
2236
|
// src/foundation/Subtitle2/Subtitle2.tsx
|
|
1661
2237
|
import { Typography as Typography8 } from "@mui/material";
|
|
1662
|
-
import { jsx as
|
|
2238
|
+
import { jsx as jsx24 } from "react/jsx-runtime";
|
|
1663
2239
|
function Subtitle2({ color = "text.primary", children, ...props }) {
|
|
1664
|
-
return /* @__PURE__ */
|
|
2240
|
+
return /* @__PURE__ */ jsx24(Typography8, { variant: "subtitle2", color, ...props, children });
|
|
1665
2241
|
}
|
|
1666
2242
|
Subtitle2.displayName = "ToolkitSubtitle2";
|
|
1667
2243
|
|
|
1668
2244
|
// src/foundation/Body1/Body1.tsx
|
|
1669
2245
|
import { Typography as Typography9 } from "@mui/material";
|
|
1670
|
-
import { jsx as
|
|
2246
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
1671
2247
|
function Body1({ color = "text.primary", children, ...props }) {
|
|
1672
|
-
return /* @__PURE__ */
|
|
2248
|
+
return /* @__PURE__ */ jsx25(Typography9, { variant: "body1", color, ...props, children });
|
|
1673
2249
|
}
|
|
1674
2250
|
Body1.displayName = "ToolkitBody1";
|
|
1675
2251
|
|
|
1676
2252
|
// src/foundation/Body2/Body2.tsx
|
|
1677
2253
|
import { Typography as Typography10 } from "@mui/material";
|
|
1678
|
-
import { jsx as
|
|
2254
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
1679
2255
|
function Body2({ color = "text.primary", children, ...props }) {
|
|
1680
|
-
return /* @__PURE__ */
|
|
2256
|
+
return /* @__PURE__ */ jsx26(Typography10, { variant: "body2", color, ...props, children });
|
|
1681
2257
|
}
|
|
1682
2258
|
Body2.displayName = "ToolkitBody2";
|
|
1683
2259
|
|
|
1684
2260
|
// src/foundation/Caption/Caption.tsx
|
|
1685
2261
|
import { Typography as Typography11 } from "@mui/material";
|
|
1686
|
-
import { jsx as
|
|
2262
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
1687
2263
|
function Caption({ color = "text.primary", children, ...props }) {
|
|
1688
|
-
return /* @__PURE__ */
|
|
2264
|
+
return /* @__PURE__ */ jsx27(Typography11, { variant: "caption", color, ...props, children });
|
|
1689
2265
|
}
|
|
1690
2266
|
Caption.displayName = "ToolkitCaption";
|
|
1691
2267
|
|
|
1692
2268
|
// src/foundation/Overline/Overline.tsx
|
|
1693
2269
|
import { Typography as Typography12 } from "@mui/material";
|
|
1694
|
-
import { jsx as
|
|
2270
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
1695
2271
|
function Overline({ color = "text.primary", children, ...props }) {
|
|
1696
|
-
return /* @__PURE__ */
|
|
2272
|
+
return /* @__PURE__ */ jsx28(Typography12, { variant: "overline", color, ...props, children });
|
|
1697
2273
|
}
|
|
1698
2274
|
Overline.displayName = "ToolkitOverline";
|
|
1699
2275
|
|
|
1700
2276
|
// src/foundation/TypographyButton/TypographyButton.tsx
|
|
1701
2277
|
import { Typography as Typography13 } from "@mui/material";
|
|
1702
|
-
import { jsx as
|
|
2278
|
+
import { jsx as jsx29 } from "react/jsx-runtime";
|
|
1703
2279
|
function TypographyButton({ color = "text.primary", children, ...props }) {
|
|
1704
|
-
return /* @__PURE__ */
|
|
2280
|
+
return /* @__PURE__ */ jsx29(Typography13, { variant: "button", color, ...props, children });
|
|
1705
2281
|
}
|
|
1706
2282
|
TypographyButton.displayName = "ToolkitTypographyButton";
|
|
1707
2283
|
export {
|
|
2284
|
+
ABNInput,
|
|
1708
2285
|
Accordion,
|
|
1709
2286
|
AccordionDetails,
|
|
1710
2287
|
AccordionSummary,
|
|
@@ -1739,6 +2316,8 @@ export {
|
|
|
1739
2316
|
H4,
|
|
1740
2317
|
H5,
|
|
1741
2318
|
H6,
|
|
2319
|
+
InternalLinkItem,
|
|
2320
|
+
Link,
|
|
1742
2321
|
MobileDatePicker,
|
|
1743
2322
|
MobileDateTimePicker,
|
|
1744
2323
|
MobileTimePicker,
|
|
@@ -1749,13 +2328,24 @@ export {
|
|
|
1749
2328
|
StaticTimePicker,
|
|
1750
2329
|
Subtitle1,
|
|
1751
2330
|
Subtitle2,
|
|
2331
|
+
Table,
|
|
2332
|
+
TableBody,
|
|
2333
|
+
TableCell,
|
|
2334
|
+
TableContainer,
|
|
2335
|
+
TableHead,
|
|
2336
|
+
TableHeadCell,
|
|
2337
|
+
TablePagination,
|
|
2338
|
+
TableRow,
|
|
2339
|
+
TableSortLabel,
|
|
1752
2340
|
TextField,
|
|
1753
2341
|
TimeField,
|
|
1754
2342
|
TimePicker,
|
|
2343
|
+
Toggle,
|
|
1755
2344
|
ToggleButton,
|
|
1756
2345
|
ToggleButtonGroup,
|
|
1757
2346
|
ToolkitThemeProvider,
|
|
1758
2347
|
TypographyButton,
|
|
2348
|
+
Variant,
|
|
1759
2349
|
createMuiTheme,
|
|
1760
2350
|
getThemeTokens,
|
|
1761
2351
|
resolveThemeName,
|