@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.
@@ -145,7 +145,7 @@ Accordion.defaultProps = {
145
145
  * you can see AccordionActions Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-actions/)
146
146
  *
147
147
  * ```typescript
148
- * import { AccordionActions } from '@rabex-kit/core';
148
+ * import { AccordionActions } from '@rabex-kit/rabex-ui';
149
149
  * ```
150
150
  *
151
151
  *
@@ -162,7 +162,7 @@ var AccordionActions = function AccordionActions(props) {
162
162
  * you can see AccordionDetails Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-details/)
163
163
  *
164
164
  * ```typescript
165
- * import { AccordionDetails } from '@rabex-kit/core';
165
+ * import { AccordionDetails } from '@rabex-kit/rabex-ui';
166
166
  * ```
167
167
  *
168
168
  *
@@ -179,7 +179,7 @@ var AccordionDetails = function AccordionDetails(props) {
179
179
  * you can see AccordionSummary Documentation api that I mentioned below [here](https://mui.com/material-ui/api/accordion-summary/)
180
180
  *
181
181
  * ```typescript
182
- * import { AccordionSummary } from '@rabex-kit/core';
182
+ * import { AccordionSummary } from '@rabex-kit/rabex-ui';
183
183
  * ```
184
184
  *
185
185
  *
@@ -1284,7 +1284,7 @@ function _handleHelperColor(props, key) {
1284
1284
  var MuiInputStyled = /*#__PURE__*/styled(MuiInput, {
1285
1285
  name: 'MuiInput',
1286
1286
  shouldForwardProp: function shouldForwardProp(prop) {
1287
- return !['hasBg', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'success', 'valueFormat', 'valueFormatOption'].includes(prop);
1287
+ return !['hasBg', 'fill', 'titleProps', 'helperText', 'helperTextIcon', 'helperTextProps', 'helperTextEndAdornment', 'helperTextEndAdornmentProps', 'success', 'valueFormat', 'valueFormatOption'].includes(prop);
1288
1288
  }
1289
1289
  })(function () {
1290
1290
  return {};
@@ -1357,6 +1357,7 @@ var Input = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
1357
1357
  Input.defaultProps = {
1358
1358
  success: false,
1359
1359
  hasBg: false,
1360
+ fill: false,
1360
1361
  size: 'md',
1361
1362
  disableUnderline: true,
1362
1363
  titleProps: {
@@ -2710,6 +2711,97 @@ var components = {
2710
2711
  borderRadius: theme.spacing(2)
2711
2712
  };
2712
2713
  }
2714
+ },
2715
+ /// old classes
2716
+ {
2717
+ props: {
2718
+ size: 'medium'
2719
+ },
2720
+ style: function style(_ref16) {
2721
+ var theme = _ref16.theme;
2722
+ return {
2723
+ padding: theme.spacing(2.5, 4),
2724
+ fontSize: '14px',
2725
+ lineHeight: '28px',
2726
+ fontWeight: 600
2727
+ };
2728
+ }
2729
+ }, {
2730
+ props: {
2731
+ size: 'small'
2732
+ },
2733
+ style: function style(_ref17) {
2734
+ var theme = _ref17.theme;
2735
+ return {
2736
+ padding: theme.spacing(1.5, 4),
2737
+ fontSize: '14px',
2738
+ lineHeight: '28px',
2739
+ fontWeight: 600
2740
+ };
2741
+ }
2742
+ }, {
2743
+ props: {
2744
+ size: 'xsmall'
2745
+ },
2746
+ style: function style(_ref18) {
2747
+ var theme = _ref18.theme;
2748
+ return {
2749
+ padding: theme.spacing(1, 4),
2750
+ fontSize: '14px',
2751
+ lineHeight: '24px',
2752
+ fontWeight: 100
2753
+ };
2754
+ }
2755
+ }, {
2756
+ props: {
2757
+ size: 'medium',
2758
+ isIcon: true
2759
+ },
2760
+ style: function style(_ref19) {
2761
+ var theme = _ref19.theme;
2762
+ return {
2763
+ minWidth: 'unset',
2764
+ padding: theme.spacing(3.5, 3.5)
2765
+ };
2766
+ }
2767
+ }, {
2768
+ props: {
2769
+ size: 'small',
2770
+ isIcon: true
2771
+ },
2772
+ style: function style(_ref20) {
2773
+ var theme = _ref20.theme;
2774
+ return {
2775
+ minWidth: 'unset',
2776
+ padding: theme.spacing(2.5, 2.5)
2777
+ };
2778
+ }
2779
+ }, {
2780
+ props: {
2781
+ size: 'xsmall',
2782
+ isIcon: true
2783
+ },
2784
+ style: function style(_ref21) {
2785
+ var theme = _ref21.theme;
2786
+ return {
2787
+ minWidth: 'unset',
2788
+ padding: theme.spacing(2)
2789
+ };
2790
+ }
2791
+ }, {
2792
+ props: {
2793
+ radius: 'medium'
2794
+ },
2795
+ style: {
2796
+ borderRadius: 8
2797
+ }
2798
+ }, {
2799
+ props: {
2800
+ radius: 'small'
2801
+ },
2802
+ style: {
2803
+ borderRadius: 6
2804
+ }
2713
2805
  }]
2714
2806
  };
2715
2807
  var RabexButton = {
@@ -3805,7 +3897,7 @@ var components$3 = {
3805
3897
  }
3806
3898
  }, {
3807
3899
  props: {
3808
- hasBg: true
3900
+ fill: true
3809
3901
  },
3810
3902
  style: function style(_ref7) {
3811
3903
  var theme = _ref7.theme;
@@ -3848,6 +3940,100 @@ var components$3 = {
3848
3940
  backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
3849
3941
  };
3850
3942
  }
3943
+ }, {
3944
+ props: {
3945
+ size: 'small'
3946
+ },
3947
+ style: function style(_ref9) {
3948
+ var theme = _ref9.theme;
3949
+ return {
3950
+ fontSize: '14px',
3951
+ padding: theme.spacing(1, 3)
3952
+ };
3953
+ }
3954
+ }, {
3955
+ props: {
3956
+ size: 'large'
3957
+ },
3958
+ style: function style(_ref10) {
3959
+ var theme = _ref10.theme;
3960
+ return {
3961
+ fontSize: '16px',
3962
+ padding: theme.spacing(3)
3963
+ };
3964
+ }
3965
+ }, {
3966
+ props: {
3967
+ hasBg: true
3968
+ },
3969
+ style: function style(_ref11) {
3970
+ var theme = _ref11.theme;
3971
+ if (theme.palette.mode === 'light') {
3972
+ return {
3973
+ border: '1px solid transparent',
3974
+ background: theme.palette.secondary.A80
3975
+ };
3976
+ } else return {};
3977
+ }
3978
+ }, {
3979
+ props: {
3980
+ success: true
3981
+ },
3982
+ style: function style(_ref12) {
3983
+ var palette = _ref12.theme.palette;
3984
+ return {
3985
+ border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
3986
+ backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
3987
+ };
3988
+ }
3989
+ },
3990
+ /// old styles
3991
+ {
3992
+ props: {
3993
+ size: 'small'
3994
+ },
3995
+ style: function style(_ref13) {
3996
+ var theme = _ref13.theme;
3997
+ return {
3998
+ fontSize: '14px',
3999
+ padding: theme.spacing(1, 3)
4000
+ };
4001
+ }
4002
+ }, {
4003
+ props: {
4004
+ size: 'large'
4005
+ },
4006
+ style: function style(_ref14) {
4007
+ var theme = _ref14.theme;
4008
+ return {
4009
+ fontSize: '16px',
4010
+ padding: theme.spacing(3)
4011
+ };
4012
+ }
4013
+ }, {
4014
+ props: {
4015
+ hasBg: true
4016
+ },
4017
+ style: function style(_ref15) {
4018
+ var theme = _ref15.theme;
4019
+ if (theme.palette.mode === 'light') {
4020
+ return {
4021
+ border: '1px solid transparent',
4022
+ background: theme.palette.secondary.A80
4023
+ };
4024
+ } else return {};
4025
+ }
4026
+ }, {
4027
+ props: {
4028
+ success: true
4029
+ },
4030
+ style: function style(_ref16) {
4031
+ var palette = _ref16.theme.palette;
4032
+ return {
4033
+ border: palette.mode === 'light' ? "1px solid " + palette.success.A100 : "1px solid " + palette.success.A40,
4034
+ backgroundColor: palette.mode === 'light' ? palette.base.A0 : alpha(palette.success.A100, 0.1)
4035
+ };
4036
+ }
3851
4037
  }]
3852
4038
  };
3853
4039
  var RabexInput = {