@rabex-kit/rabex-ui 0.0.9 → 0.1.1
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/AccordionActions/index.d.ts +1 -1
- package/dist/AccordionDetails/index.d.ts +1 -1
- package/dist/AccordionSummary/index.d.ts +1 -1
- package/dist/Input/index.d.ts +1 -0
- package/dist/Theme/Button/index.d.ts +3 -0
- package/dist/Theme/Input/index.d.ts +2 -0
- package/dist/rabex-ui.cjs.development.js +191 -5
- 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 +191 -5
- package/dist/rabex-ui.esm.js.map +1 -1
- package/package.json +1 -1
@@ -7,7 +7,7 @@ export declare type AccordionActionsProps = MuiAccordionActionsProps;
|
|
7
7
|
* you can see AccordionActions Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-actions/)
|
8
8
|
*
|
9
9
|
* ```typescript
|
10
|
-
* import { AccordionActions } from '@rabex-kit/
|
10
|
+
* import { AccordionActions } from '@rabex-kit/rabex-ui';
|
11
11
|
* ```
|
12
12
|
*
|
13
13
|
*
|
@@ -7,7 +7,7 @@ export declare type AccordionDetailsProps = MuiAccordionDetailsProps;
|
|
7
7
|
* you can see AccordionDetails Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-details/)
|
8
8
|
*
|
9
9
|
* ```typescript
|
10
|
-
* import { AccordionDetails } from '@rabex-kit/
|
10
|
+
* import { AccordionDetails } from '@rabex-kit/rabex-ui';
|
11
11
|
* ```
|
12
12
|
*
|
13
13
|
*
|
@@ -7,7 +7,7 @@ export declare type AccordionSummaryProps = MuiAccordionSummaryProps;
|
|
7
7
|
* you can see AccordionSummary Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-summary/)
|
8
8
|
*
|
9
9
|
* ```typescript
|
10
|
-
* import { AccordionSummary } from '@rabex-kit/
|
10
|
+
* import { AccordionSummary } from '@rabex-kit/rabex-ui';
|
11
11
|
* ```
|
12
12
|
*
|
13
13
|
*
|
package/dist/Input/index.d.ts
CHANGED
@@ -11,6 +11,7 @@ interface CustomInputProps extends MuiInputProps {
|
|
11
11
|
helperTextEndAdornment?: string | ReactNode;
|
12
12
|
helperTextEndAdornmentProps?: TypographyProps;
|
13
13
|
hasBg?: boolean;
|
14
|
+
fill?: boolean;
|
14
15
|
valueFormat?: 'numbers' | 'separatedNumbers';
|
15
16
|
valueFormatOption?: {
|
16
17
|
separator?: string;
|
@@ -150,7 +150,7 @@ Accordion.defaultProps = {
|
|
150
150
|
* you can see AccordionActions Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-actions/)
|
151
151
|
*
|
152
152
|
* ```typescript
|
153
|
-
* import { AccordionActions } from '@rabex-kit/
|
153
|
+
* import { AccordionActions } from '@rabex-kit/rabex-ui';
|
154
154
|
* ```
|
155
155
|
*
|
156
156
|
*
|
@@ -167,7 +167,7 @@ var AccordionActions = function AccordionActions(props) {
|
|
167
167
|
* you can see AccordionDetails Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-details/)
|
168
168
|
*
|
169
169
|
* ```typescript
|
170
|
-
* import { AccordionDetails } from '@rabex-kit/
|
170
|
+
* import { AccordionDetails } from '@rabex-kit/rabex-ui';
|
171
171
|
* ```
|
172
172
|
*
|
173
173
|
*
|
@@ -184,7 +184,7 @@ var AccordionDetails = function AccordionDetails(props) {
|
|
184
184
|
* you can see AccordionSummary Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-summary/)
|
185
185
|
*
|
186
186
|
* ```typescript
|
187
|
-
* import { AccordionSummary } from '@rabex-kit/
|
187
|
+
* import { AccordionSummary } from '@rabex-kit/rabex-ui';
|
188
188
|
* ```
|
189
189
|
*
|
190
190
|
*
|
@@ -1289,7 +1289,7 @@ function _handleHelperColor(props, key) {
|
|
1289
1289
|
var MuiInputStyled = /*#__PURE__*/styled(MuiInput, {
|
1290
1290
|
name: 'MuiInput',
|
1291
1291
|
shouldForwardProp: function shouldForwardProp(prop) {
|
1292
|
-
return !['hasBg', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'success', 'valueFormat', 'valueFormatOption'].includes(prop);
|
1292
|
+
return !['hasBg', 'fill', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'success', 'valueFormat', 'valueFormatOption'].includes(prop);
|
1293
1293
|
}
|
1294
1294
|
})(function () {
|
1295
1295
|
return {};
|
@@ -1362,6 +1362,7 @@ var Input = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
|
|
1362
1362
|
Input.defaultProps = {
|
1363
1363
|
success: false,
|
1364
1364
|
hasBg: false,
|
1365
|
+
fill: false,
|
1365
1366
|
size: 'md',
|
1366
1367
|
disableUnderline: true,
|
1367
1368
|
titleProps: {
|
@@ -2715,6 +2716,97 @@ var components = {
|
|
2715
2716
|
borderRadius: theme.spacing(2)
|
2716
2717
|
};
|
2717
2718
|
}
|
2719
|
+
},
|
2720
|
+
/// old classes
|
2721
|
+
{
|
2722
|
+
props: {
|
2723
|
+
size: 'medium'
|
2724
|
+
},
|
2725
|
+
style: function style(_ref16) {
|
2726
|
+
var theme = _ref16.theme;
|
2727
|
+
return {
|
2728
|
+
padding: theme.spacing(2.5, 4),
|
2729
|
+
fontSize: '14px',
|
2730
|
+
lineHeight: '28px',
|
2731
|
+
fontWeight: 600
|
2732
|
+
};
|
2733
|
+
}
|
2734
|
+
}, {
|
2735
|
+
props: {
|
2736
|
+
size: 'small'
|
2737
|
+
},
|
2738
|
+
style: function style(_ref17) {
|
2739
|
+
var theme = _ref17.theme;
|
2740
|
+
return {
|
2741
|
+
padding: theme.spacing(1.5, 4),
|
2742
|
+
fontSize: '14px',
|
2743
|
+
lineHeight: '28px',
|
2744
|
+
fontWeight: 600
|
2745
|
+
};
|
2746
|
+
}
|
2747
|
+
}, {
|
2748
|
+
props: {
|
2749
|
+
size: 'xsmall'
|
2750
|
+
},
|
2751
|
+
style: function style(_ref18) {
|
2752
|
+
var theme = _ref18.theme;
|
2753
|
+
return {
|
2754
|
+
padding: theme.spacing(1, 4),
|
2755
|
+
fontSize: '14px',
|
2756
|
+
lineHeight: '24px',
|
2757
|
+
fontWeight: 100
|
2758
|
+
};
|
2759
|
+
}
|
2760
|
+
}, {
|
2761
|
+
props: {
|
2762
|
+
size: 'medium',
|
2763
|
+
isIcon: true
|
2764
|
+
},
|
2765
|
+
style: function style(_ref19) {
|
2766
|
+
var theme = _ref19.theme;
|
2767
|
+
return {
|
2768
|
+
minWidth: 'unset',
|
2769
|
+
padding: theme.spacing(3.5, 3.5)
|
2770
|
+
};
|
2771
|
+
}
|
2772
|
+
}, {
|
2773
|
+
props: {
|
2774
|
+
size: 'small',
|
2775
|
+
isIcon: true
|
2776
|
+
},
|
2777
|
+
style: function style(_ref20) {
|
2778
|
+
var theme = _ref20.theme;
|
2779
|
+
return {
|
2780
|
+
minWidth: 'unset',
|
2781
|
+
padding: theme.spacing(2.5, 2.5)
|
2782
|
+
};
|
2783
|
+
}
|
2784
|
+
}, {
|
2785
|
+
props: {
|
2786
|
+
size: 'xsmall',
|
2787
|
+
isIcon: true
|
2788
|
+
},
|
2789
|
+
style: function style(_ref21) {
|
2790
|
+
var theme = _ref21.theme;
|
2791
|
+
return {
|
2792
|
+
minWidth: 'unset',
|
2793
|
+
padding: theme.spacing(2)
|
2794
|
+
};
|
2795
|
+
}
|
2796
|
+
}, {
|
2797
|
+
props: {
|
2798
|
+
radius: 'medium'
|
2799
|
+
},
|
2800
|
+
style: {
|
2801
|
+
borderRadius: 8
|
2802
|
+
}
|
2803
|
+
}, {
|
2804
|
+
props: {
|
2805
|
+
radius: 'small'
|
2806
|
+
},
|
2807
|
+
style: {
|
2808
|
+
borderRadius: 6
|
2809
|
+
}
|
2718
2810
|
}]
|
2719
2811
|
};
|
2720
2812
|
var RabexButton = {
|
@@ -3810,7 +3902,7 @@ var components$3 = {
|
|
3810
3902
|
}
|
3811
3903
|
}, {
|
3812
3904
|
props: {
|
3813
|
-
|
3905
|
+
fill: true
|
3814
3906
|
},
|
3815
3907
|
style: function style(_ref7) {
|
3816
3908
|
var theme = _ref7.theme;
|
@@ -3853,6 +3945,100 @@ var components$3 = {
|
|
3853
3945
|
backgroundColor: palette.mode === 'light' ? palette.base.A0 : colorManipulator_js.alpha(palette.success.A100, 0.1)
|
3854
3946
|
};
|
3855
3947
|
}
|
3948
|
+
}, {
|
3949
|
+
props: {
|
3950
|
+
size: 'small'
|
3951
|
+
},
|
3952
|
+
style: function style(_ref9) {
|
3953
|
+
var theme = _ref9.theme;
|
3954
|
+
return {
|
3955
|
+
fontSize: '14px',
|
3956
|
+
padding: theme.spacing(1, 3)
|
3957
|
+
};
|
3958
|
+
}
|
3959
|
+
}, {
|
3960
|
+
props: {
|
3961
|
+
size: 'large'
|
3962
|
+
},
|
3963
|
+
style: function style(_ref10) {
|
3964
|
+
var theme = _ref10.theme;
|
3965
|
+
return {
|
3966
|
+
fontSize: '16px',
|
3967
|
+
padding: theme.spacing(3)
|
3968
|
+
};
|
3969
|
+
}
|
3970
|
+
}, {
|
3971
|
+
props: {
|
3972
|
+
hasBg: true
|
3973
|
+
},
|
3974
|
+
style: function style(_ref11) {
|
3975
|
+
var theme = _ref11.theme;
|
3976
|
+
if (theme.palette.mode === 'light') {
|
3977
|
+
return {
|
3978
|
+
border: '1px solid transparent',
|
3979
|
+
background: theme.palette.secondary.A80
|
3980
|
+
};
|
3981
|
+
} else return {};
|
3982
|
+
}
|
3983
|
+
}, {
|
3984
|
+
props: {
|
3985
|
+
success: true
|
3986
|
+
},
|
3987
|
+
style: function style(_ref12) {
|
3988
|
+
var palette = _ref12.theme.palette;
|
3989
|
+
return {
|
3990
|
+
border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
|
3991
|
+
backgroundColor: palette.mode === 'light' ? palette.base.A0 : colorManipulator_js.alpha(palette.success.A100, 0.1)
|
3992
|
+
};
|
3993
|
+
}
|
3994
|
+
},
|
3995
|
+
/// old styles
|
3996
|
+
{
|
3997
|
+
props: {
|
3998
|
+
size: 'small'
|
3999
|
+
},
|
4000
|
+
style: function style(_ref13) {
|
4001
|
+
var theme = _ref13.theme;
|
4002
|
+
return {
|
4003
|
+
fontSize: '14px',
|
4004
|
+
padding: theme.spacing(1, 3)
|
4005
|
+
};
|
4006
|
+
}
|
4007
|
+
}, {
|
4008
|
+
props: {
|
4009
|
+
size: 'large'
|
4010
|
+
},
|
4011
|
+
style: function style(_ref14) {
|
4012
|
+
var theme = _ref14.theme;
|
4013
|
+
return {
|
4014
|
+
fontSize: '16px',
|
4015
|
+
padding: theme.spacing(3)
|
4016
|
+
};
|
4017
|
+
}
|
4018
|
+
}, {
|
4019
|
+
props: {
|
4020
|
+
hasBg: true
|
4021
|
+
},
|
4022
|
+
style: function style(_ref15) {
|
4023
|
+
var theme = _ref15.theme;
|
4024
|
+
if (theme.palette.mode === 'light') {
|
4025
|
+
return {
|
4026
|
+
border: '1px solid transparent',
|
4027
|
+
background: theme.palette.secondary.A80
|
4028
|
+
};
|
4029
|
+
} else return {};
|
4030
|
+
}
|
4031
|
+
}, {
|
4032
|
+
props: {
|
4033
|
+
success: true
|
4034
|
+
},
|
4035
|
+
style: function style(_ref16) {
|
4036
|
+
var palette = _ref16.theme.palette;
|
4037
|
+
return {
|
4038
|
+
border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
|
4039
|
+
backgroundColor: palette.mode === 'light' ? palette.base.A0 : colorManipulator_js.alpha(palette.success.A100, 0.1)
|
4040
|
+
};
|
4041
|
+
}
|
3856
4042
|
}]
|
3857
4043
|
};
|
3858
4044
|
var RabexInput = {
|