@iress-oss/ids-components 6.0.0-alpha.5 → 6.0.0-alpha.7
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/{Autocomplete-C5ubHBTi.js → Autocomplete-BQ_YPb5A.js} +1 -1
- package/dist/{Button-mmhMLwp9.js → Button-B4nt3P1v.js} +13 -22
- package/dist/{Provider-8wS70V56.js → Provider-CDIbqQK0.js} +3 -3
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.js +2 -2
- package/dist/components/Autocomplete/index.js +1 -1
- package/dist/components/Button/Button.js +1 -1
- package/dist/components/Button/CloseButton/CloseButton.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/Checkbox/Checkbox.styles.js +5 -2
- package/dist/components/CheckboxMark/CheckboxMark.styles.js +3 -3
- package/dist/components/Field/Field.styles.js +5 -1
- package/dist/components/Filter/Filter.js +2 -2
- package/dist/components/Filter/components/FilterResetButton.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/Input.styles.js +2 -2
- package/dist/components/Label/LabelBase/LabelBase.js +28 -23
- package/dist/components/Modal/Modal.js +39 -38
- package/dist/components/Modal/Modal.styles.js +23 -0
- package/dist/components/Progress/Progress.js +1 -1
- package/dist/components/Provider/Provider.js +3 -3
- package/dist/components/Provider/index.js +1 -1
- package/dist/components/Radio/Radio.js +41 -41
- package/dist/components/Radio/Radio.styles.js +7 -2
- package/dist/components/RichSelect/RichSelect.js +2 -2
- package/dist/components/RichSelect/SelectHeading/SelectHeading.js +1 -1
- package/dist/components/RichSelect/SelectLabel/SelectLabel.styles.js +2 -4
- package/dist/components/RichSelect/SelectTags/SelectTags.js +1 -1
- package/dist/components/RichSelect/SelectTags/SelectTags.styles.js +3 -5
- package/dist/components/RichSelect/components/SelectOptions.js +61 -60
- package/dist/components/RichSelect/index.js +1 -1
- package/dist/components/Select/Select.styles.js +4 -1
- package/dist/components/SkipLink/SkipLink.js +1 -1
- package/dist/components/Slideout/components/SlideoutInner.js +1 -1
- package/dist/components/Slideout/hooks/usePushElement.js +1 -1
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/Toaster/components/Toast/Toast.js +1 -1
- package/dist/components/Toggle/Toggle.styles.js +4 -3
- package/dist/constants.js +1 -1
- package/dist/enums.js +3 -3
- package/dist/{index-CZ9ot38T.js → index-aTLA1VIV.js} +1 -1
- package/dist/main.js +3 -3
- package/dist/patterns/Form/FormField/FormField.js +5 -5
- package/dist/patterns/Form/FormField/FormFieldset.js +1 -1
- package/dist/patterns/Form/HookForm/HookForm.js +8 -8
- package/dist/patterns/Form/components/LongForm.js +9 -9
- package/dist/patterns/Form/components/ShortForm.js +7 -7
- package/dist/patterns/Loading/components/ValidateLoading.js +1 -1
- package/dist/patterns/Shadow/Shadow.js +73 -69
- package/dist/src/components/Modal/Modal.d.ts +8 -1
- package/dist/src/components/Modal/Modal.styles.d.ts +23 -0
- package/dist/src/components/Radio/Radio.styles.d.ts +1 -1
- package/dist/src/components/RichSelect/RichSelect.d.ts +10 -0
- package/dist/src/components/RichSelect/components/SelectOptions.d.ts +1 -1
- package/dist/src/enums.d.ts +2 -1
- package/dist/src/patterns/Form/FormField/hooks/useFieldRenderProps.d.ts +3 -9
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/dist/index.esm-BiUTGNH8.js +0 -1080
package/dist/enums.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var e = /* @__PURE__ */ ((r) => (r.Group = "group", r.FormElement = "iress-form-element", r.FormElementInner = "iress-form-element__inner", r.FormElementInvalid = "iress-form-element--invalid", r.FormLabel = "iress-form-label", r.Alert = "ids-alert", r.Autocomplete = "ids-autocomplete", r.Badge = "ids-badge", r.Button = "ids-button", r.ButtonGroup = "ids-button-group", r.Card = "ids-card", r.Checkbox = "ids-checkbox", r.CheckboxGroup = "ids-checkbox-group", r.CheckboxMark = "ids-checkbox-mark", r.CloseButton = "ids-button--close", r.Col = "ids-col", r.Container = "ids-container", r.Divider = "ids-divider", r.Expander = "ids-expander", r.Field = "ids-field", r.FieldGroup = "ids-field-group", r.Form = "ids-form", r.Filter = "ids-filter", r.Icon = "ids-icon", r.Image = "ids-image", r.Inline = "ids-inline", r.Input = "ids-input", r.InputCurrency = "ids-input--currency", r.InputPopover = "ids-popover--input", r.Link = "ids-link", r.Menu = "ids-menu", r.MenuHeading = "ids-text--menu-heading", r.MenuDivider = "ids-divider--menu", r.MenuItem = "ids-menu-item", r.MenuText = "ids-text--menu", r.Modal = "ids-modal", r.ModalBackdrop = "ids-modal__backdrop", r.Panel = "ids-panel", r.Placeholder = "ids-placeholder", r.Popover = "ids-popover", r.PopoverContent = "ids-popover__content", r.Progress = "ids-progress", r.Radio = "ids-radio", r.RadioGroup = "ids-radio-group", r.Readonly = "ids-input--readonly", r.RichSelect = "ids-rich-select", r.RichSelectTags = "ids-rich-select-tags", r.RichSelectSearchInput = "ids-rich-select-search-input", r.RichSelectSearch = "ids-rich-select-search", r.RichSelectSearchContent = "ids-rich-select-search--content", r.RichSelectMenu = "ids-rich-select-menu", r.RichSelectMenuItem = "ids-rich-select-menu-item", r.RichSelectLabel = "ids-rich-select-label", r.RichSelectHeading = "ids-rich-select-heading", r.RichSelectClearButton = "ids-rich-select-clear-button", r.RichSelectBody = "ids-rich-select-body", r.Row = "ids-row", r.Select = "ids-select", r.Skeleton = "ids-skeleton", r.SkipLink = "ids-skip-link", r.Slideout = "ids-slideout", r.SlideoutPushElement = "ids-slideout-push-element", r.SlideoutOpen = "ids-slideout--open", r.Slider = "ids-slider", r.Spinner = "ids-spinner", r.Stack = "ids-stack", r.Table = "ids-table", r.Tab = "ids-tab", r.TabSet = "ids-tabset", r.Tag = "ids-tag", r.TagInput = "ids-tag-input", r.Text = "ids-text", r.Toast = "ids-toast", r.Toaster = "ids-toaster", r.Toggle = "ids-toggle", r.Tooltip = "ids-tooltip", r.ValidationLink = "ids-validation-message--link", r.ValidationMessage = "ids-validation-message", r.ValidationSummary = "ids-validation-
|
|
1
|
+
var e = /* @__PURE__ */ ((r) => (r.Group = "group", r.FormElement = "iress-form-element", r.FormElementInner = "iress-form-element__inner", r.FormElementInvalid = "iress-form-element--invalid", r.FormLabel = "iress-form-label", r.Alert = "ids-alert", r.Autocomplete = "ids-autocomplete", r.Badge = "ids-badge", r.Button = "ids-button", r.ButtonGroup = "ids-button-group", r.Card = "ids-card", r.Checkbox = "ids-checkbox", r.CheckboxGroup = "ids-checkbox-group", r.CheckboxMark = "ids-checkbox-mark", r.CloseButton = "ids-button--close", r.Col = "ids-col", r.Container = "ids-container", r.Divider = "ids-divider", r.Expander = "ids-expander", r.Field = "ids-field", r.FieldGroup = "ids-field-group", r.Form = "ids-form", r.Filter = "ids-filter", r.Icon = "ids-icon", r.Image = "ids-image", r.Inline = "ids-inline", r.Input = "ids-input", r.InputCurrency = "ids-input--currency", r.InputPopover = "ids-popover--input", r.Label = "ids-label", r.Link = "ids-link", r.Menu = "ids-menu", r.MenuHeading = "ids-text--menu-heading", r.MenuDivider = "ids-divider--menu", r.MenuItem = "ids-menu-item", r.MenuText = "ids-text--menu", r.Modal = "ids-modal", r.ModalBackdrop = "ids-modal__backdrop", r.Panel = "ids-panel", r.Placeholder = "ids-placeholder", r.Popover = "ids-popover", r.PopoverContent = "ids-popover__content", r.Progress = "ids-progress", r.Radio = "ids-radio", r.RadioGroup = "ids-radio-group", r.Readonly = "ids-input--readonly", r.RichSelect = "ids-rich-select", r.RichSelectTags = "ids-rich-select-tags", r.RichSelectSearchInput = "ids-rich-select-search-input", r.RichSelectSearch = "ids-rich-select-search", r.RichSelectSearchContent = "ids-rich-select-search--content", r.RichSelectMenu = "ids-rich-select-menu", r.RichSelectMenuItem = "ids-rich-select-menu-item", r.RichSelectLabel = "ids-rich-select-label", r.RichSelectHeading = "ids-rich-select-heading", r.RichSelectClearButton = "ids-rich-select-clear-button", r.RichSelectBody = "ids-rich-select-body", r.Row = "ids-row", r.Select = "ids-select", r.Skeleton = "ids-skeleton", r.SkipLink = "ids-skip-link", r.Slideout = "ids-slideout", r.SlideoutPushElement = "ids-slideout-push-element", r.SlideoutOpen = "ids-slideout--open", r.Slider = "ids-slider", r.Spinner = "ids-spinner", r.Stack = "ids-stack", r.Table = "ids-table", r.Tab = "ids-tab", r.TabSet = "ids-tabset", r.Tag = "ids-tag", r.TagInput = "ids-tag-input", r.Text = "ids-text", r.Toast = "ids-toast", r.Toaster = "ids-toaster", r.Toggle = "ids-toggle", r.Tooltip = "ids-tooltip", r.ValidationLink = "ids-validation-message--link", r.ValidationMessage = "ids-validation-message", r.ValidationSummary = "ids-validation-summary", r))(e || {}), i = /* @__PURE__ */ ((r) => (r.Xs = "xs", r.Sm = "sm", r.Md = "md", r.Lg = "lg", r.Xl = "xl", r.Xxl = "xxl", r))(i || {}), d = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Overlay = "overlay", r))(d || {}), c = /* @__PURE__ */ ((r) => (r.H2 = "h2", r.H3 = "h3", r.H4 = "h4", r.H5 = "h5", r.H6 = "h6", r))(c || {}), t = /* @__PURE__ */ ((r) => (r.Log = "log", r.Warn = "warn", r.Error = "error", r))(t || {}), u = /* @__PURE__ */ ((r) => (r.Date = "date", r.Email = "email", r.Number = "number", r.Password = "password", r.Search = "search", r.Tel = "tel", r.Text = "text", r.Url = "url", r.Time = "time", r.Color = "color", r.File = "file", r.DateTimeLocal = "datetime-local", r))(u || {}), n = /* @__PURE__ */ ((r) => (r.Date = "date", r.Email = "email", r.Number = "number", r.Password = "password", r.Search = "search", r.Tel = "tel", r.Text = "text", r.Url = "url", r.Time = "time", r.File = "file", r.Color = "color", r.Checkbox = "checkbox", r.Radio = "radio", r.Select = "select", r.CheckboxGroup = "checkbox-group", r.RadioGroup = "radio-group", r.Combobox = "combobox", r.DateTimeLocal = "datetime-local", r))(n || {}), h = /* @__PURE__ */ ((r) => (r.Two = "2", r.Four = "4", r.Six = "6", r.Eight = "8", r.Ten = "10", r.Twelve = "12", r.Sixteen = "16", r.TwentyFivePercent = "25perc", r.FiftyPercent = "50perc", r.SeventyFivePercent = "75perc", r))(h || {}), o = /* @__PURE__ */ ((r) => (r.Auto = "auto", r.BottomStart = "bottom-start", r.BottomCenter = "bottom", r.BottomEnd = "bottom-end", r.TopStart = "top-start", r.TopCenter = "top", r.TopEnd = "top-end", r.LeftStart = "left-start", r.LeftCenter = "left", r.LeftEnd = "left-end", r.RightStart = "right-start", r.RightCenter = "right", r.RightEnd = "right-end", r))(o || {}), p = /* @__PURE__ */ ((r) => (r.Danger = "danger", r.Info = "info", r.Success = "success", r.Warning = "warning", r))(p || {}), v = /* @__PURE__ */ ((r) => (r.Inherit = "inherit", r.Left = "left", r.Center = "center", r.Right = "right", r.Justify = "justify", r))(v || {}), f = /* @__PURE__ */ ((r) => (r.P = "p", r.Div = "div", r.Span = "span", r.H1 = "h1", r.H2 = "h2", r.H3 = "h3", r.H4 = "h4", r.H5 = "h5", r.H6 = "h6", r.Code = "code", r.Blockquote = "blockquote", r.Caption = "caption", r.Cite = "cite", r.Small = "small", r))(f || {}), k = /* @__PURE__ */ ((r) => (r.Body = "body", r.Danger = "danger", r.Info = "info", r.Muted = "muted", r.Primary = "primary", r.Success = "success", r.Warning = "warning", r.Positive = "positive", r.Negative = "negative", r))(k || {}), g = /* @__PURE__ */ ((r) => (r.Blockquote = "blockquote", r.Bold = "bold", r.Body = "body", r.Code = "code", r.Display = "display", r.Display1 = "display1", r.Display2 = "display2", r.Display3 = "display3", r.Display4 = "display4", r.Heading1 = "h1", r.Heading2 = "h2", r.Heading3 = "h3", r.Heading4 = "h4", r.Heading5 = "h5", r.Heading6 = "h6", r.Italic = "italic", r.Lead = "lead", r.Small = "small", r.Cite = "cite", r.Caption = "caption", r))(g || {}), R = /* @__PURE__ */ ((r) => (r.None = "none", r.Sm = "sm", r.Md = "md", r.Lg = "lg", r))(R || {}), m = /* @__PURE__ */ ((r) => (r.Sm = "sm", r.Md = "md", r.Lg = "lg", r.FullPage = "fullpage", r))(m || {}), w = /* @__PURE__ */ ((r) => (r.None = "none", r.Xs = "xs", r.Sm = "sm", r.Md = "md", r.Lg = "lg", r.Xl = "xl", r))(w || {}), D = /* @__PURE__ */ ((r) => (r.Around = "around", r.Between = "between", r.Center = "center", r.Evenly = "evenly", r.Left = "left", r.Right = "right", r))(D || {}), P = /* @__PURE__ */ ((r) => (r.Bottom = "bottom", r.Middle = "middle", r.Stretch = "stretch", r.Top = "top", r))(P || {});
|
|
2
2
|
export {
|
|
3
3
|
i as Breakpoint,
|
|
4
4
|
d as DisplayMode,
|
|
@@ -8,7 +8,7 @@ export {
|
|
|
8
8
|
e as GlobalCSSClass,
|
|
9
9
|
w as GutterSize,
|
|
10
10
|
c as HeadingLevel,
|
|
11
|
-
|
|
11
|
+
D as HorizontalAlign,
|
|
12
12
|
t as LoggerLevels,
|
|
13
13
|
m as ModalSize,
|
|
14
14
|
R as PaddingSize,
|
|
@@ -18,5 +18,5 @@ export {
|
|
|
18
18
|
u as TextFieldType,
|
|
19
19
|
k as TextMode,
|
|
20
20
|
g as TextVariant,
|
|
21
|
-
|
|
21
|
+
P as VerticalAlign
|
|
22
22
|
};
|
|
@@ -444,7 +444,7 @@ const s = {
|
|
|
444
444
|
variable: "var(--spacing-button\\.block)"
|
|
445
445
|
},
|
|
446
446
|
"spacing.field.footer": {
|
|
447
|
-
value: "calc(var(--iress-typography-base-size, .875rem) * 2
|
|
447
|
+
value: "calc(var(--iress-typography-base-size, .875rem) * 2)",
|
|
448
448
|
variable: "var(--spacing-field\\.footer)"
|
|
449
449
|
},
|
|
450
450
|
"spacing.slider.tick": {
|
package/dist/main.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IressAlert as o } from "./components/Alert/Alert.js";
|
|
2
2
|
import { alert as s } from "./components/Alert/Alert.styles.js";
|
|
3
|
-
import { a as m, I as x } from "./Autocomplete-
|
|
3
|
+
import { a as m, I as x } from "./Autocomplete-BQ_YPb5A.js";
|
|
4
4
|
import { autoComplete as I } from "./components/Autocomplete/Autocomplete.styles.js";
|
|
5
5
|
import { useAutocompleteSearch as l } from "./components/Autocomplete/hooks/useAutocompleteSearch.js";
|
|
6
6
|
import { IressBadge as n } from "./components/Badge/Badge.js";
|
|
7
7
|
import { badge as S } from "./components/Badge/Badge.styles.js";
|
|
8
|
-
import { I as T, b as c } from "./Button-
|
|
8
|
+
import { I as T, b as c } from "./Button-B4nt3P1v.js";
|
|
9
9
|
import { IressCloseButton as g } from "./components/Button/CloseButton/CloseButton.js";
|
|
10
10
|
import { IressButtonGroup as C } from "./components/ButtonGroup/ButtonGroup.js";
|
|
11
11
|
import { buttonGroup as G } from "./components/ButtonGroup/ButtonGroup.styles.js";
|
|
@@ -62,7 +62,7 @@ import { IressInputPopover as Ce } from "./components/Popover/InputPopover/Input
|
|
|
62
62
|
import { usePopoverItem as Ge } from "./components/Popover/hooks/usePopoverItem.js";
|
|
63
63
|
import { IressProgress as _e } from "./components/Progress/Progress.js";
|
|
64
64
|
import { progress as Re } from "./components/Progress/Progress.styles.js";
|
|
65
|
-
import { I as Fe } from "./Provider-
|
|
65
|
+
import { I as Fe } from "./Provider-CDIbqQK0.js";
|
|
66
66
|
import { IressRadio as Pe } from "./components/Radio/Radio.js";
|
|
67
67
|
import { radio as De } from "./components/Radio/Radio.styles.js";
|
|
68
68
|
import { IressRadioGroup as Oe, RadioGroupContext as Ve, getRadioGroupContext as ye } from "./components/RadioGroup/RadioGroup.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as I } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as M, useRef as E, useMemo as f, useEffect as x } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useController as _ } from "react-hook-form";
|
|
4
4
|
import { getErrorTypeMessage as $ } from "./helpers/getErrorTypeMessage.js";
|
|
5
5
|
import { FormContext as v } from "../FormContext.js";
|
|
6
6
|
import { transformCustomRulesToValidateRule as q } from "./helpers/transformCustomRulesToValidateRule.js";
|
|
@@ -28,7 +28,7 @@ const H = ({
|
|
|
28
28
|
const m = f(() => {
|
|
29
29
|
if (!e)
|
|
30
30
|
return s ? q(s) : void 0;
|
|
31
|
-
}, [e, s]), { field:
|
|
31
|
+
}, [e, s]), { field: c, formState: g, fieldState: t } = _({
|
|
32
32
|
control: d,
|
|
33
33
|
defaultValue: p,
|
|
34
34
|
name: r,
|
|
@@ -45,7 +45,7 @@ const H = ({
|
|
|
45
45
|
x(() => {
|
|
46
46
|
e ? o.setErrorMessage(r, "") : o.setErrorMessage(r, i);
|
|
47
47
|
}, [i, o, r, e]);
|
|
48
|
-
const
|
|
48
|
+
const a = T(c, F);
|
|
49
49
|
return /* @__PURE__ */ I(
|
|
50
50
|
S,
|
|
51
51
|
{
|
|
@@ -56,11 +56,11 @@ const H = ({
|
|
|
56
56
|
...u,
|
|
57
57
|
children: n(
|
|
58
58
|
{
|
|
59
|
-
...
|
|
59
|
+
...a,
|
|
60
60
|
id: `${o.id}__${r}`
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
formState:
|
|
63
|
+
formState: g,
|
|
64
64
|
fieldState: t
|
|
65
65
|
}
|
|
66
66
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as F } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as c, useRef as g, useMemo as I, useEffect as M } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useController as x } from "react-hook-form";
|
|
4
4
|
import { getErrorTypeMessage as E } from "./helpers/getErrorTypeMessage.js";
|
|
5
5
|
import "../../../components/Label/Label.styles.js";
|
|
6
6
|
import "../../../components/Field/Field.styles.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as f, jsxs as E } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as J, useState as U, useRef as m, useCallback as n, useImperativeHandle as K, useEffect as V, useMemo as L } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { FormProvider as W } from "react-hook-form";
|
|
4
4
|
import { useIdIfNeeded as X } from "../../../hooks/useIdIfNeeded.js";
|
|
5
5
|
import { IressFormValidationSummary as Y } from "../FormValidationSummary/FormValidationSummary.js";
|
|
6
6
|
import { s as Z } from "../../../factory-oPXoMw9H.js";
|
|
@@ -20,7 +20,7 @@ const _ = ({
|
|
|
20
20
|
updateErrorSummaryOnSubmit: s,
|
|
21
21
|
...g
|
|
22
22
|
}, h) => {
|
|
23
|
-
const
|
|
23
|
+
const i = X({ id: g.id }), [r, a] = U({}), c = m({}), v = m(null), M = m(null), { handleSubmit: x, reset: q, formState: z } = o, { isValid: H, isSubmitted: I } = z, [C, N] = U(!1), R = n(
|
|
24
24
|
(e) => {
|
|
25
25
|
F?.(e), v.current?.focus(), s && N(!0);
|
|
26
26
|
},
|
|
@@ -28,7 +28,7 @@ const _ = ({
|
|
|
28
28
|
), j = n(
|
|
29
29
|
(e) => {
|
|
30
30
|
x((t) => {
|
|
31
|
-
u?.(t),
|
|
31
|
+
u?.(t), a({}), c.current = {};
|
|
32
32
|
}, R)(e);
|
|
33
33
|
},
|
|
34
34
|
[R, x, u]
|
|
@@ -53,7 +53,7 @@ const _ = ({
|
|
|
53
53
|
}),
|
|
54
54
|
{}
|
|
55
55
|
);
|
|
56
|
-
s ? k(() => Q) :
|
|
56
|
+
s ? k(() => Q) : a(() => Q);
|
|
57
57
|
},
|
|
58
58
|
[
|
|
59
59
|
r,
|
|
@@ -70,16 +70,16 @@ const _ = ({
|
|
|
70
70
|
})), V(() => {
|
|
71
71
|
p?.(H);
|
|
72
72
|
}, [H, p]), V(() => {
|
|
73
|
-
s && C && I && (
|
|
73
|
+
s && C && I && (a(() => c.current), N(!1));
|
|
74
74
|
}, [s, C, I]);
|
|
75
75
|
const A = L(
|
|
76
76
|
() => ({
|
|
77
|
-
id:
|
|
77
|
+
id: i,
|
|
78
78
|
errorMessages: r,
|
|
79
79
|
setErrorMessage: P,
|
|
80
80
|
setFocusOnError: w
|
|
81
81
|
}),
|
|
82
|
-
[r,
|
|
82
|
+
[r, i, P, w]
|
|
83
83
|
);
|
|
84
84
|
return /* @__PURE__ */ f($.Provider, { value: A, children: /* @__PURE__ */ f(W, { ...o, children: /* @__PURE__ */ E(
|
|
85
85
|
Z.form,
|
|
@@ -87,7 +87,7 @@ const _ = ({
|
|
|
87
87
|
...g,
|
|
88
88
|
className: y(b, O.Form),
|
|
89
89
|
"data-testid": d,
|
|
90
|
-
id:
|
|
90
|
+
id: i,
|
|
91
91
|
noValidate: !0,
|
|
92
92
|
onSubmit: j,
|
|
93
93
|
ref: M,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useForm as L } from "react-hook-form";
|
|
3
3
|
import { forwardRef as y, useMemo as z } from "react";
|
|
4
4
|
import { IressText as B } from "../../../components/Text/Text.js";
|
|
5
5
|
import { form as C } from "../Form.styles.js";
|
|
@@ -10,9 +10,9 @@ import "../../../components/Panel/Panel.styles.js";
|
|
|
10
10
|
import "../../../components/Inline/Inline.styles.js";
|
|
11
11
|
import { IressInline as R } from "../../../components/Inline/Inline.js";
|
|
12
12
|
const T = ({
|
|
13
|
-
actions:
|
|
13
|
+
actions: c,
|
|
14
14
|
alert: m,
|
|
15
|
-
children:
|
|
15
|
+
children: a,
|
|
16
16
|
className: l,
|
|
17
17
|
criteriaMode: f,
|
|
18
18
|
context: d,
|
|
@@ -20,9 +20,9 @@ const T = ({
|
|
|
20
20
|
delayError: p,
|
|
21
21
|
footer: t,
|
|
22
22
|
heading: o,
|
|
23
|
-
mode:
|
|
23
|
+
mode: g = "onBlur",
|
|
24
24
|
panelStyle: n = { bg: "alt" },
|
|
25
|
-
progressive:
|
|
25
|
+
progressive: u,
|
|
26
26
|
resetOptions: F,
|
|
27
27
|
resolver: N,
|
|
28
28
|
reValidateMode: x = "onChange",
|
|
@@ -37,8 +37,8 @@ const T = ({
|
|
|
37
37
|
context: d,
|
|
38
38
|
defaultValues: h,
|
|
39
39
|
delayError: p,
|
|
40
|
-
mode:
|
|
41
|
-
progressive:
|
|
40
|
+
mode: g,
|
|
41
|
+
progressive: u,
|
|
42
42
|
resetOptions: F,
|
|
43
43
|
resolver: N,
|
|
44
44
|
reValidateMode: x,
|
|
@@ -64,7 +64,7 @@ const T = ({
|
|
|
64
64
|
className: r.header,
|
|
65
65
|
children: [
|
|
66
66
|
H,
|
|
67
|
-
/* @__PURE__ */ e("div", { className: r.actions, children:
|
|
67
|
+
/* @__PURE__ */ e("div", { className: r.actions, children: c })
|
|
68
68
|
]
|
|
69
69
|
}
|
|
70
70
|
),
|
|
@@ -75,7 +75,7 @@ const T = ({
|
|
|
75
75
|
className: i(r.children, n.className),
|
|
76
76
|
children: [
|
|
77
77
|
m,
|
|
78
|
-
|
|
78
|
+
a
|
|
79
79
|
]
|
|
80
80
|
}
|
|
81
81
|
),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as H, jsxs as I } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { useForm as b } from "react-hook-form";
|
|
3
3
|
import { forwardRef as g, useMemo as w } from "react";
|
|
4
4
|
import { form as C } from "../Form.styles.js";
|
|
5
5
|
import { IressHookForm as E } from "../HookForm/HookForm.js";
|
|
@@ -17,9 +17,9 @@ const R = ({
|
|
|
17
17
|
heading: o,
|
|
18
18
|
mode: i = "onSubmit",
|
|
19
19
|
progressive: u,
|
|
20
|
-
resetOptions:
|
|
21
|
-
resolver:
|
|
22
|
-
reValidateMode:
|
|
20
|
+
resetOptions: h,
|
|
21
|
+
resolver: p,
|
|
22
|
+
reValidateMode: a = "onChange",
|
|
23
23
|
shouldUseNativeValidation: F,
|
|
24
24
|
shouldUnregister: l,
|
|
25
25
|
values: x,
|
|
@@ -32,9 +32,9 @@ const R = ({
|
|
|
32
32
|
delayError: c,
|
|
33
33
|
mode: i,
|
|
34
34
|
progressive: u,
|
|
35
|
-
resetOptions:
|
|
36
|
-
resolver:
|
|
37
|
-
reValidateMode:
|
|
35
|
+
resetOptions: h,
|
|
36
|
+
resolver: p,
|
|
37
|
+
reValidateMode: a,
|
|
38
38
|
shouldFocusError: !r,
|
|
39
39
|
shouldUseNativeValidation: F,
|
|
40
40
|
shouldUnregister: l,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as o, jsxs as u } from "react/jsx-runtime";
|
|
2
|
-
import { I as p } from "../../../Button-
|
|
2
|
+
import { I as p } from "../../../Button-B4nt3P1v.js";
|
|
3
3
|
import "../../../components/Button/CloseButton/CloseButton.js";
|
|
4
4
|
import { useState as h, useEffect as g } from "react";
|
|
5
5
|
import { loading as x } from "../Loading.styles.js";
|