@sledge-app/react-instant-search 2.0.4 → 2.0.5

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.
@@ -1107,46 +1107,34 @@ const rowRenderer = ({ virtualized, item, id, labelStyle }) => {
1107
1107
  ] });
1108
1108
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__radio-group-item-flex", children: content }, key || index);
1109
1109
  };
1110
- const RadioGroup = ({ id, name, required, defaultValue, items, labelStyle = {}, onValueChange, useVirtualized = false, scrollElement, selector, parentRef }) => {
1111
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__radio-group-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx("form", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1112
- $f99a8c78507165f7$export$be92b6f5f03c0fe9,
1110
+ const RadioGroup = ({ id, name, required, value, items, labelStyle = {}, onValueChange, useVirtualized = false, scrollElement, selector, parentRef }) => {
1111
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "sledge__radio-group-wrapper", children: /* @__PURE__ */ jsxRuntimeExports.jsx("form", { children: /* @__PURE__ */ jsxRuntimeExports.jsx($f99a8c78507165f7$export$be92b6f5f03c0fe9, { className: "sledge__radio-group-root", "aria-label": "View density", id, name, required, onValueChange, value: String(value), children: useVirtualized ? /* @__PURE__ */ jsxRuntimeExports.jsx(
1112
+ VirtualizedList,
1113
1113
  {
1114
- className: "sledge__radio-group-root",
1115
- "aria-label": "View density",
1116
- defaultValue,
1114
+ rowCount: items == null ? void 0 : items.length,
1115
+ rowRenderer: ({ index, key }) => rowRenderer({
1116
+ virtualized: {
1117
+ index,
1118
+ key
1119
+ },
1120
+ item: items[index],
1121
+ id,
1122
+ labelStyle
1123
+ }),
1124
+ scrollElement,
1125
+ selector,
1126
+ parentRef
1127
+ }
1128
+ ) : items.map(
1129
+ (item, index) => rowRenderer({
1130
+ virtualized: {
1131
+ index
1132
+ },
1133
+ item,
1117
1134
  id,
1118
- name,
1119
- required,
1120
- onValueChange,
1121
- children: useVirtualized ? /* @__PURE__ */ jsxRuntimeExports.jsx(
1122
- VirtualizedList,
1123
- {
1124
- rowCount: items == null ? void 0 : items.length,
1125
- rowRenderer: ({ index, key }) => rowRenderer({
1126
- virtualized: {
1127
- index,
1128
- key
1129
- },
1130
- item: items[index],
1131
- id,
1132
- labelStyle
1133
- }),
1134
- scrollElement,
1135
- selector,
1136
- parentRef
1137
- }
1138
- ) : items.map(
1139
- (item, index) => rowRenderer({
1140
- virtualized: {
1141
- index
1142
- },
1143
- item,
1144
- id,
1145
- labelStyle
1146
- })
1147
- )
1148
- }
1149
- ) }) });
1135
+ labelStyle
1136
+ })
1137
+ ) }) }) });
1150
1138
  };
1151
1139
  const ColorSwatch$1 = "";
1152
1140
  const ColorSwatch = ({ id, name, value, rgb, image, required, checked, onClick }) => {
@@ -7732,7 +7720,7 @@ const Facet = (props) => {
7732
7720
  value: value2
7733
7721
  };
7734
7722
  }),
7735
- defaultValue: clickedFacets && ((_d = clickedFacets[value]) == null ? void 0 : _d.length) ? clickedFacets[value][0] : "",
7723
+ value: clickedFacets && ((_d = clickedFacets[value]) == null ? void 0 : _d.length) ? clickedFacets[value][0] : "",
7736
7724
  labelStyle: filter_option_style,
7737
7725
  useVirtualized: true,
7738
7726
  selector: scrollElementSelector,