@elliemae/ds-form-layout-blocks 3.12.0-rc.1 → 3.12.0-rc.3

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 (25) hide show
  1. package/dist/cjs/form-layout-block-item/DSFormLayoutBlockItem.js +66 -64
  2. package/dist/cjs/form-layout-block-item/DSFormLayoutBlockItem.js.map +1 -1
  3. package/dist/cjs/form-layout-block-item/DSFormLayoutBlockItemDefinitions.js +32 -0
  4. package/dist/cjs/form-layout-block-item/DSFormLayoutBlockItemDefinitions.js.map +7 -0
  5. package/dist/cjs/form-layout-block-item/config/useFormLayoutBlockItem.js +2 -1
  6. package/dist/cjs/form-layout-block-item/config/useFormLayoutBlockItem.js.map +2 -2
  7. package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +1 -7
  8. package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +1 -1
  9. package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js +32 -0
  10. package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js.map +7 -0
  11. package/dist/cjs/form-layout-checkbox-group/config/useFormLayoutCheckboxGroup.js +2 -1
  12. package/dist/cjs/form-layout-checkbox-group/config/useFormLayoutCheckboxGroup.js.map +2 -2
  13. package/dist/esm/form-layout-block-item/DSFormLayoutBlockItem.js +66 -64
  14. package/dist/esm/form-layout-block-item/DSFormLayoutBlockItem.js.map +1 -1
  15. package/dist/esm/form-layout-block-item/DSFormLayoutBlockItemDefinitions.js +6 -0
  16. package/dist/esm/form-layout-block-item/DSFormLayoutBlockItemDefinitions.js.map +7 -0
  17. package/dist/esm/form-layout-block-item/config/useFormLayoutBlockItem.js +2 -1
  18. package/dist/esm/form-layout-block-item/config/useFormLayoutBlockItem.js.map +2 -2
  19. package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +1 -7
  20. package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +1 -1
  21. package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js +6 -0
  22. package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js.map +7 -0
  23. package/dist/esm/form-layout-checkbox-group/config/useFormLayoutCheckboxGroup.js +2 -1
  24. package/dist/esm/form-layout-checkbox-group/config/useFormLayoutCheckboxGroup.js.map +2 -2
  25. package/package.json +5 -5
@@ -61,75 +61,77 @@ const DSFormLayoutBlockItem = (props) => {
61
61
  const { className, label: globalLabel, ...othersGlobalAttributes } = globalAttributes;
62
62
  const instanceUID = (0, import_react.useMemo)(() => (0, import_uid.uid)(6), []);
63
63
  const cols = (0, import_react.useMemo)(() => maxCharCounter !== void 0 ? ["1fr", "auto"] : ["1fr"], [maxCharCounter]);
64
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.StyledContainer, {
65
- "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.CONTAINER,
66
- leftLabel,
67
- fitContent,
68
- hideLabel,
69
- withHighlight,
70
- as: isGroup ? "fieldset" : "div",
71
- isGroup,
72
- "aria-describedby": !isGroup ? `${inputID || instanceUID}_feedback_message` : void 0,
73
- className,
74
- ...xstyledProps,
75
- children: [
76
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, {
77
- cols,
78
- gutter: "xxs",
79
- children: [
80
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.StyledLabel, {
81
- id: `${inputID}_block_label`,
82
- "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.LABEL,
83
- htmlFor: inputID,
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
65
+ import_styles.StyledContainer,
66
+ {
67
+ "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.CONTAINER,
68
+ leftLabel,
69
+ fitContent,
70
+ hideLabel,
71
+ withHighlight,
72
+ as: isGroup ? "fieldset" : "div",
73
+ isGroup,
74
+ "aria-describedby": !isGroup ? `${inputID || instanceUID}_feedback_message` : void 0,
75
+ className,
76
+ ...xstyledProps,
77
+ children: [
78
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ds_grid.Grid, { cols, gutter: "xxs", children: [
79
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
80
+ import_styles.StyledLabel,
81
+ {
82
+ id: `${inputID}_block_label`,
83
+ "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.LABEL,
84
+ htmlFor: inputID,
85
+ leftLabel,
86
+ hideLabel,
87
+ "aria-hidden": isGroup,
88
+ ...othersGlobalAttributes,
89
+ children: [
90
+ label,
91
+ (required || optional) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledMark, { required })
92
+ ]
93
+ }
94
+ ),
95
+ maxCharCounter !== void 0 && currentChar !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
96
+ import_styles.StyledCharCount,
97
+ {
98
+ "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.COUNTER,
99
+ hasError: currentChar > maxCharCounter,
100
+ children: `${currentChar}/${maxCharCounter}`
101
+ }
102
+ ) : null
103
+ ] }),
104
+ isGroup && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.ScreenReaderOnly, { as: "legend", children: `${label}. ${feedbackMessage || ""}` }),
105
+ children,
106
+ feedbackMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
107
+ import_styles.StyledMessage,
108
+ {
109
+ "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.MESSAGE,
84
110
  leftLabel,
85
111
  hideLabel,
86
112
  "aria-hidden": isGroup,
87
- ...othersGlobalAttributes,
113
+ id: `${inputID || instanceUID}_feedback_message`,
114
+ children: feedbackMessage
115
+ }
116
+ ),
117
+ validationMessage && hasError && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
118
+ import_styles.StyledMessage,
119
+ {
120
+ "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.ERROR_MESSAGE,
121
+ hasError,
122
+ leftLabel,
123
+ hideLabel,
124
+ role: "alert",
88
125
  children: [
89
- label,
90
- (required || optional) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledMark, {
91
- required
92
- })
126
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.AlertsSmallFill, { width: 8, height: 8, color: ["danger", "900"] }),
127
+ "\xA0",
128
+ validationMessage
93
129
  ]
94
- }),
95
- maxCharCounter !== void 0 && currentChar !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledCharCount, {
96
- "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.COUNTER,
97
- hasError: currentChar > maxCharCounter,
98
- children: `${currentChar}/${maxCharCounter}`
99
- }) : null
100
- ]
101
- }),
102
- isGroup && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.ScreenReaderOnly, {
103
- as: "legend",
104
- children: `${label}. ${feedbackMessage || ""}`
105
- }),
106
- children,
107
- feedbackMessage && !hasError && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledMessage, {
108
- "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.MESSAGE,
109
- leftLabel,
110
- hideLabel,
111
- "aria-hidden": isGroup,
112
- id: `${inputID || instanceUID}_feedback_message`,
113
- children: feedbackMessage
114
- }),
115
- validationMessage && hasError && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.StyledMessage, {
116
- "data-testid": import_DSFormLayoutBlockItemDataTestId.DSFormLayoutBlockItemDataTestId.ERROR_MESSAGE,
117
- hasError,
118
- leftLabel,
119
- hideLabel,
120
- role: "alert",
121
- children: [
122
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_icons.AlertsSmallFill, {
123
- width: 8,
124
- height: 8,
125
- color: ["danger", "900"]
126
- }),
127
- "\xA0",
128
- validationMessage
129
- ]
130
- })
131
- ]
132
- });
130
+ }
131
+ )
132
+ ]
133
+ }
134
+ );
133
135
  };
134
136
  DSFormLayoutBlockItem.propTypes = import_propTypes.propTypes;
135
137
  DSFormLayoutBlockItem.displayName = "DSFormLayoutBlockItem";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/form-layout-block-item/DSFormLayoutBlockItem.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable complexity */\nimport React, { useMemo } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { describe } from '@elliemae/ds-utilities';\nimport { uid } from 'uid';\nimport { AlertsSmallFill } from '@elliemae/ds-icons';\nimport { DSFormLayoutBlockItemDataTestId } from '../exported-related/DSFormLayoutBlockItemDataTestId';\nimport type { DSFormLayoutBlockItemT } from './propTypes';\nimport { propTypes } from './propTypes';\nimport { StyledMessage, StyledLabel, StyledContainer, StyledMark, ScreenReaderOnly, StyledCharCount } from './styles';\nimport { useFormLayoutBlockItem } from './config/useFormLayoutBlockItem';\n\nconst DSFormLayoutBlockItem = (props: DSFormLayoutBlockItemT.Props) => {\n const { globalAttributes, xstyledProps, propsWithDefault } = useFormLayoutBlockItem(props);\n const {\n label,\n feedbackMessage,\n maxCharCounter,\n currentChar,\n validationMessage,\n inputID,\n children,\n hasError,\n leftLabel,\n required,\n optional,\n hideLabel,\n fitContent,\n withHighlight,\n isGroup,\n } = propsWithDefault;\n\n const { className, label: globalLabel, ...othersGlobalAttributes } = globalAttributes;\n const instanceUID = useMemo(() => uid(6), []);\n\n const cols = useMemo(() => (maxCharCounter !== undefined ? ['1fr', 'auto'] : ['1fr']), [maxCharCounter]);\n\n return (\n <StyledContainer\n data-testid={DSFormLayoutBlockItemDataTestId.CONTAINER}\n leftLabel={leftLabel}\n fitContent={fitContent}\n hideLabel={hideLabel}\n withHighlight={withHighlight}\n as={isGroup ? 'fieldset' : 'div'}\n isGroup={isGroup}\n aria-describedby={!isGroup ? `${inputID || instanceUID}_feedback_message` : undefined}\n className={className}\n {...xstyledProps}\n >\n <Grid cols={cols} gutter=\"xxs\">\n <StyledLabel\n id={`${inputID}_block_label`}\n data-testid={DSFormLayoutBlockItemDataTestId.LABEL}\n htmlFor={inputID}\n leftLabel={leftLabel}\n hideLabel={hideLabel}\n aria-hidden={isGroup}\n {...othersGlobalAttributes}\n >\n {label}\n {(required || optional) && <StyledMark required={required} />}\n </StyledLabel>\n {maxCharCounter !== undefined && currentChar !== undefined ? (\n <StyledCharCount\n data-testid={DSFormLayoutBlockItemDataTestId.COUNTER}\n hasError={currentChar > maxCharCounter}\n >{`${currentChar}/${maxCharCounter}`}</StyledCharCount>\n ) : null}\n </Grid>\n {isGroup && <ScreenReaderOnly as=\"legend\">{`${label}. ${feedbackMessage || ''}`}</ScreenReaderOnly>}\n {children}\n {feedbackMessage && !hasError && (\n <StyledMessage\n data-testid={DSFormLayoutBlockItemDataTestId.MESSAGE}\n leftLabel={leftLabel}\n hideLabel={hideLabel}\n aria-hidden={isGroup}\n id={`${inputID || instanceUID}_feedback_message`}\n >\n {feedbackMessage}\n </StyledMessage>\n )}\n {validationMessage && hasError && (\n <StyledMessage\n data-testid={DSFormLayoutBlockItemDataTestId.ERROR_MESSAGE}\n hasError={hasError}\n leftLabel={leftLabel}\n hideLabel={hideLabel}\n role=\"alert\"\n >\n <AlertsSmallFill width={8} height={8} color={['danger', '900']} />\n &nbsp;\n {validationMessage}\n </StyledMessage>\n )}\n </StyledContainer>\n );\n};\n\nDSFormLayoutBlockItem.propTypes = propTypes;\nDSFormLayoutBlockItem.displayName = 'DSFormLayoutBlockItem';\nconst DSFormLayoutBlockItemWithSchema = describe(DSFormLayoutBlockItem);\nDSFormLayoutBlockItemWithSchema.propTypes = propTypes;\n\nexport { DSFormLayoutBlockItem, DSFormLayoutBlockItemWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADmDf;AAlDR,mBAA+B;AAC/B,qBAAqB;AACrB,0BAAyB;AACzB,iBAAoB;AACpB,sBAAgC;AAChC,6CAAgD;AAEhD,uBAA0B;AAC1B,oBAA2G;AAC3G,oCAAuC;AAEvC,MAAM,wBAAwB,CAAC,UAAwC;AACrE,QAAM,EAAE,kBAAkB,cAAc,iBAAiB,QAAI,sDAAuB,KAAK;AACzF,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,IAAI;AAEJ,QAAM,EAAE,WAAW,OAAO,gBAAgB,uBAAuB,IAAI;AACrE,QAAM,kBAAc,sBAAQ,UAAM,gBAAI,CAAC,GAAG,CAAC,CAAC;AAE5C,QAAM,WAAO,sBAAQ,MAAO,mBAAmB,SAAY,CAAC,OAAO,MAAM,IAAI,CAAC,KAAK,GAAI,CAAC,cAAc,CAAC;AAEvG,SACE,6CAAC;AAAA,IACC,eAAa,uEAAgC;AAAA,IAC7C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,IAAI,UAAU,aAAa;AAAA,IAC3B;AAAA,IACA,oBAAkB,CAAC,UAAU,GAAG,WAAW,iCAAiC;AAAA,IAC5E;AAAA,IACC,GAAG;AAAA,IAEJ;AAAA,mDAAC;AAAA,QAAK;AAAA,QAAY,QAAO;AAAA,QACvB;AAAA,uDAAC;AAAA,YACC,IAAI,GAAG;AAAA,YACP,eAAa,uEAAgC;AAAA,YAC7C,SAAS;AAAA,YACT;AAAA,YACA;AAAA,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B,CAAC,YACnB;AAAA,UAAC;AAAA;AAAA,YACC,eAAa,uEAAgC;AAAA,YAC7C;AAAA,YACA;AAAA,YACA,eAAa;AAAA,YACb,IAAI,GAAG,WAAW;AAAA,YAEjB;AAAA;AAAA,QACH;AAAA,QAED,qBAAqB,YACpB;AAAA,UAAC;AAAA;AAAA,YACC,eAAa,uEAAgC;AAAA,YAC7C;AAAA,YACA;AAAA,YACA;AAAA,YACA,MAAK;AAAA,YAEL;AAAA,0DAAC,mCAAgB,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,UAAU,KAAK,GAAG;AAAA,cAAE;AAAA,cAEjE;AAAA;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,sBAAsB,YAAY;AAClC,sBAAsB,cAAc;AACpC,MAAM,sCAAkC,8BAAS,qBAAqB;AACtE,gCAAgC,YAAY;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var DSFormLayoutBlockItemDefinitions_exports = {};
26
+ __export(DSFormLayoutBlockItemDefinitions_exports, {
27
+ DSFormLayoutBlockItemName: () => DSFormLayoutBlockItemName
28
+ });
29
+ module.exports = __toCommonJS(DSFormLayoutBlockItemDefinitions_exports);
30
+ var React = __toESM(require("react"));
31
+ const DSFormLayoutBlockItemName = "DSFormLayoutBlockItem";
32
+ //# sourceMappingURL=DSFormLayoutBlockItemDefinitions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/form-layout-block-item/DSFormLayoutBlockItemDefinitions.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export const DSFormLayoutBlockItemName = 'DSFormLayoutBlockItem';", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,4BAA4B;",
6
+ "names": []
7
+ }
@@ -31,8 +31,9 @@ var React = __toESM(require("react"));
31
31
  var import_react = __toESM(require("react"));
32
32
  var import_ds_utilities = require("@elliemae/ds-utilities");
33
33
  var import_propTypes = require("../propTypes");
34
+ var import_DSFormLayoutBlockItemDefinitions = require("../DSFormLayoutBlockItemDefinitions");
34
35
  const useFormLayoutBlockItem = (props) => {
35
- (0, import_ds_utilities.useValidateTypescriptPropTypes)(props, import_propTypes.propTypes);
36
+ (0, import_ds_utilities.useValidateTypescriptPropTypes)(props, import_propTypes.propTypes, import_DSFormLayoutBlockItemDefinitions.DSFormLayoutBlockItemName);
36
37
  const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_propTypes.defaultProps);
37
38
  const globalAttributes = (0, import_ds_utilities.useGetGlobalAttributes)(propsWithDefault);
38
39
  const xstyledProps = (0, import_ds_utilities.useGetXstyledProps)(propsWithDefault);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form-layout-block-item/config/useFormLayoutBlockItem.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\n\nimport { propTypes, defaultProps, type DSFormLayoutBlockItemT } from '../propTypes';\n\ninterface UseFormLayoutBlockItemT {\n propsWithDefault: DSFormLayoutBlockItemT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutBlockItem = (props: DSFormLayoutBlockItemT.Props): UseFormLayoutBlockItemT => {\n useValidateTypescriptPropTypes(props, propTypes);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutBlockItemT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAElB,0BAKO;AAEP,uBAAqE;AAQ9D,MAAM,yBAAyB,CAAC,UAAiE;AACtG,0DAA+B,OAAO,0BAAS;AAC/C,QAAM,uBAAmB,kDAAmE,OAAO,6BAAY;AAC/G,QAAM,uBAAmB,4CAAuB,gBAAgB;AAEhE,QAAM,mBAAe,wCAAmB,gBAAgB;AACxD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
4
+ "sourcesContent": ["import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\nimport { propTypes, defaultProps, type DSFormLayoutBlockItemT } from '../propTypes';\nimport { DSFormLayoutBlockItemName } from '../DSFormLayoutBlockItemDefinitions';\n\ninterface UseFormLayoutBlockItemT {\n propsWithDefault: DSFormLayoutBlockItemT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutBlockItem = (props: DSFormLayoutBlockItemT.Props): UseFormLayoutBlockItemT => {\n useValidateTypescriptPropTypes(props, propTypes, DSFormLayoutBlockItemName);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutBlockItemT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAElB,0BAKO;AACP,uBAAqE;AACrE,8CAA0C;AAQnC,MAAM,yBAAyB,CAAC,UAAiE;AACtG,0DAA+B,OAAO,4BAAW,iEAAyB;AAC1E,QAAM,uBAAmB,kDAAmE,OAAO,6BAAY;AAC/G,QAAM,uBAAmB,4CAAuB,gBAAgB;AAEhE,QAAM,mBAAe,wCAAmB,gBAAgB;AACxD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -40,13 +40,7 @@ const DSFormLayoutCheckboxGroup = (props) => {
40
40
  xstyledProps,
41
41
  propsWithDefault
42
42
  } = (0, import_useFormLayoutCheckboxGroup.useFormLayoutCheckboxGroup)(props);
43
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledContainer, {
44
- role: "group",
45
- direction: propsWithDefault.direction,
46
- ...othersGlobalAttributes,
47
- ...xstyledProps,
48
- children: propsWithDefault.children
49
- });
43
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.StyledContainer, { role: "group", direction: propsWithDefault.direction, ...othersGlobalAttributes, ...xstyledProps, children: propsWithDefault.children });
50
44
  };
51
45
  DSFormLayoutCheckboxGroup.propTypes = import_propTypes.propTypes;
52
46
  DSFormLayoutCheckboxGroup.displayName = "DSFormLayoutCheckboxGroup";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { StyledContainer } from './styles';\nimport type { DSFormLayoutCheckboxGroupT } from './propTypes';\nimport { propTypes } from './propTypes';\nimport { useFormLayoutCheckboxGroup } from './config/useFormLayoutCheckboxGroup';\n\nconst DSFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): JSX.Element => {\n const {\n globalAttributes: { ...othersGlobalAttributes },\n xstyledProps,\n propsWithDefault,\n } = useFormLayoutCheckboxGroup(props);\n return (\n <StyledContainer role=\"group\" direction={propsWithDefault.direction} {...othersGlobalAttributes} {...xstyledProps}>\n {propsWithDefault.children}\n </StyledContainer>\n );\n};\n\nDSFormLayoutCheckboxGroup.propTypes = propTypes;\nDSFormLayoutCheckboxGroup.displayName = 'DSFormLayoutCheckboxGroup';\nconst DSFormLayoutCheckboxGroupWithSchema = describe(DSFormLayoutCheckboxGroup);\nDSFormLayoutCheckboxGroupWithSchema.propTypes = propTypes;\n\nexport { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADcnB;AAbJ,0BAAyB;AACzB,oBAAgC;AAEhC,uBAA0B;AAC1B,wCAA2C;AAE3C,MAAM,4BAA4B,CAAC,UAAyD;AAC1F,QAAM;AAAA,IACJ,kBAAkB,KAAK,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,QAAI,8DAA2B,KAAK;AACpC,SACE,4CAAC;AAAA,IAAgB,MAAK;AAAA,IAAQ,WAAW,iBAAiB;AAAA,IAAY,GAAG;AAAA,IAAyB,GAAG;AAAA,IAClG,2BAAiB;AAAA,GACpB;AAEJ;AAEA,0BAA0B,YAAY;AACtC,0BAA0B,cAAc;AACxC,MAAM,0CAAsC,8BAAS,yBAAyB;AAC9E,oCAAoC,YAAY;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADcnB;AAbJ,0BAAyB;AACzB,oBAAgC;AAEhC,uBAA0B;AAC1B,wCAA2C;AAE3C,MAAM,4BAA4B,CAAC,UAAyD;AAC1F,QAAM;AAAA,IACJ,kBAAkB,KAAK,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,QAAI,8DAA2B,KAAK;AACpC,SACE,4CAAC,iCAAgB,MAAK,SAAQ,WAAW,iBAAiB,WAAY,GAAG,wBAAyB,GAAG,cAClG,2BAAiB,UACpB;AAEJ;AAEA,0BAA0B,YAAY;AACtC,0BAA0B,cAAc;AACxC,MAAM,0CAAsC,8BAAS,yBAAyB;AAC9E,oCAAoC,YAAY;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
22
+ mod
23
+ ));
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var DSFormLayoutCheckboxGroupDefinitions_exports = {};
26
+ __export(DSFormLayoutCheckboxGroupDefinitions_exports, {
27
+ DSFormLayoutCheckboxGroupName: () => DSFormLayoutCheckboxGroupName
28
+ });
29
+ module.exports = __toCommonJS(DSFormLayoutCheckboxGroupDefinitions_exports);
30
+ var React = __toESM(require("react"));
31
+ const DSFormLayoutCheckboxGroupName = "DSFormLayoutCheckboxGroup";
32
+ //# sourceMappingURL=DSFormLayoutCheckboxGroupDefinitions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../src/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
+ "sourcesContent": ["export const DSFormLayoutCheckboxGroupName = 'DSFormLayoutCheckboxGroup';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,gCAAgC;",
6
+ "names": []
7
+ }
@@ -31,8 +31,9 @@ var React = __toESM(require("react"));
31
31
  var import_react = __toESM(require("react"));
32
32
  var import_ds_utilities = require("@elliemae/ds-utilities");
33
33
  var import_propTypes = require("../propTypes");
34
+ var import_DSFormLayoutCheckboxGroupDefinitions = require("../DSFormLayoutCheckboxGroupDefinitions");
34
35
  const useFormLayoutCheckboxGroup = (props) => {
35
- (0, import_ds_utilities.useValidateTypescriptPropTypes)(props, import_propTypes.propTypes);
36
+ (0, import_ds_utilities.useValidateTypescriptPropTypes)(props, import_propTypes.propTypes, import_DSFormLayoutCheckboxGroupDefinitions.DSFormLayoutCheckboxGroupName);
36
37
  const propsWithDefault = (0, import_ds_utilities.useMemoMergePropsWithDefault)(props, import_propTypes.defaultProps);
37
38
  const globalAttributes = (0, import_ds_utilities.useGetGlobalAttributes)(propsWithDefault);
38
39
  const xstyledProps = (0, import_ds_utilities.useGetXstyledProps)(propsWithDefault);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/form-layout-checkbox-group/config/useFormLayoutCheckboxGroup.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\n\nimport { propTypes, defaultProps, type DSFormLayoutCheckboxGroupT } from '../propTypes';\n\ninterface UseFormLayoutCheckboxGroupT {\n propsWithDefault: DSFormLayoutCheckboxGroupT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): UseFormLayoutCheckboxGroupT => {\n useValidateTypescriptPropTypes(props, propTypes);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutCheckboxGroupT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAElB,0BAKO;AAEP,uBAAyE;AAQlE,MAAM,6BAA6B,CAAC,UAAyE;AAClH,0DAA+B,OAAO,0BAAS;AAC/C,QAAM,uBAAmB,kDAAuE,OAAO,6BAAY;AACnH,QAAM,uBAAmB,4CAAuB,gBAAgB;AAEhE,QAAM,mBAAe,wCAAmB,gBAAgB;AACxD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
4
+ "sourcesContent": ["import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\nimport { propTypes, defaultProps, type DSFormLayoutCheckboxGroupT } from '../propTypes';\nimport { DSFormLayoutCheckboxGroupName } from '../DSFormLayoutCheckboxGroupDefinitions';\n\ninterface UseFormLayoutCheckboxGroupT {\n propsWithDefault: DSFormLayoutCheckboxGroupT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): UseFormLayoutCheckboxGroupT => {\n useValidateTypescriptPropTypes(props, propTypes, DSFormLayoutCheckboxGroupName);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutCheckboxGroupT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkB;AAElB,0BAKO;AACP,uBAAyE;AACzE,kDAA8C;AAQvC,MAAM,6BAA6B,CAAC,UAAyE;AAClH,0DAA+B,OAAO,4BAAW,yEAA6B;AAC9E,QAAM,uBAAmB,kDAAuE,OAAO,6BAAY;AACnH,QAAM,uBAAmB,4CAAuB,gBAAgB;AAEhE,QAAM,mBAAe,wCAAmB,gBAAgB;AACxD,SAAO,aAAAA,QAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -31,75 +31,77 @@ const DSFormLayoutBlockItem = (props) => {
31
31
  const { className, label: globalLabel, ...othersGlobalAttributes } = globalAttributes;
32
32
  const instanceUID = useMemo(() => uid(6), []);
33
33
  const cols = useMemo(() => maxCharCounter !== void 0 ? ["1fr", "auto"] : ["1fr"], [maxCharCounter]);
34
- return /* @__PURE__ */ jsxs(StyledContainer, {
35
- "data-testid": DSFormLayoutBlockItemDataTestId.CONTAINER,
36
- leftLabel,
37
- fitContent,
38
- hideLabel,
39
- withHighlight,
40
- as: isGroup ? "fieldset" : "div",
41
- isGroup,
42
- "aria-describedby": !isGroup ? `${inputID || instanceUID}_feedback_message` : void 0,
43
- className,
44
- ...xstyledProps,
45
- children: [
46
- /* @__PURE__ */ jsxs(Grid, {
47
- cols,
48
- gutter: "xxs",
49
- children: [
50
- /* @__PURE__ */ jsxs(StyledLabel, {
51
- id: `${inputID}_block_label`,
52
- "data-testid": DSFormLayoutBlockItemDataTestId.LABEL,
53
- htmlFor: inputID,
34
+ return /* @__PURE__ */ jsxs(
35
+ StyledContainer,
36
+ {
37
+ "data-testid": DSFormLayoutBlockItemDataTestId.CONTAINER,
38
+ leftLabel,
39
+ fitContent,
40
+ hideLabel,
41
+ withHighlight,
42
+ as: isGroup ? "fieldset" : "div",
43
+ isGroup,
44
+ "aria-describedby": !isGroup ? `${inputID || instanceUID}_feedback_message` : void 0,
45
+ className,
46
+ ...xstyledProps,
47
+ children: [
48
+ /* @__PURE__ */ jsxs(Grid, { cols, gutter: "xxs", children: [
49
+ /* @__PURE__ */ jsxs(
50
+ StyledLabel,
51
+ {
52
+ id: `${inputID}_block_label`,
53
+ "data-testid": DSFormLayoutBlockItemDataTestId.LABEL,
54
+ htmlFor: inputID,
55
+ leftLabel,
56
+ hideLabel,
57
+ "aria-hidden": isGroup,
58
+ ...othersGlobalAttributes,
59
+ children: [
60
+ label,
61
+ (required || optional) && /* @__PURE__ */ jsx(StyledMark, { required })
62
+ ]
63
+ }
64
+ ),
65
+ maxCharCounter !== void 0 && currentChar !== void 0 ? /* @__PURE__ */ jsx(
66
+ StyledCharCount,
67
+ {
68
+ "data-testid": DSFormLayoutBlockItemDataTestId.COUNTER,
69
+ hasError: currentChar > maxCharCounter,
70
+ children: `${currentChar}/${maxCharCounter}`
71
+ }
72
+ ) : null
73
+ ] }),
74
+ isGroup && /* @__PURE__ */ jsx(ScreenReaderOnly, { as: "legend", children: `${label}. ${feedbackMessage || ""}` }),
75
+ children,
76
+ feedbackMessage && !hasError && /* @__PURE__ */ jsx(
77
+ StyledMessage,
78
+ {
79
+ "data-testid": DSFormLayoutBlockItemDataTestId.MESSAGE,
54
80
  leftLabel,
55
81
  hideLabel,
56
82
  "aria-hidden": isGroup,
57
- ...othersGlobalAttributes,
83
+ id: `${inputID || instanceUID}_feedback_message`,
84
+ children: feedbackMessage
85
+ }
86
+ ),
87
+ validationMessage && hasError && /* @__PURE__ */ jsxs(
88
+ StyledMessage,
89
+ {
90
+ "data-testid": DSFormLayoutBlockItemDataTestId.ERROR_MESSAGE,
91
+ hasError,
92
+ leftLabel,
93
+ hideLabel,
94
+ role: "alert",
58
95
  children: [
59
- label,
60
- (required || optional) && /* @__PURE__ */ jsx(StyledMark, {
61
- required
62
- })
96
+ /* @__PURE__ */ jsx(AlertsSmallFill, { width: 8, height: 8, color: ["danger", "900"] }),
97
+ "\xA0",
98
+ validationMessage
63
99
  ]
64
- }),
65
- maxCharCounter !== void 0 && currentChar !== void 0 ? /* @__PURE__ */ jsx(StyledCharCount, {
66
- "data-testid": DSFormLayoutBlockItemDataTestId.COUNTER,
67
- hasError: currentChar > maxCharCounter,
68
- children: `${currentChar}/${maxCharCounter}`
69
- }) : null
70
- ]
71
- }),
72
- isGroup && /* @__PURE__ */ jsx(ScreenReaderOnly, {
73
- as: "legend",
74
- children: `${label}. ${feedbackMessage || ""}`
75
- }),
76
- children,
77
- feedbackMessage && !hasError && /* @__PURE__ */ jsx(StyledMessage, {
78
- "data-testid": DSFormLayoutBlockItemDataTestId.MESSAGE,
79
- leftLabel,
80
- hideLabel,
81
- "aria-hidden": isGroup,
82
- id: `${inputID || instanceUID}_feedback_message`,
83
- children: feedbackMessage
84
- }),
85
- validationMessage && hasError && /* @__PURE__ */ jsxs(StyledMessage, {
86
- "data-testid": DSFormLayoutBlockItemDataTestId.ERROR_MESSAGE,
87
- hasError,
88
- leftLabel,
89
- hideLabel,
90
- role: "alert",
91
- children: [
92
- /* @__PURE__ */ jsx(AlertsSmallFill, {
93
- width: 8,
94
- height: 8,
95
- color: ["danger", "900"]
96
- }),
97
- "\xA0",
98
- validationMessage
99
- ]
100
- })
101
- ]
102
- });
100
+ }
101
+ )
102
+ ]
103
+ }
104
+ );
103
105
  };
104
106
  DSFormLayoutBlockItem.propTypes = propTypes;
105
107
  DSFormLayoutBlockItem.displayName = "DSFormLayoutBlockItem";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/form-layout-block-item/DSFormLayoutBlockItem.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable complexity */\nimport React, { useMemo } from 'react';\nimport { Grid } from '@elliemae/ds-grid';\nimport { describe } from '@elliemae/ds-utilities';\nimport { uid } from 'uid';\nimport { AlertsSmallFill } from '@elliemae/ds-icons';\nimport { DSFormLayoutBlockItemDataTestId } from '../exported-related/DSFormLayoutBlockItemDataTestId';\nimport type { DSFormLayoutBlockItemT } from './propTypes';\nimport { propTypes } from './propTypes';\nimport { StyledMessage, StyledLabel, StyledContainer, StyledMark, ScreenReaderOnly, StyledCharCount } from './styles';\nimport { useFormLayoutBlockItem } from './config/useFormLayoutBlockItem';\n\nconst DSFormLayoutBlockItem = (props: DSFormLayoutBlockItemT.Props) => {\n const { globalAttributes, xstyledProps, propsWithDefault } = useFormLayoutBlockItem(props);\n const {\n label,\n feedbackMessage,\n maxCharCounter,\n currentChar,\n validationMessage,\n inputID,\n children,\n hasError,\n leftLabel,\n required,\n optional,\n hideLabel,\n fitContent,\n withHighlight,\n isGroup,\n } = propsWithDefault;\n\n const { className, label: globalLabel, ...othersGlobalAttributes } = globalAttributes;\n const instanceUID = useMemo(() => uid(6), []);\n\n const cols = useMemo(() => (maxCharCounter !== undefined ? ['1fr', 'auto'] : ['1fr']), [maxCharCounter]);\n\n return (\n <StyledContainer\n data-testid={DSFormLayoutBlockItemDataTestId.CONTAINER}\n leftLabel={leftLabel}\n fitContent={fitContent}\n hideLabel={hideLabel}\n withHighlight={withHighlight}\n as={isGroup ? 'fieldset' : 'div'}\n isGroup={isGroup}\n aria-describedby={!isGroup ? `${inputID || instanceUID}_feedback_message` : undefined}\n className={className}\n {...xstyledProps}\n >\n <Grid cols={cols} gutter=\"xxs\">\n <StyledLabel\n id={`${inputID}_block_label`}\n data-testid={DSFormLayoutBlockItemDataTestId.LABEL}\n htmlFor={inputID}\n leftLabel={leftLabel}\n hideLabel={hideLabel}\n aria-hidden={isGroup}\n {...othersGlobalAttributes}\n >\n {label}\n {(required || optional) && <StyledMark required={required} />}\n </StyledLabel>\n {maxCharCounter !== undefined && currentChar !== undefined ? (\n <StyledCharCount\n data-testid={DSFormLayoutBlockItemDataTestId.COUNTER}\n hasError={currentChar > maxCharCounter}\n >{`${currentChar}/${maxCharCounter}`}</StyledCharCount>\n ) : null}\n </Grid>\n {isGroup && <ScreenReaderOnly as=\"legend\">{`${label}. ${feedbackMessage || ''}`}</ScreenReaderOnly>}\n {children}\n {feedbackMessage && !hasError && (\n <StyledMessage\n data-testid={DSFormLayoutBlockItemDataTestId.MESSAGE}\n leftLabel={leftLabel}\n hideLabel={hideLabel}\n aria-hidden={isGroup}\n id={`${inputID || instanceUID}_feedback_message`}\n >\n {feedbackMessage}\n </StyledMessage>\n )}\n {validationMessage && hasError && (\n <StyledMessage\n data-testid={DSFormLayoutBlockItemDataTestId.ERROR_MESSAGE}\n hasError={hasError}\n leftLabel={leftLabel}\n hideLabel={hideLabel}\n role=\"alert\"\n >\n <AlertsSmallFill width={8} height={8} color={['danger', '900']} />\n &nbsp;\n {validationMessage}\n </StyledMessage>\n )}\n </StyledContainer>\n );\n};\n\nDSFormLayoutBlockItem.propTypes = propTypes;\nDSFormLayoutBlockItem.displayName = 'DSFormLayoutBlockItem';\nconst DSFormLayoutBlockItemWithSchema = describe(DSFormLayoutBlockItem);\nDSFormLayoutBlockItemWithSchema.propTypes = propTypes;\n\nexport { DSFormLayoutBlockItem, DSFormLayoutBlockItemWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACmDf,SAU6B,KAV7B;AAlDR,SAAgB,eAAe;AAC/B,SAAS,YAAY;AACrB,SAAS,gBAAgB;AACzB,SAAS,WAAW;AACpB,SAAS,uBAAuB;AAChC,SA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UAAC;AAAA;AAAA,YACC,eAAa,gCAAgC;AAAA,YAC7C;AAAA,YACA;AAAA,YACA;AAAA,YACA,MAAK;AAAA,YAEL;AAAA,kCAAC,mBAAgB,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC,UAAU,KAAK,GAAG;AAAA,cAAE;AAAA,cAEjE;AAAA;AAAA;AAAA,QACH;AAAA;AAAA;AAAA,EAEJ;AAEJ;AAEA,sBAAsB,YAAY;AAClC,sBAAsB,cAAc;AACpC,MAAM,kCAAkC,SAAS,qBAAqB;AACtE,gCAAgC,YAAY;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ const DSFormLayoutBlockItemName = "DSFormLayoutBlockItem";
3
+ export {
4
+ DSFormLayoutBlockItemName
5
+ };
6
+ //# sourceMappingURL=DSFormLayoutBlockItemDefinitions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/form-layout-block-item/DSFormLayoutBlockItemDefinitions.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSFormLayoutBlockItemName = 'DSFormLayoutBlockItem';"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,4BAA4B;",
6
+ "names": []
7
+ }
@@ -7,8 +7,9 @@ import {
7
7
  useValidateTypescriptPropTypes
8
8
  } from "@elliemae/ds-utilities";
9
9
  import { propTypes, defaultProps } from "../propTypes";
10
+ import { DSFormLayoutBlockItemName } from "../DSFormLayoutBlockItemDefinitions";
10
11
  const useFormLayoutBlockItem = (props) => {
11
- useValidateTypescriptPropTypes(props, propTypes);
12
+ useValidateTypescriptPropTypes(props, propTypes, DSFormLayoutBlockItemName);
12
13
  const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
13
14
  const globalAttributes = useGetGlobalAttributes(propsWithDefault);
14
15
  const xstyledProps = useGetXstyledProps(propsWithDefault);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/form-layout-block-item/config/useFormLayoutBlockItem.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\n\nimport { propTypes, defaultProps, type DSFormLayoutBlockItemT } from '../propTypes';\n\ninterface UseFormLayoutBlockItemT {\n propsWithDefault: DSFormLayoutBlockItemT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutBlockItem = (props: DSFormLayoutBlockItemT.Props): UseFormLayoutBlockItemT => {\n useValidateTypescriptPropTypes(props, propTypes);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutBlockItemT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAElB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,WAAW,oBAAiD;AAQ9D,MAAM,yBAAyB,CAAC,UAAiE;AACtG,iCAA+B,OAAO,SAAS;AAC/C,QAAM,mBAAmB,6BAAmE,OAAO,YAAY;AAC/G,QAAM,mBAAmB,uBAAuB,gBAAgB;AAEhE,QAAM,eAAe,mBAAmB,gBAAgB;AACxD,SAAOA,OAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\nimport { propTypes, defaultProps, type DSFormLayoutBlockItemT } from '../propTypes';\nimport { DSFormLayoutBlockItemName } from '../DSFormLayoutBlockItemDefinitions';\n\ninterface UseFormLayoutBlockItemT {\n propsWithDefault: DSFormLayoutBlockItemT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutBlockItem = (props: DSFormLayoutBlockItemT.Props): UseFormLayoutBlockItemT => {\n useValidateTypescriptPropTypes(props, propTypes, DSFormLayoutBlockItemName);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutBlockItemT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAElB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,oBAAiD;AACrE,SAAS,iCAAiC;AAQnC,MAAM,yBAAyB,CAAC,UAAiE;AACtG,iCAA+B,OAAO,WAAW,yBAAyB;AAC1E,QAAM,mBAAmB,6BAAmE,OAAO,YAAY;AAC/G,QAAM,mBAAmB,uBAAuB,gBAAgB;AAEhE,QAAM,eAAe,mBAAmB,gBAAgB;AACxD,SAAOA,OAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
6
6
  "names": ["React"]
7
7
  }
@@ -10,13 +10,7 @@ const DSFormLayoutCheckboxGroup = (props) => {
10
10
  xstyledProps,
11
11
  propsWithDefault
12
12
  } = useFormLayoutCheckboxGroup(props);
13
- return /* @__PURE__ */ jsx(StyledContainer, {
14
- role: "group",
15
- direction: propsWithDefault.direction,
16
- ...othersGlobalAttributes,
17
- ...xstyledProps,
18
- children: propsWithDefault.children
19
- });
13
+ return /* @__PURE__ */ jsx(StyledContainer, { role: "group", direction: propsWithDefault.direction, ...othersGlobalAttributes, ...xstyledProps, children: propsWithDefault.children });
20
14
  };
21
15
  DSFormLayoutCheckboxGroup.propTypes = propTypes;
22
16
  DSFormLayoutCheckboxGroup.displayName = "DSFormLayoutCheckboxGroup";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-utilities';\nimport { StyledContainer } from './styles';\nimport type { DSFormLayoutCheckboxGroupT } from './propTypes';\nimport { propTypes } from './propTypes';\nimport { useFormLayoutCheckboxGroup } from './config/useFormLayoutCheckboxGroup';\n\nconst DSFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): JSX.Element => {\n const {\n globalAttributes: { ...othersGlobalAttributes },\n xstyledProps,\n propsWithDefault,\n } = useFormLayoutCheckboxGroup(props);\n return (\n <StyledContainer role=\"group\" direction={propsWithDefault.direction} {...othersGlobalAttributes} {...xstyledProps}>\n {propsWithDefault.children}\n </StyledContainer>\n );\n};\n\nDSFormLayoutCheckboxGroup.propTypes = propTypes;\nDSFormLayoutCheckboxGroup.displayName = 'DSFormLayoutCheckboxGroup';\nconst DSFormLayoutCheckboxGroupWithSchema = describe(DSFormLayoutCheckboxGroup);\nDSFormLayoutCheckboxGroupWithSchema.propTypes = propTypes;\n\nexport { DSFormLayoutCheckboxGroup, DSFormLayoutCheckboxGroupWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACcnB;AAbJ,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAEhC,SAAS,iBAAiB;AAC1B,SAAS,kCAAkC;AAE3C,MAAM,4BAA4B,CAAC,UAAyD;AAC1F,QAAM;AAAA,IACJ,kBAAkB,KAAK,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,IAAI,2BAA2B,KAAK;AACpC,SACE,oBAAC;AAAA,IAAgB,MAAK;AAAA,IAAQ,WAAW,iBAAiB;AAAA,IAAY,GAAG;AAAA,IAAyB,GAAG;AAAA,IAClG,2BAAiB;AAAA,GACpB;AAEJ;AAEA,0BAA0B,YAAY;AACtC,0BAA0B,cAAc;AACxC,MAAM,sCAAsC,SAAS,yBAAyB;AAC9E,oCAAoC,YAAY;",
5
+ "mappings": "AAAA,YAAY,WAAW;ACcnB;AAbJ,SAAS,gBAAgB;AACzB,SAAS,uBAAuB;AAEhC,SAAS,iBAAiB;AAC1B,SAAS,kCAAkC;AAE3C,MAAM,4BAA4B,CAAC,UAAyD;AAC1F,QAAM;AAAA,IACJ,kBAAkB,KAAK,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,IAAI,2BAA2B,KAAK;AACpC,SACE,oBAAC,mBAAgB,MAAK,SAAQ,WAAW,iBAAiB,WAAY,GAAG,wBAAyB,GAAG,cAClG,2BAAiB,UACpB;AAEJ;AAEA,0BAA0B,YAAY;AACtC,0BAA0B,cAAc;AACxC,MAAM,sCAAsC,SAAS,yBAAyB;AAC9E,oCAAoC,YAAY;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ const DSFormLayoutCheckboxGroupName = "DSFormLayoutCheckboxGroup";
3
+ export {
4
+ DSFormLayoutCheckboxGroupName
5
+ };
6
+ //# sourceMappingURL=DSFormLayoutCheckboxGroupDefinitions.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSFormLayoutCheckboxGroupName = 'DSFormLayoutCheckboxGroup';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAhB,MAAM,gCAAgC;",
6
+ "names": []
7
+ }
@@ -7,8 +7,9 @@ import {
7
7
  useValidateTypescriptPropTypes
8
8
  } from "@elliemae/ds-utilities";
9
9
  import { propTypes, defaultProps } from "../propTypes";
10
+ import { DSFormLayoutCheckboxGroupName } from "../DSFormLayoutCheckboxGroupDefinitions";
10
11
  const useFormLayoutCheckboxGroup = (props) => {
11
- useValidateTypescriptPropTypes(props, propTypes);
12
+ useValidateTypescriptPropTypes(props, propTypes, DSFormLayoutCheckboxGroupName);
12
13
  const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
13
14
  const globalAttributes = useGetGlobalAttributes(propsWithDefault);
14
15
  const xstyledProps = useGetXstyledProps(propsWithDefault);
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../../src/form-layout-checkbox-group/config/useFormLayoutCheckboxGroup.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\n\nimport { propTypes, defaultProps, type DSFormLayoutCheckboxGroupT } from '../propTypes';\n\ninterface UseFormLayoutCheckboxGroupT {\n propsWithDefault: DSFormLayoutCheckboxGroupT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): UseFormLayoutCheckboxGroupT => {\n useValidateTypescriptPropTypes(props, propTypes);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutCheckboxGroupT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAElB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,WAAW,oBAAqD;AAQlE,MAAM,6BAA6B,CAAC,UAAyE;AAClH,iCAA+B,OAAO,SAAS;AAC/C,QAAM,mBAAmB,6BAAuE,OAAO,YAAY;AACnH,QAAM,mBAAmB,uBAAuB,gBAAgB;AAEhE,QAAM,eAAe,mBAAmB,gBAAgB;AACxD,SAAOA,OAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport type { GlobalAttributesT, XstyledProps } from '@elliemae/ds-utilities';\nimport {\n useGetGlobalAttributes,\n useGetXstyledProps,\n useMemoMergePropsWithDefault,\n useValidateTypescriptPropTypes,\n} from '@elliemae/ds-utilities';\nimport { propTypes, defaultProps, type DSFormLayoutCheckboxGroupT } from '../propTypes';\nimport { DSFormLayoutCheckboxGroupName } from '../DSFormLayoutCheckboxGroupDefinitions';\n\ninterface UseFormLayoutCheckboxGroupT {\n propsWithDefault: DSFormLayoutCheckboxGroupT.InternalProps;\n globalAttributes: GlobalAttributesT;\n xstyledProps: XstyledProps;\n}\n\nexport const useFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): UseFormLayoutCheckboxGroupT => {\n useValidateTypescriptPropTypes(props, propTypes, DSFormLayoutCheckboxGroupName);\n const propsWithDefault = useMemoMergePropsWithDefault<DSFormLayoutCheckboxGroupT.InternalProps>(props, defaultProps);\n const globalAttributes = useGetGlobalAttributes(propsWithDefault);\n\n const xstyledProps = useGetXstyledProps(propsWithDefault);\n return React.useMemo(\n () => ({ globalAttributes, xstyledProps, propsWithDefault }),\n [globalAttributes, xstyledProps, propsWithDefault],\n );\n};\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACAvB,OAAOA,YAAW;AAElB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,WAAW,oBAAqD;AACzE,SAAS,qCAAqC;AAQvC,MAAM,6BAA6B,CAAC,UAAyE;AAClH,iCAA+B,OAAO,WAAW,6BAA6B;AAC9E,QAAM,mBAAmB,6BAAuE,OAAO,YAAY;AACnH,QAAM,mBAAmB,uBAAuB,gBAAgB;AAEhE,QAAM,eAAe,mBAAmB,gBAAgB;AACxD,SAAOA,OAAM;AAAA,IACX,OAAO,EAAE,kBAAkB,cAAc,iBAAiB;AAAA,IAC1D,CAAC,kBAAkB,cAAc,gBAAgB;AAAA,EACnD;AACF;",
6
6
  "names": ["React"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form-layout-blocks",
3
- "version": "3.12.0-rc.1",
3
+ "version": "3.12.0-rc.3",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Form Layout",
6
6
  "files": [
@@ -75,10 +75,10 @@
75
75
  "indent": 4
76
76
  },
77
77
  "dependencies": {
78
- "@elliemae/ds-grid": "3.12.0-rc.1",
79
- "@elliemae/ds-icons": "3.12.0-rc.1",
80
- "@elliemae/ds-system": "3.12.0-rc.1",
81
- "@elliemae/ds-utilities": "3.12.0-rc.1",
78
+ "@elliemae/ds-grid": "3.12.0-rc.3",
79
+ "@elliemae/ds-icons": "3.12.0-rc.3",
80
+ "@elliemae/ds-system": "3.12.0-rc.3",
81
+ "@elliemae/ds-utilities": "3.12.0-rc.3",
82
82
  "uid": "~2.0.0"
83
83
  },
84
84
  "devDependencies": {