odaptos_design_system 1.3.0 → 1.3.2
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/odaptos_design_system.cjs.development.css +33 -33
- package/dist/odaptos_design_system.cjs.development.js +225 -159
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +215 -182
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ var React = require('react');
|
|
|
8
8
|
var React__default = _interopDefault(React);
|
|
9
9
|
var material = require('@mui/material');
|
|
10
10
|
var Autocomplete = _interopDefault(require('@mui/material/Autocomplete'));
|
|
11
|
-
var styles$
|
|
11
|
+
var styles$D = require('@mui/material/styles');
|
|
12
12
|
var TextField = _interopDefault(require('@mui/material/TextField'));
|
|
13
13
|
var Chip = _interopDefault(require('@mui/material/Chip'));
|
|
14
14
|
var Grid = _interopDefault(require('@mui/material/Grid'));
|
|
@@ -20,6 +20,10 @@ var Tab = _interopDefault(require('@mui/material/Tab'));
|
|
|
20
20
|
var Tabs$1 = _interopDefault(require('@mui/material/Tabs'));
|
|
21
21
|
var Popover$1 = _interopDefault(require('@mui/material/Popover'));
|
|
22
22
|
|
|
23
|
+
var styles = {"accordion":"Accordion-modules_accordion__76onN","accordion_header":"Accordion-modules_accordion_header__CDQqI"};
|
|
24
|
+
|
|
25
|
+
var styles$1 = {"text":"Text-modules_text__ozdxE","text_underline":"Text-modules_text_underline__XbdCw","text_line_through":"Text-modules_text_line_through__DUaY1","text_required":"Text-modules_text_required__obGmQ","text_xs":"Text-modules_text_xs__CwJmb","text_regular":"Text-modules_text_regular__1iah7","text_sm":"Text-modules_text_sm__PMvPW","text_base":"Text-modules_text_base__FeNwr","text_lg":"Text-modules_text_lg__AZg6q","text_xl":"Text-modules_text_xl__9n-wJ","text_xxl":"Text-modules_text_xxl__coKK2","text_xxxl":"Text-modules_text_xxxl__zFTwK","text_xxxxl":"Text-modules_text_xxxxl__47gjH","text_italic":"Text-modules_text_italic__VX9AW","text_bold":"Text-modules_text_bold__zv90B","text_semi_bold":"Text-modules_text_semi_bold__JDMdS"};
|
|
26
|
+
|
|
23
27
|
/** This text should be use to display basic text
|
|
24
28
|
* Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=52-751&mode=dev
|
|
25
29
|
*/
|
|
@@ -35,22 +39,24 @@ const Text = ({
|
|
|
35
39
|
...props
|
|
36
40
|
}) => {
|
|
37
41
|
const getTextSize = () => {
|
|
38
|
-
if (size === 'xs') return
|
|
42
|
+
if (size === 'xs') return styles$1.text_xs;else if (size === 'sm') return styles$1.text_sm;else if (size === 'base') return styles$1.text_base;else if (size === 'lg') return styles$1.text_lg;else if (size === 'xl') return styles$1.text_xl;else if (size === 'xxl') return styles$1.text_xxl;else if (size === 'xxxl') return styles$1.text_xxxl;else if (size === 'xxxxl') return styles$1.text_xxxxl;else return styles$1.text_base;
|
|
39
43
|
};
|
|
40
44
|
const getTextWeight = () => {
|
|
41
|
-
if (weight === 'semi-bold') return
|
|
45
|
+
if (weight === 'semi-bold') return styles$1.text_semi_bold;else if (weight === 'bold') return styles$1.text_bold;else if (weight === 'regular') return styles$1.text_regular;else return styles$1.text_regular;
|
|
42
46
|
};
|
|
43
47
|
const getTextDecoration = () => {
|
|
44
|
-
if (textDecoration === 'underline') return
|
|
48
|
+
if (textDecoration === 'underline') return styles$1.text_underline;else if (textDecoration === 'line-through') return styles$1.text_line_through;else return '';
|
|
45
49
|
};
|
|
46
50
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({}, props, {
|
|
47
51
|
style: {
|
|
48
52
|
color: color
|
|
49
53
|
},
|
|
50
|
-
className: `${
|
|
54
|
+
className: `${styles$1.text} ${italic ? styles$1.text_italic : ''} ${getTextWeight()} ${getTextDecoration()} ${className ?? ''} ${required && styles$1.text_required} ${getTextSize()}`
|
|
51
55
|
}), text);
|
|
52
56
|
};
|
|
53
57
|
|
|
58
|
+
var styles$2 = {"icon_button":"IconButton-modules_icon_button__nZlzu","icon_button_primary":"IconButton-modules_icon_button_primary__Oki8i","icon_button_secondary":"IconButton-modules_icon_button_secondary__leJSB","icon_button_tertiary":"IconButton-modules_icon_button_tertiary__p-WsR","icon_button_tertiary_alt":"IconButton-modules_icon_button_tertiary_alt__LKmSX","icon_button_alert":"IconButton-modules_icon_button_alert__1DEmV","icon_button_success":"IconButton-modules_icon_button_success__SzD9h","icon_button_xxs":"IconButton-modules_icon_button_xxs__8xuQ6","icon_button_xs":"IconButton-modules_icon_button_xs__jMs4K","icon_button_base":"IconButton-modules_icon_button_base__00dbp","icon_button_lg":"IconButton-modules_icon_button_lg__TNqQt"};
|
|
59
|
+
|
|
54
60
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=422-2878&mode=dev */
|
|
55
61
|
const IconButton = ({
|
|
56
62
|
variant = 'primary',
|
|
@@ -60,14 +66,14 @@ const IconButton = ({
|
|
|
60
66
|
...props
|
|
61
67
|
}) => {
|
|
62
68
|
const getStylesByVariant = () => {
|
|
63
|
-
if (variant === 'primary') return
|
|
69
|
+
if (variant === 'primary') return styles$2.icon_button_primary;else if (variant === 'secondary') return styles$2.icon_button_secondary;else if (variant === 'tertiary') return styles$2.icon_button_tertiary;else if (variant === 'tertiary-alt') return styles$2.icon_button_tertiary_alt;else if (variant === 'alert') return styles$2.icon_button_alert;else if (variant === 'success') return styles$2.icon_button_success;else return styles$2.icon_button_primary;
|
|
64
70
|
};
|
|
65
71
|
const getStylesBySize = () => {
|
|
66
|
-
if (size === 'xxs') return
|
|
67
|
-
if (size === 'xs') return
|
|
72
|
+
if (size === 'xxs') return styles$2.icon_button_xxs;
|
|
73
|
+
if (size === 'xs') return styles$2.icon_button_xs;else if (size === 'base') return styles$2.icon_button_base;else if (size === 'lg') return styles$2.icon_button_lg;else return styles$2.icon_button_base;
|
|
68
74
|
};
|
|
69
75
|
return /*#__PURE__*/React__default.createElement("button", Object.assign({
|
|
70
|
-
className: `${
|
|
76
|
+
className: `${styles$2.icon_button} ${getStylesByVariant()} ${getStylesBySize()} ${className ?? ''}`
|
|
71
77
|
}, props), icon ?? /*#__PURE__*/React__default.createElement(MinusCircledIcon, null));
|
|
72
78
|
};
|
|
73
79
|
|
|
@@ -3976,9 +3982,9 @@ const Accordion = ({
|
|
|
3976
3982
|
}) => {
|
|
3977
3983
|
const [isAccordionOpen, setIsAccordionOpen] = React.useState(false);
|
|
3978
3984
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
|
3979
|
-
className: `${
|
|
3985
|
+
className: `${styles.accordion} ${className ?? ''}`
|
|
3980
3986
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
3981
|
-
className:
|
|
3987
|
+
className: styles.accordion_header,
|
|
3982
3988
|
onClick: () => setIsAccordionOpen(prev => !prev)
|
|
3983
3989
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
3984
3990
|
size: "base",
|
|
@@ -3995,7 +4001,9 @@ const Accordion = ({
|
|
|
3995
4001
|
})), isAccordionOpen && /*#__PURE__*/React__default.createElement("div", null, children));
|
|
3996
4002
|
};
|
|
3997
4003
|
|
|
3998
|
-
|
|
4004
|
+
var styles$3 = {"newAutocomplete":"SingleSelect-modules_newAutocomplete__AgBoW","MuiAutocomplete-endAdornment":"SingleSelect-modules_MuiAutocomplete-endAdornment__3kdFk","tags-container":"SingleSelect-modules_tags-container__bWCQt","input_top_label":"SingleSelect-modules_input_top_label__a6UdT","MuiOutlinedInput-root":"SingleSelect-modules_MuiOutlinedInput-root__RuMrq","MuiInputBase-root":"SingleSelect-modules_MuiInputBase-root__ByCLC","MuiInputBase-formControl":"SingleSelect-modules_MuiInputBase-formControl__5hTna","text_below":"SingleSelect-modules_text_below__9S4k5","icon":"SingleSelect-modules_icon__2WnMK"};
|
|
4005
|
+
|
|
4006
|
+
const CssTextField = /*#__PURE__*/styles$D.styled(material.TextField)({
|
|
3999
4007
|
'& .MuiInputBase-input': {
|
|
4000
4008
|
color: '#26292E',
|
|
4001
4009
|
fontFamily: 'Open Sans !important',
|
|
@@ -4111,7 +4119,7 @@ const SingleSelect = ({
|
|
|
4111
4119
|
text: `${topLabel ? topLabel : ''} ${required ? '*' : ''}`,
|
|
4112
4120
|
weight: "bold",
|
|
4113
4121
|
size: "base",
|
|
4114
|
-
className:
|
|
4122
|
+
className: styles$3.input_top_label,
|
|
4115
4123
|
required: required
|
|
4116
4124
|
}), /*#__PURE__*/React__default.createElement(Autocomplete, Object.assign({
|
|
4117
4125
|
id: "tags-standard",
|
|
@@ -4150,27 +4158,29 @@ const SingleSelect = ({
|
|
|
4150
4158
|
})),
|
|
4151
4159
|
clearIcon: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
4152
4160
|
fill: "black",
|
|
4153
|
-
className: `${
|
|
4161
|
+
className: `${styles$3.icon}`
|
|
4154
4162
|
}),
|
|
4155
4163
|
popupIcon: /*#__PURE__*/React__default.createElement(ArrowLineDowIcon, {
|
|
4156
4164
|
fill: "black",
|
|
4157
|
-
className: `${
|
|
4165
|
+
className: `${styles$3.icon}`
|
|
4158
4166
|
}),
|
|
4159
|
-
className: `${
|
|
4167
|
+
className: `${styles$3.newAutocomplete}`
|
|
4160
4168
|
}, props)), errorText && /*#__PURE__*/React__default.createElement(Text, {
|
|
4161
4169
|
size: "xs",
|
|
4162
4170
|
color: "#F54C4C",
|
|
4163
4171
|
italic: true,
|
|
4164
4172
|
text: errorText,
|
|
4165
|
-
className:
|
|
4173
|
+
className: styles$3.text_below
|
|
4166
4174
|
}), helperText && /*#__PURE__*/React__default.createElement(Text, {
|
|
4167
4175
|
size: "xs",
|
|
4168
4176
|
italic: true,
|
|
4169
4177
|
text: helperText,
|
|
4170
|
-
className:
|
|
4178
|
+
className: styles$3.text_below
|
|
4171
4179
|
}));
|
|
4172
4180
|
};
|
|
4173
4181
|
|
|
4182
|
+
var styles$4 = {"button_text":"TextForButton-modules_button_text__ti6YE","button_text_bold":"TextForButton-modules_button_text_bold__L1fLC","button_text_sm":"TextForButton-modules_button_text_sm__NXijI","button_text_base":"TextForButton-modules_button_text_base__5ToZ9","button_text_lg":"TextForButton-modules_button_text_lg__s-LLo"};
|
|
4183
|
+
|
|
4174
4184
|
/** This button should only be used in the Button component
|
|
4175
4185
|
* Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=52-787&mode=dev
|
|
4176
4186
|
*/
|
|
@@ -4183,19 +4193,19 @@ const TextForButton = ({
|
|
|
4183
4193
|
...props
|
|
4184
4194
|
}) => {
|
|
4185
4195
|
const getTextSize = () => {
|
|
4186
|
-
if (size === 'sm') return
|
|
4196
|
+
if (size === 'sm') return styles$4.button_text_sm;else if (size === 'base') return styles$4.button_text_base;else if (size === 'lg') return styles$4.button_text_lg;else return styles$4.button_text_base;
|
|
4187
4197
|
};
|
|
4188
4198
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({}, props, {
|
|
4189
4199
|
style: {
|
|
4190
4200
|
color: color
|
|
4191
4201
|
},
|
|
4192
|
-
className: `${
|
|
4202
|
+
className: `${styles$4.button_text} ${bold ? styles$4.button_text_bold : ''} ${className ?? ''} ${getTextSize()}`
|
|
4193
4203
|
}), text);
|
|
4194
4204
|
};
|
|
4195
4205
|
|
|
4196
|
-
var styles = {"checkboxContainer":"Checkbox-module_checkboxContainer__1EvhC"};
|
|
4206
|
+
var styles$5 = {"checkboxContainer":"Checkbox-module_checkboxContainer__1EvhC"};
|
|
4197
4207
|
|
|
4198
|
-
const BpIcon = /*#__PURE__*/styles$
|
|
4208
|
+
const BpIcon = /*#__PURE__*/styles$D.styled('span')(() => ({
|
|
4199
4209
|
borderRadius: '0.25rem',
|
|
4200
4210
|
border: `1px solid #8A8B8E`,
|
|
4201
4211
|
width: '1rem',
|
|
@@ -4214,7 +4224,7 @@ const BpIcon = /*#__PURE__*/styles$6.styled('span')(() => ({
|
|
|
4214
4224
|
cursor: 'not-allowed'
|
|
4215
4225
|
}
|
|
4216
4226
|
}));
|
|
4217
|
-
const BpCheckedIcon = /*#__PURE__*/styles$
|
|
4227
|
+
const BpCheckedIcon = /*#__PURE__*/styles$D.styled(BpIcon)({
|
|
4218
4228
|
backgroundColor: '#0077FF',
|
|
4219
4229
|
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
4220
4230
|
border: `1px solid #0077FF`,
|
|
@@ -4269,7 +4279,7 @@ const Checkbox = ({
|
|
|
4269
4279
|
className
|
|
4270
4280
|
}) => {
|
|
4271
4281
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
4272
|
-
className: `${styles.checkboxContainer} ${className}`,
|
|
4282
|
+
className: `${styles$5.checkboxContainer} ${className}`,
|
|
4273
4283
|
style: {
|
|
4274
4284
|
cursor: disabled ? 'not-allowed' : 'auto'
|
|
4275
4285
|
}
|
|
@@ -4289,7 +4299,9 @@ const Checkbox = ({
|
|
|
4289
4299
|
}));
|
|
4290
4300
|
};
|
|
4291
4301
|
|
|
4292
|
-
|
|
4302
|
+
var styles$6 = {"newAutocomplete":"MultiSelect-modules_newAutocomplete__dsOV3","MuiAutocomplete-endAdornment":"MultiSelect-modules_MuiAutocomplete-endAdornment__FAnRY","tags_container":"MultiSelect-modules_tags_container__zBxat","MuiOutlinedInput-root":"MultiSelect-modules_MuiOutlinedInput-root__23gRS","MuiInputBase-root":"MultiSelect-modules_MuiInputBase-root__Ha7z-","MuiInputBase-formControl":"MultiSelect-modules_MuiInputBase-formControl__IJ5Za","no_scrollbar":"MultiSelect-modules_no_scrollbar__y-0D5","input_top_label":"MultiSelect-modules_input_top_label__AHEc-","text_below":"MultiSelect-modules_text_below__F3i4T","icon":"MultiSelect-modules_icon__UxL7a"};
|
|
4303
|
+
|
|
4304
|
+
const CssTextField$1 = /*#__PURE__*/styles$D.styled(TextField)({
|
|
4293
4305
|
'& .MuiInputBase-input': {
|
|
4294
4306
|
color: '#26292E',
|
|
4295
4307
|
fontFamily: 'Open Sans !important',
|
|
@@ -4412,7 +4424,7 @@ const MultiSelect = ({
|
|
|
4412
4424
|
text: `${topLabel ? topLabel : ''} ${required ? '*' : ''}`,
|
|
4413
4425
|
weight: "bold",
|
|
4414
4426
|
size: "base",
|
|
4415
|
-
className:
|
|
4427
|
+
className: styles$6.input_top_label,
|
|
4416
4428
|
required: required
|
|
4417
4429
|
}), /*#__PURE__*/React__default.createElement(Autocomplete, Object.assign({
|
|
4418
4430
|
id: "tags-standard",
|
|
@@ -4455,7 +4467,7 @@ const MultiSelect = ({
|
|
|
4455
4467
|
})),
|
|
4456
4468
|
renderTags: value => {
|
|
4457
4469
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
4458
|
-
className: `${
|
|
4470
|
+
className: `${styles$6.tags_container} ${styles$6.no_scrollbar}`
|
|
4459
4471
|
}, value.map((option, index) => /*#__PURE__*/React__default.createElement(Chip, {
|
|
4460
4472
|
label: option.label,
|
|
4461
4473
|
size: "small",
|
|
@@ -4480,27 +4492,29 @@ const MultiSelect = ({
|
|
|
4480
4492
|
},
|
|
4481
4493
|
clearIcon: /*#__PURE__*/React__default.createElement(RemoveCircledIcon, {
|
|
4482
4494
|
fill: "black",
|
|
4483
|
-
className: `${
|
|
4495
|
+
className: `${styles$6.icon}`
|
|
4484
4496
|
}),
|
|
4485
4497
|
popupIcon: /*#__PURE__*/React__default.createElement(ArrowLineDowIcon, {
|
|
4486
4498
|
fill: "black",
|
|
4487
|
-
className: `${
|
|
4499
|
+
className: `${styles$6.icon}`
|
|
4488
4500
|
}),
|
|
4489
|
-
className: `${
|
|
4501
|
+
className: `${styles$6.newAutocomplete}`
|
|
4490
4502
|
}, props)), errorText && /*#__PURE__*/React__default.createElement(Text, {
|
|
4491
4503
|
size: "xs",
|
|
4492
4504
|
color: "#F54C4C",
|
|
4493
4505
|
italic: true,
|
|
4494
4506
|
text: errorText,
|
|
4495
|
-
className:
|
|
4507
|
+
className: styles$6.text_below
|
|
4496
4508
|
}), helperText && /*#__PURE__*/React__default.createElement(Text, {
|
|
4497
4509
|
size: "xs",
|
|
4498
4510
|
italic: true,
|
|
4499
4511
|
text: helperText,
|
|
4500
|
-
className:
|
|
4512
|
+
className: styles$6.text_below
|
|
4501
4513
|
}));
|
|
4502
4514
|
};
|
|
4503
4515
|
|
|
4516
|
+
var styles$7 = {"badge":"Badge-modules_badge__rcW9l","badge_idle":"Badge-modules_badge_idle__h2sgJ","badge_info":"Badge-modules_badge_info__pmG6r","badge_success":"Badge-modules_badge_success__B3T1K","badge_warning":"Badge-modules_badge_warning__Fv2f6","badge_critical":"Badge-modules_badge_critical__0-YAa","badge_sm":"Badge-modules_badge_sm__j8EcD","badge_lg":"Badge-modules_badge_lg__R8zxz","badge_base":"Badge-modules_badge_base__kFbf-"};
|
|
4517
|
+
|
|
4504
4518
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=3073-110563&mode=dev */
|
|
4505
4519
|
const Badge = ({
|
|
4506
4520
|
text,
|
|
@@ -4520,13 +4534,13 @@ const Badge = ({
|
|
|
4520
4534
|
if (size === 'lg') return 'base';else if (size === 'sm') return 'xs';else if (size === 'base') return 'sm';else return size;
|
|
4521
4535
|
};
|
|
4522
4536
|
const getStyleByStatus = () => {
|
|
4523
|
-
if (status === 'idle') return
|
|
4537
|
+
if (status === 'idle') return styles$7.badge_idle;else if (status === 'info') return styles$7.badge_info;else if (status === 'success') return styles$7.badge_success;else if (status === 'warning') return styles$7.badge_warning;else if (status === 'critical') return styles$7.badge_critical;else return styles$7.badge;
|
|
4524
4538
|
};
|
|
4525
4539
|
const getSizeByStatus = () => {
|
|
4526
|
-
if (size === 'sm') return
|
|
4540
|
+
if (size === 'sm') return styles$7.badge_sm;else if (size === 'lg') return styles$7.badge_lg;else if (size === 'base') return styles$7.badge_base;else return styles$7.badge_base;
|
|
4527
4541
|
};
|
|
4528
4542
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
|
4529
|
-
className: `${
|
|
4543
|
+
className: `${styles$7.badge} ${getStyleByStatus()} ${getSizeByStatus()} ${className ?? ''}`
|
|
4530
4544
|
}), iconLeft && iconLeft, /*#__PURE__*/React__default.createElement(Text, {
|
|
4531
4545
|
size: getTextSize(),
|
|
4532
4546
|
text: text,
|
|
@@ -4534,6 +4548,8 @@ const Badge = ({
|
|
|
4534
4548
|
}), iconRight && iconRight);
|
|
4535
4549
|
};
|
|
4536
4550
|
|
|
4551
|
+
var styles$8 = {"button":"Button-modules_button__sRnp1","button_primary":"Button-modules_button_primary__H-HCf","button_secondary":"Button-modules_button_secondary__qlR87","button_tertiary":"Button-modules_button_tertiary__aBxX8","button_tertiary_alt":"Button-modules_button_tertiary_alt__Ve3aw","button_alert":"Button-modules_button_alert__yt9Yr","button_success":"Button-modules_button_success__vQC8w","button_sm":"Button-modules_button_sm__uB5fx","button_base":"Button-modules_button_base__SytaD","button_lg":"Button-modules_button_lg__n22vb"};
|
|
4552
|
+
|
|
4537
4553
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=131-253&mode=dev */
|
|
4538
4554
|
const Button = ({
|
|
4539
4555
|
variant = 'primary',
|
|
@@ -4545,19 +4561,21 @@ const Button = ({
|
|
|
4545
4561
|
...props
|
|
4546
4562
|
}) => {
|
|
4547
4563
|
const getStylesByVariant = () => {
|
|
4548
|
-
if (variant === 'primary') return
|
|
4564
|
+
if (variant === 'primary') return styles$8.button_primary;else if (variant === 'secondary') return styles$8.button_secondary;else if (variant === 'tertiary') return styles$8.button_tertiary;else if (variant === 'tertiary-alt') return styles$8.button_tertiary_alt;else if (variant === 'alert') return styles$8.button_alert;else if (variant === 'success') return styles$8.button_success;else return styles$8.button_primary;
|
|
4549
4565
|
};
|
|
4550
4566
|
const getStylesBySize = () => {
|
|
4551
|
-
if (size === 'sm') return
|
|
4567
|
+
if (size === 'sm') return styles$8.button_sm;else if (size === 'base') return styles$8.button_base;else if (size === 'lg') return styles$8.button_lg;else return styles$8.button_base;
|
|
4552
4568
|
};
|
|
4553
4569
|
return /*#__PURE__*/React__default.createElement("button", Object.assign({
|
|
4554
|
-
className: `${
|
|
4570
|
+
className: `${styles$8.button} ${getStylesByVariant()} ${getStylesBySize()} ${className ?? ''}`
|
|
4555
4571
|
}, props), iconLeft && iconLeft, /*#__PURE__*/React__default.createElement(TextForButton, {
|
|
4556
4572
|
text: text,
|
|
4557
4573
|
size: size
|
|
4558
4574
|
}), iconRight && iconRight);
|
|
4559
4575
|
};
|
|
4560
4576
|
|
|
4577
|
+
var styles$9 = {"tag":"Tag-modules_tag__H7-4Y","tag_idle":"Tag-modules_tag_idle__Fq6m8","tag_info":"Tag-modules_tag_info__aMPRZ","tag_success":"Tag-modules_tag_success__2LvMD","tag_warning":"Tag-modules_tag_warning__AIt1v","tag_critical":"Tag-modules_tag_critical__LQoYS","tag_sm":"Tag-modules_tag_sm__6woOo","tag_base":"Tag-modules_tag_base__NFJol"};
|
|
4578
|
+
|
|
4561
4579
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=1359-33355&mode=dev */
|
|
4562
4580
|
const Tag = ({
|
|
4563
4581
|
text,
|
|
@@ -4575,16 +4593,16 @@ const Tag = ({
|
|
|
4575
4593
|
};
|
|
4576
4594
|
const getTagStatus = () => {
|
|
4577
4595
|
if (status === 'idle') {
|
|
4578
|
-
return
|
|
4579
|
-
} else if (status === 'success') return
|
|
4596
|
+
return styles$9.tag_idle;
|
|
4597
|
+
} else if (status === 'success') return styles$9.tag_success;else if (status === 'info') return styles$9.tag_info;else if (status === 'warning') return styles$9.tag_warning;else if (status === 'critical') return styles$9.tag_critical;else return styles$9.tag_idle;
|
|
4580
4598
|
};
|
|
4581
4599
|
const getTagSize = () => {
|
|
4582
4600
|
if (size === 'sm') {
|
|
4583
|
-
return
|
|
4584
|
-
} else if (size === 'base') return
|
|
4601
|
+
return styles$9.tag_sm;
|
|
4602
|
+
} else if (size === 'base') return styles$9.tag_base;else return styles$9.tag_base;
|
|
4585
4603
|
};
|
|
4586
4604
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
|
4587
|
-
className: `${
|
|
4605
|
+
className: `${styles$9.tag} ${getTagStatus()} ${getTagSize()} ${className ?? ''}`
|
|
4588
4606
|
}), iconLeft && iconLeft, /*#__PURE__*/React__default.createElement(Text, {
|
|
4589
4607
|
size: size,
|
|
4590
4608
|
text: text,
|
|
@@ -4592,6 +4610,8 @@ const Tag = ({
|
|
|
4592
4610
|
}), iconRight && iconRight);
|
|
4593
4611
|
};
|
|
4594
4612
|
|
|
4613
|
+
var styles$a = {"lateral_menu":"LateralMenu-modules_lateral_menu__EXD-W","lateral_menu_logo":"LateralMenu-modules_lateral_menu_logo__W-aWG"};
|
|
4614
|
+
|
|
4595
4615
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=3073-110563&mode=dev */
|
|
4596
4616
|
const LateralMenu = ({
|
|
4597
4617
|
isLogoDisplay = false,
|
|
@@ -4602,13 +4622,15 @@ const LateralMenu = ({
|
|
|
4602
4622
|
return /*#__PURE__*/React__default.createElement(Grid, Object.assign({
|
|
4603
4623
|
item: true
|
|
4604
4624
|
}, props, {
|
|
4605
|
-
className: `${
|
|
4625
|
+
className: `${styles$a.lateral_menu}`,
|
|
4606
4626
|
xs: 2
|
|
4607
4627
|
}), isLogoDisplay && /*#__PURE__*/React__default.createElement(LogoNormal, {
|
|
4608
|
-
className:
|
|
4628
|
+
className: styles$a.lateral_menu_logo
|
|
4609
4629
|
}), content);
|
|
4610
4630
|
};
|
|
4611
4631
|
|
|
4632
|
+
var styles$b = {"title":"Title-modules_title__NWXT6","title_italic":"Title-modules_title_italic__qZXuO","title_normal":"Title-modules_title_normal__utLTb","title_xs":"Title-modules_title_xs__X-d4H","title_sm":"Title-modules_title_sm__eLp2K","title_base":"Title-modules_title_base__ydwk0","title_lg":"Title-modules_title_lg__1R6-8","title_xl":"Title-modules_title_xl__TeXu4","title_xxl":"Title-modules_title_xxl__jwlnh","title_xxxl":"Title-modules_title_xxxl__1KOPj","title_xxxxl":"Title-modules_title_xxxxl__3dlSA","title_bold":"Title-modules_title_bold__9YLHA","title_semi_bold":"Title-modules_title_semi_bold__KdD7l","title_regular":"Title-modules_title_regular__g42g-"};
|
|
4633
|
+
|
|
4612
4634
|
/** This text should only be used to display titles
|
|
4613
4635
|
* Figma link: https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=52-357&mode=dev
|
|
4614
4636
|
*/
|
|
@@ -4623,10 +4645,10 @@ const Title = ({
|
|
|
4623
4645
|
...props
|
|
4624
4646
|
}) => {
|
|
4625
4647
|
const getTextSize = () => {
|
|
4626
|
-
if (size === 'xs') return
|
|
4648
|
+
if (size === 'xs') return styles$b.title_xs;else if (size === 'sm') return styles$b.title_sm;else if (size === 'base') return styles$b.title_base;else if (size === 'lg') return styles$b.title_lg;else if (size === 'xl') return styles$b.title_xl;else if (size === 'xxl') return styles$b.title_xxl;else if (size === 'xxxl') return styles$b.title_xxxl;else if (size === 'xxxxl') return styles$b.title_xxxxl;else return styles$b.title_base;
|
|
4627
4649
|
};
|
|
4628
4650
|
const getTextWeight = () => {
|
|
4629
|
-
if (weight === 'semi-bold') return
|
|
4651
|
+
if (weight === 'semi-bold') return styles$b.title_semi_bold;else if (weight === 'bold') return styles$b.title_bold;else if (weight === 'regular') return styles$b.title_regular;else return styles$b.title_regular;
|
|
4630
4652
|
};
|
|
4631
4653
|
switch (type) {
|
|
4632
4654
|
case 'h1':
|
|
@@ -4634,53 +4656,55 @@ const Title = ({
|
|
|
4634
4656
|
style: {
|
|
4635
4657
|
color: color
|
|
4636
4658
|
},
|
|
4637
|
-
className: `${
|
|
4659
|
+
className: `${styles$b.title} ${italic ? styles$b.title_italic : styles$b.title_normal} ${getTextWeight()} ${className ?? ''} ${getTextSize()}`
|
|
4638
4660
|
}), text);
|
|
4639
4661
|
case 'h2':
|
|
4640
4662
|
return /*#__PURE__*/React__default.createElement("h2", Object.assign({}, props, {
|
|
4641
4663
|
style: {
|
|
4642
4664
|
color: color
|
|
4643
4665
|
},
|
|
4644
|
-
className: `${
|
|
4666
|
+
className: `${styles$b.title} ${italic ? styles$b.title_italic : styles$b.title_normal} ${getTextWeight()} ${className ?? ''} ${getTextSize()}`
|
|
4645
4667
|
}), text);
|
|
4646
4668
|
case 'h3':
|
|
4647
4669
|
return /*#__PURE__*/React__default.createElement("h3", Object.assign({}, props, {
|
|
4648
4670
|
style: {
|
|
4649
4671
|
color: color
|
|
4650
4672
|
},
|
|
4651
|
-
className: `${
|
|
4673
|
+
className: `${styles$b.title} ${italic ? styles$b.title_italic : styles$b.title_normal} ${getTextWeight()} ${className ?? ''} ${getTextSize()}`
|
|
4652
4674
|
}), text);
|
|
4653
4675
|
case 'h4':
|
|
4654
4676
|
return /*#__PURE__*/React__default.createElement("h4", Object.assign({}, props, {
|
|
4655
4677
|
style: {
|
|
4656
4678
|
color: color
|
|
4657
4679
|
},
|
|
4658
|
-
className: `${
|
|
4680
|
+
className: `${styles$b.title} ${italic ? styles$b.title_italic : styles$b.title_normal} ${getTextWeight()} ${className ?? ''} ${getTextSize()}`
|
|
4659
4681
|
}), text);
|
|
4660
4682
|
case 'h5':
|
|
4661
4683
|
return /*#__PURE__*/React__default.createElement("h5", Object.assign({}, props, {
|
|
4662
4684
|
style: {
|
|
4663
4685
|
color: color
|
|
4664
4686
|
},
|
|
4665
|
-
className: `${
|
|
4687
|
+
className: `${styles$b.title} ${italic ? styles$b.title_italic : styles$b.title_normal} ${getTextWeight()} ${className ?? ''} ${getTextSize()}`
|
|
4666
4688
|
}), text);
|
|
4667
4689
|
case 'h6':
|
|
4668
4690
|
return /*#__PURE__*/React__default.createElement("h6", Object.assign({}, props, {
|
|
4669
4691
|
style: {
|
|
4670
4692
|
color: color
|
|
4671
4693
|
},
|
|
4672
|
-
className: `${
|
|
4694
|
+
className: `${styles$b.title} ${italic ? styles$b.title_italic : styles$b.title_normal} ${getTextWeight()} ${className ?? ''} ${getTextSize()}`
|
|
4673
4695
|
}), text);
|
|
4674
4696
|
default:
|
|
4675
4697
|
return /*#__PURE__*/React__default.createElement("h2", Object.assign({}, props, {
|
|
4676
4698
|
style: {
|
|
4677
4699
|
color: color
|
|
4678
4700
|
},
|
|
4679
|
-
className: `${
|
|
4701
|
+
className: `${styles$b.title} ${italic ? styles$b.title_italic : styles$b.title_normal} ${getTextWeight()} ${className ?? ''} ${getTextSize()}`
|
|
4680
4702
|
}), text);
|
|
4681
4703
|
}
|
|
4682
4704
|
};
|
|
4683
4705
|
|
|
4706
|
+
var styles$c = {"modal":"Modal-modules_modal__M6coU","modal_content":"Modal-modules_modal_content__kI5NN","modal_header":"Modal-modules_modal_header__bLwe9","modal_buttons_container":"Modal-modules_modal_buttons_container__VIykY","modal_overlay":"Modal-modules_modal_overlay__sU-UF"};
|
|
4707
|
+
|
|
4684
4708
|
/** Figma link full-height : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=997-7695&mode=dev
|
|
4685
4709
|
* Figma link overlay : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=2447-42540&mode=dev
|
|
4686
4710
|
*/
|
|
@@ -4714,16 +4738,16 @@ const Modal = ({
|
|
|
4714
4738
|
return /*#__PURE__*/React__default.createElement(MuiModal, {
|
|
4715
4739
|
"aria-labelledby": "transition-modal-title",
|
|
4716
4740
|
"aria-describedby": "transition-modal-description",
|
|
4717
|
-
className: `${
|
|
4741
|
+
className: `${styles$c.modal_overlay} ${className ?? ''}`,
|
|
4718
4742
|
open: open,
|
|
4719
4743
|
onClose: onClose,
|
|
4720
4744
|
closeAfterTransition: true
|
|
4721
4745
|
}, /*#__PURE__*/React__default.createElement(Fade, {
|
|
4722
4746
|
in: open
|
|
4723
4747
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4724
|
-
className:
|
|
4748
|
+
className: styles$c.modal_content
|
|
4725
4749
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4726
|
-
className: `${
|
|
4750
|
+
className: `${styles$c.modal_header}`
|
|
4727
4751
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
4728
4752
|
text: title,
|
|
4729
4753
|
weight: "bold",
|
|
@@ -4735,7 +4759,7 @@ const Modal = ({
|
|
|
4735
4759
|
}),
|
|
4736
4760
|
onClick: () => onClose()
|
|
4737
4761
|
})), children, /*#__PURE__*/React__default.createElement("div", {
|
|
4738
|
-
className:
|
|
4762
|
+
className: styles$c.modal_buttons_container
|
|
4739
4763
|
}, cancelText && onClose && /*#__PURE__*/React__default.createElement(Button, {
|
|
4740
4764
|
text: cancelText,
|
|
4741
4765
|
variant: "tertiary",
|
|
@@ -4748,16 +4772,16 @@ const Modal = ({
|
|
|
4748
4772
|
return /*#__PURE__*/React__default.createElement(MuiModal, {
|
|
4749
4773
|
"aria-labelledby": "transition-modal-title",
|
|
4750
4774
|
"aria-describedby": "transition-modal-description",
|
|
4751
|
-
className: `${
|
|
4775
|
+
className: `${styles$c.modal} ${className}`,
|
|
4752
4776
|
open: open,
|
|
4753
4777
|
onClose: onClose,
|
|
4754
4778
|
closeAfterTransition: true
|
|
4755
4779
|
}, /*#__PURE__*/React__default.createElement(Fade, {
|
|
4756
4780
|
in: open
|
|
4757
4781
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4758
|
-
className:
|
|
4782
|
+
className: styles$c.modal_content
|
|
4759
4783
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4760
|
-
className: `${
|
|
4784
|
+
className: `${styles$c.modal_header}`
|
|
4761
4785
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
4762
4786
|
text: title,
|
|
4763
4787
|
weight: "semi-bold",
|
|
@@ -4769,7 +4793,7 @@ const Modal = ({
|
|
|
4769
4793
|
}),
|
|
4770
4794
|
onClick: () => onClose()
|
|
4771
4795
|
})), children, /*#__PURE__*/React__default.createElement("div", {
|
|
4772
|
-
className:
|
|
4796
|
+
className: styles$c.modal_buttons_container
|
|
4773
4797
|
}, cancelText && onClose && /*#__PURE__*/React__default.createElement(Button, {
|
|
4774
4798
|
text: cancelText,
|
|
4775
4799
|
variant: "tertiary",
|
|
@@ -4781,6 +4805,8 @@ const Modal = ({
|
|
|
4781
4805
|
}
|
|
4782
4806
|
};
|
|
4783
4807
|
|
|
4808
|
+
var styles$d = {"text_with_link":"TextWithLink-modules_text_with_link__k8Sec","text_with_link_underline":"TextWithLink-modules_text_with_link_underline__NEM4B","text_with_link_line_through":"TextWithLink-modules_text_with_link_line_through__bAyFf","text_with_link_required":"TextWithLink-modules_text_with_link_required__K7Wwc","text_with_link_xs":"TextWithLink-modules_text_with_link_xs__krmns","text_with_link_regular":"TextWithLink-modules_text_with_link_regular__AI0iP","tetext_with_linkxt":"TextWithLink-modules_tetext_with_linkxt__3mLSu","text_with_link_sm":"TextWithLink-modules_text_with_link_sm__LpFOe","text_with_link_base":"TextWithLink-modules_text_with_link_base__--0Z-","text_with_link_lg":"TextWithLink-modules_text_with_link_lg__y4Eya","text_with_link_xl":"TextWithLink-modules_text_with_link_xl__87H1p","text_with_link_xxl":"TextWithLink-modules_text_with_link_xxl__8LJ-D","text_with_link_xxxl":"TextWithLink-modules_text_with_link_xxxl__Cptsx","text_with_link_xxxxl":"TextWithLink-modules_text_with_link_xxxxl__1odyE","text_with_link_italic":"TextWithLink-modules_text_with_link_italic__ZK6Nu","text-regular":"TextWithLink-modules_text-regular__Pz5Jn","text_with_link_bold":"TextWithLink-modules_text_with_link_bold__cdXR2","text_with_link_semi_bold":"TextWithLink-modules_text_with_link_semi_bold__1KNRW"};
|
|
4809
|
+
|
|
4784
4810
|
/** This text should be use to display basic text */
|
|
4785
4811
|
const TextWithLink = ({
|
|
4786
4812
|
text,
|
|
@@ -4795,24 +4821,26 @@ const TextWithLink = ({
|
|
|
4795
4821
|
...props
|
|
4796
4822
|
}) => {
|
|
4797
4823
|
const getTextSize = () => {
|
|
4798
|
-
if (size === 'xs') return
|
|
4824
|
+
if (size === 'xs') return styles$d.text_with_link_xs;else if (size === 'sm') return styles$d.text_with_link_sm;else if (size === 'base') return styles$d.text_with_link_base;else if (size === 'lg') return styles$d.text_with_link_lg;else if (size === 'xl') return styles$d.text_with_link_xl;else if (size === 'xxl') return styles$d.text_with_link_xxl;else if (size === 'xxxl') return styles$d.text_with_link_xxxl;else if (size === 'xxxxl') return styles$d.text_with_link_xxxxl;else return styles$d.text_with_link_base;
|
|
4799
4825
|
};
|
|
4800
4826
|
const getTextWeight = () => {
|
|
4801
|
-
if (weight === 'semi-bold') return
|
|
4827
|
+
if (weight === 'semi-bold') return styles$d.text_with_link_semi_bold;else if (weight === 'bold') return styles$d.text_with_link_bold;else if (weight === 'regular') return styles$d.text_with_link_regular;else return styles$d.text_with_link_regular;
|
|
4802
4828
|
};
|
|
4803
4829
|
const getTextDecoration = () => {
|
|
4804
|
-
if (textDecoration === 'underline') return
|
|
4830
|
+
if (textDecoration === 'underline') return styles$d.text_with_link_underline;else if (textDecoration === 'line-through') return styles$d.text_with_link_line_through;else return '';
|
|
4805
4831
|
};
|
|
4806
4832
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({}, props, {
|
|
4807
4833
|
style: {
|
|
4808
4834
|
color: color
|
|
4809
4835
|
},
|
|
4810
|
-
className: `${
|
|
4836
|
+
className: `${styles$d.text_with_link} ${italic && styles$d.text_with_link_italic} ${getTextWeight()} ${getTextDecoration()} ${className} ${getTextSize()}`
|
|
4811
4837
|
}), text, /*#__PURE__*/React__default.createElement("a", {
|
|
4812
4838
|
href: link
|
|
4813
4839
|
}, textLink));
|
|
4814
4840
|
};
|
|
4815
4841
|
|
|
4842
|
+
var styles$e = {"notification_banner":"Banner-modules_notification_banner__JKUGY","notification_banner_header":"Banner-modules_notification_banner_header__L3uAa","notification_banner_error":"Banner-modules_notification_banner_error__ThRKH","notification_banner_warning":"Banner-modules_notification_banner_warning__cbz4c","notification_banner_info":"Banner-modules_notification_banner_info__-ByX7","notification_banner_success":"Banner-modules_notification_banner_success__QCOL-"};
|
|
4843
|
+
|
|
4816
4844
|
/**
|
|
4817
4845
|
* Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=2527-33150&mode=dev
|
|
4818
4846
|
*/
|
|
@@ -4861,19 +4889,19 @@ const Banner = ({
|
|
|
4861
4889
|
};
|
|
4862
4890
|
const getBannerColor = () => {
|
|
4863
4891
|
if (type === 'error') {
|
|
4864
|
-
return
|
|
4892
|
+
return styles$e.notification_banner_error;
|
|
4865
4893
|
} else if (type === 'warning') {
|
|
4866
|
-
return
|
|
4894
|
+
return styles$e.notification_banner_warning;
|
|
4867
4895
|
} else if (type === 'success') {
|
|
4868
|
-
return
|
|
4896
|
+
return styles$e.notification_banner_success;
|
|
4869
4897
|
} else {
|
|
4870
|
-
return
|
|
4898
|
+
return styles$e.notification_banner_info;
|
|
4871
4899
|
}
|
|
4872
4900
|
};
|
|
4873
4901
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
|
4874
|
-
className: `${
|
|
4902
|
+
className: `${styles$e.notification_banner} ${getBannerColor()} ${className}`
|
|
4875
4903
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
4876
|
-
className:
|
|
4904
|
+
className: styles$e.notification_banner_header
|
|
4877
4905
|
}, getBannerIcon(), title && /*#__PURE__*/React__default.createElement(Title, {
|
|
4878
4906
|
text: title,
|
|
4879
4907
|
weight: "semi-bold",
|
|
@@ -4912,6 +4940,8 @@ const NotificationIcon = ({
|
|
|
4912
4940
|
});
|
|
4913
4941
|
};
|
|
4914
4942
|
|
|
4943
|
+
var styles$f = {"link":"Link-modules_link__oh3DM","link_xs":"Link-modules_link_xs__2kK3a","link_regular":"Link-modules_link_regular__bqoCS","link_sm":"Link-modules_link_sm__s-QOe","link_base":"Link-modules_link_base__OMDy1","link_lg":"Link-modules_link_lg__vL7vA","link_xl":"Link-modules_link_xl__sjSW5","link_xxl":"Link-modules_link_xxl__f1Umz","link_xxxl":"Link-modules_link_xxxl__R8765","link_xxxxl":"Link-modules_link_xxxxl__fK-xy","link_bold":"Link-modules_link_bold__lh0OG","link_semi_bold":"Link-modules_link_semi_bold__nUvs5"};
|
|
4944
|
+
|
|
4915
4945
|
/** This text should be use to display basic text */
|
|
4916
4946
|
const Link = ({
|
|
4917
4947
|
text,
|
|
@@ -4924,10 +4954,10 @@ const Link = ({
|
|
|
4924
4954
|
...props
|
|
4925
4955
|
}) => {
|
|
4926
4956
|
const getLinkSize = () => {
|
|
4927
|
-
if (size === 'xs') return
|
|
4957
|
+
if (size === 'xs') return styles$f.link_xs;else if (size === 'sm') return styles$f.link_sm;else if (size === 'base') return styles$f.link_base;else if (size === 'lg') return styles$f.link_lg;else if (size === 'xl') return styles$f.link_xl;else if (size === 'xxl') return styles$f.link_xxl;else if (size === 'xxxl') return styles$f.link_xxxl;else if (size === 'xxxxl') return styles$f.link_xxxxl;else return styles$f.link_base;
|
|
4928
4958
|
};
|
|
4929
4959
|
const getLinkWeight = () => {
|
|
4930
|
-
if (weight === 'semi-bold') return
|
|
4960
|
+
if (weight === 'semi-bold') return styles$f.link_semi_bold;else if (weight === 'bold') return styles$f.link_bold;else if (weight === 'regular') return styles$f.link_regular;else return styles$f.link_regular;
|
|
4931
4961
|
};
|
|
4932
4962
|
if (isExternal) {
|
|
4933
4963
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -4938,7 +4968,7 @@ const Link = ({
|
|
|
4938
4968
|
style: {
|
|
4939
4969
|
color: color
|
|
4940
4970
|
},
|
|
4941
|
-
className: `${
|
|
4971
|
+
className: `${styles$f.link} ${getLinkWeight()} ${className} ${getLinkSize()}`
|
|
4942
4972
|
}), text));
|
|
4943
4973
|
} else {
|
|
4944
4974
|
return /*#__PURE__*/React__default.createElement("a", {
|
|
@@ -4947,11 +4977,13 @@ const Link = ({
|
|
|
4947
4977
|
style: {
|
|
4948
4978
|
color: color
|
|
4949
4979
|
},
|
|
4950
|
-
className: `${
|
|
4980
|
+
className: `${styles$f.link} ${getLinkWeight()} ${className} ${getLinkSize()}`
|
|
4951
4981
|
}), text));
|
|
4952
4982
|
}
|
|
4953
4983
|
};
|
|
4954
4984
|
|
|
4985
|
+
var styles$g = {"notification_toast":"Toast-modules_notification_toast__otVa9","moveleft":"Toast-modules_moveleft__i4e82","notification_toast_content":"Toast-modules_notification_toast_content__-TyBV","toast_link":"Toast-modules_toast_link__L4atQ","close_toast_btn":"Toast-modules_close_toast_btn__CM7Mm","close_toast_btn_error":"Toast-modules_close_toast_btn_error__Xbym2","close_toast_btn_warning":"Toast-modules_close_toast_btn_warning__jbCWI","close_toast_btn_info":"Toast-modules_close_toast_btn_info__wYYGo","close_toast_btn_success":"Toast-modules_close_toast_btn_success__ptQCk","notification_toast_error":"Toast-modules_notification_toast_error__NAR9K","notification_toast_warning":"Toast-modules_notification_toast_warning__yHNtZ","notification_toast_info":"Toast-modules_notification_toast_info__YpfW7","notification_toast_success":"Toast-modules_notification_toast_success__dM5fo"};
|
|
4986
|
+
|
|
4955
4987
|
/**
|
|
4956
4988
|
* Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=2527-33231&mode=dev
|
|
4957
4989
|
*/
|
|
@@ -4977,30 +5009,30 @@ const Toast = ({
|
|
|
4977
5009
|
};
|
|
4978
5010
|
const getCloseBtnStyleByType = () => {
|
|
4979
5011
|
if (type === 'error') {
|
|
4980
|
-
return
|
|
5012
|
+
return styles$g.close_toast_btn_error;
|
|
4981
5013
|
} else if (type === 'warning') {
|
|
4982
|
-
return
|
|
5014
|
+
return styles$g.close_toast_btn_warning;
|
|
4983
5015
|
} else if (type === 'success') {
|
|
4984
|
-
return
|
|
5016
|
+
return styles$g.close_toast_btn_success;
|
|
4985
5017
|
} else {
|
|
4986
|
-
return
|
|
5018
|
+
return styles$g.close_toast_btn_info;
|
|
4987
5019
|
}
|
|
4988
5020
|
};
|
|
4989
5021
|
const getToastStyleByType = () => {
|
|
4990
5022
|
if (type === 'error') {
|
|
4991
|
-
return
|
|
5023
|
+
return styles$g.notification_toast_error;
|
|
4992
5024
|
} else if (type === 'warning') {
|
|
4993
|
-
return
|
|
5025
|
+
return styles$g.notification_toast_warning;
|
|
4994
5026
|
} else if (type === 'success') {
|
|
4995
|
-
return
|
|
5027
|
+
return styles$g.notification_toast_success;
|
|
4996
5028
|
} else {
|
|
4997
|
-
return
|
|
5029
|
+
return styles$g.notification_toast_info;
|
|
4998
5030
|
}
|
|
4999
5031
|
};
|
|
5000
5032
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({}, props, {
|
|
5001
|
-
className: `${
|
|
5033
|
+
className: `${styles$g.notification_toast} ${getToastStyleByType()} ${className}`
|
|
5002
5034
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
5003
|
-
className:
|
|
5035
|
+
className: styles$g.notification_toast_content
|
|
5004
5036
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
5005
5037
|
text: content,
|
|
5006
5038
|
weight: "regular",
|
|
@@ -5009,9 +5041,9 @@ const Toast = ({
|
|
|
5009
5041
|
}), link && textLink && /*#__PURE__*/React__default.createElement(Link, {
|
|
5010
5042
|
text: textLink,
|
|
5011
5043
|
link: link,
|
|
5012
|
-
className:
|
|
5044
|
+
className: styles$g.toast_link
|
|
5013
5045
|
})), /*#__PURE__*/React__default.createElement("button", {
|
|
5014
|
-
className: `${
|
|
5046
|
+
className: `${styles$g.close_toast_btn} ${getCloseBtnStyleByType()}`,
|
|
5015
5047
|
onClick: () => {
|
|
5016
5048
|
}
|
|
5017
5049
|
}, /*#__PURE__*/React__default.createElement(AddIcon, null)));
|
|
@@ -5039,6 +5071,8 @@ const useOnClickOutside = ({
|
|
|
5039
5071
|
}, [isOpen, listener, elementRef]);
|
|
5040
5072
|
};
|
|
5041
5073
|
|
|
5074
|
+
var styles$h = {"popover":"Popover-modules_popover__VdYpG","popover_header":"Popover-modules_popover_header__-zSVj","open":"Popover-modules_open__WxFDw","popover_action":"Popover-modules_popover_action__M2Z4q"};
|
|
5075
|
+
|
|
5042
5076
|
const Popover = ({
|
|
5043
5077
|
onClose,
|
|
5044
5078
|
open,
|
|
@@ -5057,11 +5091,11 @@ const Popover = ({
|
|
|
5057
5091
|
return null;
|
|
5058
5092
|
}
|
|
5059
5093
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5060
|
-
className: `${
|
|
5094
|
+
className: `${styles$h.popover} ${open && styles$h.open} ${className}`,
|
|
5061
5095
|
ref: ref,
|
|
5062
5096
|
style: style
|
|
5063
5097
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5064
|
-
className:
|
|
5098
|
+
className: styles$h.popover_header
|
|
5065
5099
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
5066
5100
|
text: title,
|
|
5067
5101
|
color: "gray",
|
|
@@ -5076,7 +5110,7 @@ const Popover = ({
|
|
|
5076
5110
|
return null;
|
|
5077
5111
|
}
|
|
5078
5112
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5079
|
-
className: `${
|
|
5113
|
+
className: `${styles$h.popover_action} ${item.className}`,
|
|
5080
5114
|
key: index,
|
|
5081
5115
|
onClick: item.onClick
|
|
5082
5116
|
}, item.icon && item.icon, /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -5086,9 +5120,9 @@ const Popover = ({
|
|
|
5086
5120
|
}));
|
|
5087
5121
|
};
|
|
5088
5122
|
|
|
5089
|
-
var styles$
|
|
5123
|
+
var styles$i = {"radioBtnWrapper":"Radio-module_radioBtnWrapper__ZE-oy","MuiRadio-root":"Radio-module_MuiRadio-root__1Mw0W"};
|
|
5090
5124
|
|
|
5091
|
-
const BpIcon$1 = /*#__PURE__*/styles$
|
|
5125
|
+
const BpIcon$1 = /*#__PURE__*/styles$D.styled('span')(() => ({
|
|
5092
5126
|
borderRadius: '50%',
|
|
5093
5127
|
width: 16,
|
|
5094
5128
|
height: 16,
|
|
@@ -5104,7 +5138,7 @@ const BpIcon$1 = /*#__PURE__*/styles$6.styled('span')(() => ({
|
|
|
5104
5138
|
background: 'rgba(206,217,224,.5)'
|
|
5105
5139
|
}
|
|
5106
5140
|
}));
|
|
5107
|
-
const BpCheckedIcon$1 = /*#__PURE__*/styles$
|
|
5141
|
+
const BpCheckedIcon$1 = /*#__PURE__*/styles$D.styled(BpIcon$1)({
|
|
5108
5142
|
backgroundColor: '#0077FF',
|
|
5109
5143
|
border: 'none',
|
|
5110
5144
|
width: 16,
|
|
@@ -5130,7 +5164,7 @@ const Radio = ({
|
|
|
5130
5164
|
className
|
|
5131
5165
|
}) => {
|
|
5132
5166
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5133
|
-
className: `${styles$
|
|
5167
|
+
className: `${styles$i.radioBtnWrapper} ${className}`
|
|
5134
5168
|
}, leftLabel && /*#__PURE__*/React__default.createElement(Text, {
|
|
5135
5169
|
text: leftLabel,
|
|
5136
5170
|
size: "sm"
|
|
@@ -5151,7 +5185,7 @@ const Radio = ({
|
|
|
5151
5185
|
}));
|
|
5152
5186
|
};
|
|
5153
5187
|
|
|
5154
|
-
var styles$
|
|
5188
|
+
var styles$j = {"step_number":"Step-module_step_number__nm2mL","left_container":"Step-module_left_container__tFgSy","step_container":"Step-module_step_container__t01w0","step_icon_container":"Step-module_step_icon_container__DDASj","step_line":"Step-module_step_line__R2Ezc","step_completed_icon":"Step-module_step_completed_icon__yWCat","step_warning_icon":"Step-module_step_warning_icon__WGjWJ"};
|
|
5155
5189
|
|
|
5156
5190
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=1073-14316&mode=dev */
|
|
5157
5191
|
const Step = ({
|
|
@@ -5168,13 +5202,13 @@ const Step = ({
|
|
|
5168
5202
|
} else if (status === 'not-completed') return '#8A8B8E';else if (status === 'warning') return '#F54C4C';else if (status === 'active') return '#0077FF';else if (status === 'completed') return '#5CBB65';else if (status === 'hover-edit') return '#0077FF';else return '#004799';
|
|
5169
5203
|
};
|
|
5170
5204
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
5171
|
-
className: styles$
|
|
5205
|
+
className: styles$j.step_container
|
|
5172
5206
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
5173
|
-
className: styles$
|
|
5207
|
+
className: styles$j.step_container
|
|
5174
5208
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
5175
|
-
className: styles$
|
|
5209
|
+
className: styles$j.step_icon_container
|
|
5176
5210
|
}, status !== 'warning' && status !== 'completed' && /*#__PURE__*/React__default.createElement("div", {
|
|
5177
|
-
className: styles$
|
|
5211
|
+
className: styles$j.step_number,
|
|
5178
5212
|
style: {
|
|
5179
5213
|
borderColor: getStatusColor()
|
|
5180
5214
|
}
|
|
@@ -5184,12 +5218,12 @@ const Step = ({
|
|
|
5184
5218
|
weight: "regular",
|
|
5185
5219
|
color: getStatusColor()
|
|
5186
5220
|
})), status === 'warning' && /*#__PURE__*/React__default.createElement(AlertCircledIcon, {
|
|
5187
|
-
className: styles$
|
|
5221
|
+
className: styles$j.step_warning_icon
|
|
5188
5222
|
}), status === 'completed' && /*#__PURE__*/React__default.createElement(CheckedCircled, {
|
|
5189
5223
|
strokeWidth: "0",
|
|
5190
|
-
className: styles$
|
|
5224
|
+
className: styles$j.step_completed_icon
|
|
5191
5225
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
5192
|
-
className: styles$
|
|
5226
|
+
className: styles$j.step_line
|
|
5193
5227
|
}))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Title, {
|
|
5194
5228
|
weight: "bold",
|
|
5195
5229
|
size: "base",
|
|
@@ -5203,7 +5237,7 @@ const Step = ({
|
|
|
5203
5237
|
})));
|
|
5204
5238
|
};
|
|
5205
5239
|
|
|
5206
|
-
var styles$
|
|
5240
|
+
var styles$k = {"switchWrapper":"Switch-module_switchWrapper__daXCz"};
|
|
5207
5241
|
|
|
5208
5242
|
const CustomSwitch = /*#__PURE__*/system.styled(material.Switch)({
|
|
5209
5243
|
'& .MuiSwitch-track': {
|
|
@@ -5231,7 +5265,7 @@ const Switch = ({
|
|
|
5231
5265
|
className
|
|
5232
5266
|
}) => {
|
|
5233
5267
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5234
|
-
className: `${styles$
|
|
5268
|
+
className: `${styles$k.switchWrapper} ${className}`
|
|
5235
5269
|
}, label && /*#__PURE__*/React__default.createElement(Title, {
|
|
5236
5270
|
text: label,
|
|
5237
5271
|
weight: "bold",
|
|
@@ -5247,7 +5281,7 @@ const Switch = ({
|
|
|
5247
5281
|
}));
|
|
5248
5282
|
};
|
|
5249
5283
|
|
|
5250
|
-
var styles$
|
|
5284
|
+
var styles$l = {"tooltip_layout":"TooltipCustomLayout-module_tooltip_layout__o1GBH","tooltip_layout_header":"TooltipCustomLayout-module_tooltip_layout_header__v6S3f","tooltip_layout_actions":"TooltipCustomLayout-module_tooltip_layout_actions__CMSoi"};
|
|
5251
5285
|
|
|
5252
5286
|
const TooltipLayout = ({
|
|
5253
5287
|
tooltipTitle,
|
|
@@ -5267,9 +5301,9 @@ const TooltipLayout = ({
|
|
|
5267
5301
|
buttonTwoOnClick
|
|
5268
5302
|
}) => {
|
|
5269
5303
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5270
|
-
className: styles$
|
|
5304
|
+
className: styles$l.tooltip_layout
|
|
5271
5305
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("div", {
|
|
5272
|
-
className: styles$
|
|
5306
|
+
className: styles$l.tooltip_layout_header
|
|
5273
5307
|
}, /*#__PURE__*/React__default.createElement(Title, {
|
|
5274
5308
|
text: tooltipTitle,
|
|
5275
5309
|
size: "sm",
|
|
@@ -5282,11 +5316,11 @@ const TooltipLayout = ({
|
|
|
5282
5316
|
})), tooltipDescription && /*#__PURE__*/React__default.createElement(Text, {
|
|
5283
5317
|
text: tooltipDescription,
|
|
5284
5318
|
size: "xs",
|
|
5285
|
-
className: styles$
|
|
5319
|
+
className: styles$l.tooltip_layout_description
|
|
5286
5320
|
}), customContent && /*#__PURE__*/React__default.createElement("div", {
|
|
5287
|
-
className: styles$
|
|
5321
|
+
className: styles$l.tooltip_layout_content
|
|
5288
5322
|
}, customContent)), /*#__PURE__*/React__default.createElement("div", {
|
|
5289
|
-
className: styles$
|
|
5323
|
+
className: styles$l.tooltip_layout_actions
|
|
5290
5324
|
}, buttonOneText && /*#__PURE__*/React__default.createElement(Button, {
|
|
5291
5325
|
text: buttonOneText,
|
|
5292
5326
|
size: "sm",
|
|
@@ -5304,7 +5338,7 @@ const TooltipLayout = ({
|
|
|
5304
5338
|
})));
|
|
5305
5339
|
};
|
|
5306
5340
|
|
|
5307
|
-
const StyledTooltip = /*#__PURE__*/styles$
|
|
5341
|
+
const StyledTooltip = /*#__PURE__*/styles$D.styled(material.Tooltip)({
|
|
5308
5342
|
[`& .${Tooltip$1.tooltipClasses.tooltip}`]: {
|
|
5309
5343
|
backgroundColor: '#fff'
|
|
5310
5344
|
}
|
|
@@ -5379,6 +5413,8 @@ const Tooltip = ({
|
|
|
5379
5413
|
}, children);
|
|
5380
5414
|
};
|
|
5381
5415
|
|
|
5416
|
+
var styles$m = {"table_header":"header-modules_table_header__tWpCj","header_cell":"header-modules_header_cell__3OmZ3"};
|
|
5417
|
+
|
|
5382
5418
|
const TableHeader = ({
|
|
5383
5419
|
headers,
|
|
5384
5420
|
isSelectable,
|
|
@@ -5386,7 +5422,7 @@ const TableHeader = ({
|
|
|
5386
5422
|
selectAll
|
|
5387
5423
|
}) => {
|
|
5388
5424
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5389
|
-
className:
|
|
5425
|
+
className: styles$m.table_header
|
|
5390
5426
|
}, isSelectable && selectAll && areAllSelected !== undefined && /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
5391
5427
|
checked: areAllSelected,
|
|
5392
5428
|
onChange: () => selectAll()
|
|
@@ -5414,7 +5450,7 @@ const TableHeader = ({
|
|
|
5414
5450
|
style: {
|
|
5415
5451
|
flex: header.flexWidth ?? 1
|
|
5416
5452
|
},
|
|
5417
|
-
className:
|
|
5453
|
+
className: styles$m.header_cell
|
|
5418
5454
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
5419
5455
|
text: header.name,
|
|
5420
5456
|
weight: header.weight,
|
|
@@ -5423,6 +5459,10 @@ const TableHeader = ({
|
|
|
5423
5459
|
}), header.icon && header.icon)));
|
|
5424
5460
|
};
|
|
5425
5461
|
|
|
5462
|
+
var styles$n = {"rows":"rows-modules_rows__2uSRy","row":"rows-modules_row__FcChg"};
|
|
5463
|
+
|
|
5464
|
+
var styles$o = {"cell":"table-cell-modules_cell__ZorMw"};
|
|
5465
|
+
|
|
5426
5466
|
const TableCell = ({
|
|
5427
5467
|
text,
|
|
5428
5468
|
weight = 'regular',
|
|
@@ -5433,7 +5473,7 @@ const TableCell = ({
|
|
|
5433
5473
|
select
|
|
5434
5474
|
}) => {
|
|
5435
5475
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5436
|
-
className: `${
|
|
5476
|
+
className: `${styles$o.cell} ${className && className}`,
|
|
5437
5477
|
style: {
|
|
5438
5478
|
flex: flexWidth
|
|
5439
5479
|
}
|
|
@@ -5457,11 +5497,11 @@ const TableRows = ({
|
|
|
5457
5497
|
}) => {
|
|
5458
5498
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5459
5499
|
id: id,
|
|
5460
|
-
className: `${
|
|
5500
|
+
className: `${styles$n.rows} ${rowsClassName}`
|
|
5461
5501
|
}, rows.map((row, index) => {
|
|
5462
5502
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5463
5503
|
key: `row-${index}`,
|
|
5464
|
-
className: `${
|
|
5504
|
+
className: `${styles$n.row} ${row.className}`,
|
|
5465
5505
|
onClick: row.onClickRow,
|
|
5466
5506
|
id: row.id
|
|
5467
5507
|
}, selectable && /*#__PURE__*/React__default.createElement(Checkbox, {
|
|
@@ -5509,6 +5549,8 @@ const Table = ({
|
|
|
5509
5549
|
}));
|
|
5510
5550
|
};
|
|
5511
5551
|
|
|
5552
|
+
var styles$p = {"new_tabs":"tabs-modules_new_tabs__DmuxS","MuiTabs-root":"tabs-modules_MuiTabs-root__Fj2I-","MuiTabs-scroller":"tabs-modules_MuiTabs-scroller__PY-Gb","MuiTabs-flexContainer":"tabs-modules_MuiTabs-flexContainer__qV4mC","MuiTab-root":"tabs-modules_MuiTab-root__jL46D","MuiTabs-indicator":"tabs-modules_MuiTabs-indicator__8kjaz","Mui-selected":"tabs-modules_Mui-selected__i7uax"};
|
|
5553
|
+
|
|
5512
5554
|
const TabPanel = ({
|
|
5513
5555
|
value,
|
|
5514
5556
|
index,
|
|
@@ -5538,7 +5580,7 @@ const Tabs = ({
|
|
|
5538
5580
|
if (onSelect) onSelect(newValue);
|
|
5539
5581
|
};
|
|
5540
5582
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5541
|
-
className:
|
|
5583
|
+
className: styles$p.new_tabs
|
|
5542
5584
|
}, /*#__PURE__*/React__default.createElement(material.Tabs, {
|
|
5543
5585
|
value: value,
|
|
5544
5586
|
onChange: handleChange,
|
|
@@ -5570,6 +5612,8 @@ const Tabs = ({
|
|
|
5570
5612
|
}, tab.component)));
|
|
5571
5613
|
};
|
|
5572
5614
|
|
|
5615
|
+
var styles$q = {"tabbar":"tabsUnderline-modules_tabbar__aBV11","tabs_root":"tabsUnderline-modules_tabs_root__DdnCR","tab_label":"tabsUnderline-modules_tab_label__boVBw","tab_label_replacement":"tabsUnderline-modules_tab_label_replacement__veoJz","disabled":"tabsUnderline-modules_disabled__NiFLq"};
|
|
5616
|
+
|
|
5573
5617
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=2946-50988&mode=dev */
|
|
5574
5618
|
const TabsUnderline = ({
|
|
5575
5619
|
defaultValue,
|
|
@@ -5582,11 +5626,11 @@ const TabsUnderline = ({
|
|
|
5582
5626
|
onChange(index, tabs[index].value);
|
|
5583
5627
|
};
|
|
5584
5628
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5585
|
-
className:
|
|
5629
|
+
className: styles$q.tabbar
|
|
5586
5630
|
}, /*#__PURE__*/React__default.createElement(Tabs$1, {
|
|
5587
5631
|
value: value,
|
|
5588
5632
|
onChange: onClickTab,
|
|
5589
|
-
className:
|
|
5633
|
+
className: styles$q.tabs_root,
|
|
5590
5634
|
centered: true,
|
|
5591
5635
|
TabIndicatorProps: {
|
|
5592
5636
|
style: {
|
|
@@ -5598,7 +5642,7 @@ const TabsUnderline = ({
|
|
|
5598
5642
|
}, tabs.map((item, index) => {
|
|
5599
5643
|
let renderTab = /*#__PURE__*/React__default.createElement(Tab, {
|
|
5600
5644
|
key: `tab#${index}`,
|
|
5601
|
-
className:
|
|
5645
|
+
className: styles$q.tab_label,
|
|
5602
5646
|
disableRipple: true,
|
|
5603
5647
|
sx: {
|
|
5604
5648
|
textTransform: 'none'
|
|
@@ -5613,7 +5657,7 @@ const TabsUnderline = ({
|
|
|
5613
5657
|
if (item.disabled) {
|
|
5614
5658
|
renderTab = /*#__PURE__*/React__default.createElement(Text, {
|
|
5615
5659
|
key: `tab#${index}`,
|
|
5616
|
-
className: `${
|
|
5660
|
+
className: `${styles$q.tab_label_replacement} ${styles$q.disabled}`,
|
|
5617
5661
|
weight: "bold",
|
|
5618
5662
|
size: "lg",
|
|
5619
5663
|
text: item.label,
|
|
@@ -5631,7 +5675,9 @@ const TabsUnderline = ({
|
|
|
5631
5675
|
})));
|
|
5632
5676
|
};
|
|
5633
5677
|
|
|
5634
|
-
|
|
5678
|
+
var styles$r = {"input":"TextInput-modules_input__3djVU","MuiInputBase-root-MuiOutlinedInput-root":"TextInput-modules_MuiInputBase-root-MuiOutlinedInput-root__RL51v","input_top_label":"TextInput-modules_input_top_label__JRakx","MuiInputBase-input":"TextInput-modules_MuiInputBase-input__P8rMx","text_below":"TextInput-modules_text_below__lGHF-"};
|
|
5679
|
+
|
|
5680
|
+
const CssTextField$2 = /*#__PURE__*/styles$D.styled(material.TextField)({
|
|
5635
5681
|
'& .MuiInputBase-input': {
|
|
5636
5682
|
color: '#26292E',
|
|
5637
5683
|
fontFamily: 'Open Sans !important',
|
|
@@ -5751,13 +5797,13 @@ const TextInput = props => {
|
|
|
5751
5797
|
shrink: false
|
|
5752
5798
|
} : {};
|
|
5753
5799
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5754
|
-
className: `${className} ${
|
|
5800
|
+
className: `${className} ${styles$r.input}`,
|
|
5755
5801
|
id: id
|
|
5756
5802
|
}, topLabel && /*#__PURE__*/React__default.createElement(Text, {
|
|
5757
5803
|
text: `${topLabel ? topLabel : ''}`,
|
|
5758
5804
|
weight: "bold",
|
|
5759
5805
|
size: "base",
|
|
5760
|
-
className:
|
|
5806
|
+
className: styles$r.input_top_label,
|
|
5761
5807
|
required: required
|
|
5762
5808
|
}), /*#__PURE__*/React__default.createElement(CssTextField$2, {
|
|
5763
5809
|
fullWidth: true,
|
|
@@ -5801,16 +5847,16 @@ const TextInput = props => {
|
|
|
5801
5847
|
color: "#F54C4C",
|
|
5802
5848
|
italic: true,
|
|
5803
5849
|
text: errorText,
|
|
5804
|
-
className:
|
|
5850
|
+
className: styles$r.text_below
|
|
5805
5851
|
}), helperText && /*#__PURE__*/React__default.createElement(Text, {
|
|
5806
5852
|
size: "xs",
|
|
5807
5853
|
italic: true,
|
|
5808
5854
|
text: helperText,
|
|
5809
|
-
className:
|
|
5855
|
+
className: styles$r.text_below
|
|
5810
5856
|
}));
|
|
5811
5857
|
};
|
|
5812
5858
|
|
|
5813
|
-
var styles$
|
|
5859
|
+
var styles$s = {"text_area_container":"Textarea-module_text_area_container__cq5uv","helperTexts":"Textarea-module_helperTexts__1DMgG","counter":"Textarea-module_counter__0nieC"};
|
|
5814
5860
|
|
|
5815
5861
|
/** Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=738-6407&mode=dev */
|
|
5816
5862
|
const Textarea = ({
|
|
@@ -5840,7 +5886,7 @@ const Textarea = ({
|
|
|
5840
5886
|
}
|
|
5841
5887
|
};
|
|
5842
5888
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
5843
|
-
className: styles$
|
|
5889
|
+
className: styles$s.text_area_container
|
|
5844
5890
|
}, /*#__PURE__*/React__default.createElement(TextInput, {
|
|
5845
5891
|
name: name,
|
|
5846
5892
|
variant: "outlined",
|
|
@@ -5861,7 +5907,7 @@ const Textarea = ({
|
|
|
5861
5907
|
required: required,
|
|
5862
5908
|
disabled: disabled
|
|
5863
5909
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
5864
|
-
className: styles$
|
|
5910
|
+
className: styles$s.helperTexts
|
|
5865
5911
|
}, helperText && /*#__PURE__*/React__default.createElement(Text, {
|
|
5866
5912
|
text: helperText,
|
|
5867
5913
|
size: "xs",
|
|
@@ -5874,10 +5920,12 @@ const Textarea = ({
|
|
|
5874
5920
|
}), /*#__PURE__*/React__default.createElement(Text, {
|
|
5875
5921
|
text: `${charCount} / ${maxCharacters}`,
|
|
5876
5922
|
size: "xs",
|
|
5877
|
-
className: styles$
|
|
5923
|
+
className: styles$s.counter
|
|
5878
5924
|
})));
|
|
5879
5925
|
};
|
|
5880
5926
|
|
|
5927
|
+
var styles$t = {"caption_text":"Caption-modules_caption_text__LH61Z","caption_text_uppercase":"Caption-modules_caption_text_uppercase__lc-JL"};
|
|
5928
|
+
|
|
5881
5929
|
/** This text should only be used for the captions
|
|
5882
5930
|
* Figma link :https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=52-796&mode=dev
|
|
5883
5931
|
*/
|
|
@@ -5892,10 +5940,12 @@ const Caption = ({
|
|
|
5892
5940
|
style: {
|
|
5893
5941
|
color: color
|
|
5894
5942
|
},
|
|
5895
|
-
className: `${
|
|
5943
|
+
className: `${styles$t.caption_text} ${uppercase ? styles$t.caption_text_uppercase : ''} ${className ?? ''}`
|
|
5896
5944
|
}), text);
|
|
5897
5945
|
};
|
|
5898
5946
|
|
|
5947
|
+
var styles$u = {"dropdown_text":"TextForDropDownItem-modules_dropdown_text__R-CSX","dropdown_text_xs":"TextForDropDownItem-modules_dropdown_text_xs__nyL4s","dropdown_text_sm":"TextForDropDownItem-modules_dropdown_text_sm__XGWPr","dropdown_text_base":"TextForDropDownItem-modules_dropdown_text_base__Du-2n","dropdown_text_bold":"TextForDropDownItem-modules_dropdown_text_bold__71Lhd"};
|
|
5948
|
+
|
|
5899
5949
|
/** This text should only be used for the dropdown items text
|
|
5900
5950
|
* Figma link : https://www.figma.com/file/fjnhhbL12HvKccPmJchVnr/Atomic-Library?type=design&node-id=788-4739&mode=dev
|
|
5901
5951
|
*/
|
|
@@ -5908,13 +5958,13 @@ const TextForDropDownItem = ({
|
|
|
5908
5958
|
...props
|
|
5909
5959
|
}) => {
|
|
5910
5960
|
const getTextSize = () => {
|
|
5911
|
-
if (size === 'xs') return
|
|
5961
|
+
if (size === 'xs') return styles$u.dropdown_text_xs;else if (size === 'sm') return styles$u.dropdown_text_sm;else if (size === 'base') return styles$u.dropdown_text_base;else return styles$u.dropdown_text_base;
|
|
5912
5962
|
};
|
|
5913
5963
|
return /*#__PURE__*/React__default.createElement("p", Object.assign({}, props, {
|
|
5914
5964
|
style: {
|
|
5915
5965
|
color: color
|
|
5916
5966
|
},
|
|
5917
|
-
className: `${
|
|
5967
|
+
className: `${styles$u.dropdown_text} ${bold && styles$u.dropdown_text_bold} ${getTextSize()} ${className}`
|
|
5918
5968
|
}), text);
|
|
5919
5969
|
};
|
|
5920
5970
|
|
|
@@ -6031,6 +6081,8 @@ const getColor = (colorName, shade) => {
|
|
|
6031
6081
|
return undefined;
|
|
6032
6082
|
};
|
|
6033
6083
|
|
|
6084
|
+
var styles$v = {"chatContainer":"Chat-modules_chatContainer__xzg50","scrolling_content":"Chat-modules_scrolling_content__urvdP","no_scrollbar":"Chat-modules_no_scrollbar__Ia2bX"};
|
|
6085
|
+
|
|
6034
6086
|
const Chat = ({
|
|
6035
6087
|
goBackText,
|
|
6036
6088
|
goBack,
|
|
@@ -6055,12 +6107,12 @@ const Chat = ({
|
|
|
6055
6107
|
item: true,
|
|
6056
6108
|
xs: 3,
|
|
6057
6109
|
direction: "column",
|
|
6058
|
-
className: `${className ?? ''} ${
|
|
6110
|
+
className: `${className ?? ''} ${styles$v.chatContainer}`
|
|
6059
6111
|
}, props), goBackText && goBack && /*#__PURE__*/React__default.createElement(GoBack, {
|
|
6060
6112
|
text: goBackText,
|
|
6061
6113
|
onClick: goBack
|
|
6062
6114
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
6063
|
-
className: `${
|
|
6115
|
+
className: `${styles$v.scrolling_content} ${styles$v.no_scrollbar}`
|
|
6064
6116
|
}, chatTitle && /*#__PURE__*/React__default.createElement(Text, {
|
|
6065
6117
|
text: chatTitle,
|
|
6066
6118
|
weight: "bold",
|
|
@@ -6092,6 +6144,8 @@ const Chat = ({
|
|
|
6092
6144
|
}));
|
|
6093
6145
|
};
|
|
6094
6146
|
|
|
6147
|
+
var styles$w = {"chat_input_container":"ChatInput-modules_chat_input_container__kI77U"};
|
|
6148
|
+
|
|
6095
6149
|
const ChatInput = ({
|
|
6096
6150
|
className,
|
|
6097
6151
|
value,
|
|
@@ -6100,7 +6154,7 @@ const ChatInput = ({
|
|
|
6100
6154
|
placeholder
|
|
6101
6155
|
}) => {
|
|
6102
6156
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
6103
|
-
className: `${
|
|
6157
|
+
className: `${styles$w.chat_input_container} ${className ?? ''}`
|
|
6104
6158
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
6105
6159
|
placeholder: placeholder,
|
|
6106
6160
|
value: value ? value : '',
|
|
@@ -6116,6 +6170,8 @@ const ChatInput = ({
|
|
|
6116
6170
|
}));
|
|
6117
6171
|
};
|
|
6118
6172
|
|
|
6173
|
+
var styles$x = {"circle_icon_button":"CircleIconButton-modules_circle_icon_button__lWeMA","active":"CircleIconButton-modules_active__-qtNl","notif_icon":"CircleIconButton-modules_notif_icon__ooeFy"};
|
|
6174
|
+
|
|
6119
6175
|
const CircledIconButton = ({
|
|
6120
6176
|
icon,
|
|
6121
6177
|
className,
|
|
@@ -6124,12 +6180,14 @@ const CircledIconButton = ({
|
|
|
6124
6180
|
...props
|
|
6125
6181
|
}) => {
|
|
6126
6182
|
return /*#__PURE__*/React__default.createElement("button", Object.assign({
|
|
6127
|
-
className: `${
|
|
6183
|
+
className: `${styles$x.circle_icon_button} ${className ?? ''} ${isActive ? styles$x.active : ''}`
|
|
6128
6184
|
}, props), icon ?? /*#__PURE__*/React__default.createElement(MeetingIcon, null), isNotif && /*#__PURE__*/React__default.createElement(NotifAlertIcon, {
|
|
6129
|
-
className:
|
|
6185
|
+
className: styles$x.notif_icon
|
|
6130
6186
|
}));
|
|
6131
6187
|
};
|
|
6132
6188
|
|
|
6189
|
+
var styles$y = {"interview_button":"InterviewButton-modules_interview_button__7qkQR","interview_button_screenshare":"InterviewButton-modules_interview_button_screenshare__Py-K3","interview_button_protocol":"InterviewButton-modules_interview_button_protocol__Mf5w-","active":"InterviewButton-modules_active__-T2FK","interview_button_end_interview":"InterviewButton-modules_interview_button_end_interview__4NuDP","notif_icon":"InterviewButton-modules_notif_icon__wQi4a"};
|
|
6190
|
+
|
|
6133
6191
|
const InterviewButton = ({
|
|
6134
6192
|
icon,
|
|
6135
6193
|
className,
|
|
@@ -6140,19 +6198,21 @@ const InterviewButton = ({
|
|
|
6140
6198
|
...props
|
|
6141
6199
|
}) => {
|
|
6142
6200
|
const defineVariantStyle = () => {
|
|
6143
|
-
if (variant === 'protocol') return
|
|
6201
|
+
if (variant === 'protocol') return styles$y.interview_button_protocol;else if (variant === 'screenshare') return styles$y.interview_button_screenshare;else if (variant === 'end-interview') return styles$y.interview_button_end_interview;else return;
|
|
6144
6202
|
};
|
|
6145
6203
|
return /*#__PURE__*/React__default.createElement("button", Object.assign({
|
|
6146
|
-
className: `${
|
|
6204
|
+
className: `${styles$y.interview_button} ${defineVariantStyle()} ${className ?? ''} ${isActive ? styles$y.active : ''}`
|
|
6147
6205
|
}, props), icon ?? /*#__PURE__*/React__default.createElement(MeetingIcon, null), /*#__PURE__*/React__default.createElement(Text, {
|
|
6148
6206
|
text: text,
|
|
6149
6207
|
size: "base",
|
|
6150
6208
|
weight: "semi-bold"
|
|
6151
6209
|
}), isNotif && /*#__PURE__*/React__default.createElement(NotifAlertIcon, {
|
|
6152
|
-
className:
|
|
6210
|
+
className: styles$y.notif_icon
|
|
6153
6211
|
}));
|
|
6154
6212
|
};
|
|
6155
6213
|
|
|
6214
|
+
var styles$z = {"go_back_btn":"GoBack-modules_go_back_btn__9PP5I"};
|
|
6215
|
+
|
|
6156
6216
|
const GoBack = ({
|
|
6157
6217
|
text,
|
|
6158
6218
|
onClick,
|
|
@@ -6160,7 +6220,7 @@ const GoBack = ({
|
|
|
6160
6220
|
...props
|
|
6161
6221
|
}) => {
|
|
6162
6222
|
return /*#__PURE__*/React__default.createElement("button", Object.assign({
|
|
6163
|
-
className: `${
|
|
6223
|
+
className: `${styles$z.go_back_btn} ${className ?? ''}`
|
|
6164
6224
|
}, props, {
|
|
6165
6225
|
onClick: onClick
|
|
6166
6226
|
}), /*#__PURE__*/React__default.createElement(ArrowLineLeftIcon, null), /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -6171,7 +6231,9 @@ const GoBack = ({
|
|
|
6171
6231
|
}));
|
|
6172
6232
|
};
|
|
6173
6233
|
|
|
6174
|
-
|
|
6234
|
+
var styles$A = {"task_container":"Task-modules_task_container__Iaqc-","header":"Task-modules_header__f15OM","header_left":"Task-modules_header_left__JJTGR","header_right":"Task-modules_header_right__AymtU","title":"Task-modules_title__-OmPh","disabled_task":"Task-modules_disabled_task__NI6LL","active_task":"Task-modules_active_task__l-n9Q","taskContent":"Task-modules_taskContent__v3Cm1","taskPopover":"Task-modules_taskPopover__S07XU","notesContainer":"Task-modules_notesContainer__dz0Me","actionBtnsContainer":"Task-modules_actionBtnsContainer__Dz-1j","popover_paper":"Task-modules_popover_paper__Re-kl","MuiPopover-root":"Task-modules_MuiPopover-root__w6O-O","MuiPopover-paper":"Task-modules_MuiPopover-paper__7p4Tk"};
|
|
6235
|
+
|
|
6236
|
+
const CustomPopover = /*#__PURE__*/styles$D.styled(Popover$1)({
|
|
6175
6237
|
'& .MuiPopover-root': {
|
|
6176
6238
|
borderRadius: '0.5rem',
|
|
6177
6239
|
background: 'transparent'
|
|
@@ -6207,16 +6269,16 @@ const Task = ({
|
|
|
6207
6269
|
setAnchorEl(null);
|
|
6208
6270
|
};
|
|
6209
6271
|
const getContainerStyle = () => {
|
|
6210
|
-
if (state === 'active') return
|
|
6272
|
+
if (state === 'active') return styles$A.active_task;else if (state === 'disabled') return styles$A.disabled_task;else return styles$A.task_container;
|
|
6211
6273
|
};
|
|
6212
6274
|
const open = Boolean(anchorEl);
|
|
6213
6275
|
const areActionsDisplay = iconAction1 || iconAction2 || iconAction3 || action1 || action2 || action3;
|
|
6214
6276
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
6215
6277
|
className: `${getContainerStyle()} ${className ?? ''}`
|
|
6216
6278
|
}, props), /*#__PURE__*/React__default.createElement("div", {
|
|
6217
|
-
className:
|
|
6279
|
+
className: styles$A.header
|
|
6218
6280
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6219
|
-
className:
|
|
6281
|
+
className: styles$A.header_left,
|
|
6220
6282
|
onMouseEnter: handlePopoverOpen,
|
|
6221
6283
|
onMouseLeave: handlePopoverClose
|
|
6222
6284
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
@@ -6227,21 +6289,21 @@ const Task = ({
|
|
|
6227
6289
|
text: taskTitle,
|
|
6228
6290
|
size: "sm",
|
|
6229
6291
|
weight: "bold",
|
|
6230
|
-
className:
|
|
6292
|
+
className: styles$A.title
|
|
6231
6293
|
})), /*#__PURE__*/React__default.createElement("button", {
|
|
6232
|
-
className:
|
|
6294
|
+
className: styles$A.header_right,
|
|
6233
6295
|
onClick: () => {
|
|
6234
6296
|
if (state === 'active') sendTask();
|
|
6235
6297
|
},
|
|
6236
6298
|
disabled: state === 'disabled'
|
|
6237
6299
|
}, state === 'active' || isDone ? /*#__PURE__*/React__default.createElement(CheckedIcon, null) : /*#__PURE__*/React__default.createElement(SendIcon, null))), state === 'active' && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
6238
|
-
className:
|
|
6300
|
+
className: styles$A.taskContent
|
|
6239
6301
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
6240
6302
|
text: taskTitle,
|
|
6241
6303
|
size: "sm",
|
|
6242
6304
|
weight: "bold"
|
|
6243
6305
|
}), notes && /*#__PURE__*/React__default.createElement("div", {
|
|
6244
|
-
className:
|
|
6306
|
+
className: styles$A.notesContainer
|
|
6245
6307
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
6246
6308
|
text: "Notes",
|
|
6247
6309
|
size: "xs",
|
|
@@ -6250,13 +6312,13 @@ const Task = ({
|
|
|
6250
6312
|
text: notes,
|
|
6251
6313
|
size: "sm"
|
|
6252
6314
|
}))), areActionsDisplay && /*#__PURE__*/React__default.createElement("div", {
|
|
6253
|
-
className:
|
|
6315
|
+
className: styles$A.taskContent
|
|
6254
6316
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
6255
6317
|
text: "Actions:",
|
|
6256
6318
|
size: "xs",
|
|
6257
6319
|
italic: true
|
|
6258
6320
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
6259
|
-
className:
|
|
6321
|
+
className: styles$A.actionBtnsContainer
|
|
6260
6322
|
}, action1 && iconAction1 && /*#__PURE__*/React__default.createElement(IconButton, {
|
|
6261
6323
|
onClick: action1,
|
|
6262
6324
|
icon: iconAction1
|
|
@@ -6289,13 +6351,13 @@ const Task = ({
|
|
|
6289
6351
|
onClose: handlePopoverClose,
|
|
6290
6352
|
disableRestoreFocus: true
|
|
6291
6353
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6292
|
-
className:
|
|
6354
|
+
className: styles$A.taskPopover
|
|
6293
6355
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
6294
6356
|
text: taskTitle,
|
|
6295
6357
|
size: "sm",
|
|
6296
6358
|
weight: "bold"
|
|
6297
6359
|
}), notes && /*#__PURE__*/React__default.createElement("div", {
|
|
6298
|
-
className:
|
|
6360
|
+
className: styles$A.notesContainer
|
|
6299
6361
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
6300
6362
|
text: "Notes",
|
|
6301
6363
|
size: "xs",
|
|
@@ -6306,6 +6368,8 @@ const Task = ({
|
|
|
6306
6368
|
})))));
|
|
6307
6369
|
};
|
|
6308
6370
|
|
|
6371
|
+
var styles$B = {"start_interview_container":"StartInterview-modules_start_interview_container__jpRe2"};
|
|
6372
|
+
|
|
6309
6373
|
const StartInterview = ({
|
|
6310
6374
|
title,
|
|
6311
6375
|
buttonText,
|
|
@@ -6315,7 +6379,7 @@ const StartInterview = ({
|
|
|
6315
6379
|
...props
|
|
6316
6380
|
}) => {
|
|
6317
6381
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
6318
|
-
className:
|
|
6382
|
+
className: styles$B.start_interview_container
|
|
6319
6383
|
}, props), /*#__PURE__*/React__default.createElement(Text, {
|
|
6320
6384
|
text: title,
|
|
6321
6385
|
weight: "bold"
|
|
@@ -6325,6 +6389,8 @@ const StartInterview = ({
|
|
|
6325
6389
|
}));
|
|
6326
6390
|
};
|
|
6327
6391
|
|
|
6392
|
+
var styles$C = {"welcome_container":"WelcomeMessage-modules_welcome_container__qLgMv","welcome_title":"WelcomeMessage-modules_welcome_title__gX34Q","welcome_description":"WelcomeMessage-modules_welcome_description__a2HnZ"};
|
|
6393
|
+
|
|
6328
6394
|
const WelcomeMessage = ({
|
|
6329
6395
|
title,
|
|
6330
6396
|
description,
|
|
@@ -6332,17 +6398,17 @@ const WelcomeMessage = ({
|
|
|
6332
6398
|
...props
|
|
6333
6399
|
}) => {
|
|
6334
6400
|
return /*#__PURE__*/React__default.createElement("div", Object.assign({
|
|
6335
|
-
className:
|
|
6401
|
+
className: styles$C.welcome_container
|
|
6336
6402
|
}, props), /*#__PURE__*/React__default.createElement(Text, {
|
|
6337
6403
|
text: title,
|
|
6338
6404
|
weight: "bold",
|
|
6339
6405
|
size: "base",
|
|
6340
|
-
className:
|
|
6406
|
+
className: styles$C.welcome_title
|
|
6341
6407
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
6342
6408
|
dangerouslySetInnerHTML: {
|
|
6343
6409
|
__html: description
|
|
6344
6410
|
},
|
|
6345
|
-
className:
|
|
6411
|
+
className: styles$C.welcome_description
|
|
6346
6412
|
}));
|
|
6347
6413
|
};
|
|
6348
6414
|
|