@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.
- package/dist/cjs/Actions/Accordion/Accordion.js +1 -2
- package/dist/cjs/Actions/Accordion/Accordion.styles.d.ts +2 -2
- package/dist/cjs/Actions/Accordion/Accordion.styles.js +23 -23
- package/dist/cjs/Actions/Button/PolymorphicButton.js +1 -2
- package/dist/cjs/Actions/Button/styles.js +4 -4
- package/dist/cjs/Actions/IconButtonWithFeedback/IconButtonWithFeedback.js +1 -1
- package/dist/cjs/Actions/ToggleButton/ToggleButtonBase.js +2 -2
- package/dist/cjs/Actions/ToggleGroup/ToggleGroup.js +1 -2
- package/dist/cjs/Chat/ChatCodeDisplay/ChatCodeDisplay.js +2 -3
- package/dist/cjs/Chat/ChatCodeDisplay/ChatCodeDisplay.styles.d.ts +4 -4
- package/dist/cjs/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatMessage/ChatMessage.js +1 -1
- package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatMessage/ChatMessage.styles.js +10 -10
- package/dist/cjs/Chat/ChatMessageError/ChatMessageError.styles.d.ts +3 -3
- package/dist/cjs/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +3 -3
- package/dist/cjs/Chat/ChatMessages/ChatMessages.styles.d.ts +2 -2
- package/dist/cjs/Chat/ChatPrompt/ChatPrompt.styles.d.ts +2 -2
- package/dist/cjs/Fields/AutoComplete/AutoComplete.js +14 -14
- package/dist/cjs/Fields/DatePicker/components/Popover.js +2 -3
- package/dist/cjs/Fields/Dropzone/Dropzone.js +5 -5
- package/dist/cjs/Fields/FilePicker/FilePicker.js +4 -4
- package/dist/cjs/Fields/Form/stories/AsynchronousValidation.js +17 -18
- package/dist/cjs/Fields/Form/stories/Complex.js +67 -68
- package/dist/cjs/Fields/Form/stories/DependentFieldsValidation.js +9 -10
- package/dist/cjs/Fields/Form/stories/DirtyFields.js +18 -19
- package/dist/cjs/Fields/Form/stories/DynamicFieldsValidation.js +19 -20
- package/dist/cjs/Fields/Form/stories/ExtraErrors.js +13 -14
- package/dist/cjs/Fields/Form/stories/FieldArrays.js +23 -24
- package/dist/cjs/Fields/Form/stories/JSONForms.js +79 -79
- package/dist/cjs/Fields/Form/stories/MultiStep.js +72 -73
- package/dist/cjs/Fields/Form/stories/ValidationStrategies.js +15 -16
- package/dist/cjs/Fields/Input/Input.js +10 -10
- package/dist/cjs/Fields/SelectableCard/SelectableCard.js +9 -9
- package/dist/cjs/Fields/Switch/Switch.tailwind.js +4 -1
- package/dist/cjs/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +2 -2
- package/dist/cjs/Icons/AmexCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/AmexCardIcon.js +34 -0
- package/dist/cjs/Icons/DiscoverCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/DiscoverCardIcon.js +34 -0
- package/dist/cjs/Icons/MasterCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/MasterCardIcon.js +34 -0
- package/dist/cjs/Icons/VisaCardIcon.d.ts +2 -0
- package/dist/cjs/Icons/VisaCardIcon.js +34 -0
- package/dist/cjs/Icons/index.d.ts +4 -0
- package/dist/cjs/Icons/index.js +28 -0
- package/dist/cjs/Indicators/Avatars/utils.js +4 -4
- package/dist/cjs/Indicators/Badge/Badge.js +4 -4
- package/dist/cjs/Indicators/Banners/Alert/Alert.js +13 -13
- package/dist/cjs/Indicators/Banners/Promote/Promote.js +4 -4
- package/dist/cjs/Indicators/EmptyState/EmptyState.js +16 -16
- package/dist/cjs/Indicators/Medallion/Medallion.js +3 -3
- package/dist/cjs/Indicators/ProgressBar/ProgressBar.js +1 -2
- package/dist/cjs/Indicators/Separator/Separator.js +1 -2
- package/dist/cjs/Indicators/Tag/Tag.js +10 -10
- package/dist/cjs/Indicators/Toast/Toast.js +12 -13
- package/dist/cjs/Indicators/Toast/Toasts.js +2 -3
- package/dist/cjs/Layout/CollapsibleCard/CollapsibleCard.js +1 -2
- package/dist/cjs/Layout/FlexGrid/FlexGrid.js +11 -11
- package/dist/cjs/Layout/Tables/DataTable/DataTable.js +3 -3
- package/dist/cjs/Navigation/Stepper/Step.js +12 -12
- package/dist/cjs/Navigation/Tabs/components/LinkTab.js +6 -6
- package/dist/cjs/Overlay/MenuButton/MenuButton.d.ts +1 -1
- package/dist/cjs/Overlay/MenuButton/MenuButton.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/Content.js +1 -1
- package/dist/cjs/Overlay/MenuButton/components/CustomTrigger.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/DefaultTrigger.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/Divider.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/collapsible/CollapsibleItem.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/Item.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/LinkItem.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/RadioItem.js +1 -2
- package/dist/cjs/Overlay/MenuButton/components/items/ToggleItem.js +1 -2
- package/dist/cjs/Overlay/Modal/Modal.js +9 -10
- package/dist/cjs/Overlay/Popover/Popover.js +2 -3
- package/dist/cjs/Overlay/TooltipWrapper/TooltipWrapper.js +2 -3
- package/dist/cjs/utils/getTextFromReactNode.js +1 -1
- package/dist/cjs/utils/onlyText.js +2 -2
- package/dist/esm/Actions/Accordion/Accordion.styles.d.ts +2 -2
- package/dist/esm/Actions/Accordion/Accordion.styles.js +23 -23
- package/dist/esm/Actions/Button/styles.js +4 -4
- package/dist/esm/Actions/IconButtonWithFeedback/IconButtonWithFeedback.js +1 -1
- package/dist/esm/Actions/ToggleButton/ToggleButtonBase.js +2 -2
- package/dist/esm/Chat/ChatCodeDisplay/ChatCodeDisplay.js +1 -1
- package/dist/esm/Chat/ChatCodeDisplay/ChatCodeDisplay.styles.d.ts +4 -4
- package/dist/esm/Chat/ChatContextAccordion/ChatContextAccordion.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatContextContainer/ChatContextContainer.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatMessage/ChatMessage.js +1 -1
- package/dist/esm/Chat/ChatMessage/ChatMessage.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatMessage/ChatMessage.styles.js +10 -10
- package/dist/esm/Chat/ChatMessageError/ChatMessageError.styles.d.ts +3 -3
- package/dist/esm/Chat/ChatMessageLoader/ChatMessageLoader.styles.d.ts +3 -3
- package/dist/esm/Chat/ChatMessages/ChatMessages.styles.d.ts +2 -2
- package/dist/esm/Chat/ChatPrompt/ChatPrompt.styles.d.ts +2 -2
- package/dist/esm/Fields/AutoComplete/AutoComplete.js +14 -14
- package/dist/esm/Fields/DatePicker/components/Popover.js +1 -1
- package/dist/esm/Fields/Dropzone/Dropzone.js +5 -5
- package/dist/esm/Fields/FilePicker/FilePicker.js +4 -4
- package/dist/esm/Fields/Form/stories/AsynchronousValidation.js +16 -16
- package/dist/esm/Fields/Form/stories/Complex.js +66 -66
- package/dist/esm/Fields/Form/stories/DependentFieldsValidation.js +8 -8
- package/dist/esm/Fields/Form/stories/DirtyFields.js +17 -17
- package/dist/esm/Fields/Form/stories/DynamicFieldsValidation.js +18 -18
- package/dist/esm/Fields/Form/stories/ExtraErrors.js +12 -12
- package/dist/esm/Fields/Form/stories/FieldArrays.js +22 -22
- package/dist/esm/Fields/Form/stories/JSONForms.js +79 -79
- package/dist/esm/Fields/Form/stories/MultiStep.js +71 -71
- package/dist/esm/Fields/Form/stories/ValidationStrategies.js +14 -14
- package/dist/esm/Fields/Input/Input.js +10 -10
- package/dist/esm/Fields/SelectableCard/SelectableCard.js +9 -9
- package/dist/esm/Fields/Switch/Switch.tailwind.js +4 -1
- package/dist/esm/Fields/TextAreaAutoSize/TextAreaAutoSize.styles.d.ts +2 -2
- package/dist/esm/Icons/AmexCardIcon.d.ts +2 -0
- package/dist/esm/Icons/AmexCardIcon.js +27 -0
- package/dist/esm/Icons/DiscoverCardIcon.d.ts +2 -0
- package/dist/esm/Icons/DiscoverCardIcon.js +27 -0
- package/dist/esm/Icons/MasterCardIcon.d.ts +2 -0
- package/dist/esm/Icons/MasterCardIcon.js +27 -0
- package/dist/esm/Icons/VisaCardIcon.d.ts +2 -0
- package/dist/esm/Icons/VisaCardIcon.js +27 -0
- package/dist/esm/Icons/index.d.ts +4 -0
- package/dist/esm/Icons/index.js +4 -0
- package/dist/esm/Indicators/Avatars/utils.js +4 -4
- package/dist/esm/Indicators/Badge/Badge.js +4 -4
- package/dist/esm/Indicators/Banners/Alert/Alert.js +13 -13
- package/dist/esm/Indicators/Banners/Promote/Promote.js +4 -4
- package/dist/esm/Indicators/EmptyState/EmptyState.js +16 -16
- package/dist/esm/Indicators/Medallion/Medallion.js +3 -3
- package/dist/esm/Indicators/Tag/Tag.js +10 -10
- package/dist/esm/Indicators/Toast/Toast.js +11 -11
- package/dist/esm/Indicators/Toast/Toasts.js +1 -1
- package/dist/esm/Layout/FlexGrid/FlexGrid.js +11 -11
- package/dist/esm/Layout/Tables/DataTable/DataTable.js +3 -3
- package/dist/esm/Navigation/Stepper/Step.js +12 -12
- package/dist/esm/Navigation/Tabs/components/LinkTab.js +6 -6
- package/dist/esm/Overlay/MenuButton/MenuButton.d.ts +1 -1
- package/dist/esm/Overlay/MenuButton/components/Content.js +1 -1
- package/dist/esm/Overlay/Modal/Modal.js +8 -8
- package/dist/esm/Overlay/Popover/Popover.js +1 -1
- package/dist/esm/Overlay/TooltipWrapper/TooltipWrapper.js +1 -1
- package/dist/esm/utils/getTextFromReactNode.js +1 -1
- package/dist/esm/utils/onlyText.js +2 -2
- package/dist/satellite.min.css +1 -1
- package/package.json +19 -28
|
@@ -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, _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
|
|
4
|
+
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;
|
|
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";
|
|
@@ -314,7 +314,7 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
314
314
|
labelFor: "gender",
|
|
315
315
|
description: "Please specify your gender",
|
|
316
316
|
state: getFieldState("gender"),
|
|
317
|
-
className: stl(
|
|
317
|
+
className: stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["w-full"]))),
|
|
318
318
|
children: /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({
|
|
319
319
|
id: "gender",
|
|
320
320
|
required: true
|
|
@@ -338,7 +338,7 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
338
338
|
labelFor: "jobPositions",
|
|
339
339
|
description: "Please specify the job positions you are interested in",
|
|
340
340
|
state: getFieldState("jobPositions"),
|
|
341
|
-
className: stl(
|
|
341
|
+
className: stl(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["w-full"]))),
|
|
342
342
|
children: /*#__PURE__*/_jsx(AutoComplete, _objectSpread({
|
|
343
343
|
id: "jobPositions",
|
|
344
344
|
options: jobPositions,
|
|
@@ -359,7 +359,7 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
359
359
|
labelFor: "employmentStatus",
|
|
360
360
|
description: "Please specify your employment status",
|
|
361
361
|
state: getFieldState("employmentStatus"),
|
|
362
|
-
className: stl(
|
|
362
|
+
className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["w-full"]))),
|
|
363
363
|
children: /*#__PURE__*/_jsx(RadioGroup, _objectSpread(_objectSpread({
|
|
364
364
|
id: "employmentStatus",
|
|
365
365
|
required: true
|
|
@@ -383,7 +383,7 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
383
383
|
labelFor: "birthday",
|
|
384
384
|
description: "Please specify your birthday",
|
|
385
385
|
state: getFieldState("birthday"),
|
|
386
|
-
className: stl(
|
|
386
|
+
className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["w-full"]))),
|
|
387
387
|
children: /*#__PURE__*/_jsx(DateInput, _objectSpread({
|
|
388
388
|
id: "birthday",
|
|
389
389
|
required: true,
|
|
@@ -407,7 +407,7 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
407
407
|
labelFor: "age",
|
|
408
408
|
description: "Please specify your age",
|
|
409
409
|
state: getFieldState("age"),
|
|
410
|
-
className: stl(
|
|
410
|
+
className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["w-full"]))),
|
|
411
411
|
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
412
412
|
id: "age",
|
|
413
413
|
type: "number",
|
|
@@ -420,28 +420,28 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
420
420
|
}), /*#__PURE__*/_jsx(Controller, {
|
|
421
421
|
name: "hobbies",
|
|
422
422
|
control: control,
|
|
423
|
-
render: function render(
|
|
424
|
-
var field =
|
|
423
|
+
render: function render(_ref0) {
|
|
424
|
+
var field = _ref0.field;
|
|
425
425
|
return /*#__PURE__*/_jsx(Field, {
|
|
426
426
|
label: "Hobbies",
|
|
427
427
|
labelFor: hobbies[0],
|
|
428
428
|
description: "Please specify your hobbies",
|
|
429
429
|
state: getFieldState("hobbies"),
|
|
430
|
-
className: stl(
|
|
430
|
+
className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["w-full"]))),
|
|
431
431
|
children: /*#__PURE__*/_jsx(SelectableCardGroup, {
|
|
432
432
|
type: "multiple",
|
|
433
|
-
className: stl(
|
|
433
|
+
className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["flex gap-2"]))),
|
|
434
434
|
value: field.value,
|
|
435
435
|
onValueChange: field.onChange,
|
|
436
436
|
required: true,
|
|
437
437
|
children: hobbies.map(function (hobby) {
|
|
438
438
|
return /*#__PURE__*/_jsx("label", {
|
|
439
439
|
htmlFor: hobby,
|
|
440
|
-
className: stl(
|
|
440
|
+
className: stl(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["flex-1 cursor-pointer"]))),
|
|
441
441
|
children: /*#__PURE__*/_jsx(SelectableCard, {
|
|
442
442
|
id: hobby,
|
|
443
443
|
value: hobby,
|
|
444
|
-
className: stl(
|
|
444
|
+
className: stl(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["p-4"]))),
|
|
445
445
|
children: capitalize(hobby)
|
|
446
446
|
})
|
|
447
447
|
}, hobby);
|
|
@@ -452,16 +452,16 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
452
452
|
}), /*#__PURE__*/_jsx(Controller, {
|
|
453
453
|
name: "interest",
|
|
454
454
|
control: control,
|
|
455
|
-
render: function render(
|
|
456
|
-
var field =
|
|
455
|
+
render: function render(_ref1) {
|
|
456
|
+
var field = _ref1.field;
|
|
457
457
|
return /*#__PURE__*/_jsxs(Field, {
|
|
458
458
|
label: "Interest",
|
|
459
459
|
labelFor: "interest",
|
|
460
460
|
description: "Please specify your interest",
|
|
461
461
|
state: getFieldState("interest"),
|
|
462
|
-
className: stl(
|
|
462
|
+
className: stl(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["w-full"]))),
|
|
463
463
|
children: [/*#__PURE__*/_jsxs("p", {
|
|
464
|
-
className: stl(
|
|
464
|
+
className: stl(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["display-caption flex justify-between mb-2"]))),
|
|
465
465
|
children: [/*#__PURE__*/_jsx("span", {
|
|
466
466
|
children: "0"
|
|
467
467
|
}), /*#__PURE__*/_jsx("span", {
|
|
@@ -480,16 +480,16 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
480
480
|
}), /*#__PURE__*/_jsx(Controller, {
|
|
481
481
|
name: "idealLocation",
|
|
482
482
|
control: control,
|
|
483
|
-
render: function render(
|
|
484
|
-
var field =
|
|
483
|
+
render: function render(_ref10) {
|
|
484
|
+
var field = _ref10.field;
|
|
485
485
|
return /*#__PURE__*/_jsxs(Field, {
|
|
486
486
|
label: "Ideal Location",
|
|
487
487
|
labelFor: "idealLocation",
|
|
488
488
|
description: "Please specify your ideal location",
|
|
489
489
|
state: getFieldState("idealLocation"),
|
|
490
|
-
className: stl(
|
|
490
|
+
className: stl(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["w-full"]))),
|
|
491
491
|
children: [/*#__PURE__*/_jsxs("p", {
|
|
492
|
-
className: stl(
|
|
492
|
+
className: stl(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["display-caption flex justify-between mb-2"]))),
|
|
493
493
|
children: [/*#__PURE__*/_jsx("span", {
|
|
494
494
|
children: "0 km"
|
|
495
495
|
}), /*#__PURE__*/_jsx("span", {
|
|
@@ -515,14 +515,14 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
515
515
|
}), /*#__PURE__*/_jsx(Controller, {
|
|
516
516
|
name: "profilePicture",
|
|
517
517
|
control: control,
|
|
518
|
-
render: function render(
|
|
519
|
-
var field =
|
|
518
|
+
render: function render(_ref11) {
|
|
519
|
+
var field = _ref11.field;
|
|
520
520
|
return /*#__PURE__*/_jsx(Field, {
|
|
521
521
|
label: "Profile Picture",
|
|
522
522
|
labelFor: "profilePicture",
|
|
523
523
|
description: "Please upload your profile picture, 1 MB minimum",
|
|
524
524
|
state: getFieldState("profilePicture"),
|
|
525
|
-
className: stl(
|
|
525
|
+
className: stl(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["w-full"]))),
|
|
526
526
|
children: /*#__PURE__*/_jsx(Dropzone, _objectSpread(_objectSpread({
|
|
527
527
|
id: "profilePicture",
|
|
528
528
|
minSize: 1024 * 1024 * 1,
|
|
@@ -538,14 +538,14 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
538
538
|
}), /*#__PURE__*/_jsx(Controller, {
|
|
539
539
|
name: "bio",
|
|
540
540
|
control: control,
|
|
541
|
-
render: function render(
|
|
542
|
-
var field =
|
|
541
|
+
render: function render(_ref12) {
|
|
542
|
+
var field = _ref12.field;
|
|
543
543
|
return /*#__PURE__*/_jsx(Field, {
|
|
544
544
|
label: "Bio",
|
|
545
545
|
labelFor: "bio",
|
|
546
546
|
description: "Please write a short bio",
|
|
547
547
|
state: getFieldState("bio"),
|
|
548
|
-
className: stl(
|
|
548
|
+
className: stl(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["w-full"]))),
|
|
549
549
|
children: /*#__PURE__*/_jsx(TextArea, _objectSpread({
|
|
550
550
|
id: "bio",
|
|
551
551
|
required: true
|
|
@@ -555,14 +555,14 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
555
555
|
}), /*#__PURE__*/_jsx(Controller, {
|
|
556
556
|
name: "acceptTerms",
|
|
557
557
|
control: control,
|
|
558
|
-
render: function render(
|
|
559
|
-
var field =
|
|
558
|
+
render: function render(_ref13) {
|
|
559
|
+
var field = _ref13.field;
|
|
560
560
|
return /*#__PURE__*/_jsx(Field, {
|
|
561
561
|
label: "Accept Terms",
|
|
562
562
|
labelFor: "acceptTerms",
|
|
563
563
|
description: "Please accept the terms",
|
|
564
564
|
state: getFieldState("acceptTerms"),
|
|
565
|
-
className: stl(
|
|
565
|
+
className: stl(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["w-full"]))),
|
|
566
566
|
inline: true,
|
|
567
567
|
children: /*#__PURE__*/_jsx(Checkbox, _objectSpread({
|
|
568
568
|
id: "acceptTerms",
|
|
@@ -574,14 +574,14 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
574
574
|
}), /*#__PURE__*/_jsx(Controller, {
|
|
575
575
|
name: "newsletter",
|
|
576
576
|
control: control,
|
|
577
|
-
render: function render(
|
|
578
|
-
var field =
|
|
577
|
+
render: function render(_ref14) {
|
|
578
|
+
var field = _ref14.field;
|
|
579
579
|
return /*#__PURE__*/_jsx(Field, {
|
|
580
580
|
label: "Receive Newsletter",
|
|
581
581
|
labelFor: "newsletter",
|
|
582
582
|
description: "Do you want to receive our newsletter?",
|
|
583
583
|
state: getFieldState("newsletter"),
|
|
584
|
-
className: stl(
|
|
584
|
+
className: stl(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["w-full"]))),
|
|
585
585
|
inline: true,
|
|
586
586
|
children: /*#__PURE__*/_jsx(Switch, _objectSpread({
|
|
587
587
|
id: "newsletter",
|
|
@@ -591,7 +591,7 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
591
591
|
});
|
|
592
592
|
}
|
|
593
593
|
}), /*#__PURE__*/_jsxs("div", {
|
|
594
|
-
className: stl(
|
|
594
|
+
className: stl(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["flex gap-2"]))),
|
|
595
595
|
children: [/*#__PURE__*/_jsx(FormSubmit, {
|
|
596
596
|
variant: "primary",
|
|
597
597
|
"aria-label": "Save the form",
|
|
@@ -605,9 +605,9 @@ export var RHFComplexComponent = function RHFComplexComponent() {
|
|
|
605
605
|
})]
|
|
606
606
|
})]
|
|
607
607
|
}), /*#__PURE__*/_jsx("hr", {
|
|
608
|
-
className: stl(
|
|
608
|
+
className: stl(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["text-grey-500"])))
|
|
609
609
|
}), /*#__PURE__*/_jsx("code", {
|
|
610
|
-
className: stl(
|
|
610
|
+
className: stl(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
|
|
611
611
|
children: JSON.stringify(formData, null, 2)
|
|
612
612
|
})]
|
|
613
613
|
})
|
|
@@ -631,8 +631,8 @@ var yupSchema = yup.object({
|
|
|
631
631
|
hobbies: yup.array(yup.string().oneOf(hobbies)).min(1, "You must specify at least one hobby"),
|
|
632
632
|
interest: yup.number().min(5, "Your level of interest must be at least 5").required(),
|
|
633
633
|
idealLocation: yup.array(yup.number().min(10, "Your minimum ideal location must be 10 km").max(40, "Your maximum ideal location must be 40 km").required()).required(),
|
|
634
|
-
profilePicture: yup.mixed().nullable().test("profilePicture", function (
|
|
635
|
-
var value =
|
|
634
|
+
profilePicture: yup.mixed().nullable().test("profilePicture", function (_ref15) {
|
|
635
|
+
var value = _ref15.value;
|
|
636
636
|
return value.errors.map(function (error) {
|
|
637
637
|
return error.message;
|
|
638
638
|
}).join(", ");
|
|
@@ -684,9 +684,9 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
684
684
|
};
|
|
685
685
|
useFormikAutoFocusOnError(formik);
|
|
686
686
|
return /*#__PURE__*/_jsx("div", {
|
|
687
|
-
className: stl(
|
|
687
|
+
className: stl(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["@container w-full flex justify-center"]))),
|
|
688
688
|
children: /*#__PURE__*/_jsxs("div", {
|
|
689
|
-
className: stl(
|
|
689
|
+
className: stl(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["flex flex-col gap-8 w-full @lg:w-1/2"]))),
|
|
690
690
|
children: [/*#__PURE__*/_jsxs(Form, {
|
|
691
691
|
onSubmit: function onSubmit(e) {
|
|
692
692
|
setRevalidationEnabled(true);
|
|
@@ -696,13 +696,13 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
696
696
|
setRevalidationEnabled(false);
|
|
697
697
|
formik.handleReset(e);
|
|
698
698
|
},
|
|
699
|
-
className: stl(
|
|
699
|
+
className: stl(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["flex flex-col items-start gap-6 min-w-72"]))),
|
|
700
700
|
children: [/*#__PURE__*/_jsx(FormErrorMessage, {}), /*#__PURE__*/_jsx(Field, {
|
|
701
701
|
label: "First Name",
|
|
702
702
|
labelFor: "firstName",
|
|
703
703
|
description: "Please enter your first name",
|
|
704
704
|
state: getFieldState("firstName"),
|
|
705
|
-
className: stl(
|
|
705
|
+
className: stl(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["w-full"]))),
|
|
706
706
|
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
707
707
|
id: "firstName",
|
|
708
708
|
placeholder: "John",
|
|
@@ -713,7 +713,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
713
713
|
labelFor: "lastName",
|
|
714
714
|
description: "Please enter your last name",
|
|
715
715
|
state: getFieldState("lastName"),
|
|
716
|
-
className: stl(
|
|
716
|
+
className: stl(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["w-full"]))),
|
|
717
717
|
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
718
718
|
id: "lastName",
|
|
719
719
|
placeholder: "Doe",
|
|
@@ -724,7 +724,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
724
724
|
labelFor: "password",
|
|
725
725
|
description: "Please enter your password",
|
|
726
726
|
state: getFieldState("password"),
|
|
727
|
-
className: stl(
|
|
727
|
+
className: stl(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["w-full"]))),
|
|
728
728
|
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
729
729
|
id: "password",
|
|
730
730
|
placeholder: "Password",
|
|
@@ -736,14 +736,14 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
736
736
|
labelFor: civilities[0],
|
|
737
737
|
description: "Please enter your civility",
|
|
738
738
|
state: getFieldState("civility"),
|
|
739
|
-
className: stl(
|
|
739
|
+
className: stl(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["w-full"]))),
|
|
740
740
|
children: /*#__PURE__*/_jsx("div", {
|
|
741
|
-
className: stl(
|
|
741
|
+
className: stl(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["flex gap-4 display-body"]))),
|
|
742
742
|
children: civilities.map(function (civility, index) {
|
|
743
743
|
return /*#__PURE__*/_jsxs("label", {
|
|
744
744
|
id: index === 0 ? "civility" : undefined,
|
|
745
745
|
htmlFor: civility,
|
|
746
|
-
className: stl(
|
|
746
|
+
className: stl(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["flex items-center gap-1"]))),
|
|
747
747
|
children: [/*#__PURE__*/_jsx(RadioButton, _objectSpread({
|
|
748
748
|
id: civility,
|
|
749
749
|
"aria-labelledby": civility,
|
|
@@ -761,7 +761,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
761
761
|
labelFor: "gender",
|
|
762
762
|
description: "Please specify your gender",
|
|
763
763
|
state: getFieldState("gender"),
|
|
764
|
-
className: stl(
|
|
764
|
+
className: stl(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["w-full"]))),
|
|
765
765
|
children: /*#__PURE__*/_jsx(Select, _objectSpread(_objectSpread({
|
|
766
766
|
id: "gender",
|
|
767
767
|
required: true
|
|
@@ -778,7 +778,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
778
778
|
labelFor: "jobPositions",
|
|
779
779
|
description: "Please specify the job positions you are interested in",
|
|
780
780
|
state: getFieldState("jobPositions"),
|
|
781
|
-
className: stl(
|
|
781
|
+
className: stl(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["w-full"]))),
|
|
782
782
|
children: /*#__PURE__*/_jsx(AutoComplete, {
|
|
783
783
|
id: "jobPositions",
|
|
784
784
|
options: jobPositions,
|
|
@@ -797,7 +797,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
797
797
|
labelFor: "employmentStatus",
|
|
798
798
|
description: "Please specify your employment status",
|
|
799
799
|
state: getFieldState("employmentStatus"),
|
|
800
|
-
className: stl(
|
|
800
|
+
className: stl(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["w-full"]))),
|
|
801
801
|
children: /*#__PURE__*/_jsx(RadioGroup, {
|
|
802
802
|
id: "employmentStatus",
|
|
803
803
|
required: true,
|
|
@@ -817,7 +817,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
817
817
|
labelFor: "birthday",
|
|
818
818
|
description: "Please specify your birthday",
|
|
819
819
|
state: getFieldState("birthday"),
|
|
820
|
-
className: stl(
|
|
820
|
+
className: stl(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["w-full"]))),
|
|
821
821
|
children: /*#__PURE__*/_jsx(DateInput, {
|
|
822
822
|
id: "birthday",
|
|
823
823
|
required: true,
|
|
@@ -838,7 +838,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
838
838
|
labelFor: "age",
|
|
839
839
|
description: "Please specify your age",
|
|
840
840
|
state: getFieldState("age"),
|
|
841
|
-
className: stl(
|
|
841
|
+
className: stl(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["w-full"]))),
|
|
842
842
|
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
843
843
|
id: "age",
|
|
844
844
|
type: "number",
|
|
@@ -851,10 +851,10 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
851
851
|
labelFor: hobbies[0],
|
|
852
852
|
description: "Please specify your hobbies",
|
|
853
853
|
state: getFieldState("hobbies"),
|
|
854
|
-
className: stl(
|
|
854
|
+
className: stl(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["w-full"]))),
|
|
855
855
|
children: /*#__PURE__*/_jsx(SelectableCardGroup, {
|
|
856
856
|
type: "multiple",
|
|
857
|
-
className: stl(
|
|
857
|
+
className: stl(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["flex gap-2"]))),
|
|
858
858
|
value: formik.values.hobbies,
|
|
859
859
|
onValueChange: function onValueChange(value) {
|
|
860
860
|
return formik.setFieldValue("hobbies", value);
|
|
@@ -863,11 +863,11 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
863
863
|
children: hobbies.map(function (hobby) {
|
|
864
864
|
return /*#__PURE__*/_jsx("label", {
|
|
865
865
|
htmlFor: hobby,
|
|
866
|
-
className: stl(
|
|
866
|
+
className: stl(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["flex-1 cursor-pointer"]))),
|
|
867
867
|
children: /*#__PURE__*/_jsx(SelectableCard, {
|
|
868
868
|
id: hobby,
|
|
869
869
|
value: hobby,
|
|
870
|
-
className: stl(
|
|
870
|
+
className: stl(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["p-4"]))),
|
|
871
871
|
children: capitalize(hobby)
|
|
872
872
|
})
|
|
873
873
|
}, hobby);
|
|
@@ -878,9 +878,9 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
878
878
|
labelFor: "interest",
|
|
879
879
|
description: "Please specify your interest",
|
|
880
880
|
state: getFieldState("interest"),
|
|
881
|
-
className: stl(
|
|
881
|
+
className: stl(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["w-full"]))),
|
|
882
882
|
children: [/*#__PURE__*/_jsxs("p", {
|
|
883
|
-
className: stl(
|
|
883
|
+
className: stl(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["display-caption flex justify-between mb-2"]))),
|
|
884
884
|
children: [/*#__PURE__*/_jsx("span", {
|
|
885
885
|
children: "0"
|
|
886
886
|
}), /*#__PURE__*/_jsx("span", {
|
|
@@ -903,9 +903,9 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
903
903
|
labelFor: "idealLocation",
|
|
904
904
|
description: "Please specify your ideal location",
|
|
905
905
|
state: getFieldState("idealLocation"),
|
|
906
|
-
className: stl(
|
|
906
|
+
className: stl(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["w-full"]))),
|
|
907
907
|
children: [/*#__PURE__*/_jsxs("p", {
|
|
908
|
-
className: stl(
|
|
908
|
+
className: stl(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["display-caption flex justify-between mb-2"]))),
|
|
909
909
|
children: [/*#__PURE__*/_jsx("span", {
|
|
910
910
|
children: "0 km"
|
|
911
911
|
}), /*#__PURE__*/_jsx("span", {
|
|
@@ -935,7 +935,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
935
935
|
labelFor: "profilePicture",
|
|
936
936
|
description: "Please upload your profile picture, 1 MB minimum",
|
|
937
937
|
state: getFieldState("profilePicture"),
|
|
938
|
-
className: stl(
|
|
938
|
+
className: stl(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["w-full"]))),
|
|
939
939
|
children: /*#__PURE__*/_jsx(Dropzone, {
|
|
940
940
|
id: "profilePicture",
|
|
941
941
|
minSize: 1024 * 1024 * 1,
|
|
@@ -950,7 +950,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
950
950
|
labelFor: "bio",
|
|
951
951
|
description: "Please write a short bio",
|
|
952
952
|
state: getFieldState("bio"),
|
|
953
|
-
className: stl(
|
|
953
|
+
className: stl(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["w-full"]))),
|
|
954
954
|
children: /*#__PURE__*/_jsx(TextArea, _objectSpread({
|
|
955
955
|
id: "bio",
|
|
956
956
|
required: true
|
|
@@ -960,7 +960,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
960
960
|
labelFor: "acceptTerms",
|
|
961
961
|
description: "Please accept the terms",
|
|
962
962
|
state: getFieldState("acceptTerms"),
|
|
963
|
-
className: stl(
|
|
963
|
+
className: stl(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["w-full"]))),
|
|
964
964
|
inline: true,
|
|
965
965
|
children: /*#__PURE__*/_jsx(Checkbox, _objectSpread({
|
|
966
966
|
id: "acceptTerms",
|
|
@@ -972,7 +972,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
972
972
|
labelFor: "newsletter",
|
|
973
973
|
description: "Do you want to receive our newsletter?",
|
|
974
974
|
state: getFieldState("newsletter"),
|
|
975
|
-
className: stl(
|
|
975
|
+
className: stl(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["w-full"]))),
|
|
976
976
|
inline: true,
|
|
977
977
|
children: /*#__PURE__*/_jsx(Switch, _objectSpread({
|
|
978
978
|
id: "newsletter",
|
|
@@ -980,7 +980,7 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
980
980
|
checked: formik.values.newsletter
|
|
981
981
|
}, formik.getFieldProps("newsletter")))
|
|
982
982
|
}), /*#__PURE__*/_jsxs("div", {
|
|
983
|
-
className: stl(
|
|
983
|
+
className: stl(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["flex gap-2"]))),
|
|
984
984
|
children: [/*#__PURE__*/_jsx(FormSubmit, {
|
|
985
985
|
variant: "primary",
|
|
986
986
|
"aria-label": "Save the form",
|
|
@@ -994,9 +994,9 @@ export var FormikComplexComponent = function FormikComplexComponent() {
|
|
|
994
994
|
})]
|
|
995
995
|
})]
|
|
996
996
|
}), /*#__PURE__*/_jsx("hr", {
|
|
997
|
-
className: stl(
|
|
997
|
+
className: stl(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["text-grey-500"])))
|
|
998
998
|
}), /*#__PURE__*/_jsx("code", {
|
|
999
|
-
className: stl(
|
|
999
|
+
className: stl(_templateObject56 || (_templateObject56 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
|
|
1000
1000
|
children: JSON.stringify(formData, null, 2)
|
|
1001
1001
|
})]
|
|
1002
1002
|
})
|
|
@@ -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
|
|
4
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14;
|
|
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";
|
|
@@ -185,7 +185,7 @@ export var FormikDependentFieldsValidationComponent = function FormikDependentFi
|
|
|
185
185
|
return /*#__PURE__*/_jsx("div", {
|
|
186
186
|
className: stl(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["@container w-full flex justify-center"]))),
|
|
187
187
|
children: /*#__PURE__*/_jsxs("div", {
|
|
188
|
-
className: stl(
|
|
188
|
+
className: stl(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["flex flex-col gap-8 w-full @lg:w-1/2"]))),
|
|
189
189
|
children: [/*#__PURE__*/_jsxs(Form, {
|
|
190
190
|
onSubmit: function onSubmit(e) {
|
|
191
191
|
setRevalidationEnabled(true);
|
|
@@ -195,13 +195,13 @@ export var FormikDependentFieldsValidationComponent = function FormikDependentFi
|
|
|
195
195
|
setRevalidationEnabled(false);
|
|
196
196
|
formik.handleReset(e);
|
|
197
197
|
},
|
|
198
|
-
className: stl(
|
|
198
|
+
className: stl(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["flex flex-col items-start gap-6 min-w-72"]))),
|
|
199
199
|
children: [/*#__PURE__*/_jsx(FormErrorMessage, {}), /*#__PURE__*/_jsx(Field, {
|
|
200
200
|
label: "Password",
|
|
201
201
|
labelFor: "password",
|
|
202
202
|
description: "Please enter your password",
|
|
203
203
|
state: getFieldState("password"),
|
|
204
|
-
className: stl(
|
|
204
|
+
className: stl(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["w-full"]))),
|
|
205
205
|
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
206
206
|
id: "password",
|
|
207
207
|
placeholder: "Password",
|
|
@@ -213,7 +213,7 @@ export var FormikDependentFieldsValidationComponent = function FormikDependentFi
|
|
|
213
213
|
labelFor: "confirmPassword",
|
|
214
214
|
description: "Please confirm your password",
|
|
215
215
|
state: getFieldState("confirmPassword"),
|
|
216
|
-
className: stl(
|
|
216
|
+
className: stl(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["w-full"]))),
|
|
217
217
|
children: /*#__PURE__*/_jsx(Input, _objectSpread({
|
|
218
218
|
id: "confirmPassword",
|
|
219
219
|
placeholder: "Confirm password",
|
|
@@ -221,7 +221,7 @@ export var FormikDependentFieldsValidationComponent = function FormikDependentFi
|
|
|
221
221
|
required: true
|
|
222
222
|
}, formik.getFieldProps("confirmPassword")))
|
|
223
223
|
}), /*#__PURE__*/_jsxs("div", {
|
|
224
|
-
className: stl(
|
|
224
|
+
className: stl(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["flex gap-2"]))),
|
|
225
225
|
children: [/*#__PURE__*/_jsx(FormSubmit, {
|
|
226
226
|
variant: "primary",
|
|
227
227
|
"aria-label": "Save the form",
|
|
@@ -235,9 +235,9 @@ export var FormikDependentFieldsValidationComponent = function FormikDependentFi
|
|
|
235
235
|
})]
|
|
236
236
|
})]
|
|
237
237
|
}), /*#__PURE__*/_jsx("hr", {
|
|
238
|
-
className: stl(
|
|
238
|
+
className: stl(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["text-grey-500"])))
|
|
239
239
|
}), /*#__PURE__*/_jsx("code", {
|
|
240
|
-
className: stl(
|
|
240
|
+
className: stl(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["whitespace-pre display-code"]))),
|
|
241
241
|
children: JSON.stringify(formData, null, 2)
|
|
242
242
|
})]
|
|
243
243
|
})
|