@itcase/ui 1.0.54 → 1.0.55

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.
@@ -76,24 +76,24 @@ const Choice = /*#__PURE__*/React__default.default.forwardRef((props, ref) => {
76
76
  ref: controlRef
77
77
  }, /*#__PURE__*/React__default.default.createElement("div", {
78
78
  className: "choice__wrapper"
79
- }, options?.map(item => /*#__PURE__*/React__default.default.createElement("div", {
80
- className: clsx__default.default('choice__item', borderColorClass, borderWidthClass, borderTypeClass, fillHoverClass, item.id === active.id && fillActiveClass, item.id === active.id && 'choice__item_active'),
81
- key: item.id,
82
- ref: optionsRefs.get(item.id)
79
+ }, options?.map((item, i) => /*#__PURE__*/React__default.default.createElement("div", {
80
+ className: clsx__default.default('choice__item', borderColorClass, borderWidthClass, borderTypeClass, fillHoverClass, item.value === active.value && fillActiveClass, item.value === active.value && 'choice__item_active'),
81
+ key: item.value,
82
+ ref: optionsRefs.get(item.value)
83
83
  }, /*#__PURE__*/React__default.default.createElement("input", {
84
- checked: item.id === active.id,
84
+ checked: item.value === active.value,
85
85
  className: "choice__item-radio",
86
- id: item.id,
86
+ id: item.label,
87
87
  name: name,
88
88
  type: "radio",
89
- value: item.id,
89
+ value: item.value,
90
90
  onChange: () => setActiveSegment(item)
91
91
  }), /*#__PURE__*/React__default.default.createElement("label", {
92
92
  className: clsx__default.default('choice__item-label'),
93
- htmlFor: item.id
93
+ htmlFor: item.label
94
94
  }, /*#__PURE__*/React__default.default.createElement(index.Text, {
95
95
  size: labelTextSize,
96
- textColor: item.id === active.id ? labelTextActiveColor : labelTextColor
96
+ textColor: item.value === active.value ? labelTextActiveColor : labelTextColor
97
97
  }, item.label))))));
98
98
  });
99
99
  Choice.displayName = 'Choice';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.0.54",
3
+ "version": "1.0.55",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",