@itcase/ui 1.0.24 → 1.0.26

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.
@@ -61,6 +61,7 @@ var Button = /*#__PURE__*/React__default.default.forwardRef(function Button(prop
61
61
  label = props.label,
62
62
  labelTextColor = props.labelTextColor,
63
63
  labelTextSize = props.labelTextSize,
64
+ labelTextWrap = props.labelTextWrap,
64
65
  loaderSet = props.loaderSet,
65
66
  loaderFill = props.loaderFill,
66
67
  loaderItemFill = props.loaderItemFill,
@@ -158,7 +159,8 @@ var Button = /*#__PURE__*/React__default.default.forwardRef(function Button(prop
158
159
  className: "button__label",
159
160
  size: labelTextSize,
160
161
  style: labelStyles,
161
- textColor: labelTextColor
162
+ textColor: labelTextColor,
163
+ textWrap: labelTextWrap
162
164
  }, children || label), iconAfter && /*#__PURE__*/React__default.default.createElement(index$2.Icon, {
163
165
  className: "button__icon_after",
164
166
  iconFill: iconAfterFill,
@@ -80,6 +80,10 @@ function RadioButton(props) {
80
80
  prefix: 'border-color_',
81
81
  propsKey: checked ? 'stateBorderColorChecked' : 'stateBorderColor'
82
82
  });
83
+ var stateBorderColorHoverClass = useDeviceTargetClass.useDeviceTargetClass(props, {
84
+ prefix: 'border-color_hover_',
85
+ propsKey: checked ? 'stateBorderColorHoverChecked' : 'stateBorderColorHover'
86
+ });
83
87
  var stateBorderColorDisabledClass = useDeviceTargetClass.useDeviceTargetClass(props, {
84
88
  prefix: 'border-color_',
85
89
  propsKey: checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled'
@@ -97,7 +101,7 @@ function RadioButton(props) {
97
101
  type: "radio",
98
102
  onChange: onChange
99
103
  }), /*#__PURE__*/React__default.default.createElement("div", {
100
- className: clsx__default.default('radio-button__state', disabled ? stateFillDisabledClass : stateFillClass, disabled ? stateBorderColorDisabledClass : stateBorderColorClass, stateShapeClass, stateBorderWidthClass)
104
+ className: clsx__default.default('radio-button__state', disabled ? stateFillDisabledClass : stateFillClass, disabled ? stateBorderColorDisabledClass : stateBorderColorClass, stateBorderColorHoverClass, stateShapeClass, stateBorderWidthClass)
101
105
  }, "\xA0"), /*#__PURE__*/React__default.default.createElement("div", {
102
106
  className: "radio-button__state-checkmark"
103
107
  }, "\xA0")), label && /*#__PURE__*/React__default.default.createElement(index.Text, {
@@ -7558,12 +7558,14 @@ var SelectGroupHeading = function SelectGroupHeading(props) {
7558
7558
  var _props$selectProps = props.selectProps,
7559
7559
  headingFill = _props$selectProps.headingFill,
7560
7560
  headingFillHover = _props$selectProps.headingFillHover,
7561
+ headingTextWeight = _props$selectProps.headingTextWeight,
7561
7562
  headingTextSize = _props$selectProps.headingTextSize,
7562
7563
  headingTextColor = _props$selectProps.headingTextColor;
7563
7564
  return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.GroupHeading, Object.assign({}, props, {
7564
7565
  className: clsx__default.default('select__menu-group-heading', headingFill, headingFillHover)
7565
7566
  }), /*#__PURE__*/React__namespace.default.createElement(index$2.Text, {
7566
7567
  size: headingTextSize,
7568
+ textWeight: headingTextWeight,
7567
7569
  textColor: headingTextColor
7568
7570
  }, props.data.label));
7569
7571
  };
@@ -7590,7 +7592,10 @@ SelectInput.propTypes = {
7590
7592
  };
7591
7593
 
7592
7594
  var SelectMenu = function SelectMenu(props) {
7593
- return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Menu, props, props.selectProps.fetchingData ? /*#__PURE__*/React__namespace.default.createElement("span", {
7595
+ var elevation = props.selectProps.elevation;
7596
+ return /*#__PURE__*/React__namespace.default.createElement(Select$1.components.Menu, Object.assign({}, props, {
7597
+ className: clsx__default.default(elevation && "elevation_" + elevation)
7598
+ }), props.selectProps.fetchingData ? /*#__PURE__*/React__namespace.default.createElement("span", {
7594
7599
  className: "fetching"
7595
7600
  }, "Fetching data...") : /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, props.children));
7596
7601
  };
@@ -7779,6 +7784,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
7779
7784
  noOptionsText = props.noOptionsText,
7780
7785
  openMenuOnClick = props.openMenuOnClick,
7781
7786
  options = props.options,
7787
+ elevation = props.elevation,
7782
7788
  placeholder = props.placeholder,
7783
7789
  set = props.set,
7784
7790
  value = props.value,
@@ -7880,6 +7886,9 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
7880
7886
  var headingTextSizeClass = useDeviceTargetClass.useDeviceTargetClass(props, {
7881
7887
  propsKey: 'headingTextSize'
7882
7888
  });
7889
+ var headingTextWeightClass = useDeviceTargetClass.useDeviceTargetClass(props, {
7890
+ propsKey: 'headingTextWeight'
7891
+ });
7883
7892
  var headingTextColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
7884
7893
  propsKey: 'headingTextColor'
7885
7894
  });
@@ -7891,6 +7900,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
7891
7900
  classNamePrefix: "select",
7892
7901
  styles: clearStyle,
7893
7902
  value: value,
7903
+ elevation: elevation,
7894
7904
  isClearable: isClearable,
7895
7905
  openMenuOnClick: openMenuOnClick,
7896
7906
  clearIcon: clearIcon,
@@ -7935,6 +7945,7 @@ var SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(function
7935
7945
  headingFillHover: headingFillHoverClass,
7936
7946
  headingTextSize: headingTextSizeClass,
7937
7947
  headingTextColor: headingTextColorClass,
7948
+ headingTextWeight: headingTextWeightClass,
7938
7949
  multipleItemFill: multipleItemFill,
7939
7950
  multipleItemFillHover: multipleItemFillHover,
7940
7951
  multipleItemTextSize: multipleItemTextSizeClass,
@@ -49,11 +49,11 @@
49
49
  height: 100%;
50
50
  position: relative;
51
51
  overflow: hidden;
52
- border-radius: 12px;
52
+ border-radius: var(--image-shape-rounded, 12px);
53
53
  & > ^^^&__item {
54
54
  width: 100%;
55
55
  height: 100%;
56
- border-radius: 12px;
56
+ border-radius: var(--image-shape-rounded, 12px);
57
57
  }
58
58
  }
59
59
  }
@@ -12,10 +12,17 @@
12
12
  width: 100%;
13
13
  align-items: flex-end;
14
14
  display: flex;
15
+ gap: 20px;
16
+ position: relative;
17
+ top: 20px;
18
+ right: 40px;
15
19
  flex-flow: column nowrap;
16
20
  }
17
21
  }
18
22
  }
23
+ :root {
24
+ --image-shape-rounded: 6px;
25
+ }
19
26
  .notification__item {
20
27
  &_set {
21
28
  &_float {
@@ -4,7 +4,7 @@
4
4
  grid-template-rows: auto auto;
5
5
  column-gap: 4px;
6
6
  &:hover {
7
- .radio-button__state {
7
+ ^&__state {
8
8
  border-color: var(--radio-button-state-hover-border);
9
9
  }
10
10
  }
@@ -18,6 +18,7 @@
18
18
  min-width: 16px;
19
19
  grid-row-start: span 2;
20
20
  align-self: start;
21
+ margin: 2px 0 0 0;
21
22
  ^&__input {
22
23
  cursor: pointer;
23
24
  appearance: none;
@@ -154,18 +154,20 @@
154
154
  .select {
155
155
  &__menu {
156
156
  width: 100%;
157
- margin: 0;
157
+ margin: var(--select-menu-margin, 0);
158
158
  border-top: none;
159
159
  position: absolute;
160
160
  left: 0;
161
161
  top: 100%;
162
162
  z-index: 100000;
163
+ border-radius: var(--select-menu-border-radius, 0);
163
164
  &-group-heading {
164
165
  z-index: 100000;
165
166
  }
166
167
  &-list {
167
168
  overflow-y: scroll;
168
169
  max-height: 240px;
170
+ border-radius: var(--select-menu-border-radius, 0);
169
171
  &-item {
170
172
  width: 100%;
171
173
  &_option {
@@ -259,6 +261,7 @@
259
261
  .select {
260
262
  &__single-value {
261
263
  display: flex;
264
+ position: absolute;
262
265
  }
263
266
  }
264
267
 
@@ -272,6 +275,9 @@
272
275
  align-items: center;
273
276
  &--is-multi {
274
277
  gap: 8px;
278
+ & .select__placeholder {
279
+ position: relative;
280
+ }
275
281
  & .select__input-container {
276
282
  display: none;
277
283
  }
@@ -1,18 +1,20 @@
1
1
  .select {
2
2
  &__menu {
3
3
  width: 100%;
4
- margin: 0;
4
+ margin: var(--select-menu-margin, 0);
5
5
  border-top: none;
6
6
  position: absolute;
7
7
  left: 0;
8
8
  top: 100%;
9
9
  z-index: 100000;
10
+ border-radius: var(--select-menu-border-radius, 0);
10
11
  &-group-heading {
11
12
  z-index: 100000;
12
13
  }
13
14
  &-list {
14
15
  overflow-y: scroll;
15
16
  max-height: 240px;
17
+ border-radius: var(--select-menu-border-radius, 0);
16
18
  &-item {
17
19
  width: 100%;
18
20
  &_option {
@@ -1,5 +1,6 @@
1
1
  .select {
2
2
  &__single-value {
3
3
  display: flex;
4
+ position: absolute;
4
5
  }
5
6
  }
@@ -8,6 +8,9 @@
8
8
  align-items: center;
9
9
  &--is-multi {
10
10
  gap: 8px;
11
+ & .select__placeholder {
12
+ position: relative;
13
+ }
11
14
  & .select__input-container {
12
15
  display: none;
13
16
  }
@@ -46,6 +46,7 @@
46
46
  justify-content: flex-end;
47
47
  &__wrapper {
48
48
  display: flex;
49
+ flex: 1;
49
50
  justify-content: center;
50
51
  align-items: center;
51
52
  gap: 4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",