sevago-sso-fe 1.0.61 → 1.0.64

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.
@@ -1,3 +1 @@
1
- export declare const ImageBrand: import('@emotion/styled').StyledComponent<import('../elements/image/image.element').ImageElementProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
2
- export declare const ImageBorderDashboard: import('@emotion/styled').StyledComponent<import('../elements/image/image.element').ImageElementProps & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
3
1
  export declare const ImageEmpty: import('@emotion/styled').StyledComponent<import('@mui/system').BoxOwnProps<import('@mui/material').Theme> & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, keyof import('@mui/system').BoxOwnProps<import('@mui/material').Theme>> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme>, {}, {}>;
package/dist/index.cjs.js CHANGED
@@ -7203,257 +7203,6 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "20"
7203
7203
  "stroke-linejoin": "round"
7204
7204
  }
7205
7205
  ) });
7206
- const ImageBrand = material.styled(ImageElement)(({ theme }) => ({
7207
- height: HEIGHT_ELEMENT_OTHER,
7208
- border: `1px solid ${theme.palette.divider}`,
7209
- borderRadius: BORDER_RADIUS_ELEMENT,
7210
- "&:hover": { boxShadow: theme.shadows[1] },
7211
- padding: 8,
7212
- backgroundColor: "white",
7213
- cursor: "pointer",
7214
- width: 100,
7215
- objectFit: "contain"
7216
- }));
7217
- const ImageBorderDashboard = material.styled(ImageElement)(({ theme }) => ({
7218
- border: `1px solid ${theme.palette.divider}`,
7219
- borderRadius: BORDER_RADIUS_ELEMENT,
7220
- height: 50,
7221
- width: 70
7222
- }));
7223
- const ImageEmpty = material.styled(material.Box)(({ theme }) => ({
7224
- width: "auto",
7225
- minWidth: 50,
7226
- height: 50,
7227
- borderRadius: BORDER_RADIUS_ELEMENT,
7228
- border: `1px dashed ${theme.palette.divider}`
7229
- }));
7230
- const InputLabelCustom = material.styled(material.InputLabel)(({ theme }) => ({
7231
- display: "flex",
7232
- backgroundColor: theme.palette.background.paper,
7233
- paddingLeft: "8px",
7234
- paddingRight: `9px`,
7235
- transform: `translate(10px, -9px) scale(0.75)`
7236
- }));
7237
- const LinkElement = ({ onClick, sx = {}, target = "_self", ...rest }) => {
7238
- return /* @__PURE__ */ jsxRuntime.jsx(
7239
- material.Link,
7240
- {
7241
- target,
7242
- rel: "noopener",
7243
- sx: { textDecoration: "none", color: "unset", ...sx },
7244
- onClick: (event) => {
7245
- if (onClick) {
7246
- event.preventDefault();
7247
- onClick();
7248
- }
7249
- },
7250
- ...rest
7251
- }
7252
- );
7253
- };
7254
- const LinkWrapProductRow = material.styled(LinkElement)(({ theme }) => ({
7255
- display: "flex",
7256
- flexDirection: "row",
7257
- borderRadius: BORDER_RADIUS_ELEMENT,
7258
- border: `1px solid ${theme.palette.divider}`,
7259
- padding: PADDING_GAP_ITEM,
7260
- gap: PADDING_GAP_ITEM,
7261
- backgroundColor: theme.palette.background.default
7262
- }));
7263
- const lightenColor = (hex2, percent2) => {
7264
- let r2, g, b;
7265
- if (hex2.length === 7) {
7266
- r2 = parseInt(hex2.slice(1, 3), 16);
7267
- g = parseInt(hex2.slice(3, 5), 16);
7268
- b = parseInt(hex2.slice(5, 7), 16);
7269
- } else {
7270
- r2 = parseInt(hex2[1] + hex2[1], 16);
7271
- g = parseInt(hex2[2] + hex2[2], 16);
7272
- b = parseInt(hex2[3] + hex2[3], 16);
7273
- }
7274
- r2 = Math.round(r2 + (255 - r2) * percent2);
7275
- g = Math.round(g + (255 - g) * percent2);
7276
- b = Math.round(b + (255 - b) * percent2);
7277
- return `rgb(${r2}, ${g}, ${b})`;
7278
- };
7279
- const TAG_SIZE = {
7280
- large: {
7281
- padding: "6px 8px",
7282
- ...TYPOGRAPHY_STYLES.textXs.medium
7283
- },
7284
- medium: {
7285
- padding: "4px 6px",
7286
- ...TYPOGRAPHY_STYLES.textXs.medium
7287
- },
7288
- small: {
7289
- padding: 0.5,
7290
- ...TYPOGRAPHY_STYLES.textSmall.medium
7291
- }
7292
- };
7293
- const TagElement = ({
7294
- type,
7295
- content,
7296
- width: width2,
7297
- variation = "caption",
7298
- size = "medium",
7299
- variant = "contained",
7300
- sx,
7301
- color: color2,
7302
- iconProps
7303
- }) => {
7304
- const TAG_VARIANT = {
7305
- contained: {
7306
- backgroundColor: type,
7307
- color: color2 || "white"
7308
- },
7309
- outlined: {
7310
- backgroundColor: lightenColor(type, 0.8),
7311
- color: type
7312
- },
7313
- "outlined-border": {
7314
- backgroundColor: lightenColor(type, 0.8),
7315
- border: `1px solid ${type}`,
7316
- color: type
7317
- }
7318
- };
7319
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: iconProps ? /* @__PURE__ */ jsxRuntime.jsxs(
7320
- StackWrap,
7321
- {
7322
- sx: {
7323
- borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
7324
- width: width2,
7325
- textAlign: "center",
7326
- textWrap: "nowrap",
7327
- ...TAG_SIZE[size],
7328
- ...TAG_VARIANT[variant],
7329
- ...sx
7330
- },
7331
- children: [
7332
- iconProps && iconProps,
7333
- /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: variation, children: content })
7334
- ]
7335
- }
7336
- ) : /* @__PURE__ */ jsxRuntime.jsx(
7337
- material.Typography,
7338
- {
7339
- variant: variation,
7340
- sx: {
7341
- borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
7342
- width: width2,
7343
- textAlign: "center",
7344
- textWrap: "nowrap",
7345
- ...getLimitLineCss(1),
7346
- ...TAG_SIZE[size],
7347
- ...TAG_VARIANT[variant],
7348
- ...sx
7349
- },
7350
- children: content
7351
- }
7352
- ) });
7353
- };
7354
- const PaperSelect = material.styled(material.Paper, {
7355
- shouldForwardProp: (prop) => prop !== "disableSelectedStyle" && prop !== "autoWidth" && prop !== "isTreeSelect"
7356
- })(({ theme, disableSelectedStyle, autoWidth, isTreeSelect }) => ({
7357
- backgroundColor: theme.palette.background.paper,
7358
- borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
7359
- padding: PADDING_GAP_ITEM,
7360
- backgroundImage: "none",
7361
- boxShadow: theme.shadows[1],
7362
- ...autoWidth && {
7363
- width: "max-content"
7364
- },
7365
- "& > .MuiAutocomplete-listbox": {
7366
- padding: 0,
7367
- "& > .MuiAutocomplete-option": {
7368
- ...isTreeSelect ? {
7369
- padding: 0,
7370
- borderRadius: 0,
7371
- transition: TRANSITION_TIME,
7372
- backgroundColor: "transparent !important",
7373
- "& .option-content": {
7374
- display: "flex",
7375
- alignItems: "center",
7376
- padding: PADDING_GAP_ITEM,
7377
- borderRadius: BORDER_RADIUS_ELEMENT,
7378
- transition: TRANSITION_TIME,
7379
- backgroundColor: "transparent",
7380
- flex: 1,
7381
- width: "100%",
7382
- "&:hover": {
7383
- backgroundColor: lightenColor(theme.palette.primary.dark, 0.8)
7384
- },
7385
- ...disableSelectedStyle ? {} : {
7386
- "&.selected": {
7387
- backgroundColor: lightenColor(theme.palette.primary.dark, 0.8),
7388
- color: theme.palette.primary.contrastText
7389
- }
7390
- }
7391
- },
7392
- "&:hover": {
7393
- backgroundColor: "transparent !important"
7394
- },
7395
- "&[aria-selected='true']": {
7396
- backgroundColor: "transparent !important",
7397
- color: TREE_COLOR.TREE_LEVEL_1
7398
- }
7399
- } : {
7400
- padding: PADDING_GAP_ITEM,
7401
- borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
7402
- transition: TRANSITION_TIME,
7403
- "&:hover": {
7404
- backgroundColor: theme.palette.action.hover
7405
- },
7406
- ...disableSelectedStyle ? {} : {
7407
- "&[aria-selected='true']": {
7408
- backgroundColor: lightenColor(theme.palette.primary.main, 0.9),
7409
- color: theme.palette.primary.main
7410
- }
7411
- }
7412
- }
7413
- }
7414
- }
7415
- }));
7416
- const getPickerSx = (palette, sx) => ({
7417
- "& fieldset legend": { maxWidth: "100% !important" },
7418
- "& .MuiPickersInputBase-root": {
7419
- borderColor: palette.divider,
7420
- borderRadius: BORDER_RADIUS_ELEMENT,
7421
- height: HEIGHT_DEFAULT_TEXT_FIELD_BUTTON
7422
- },
7423
- "&.MuiPickersTextField-root": { ...sx }
7424
- });
7425
- const getPopperProps = () => ({
7426
- sx: { boxShadow: 1, overflow: "hidden" },
7427
- modifiers: [
7428
- {
7429
- name: "customStyle",
7430
- enabled: true,
7431
- phase: "beforeWrite",
7432
- fn: ({ state }) => {
7433
- Object.assign(state.elements.popper.style, {
7434
- borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
7435
- overflow: "hidden"
7436
- });
7437
- }
7438
- }
7439
- ]
7440
- });
7441
- const getActionBarSx = (palette) => ({
7442
- "& button": { textTransform: "none", width: 100 },
7443
- "& button:nth-of-type(1)": {
7444
- border: `1px solid ${palette.primary.main}`,
7445
- color: palette.primary.main,
7446
- background: "transparent",
7447
- borderRadius: BORDER_RADIUS_ELEMENT,
7448
- "&:hover": { backgroundColor: palette.divider + OPACITY[20] }
7449
- },
7450
- "& button:nth-of-type(2)": {
7451
- background: palette.primary.main,
7452
- color: palette.primary.contrastText,
7453
- borderRadius: BORDER_RADIUS_ELEMENT,
7454
- "&:hover": { backgroundColor: palette.primary.dark }
7455
- }
7456
- });
7457
7206
  const StackRow = material.styled(material.Stack)(() => ({
7458
7207
  flexDirection: "row"
7459
7208
  }));
@@ -7569,16 +7318,6 @@ const BorderLinearProgress = material.styled(material.LinearProgress)(({ theme }
7569
7318
  backgroundColor: theme.palette.primary
7570
7319
  }
7571
7320
  }));
7572
- const TypographyFilter = material.styled(material.Typography)(({ theme }) => ({
7573
- height: HEIGHT_ELEMENT_OTHER,
7574
- border: `1px solid ${theme.palette.divider}`,
7575
- borderRadius: BORDER_RADIUS_ELEMENT,
7576
- "&:hover": { boxShadow: theme.shadows[1], color: theme.palette.primary.main },
7577
- alignContent: "center",
7578
- cursor: "pointer",
7579
- textWrap: "nowrap",
7580
- padding: `0px ${PADDING_GAP_LAYOUT}`
7581
- }));
7582
7321
  var ImageSizeType = /* @__PURE__ */ ((ImageSizeType2) => {
7583
7322
  ImageSizeType2["CIRCLE"] = "CIRCLE";
7584
7323
  ImageSizeType2["SQUARE"] = "SQUARE";
@@ -15204,6 +14943,250 @@ const MotionBox = ({
15204
14943
  } : {};
15205
14944
  return /* @__PURE__ */ jsxRuntime.jsx(motion.div, { ...motionProps, ...getAnimationProps(), ...hoverProps, onClick, style: { ...sx }, children });
15206
14945
  };
14946
+ const ImageEmpty = material.styled(material.Box)(({ theme }) => ({
14947
+ width: "auto",
14948
+ minWidth: 50,
14949
+ height: 50,
14950
+ borderRadius: BORDER_RADIUS_ELEMENT,
14951
+ border: `1px dashed ${theme.palette.divider}`
14952
+ }));
14953
+ const InputLabelCustom = material.styled(material.InputLabel)(({ theme }) => ({
14954
+ display: "flex",
14955
+ backgroundColor: theme.palette.background.paper,
14956
+ paddingLeft: "8px",
14957
+ paddingRight: `9px`,
14958
+ transform: `translate(10px, -9px) scale(0.75)`
14959
+ }));
14960
+ const LinkElement = ({ onClick, sx = {}, target = "_self", ...rest }) => {
14961
+ return /* @__PURE__ */ jsxRuntime.jsx(
14962
+ material.Link,
14963
+ {
14964
+ target,
14965
+ rel: "noopener",
14966
+ sx: { textDecoration: "none", color: "unset", ...sx },
14967
+ onClick: (event) => {
14968
+ if (onClick) {
14969
+ event.preventDefault();
14970
+ onClick();
14971
+ }
14972
+ },
14973
+ ...rest
14974
+ }
14975
+ );
14976
+ };
14977
+ const LinkWrapProductRow = material.styled(LinkElement)(({ theme }) => ({
14978
+ display: "flex",
14979
+ flexDirection: "row",
14980
+ borderRadius: BORDER_RADIUS_ELEMENT,
14981
+ border: `1px solid ${theme.palette.divider}`,
14982
+ padding: PADDING_GAP_ITEM,
14983
+ gap: PADDING_GAP_ITEM,
14984
+ backgroundColor: theme.palette.background.default
14985
+ }));
14986
+ const lightenColor = (hex2, percent2) => {
14987
+ let r2, g, b;
14988
+ if (hex2.length === 7) {
14989
+ r2 = parseInt(hex2.slice(1, 3), 16);
14990
+ g = parseInt(hex2.slice(3, 5), 16);
14991
+ b = parseInt(hex2.slice(5, 7), 16);
14992
+ } else {
14993
+ r2 = parseInt(hex2[1] + hex2[1], 16);
14994
+ g = parseInt(hex2[2] + hex2[2], 16);
14995
+ b = parseInt(hex2[3] + hex2[3], 16);
14996
+ }
14997
+ r2 = Math.round(r2 + (255 - r2) * percent2);
14998
+ g = Math.round(g + (255 - g) * percent2);
14999
+ b = Math.round(b + (255 - b) * percent2);
15000
+ return `rgb(${r2}, ${g}, ${b})`;
15001
+ };
15002
+ const TAG_SIZE = {
15003
+ large: {
15004
+ padding: "6px 8px",
15005
+ ...TYPOGRAPHY_STYLES.textXs.medium
15006
+ },
15007
+ medium: {
15008
+ padding: "4px 6px",
15009
+ ...TYPOGRAPHY_STYLES.textXs.medium
15010
+ },
15011
+ small: {
15012
+ padding: 0.5,
15013
+ ...TYPOGRAPHY_STYLES.textSmall.medium
15014
+ }
15015
+ };
15016
+ const TagElement = ({
15017
+ type,
15018
+ content,
15019
+ width: width2,
15020
+ variation = "caption",
15021
+ size = "medium",
15022
+ variant = "contained",
15023
+ sx,
15024
+ color: color2,
15025
+ iconProps
15026
+ }) => {
15027
+ const TAG_VARIANT = {
15028
+ contained: {
15029
+ backgroundColor: type,
15030
+ color: color2 || "white"
15031
+ },
15032
+ outlined: {
15033
+ backgroundColor: lightenColor(type, 0.8),
15034
+ color: type
15035
+ },
15036
+ "outlined-border": {
15037
+ backgroundColor: lightenColor(type, 0.8),
15038
+ border: `1px solid ${type}`,
15039
+ color: type
15040
+ }
15041
+ };
15042
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: iconProps ? /* @__PURE__ */ jsxRuntime.jsxs(
15043
+ StackWrap,
15044
+ {
15045
+ sx: {
15046
+ borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
15047
+ width: width2,
15048
+ textAlign: "center",
15049
+ textWrap: "nowrap",
15050
+ ...TAG_SIZE[size],
15051
+ ...TAG_VARIANT[variant],
15052
+ ...sx
15053
+ },
15054
+ children: [
15055
+ iconProps && iconProps,
15056
+ /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: variation, children: content })
15057
+ ]
15058
+ }
15059
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
15060
+ material.Typography,
15061
+ {
15062
+ variant: variation,
15063
+ sx: {
15064
+ borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
15065
+ width: width2,
15066
+ textAlign: "center",
15067
+ textWrap: "nowrap",
15068
+ ...getLimitLineCss(1),
15069
+ ...TAG_SIZE[size],
15070
+ ...TAG_VARIANT[variant],
15071
+ ...sx
15072
+ },
15073
+ children: content
15074
+ }
15075
+ ) });
15076
+ };
15077
+ const PaperSelect = material.styled(material.Paper, {
15078
+ shouldForwardProp: (prop) => prop !== "disableSelectedStyle" && prop !== "autoWidth" && prop !== "isTreeSelect"
15079
+ })(({ theme, disableSelectedStyle, autoWidth, isTreeSelect }) => ({
15080
+ backgroundColor: theme.palette.background.paper,
15081
+ borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
15082
+ padding: PADDING_GAP_ITEM,
15083
+ backgroundImage: "none",
15084
+ boxShadow: theme.shadows[1],
15085
+ ...autoWidth && {
15086
+ width: "max-content"
15087
+ },
15088
+ "& > .MuiAutocomplete-listbox": {
15089
+ padding: 0,
15090
+ "& > .MuiAutocomplete-option": {
15091
+ ...isTreeSelect ? {
15092
+ padding: 0,
15093
+ borderRadius: 0,
15094
+ transition: TRANSITION_TIME,
15095
+ backgroundColor: "transparent !important",
15096
+ "& .option-content": {
15097
+ display: "flex",
15098
+ alignItems: "center",
15099
+ padding: PADDING_GAP_ITEM,
15100
+ borderRadius: BORDER_RADIUS_ELEMENT,
15101
+ transition: TRANSITION_TIME,
15102
+ backgroundColor: "transparent",
15103
+ flex: 1,
15104
+ width: "100%",
15105
+ "&:hover": {
15106
+ backgroundColor: lightenColor(theme.palette.primary.dark, 0.8)
15107
+ },
15108
+ ...disableSelectedStyle ? {} : {
15109
+ "&.selected": {
15110
+ backgroundColor: lightenColor(theme.palette.primary.dark, 0.8),
15111
+ color: theme.palette.primary.contrastText
15112
+ }
15113
+ }
15114
+ },
15115
+ "&:hover": {
15116
+ backgroundColor: "transparent !important"
15117
+ },
15118
+ "&[aria-selected='true']": {
15119
+ backgroundColor: "transparent !important",
15120
+ color: TREE_COLOR.TREE_LEVEL_1
15121
+ }
15122
+ } : {
15123
+ padding: PADDING_GAP_ITEM,
15124
+ borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
15125
+ transition: TRANSITION_TIME,
15126
+ "&:hover": {
15127
+ backgroundColor: theme.palette.action.hover
15128
+ },
15129
+ ...disableSelectedStyle ? {} : {
15130
+ "&[aria-selected='true']": {
15131
+ backgroundColor: lightenColor(theme.palette.primary.main, 0.9),
15132
+ color: theme.palette.primary.main
15133
+ }
15134
+ }
15135
+ }
15136
+ }
15137
+ }
15138
+ }));
15139
+ const getPickerSx = (palette, sx) => ({
15140
+ "& fieldset legend": { maxWidth: "100% !important" },
15141
+ "& .MuiPickersInputBase-root": {
15142
+ borderColor: palette.divider,
15143
+ borderRadius: BORDER_RADIUS_ELEMENT,
15144
+ height: HEIGHT_DEFAULT_TEXT_FIELD_BUTTON
15145
+ },
15146
+ "&.MuiPickersTextField-root": { ...sx }
15147
+ });
15148
+ const getPopperProps = () => ({
15149
+ sx: { boxShadow: 1, overflow: "hidden" },
15150
+ modifiers: [
15151
+ {
15152
+ name: "customStyle",
15153
+ enabled: true,
15154
+ phase: "beforeWrite",
15155
+ fn: ({ state }) => {
15156
+ Object.assign(state.elements.popper.style, {
15157
+ borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
15158
+ overflow: "hidden"
15159
+ });
15160
+ }
15161
+ }
15162
+ ]
15163
+ });
15164
+ const getActionBarSx = (palette) => ({
15165
+ "& button": { textTransform: "none", width: 100 },
15166
+ "& button:nth-of-type(1)": {
15167
+ border: `1px solid ${palette.primary.main}`,
15168
+ color: palette.primary.main,
15169
+ background: "transparent",
15170
+ borderRadius: BORDER_RADIUS_ELEMENT,
15171
+ "&:hover": { backgroundColor: palette.divider + OPACITY[20] }
15172
+ },
15173
+ "& button:nth-of-type(2)": {
15174
+ background: palette.primary.main,
15175
+ color: palette.primary.contrastText,
15176
+ borderRadius: BORDER_RADIUS_ELEMENT,
15177
+ "&:hover": { backgroundColor: palette.primary.dark }
15178
+ }
15179
+ });
15180
+ const TypographyFilter = material.styled(material.Typography)(({ theme }) => ({
15181
+ height: HEIGHT_ELEMENT_OTHER,
15182
+ border: `1px solid ${theme.palette.divider}`,
15183
+ borderRadius: BORDER_RADIUS_ELEMENT,
15184
+ "&:hover": { boxShadow: theme.shadows[1], color: theme.palette.primary.main },
15185
+ alignContent: "center",
15186
+ cursor: "pointer",
15187
+ textWrap: "nowrap",
15188
+ padding: `0px ${PADDING_GAP_LAYOUT}`
15189
+ }));
15207
15190
  const AppGrid = ({
15208
15191
  apps,
15209
15192
  columns = 5,
@@ -49901,8 +49884,6 @@ exports.IconContentElement = IconContentElement;
49901
49884
  exports.IconContentOpacityElement = IconContentOpacityElement;
49902
49885
  exports.IconContentSubsElement = IconContentSubsElement;
49903
49886
  exports.IconElement = IconElement;
49904
- exports.ImageBorderDashboard = ImageBorderDashboard;
49905
- exports.ImageBrand = ImageBrand;
49906
49887
  exports.ImageContentCaptionComponent = ImageContentCaptionComponent;
49907
49888
  exports.ImageContentTimeComponent = ImageContentTimeComponent;
49908
49889
  exports.ImageElement = ImageElement;