@elliemae/ds-form-layout-blocks 3.51.0-rc.9 → 3.51.1
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/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +10 -1
- package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +2 -2
- package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js +11 -1
- package/dist/cjs/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js.map +2 -2
- package/dist/cjs/form-layout-checkbox-group/react-desc-prop-types.js +5 -1
- package/dist/cjs/form-layout-checkbox-group/react-desc-prop-types.js.map +2 -2
- package/dist/cjs/form-layout-checkbox-group/styles.js +5 -1
- package/dist/cjs/form-layout-checkbox-group/styles.js.map +2 -2
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/typescript-testing/typescript-checkbox-group-valid.js +2 -1
- package/dist/cjs/typescript-testing/typescript-checkbox-group-valid.js.map +2 -2
- package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js +10 -1
- package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.js.map +2 -2
- package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js +11 -1
- package/dist/esm/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.js.map +2 -2
- package/dist/esm/form-layout-checkbox-group/react-desc-prop-types.js +5 -1
- package/dist/esm/form-layout-checkbox-group/react-desc-prop-types.js.map +2 -2
- package/dist/esm/form-layout-checkbox-group/styles.js +8 -1
- package/dist/esm/form-layout-checkbox-group/styles.js.map +2 -2
- package/dist/esm/typescript-testing/typescript-checkbox-group-valid.js +2 -1
- package/dist/esm/typescript-testing/typescript-checkbox-group-valid.js.map +2 -2
- package/dist/types/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.d.ts +4 -0
- package/dist/types/form-layout-checkbox-group/react-desc-prop-types.d.ts +1 -0
- package/dist/types/tests/DsFormLayoutCheckboxGroup.test.d.ts +1 -0
- package/dist/types/tests/data-testid-non-changing.test.d.ts +1 -0
- package/package.json +11 -11
|
@@ -44,7 +44,16 @@ const DSFormLayoutCheckboxGroup = (props) => {
|
|
|
44
44
|
xstyledProps,
|
|
45
45
|
propsWithDefault
|
|
46
46
|
} = (0, import_useFormLayoutCheckboxGroup.useFormLayoutCheckboxGroup)(props);
|
|
47
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
47
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
48
|
+
import_styles.StyledContainer,
|
|
49
|
+
{
|
|
50
|
+
role: propsWithDefault.isInsideLayoutBlock ? void 0 : "group",
|
|
51
|
+
direction: propsWithDefault.direction,
|
|
52
|
+
...othersGlobalAttributes,
|
|
53
|
+
...xstyledProps,
|
|
54
|
+
children: propsWithDefault.children
|
|
55
|
+
}
|
|
56
|
+
);
|
|
48
57
|
};
|
|
49
58
|
DSFormLayoutCheckboxGroup.displayName = "DSFormLayoutCheckboxGroup";
|
|
50
59
|
const DSFormLayoutCheckboxGroupWithSchema = (0, import_ds_props_helpers.describe)(DSFormLayoutCheckboxGroup);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledContainer } from './styles.js';\nimport type { DSFormLayoutCheckboxGroupT } from './react-desc-prop-types.js';\nimport { propTypes } from './react-desc-prop-types.js';\nimport { useFormLayoutCheckboxGroup } from './config/useFormLayoutCheckboxGroup.js';\n\nconst DSFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): JSX.Element => {\n const {\n globalAttributes: { ...othersGlobalAttributes },\n xstyledProps,\n propsWithDefault,\n } = useFormLayoutCheckboxGroup(props);\n return (\n <StyledContainer
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADcnB;AAbJ,8BAAyB;AACzB,oBAAgC;AAEhC,mCAA0B;AAC1B,wCAA2C;AAE3C,MAAM,4BAA4B,CAAC,UAAyD;AAC1F,QAAM;AAAA,IACJ,kBAAkB,EAAE,GAAG,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,QAAI,8DAA2B,KAAK;AACpC,SACE,
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledContainer } from './styles.js';\nimport type { DSFormLayoutCheckboxGroupT } from './react-desc-prop-types.js';\nimport { propTypes } from './react-desc-prop-types.js';\nimport { useFormLayoutCheckboxGroup } from './config/useFormLayoutCheckboxGroup.js';\n\nconst DSFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): JSX.Element => {\n const {\n globalAttributes: { ...othersGlobalAttributes },\n xstyledProps,\n propsWithDefault,\n } = useFormLayoutCheckboxGroup(props);\n return (\n <StyledContainer\n role={propsWithDefault.isInsideLayoutBlock ? undefined : 'group'}\n direction={propsWithDefault.direction}\n {...othersGlobalAttributes}\n {...xstyledProps}\n >\n {propsWithDefault.children}\n </StyledContainer>\n );\n};\n\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,8BAAyB;AACzB,oBAAgC;AAEhC,mCAA0B;AAC1B,wCAA2C;AAE3C,MAAM,4BAA4B,CAAC,UAAyD;AAC1F,QAAM;AAAA,IACJ,kBAAkB,EAAE,GAAG,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,QAAI,8DAA2B,KAAK;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,iBAAiB,sBAAsB,SAAY;AAAA,MACzD,WAAW,iBAAiB;AAAA,MAC3B,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,2BAAiB;AAAA;AAAA,EACpB;AAEJ;AAEA,0BAA0B,cAAc;AACxC,MAAM,0CAAsC,kCAAS,yBAAyB;AAC9E,oCAAoC,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -28,9 +28,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var DSFormLayoutCheckboxGroupDefinitions_exports = {};
|
|
30
30
|
__export(DSFormLayoutCheckboxGroupDefinitions_exports, {
|
|
31
|
-
DSFormLayoutCheckboxGroupName: () => DSFormLayoutCheckboxGroupName
|
|
31
|
+
DSFormLayoutCheckboxGroupName: () => DSFormLayoutCheckboxGroupName,
|
|
32
|
+
FORM_LAYOUT_CHECKBOX_GROUP_DATA_TESTID: () => FORM_LAYOUT_CHECKBOX_GROUP_DATA_TESTID,
|
|
33
|
+
FORM_LAYOUT_CHECKBOX_GROUP_SLOTS: () => FORM_LAYOUT_CHECKBOX_GROUP_SLOTS
|
|
32
34
|
});
|
|
33
35
|
module.exports = __toCommonJS(DSFormLayoutCheckboxGroupDefinitions_exports);
|
|
34
36
|
var React = __toESM(require("react"));
|
|
37
|
+
var import_ds_system = require("@elliemae/ds-system");
|
|
35
38
|
const DSFormLayoutCheckboxGroupName = "DSFormlayoutcheckboxgroup";
|
|
39
|
+
const FORM_LAYOUT_CHECKBOX_GROUP_SLOTS = {
|
|
40
|
+
ROOT: "root"
|
|
41
|
+
};
|
|
42
|
+
const FORM_LAYOUT_CHECKBOX_GROUP_DATA_TESTID = (0, import_ds_system.slotObjectToDataTestIds)(
|
|
43
|
+
DSFormLayoutCheckboxGroupName,
|
|
44
|
+
FORM_LAYOUT_CHECKBOX_GROUP_SLOTS
|
|
45
|
+
);
|
|
36
46
|
//# sourceMappingURL=DSFormLayoutCheckboxGroupDefinitions.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/form-layout-checkbox-group/DSFormLayoutCheckboxGroupDefinitions.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSFormLayoutCheckboxGroupName = 'DSFormlayoutcheckboxgroup';\n\nexport const FORM_LAYOUT_CHECKBOX_GROUP_SLOTS = {\n ROOT: 'root',\n} as const;\n\nexport const FORM_LAYOUT_CHECKBOX_GROUP_DATA_TESTID = slotObjectToDataTestIds(\n DSFormLayoutCheckboxGroupName,\n FORM_LAYOUT_CHECKBOX_GROUP_SLOTS,\n);\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAAwC;AAEjC,MAAM,gCAAgC;AAEtC,MAAM,mCAAmC;AAAA,EAC9C,MAAM;AACR;AAEO,MAAM,6CAAyC;AAAA,EACpD;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -35,12 +35,16 @@ module.exports = __toCommonJS(react_desc_prop_types_exports);
|
|
|
35
35
|
var React = __toESM(require("react"));
|
|
36
36
|
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
|
37
37
|
const defaultProps = {
|
|
38
|
-
direction: "horizontal"
|
|
38
|
+
direction: "horizontal",
|
|
39
|
+
isInsideLayoutBlock: false
|
|
39
40
|
};
|
|
40
41
|
const propTypes = {
|
|
41
42
|
...import_ds_props_helpers.globalAttributesPropTypes,
|
|
42
43
|
...import_ds_props_helpers.xstyledPropTypes,
|
|
43
44
|
direction: import_ds_props_helpers.PropTypes.oneOf(["horizontal", "vertical"]).description("Set direction for the checkbox group."),
|
|
45
|
+
isInsideLayoutBlock: import_ds_props_helpers.PropTypes.bool.description(
|
|
46
|
+
"Indicates if the checkbox group is used as children of FormLayoutBlock, and removes role attribute so the one from the parent is used"
|
|
47
|
+
),
|
|
44
48
|
children: import_ds_props_helpers.PropTypes.node.isRequired.description("The content of the component.")
|
|
45
49
|
};
|
|
46
50
|
//# sourceMappingURL=react-desc-prop-types.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/form-layout-checkbox-group/react-desc-prop-types.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport type { GlobalAttributesT, XstyledProps, ValidationMap } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\nexport declare namespace DSFormLayoutCheckboxGroupT {\n export interface RequiredProps {\n children: React.ReactNode;\n }\n\n export interface DefaultProps {\n direction: DirectionsT;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends OptionalProps,\n RequiredProps,\n Partial<DefaultProps>,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n export interface InternalProps\n extends OptionalProps,\n RequiredProps,\n DefaultProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSFormLayoutCheckboxGroupT.DefaultProps = {\n direction: 'horizontal',\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n direction: PropTypes.oneOf(['horizontal', 'vertical']).description('Set direction for the checkbox group.'),\n children: PropTypes.node.isRequired.description('The content of the component.'),\n} as ValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAuE;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport type { GlobalAttributesT, XstyledProps, ValidationMap } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\nexport declare namespace DSFormLayoutCheckboxGroupT {\n export interface RequiredProps {\n children: React.ReactNode;\n }\n\n export interface DefaultProps {\n direction: DirectionsT;\n isInsideLayoutBlock: boolean;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends OptionalProps,\n RequiredProps,\n Partial<DefaultProps>,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n export interface InternalProps\n extends OptionalProps,\n RequiredProps,\n DefaultProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSFormLayoutCheckboxGroupT.DefaultProps = {\n direction: 'horizontal',\n isInsideLayoutBlock: false,\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n direction: PropTypes.oneOf(['horizontal', 'vertical']).description('Set direction for the checkbox group.'),\n isInsideLayoutBlock: PropTypes.bool.description(\n 'Indicates if the checkbox group is used as children of FormLayoutBlock, and removes role attribute so the one from the parent is used',\n ),\n children: PropTypes.node.isRequired.description('The content of the component.'),\n} as ValidationMap<unknown>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAAuE;AA8BhE,MAAM,eAAwD;AAAA,EACnE,WAAW;AAAA,EACX,qBAAqB;AACvB;AAEO,MAAM,YAAY;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,WAAW,kCAAU,MAAM,CAAC,cAAc,UAAU,CAAC,EAAE,YAAY,uCAAuC;AAAA,EAC1G,qBAAqB,kCAAU,KAAK;AAAA,IAClC;AAAA,EACF;AAAA,EACA,UAAU,kCAAU,KAAK,WAAW,YAAY,+BAA+B;AACjF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -33,7 +33,11 @@ __export(styles_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(styles_exports);
|
|
34
34
|
var React = __toESM(require("react"));
|
|
35
35
|
var import_ds_system = require("@elliemae/ds-system");
|
|
36
|
-
|
|
36
|
+
var import_DSFormLayoutCheckboxGroupDefinitions = require("./DSFormLayoutCheckboxGroupDefinitions.js");
|
|
37
|
+
const StyledContainer = (0, import_ds_system.styled)("div", {
|
|
38
|
+
name: import_DSFormLayoutCheckboxGroupDefinitions.DSFormLayoutCheckboxGroupName,
|
|
39
|
+
slot: import_DSFormLayoutCheckboxGroupDefinitions.FORM_LAYOUT_CHECKBOX_GROUP_SLOTS.ROOT
|
|
40
|
+
})`
|
|
37
41
|
display: inline-flex;
|
|
38
42
|
flex-wrap: wrap;
|
|
39
43
|
flex-direction: ${({ direction }) => direction === "horizontal" ? "row" : "column"};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/form-layout-checkbox-group/styles.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { styled, xStyledCommonProps } from '@elliemae/ds-system';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\ninterface DSControlledCheckboxGroupStyledContainerT {\n direction: DirectionsT;\n}\n\nexport const StyledContainer = styled('div')<DSControlledCheckboxGroupStyledContainerT>`\n display: inline-flex;\n flex-wrap: wrap;\n flex-direction: ${({ direction }) => (direction === 'horizontal' ? 'row' : 'column')};\n margin-left: ${({ theme }) => theme.space.xs};\n margin-right: ${({ theme }) => theme.space.xs};\n margin-top: ${({ theme }) => theme.space.xxs};\n & div:not([role='checkbox']) {\n padding: 0;\n margin-bottom: ${({ theme }) => theme.space.xxs};\n }\n & div:not(:last-child) {\n margin-right: ${({ theme, direction }) => (direction === 'horizontal' ? theme.space.s : '0')};\n }\n ${xStyledCommonProps}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA2C;
|
|
4
|
+
"sourcesContent": ["import { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport {\n DSFormLayoutCheckboxGroupName,\n FORM_LAYOUT_CHECKBOX_GROUP_SLOTS,\n} from './DSFormLayoutCheckboxGroupDefinitions.js';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\ninterface DSControlledCheckboxGroupStyledContainerT {\n direction: DirectionsT;\n}\n\nexport const StyledContainer = styled('div', {\n name: DSFormLayoutCheckboxGroupName,\n slot: FORM_LAYOUT_CHECKBOX_GROUP_SLOTS.ROOT,\n})<DSControlledCheckboxGroupStyledContainerT>`\n display: inline-flex;\n flex-wrap: wrap;\n flex-direction: ${({ direction }) => (direction === 'horizontal' ? 'row' : 'column')};\n margin-left: ${({ theme }) => theme.space.xs};\n margin-right: ${({ theme }) => theme.space.xs};\n margin-top: ${({ theme }) => theme.space.xxs};\n & div:not([role='checkbox']) {\n padding: 0;\n margin-bottom: ${({ theme }) => theme.space.xxs};\n }\n & div:not(:last-child) {\n margin-right: ${({ theme, direction }) => (direction === 'horizontal' ? theme.space.s : '0')};\n }\n ${xStyledCommonProps}\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA2C;AAC3C,kDAGO;AAQA,MAAM,sBAAkB,yBAAO,OAAO;AAAA,EAC3C,MAAM;AAAA,EACN,MAAM,6EAAiC;AACzC,CAAC;AAAA;AAAA;AAAA,oBAGmB,CAAC,EAAE,UAAU,MAAO,cAAc,eAAe,QAAQ,QAAS;AAAA,iBACrE,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,EAAE;AAAA,kBAC5B,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,EAAE;AAAA,gBAC/B,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA;AAAA,qBAGzB,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA;AAAA,oBAG/B,CAAC,EAAE,OAAO,UAAU,MAAO,cAAc,eAAe,MAAM,MAAM,IAAI,GAAI;AAAA;AAAA,IAE5F,mCAAkB;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/cjs/index.js
CHANGED
|
@@ -27,15 +27,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
mod
|
|
28
28
|
));
|
|
29
29
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
var
|
|
31
|
-
__export(
|
|
30
|
+
var index_exports = {};
|
|
31
|
+
__export(index_exports, {
|
|
32
32
|
DSFormLayoutCheckboxGroup: () => import_form_layout_checkbox_group.DSFormLayoutCheckboxGroup,
|
|
33
33
|
DSFormLayoutCheckboxGroupWithSchema: () => import_form_layout_checkbox_group.DSFormLayoutCheckboxGroupWithSchema,
|
|
34
34
|
DSFormLayoutRadioGroup: () => import_form_layout_checkbox_group.DSFormLayoutCheckboxGroup,
|
|
35
35
|
DSFormLayoutRadioGroupWithSchema: () => import_form_layout_checkbox_group.DSFormLayoutCheckboxGroupWithSchema
|
|
36
36
|
});
|
|
37
|
-
module.exports = __toCommonJS(
|
|
37
|
+
module.exports = __toCommonJS(index_exports);
|
|
38
38
|
var React = __toESM(require("react"));
|
|
39
|
-
__reExport(
|
|
39
|
+
__reExport(index_exports, require("./form-layout-block-item/index.js"), module.exports);
|
|
40
40
|
var import_form_layout_checkbox_group = require("./form-layout-checkbox-group/index.js");
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/index.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
4
|
"sourcesContent": ["export * from './form-layout-block-item/index.js';\nexport {\n DSFormLayoutCheckboxGroup,\n DSFormLayoutCheckboxGroupWithSchema,\n DSFormLayoutCheckboxGroup as DSFormLayoutRadioGroup,\n DSFormLayoutCheckboxGroupWithSchema as DSFormLayoutRadioGroupWithSchema,\n type DSFormLayoutCheckboxGroupT,\n} from './form-layout-checkbox-group/index.js';\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,0BAAc,8CAAd;AACA,wCAMO;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-checkbox-group-valid.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSFormLayoutCheckboxGroup } from '../index.js';\nimport type { DSFormLayoutCheckboxGroupT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSFormLayoutCheckboxGroupT.Props;\ntype ComponentPropsInternals = DSFormLayoutCheckboxGroupT.InternalProps;\ntype ComponentPropsDefaultProps = DSFormLayoutCheckboxGroupT.DefaultProps;\ntype ComponentPropsOptionalProps = DSFormLayoutCheckboxGroupT.OptionalProps;\ntype ComponentPropsRequiredProps = DSFormLayoutCheckboxGroupT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n children: <div></div>,\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {};\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n direction: 'vertical',\n};\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSFormLayoutCheckboxGroup {...testExplicitDefinition} />\n <DSFormLayoutCheckboxGroup {...testInferedTypeCompatibility} />\n <DSFormLayoutCheckboxGroup {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSFormLayoutCheckboxGroup direction=\"vertical\">\n <div></div>\n <div></div>\n </DSFormLayoutCheckboxGroup>\n </>\n);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACYX;AAXZ,eAA0C;AAU1C,MAAM,oBAAiD;AAAA,EACrD,UAAU,4CAAC,SAAI;AACjB;AACA,MAAM,oBAAiD,CAAC;AAIxD,MAAM,sBAA2D,CAAC;AAClE,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,uBAA6D;AAAA,EACjE,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSFormLayoutCheckboxGroup } from '../index.js';\nimport type { DSFormLayoutCheckboxGroupT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSFormLayoutCheckboxGroupT.Props;\ntype ComponentPropsInternals = DSFormLayoutCheckboxGroupT.InternalProps;\ntype ComponentPropsDefaultProps = DSFormLayoutCheckboxGroupT.DefaultProps;\ntype ComponentPropsOptionalProps = DSFormLayoutCheckboxGroupT.OptionalProps;\ntype ComponentPropsRequiredProps = DSFormLayoutCheckboxGroupT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n children: <div></div>,\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {};\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n direction: 'vertical',\n isInsideLayoutBlock: false,\n};\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSFormLayoutCheckboxGroup {...testExplicitDefinition} />\n <DSFormLayoutCheckboxGroup {...testInferedTypeCompatibility} />\n <DSFormLayoutCheckboxGroup {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSFormLayoutCheckboxGroup direction=\"vertical\">\n <div></div>\n <div></div>\n </DSFormLayoutCheckboxGroup>\n </>\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;AAAA,YAAuB;ACYX;AAXZ,eAA0C;AAU1C,MAAM,oBAAiD;AAAA,EACrD,UAAU,4CAAC,SAAI;AACjB;AACA,MAAM,oBAAiD,CAAC;AAIxD,MAAM,sBAA2D,CAAC;AAClE,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,uBAA6D;AAAA,EACjE,WAAW;AAAA,EACX,qBAAqB;AACvB;AACA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,UAAU,4CAAC,SAAI;AACjB;AAGA,MAAM,+BAA+B;AAAA,EACnC,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,UAAU,4CAAC,SAAI;AACjB;AAEA,MAAM,wBAAwB;AAAA,EAC5B,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,UAAU,4CAAC,SAAI;AACjB;AAEA,MAAM,wBAAwB,MAC5B,4EAEE;AAAA,8CAAC,sCAA2B,GAAG,wBAAwB;AAAA,EACvD,4CAAC,sCAA2B,GAAG,8BAA8B;AAAA,EAC7D,4CAAC,sCAA2B,GAAG,uBAAuB;AAAA,EAEtD,6CAAC,sCAA0B,WAAU,YACnC;AAAA,gDAAC,SAAI;AAAA,IACL,4CAAC,SAAI;AAAA,KACP;AAAA,GACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -10,7 +10,16 @@ const DSFormLayoutCheckboxGroup = (props) => {
|
|
|
10
10
|
xstyledProps,
|
|
11
11
|
propsWithDefault
|
|
12
12
|
} = useFormLayoutCheckboxGroup(props);
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
13
|
+
return /* @__PURE__ */ jsx(
|
|
14
|
+
StyledContainer,
|
|
15
|
+
{
|
|
16
|
+
role: propsWithDefault.isInsideLayoutBlock ? void 0 : "group",
|
|
17
|
+
direction: propsWithDefault.direction,
|
|
18
|
+
...othersGlobalAttributes,
|
|
19
|
+
...xstyledProps,
|
|
20
|
+
children: propsWithDefault.children
|
|
21
|
+
}
|
|
22
|
+
);
|
|
14
23
|
};
|
|
15
24
|
DSFormLayoutCheckboxGroup.displayName = "DSFormLayoutCheckboxGroup";
|
|
16
25
|
const DSFormLayoutCheckboxGroupWithSchema = describe(DSFormLayoutCheckboxGroup);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/form-layout-checkbox-group/DSFormLayoutCheckboxGroup.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledContainer } from './styles.js';\nimport type { DSFormLayoutCheckboxGroupT } from './react-desc-prop-types.js';\nimport { propTypes } from './react-desc-prop-types.js';\nimport { useFormLayoutCheckboxGroup } from './config/useFormLayoutCheckboxGroup.js';\n\nconst DSFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): JSX.Element => {\n const {\n globalAttributes: { ...othersGlobalAttributes },\n xstyledProps,\n propsWithDefault,\n } = useFormLayoutCheckboxGroup(props);\n return (\n <StyledContainer
|
|
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,EAAE,GAAG,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,IAAI,2BAA2B,KAAK;AACpC,SACE,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledContainer } from './styles.js';\nimport type { DSFormLayoutCheckboxGroupT } from './react-desc-prop-types.js';\nimport { propTypes } from './react-desc-prop-types.js';\nimport { useFormLayoutCheckboxGroup } from './config/useFormLayoutCheckboxGroup.js';\n\nconst DSFormLayoutCheckboxGroup = (props: DSFormLayoutCheckboxGroupT.Props): JSX.Element => {\n const {\n globalAttributes: { ...othersGlobalAttributes },\n xstyledProps,\n propsWithDefault,\n } = useFormLayoutCheckboxGroup(props);\n return (\n <StyledContainer\n role={propsWithDefault.isInsideLayoutBlock ? undefined : 'group'}\n direction={propsWithDefault.direction}\n {...othersGlobalAttributes}\n {...xstyledProps}\n >\n {propsWithDefault.children}\n </StyledContainer>\n );\n};\n\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,EAAE,GAAG,uBAAuB;AAAA,IAC9C;AAAA,IACA;AAAA,EACF,IAAI,2BAA2B,KAAK;AACpC,SACE;AAAA,IAAC;AAAA;AAAA,MACC,MAAM,iBAAiB,sBAAsB,SAAY;AAAA,MACzD,WAAW,iBAAiB;AAAA,MAC3B,GAAG;AAAA,MACH,GAAG;AAAA,MAEH,2BAAiB;AAAA;AAAA,EACpB;AAEJ;AAEA,0BAA0B,cAAc;AACxC,MAAM,sCAAsC,SAAS,yBAAyB;AAC9E,oCAAoC,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { slotObjectToDataTestIds } from "@elliemae/ds-system";
|
|
2
3
|
const DSFormLayoutCheckboxGroupName = "DSFormlayoutcheckboxgroup";
|
|
4
|
+
const FORM_LAYOUT_CHECKBOX_GROUP_SLOTS = {
|
|
5
|
+
ROOT: "root"
|
|
6
|
+
};
|
|
7
|
+
const FORM_LAYOUT_CHECKBOX_GROUP_DATA_TESTID = slotObjectToDataTestIds(
|
|
8
|
+
DSFormLayoutCheckboxGroupName,
|
|
9
|
+
FORM_LAYOUT_CHECKBOX_GROUP_SLOTS
|
|
10
|
+
);
|
|
3
11
|
export {
|
|
4
|
-
DSFormLayoutCheckboxGroupName
|
|
12
|
+
DSFormLayoutCheckboxGroupName,
|
|
13
|
+
FORM_LAYOUT_CHECKBOX_GROUP_DATA_TESTID,
|
|
14
|
+
FORM_LAYOUT_CHECKBOX_GROUP_SLOTS
|
|
5
15
|
};
|
|
6
16
|
//# sourceMappingURL=DSFormLayoutCheckboxGroupDefinitions.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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", "
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { slotObjectToDataTestIds } from '@elliemae/ds-system';\n\nexport const DSFormLayoutCheckboxGroupName = 'DSFormlayoutcheckboxgroup';\n\nexport const FORM_LAYOUT_CHECKBOX_GROUP_SLOTS = {\n ROOT: 'root',\n} as const;\n\nexport const FORM_LAYOUT_CHECKBOX_GROUP_DATA_TESTID = slotObjectToDataTestIds(\n DSFormLayoutCheckboxGroupName,\n FORM_LAYOUT_CHECKBOX_GROUP_SLOTS,\n);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,+BAA+B;AAEjC,MAAM,gCAAgC;AAEtC,MAAM,mCAAmC;AAAA,EAC9C,MAAM;AACR;AAEO,MAAM,yCAAyC;AAAA,EACpD;AAAA,EACA;AACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
|
|
3
3
|
const defaultProps = {
|
|
4
|
-
direction: "horizontal"
|
|
4
|
+
direction: "horizontal",
|
|
5
|
+
isInsideLayoutBlock: false
|
|
5
6
|
};
|
|
6
7
|
const propTypes = {
|
|
7
8
|
...globalAttributesPropTypes,
|
|
8
9
|
...xstyledPropTypes,
|
|
9
10
|
direction: PropTypes.oneOf(["horizontal", "vertical"]).description("Set direction for the checkbox group."),
|
|
11
|
+
isInsideLayoutBlock: PropTypes.bool.description(
|
|
12
|
+
"Indicates if the checkbox group is used as children of FormLayoutBlock, and removes role attribute so the one from the parent is used"
|
|
13
|
+
),
|
|
10
14
|
children: PropTypes.node.isRequired.description("The content of the component.")
|
|
11
15
|
};
|
|
12
16
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/form-layout-checkbox-group/react-desc-prop-types.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport type { GlobalAttributesT, XstyledProps, ValidationMap } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\nexport declare namespace DSFormLayoutCheckboxGroupT {\n export interface RequiredProps {\n children: React.ReactNode;\n }\n\n export interface DefaultProps {\n direction: DirectionsT;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends OptionalProps,\n RequiredProps,\n Partial<DefaultProps>,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n export interface InternalProps\n extends OptionalProps,\n RequiredProps,\n DefaultProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSFormLayoutCheckboxGroupT.DefaultProps = {\n direction: 'horizontal',\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n direction: PropTypes.oneOf(['horizontal', 'vertical']).description('Set direction for the checkbox group.'),\n children: PropTypes.node.isRequired.description('The content of the component.'),\n} as ValidationMap<unknown>;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,2BAA2B,wBAAwB;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-redundant-type-constituents */\nimport type { GlobalAttributesT, XstyledProps, ValidationMap } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\nexport declare namespace DSFormLayoutCheckboxGroupT {\n export interface RequiredProps {\n children: React.ReactNode;\n }\n\n export interface DefaultProps {\n direction: DirectionsT;\n isInsideLayoutBlock: boolean;\n }\n\n export interface OptionalProps {}\n\n export interface Props\n extends OptionalProps,\n RequiredProps,\n Partial<DefaultProps>,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n export interface InternalProps\n extends OptionalProps,\n RequiredProps,\n DefaultProps,\n Omit<GlobalAttributesT<HTMLDivElement>, keyof OptionalProps | keyof RequiredProps | keyof DefaultProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSFormLayoutCheckboxGroupT.DefaultProps = {\n direction: 'horizontal',\n isInsideLayoutBlock: false,\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n direction: PropTypes.oneOf(['horizontal', 'vertical']).description('Set direction for the checkbox group.'),\n isInsideLayoutBlock: PropTypes.bool.description(\n 'Indicates if the checkbox group is used as children of FormLayoutBlock, and removes role attribute so the one from the parent is used',\n ),\n children: PropTypes.node.isRequired.description('The content of the component.'),\n} as ValidationMap<unknown>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,2BAA2B,wBAAwB;AA8BhE,MAAM,eAAwD;AAAA,EACnE,WAAW;AAAA,EACX,qBAAqB;AACvB;AAEO,MAAM,YAAY;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,WAAW,UAAU,MAAM,CAAC,cAAc,UAAU,CAAC,EAAE,YAAY,uCAAuC;AAAA,EAC1G,qBAAqB,UAAU,KAAK;AAAA,IAClC;AAAA,EACF;AAAA,EACA,UAAU,UAAU,KAAK,WAAW,YAAY,+BAA+B;AACjF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { styled, xStyledCommonProps } from "@elliemae/ds-system";
|
|
3
|
-
|
|
3
|
+
import {
|
|
4
|
+
DSFormLayoutCheckboxGroupName,
|
|
5
|
+
FORM_LAYOUT_CHECKBOX_GROUP_SLOTS
|
|
6
|
+
} from "./DSFormLayoutCheckboxGroupDefinitions.js";
|
|
7
|
+
const StyledContainer = styled("div", {
|
|
8
|
+
name: DSFormLayoutCheckboxGroupName,
|
|
9
|
+
slot: FORM_LAYOUT_CHECKBOX_GROUP_SLOTS.ROOT
|
|
10
|
+
})`
|
|
4
11
|
display: inline-flex;
|
|
5
12
|
flex-wrap: wrap;
|
|
6
13
|
flex-direction: ${({ direction }) => direction === "horizontal" ? "row" : "column"};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/form-layout-checkbox-group/styles.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, xStyledCommonProps } from '@elliemae/ds-system';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\ninterface DSControlledCheckboxGroupStyledContainerT {\n direction: DirectionsT;\n}\n\nexport const StyledContainer = styled('div')<DSControlledCheckboxGroupStyledContainerT>`\n display: inline-flex;\n flex-wrap: wrap;\n flex-direction: ${({ direction }) => (direction === 'horizontal' ? 'row' : 'column')};\n margin-left: ${({ theme }) => theme.space.xs};\n margin-right: ${({ theme }) => theme.space.xs};\n margin-top: ${({ theme }) => theme.space.xxs};\n & div:not([role='checkbox']) {\n padding: 0;\n margin-bottom: ${({ theme }) => theme.space.xxs};\n }\n & div:not(:last-child) {\n margin-right: ${({ theme, direction }) => (direction === 'horizontal' ? theme.space.s : '0')};\n }\n ${xStyledCommonProps}\n`;\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,0BAA0B;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, xStyledCommonProps } from '@elliemae/ds-system';\nimport {\n DSFormLayoutCheckboxGroupName,\n FORM_LAYOUT_CHECKBOX_GROUP_SLOTS,\n} from './DSFormLayoutCheckboxGroupDefinitions.js';\n\ntype DirectionsT = 'horizontal' | 'vertical';\n\ninterface DSControlledCheckboxGroupStyledContainerT {\n direction: DirectionsT;\n}\n\nexport const StyledContainer = styled('div', {\n name: DSFormLayoutCheckboxGroupName,\n slot: FORM_LAYOUT_CHECKBOX_GROUP_SLOTS.ROOT,\n})<DSControlledCheckboxGroupStyledContainerT>`\n display: inline-flex;\n flex-wrap: wrap;\n flex-direction: ${({ direction }) => (direction === 'horizontal' ? 'row' : 'column')};\n margin-left: ${({ theme }) => theme.space.xs};\n margin-right: ${({ theme }) => theme.space.xs};\n margin-top: ${({ theme }) => theme.space.xxs};\n & div:not([role='checkbox']) {\n padding: 0;\n margin-bottom: ${({ theme }) => theme.space.xxs};\n }\n & div:not(:last-child) {\n margin-right: ${({ theme, direction }) => (direction === 'horizontal' ? theme.space.s : '0')};\n }\n ${xStyledCommonProps}\n`;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,0BAA0B;AAC3C;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAQA,MAAM,kBAAkB,OAAO,OAAO;AAAA,EAC3C,MAAM;AAAA,EACN,MAAM,iCAAiC;AACzC,CAAC;AAAA;AAAA;AAAA,oBAGmB,CAAC,EAAE,UAAU,MAAO,cAAc,eAAe,QAAQ,QAAS;AAAA,iBACrE,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,EAAE;AAAA,kBAC5B,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,EAAE;AAAA,gBAC/B,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA;AAAA,qBAGzB,CAAC,EAAE,MAAM,MAAM,MAAM,MAAM,GAAG;AAAA;AAAA;AAAA,oBAG/B,CAAC,EAAE,OAAO,UAAU,MAAO,cAAc,eAAe,MAAM,MAAM,IAAI,GAAI;AAAA;AAAA,IAE5F,kBAAkB;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/typescript-testing/typescript-checkbox-group-valid.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSFormLayoutCheckboxGroup } from '../index.js';\nimport type { DSFormLayoutCheckboxGroupT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSFormLayoutCheckboxGroupT.Props;\ntype ComponentPropsInternals = DSFormLayoutCheckboxGroupT.InternalProps;\ntype ComponentPropsDefaultProps = DSFormLayoutCheckboxGroupT.DefaultProps;\ntype ComponentPropsOptionalProps = DSFormLayoutCheckboxGroupT.OptionalProps;\ntype ComponentPropsRequiredProps = DSFormLayoutCheckboxGroupT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n children: <div></div>,\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {};\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n direction: 'vertical',\n};\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSFormLayoutCheckboxGroup {...testExplicitDefinition} />\n <DSFormLayoutCheckboxGroup {...testInferedTypeCompatibility} />\n <DSFormLayoutCheckboxGroup {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSFormLayoutCheckboxGroup direction=\"vertical\">\n <div></div>\n <div></div>\n </DSFormLayoutCheckboxGroup>\n </>\n);\n"],
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACYX,
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars, no-unused-vars */\nimport { DSFormLayoutCheckboxGroup } from '../index.js';\nimport type { DSFormLayoutCheckboxGroupT } from '../index.js';\n\n// test we expose the namespace and the namespace follows our deliverable conventions\ntype ComponentPropsForApp = DSFormLayoutCheckboxGroupT.Props;\ntype ComponentPropsInternals = DSFormLayoutCheckboxGroupT.InternalProps;\ntype ComponentPropsDefaultProps = DSFormLayoutCheckboxGroupT.DefaultProps;\ntype ComponentPropsOptionalProps = DSFormLayoutCheckboxGroupT.OptionalProps;\ntype ComponentPropsRequiredProps = DSFormLayoutCheckboxGroupT.RequiredProps;\n\nconst testRequiredProps: ComponentPropsRequiredProps = {\n children: <div></div>,\n};\nconst testOptionalProps: ComponentPropsOptionalProps = {};\n\n// difference Props and InternalProps is that InternalProps has all the default props filled in\n// Props allows for partial defaults\nconst testPartialDefaults: Partial<ComponentPropsDefaultProps> = {};\nconst testProps: ComponentPropsForApp = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n};\nconst testPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testPartialDefaults,\n} as ComponentPropsForApp;\n// InternalProps requires all defaults to be filled in\nconst testCompleteDefaults: Required<ComponentPropsDefaultProps> = {\n direction: 'vertical',\n isInsideLayoutBlock: false,\n};\nconst testInternalProps: ComponentPropsInternals = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n};\nconst testInternalPropsAsSyntax = {\n ...testRequiredProps,\n ...testOptionalProps,\n ...testCompleteDefaults,\n} as ComponentPropsInternals;\n\n// using the explicit type definition, if there is an error, it will be marked on the key that is wrong\nconst testExplicitDefinition: ComponentPropsForApp = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n};\n\n// using the \"as\" syntax, if there is an error, it will be marking the whole object as wrong because it is not compatible with the type\nconst testInferedTypeCompatibility = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as ComponentPropsForApp;\n\nconst testDefinitionAsConst = {\n direction: 'horizontal',\n id: 'id-1',\n children: <div></div>,\n} as const;\n\nconst ExampleUsageComponent = () => (\n <>\n {/* works with explicitly casted props, all syntaxes */}\n <DSFormLayoutCheckboxGroup {...testExplicitDefinition} />\n <DSFormLayoutCheckboxGroup {...testInferedTypeCompatibility} />\n <DSFormLayoutCheckboxGroup {...testDefinitionAsConst} />\n {/* works with inline values */}\n <DSFormLayoutCheckboxGroup direction=\"vertical\">\n <div></div>\n <div></div>\n </DSFormLayoutCheckboxGroup>\n </>\n);\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACYX,SAsDV,UAtDU,KA4DR,YA5DQ;AAXZ,SAAS,iCAAiC;AAU1C,MAAM,oBAAiD;AAAA,EACrD,UAAU,oBAAC,SAAI;AACjB;AACA,MAAM,oBAAiD,CAAC;AAIxD,MAAM,sBAA2D,CAAC;AAClE,MAAM,YAAkC;AAAA,EACtC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,oBAAoB;AAAA,EACxB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAEA,MAAM,uBAA6D;AAAA,EACjE,WAAW;AAAA,EACX,qBAAqB;AACvB;AACA,MAAM,oBAA6C;AAAA,EACjD,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AACA,MAAM,4BAA4B;AAAA,EAChC,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AACL;AAGA,MAAM,yBAA+C;AAAA,EACnD,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,UAAU,oBAAC,SAAI;AACjB;AAGA,MAAM,+BAA+B;AAAA,EACnC,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,UAAU,oBAAC,SAAI;AACjB;AAEA,MAAM,wBAAwB;AAAA,EAC5B,WAAW;AAAA,EACX,IAAI;AAAA,EACJ,UAAU,oBAAC,SAAI;AACjB;AAEA,MAAM,wBAAwB,MAC5B,iCAEE;AAAA,sBAAC,6BAA2B,GAAG,wBAAwB;AAAA,EACvD,oBAAC,6BAA2B,GAAG,8BAA8B;AAAA,EAC7D,oBAAC,6BAA2B,GAAG,uBAAuB;AAAA,EAEtD,qBAAC,6BAA0B,WAAU,YACnC;AAAA,wBAAC,SAAI;AAAA,IACL,oBAAC,SAAI;AAAA,KACP;AAAA,GACF;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-layout-blocks",
|
|
3
|
-
"version": "3.51.
|
|
3
|
+
"version": "3.51.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Form Layout",
|
|
6
6
|
"files": [
|
|
@@ -37,21 +37,21 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"uid": "~2.0.1",
|
|
40
|
-
"@elliemae/ds-grid": "3.51.
|
|
41
|
-
"@elliemae/ds-icons": "3.51.
|
|
42
|
-
"@elliemae/ds-props-helpers": "3.51.
|
|
43
|
-
"@elliemae/ds-system": "3.51.
|
|
44
|
-
"@elliemae/ds-typescript-helpers": "3.51.
|
|
40
|
+
"@elliemae/ds-grid": "3.51.1",
|
|
41
|
+
"@elliemae/ds-icons": "3.51.1",
|
|
42
|
+
"@elliemae/ds-props-helpers": "3.51.1",
|
|
43
|
+
"@elliemae/ds-system": "3.51.1",
|
|
44
|
+
"@elliemae/ds-typescript-helpers": "3.51.1"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@elliemae/pui-cli": "9.0.0-next.55",
|
|
48
48
|
"jest": "~29.7.0",
|
|
49
49
|
"styled-components": "~5.3.9",
|
|
50
|
-
"@elliemae/ds-form-checkbox": "3.51.
|
|
51
|
-
"@elliemae/ds-form-input-text": "3.51.
|
|
52
|
-
"@elliemae/ds-form-input-textarea": "3.51.
|
|
53
|
-
"@elliemae/ds-form-radio": "3.51.
|
|
54
|
-
"@elliemae/ds-monorepo-devops": "3.51.
|
|
50
|
+
"@elliemae/ds-form-checkbox": "3.51.1",
|
|
51
|
+
"@elliemae/ds-form-input-text": "3.51.1",
|
|
52
|
+
"@elliemae/ds-form-input-textarea": "3.51.1",
|
|
53
|
+
"@elliemae/ds-form-radio": "3.51.1",
|
|
54
|
+
"@elliemae/ds-monorepo-devops": "3.51.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"react": "^18.3.1",
|