@telicent-oss/ds 0.27.8 → 0.28.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/ds.js +110 -9
- package/dist/ds.umd.cjs +110 -9
- package/dist/logout-syncer/sw.js +1 -1
- package/dist/src/v1/components/inputs/Checkbox/Checkbox.d.ts +9 -0
- package/dist/src/v1/components/inputs/Checkbox/Checkbox.stories.d.ts +12 -0
- package/dist/src/v1/components/inputs/Select/Select.d.ts +13 -0
- package/dist/src/v1/components/inputs/Select/Select.stories.d.ts +17 -0
- package/dist/src/v1/components/inputs/index.d.ts +4 -0
- package/dist/src/v1/theme/style-overrides/components.d.ts +45 -12
- package/package.json +1 -1
package/dist/ds.js
CHANGED
|
@@ -25786,7 +25786,7 @@ const CheckboxRoot = styled(SwitchBase, {
|
|
|
25786
25786
|
const defaultCheckedIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(CheckBoxIcon, {});
|
|
25787
25787
|
const defaultIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon, {});
|
|
25788
25788
|
const defaultIndeterminateIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon, {});
|
|
25789
|
-
const Checkbox = /* @__PURE__ */ React$2.forwardRef(function
|
|
25789
|
+
const Checkbox$1 = /* @__PURE__ */ React$2.forwardRef(function Checkbox(inProps, ref) {
|
|
25790
25790
|
var _icon$props$fontSize, _indeterminateIcon$pr;
|
|
25791
25791
|
const props = useDefaultProps({
|
|
25792
25792
|
props: inProps,
|
|
@@ -25828,7 +25828,7 @@ const Checkbox = /* @__PURE__ */ React$2.forwardRef(function Checkbox2(inProps,
|
|
|
25828
25828
|
classes
|
|
25829
25829
|
}));
|
|
25830
25830
|
});
|
|
25831
|
-
process.env.NODE_ENV !== "production" ? Checkbox.propTypes = {
|
|
25831
|
+
process.env.NODE_ENV !== "production" ? Checkbox$1.propTypes = {
|
|
25832
25832
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
25833
25833
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
25834
25834
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -34866,7 +34866,7 @@ const styledRootConfig = {
|
|
|
34866
34866
|
const StyledInput = styled(Input, styledRootConfig)("");
|
|
34867
34867
|
const StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)("");
|
|
34868
34868
|
const StyledFilledInput = styled(FilledInput, styledRootConfig)("");
|
|
34869
|
-
const Select = /* @__PURE__ */ React$2.forwardRef(function
|
|
34869
|
+
const Select$1 = /* @__PURE__ */ React$2.forwardRef(function Select(inProps, ref) {
|
|
34870
34870
|
const props = useDefaultProps({
|
|
34871
34871
|
name: "MuiSelect",
|
|
34872
34872
|
props: inProps
|
|
@@ -34962,7 +34962,7 @@ const Select = /* @__PURE__ */ React$2.forwardRef(function Select2(inProps, ref)
|
|
|
34962
34962
|
}, other))
|
|
34963
34963
|
});
|
|
34964
34964
|
});
|
|
34965
|
-
process.env.NODE_ENV !== "production" ? Select.propTypes = {
|
|
34965
|
+
process.env.NODE_ENV !== "production" ? Select$1.propTypes = {
|
|
34966
34966
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
34967
34967
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
34968
34968
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -35109,7 +35109,7 @@ process.env.NODE_ENV !== "production" ? Select.propTypes = {
|
|
|
35109
35109
|
*/
|
|
35110
35110
|
variant: PropTypes.oneOf(["filled", "outlined", "standard"])
|
|
35111
35111
|
} : void 0;
|
|
35112
|
-
Select.muiName = "Select";
|
|
35112
|
+
Select$1.muiName = "Select";
|
|
35113
35113
|
function getSkeletonUtilityClass(slot) {
|
|
35114
35114
|
return generateUtilityClass("MuiSkeleton", slot);
|
|
35115
35115
|
}
|
|
@@ -38400,7 +38400,7 @@ const TextField$1 = /* @__PURE__ */ React$2.forwardRef(function TextField(inProp
|
|
|
38400
38400
|
id: inputLabelId
|
|
38401
38401
|
}, InputLabelProps, {
|
|
38402
38402
|
children: label
|
|
38403
|
-
})), select2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$3({
|
|
38403
|
+
})), select2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Select$1, _extends$3({
|
|
38404
38404
|
"aria-describedby": helperTextId,
|
|
38405
38405
|
id: id2,
|
|
38406
38406
|
labelId: inputLabelId,
|
|
@@ -46384,8 +46384,8 @@ const TeliCheckbox = ({
|
|
|
46384
46384
|
label,
|
|
46385
46385
|
...checkboxProps
|
|
46386
46386
|
}) => {
|
|
46387
|
-
if (!label) return /* @__PURE__ */ jsx$1(Checkbox, { ...checkboxProps });
|
|
46388
|
-
return /* @__PURE__ */ jsx$1(FormControlLabel, { control: /* @__PURE__ */ jsx$1(Checkbox, { ...checkboxProps }), label, className: "m-0" });
|
|
46387
|
+
if (!label) return /* @__PURE__ */ jsx$1(Checkbox$1, { ...checkboxProps });
|
|
46388
|
+
return /* @__PURE__ */ jsx$1(FormControlLabel, { control: /* @__PURE__ */ jsx$1(Checkbox$1, { ...checkboxProps }), label, className: "m-0" });
|
|
46389
46389
|
};
|
|
46390
46390
|
const TeliSelect = ({
|
|
46391
46391
|
id: id2,
|
|
@@ -46439,7 +46439,7 @@ const TeliSelect = ({
|
|
|
46439
46439
|
width: width2
|
|
46440
46440
|
}, size: "small", disabled: disabled2, error, required, fullWidth, focused, hiddenLabel, children: [
|
|
46441
46441
|
!hiddenLabel && /* @__PURE__ */ jsx$1(InputLabel, { id: id2, children: label }),
|
|
46442
|
-
/* @__PURE__ */ jsx$1(Select, { ...getLabelProps(), ...getMultiSelectProps(), id: selectId, value: value2, onChange: onChange2, size: "small", defaultOpen, defaultValue, open, onOpen, onClose, inputProps: {
|
|
46442
|
+
/* @__PURE__ */ jsx$1(Select$1, { ...getLabelProps(), ...getMultiSelectProps(), id: selectId, value: value2, onChange: onChange2, size: "small", defaultOpen, defaultValue, open, onOpen, onClose, inputProps: {
|
|
46443
46443
|
"aria-label": hiddenLabel ? label : void 0,
|
|
46444
46444
|
readOnly
|
|
46445
46445
|
}, MenuProps: {
|
|
@@ -57924,6 +57924,70 @@ const Button2 = forwardRef((props, ref) => {
|
|
|
57924
57924
|
return /* @__PURE__ */ jsx$1(Button$1, { variant: "text", color: color2, ...buttonProps, ref, children: buttonProps.children });
|
|
57925
57925
|
});
|
|
57926
57926
|
const TextField2 = (props) => /* @__PURE__ */ jsx$1(TextField$1, { ...props });
|
|
57927
|
+
const Select2 = ({
|
|
57928
|
+
label,
|
|
57929
|
+
value: value2,
|
|
57930
|
+
id: id2,
|
|
57931
|
+
options,
|
|
57932
|
+
width: width2,
|
|
57933
|
+
onChange: onChange2,
|
|
57934
|
+
disabled: disabled2 = false,
|
|
57935
|
+
sx,
|
|
57936
|
+
...rest
|
|
57937
|
+
}) => {
|
|
57938
|
+
const theme = useExtendedTheme();
|
|
57939
|
+
return /* @__PURE__ */ jsxs(FormControl, { sx: {
|
|
57940
|
+
minWidth: 88,
|
|
57941
|
+
width: width2
|
|
57942
|
+
}, size: "small", children: [
|
|
57943
|
+
label && /* @__PURE__ */ jsx$1(InputLabel, { id: id2, sx: {
|
|
57944
|
+
color: "#fff",
|
|
57945
|
+
"&.Mui-focused": {
|
|
57946
|
+
color: theme.palette.primary.main
|
|
57947
|
+
}
|
|
57948
|
+
}, children: label }),
|
|
57949
|
+
/* @__PURE__ */ jsx$1(Select$1, { ...rest, labelId: id2, label, id: id2, value: value2, disabled: disabled2, onChange: onChange2, size: "small", MenuProps: {
|
|
57950
|
+
PaperProps: {
|
|
57951
|
+
sx: {
|
|
57952
|
+
backgroundColor: "#2A2A2A",
|
|
57953
|
+
color: "white"
|
|
57954
|
+
}
|
|
57955
|
+
}
|
|
57956
|
+
}, sx: {
|
|
57957
|
+
color: "#ffffff",
|
|
57958
|
+
backgroundColor: theme.palette.mode === "dark" ? "#2A2A2A" : "#ffffff",
|
|
57959
|
+
".MuiSelect-icon": {
|
|
57960
|
+
color: "#6D6D6D"
|
|
57961
|
+
},
|
|
57962
|
+
".MuiOutlinedInput-notchedOutline": {
|
|
57963
|
+
borderColor: "#6D6D6D"
|
|
57964
|
+
},
|
|
57965
|
+
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
57966
|
+
borderColor: theme.palette.primary.main
|
|
57967
|
+
},
|
|
57968
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
57969
|
+
borderColor: theme.palette.primary.main,
|
|
57970
|
+
borderWidth: "2px !important"
|
|
57971
|
+
},
|
|
57972
|
+
"&.Mui-selected": {
|
|
57973
|
+
backgroundColor: "#2A2A2A",
|
|
57974
|
+
color: "#fff"
|
|
57975
|
+
},
|
|
57976
|
+
...sx
|
|
57977
|
+
}, children: options.map((option) => /* @__PURE__ */ jsx$1(MenuItem, { value: option.value, disableRipple: true, children: option.label }, option == null ? void 0 : option.value)) })
|
|
57978
|
+
] });
|
|
57979
|
+
};
|
|
57980
|
+
const Checkbox2 = ({
|
|
57981
|
+
checked,
|
|
57982
|
+
id: id2,
|
|
57983
|
+
name,
|
|
57984
|
+
label,
|
|
57985
|
+
required = false,
|
|
57986
|
+
...rest
|
|
57987
|
+
}) => {
|
|
57988
|
+
useExtendedTheme();
|
|
57989
|
+
return label ? /* @__PURE__ */ jsx$1(FormControlLabel, { required, control: /* @__PURE__ */ jsx$1(Checkbox$1, { checked, id: id2, name, ...rest, color: "primary" }), label }) : /* @__PURE__ */ jsx$1(Checkbox$1, { checked, id: id2, name, ...rest, color: "primary" });
|
|
57990
|
+
};
|
|
57927
57991
|
const StyledPopper = styled$1("div")({
|
|
57928
57992
|
position: "relative",
|
|
57929
57993
|
width: 360
|
|
@@ -61091,6 +61155,41 @@ const generateComponentOverrides = (uiTheme) => ({
|
|
|
61091
61155
|
}
|
|
61092
61156
|
}
|
|
61093
61157
|
},
|
|
61158
|
+
MuiMenuItem: {
|
|
61159
|
+
styleOverrides: {
|
|
61160
|
+
root: ({
|
|
61161
|
+
theme
|
|
61162
|
+
}) => ({
|
|
61163
|
+
display: "flex",
|
|
61164
|
+
alignItems: "center",
|
|
61165
|
+
margin: theme.spacing(0, 1),
|
|
61166
|
+
borderRadius: theme.shape.borderRadius,
|
|
61167
|
+
border: "1px solid transparent",
|
|
61168
|
+
"&.Mui-selected": {
|
|
61169
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
61170
|
+
color: theme.palette.primary.main
|
|
61171
|
+
},
|
|
61172
|
+
"&.Mui-selected.Mui-selected": {
|
|
61173
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)"
|
|
61174
|
+
},
|
|
61175
|
+
"&.Mui-selected.Mui-selected:hover": {
|
|
61176
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)"
|
|
61177
|
+
},
|
|
61178
|
+
"&.Mui-selected:hover": {
|
|
61179
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
61180
|
+
color: theme.palette.primary.main,
|
|
61181
|
+
backgroundImage: "none"
|
|
61182
|
+
},
|
|
61183
|
+
"& .MuiPaper-root": {
|
|
61184
|
+
backgroundColor: theme.palette.mode === "dark" ? "#2A2A2A" : "#ffffff"
|
|
61185
|
+
},
|
|
61186
|
+
"&:hover": {
|
|
61187
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
61188
|
+
border: `1px solid ${theme.palette.primary.main}`
|
|
61189
|
+
}
|
|
61190
|
+
})
|
|
61191
|
+
}
|
|
61192
|
+
},
|
|
61094
61193
|
MuiAppBar: {
|
|
61095
61194
|
styleOverrides: {
|
|
61096
61195
|
root: {
|
|
@@ -84345,6 +84444,7 @@ export {
|
|
|
84345
84444
|
CardActions2 as CardActions,
|
|
84346
84445
|
CardContent2 as CardContent,
|
|
84347
84446
|
CardHeader2 as CardHeader,
|
|
84447
|
+
Checkbox2 as Checkbox,
|
|
84348
84448
|
Chip2 as Chip,
|
|
84349
84449
|
ClockIcon,
|
|
84350
84450
|
ClockRotateLeft,
|
|
@@ -84404,6 +84504,7 @@ export {
|
|
|
84404
84504
|
SearchBox,
|
|
84405
84505
|
SearchIcon,
|
|
84406
84506
|
SearchResults,
|
|
84507
|
+
Select2 as Select,
|
|
84407
84508
|
Skeleton2 as Skeleton,
|
|
84408
84509
|
TeliAddIcon,
|
|
84409
84510
|
TeliAppSwitch,
|
package/dist/ds.umd.cjs
CHANGED
|
@@ -25804,7 +25804,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
25804
25804
|
const defaultCheckedIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(CheckBoxIcon, {});
|
|
25805
25805
|
const defaultIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(CheckBoxOutlineBlankIcon, {});
|
|
25806
25806
|
const defaultIndeterminateIcon = /* @__PURE__ */ jsxRuntimeExports.jsx(IndeterminateCheckBoxIcon, {});
|
|
25807
|
-
const Checkbox = /* @__PURE__ */ React__namespace.forwardRef(function Checkbox2(inProps, ref) {
|
|
25807
|
+
const Checkbox$1 = /* @__PURE__ */ React__namespace.forwardRef(function Checkbox2(inProps, ref) {
|
|
25808
25808
|
var _icon$props$fontSize, _indeterminateIcon$pr;
|
|
25809
25809
|
const props = useDefaultProps({
|
|
25810
25810
|
props: inProps,
|
|
@@ -25846,7 +25846,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
25846
25846
|
classes
|
|
25847
25847
|
}));
|
|
25848
25848
|
});
|
|
25849
|
-
process.env.NODE_ENV !== "production" ? Checkbox.propTypes = {
|
|
25849
|
+
process.env.NODE_ENV !== "production" ? Checkbox$1.propTypes = {
|
|
25850
25850
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
25851
25851
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
25852
25852
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -34884,7 +34884,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
34884
34884
|
const StyledInput = styled(Input, styledRootConfig)("");
|
|
34885
34885
|
const StyledOutlinedInput = styled(OutlinedInput, styledRootConfig)("");
|
|
34886
34886
|
const StyledFilledInput = styled(FilledInput, styledRootConfig)("");
|
|
34887
|
-
const Select = /* @__PURE__ */ React__namespace.forwardRef(function Select2(inProps, ref) {
|
|
34887
|
+
const Select$1 = /* @__PURE__ */ React__namespace.forwardRef(function Select2(inProps, ref) {
|
|
34888
34888
|
const props = useDefaultProps({
|
|
34889
34889
|
name: "MuiSelect",
|
|
34890
34890
|
props: inProps
|
|
@@ -34980,7 +34980,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
34980
34980
|
}, other))
|
|
34981
34981
|
});
|
|
34982
34982
|
});
|
|
34983
|
-
process.env.NODE_ENV !== "production" ? Select.propTypes = {
|
|
34983
|
+
process.env.NODE_ENV !== "production" ? Select$1.propTypes = {
|
|
34984
34984
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
34985
34985
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
34986
34986
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -35127,7 +35127,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
35127
35127
|
*/
|
|
35128
35128
|
variant: PropTypes.oneOf(["filled", "outlined", "standard"])
|
|
35129
35129
|
} : void 0;
|
|
35130
|
-
Select.muiName = "Select";
|
|
35130
|
+
Select$1.muiName = "Select";
|
|
35131
35131
|
function getSkeletonUtilityClass(slot) {
|
|
35132
35132
|
return generateUtilityClass("MuiSkeleton", slot);
|
|
35133
35133
|
}
|
|
@@ -38418,7 +38418,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
38418
38418
|
id: inputLabelId
|
|
38419
38419
|
}, InputLabelProps, {
|
|
38420
38420
|
children: label
|
|
38421
|
-
})), select2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Select, _extends$3({
|
|
38421
|
+
})), select2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Select$1, _extends$3({
|
|
38422
38422
|
"aria-describedby": helperTextId,
|
|
38423
38423
|
id: id2,
|
|
38424
38424
|
labelId: inputLabelId,
|
|
@@ -46402,8 +46402,8 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
46402
46402
|
label,
|
|
46403
46403
|
...checkboxProps
|
|
46404
46404
|
}) => {
|
|
46405
|
-
if (!label) return /* @__PURE__ */ jsx$1(Checkbox, { ...checkboxProps });
|
|
46406
|
-
return /* @__PURE__ */ jsx$1(FormControlLabel, { control: /* @__PURE__ */ jsx$1(Checkbox, { ...checkboxProps }), label, className: "m-0" });
|
|
46405
|
+
if (!label) return /* @__PURE__ */ jsx$1(Checkbox$1, { ...checkboxProps });
|
|
46406
|
+
return /* @__PURE__ */ jsx$1(FormControlLabel, { control: /* @__PURE__ */ jsx$1(Checkbox$1, { ...checkboxProps }), label, className: "m-0" });
|
|
46407
46407
|
};
|
|
46408
46408
|
const TeliSelect = ({
|
|
46409
46409
|
id: id2,
|
|
@@ -46457,7 +46457,7 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
46457
46457
|
width: width2
|
|
46458
46458
|
}, size: "small", disabled: disabled2, error, required, fullWidth, focused, hiddenLabel, children: [
|
|
46459
46459
|
!hiddenLabel && /* @__PURE__ */ jsx$1(InputLabel, { id: id2, children: label }),
|
|
46460
|
-
/* @__PURE__ */ jsx$1(Select, { ...getLabelProps(), ...getMultiSelectProps(), id: selectId, value: value2, onChange: onChange2, size: "small", defaultOpen, defaultValue, open, onOpen, onClose, inputProps: {
|
|
46460
|
+
/* @__PURE__ */ jsx$1(Select$1, { ...getLabelProps(), ...getMultiSelectProps(), id: selectId, value: value2, onChange: onChange2, size: "small", defaultOpen, defaultValue, open, onOpen, onClose, inputProps: {
|
|
46461
46461
|
"aria-label": hiddenLabel ? label : void 0,
|
|
46462
46462
|
readOnly
|
|
46463
46463
|
}, MenuProps: {
|
|
@@ -57942,6 +57942,70 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
57942
57942
|
return /* @__PURE__ */ jsx$1(Button$1, { variant: "text", color: color2, ...buttonProps, ref, children: buttonProps.children });
|
|
57943
57943
|
});
|
|
57944
57944
|
const TextField = (props) => /* @__PURE__ */ jsx$1(TextField$1, { ...props });
|
|
57945
|
+
const Select = ({
|
|
57946
|
+
label,
|
|
57947
|
+
value: value2,
|
|
57948
|
+
id: id2,
|
|
57949
|
+
options,
|
|
57950
|
+
width: width2,
|
|
57951
|
+
onChange: onChange2,
|
|
57952
|
+
disabled: disabled2 = false,
|
|
57953
|
+
sx,
|
|
57954
|
+
...rest
|
|
57955
|
+
}) => {
|
|
57956
|
+
const theme = useExtendedTheme();
|
|
57957
|
+
return /* @__PURE__ */ jsxs(FormControl, { sx: {
|
|
57958
|
+
minWidth: 88,
|
|
57959
|
+
width: width2
|
|
57960
|
+
}, size: "small", children: [
|
|
57961
|
+
label && /* @__PURE__ */ jsx$1(InputLabel, { id: id2, sx: {
|
|
57962
|
+
color: "#fff",
|
|
57963
|
+
"&.Mui-focused": {
|
|
57964
|
+
color: theme.palette.primary.main
|
|
57965
|
+
}
|
|
57966
|
+
}, children: label }),
|
|
57967
|
+
/* @__PURE__ */ jsx$1(Select$1, { ...rest, labelId: id2, label, id: id2, value: value2, disabled: disabled2, onChange: onChange2, size: "small", MenuProps: {
|
|
57968
|
+
PaperProps: {
|
|
57969
|
+
sx: {
|
|
57970
|
+
backgroundColor: "#2A2A2A",
|
|
57971
|
+
color: "white"
|
|
57972
|
+
}
|
|
57973
|
+
}
|
|
57974
|
+
}, sx: {
|
|
57975
|
+
color: "#ffffff",
|
|
57976
|
+
backgroundColor: theme.palette.mode === "dark" ? "#2A2A2A" : "#ffffff",
|
|
57977
|
+
".MuiSelect-icon": {
|
|
57978
|
+
color: "#6D6D6D"
|
|
57979
|
+
},
|
|
57980
|
+
".MuiOutlinedInput-notchedOutline": {
|
|
57981
|
+
borderColor: "#6D6D6D"
|
|
57982
|
+
},
|
|
57983
|
+
"&:hover .MuiOutlinedInput-notchedOutline": {
|
|
57984
|
+
borderColor: theme.palette.primary.main
|
|
57985
|
+
},
|
|
57986
|
+
"&.Mui-focused .MuiOutlinedInput-notchedOutline": {
|
|
57987
|
+
borderColor: theme.palette.primary.main,
|
|
57988
|
+
borderWidth: "2px !important"
|
|
57989
|
+
},
|
|
57990
|
+
"&.Mui-selected": {
|
|
57991
|
+
backgroundColor: "#2A2A2A",
|
|
57992
|
+
color: "#fff"
|
|
57993
|
+
},
|
|
57994
|
+
...sx
|
|
57995
|
+
}, children: options.map((option) => /* @__PURE__ */ jsx$1(MenuItem, { value: option.value, disableRipple: true, children: option.label }, option == null ? void 0 : option.value)) })
|
|
57996
|
+
] });
|
|
57997
|
+
};
|
|
57998
|
+
const Checkbox = ({
|
|
57999
|
+
checked,
|
|
58000
|
+
id: id2,
|
|
58001
|
+
name,
|
|
58002
|
+
label,
|
|
58003
|
+
required = false,
|
|
58004
|
+
...rest
|
|
58005
|
+
}) => {
|
|
58006
|
+
useExtendedTheme();
|
|
58007
|
+
return label ? /* @__PURE__ */ jsx$1(FormControlLabel, { required, control: /* @__PURE__ */ jsx$1(Checkbox$1, { checked, id: id2, name, ...rest, color: "primary" }), label }) : /* @__PURE__ */ jsx$1(Checkbox$1, { checked, id: id2, name, ...rest, color: "primary" });
|
|
58008
|
+
};
|
|
57945
58009
|
const StyledPopper = styled$1("div")({
|
|
57946
58010
|
position: "relative",
|
|
57947
58011
|
width: 360
|
|
@@ -61109,6 +61173,41 @@ Please use another name.` : formatMuiErrorMessage$1(18));
|
|
|
61109
61173
|
}
|
|
61110
61174
|
}
|
|
61111
61175
|
},
|
|
61176
|
+
MuiMenuItem: {
|
|
61177
|
+
styleOverrides: {
|
|
61178
|
+
root: ({
|
|
61179
|
+
theme
|
|
61180
|
+
}) => ({
|
|
61181
|
+
display: "flex",
|
|
61182
|
+
alignItems: "center",
|
|
61183
|
+
margin: theme.spacing(0, 1),
|
|
61184
|
+
borderRadius: theme.shape.borderRadius,
|
|
61185
|
+
border: "1px solid transparent",
|
|
61186
|
+
"&.Mui-selected": {
|
|
61187
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
61188
|
+
color: theme.palette.primary.main
|
|
61189
|
+
},
|
|
61190
|
+
"&.Mui-selected.Mui-selected": {
|
|
61191
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)"
|
|
61192
|
+
},
|
|
61193
|
+
"&.Mui-selected.Mui-selected:hover": {
|
|
61194
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)"
|
|
61195
|
+
},
|
|
61196
|
+
"&.Mui-selected:hover": {
|
|
61197
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
61198
|
+
color: theme.palette.primary.main,
|
|
61199
|
+
backgroundImage: "none"
|
|
61200
|
+
},
|
|
61201
|
+
"& .MuiPaper-root": {
|
|
61202
|
+
backgroundColor: theme.palette.mode === "dark" ? "#2A2A2A" : "#ffffff"
|
|
61203
|
+
},
|
|
61204
|
+
"&:hover": {
|
|
61205
|
+
backgroundColor: theme.palette.mode === "dark" ? theme.palette.background.default : "rgba(0, 0, 0, 0.04)",
|
|
61206
|
+
border: `1px solid ${theme.palette.primary.main}`
|
|
61207
|
+
}
|
|
61208
|
+
})
|
|
61209
|
+
}
|
|
61210
|
+
},
|
|
61112
61211
|
MuiAppBar: {
|
|
61113
61212
|
styleOverrides: {
|
|
61114
61213
|
root: {
|
|
@@ -84367,6 +84466,7 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
84367
84466
|
exports2.CardActions = CardActions;
|
|
84368
84467
|
exports2.CardContent = CardContent;
|
|
84369
84468
|
exports2.CardHeader = CardHeader;
|
|
84469
|
+
exports2.Checkbox = Checkbox;
|
|
84370
84470
|
exports2.Chip = Chip;
|
|
84371
84471
|
exports2.ClockIcon = ClockIcon;
|
|
84372
84472
|
exports2.ClockRotateLeft = ClockRotateLeft;
|
|
@@ -84426,6 +84526,7 @@ uniform ${i3} ${s4} u_${a3};
|
|
|
84426
84526
|
exports2.SearchBox = SearchBox;
|
|
84427
84527
|
exports2.SearchIcon = SearchIcon;
|
|
84428
84528
|
exports2.SearchResults = SearchResults;
|
|
84529
|
+
exports2.Select = Select;
|
|
84429
84530
|
exports2.Skeleton = Skeleton;
|
|
84430
84531
|
exports2.TeliAddIcon = TeliAddIcon;
|
|
84431
84532
|
exports2.TeliAppSwitch = TeliAppSwitch;
|
package/dist/logout-syncer/sw.js
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { CheckboxProps } from '@mui/material';
|
|
3
|
+
|
|
4
|
+
interface CustomCheckboxProps extends CheckboxProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
required?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Checkbox: React.FC<CustomCheckboxProps>;
|
|
9
|
+
export default Checkbox;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Checkbox } from './Checkbox';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Checkbox>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const WithCustomLabel: Story;
|
|
10
|
+
export declare const WithRequired: Story;
|
|
11
|
+
export declare const WithNoLabel: Story;
|
|
12
|
+
export declare const ExampleWithOnChange: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SelectProps as MuiSelectProps } from '@mui/material';
|
|
2
|
+
import { default as React } from 'react';
|
|
3
|
+
|
|
4
|
+
export interface Options {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
export type SelectProps = MuiSelectProps & {
|
|
9
|
+
options: Options[];
|
|
10
|
+
width?: number;
|
|
11
|
+
};
|
|
12
|
+
declare const Select: React.FC<SelectProps>;
|
|
13
|
+
export default Select;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Select } from './Select';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Select>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Select>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const WithCustomWidth: Story;
|
|
10
|
+
export declare const WithNoLabel: Story;
|
|
11
|
+
/**
|
|
12
|
+
* This exemple is set up using useState to simulate how it would
|
|
13
|
+
* work on the app, how the selected item is styled
|
|
14
|
+
*
|
|
15
|
+
* Refer back to the top of the document on how to implement
|
|
16
|
+
*/
|
|
17
|
+
export declare const ExampleWithOnChange: Story;
|
|
@@ -2,4 +2,8 @@ export { default as Button } from './Button/Button';
|
|
|
2
2
|
export type { ButtonProps } from './Button/Button';
|
|
3
3
|
export { default as IconButton } from './Button/IconButton';
|
|
4
4
|
export { default as TextField } from './TextField';
|
|
5
|
+
export { default as Select } from './Select/Select';
|
|
6
|
+
export type { SelectProps } from './Select/Select';
|
|
7
|
+
export type { Options } from './Select/Select';
|
|
8
|
+
export { default as Checkbox } from './Checkbox/Checkbox';
|
|
5
9
|
export * from './SearchBox';
|
|
@@ -8,6 +8,51 @@ declare const generateComponentOverrides: (uiTheme: UITheme) => {
|
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
10
|
};
|
|
11
|
+
MuiMenuItem: {
|
|
12
|
+
styleOverrides: {
|
|
13
|
+
root: ({ theme }: import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
14
|
+
ref?: ((instance: HTMLLIElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLLIElement> | null | undefined;
|
|
15
|
+
}, "children" | "autoFocus" | "className" | "style" | "tabIndex" | "classes" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters" | "divider" | "selected"> & {
|
|
16
|
+
component?: import('react').ElementType;
|
|
17
|
+
} & Record<string, unknown> & {
|
|
18
|
+
ownerState: import('@mui/material').MenuItemOwnProps & Omit<import('@mui/material').ButtonBaseOwnProps, "classes"> & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & {
|
|
19
|
+
ref?: ((instance: HTMLLIElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLLIElement> | null | undefined;
|
|
20
|
+
}, "children" | "autoFocus" | "className" | "style" | "tabIndex" | "classes" | "sx" | "action" | "centerRipple" | "disabled" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "disableGutters" | "divider" | "selected"> & {
|
|
21
|
+
component?: import('react').ElementType;
|
|
22
|
+
} & Record<string, unknown>;
|
|
23
|
+
} & {
|
|
24
|
+
theme: Omit<import('@mui/material').Theme, "components">;
|
|
25
|
+
}) => {
|
|
26
|
+
display: "flex";
|
|
27
|
+
alignItems: "center";
|
|
28
|
+
margin: string;
|
|
29
|
+
borderRadius: number;
|
|
30
|
+
border: string;
|
|
31
|
+
"&.Mui-selected": {
|
|
32
|
+
backgroundColor: string;
|
|
33
|
+
color: string;
|
|
34
|
+
};
|
|
35
|
+
"&.Mui-selected.Mui-selected": {
|
|
36
|
+
backgroundColor: string;
|
|
37
|
+
};
|
|
38
|
+
"&.Mui-selected.Mui-selected:hover": {
|
|
39
|
+
backgroundColor: string;
|
|
40
|
+
};
|
|
41
|
+
"&.Mui-selected:hover": {
|
|
42
|
+
backgroundColor: string;
|
|
43
|
+
color: string;
|
|
44
|
+
backgroundImage: string;
|
|
45
|
+
};
|
|
46
|
+
"& .MuiPaper-root": {
|
|
47
|
+
backgroundColor: string;
|
|
48
|
+
};
|
|
49
|
+
"&:hover": {
|
|
50
|
+
backgroundColor: string;
|
|
51
|
+
border: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
11
56
|
MuiAppBar: {
|
|
12
57
|
styleOverrides: {
|
|
13
58
|
root: {
|
|
@@ -857,18 +902,6 @@ declare const generateComponentOverrides: (uiTheme: UITheme) => {
|
|
|
857
902
|
}>;
|
|
858
903
|
}[] | undefined;
|
|
859
904
|
} | undefined;
|
|
860
|
-
MuiMenuItem?: {
|
|
861
|
-
defaultProps?: import('@mui/material').ComponentsProps["MuiMenuItem"];
|
|
862
|
-
styleOverrides?: Partial<import('@mui/material/styles/overrides').OverridesStyleRules<keyof import('@mui/material').MenuItemClasses, "MuiMenuItem", Omit<import('@mui/material').Theme, "components">>> | undefined;
|
|
863
|
-
variants?: {
|
|
864
|
-
props: Partial<import('@mui/material').MenuItemProps> | ((props: Partial<import('@mui/material').MenuItemProps> & {
|
|
865
|
-
ownerState: Partial<import('@mui/material').MenuItemProps>;
|
|
866
|
-
}) => boolean);
|
|
867
|
-
style: import('@mui/styled-engine').Interpolation<{
|
|
868
|
-
theme: Omit<import('@mui/material').Theme, "components">;
|
|
869
|
-
}>;
|
|
870
|
-
}[] | undefined;
|
|
871
|
-
} | undefined;
|
|
872
905
|
MuiMenuList?: {
|
|
873
906
|
defaultProps?: import('@mui/material').ComponentsProps["MuiMenuList"];
|
|
874
907
|
styleOverrides?: Partial<import('@mui/material/styles/overrides').OverridesStyleRules<keyof import('@mui/material').ListClasses, "MuiMenuList", Omit<import('@mui/material').Theme, "components">>> | undefined;
|