@fixefy/fixefy-ui-components 0.3.37 → 0.3.39

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.
@@ -0,0 +1,190 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ InputWrapper: function() {
13
+ return InputWrapper;
14
+ },
15
+ Root: function() {
16
+ return Root;
17
+ },
18
+ StyledListBox: function() {
19
+ return StyledListBox;
20
+ }
21
+ });
22
+ const _styles = require("@mui/material/styles");
23
+ function _define_property(obj, key, value) {
24
+ if (key in obj) {
25
+ Object.defineProperty(obj, key, {
26
+ value: value,
27
+ enumerable: true,
28
+ configurable: true,
29
+ writable: true
30
+ });
31
+ } else {
32
+ obj[key] = value;
33
+ }
34
+ return obj;
35
+ }
36
+ function _object_spread(target) {
37
+ for(var i = 1; i < arguments.length; i++){
38
+ var source = arguments[i] != null ? arguments[i] : {};
39
+ var ownKeys = Object.keys(source);
40
+ if (typeof Object.getOwnPropertySymbols === "function") {
41
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
42
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
43
+ }));
44
+ }
45
+ ownKeys.forEach(function(key) {
46
+ _define_property(target, key, source[key]);
47
+ });
48
+ }
49
+ return target;
50
+ }
51
+ function ownKeys(object, enumerableOnly) {
52
+ var keys = Object.keys(object);
53
+ if (Object.getOwnPropertySymbols) {
54
+ var symbols = Object.getOwnPropertySymbols(object);
55
+ if (enumerableOnly) {
56
+ symbols = symbols.filter(function(sym) {
57
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
58
+ });
59
+ }
60
+ keys.push.apply(keys, symbols);
61
+ }
62
+ return keys;
63
+ }
64
+ function _object_spread_props(target, source) {
65
+ source = source != null ? source : {};
66
+ if (Object.getOwnPropertyDescriptors) {
67
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
68
+ } else {
69
+ ownKeys(Object(source)).forEach(function(key) {
70
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
71
+ });
72
+ }
73
+ return target;
74
+ }
75
+ const Root = (0, _styles.styled)('div')(({ props })=>{
76
+ return _object_spread({
77
+ color: 'rgba(0,0,0,.85)',
78
+ fontSize: 14,
79
+ background: '#FFFFFF',
80
+ padding: '0 16px',
81
+ position: 'relative',
82
+ ' & .MuiBox-root': {
83
+ ['& > div']: {
84
+ padding: 0
85
+ }
86
+ }
87
+ }, props);
88
+ });
89
+ const InputWrapper = (0, _styles.styled)('div')(({ theme, hasValue, disabled })=>{
90
+ const disabledBorder = `1px solid ${theme.palette.greyscale[200]}`;
91
+ const activeBorder = `1px solid ${theme.palette.primary[500]}`;
92
+ return {
93
+ backgroundColor: theme.palette.common.white,
94
+ borderRadius: 4,
95
+ padding: 1,
96
+ display: 'flex',
97
+ alignItems: 'center',
98
+ flexWrap: 'wrap',
99
+ cursor: disabled ? 'not-allowed' : 'pointer',
100
+ width: '100%',
101
+ border: 'none !important',
102
+ outline: 'none !important',
103
+ ['&:hover']: {
104
+ border: disabled ? disabledBorder : activeBorder,
105
+ borderRadius: 4
106
+ },
107
+ ['&:focus']: {
108
+ border: disabled ? disabledBorder : activeBorder,
109
+ borderRadius: 4
110
+ },
111
+ ['& > svg']: {
112
+ color: disabled ? theme.palette.greyscale[300] : theme.palette.primary['500'],
113
+ marginRight: 8
114
+ },
115
+ ['& input']: _object_spread_props(_object_spread({
116
+ border: 'none',
117
+ outline: 'none',
118
+ cursor: disabled ? 'not-allowed' : 'pointer',
119
+ backgroundColor: theme.palette.common.white,
120
+ color: theme.palette.typography.title,
121
+ height: 36,
122
+ boxSizing: 'border-box',
123
+ width: 0,
124
+ minWidth: 30,
125
+ flexGrow: 1,
126
+ margin: 0
127
+ }, theme.typography.body1), {
128
+ lineHeight: '20px',
129
+ ['& ::placeholder']: {
130
+ color: hasValue ? theme.palette.typography.title : theme.palette.greyscale[400]
131
+ }
132
+ })
133
+ };
134
+ });
135
+ const StyledListBox = (0, _styles.styled)('ul')(({ theme })=>({
136
+ margin: 0,
137
+ padding: 0,
138
+ listStyle: 'none',
139
+ backgroundColor: theme.palette.common.white,
140
+ overflow: 'auto',
141
+ zIndex: 1,
142
+ textOverflow: 'ellipsis',
143
+ whiteSpace: 'nowrap',
144
+ overflowX: 'hidden',
145
+ paddingTop: 8,
146
+ paddingBottom: 8,
147
+ '&::-webkit-scrollbar': {
148
+ width: '8px',
149
+ backgroundColor: 'transparent'
150
+ },
151
+ '&::-webkit-scrollbar-thumb': {
152
+ backgroundColor: '#8B9092',
153
+ borderRadius: '8px'
154
+ },
155
+ // To support Firefox
156
+ scrollbarWidth: 'thin',
157
+ scrollbarColor: '#8B9092 transparent',
158
+ maxHeight: '300px',
159
+ overflowY: 'auto',
160
+ ['& div']: {
161
+ textOverflow: 'ellipsis',
162
+ whiteSpace: 'nowrap',
163
+ overflow: 'hidden'
164
+ },
165
+ ['& li']: {
166
+ display: 'flex',
167
+ alignItems: 'center',
168
+ justifyContent: 'flex-start',
169
+ height: 40,
170
+ cursor: 'pointer',
171
+ textOverflow: 'ellipsis',
172
+ whiteSpace: 'nowrap',
173
+ overflow: 'hidden',
174
+ width: '100%'
175
+ },
176
+ ['& li:hover']: {
177
+ backgroundColor: '#F6F9FA'
178
+ },
179
+ ["& li[aria-selected='true']"]: {
180
+ fontWeight: 900,
181
+ backgroundColor: '#F6F9FA'
182
+ },
183
+ ["& li[data-focus='true']"]: {
184
+ backgroundColor: '#F6F9FA',
185
+ cursor: 'pointer',
186
+ ['& svg ']: {
187
+ color: 'currentColor'
188
+ }
189
+ }
190
+ }));
package/dist/index.d.ts CHANGED
@@ -19,7 +19,7 @@ export { FxProgressCounter, ProgressCounterPropsType } from './FxProgressCounter
19
19
  export { FxScore, ScorePropsType } from './FxScore';
20
20
  export { FxShowMore, ShowMorePropsType } from './FxShowMore';
21
21
  export { FxSlider, SliderPropsType } from './FxSlider';
22
- export { FxStaticDropdown, StaticDropdownStylesOptions, StaticDropdownPropsType } from './FxStaticDropdown';
22
+ export { FxStrStaticDropdown, StaticDropdownStylesOptions, StaticDropdownPropsType } from './FxStrStaticDropdown';
23
23
  export { FxStatisticsBar, StatisticsPropsType } from './FxStatisticsBar';
24
24
  export { FxStyledButton } from './FxStyledButton';
25
25
  export { FxStatusBar, StatusBarPropsType, Options } from './FxStatusBar';
package/dist/index.js CHANGED
@@ -105,15 +105,15 @@ _export(exports, {
105
105
  FxSlider: function() {
106
106
  return _FxSlider.FxSlider;
107
107
  },
108
- FxStaticDropdown: function() {
109
- return _FxStaticDropdown.FxStaticDropdown;
110
- },
111
108
  FxStatisticsBar: function() {
112
109
  return _FxStatisticsBar.FxStatisticsBar;
113
110
  },
114
111
  FxStatusBar: function() {
115
112
  return _FxStatusBar.FxStatusBar;
116
113
  },
114
+ FxStrStaticDropdown: function() {
115
+ return _FxStrStaticDropdown.FxStrStaticDropdown;
116
+ },
117
117
  FxStyledButton: function() {
118
118
  return _FxStyledButton.FxStyledButton;
119
119
  },
@@ -193,10 +193,10 @@ _export(exports, {
193
193
  return _FxSlider.SliderPropsType;
194
194
  },
195
195
  StaticDropdownPropsType: function() {
196
- return _FxStaticDropdown.StaticDropdownPropsType;
196
+ return _FxStrStaticDropdown.StaticDropdownPropsType;
197
197
  },
198
198
  StaticDropdownStylesOptions: function() {
199
- return _FxStaticDropdown.StaticDropdownStylesOptions;
199
+ return _FxStrStaticDropdown.StaticDropdownStylesOptions;
200
200
  },
201
201
  StatisticsPropsType: function() {
202
202
  return _FxStatisticsBar.StatisticsPropsType;
@@ -250,7 +250,7 @@ const _FxProgressCounter = require("./FxProgressCounter");
250
250
  const _FxScore = require("./FxScore");
251
251
  const _FxShowMore = require("./FxShowMore");
252
252
  const _FxSlider = require("./FxSlider");
253
- const _FxStaticDropdown = require("./FxStaticDropdown");
253
+ const _FxStrStaticDropdown = require("./FxStrStaticDropdown");
254
254
  const _FxStatisticsBar = require("./FxStatisticsBar");
255
255
  const _FxStyledButton = require("./FxStyledButton");
256
256
  const _FxStatusBar = require("./FxStatusBar");
package/package.json CHANGED
@@ -67,5 +67,5 @@
67
67
  "require": "./dist/index.js"
68
68
  }
69
69
  },
70
- "version": "0.3.37"
70
+ "version": "0.3.39"
71
71
  }