@algolia/satellite 2.10.0 → 2.12.0

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.
Files changed (145) hide show
  1. package/dist/cjs/Actions/Accordion/Accordion.js +1 -2
  2. package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +2 -2
  3. package/dist/cjs/Actions/Accordion/Accordion.styles.js +23 -23
  4. package/dist/cjs/Actions/Button/PolymorphicButton.js +1 -2
  5. package/dist/cjs/Actions/Button/styles.js +4 -4
  6. package/dist/cjs/Actions/IconButtonWithFeedback/IconButtonWithFeedback.js +1 -1
  7. package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.js +2 -2
  8. package/dist/cjs/Actions/ToggleGroup/ToggleGroup.js +1 -2
  9. package/dist/cjs/Chat/ChatCodeDisplay/ChatCodeDisplay.js +2 -3
  10. package/dist/cjs/Chat/ChatCodeDisplay/ChatCodeDisplay.styles.d.ts +4 -4
  11. package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +2 -2
  12. package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +2 -2
  13. package/dist/cjs/Chat/ChatMessage/ChatMessage.js +1 -1
  14. package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.d.ts +2 -2
  15. package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.js +10 -10
  16. package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +3 -3
  17. package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +3 -3
  18. package/dist/cjs/Chat/ChatMessages/ChatMessages.styles.d.ts +2 -2
  19. package/dist/cjs/Chat/ChatPrompt/ChatPrompt.styles.d.ts +2 -2
  20. package/dist/cjs/Fields/AutoComplete/AutoComplete.js +14 -14
  21. package/dist/cjs/Fields/DatePicker/components/Popover.js +2 -3
  22. package/dist/cjs/Fields/Dropzone/Dropzone.js +5 -5
  23. package/dist/cjs/Fields/FilePicker/FilePicker.js +4 -4
  24. package/dist/cjs/Fields/Form/stories/AsynchronousValidation.js +17 -18
  25. package/dist/cjs/Fields/Form/stories/Complex.js +67 -68
  26. package/dist/cjs/Fields/Form/stories/DependentFieldsValidation.js +9 -10
  27. package/dist/cjs/Fields/Form/stories/DirtyFields.js +18 -19
  28. package/dist/cjs/Fields/Form/stories/DynamicFieldsValidation.js +19 -20
  29. package/dist/cjs/Fields/Form/stories/ExtraErrors.js +13 -14
  30. package/dist/cjs/Fields/Form/stories/FieldArrays.js +23 -24
  31. package/dist/cjs/Fields/Form/stories/JSONForms.js +79 -79
  32. package/dist/cjs/Fields/Form/stories/MultiStep.js +72 -73
  33. package/dist/cjs/Fields/Form/stories/ValidationStrategies.js +15 -16
  34. package/dist/cjs/Fields/Input/Input.js +10 -10
  35. package/dist/cjs/Fields/SelectableCard/SelectableCard.js +9 -9
  36. package/dist/cjs/Fields/Switch/Switch.tailwind.js +4 -1
  37. package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +2 -2
  38. package/dist/cjs/Icons/AmexCardIcon.d.ts +2 -0
  39. package/dist/cjs/Icons/AmexCardIcon.js +34 -0
  40. package/dist/cjs/Icons/DiscoverCardIcon.d.ts +2 -0
  41. package/dist/cjs/Icons/DiscoverCardIcon.js +34 -0
  42. package/dist/cjs/Icons/MasterCardIcon.d.ts +2 -0
  43. package/dist/cjs/Icons/MasterCardIcon.js +34 -0
  44. package/dist/cjs/Icons/VisaCardIcon.d.ts +2 -0
  45. package/dist/cjs/Icons/VisaCardIcon.js +34 -0
  46. package/dist/cjs/Icons/index.d.ts +4 -0
  47. package/dist/cjs/Icons/index.js +28 -0
  48. package/dist/cjs/Indicators/Avatars/utils.js +4 -4
  49. package/dist/cjs/Indicators/Badge/Badge.js +4 -4
  50. package/dist/cjs/Indicators/Banners/Alert/Alert.js +13 -13
  51. package/dist/cjs/Indicators/Banners/Promote/Promote.js +4 -4
  52. package/dist/cjs/Indicators/EmptyState/EmptyState.js +16 -16
  53. package/dist/cjs/Indicators/Medallion/Medallion.js +3 -3
  54. package/dist/cjs/Indicators/ProgressBar/ProgressBar.js +1 -2
  55. package/dist/cjs/Indicators/Separator/Separator.js +1 -2
  56. package/dist/cjs/Indicators/Tag/Tag.js +10 -10
  57. package/dist/cjs/Indicators/Toast/Toast.js +12 -13
  58. package/dist/cjs/Indicators/Toast/Toasts.js +2 -3
  59. package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.js +1 -2
  60. package/dist/cjs/Layout/FlexGrid/FlexGrid.js +11 -11
  61. package/dist/cjs/Layout/Tables/DataTable/DataTable.js +3 -3
  62. package/dist/cjs/Navigation/Stepper/Step.js +12 -12
  63. package/dist/cjs/Navigation/Tabs/components/LinkTab.js +6 -6
  64. package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +1 -1
  65. package/dist/cjs/Overlay/MenuButton/MenuButton.js +1 -2
  66. package/dist/cjs/Overlay/MenuButton/components/Content.js +1 -1
  67. package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.js +1 -2
  68. package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.js +1 -2
  69. package/dist/cjs/Overlay/MenuButton/components/Divider.js +1 -2
  70. package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.js +1 -2
  71. package/dist/cjs/Overlay/MenuButton/components/items/Item.js +1 -2
  72. package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.js +1 -2
  73. package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.js +1 -2
  74. package/dist/cjs/Overlay/MenuButton/components/items/ToggleItem.js +1 -2
  75. package/dist/cjs/Overlay/Modal/Modal.js +9 -10
  76. package/dist/cjs/Overlay/Popover/Popover.js +2 -3
  77. package/dist/cjs/Overlay/TooltipWrapper/TooltipWrapper.js +2 -3
  78. package/dist/cjs/utils/getTextFromReactNode.js +1 -1
  79. package/dist/cjs/utils/onlyText.js +2 -2
  80. package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +2 -2
  81. package/dist/esm/Actions/Accordion/Accordion.styles.js +23 -23
  82. package/dist/esm/Actions/Button/styles.js +4 -4
  83. package/dist/esm/Actions/IconButtonWithFeedback/IconButtonWithFeedback.js +1 -1
  84. package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +2 -2
  85. package/dist/esm/Chat/ChatCodeDisplay/ChatCodeDisplay.js +1 -1
  86. package/dist/esm/Chat/ChatCodeDisplay/ChatCodeDisplay.styles.d.ts +4 -4
  87. package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +2 -2
  88. package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +2 -2
  89. package/dist/esm/Chat/ChatMessage/ChatMessage.js +1 -1
  90. package/dist/esm/Chat/ChatMessage/ChatMessage.styles.d.ts +2 -2
  91. package/dist/esm/Chat/ChatMessage/ChatMessage.styles.js +10 -10
  92. package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +3 -3
  93. package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +3 -3
  94. package/dist/esm/Chat/ChatMessages/ChatMessages.styles.d.ts +2 -2
  95. package/dist/esm/Chat/ChatPrompt/ChatPrompt.styles.d.ts +2 -2
  96. package/dist/esm/Fields/AutoComplete/AutoComplete.js +14 -14
  97. package/dist/esm/Fields/DatePicker/components/Popover.js +1 -1
  98. package/dist/esm/Fields/Dropzone/Dropzone.js +5 -5
  99. package/dist/esm/Fields/FilePicker/FilePicker.js +4 -4
  100. package/dist/esm/Fields/Form/stories/AsynchronousValidation.js +16 -16
  101. package/dist/esm/Fields/Form/stories/Complex.js +66 -66
  102. package/dist/esm/Fields/Form/stories/DependentFieldsValidation.js +8 -8
  103. package/dist/esm/Fields/Form/stories/DirtyFields.js +17 -17
  104. package/dist/esm/Fields/Form/stories/DynamicFieldsValidation.js +18 -18
  105. package/dist/esm/Fields/Form/stories/ExtraErrors.js +12 -12
  106. package/dist/esm/Fields/Form/stories/FieldArrays.js +22 -22
  107. package/dist/esm/Fields/Form/stories/JSONForms.js +79 -79
  108. package/dist/esm/Fields/Form/stories/MultiStep.js +71 -71
  109. package/dist/esm/Fields/Form/stories/ValidationStrategies.js +14 -14
  110. package/dist/esm/Fields/Input/Input.js +10 -10
  111. package/dist/esm/Fields/SelectableCard/SelectableCard.js +9 -9
  112. package/dist/esm/Fields/Switch/Switch.tailwind.js +4 -1
  113. package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +2 -2
  114. package/dist/esm/Icons/AmexCardIcon.d.ts +2 -0
  115. package/dist/esm/Icons/AmexCardIcon.js +27 -0
  116. package/dist/esm/Icons/DiscoverCardIcon.d.ts +2 -0
  117. package/dist/esm/Icons/DiscoverCardIcon.js +27 -0
  118. package/dist/esm/Icons/MasterCardIcon.d.ts +2 -0
  119. package/dist/esm/Icons/MasterCardIcon.js +27 -0
  120. package/dist/esm/Icons/VisaCardIcon.d.ts +2 -0
  121. package/dist/esm/Icons/VisaCardIcon.js +27 -0
  122. package/dist/esm/Icons/index.d.ts +4 -0
  123. package/dist/esm/Icons/index.js +4 -0
  124. package/dist/esm/Indicators/Avatars/utils.js +4 -4
  125. package/dist/esm/Indicators/Badge/Badge.js +4 -4
  126. package/dist/esm/Indicators/Banners/Alert/Alert.js +13 -13
  127. package/dist/esm/Indicators/Banners/Promote/Promote.js +4 -4
  128. package/dist/esm/Indicators/EmptyState/EmptyState.js +16 -16
  129. package/dist/esm/Indicators/Medallion/Medallion.js +3 -3
  130. package/dist/esm/Indicators/Tag/Tag.js +10 -10
  131. package/dist/esm/Indicators/Toast/Toast.js +11 -11
  132. package/dist/esm/Indicators/Toast/Toasts.js +1 -1
  133. package/dist/esm/Layout/FlexGrid/FlexGrid.js +11 -11
  134. package/dist/esm/Layout/Tables/DataTable/DataTable.js +3 -3
  135. package/dist/esm/Navigation/Stepper/Step.js +12 -12
  136. package/dist/esm/Navigation/Tabs/components/LinkTab.js +6 -6
  137. package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +1 -1
  138. package/dist/esm/Overlay/MenuButton/components/Content.js +1 -1
  139. package/dist/esm/Overlay/Modal/Modal.js +8 -8
  140. package/dist/esm/Overlay/Popover/Popover.js +1 -1
  141. package/dist/esm/Overlay/TooltipWrapper/TooltipWrapper.js +1 -1
  142. package/dist/esm/utils/getTextFromReactNode.js +1 -1
  143. package/dist/esm/utils/onlyText.js +2 -2
  144. package/dist/satellite.min.css +1 -1
  145. package/package.json +19 -28
@@ -2,7 +2,7 @@ import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
4
4
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
5
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70, _templateObject71, _templateObject72;
5
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55, _templateObject56, _templateObject57, _templateObject58, _templateObject59, _templateObject60, _templateObject61, _templateObject62, _templateObject63, _templateObject64, _templateObject65, _templateObject66, _templateObject67, _templateObject68, _templateObject69, _templateObject70;
6
6
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7
7
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
8
8
  import { zodResolver } from "@hookform/resolvers/zod";
@@ -178,23 +178,23 @@ export var RHFMultiStepComponent = function RHFMultiStepComponent() {
178
178
  state: getFieldState("variants"),
179
179
  className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["w-full shrink-0"]))),
180
180
  children: /*#__PURE__*/_jsx("div", {
181
- className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["mt-7"]))),
181
+ className: stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["mt-7"]))),
182
182
  children: variantsOptions.map(function (option) {
183
183
  return /*#__PURE__*/_jsxs("label", {
184
184
  htmlFor: option.value,
185
- className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
185
+ className: stl(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
186
186
  children: [/*#__PURE__*/_jsxs("div", {
187
- className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
187
+ className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
188
188
  children: [/*#__PURE__*/_jsx(RadioButton, _objectSpread(_objectSpread({
189
189
  id: option.value,
190
190
  "aria-labelledby": option.value,
191
191
  required: true
192
192
  }, field), {}, {
193
193
  value: option.value,
194
- className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["shrink-0"])))
194
+ className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["shrink-0"])))
195
195
  })), option.title]
196
196
  }), /*#__PURE__*/_jsx("div", {
197
- className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
197
+ className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
198
198
  children: option.description
199
199
  })]
200
200
  }, option.value);
@@ -209,30 +209,30 @@ export var RHFMultiStepComponent = function RHFMultiStepComponent() {
209
209
  var field = _ref2.field;
210
210
  return /*#__PURE__*/_jsx(Field, {
211
211
  label: /*#__PURE__*/_jsx("h2", {
212
- className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
212
+ className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
213
213
  children: "How would you like to show out-of-stock items?"
214
214
  }),
215
215
  labelFor: outOfStockEnum[0],
216
216
  state: getFieldState("outOfStock"),
217
- className: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["w-full shrink-0"]))),
217
+ className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["w-full shrink-0"]))),
218
218
  children: /*#__PURE__*/_jsx("div", {
219
- className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["mt-7"]))),
219
+ className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["mt-7"]))),
220
220
  children: outOfStockOptions.map(function (option) {
221
221
  return /*#__PURE__*/_jsxs("label", {
222
222
  htmlFor: option.value,
223
- className: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
223
+ className: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
224
224
  children: [/*#__PURE__*/_jsxs("div", {
225
- className: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
225
+ className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
226
226
  children: [/*#__PURE__*/_jsx(RadioButton, _objectSpread(_objectSpread({
227
227
  id: option.value,
228
228
  "aria-labelledby": option.value,
229
229
  required: true
230
230
  }, field), {}, {
231
231
  value: option.value,
232
- className: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["shrink-0"])))
232
+ className: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["shrink-0"])))
233
233
  })), option.title]
234
234
  }), /*#__PURE__*/_jsx("div", {
235
- className: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
235
+ className: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
236
236
  children: option.description
237
237
  })]
238
238
  }, option.value);
@@ -247,21 +247,21 @@ export var RHFMultiStepComponent = function RHFMultiStepComponent() {
247
247
  var field = _ref3.field;
248
248
  return /*#__PURE__*/_jsxs(Field, {
249
249
  label: /*#__PURE__*/_jsx("h2", {
250
- className: stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
250
+ className: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
251
251
  children: "Select how your customers can sort their search results"
252
252
  }),
253
253
  labelFor: sortingOptions[0],
254
254
  state: getFieldState("sorting"),
255
- className: stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["w-full shrink-0"]))),
255
+ className: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["w-full shrink-0"]))),
256
256
  children: [/*#__PURE__*/_jsx("div", {
257
- className: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
257
+ className: stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
258
258
  children: "Select the sort order options you'd like to show customers. You can change these later."
259
259
  }), /*#__PURE__*/_jsx("div", {
260
- className: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["mt-7"]))),
260
+ className: stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["mt-7"]))),
261
261
  children: sortingOptions.map(function (option) {
262
262
  return /*#__PURE__*/_jsxs("label", {
263
263
  htmlFor: option,
264
- className: stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
264
+ className: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
265
265
  children: [/*#__PURE__*/_jsx(Checkbox, _objectSpread(_objectSpread({
266
266
  id: option,
267
267
  required: true,
@@ -285,21 +285,21 @@ export var RHFMultiStepComponent = function RHFMultiStepComponent() {
285
285
  var field = _ref4.field;
286
286
  return /*#__PURE__*/_jsxs(Field, {
287
287
  label: /*#__PURE__*/_jsx("h2", {
288
- className: stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
288
+ className: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
289
289
  children: "Add filters to help narrow results"
290
290
  }),
291
291
  labelFor: filtersOptions[0],
292
292
  state: getFieldState("filters"),
293
- className: stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["w-full shrink-0"]))),
293
+ className: stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["w-full shrink-0"]))),
294
294
  children: [/*#__PURE__*/_jsxs("div", {
295
- className: stl(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
295
+ className: stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
296
296
  children: ["Select the filter options customers can use to refine results.", /*#__PURE__*/_jsx("br", {}), "You can edit these after setup."]
297
297
  }), /*#__PURE__*/_jsx("div", {
298
- className: stl(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["mt-7"]))),
298
+ className: stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["mt-7"]))),
299
299
  children: filtersOptions.map(function (option) {
300
300
  return /*#__PURE__*/_jsxs("label", {
301
301
  htmlFor: option,
302
- className: stl(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
302
+ className: stl(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
303
303
  children: [/*#__PURE__*/_jsx(Checkbox, _objectSpread(_objectSpread({
304
304
  id: option,
305
305
  required: true,
@@ -318,9 +318,9 @@ export var RHFMultiStepComponent = function RHFMultiStepComponent() {
318
318
  }
319
319
  })]
320
320
  }), /*#__PURE__*/_jsxs("div", {
321
- className: stl(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["w-full flex justify-between"]))),
321
+ className: stl(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["w-full flex justify-between"]))),
322
322
  children: [/*#__PURE__*/_jsxs("div", {
323
- className: stl(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["flex gap-2"]))),
323
+ className: stl(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["flex gap-2"]))),
324
324
  children: [/*#__PURE__*/_jsx(Button, {
325
325
  "aria-label": "Previous step",
326
326
  disabled: page <= 1,
@@ -354,7 +354,7 @@ export var RHFMultiStepComponent = function RHFMultiStepComponent() {
354
354
  children: "Reset"
355
355
  })]
356
356
  }), /*#__PURE__*/_jsx("div", {
357
- className: stl(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["mt-8 mx-auto"]))),
357
+ className: stl(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["mt-8 mx-auto"]))),
358
358
  children: /*#__PURE__*/_jsx(DotPagination, {
359
359
  nbPages: steps.length,
360
360
  currentPage: page,
@@ -363,9 +363,9 @@ export var RHFMultiStepComponent = function RHFMultiStepComponent() {
363
363
  })
364
364
  })]
365
365
  }), /*#__PURE__*/_jsx("hr", {
366
- className: stl(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["text-grey-500"])))
366
+ className: stl(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["text-grey-500"])))
367
367
  }), /*#__PURE__*/_jsx("code", {
368
- className: stl(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
368
+ className: stl(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
369
369
  children: JSON.stringify(formData, null, 2)
370
370
  })]
371
371
  })
@@ -387,13 +387,13 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
387
387
  revalidationEnabled = _useState8[0],
388
388
  setRevalidationEnabled = _useState8[1];
389
389
  var _useState9 = useState(1),
390
- _useState10 = _slicedToArray(_useState9, 2),
391
- page = _useState10[0],
392
- setPage = _useState10[1];
393
- var _useState11 = useState(false),
394
- _useState12 = _slicedToArray(_useState11, 2),
395
- nextPageClicked = _useState12[0],
396
- setNextPageClicked = _useState12[1];
390
+ _useState0 = _slicedToArray(_useState9, 2),
391
+ page = _useState0[0],
392
+ setPage = _useState0[1];
393
+ var _useState1 = useState(false),
394
+ _useState10 = _slicedToArray(_useState1, 2),
395
+ nextPageClicked = _useState10[0],
396
+ setNextPageClicked = _useState10[1];
397
397
  var goToPage = function goToPage(newPage) {
398
398
  return setPage(clamp(newPage, 1, steps.length));
399
399
  };
@@ -444,9 +444,9 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
444
444
  }
445
445
  }
446
446
  return /*#__PURE__*/_jsx("div", {
447
- className: stl(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["@container w-full flex justify-center"]))),
447
+ className: stl(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["@container w-full flex justify-center"]))),
448
448
  children: /*#__PURE__*/_jsxs("div", {
449
- className: stl(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["flex flex-col gap-8 w-full @lg:w-4/5"]))),
449
+ className: stl(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["flex flex-col gap-8 w-full @lg:w-4/5"]))),
450
450
  children: [/*#__PURE__*/_jsxs(Form, {
451
451
  onSubmit: function onSubmit(e) {
452
452
  setRevalidationEnabled(true);
@@ -456,19 +456,19 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
456
456
  setRevalidationEnabled(false);
457
457
  formik.handleReset(e);
458
458
  },
459
- className: stl(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["flex flex-col gap-8 overflow-hidden"]))),
459
+ className: stl(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["flex flex-col gap-8 overflow-hidden"]))),
460
460
  children: [/*#__PURE__*/_jsx(FormErrorMessage, {
461
461
  locale: {
462
462
  errorText: function errorText(invalidFields) {
463
463
  return /*#__PURE__*/_jsxs(_Fragment, {
464
464
  children: [/*#__PURE__*/_jsxs("div", {
465
- className: stl(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["display-heading mb-2"]))),
465
+ className: stl(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["display-heading mb-2"]))),
466
466
  children: ["Please fix ", invalidFields.length, " error", invalidFields.length > 1 ? "s" : "", " below and try again."]
467
467
  }), /*#__PURE__*/_jsx("div", {
468
- className: stl(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["flex flex-col"]))),
468
+ className: stl(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["flex flex-col"]))),
469
469
  children: /*#__PURE__*/_jsx("a", {
470
470
  href: "#",
471
- className: stl(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["text-black underline hover:text-grey-800"]))),
471
+ className: stl(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["text-black underline hover:text-grey-800"]))),
472
472
  onClick: function onClick(e) {
473
473
  e.preventDefault();
474
474
  var firstInvalid = steps.find(function (step) {
@@ -485,26 +485,26 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
485
485
  }
486
486
  }
487
487
  }), /*#__PURE__*/_jsxs("div", {
488
- className: stl(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["flex transition-transform ease-out duration-500"]))),
488
+ className: stl(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["flex transition-transform ease-out duration-500"]))),
489
489
  style: {
490
490
  transform: "translateX(-".concat((page - 1) * 100, "%)")
491
491
  },
492
492
  children: [/*#__PURE__*/_jsx(Field, {
493
493
  label: /*#__PURE__*/_jsx("h2", {
494
- className: stl(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
494
+ className: stl(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
495
495
  children: "How should we display products that contain multiple variants?"
496
496
  }),
497
497
  labelFor: variantsEnum[0],
498
498
  state: getFieldState("variants"),
499
- className: stl(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["w-full shrink-0"]))),
499
+ className: stl(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["w-full shrink-0"]))),
500
500
  children: /*#__PURE__*/_jsx("div", {
501
- className: stl(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["mt-7"]))),
501
+ className: stl(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["mt-7"]))),
502
502
  children: variantsOptions.map(function (option) {
503
503
  return /*#__PURE__*/_jsxs("label", {
504
504
  htmlFor: option.value,
505
- className: stl(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
505
+ className: stl(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
506
506
  children: [/*#__PURE__*/_jsxs("div", {
507
- className: stl(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
507
+ className: stl(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
508
508
  children: [/*#__PURE__*/_jsx(RadioButton, _objectSpread(_objectSpread({
509
509
  id: option.value,
510
510
  "aria-labelledby": option.value,
@@ -514,10 +514,10 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
514
514
  value: option.value,
515
515
  type: "radio"
516
516
  })), {}, {
517
- className: stl(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["shrink-0"])))
517
+ className: stl(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["shrink-0"])))
518
518
  })), option.title]
519
519
  }), /*#__PURE__*/_jsx("div", {
520
- className: stl(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
520
+ className: stl(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
521
521
  children: option.description
522
522
  })]
523
523
  }, option.value);
@@ -525,20 +525,20 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
525
525
  })
526
526
  }), /*#__PURE__*/_jsx(Field, {
527
527
  label: /*#__PURE__*/_jsx("h2", {
528
- className: stl(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
528
+ className: stl(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
529
529
  children: "How would you like to show out-of-stock items?"
530
530
  }),
531
531
  labelFor: outOfStockEnum[0],
532
532
  state: getFieldState("outOfStock"),
533
- className: stl(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["w-full shrink-0"]))),
533
+ className: stl(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["w-full shrink-0"]))),
534
534
  children: /*#__PURE__*/_jsx("div", {
535
- className: stl(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["mt-7"]))),
535
+ className: stl(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["mt-7"]))),
536
536
  children: outOfStockOptions.map(function (option) {
537
537
  return /*#__PURE__*/_jsxs("label", {
538
538
  htmlFor: option.value,
539
- className: stl(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
539
+ className: stl(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["flex flex-col gap-3 p-6 rounded display-body transition-colors hover:bg-grey-100"]))),
540
540
  children: [/*#__PURE__*/_jsxs("div", {
541
- className: stl(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
541
+ className: stl(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["flex items-center gap-2"]))),
542
542
  children: [/*#__PURE__*/_jsx(RadioButton, _objectSpread(_objectSpread({
543
543
  id: option.value,
544
544
  "aria-labelledby": option.value,
@@ -548,10 +548,10 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
548
548
  value: option.value,
549
549
  type: "radio"
550
550
  })), {}, {
551
- className: stl(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["shrink-0"])))
551
+ className: stl(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["shrink-0"])))
552
552
  })), option.title]
553
553
  }), /*#__PURE__*/_jsx("div", {
554
- className: stl(_templateObject57 || (_templateObject57 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
554
+ className: stl(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["ml-6 typo-subdued"]))),
555
555
  children: option.description
556
556
  })]
557
557
  }, option.value);
@@ -559,21 +559,21 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
559
559
  })
560
560
  }), /*#__PURE__*/_jsxs(Field, {
561
561
  label: /*#__PURE__*/_jsx("h2", {
562
- className: stl(_templateObject58 || (_templateObject58 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
562
+ className: stl(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
563
563
  children: "Select how your customers can sort their search results"
564
564
  }),
565
565
  labelFor: sortingOptions[0],
566
566
  state: getFieldState("sorting"),
567
- className: stl(_templateObject59 || (_templateObject59 = _taggedTemplateLiteral(["w-full shrink-0"]))),
567
+ className: stl(_templateObject57 || (_templateObject57 = _taggedTemplateLiteral(["w-full shrink-0"]))),
568
568
  children: [/*#__PURE__*/_jsx("div", {
569
- className: stl(_templateObject60 || (_templateObject60 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
569
+ className: stl(_templateObject58 || (_templateObject58 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
570
570
  children: "Select the sort order options you'd like to show customers. You can change these later."
571
571
  }), /*#__PURE__*/_jsx("div", {
572
- className: stl(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["mt-7"]))),
572
+ className: stl(_templateObject59 || (_templateObject59 = _taggedTemplateLiteral(["mt-7"]))),
573
573
  children: sortingOptions.map(function (option) {
574
574
  return /*#__PURE__*/_jsxs("label", {
575
575
  htmlFor: option,
576
- className: stl(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
576
+ className: stl(_templateObject60 || (_templateObject60 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
577
577
  children: [/*#__PURE__*/_jsx(Checkbox, _objectSpread(_objectSpread({
578
578
  id: option,
579
579
  required: true,
@@ -591,21 +591,21 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
591
591
  })]
592
592
  }), /*#__PURE__*/_jsxs(Field, {
593
593
  label: /*#__PURE__*/_jsx("h2", {
594
- className: stl(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
594
+ className: stl(_templateObject61 || (_templateObject61 = _taggedTemplateLiteral(["display-xlarge whitespace-normal inline"]))),
595
595
  children: "Add filters to help narrow results"
596
596
  }),
597
597
  labelFor: filtersOptions[0],
598
598
  state: getFieldState("filters"),
599
- className: stl(_templateObject64 || (_templateObject64 = _taggedTemplateLiteral(["w-full shrink-0"]))),
599
+ className: stl(_templateObject62 || (_templateObject62 = _taggedTemplateLiteral(["w-full shrink-0"]))),
600
600
  children: [/*#__PURE__*/_jsxs("div", {
601
- className: stl(_templateObject65 || (_templateObject65 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
601
+ className: stl(_templateObject63 || (_templateObject63 = _taggedTemplateLiteral(["mt-4 typo-subdued"]))),
602
602
  children: ["Select the filter options customers can use to refine results.", /*#__PURE__*/_jsx("br", {}), "You can edit these after setup."]
603
603
  }), /*#__PURE__*/_jsx("div", {
604
- className: stl(_templateObject66 || (_templateObject66 = _taggedTemplateLiteral(["mt-7"]))),
604
+ className: stl(_templateObject64 || (_templateObject64 = _taggedTemplateLiteral(["mt-7"]))),
605
605
  children: filtersOptions.map(function (option) {
606
606
  return /*#__PURE__*/_jsxs("label", {
607
607
  htmlFor: option,
608
- className: stl(_templateObject67 || (_templateObject67 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
608
+ className: stl(_templateObject65 || (_templateObject65 = _taggedTemplateLiteral(["flex gap-2 p-4 rounded display-body transition-colors hover:bg-grey-100"]))),
609
609
  children: [/*#__PURE__*/_jsx(Checkbox, {
610
610
  id: option,
611
611
  required: true,
@@ -622,9 +622,9 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
622
622
  })]
623
623
  })]
624
624
  }), /*#__PURE__*/_jsxs("div", {
625
- className: stl(_templateObject68 || (_templateObject68 = _taggedTemplateLiteral(["w-full flex justify-between"]))),
625
+ className: stl(_templateObject66 || (_templateObject66 = _taggedTemplateLiteral(["w-full flex justify-between"]))),
626
626
  children: [/*#__PURE__*/_jsxs("div", {
627
- className: stl(_templateObject69 || (_templateObject69 = _taggedTemplateLiteral(["flex gap-2"]))),
627
+ className: stl(_templateObject67 || (_templateObject67 = _taggedTemplateLiteral(["flex gap-2"]))),
628
628
  children: [/*#__PURE__*/_jsx(Button, {
629
629
  "aria-label": "Previous step",
630
630
  disabled: page <= 1,
@@ -656,7 +656,7 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
656
656
  children: "Reset"
657
657
  })]
658
658
  }), /*#__PURE__*/_jsx("div", {
659
- className: stl(_templateObject70 || (_templateObject70 = _taggedTemplateLiteral(["mt-8 mx-auto"]))),
659
+ className: stl(_templateObject68 || (_templateObject68 = _taggedTemplateLiteral(["mt-8 mx-auto"]))),
660
660
  children: /*#__PURE__*/_jsx(DotPagination, {
661
661
  nbPages: steps.length,
662
662
  currentPage: page,
@@ -665,9 +665,9 @@ export var FormikMultiStepComponent = function FormikMultiStepComponent() {
665
665
  })
666
666
  })]
667
667
  }), /*#__PURE__*/_jsx("hr", {
668
- className: stl(_templateObject71 || (_templateObject71 = _taggedTemplateLiteral(["text-grey-500"])))
668
+ className: stl(_templateObject69 || (_templateObject69 = _taggedTemplateLiteral(["text-grey-500"])))
669
669
  }), /*#__PURE__*/_jsx("code", {
670
- className: stl(_templateObject72 || (_templateObject72 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
670
+ className: stl(_templateObject70 || (_templateObject70 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
671
671
  children: JSON.stringify(formData, null, 2)
672
672
  })]
673
673
  })
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
3
3
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
4
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
4
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import { zodResolver } from "@hookform/resolvers/zod";
@@ -256,9 +256,9 @@ export var RHFValidationStrategiesComponent = function RHFValidationStrategiesCo
256
256
  })]
257
257
  })]
258
258
  }), /*#__PURE__*/_jsx("hr", {
259
- className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["text-grey-500"])))
259
+ className: stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["text-grey-500"])))
260
260
  }), /*#__PURE__*/_jsx("code", {
261
- className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
261
+ className: stl(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
262
262
  children: JSON.stringify(formData, null, 2)
263
263
  })]
264
264
  })
@@ -318,9 +318,9 @@ export var FormikValidationStrategiesComponent = function FormikValidationStrate
318
318
  };
319
319
  useFormikAutoFocusOnError(formik);
320
320
  return /*#__PURE__*/_jsx("div", {
321
- className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["@container w-full flex justify-center"]))),
321
+ className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["@container w-full flex justify-center"]))),
322
322
  children: /*#__PURE__*/_jsxs("div", {
323
- className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["flex flex-col gap-8 w-full @lg:w-1/2"]))),
323
+ className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["flex flex-col gap-8 w-full @lg:w-1/2"]))),
324
324
  children: [/*#__PURE__*/_jsxs(Form, {
325
325
  onSubmit: function onSubmit(e) {
326
326
  setRevalidationEnabled(true);
@@ -330,13 +330,13 @@ export var FormikValidationStrategiesComponent = function FormikValidationStrate
330
330
  setRevalidationEnabled(false);
331
331
  formik.handleReset(e);
332
332
  },
333
- className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["flex flex-col items-start gap-6 min-w-72"]))),
333
+ className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["flex flex-col items-start gap-6 min-w-72"]))),
334
334
  children: [/*#__PURE__*/_jsx(FormErrorMessage, {}), /*#__PURE__*/_jsx(Field, {
335
335
  label: "Card Owner",
336
336
  labelFor: "cardOwner",
337
337
  description: "Please enter the card owner",
338
338
  state: getFieldState("cardOwner"),
339
- className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["w-full"]))),
339
+ className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["w-full"]))),
340
340
  children: /*#__PURE__*/_jsx(Input, _objectSpread({
341
341
  id: "cardOwner",
342
342
  placeholder: "John Doe",
@@ -347,7 +347,7 @@ export var FormikValidationStrategiesComponent = function FormikValidationStrate
347
347
  labelFor: "cardNumber",
348
348
  description: "Please enter the card number",
349
349
  state: getFieldState("cardNumber"),
350
- className: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["w-full"]))),
350
+ className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["w-full"]))),
351
351
  children: /*#__PURE__*/_jsx(Input, _objectSpread(_objectSpread({
352
352
  id: "cardNumber",
353
353
  placeholder: "Card number",
@@ -366,13 +366,13 @@ export var FormikValidationStrategiesComponent = function FormikValidationStrate
366
366
  }
367
367
  }))
368
368
  }), /*#__PURE__*/_jsxs("div", {
369
- className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["w-full flex gap-4 flex-col @xl:flex-row"]))),
369
+ className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["w-full flex gap-4 flex-col @xl:flex-row"]))),
370
370
  children: [/*#__PURE__*/_jsx(Field, {
371
371
  label: "Card Expiration Date",
372
372
  labelFor: "cardExpirationDate",
373
373
  description: "Please enter the card expiration date",
374
374
  state: getFieldState("cardExpirationDate"),
375
- className: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["w-full"]))),
375
+ className: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["w-full"]))),
376
376
  children: /*#__PURE__*/_jsx(Input, _objectSpread(_objectSpread({
377
377
  id: "cardExpirationDate",
378
378
  placeholder: "MM/YY",
@@ -395,7 +395,7 @@ export var FormikValidationStrategiesComponent = function FormikValidationStrate
395
395
  labelFor: "cardCVC",
396
396
  description: "Please enter the card security code",
397
397
  state: getFieldState("cardCVC"),
398
- className: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["w-full"]))),
398
+ className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["w-full"]))),
399
399
  children: /*#__PURE__*/_jsx(Input, _objectSpread(_objectSpread({
400
400
  id: "cardCVC",
401
401
  placeholder: "CVC",
@@ -410,7 +410,7 @@ export var FormikValidationStrategiesComponent = function FormikValidationStrate
410
410
  }))
411
411
  })]
412
412
  }), /*#__PURE__*/_jsxs("div", {
413
- className: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["flex gap-2"]))),
413
+ className: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["flex gap-2"]))),
414
414
  children: [/*#__PURE__*/_jsx(FormSubmit, {
415
415
  variant: "primary",
416
416
  "aria-label": "Save the form",
@@ -424,9 +424,9 @@ export var FormikValidationStrategiesComponent = function FormikValidationStrate
424
424
  })]
425
425
  })]
426
426
  }), /*#__PURE__*/_jsx("hr", {
427
- className: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["text-grey-500"])))
427
+ className: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["text-grey-500"])))
428
428
  }), /*#__PURE__*/_jsx("code", {
429
- className: stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
429
+ className: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
430
430
  children: JSON.stringify(formData, null, 2)
431
431
  })]
432
432
  })
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
4
4
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
5
5
  var _excluded = ["className", "style", "startIcon", "endItem", "disabled", "readOnly", "clearable", "type", "variant", "locale", "required"];
6
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18;
6
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16;
7
7
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
8
8
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
9
9
  import cx from "clsx";
@@ -88,7 +88,7 @@ export var Input = /*#__PURE__*/forwardRef(function (_ref, externalRef) {
88
88
  labelId = _useField.labelId,
89
89
  descriptionId = _useField.descriptionId,
90
90
  inputId = _useField.inputId;
91
- var isControlled = ("value" in inputProps);
91
+ var isControlled = "value" in inputProps;
92
92
  var _useState3 = useState(function () {
93
93
  return isControlled ? inputProps.value : inputProps.defaultValue;
94
94
  }),
@@ -117,7 +117,7 @@ export var Input = /*#__PURE__*/forwardRef(function (_ref, externalRef) {
117
117
  children: [Icon && /*#__PURE__*/_jsx(Icon, {
118
118
  className: stl(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["ml-4 shrink-0 size-4 ", ""])), disabled ? "text-grey-300" : focused ? "text-accent-600" : "text-grey-500")
119
119
  }), /*#__PURE__*/_jsx("input", _objectSpread(_objectSpread({
120
- className: cx(stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["no-search-input-decoration"]))), Icon ? stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["mx-2"]))) : stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["mx-4"])))),
120
+ className: cx(stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["no-search-input-decoration"]))), Icon ? stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["mx-2"]))) : stl(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["mx-4"])))),
121
121
  ref: inputRefCallback,
122
122
  type: type,
123
123
  "aria-labelledby": labelId,
@@ -146,7 +146,7 @@ export var Input = /*#__PURE__*/forwardRef(function (_ref, externalRef) {
146
146
  (_inputProps$onBlur = inputProps.onBlur) === null || _inputProps$onBlur === void 0 || _inputProps$onBlur.call(inputProps, evt);
147
147
  }
148
148
  })), clearable && !disabled && !readOnly && !isValueEmpty ? /*#__PURE__*/_jsx(IconButton, {
149
- className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["mr-2 ", ""])), focused ? "visible" : "invisible group-hover:visible"),
149
+ className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["mr-2 ", ""])), focused ? "visible" : "invisible group-hover:visible"),
150
150
  title: locale.clearInput,
151
151
  icon: XIcon,
152
152
  variant: "subtle",
@@ -158,15 +158,15 @@ export var Input = /*#__PURE__*/forwardRef(function (_ref, externalRef) {
158
158
  triggerInputChange("");
159
159
  }
160
160
  }) : null, !!endItem && /*#__PURE__*/_jsx("div", {
161
- className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["mr-4"]))),
161
+ className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["mr-4"]))),
162
162
  children: endItem
163
163
  }), /*#__PURE__*/_jsx(StatusIcon, {}), type === "number" && !disabled && /*#__PURE__*/_jsxs("div", {
164
- className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["input-spinner"]))),
164
+ className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["input-spinner"]))),
165
165
  children: [/*#__PURE__*/_jsx("button", {
166
166
  tabIndex: -1,
167
167
  type: "button",
168
168
  disabled: readOnly,
169
- className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
169
+ className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
170
170
  "aria-label": locale.increment,
171
171
  onClick: function onClick() {
172
172
  var _inputRef$current$val, _inputRef$current2;
@@ -184,13 +184,13 @@ export var Input = /*#__PURE__*/forwardRef(function (_ref, externalRef) {
184
184
  },
185
185
  children: /*#__PURE__*/_jsx(ChevronUpIcon, {
186
186
  size: 12,
187
- className: cx(isInvalid && stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["text-red-700"]))))
187
+ className: cx(isInvalid && stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["text-red-700"]))))
188
188
  })
189
189
  }), /*#__PURE__*/_jsx("button", {
190
190
  tabIndex: -1,
191
191
  type: "button",
192
192
  disabled: readOnly,
193
- className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
193
+ className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["input-spinner-button ", ""])), readOnly && "cursor-not-allowed"),
194
194
  "aria-label": locale.decrement,
195
195
  onClick: function onClick() {
196
196
  var _inputRef$current$val2, _inputRef$current3;
@@ -208,7 +208,7 @@ export var Input = /*#__PURE__*/forwardRef(function (_ref, externalRef) {
208
208
  },
209
209
  children: /*#__PURE__*/_jsx(ChevronDownIcon, {
210
210
  size: 12,
211
- className: cx(isInvalid && stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["text-red-700"]))))
211
+ className: cx(isInvalid && stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["text-red-700"]))))
212
212
  })
213
213
  })]
214
214
  })]