@rabex-kit/rabex-ui 0.1.22 → 0.1.23
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/Alert/index.d.ts +1 -1
- package/dist/AlertTimer/index.d.ts +3 -1
- package/dist/AlertTitle/index.d.ts +1 -1
- package/dist/Theme/Tab/index.d.ts +234 -1
- package/dist/Theme/Tabs/index.d.ts +8 -64
- package/dist/hooks/useTime.d.ts +1 -1
- package/dist/rabex-ui.cjs.development.js +38 -32
- package/dist/rabex-ui.cjs.development.js.map +1 -1
- package/dist/rabex-ui.cjs.production.min.js +1 -1
- package/dist/rabex-ui.cjs.production.min.js.map +1 -1
- package/dist/rabex-ui.esm.js +35 -29
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/rabex-ui.esm.js
CHANGED
@@ -4,6 +4,7 @@ import MuiAccordionActions from '@mui/material/AccordionActions/AccordionActions
|
|
4
4
|
import MuiAccordionSummary from '@mui/material/AccordionSummary/AccordionSummary.js';
|
5
5
|
import MuiAlert from '@mui/material/Alert/Alert.js';
|
6
6
|
import Stack$1 from '@mui/material/Stack/Stack.js';
|
7
|
+
import useTheme from '@mui/material/styles/useTheme.js';
|
7
8
|
import MuiTypography from '@mui/material/Typography/Typography.js';
|
8
9
|
import useMediaQuery from '@mui/material/useMediaQuery/useMediaQuery.js';
|
9
10
|
export { default as useMediaQuery } from '@mui/material/useMediaQuery/useMediaQuery.js';
|
@@ -35,7 +36,6 @@ import MuiFormLabel from '@mui/material/FormLabel/FormLabel.js';
|
|
35
36
|
import MuiGrid from '@mui/material/Unstable_Grid2';
|
36
37
|
import MuiIconButton from '@mui/material/IconButton/IconButton.js';
|
37
38
|
import MuiInput from '@mui/material/Input/Input.js';
|
38
|
-
import useTheme from '@mui/material/styles/useTheme.js';
|
39
39
|
import MuiInputAdornment from '@mui/material/InputAdornment/InputAdornment.js';
|
40
40
|
import MuiInputLabel from '@mui/material/InputLabel/InputLabel.js';
|
41
41
|
import MuiLinearProgress from '@mui/material/LinearProgress/LinearProgress.js';
|
@@ -218,7 +218,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
218
218
|
* you can see Alert Documentation api that I mentioned below [here](https://mui.com/material-ui/api/alert/)
|
219
219
|
*
|
220
220
|
* ```typescript
|
221
|
-
* import { Alert } from '@rabex-kit/
|
221
|
+
* import { Alert } from '@rabex-kit/rabex-ui';
|
222
222
|
* ```
|
223
223
|
*
|
224
224
|
*
|
@@ -531,7 +531,7 @@ var calculateTime = function calculateTime(time) {
|
|
531
531
|
/**
|
532
532
|
* this hook used for checking an element that is onScreen or not
|
533
533
|
*
|
534
|
-
* import { useOnScreen } from @rabex-kit/
|
534
|
+
* import { useOnScreen } from @rabex-kit/rabex-ui/hooks'
|
535
535
|
*
|
536
536
|
* @param ref
|
537
537
|
* @returns
|
@@ -650,10 +650,13 @@ var AlertTimer = function AlertTimer(_ref) {
|
|
650
650
|
timestamp = _ref.timestamp,
|
651
651
|
onComplete = _ref.onComplete,
|
652
652
|
_ref$isStart = _ref.isStart,
|
653
|
-
isStart = _ref$isStart === void 0 ? true : _ref$isStart
|
653
|
+
isStart = _ref$isStart === void 0 ? true : _ref$isStart,
|
654
|
+
sx = _ref.sx;
|
654
655
|
var _useTime = useTime(timestamp, isStart),
|
655
656
|
time = _useTime.time,
|
656
657
|
isComplete = _useTime.isComplete;
|
658
|
+
var _useTheme = useTheme(),
|
659
|
+
palette = _useTheme.palette;
|
657
660
|
useEffect(function () {
|
658
661
|
if (isComplete && onComplete) {
|
659
662
|
onComplete();
|
@@ -665,25 +668,27 @@ var AlertTimer = function AlertTimer(_ref) {
|
|
665
668
|
justifyContent: "space-between",
|
666
669
|
mt: 1,
|
667
670
|
width: "100%",
|
668
|
-
gap: 7
|
669
|
-
|
671
|
+
gap: 7,
|
672
|
+
sx: sx
|
673
|
+
}, children && React.createElement(Typography, {
|
670
674
|
variant: 'body3',
|
671
|
-
weight: '
|
675
|
+
weight: 'semiBold',
|
672
676
|
color: "textColor.A80"
|
673
677
|
}, children), React.createElement(Stack$1, {
|
674
678
|
flexDirection: "row",
|
675
679
|
alignItems: "center",
|
676
|
-
|
680
|
+
py: 1,
|
681
|
+
height: 24,
|
677
682
|
width: 76,
|
678
|
-
borderRadius:
|
679
|
-
bgcolor:
|
683
|
+
borderRadius: 2,
|
684
|
+
bgcolor: palette.warning[200],
|
680
685
|
pr: 3,
|
681
686
|
gap: 1.5,
|
682
687
|
justifyContent: "end",
|
683
688
|
boxSizing: "border-box"
|
684
689
|
}, React.createElement(Typography, {
|
685
690
|
variant: 'body3',
|
686
|
-
weight: '
|
691
|
+
weight: 'semiBold',
|
687
692
|
color: "textColor.A80",
|
688
693
|
mt: 0.5
|
689
694
|
}, time.minutes, ":", time.seconds), React.createElement(Stack$1, {
|
@@ -714,7 +719,7 @@ var AlertTimer = function AlertTimer(_ref) {
|
|
714
719
|
* you can see AlertTitle Documentation api that I mentioned below [here](https://mui.com/material-ui/api/alert-title/)
|
715
720
|
*
|
716
721
|
* ```typescript
|
717
|
-
* import { AlertTitle } from '@rabex-kit/
|
722
|
+
* import { AlertTitle } from '@rabex-kit/rabex-ui';
|
718
723
|
* ```
|
719
724
|
*
|
720
725
|
*
|
@@ -3105,21 +3110,14 @@ var RabexTabs = {
|
|
3105
3110
|
return _extends({
|
3106
3111
|
borderRadius: 8,
|
3107
3112
|
minHeight: 'unset',
|
3108
|
-
color: theme.palette.base.A10
|
3109
|
-
'& .MuiTab-root.Mui-selected': {
|
3110
|
-
borderRadius: 4,
|
3111
|
-
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3112
|
-
},
|
3113
|
-
'& .MuiTabs-flexContainer': {
|
3114
|
-
padding: theme.spacing(1)
|
3115
|
-
}
|
3113
|
+
color: theme.palette.base.A10
|
3116
3114
|
}, ownerState.mode === 'underline' && {
|
3117
3115
|
'& .MuiTab-root.Mui-selected': {
|
3118
3116
|
borderRadius: 4,
|
3119
3117
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A0
|
3120
3118
|
},
|
3121
3119
|
'& .MuiTabs-flexContainer': {
|
3122
|
-
padding: theme.spacing(1)
|
3120
|
+
// padding: theme.spacing(1)
|
3123
3121
|
},
|
3124
3122
|
backgroundColor: 'unset'
|
3125
3123
|
}, ownerState.mode === 'pill' && {
|
@@ -3182,8 +3180,9 @@ var RabexTab = {
|
|
3182
3180
|
components: {
|
3183
3181
|
styleOverrides: {
|
3184
3182
|
root: function root(_ref) {
|
3185
|
-
var theme = _ref.theme
|
3186
|
-
|
3183
|
+
var theme = _ref.theme,
|
3184
|
+
ownerState = _ref.ownerState;
|
3185
|
+
return _extends({
|
3187
3186
|
minWidth: 80,
|
3188
3187
|
fontWeight: '600',
|
3189
3188
|
color: theme.palette.mode === 'light' ? theme.palette.textColor.A60 : theme.palette.textColor.A40,
|
@@ -3191,6 +3190,17 @@ var RabexTab = {
|
|
3191
3190
|
'&': {
|
3192
3191
|
position: 'relative'
|
3193
3192
|
},
|
3193
|
+
minHeight: 'unset'
|
3194
|
+
}, ownerState.size === 'sm' && {
|
3195
|
+
fontSize: '12px',
|
3196
|
+
minHeight: theme.spacing(3)
|
3197
|
+
}, ownerState.size === 'md' && {
|
3198
|
+
fontSize: '14px',
|
3199
|
+
minHeight: theme.spacing(4)
|
3200
|
+
}, ownerState.size === 'lg' && {
|
3201
|
+
fontSize: '16px',
|
3202
|
+
minHeight: theme.spacing(5)
|
3203
|
+
}, {
|
3194
3204
|
// '&.normal': {
|
3195
3205
|
// lineHeight: '20px',
|
3196
3206
|
// fontSize: '12px',
|
@@ -3224,7 +3234,7 @@ var RabexTab = {
|
|
3224
3234
|
'& .MuiTab-iconWrapper': {
|
3225
3235
|
fontSize: '14px'
|
3226
3236
|
}
|
3227
|
-
};
|
3237
|
+
});
|
3228
3238
|
}
|
3229
3239
|
}
|
3230
3240
|
}
|
@@ -4508,10 +4518,7 @@ var components$6 = {
|
|
4508
4518
|
palette = _ref$theme.palette,
|
4509
4519
|
spacing = _ref$theme.spacing,
|
4510
4520
|
_ref$ownerState = _ref.ownerState,
|
4511
|
-
size = _ref$ownerState.size
|
4512
|
-
fill = _ref$ownerState.fill,
|
4513
|
-
success = _ref$ownerState.success;
|
4514
|
-
console.log(size, fill, success);
|
4521
|
+
size = _ref$ownerState.size;
|
4515
4522
|
var isLight = palette.mode === 'light';
|
4516
4523
|
return {
|
4517
4524
|
'& > div.MuiInputBase-root > fieldset': {
|
@@ -4577,7 +4584,6 @@ var components$6 = {
|
|
4577
4584
|
},
|
4578
4585
|
style: function style(_ref2) {
|
4579
4586
|
var theme = _ref2.theme;
|
4580
|
-
console.log('fill included');
|
4581
4587
|
var isLight = theme.palette.mode === 'light';
|
4582
4588
|
return {
|
4583
4589
|
'& > div.MuiInputBase-root': {
|