@elliemae/ds-separator 3.16.0-next.2 → 3.16.0-next.21

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 (35) hide show
  1. package/dist/cjs/DSSeparator.js +59 -33
  2. package/dist/cjs/DSSeparator.js.map +2 -2
  3. package/dist/cjs/index.js +7 -3
  4. package/dist/cjs/index.js.map +2 -2
  5. package/dist/cjs/package.json +7 -0
  6. package/dist/cjs/v2/DSSeparatorDefinitions.js +4 -0
  7. package/dist/cjs/v2/DSSeparatorDefinitions.js.map +1 -1
  8. package/dist/cjs/v2/DSSeparatorV2.js +14 -10
  9. package/dist/cjs/v2/DSSeparatorV2.js.map +2 -2
  10. package/dist/cjs/v2/exported-related/DSSeparatorV2Datatestid.js +4 -0
  11. package/dist/cjs/v2/exported-related/DSSeparatorV2Datatestid.js.map +1 -1
  12. package/dist/cjs/v2/index.js +6 -2
  13. package/dist/cjs/v2/index.js.map +2 -2
  14. package/dist/cjs/v2/react-desc-prop-types.js +11 -7
  15. package/dist/cjs/v2/react-desc-prop-types.js.map +2 -2
  16. package/dist/cjs/v2/styles.js +4 -0
  17. package/dist/cjs/v2/styles.js.map +1 -1
  18. package/dist/esm/DSSeparator.js +47 -25
  19. package/dist/esm/DSSeparator.js.map +2 -2
  20. package/dist/esm/index.js +3 -3
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/package.json +7 -0
  23. package/dist/esm/v2/DSSeparatorV2.js +5 -5
  24. package/dist/esm/v2/DSSeparatorV2.js.map +2 -2
  25. package/dist/esm/v2/index.js +2 -2
  26. package/dist/esm/v2/index.js.map +1 -1
  27. package/dist/esm/v2/react-desc-prop-types.js +1 -1
  28. package/dist/esm/v2/react-desc-prop-types.js.map +1 -1
  29. package/dist/esm/v2/styles.js.map +1 -1
  30. package/dist/types/DSSeparator.d.ts +9 -9
  31. package/dist/types/index.d.ts +3 -3
  32. package/dist/types/v2/DSSeparatorV2.d.ts +2 -2
  33. package/dist/types/v2/index.d.ts +2 -2
  34. package/dist/types/v2/react-desc-prop-types.d.ts +446 -446
  35. package/package.json +7 -6
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/DSSeparatorV2.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport React from 'react';\nimport {\n describe,\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useValidateTypescriptPropTypes,\n useGetXstyledProps,\n} from '@elliemae/ds-utilities';\nimport { StyledSeparator } from './styles';\nimport { propTypes, defaultProps } from './react-desc-prop-types';\nimport { DSSeparatorV2Datatestid } from './exported-related/DSSeparatorV2Datatestid';\nimport type { DSSeparatorV2T } from './react-desc-prop-types';\nimport { DSSeparatorName } from './DSSeparatorDefinitions';\n\nconst DSSeparatorV2 = (props: DSSeparatorV2T.Props): JSX.Element => {\n useValidateTypescriptPropTypes(props, propTypes, DSSeparatorName);\n const propsWithDefault = useMemoMergePropsWithDefault<DSSeparatorV2T.Props>(props, defaultProps);\n\n const { colorType, isDotted, isVertical, color, ...rest } = propsWithDefault;\n\n const { role, ...globalAttrs } = useGetGlobalAttributes(rest);\n const xstyledAttrs = useGetXstyledProps(rest);\n\n return (\n <StyledSeparator\n colorType={colorType}\n isDotted={isDotted}\n isVertical={isVertical}\n color={color}\n role={role}\n {...(role ? { 'aria-orientation': isVertical ? 'vertical' : 'horizontal' } : undefined)}\n data-testid={DSSeparatorV2Datatestid.SEPARATOR}\n {...globalAttrs}\n {...xstyledAttrs}\n />\n );\n};\n\nDSSeparatorV2.displayName = DSSeparatorName;\nconst DSSeparatorV2WithSchema = describe(DSSeparatorV2);\nDSSeparatorV2WithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSSeparatorV2, DSSeparatorV2WithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACyBnB;AAvBJ;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAChC,SAAS,WAAW,oBAAoB;AACxC,SAAS,+BAA+B;AAExC,SAAS,uBAAuB;AAEhC,MAAM,gBAAgB,CAAC,UAA6C;AAClE,iCAA+B,OAAO,WAAW,eAAe;AAChE,QAAM,mBAAmB,6BAAmD,OAAO,YAAY;AAE/F,QAAM,EAAE,WAAW,UAAU,YAAY,UAAU,KAAK,IAAI;AAE5D,QAAM,EAAE,SAAS,YAAY,IAAI,uBAAuB,IAAI;AAC5D,QAAM,eAAe,mBAAmB,IAAI;AAE5C,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAI,OAAO,EAAE,oBAAoB,aAAa,aAAa,aAAa,IAAI;AAAA,MAC7E,eAAa,wBAAwB;AAAA,MACpC,GAAG;AAAA,MACH,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import type { WeakValidationMap } from 'react';\nimport React from 'react';\nimport {\n describe,\n useMemoMergePropsWithDefault,\n useGetGlobalAttributes,\n useValidateTypescriptPropTypes,\n useGetXstyledProps,\n} from '@elliemae/ds-props-helpers';\nimport { StyledSeparator } from './styles.js';\nimport { propTypes, defaultProps } from './react-desc-prop-types.js';\nimport { DSSeparatorV2Datatestid } from './exported-related/DSSeparatorV2Datatestid.js';\nimport type { DSSeparatorV2T } from './react-desc-prop-types.js';\nimport { DSSeparatorName } from './DSSeparatorDefinitions.js';\n\nconst DSSeparatorV2 = (props: DSSeparatorV2T.Props): JSX.Element => {\n useValidateTypescriptPropTypes(props, propTypes, DSSeparatorName);\n const propsWithDefault = useMemoMergePropsWithDefault<DSSeparatorV2T.Props>(props, defaultProps);\n\n const { colorType, isDotted, isVertical, color, ...rest } = propsWithDefault;\n\n const { role, ...globalAttrs } = useGetGlobalAttributes(rest);\n const xstyledAttrs = useGetXstyledProps(rest);\n\n return (\n <StyledSeparator\n colorType={colorType}\n isDotted={isDotted}\n isVertical={isVertical}\n color={color}\n role={role}\n {...(role ? { 'aria-orientation': isVertical ? 'vertical' : 'horizontal' } : undefined)}\n data-testid={DSSeparatorV2Datatestid.SEPARATOR}\n {...globalAttrs}\n {...xstyledAttrs}\n />\n );\n};\n\nDSSeparatorV2.displayName = DSSeparatorName;\nconst DSSeparatorV2WithSchema = describe(DSSeparatorV2);\nDSSeparatorV2WithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSSeparatorV2, DSSeparatorV2WithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACyBnB;AAvBJ;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB;AAChC,SAAS,WAAW,oBAAoB;AACxC,SAAS,+BAA+B;AAExC,SAAS,uBAAuB;AAEhC,MAAM,gBAAgB,CAAC,UAA6C;AAClE,iCAA+B,OAAO,WAAW,eAAe;AAChE,QAAM,mBAAmB,6BAAmD,OAAO,YAAY;AAE/F,QAAM,EAAE,WAAW,UAAU,YAAY,OAAO,GAAG,KAAK,IAAI;AAE5D,QAAM,EAAE,MAAM,GAAG,YAAY,IAAI,uBAAuB,IAAI;AAC5D,QAAM,eAAe,mBAAmB,IAAI;AAE5C,SACE;AAAA,IAAC;AAAA;AAAA,MACC;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAI,OAAO,EAAE,oBAAoB,aAAa,aAAa,aAAa,IAAI;AAAA,MAC7E,eAAa,wBAAwB;AAAA,MACpC,GAAG;AAAA,MACH,GAAG;AAAA;AAAA,EACN;AAEJ;AAEA,cAAc,cAAc;AAC5B,MAAM,0BAA0B,SAAS,aAAa;AACtD,wBAAwB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,4 @@
1
1
  import * as React from "react";
2
- export * from "./DSSeparatorV2";
3
- export * from "./exported-related/DSSeparatorV2Datatestid";
2
+ export * from "./DSSeparatorV2.js";
3
+ export * from "./exported-related/DSSeparatorV2Datatestid.js";
4
4
  //# sourceMappingURL=index.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/index.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSSeparatorV2';\nexport * from './exported-related/DSSeparatorV2Datatestid';\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './DSSeparatorV2.js';\nexport * from './exported-related/DSSeparatorV2Datatestid.js';\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,cAAc;AACd,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-utilities";
2
+ import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
3
3
  const defaultProps = {
4
4
  isVertical: false,
5
5
  isDotted: false,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/react-desc-prop-types.ts"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-utilities';\n\nexport const defaultProps: DSSeparatorV2T.DefaultProps = {\n isVertical: false,\n isDotted: false,\n colorType: 'dark',\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n isVertical: PropTypes.bool.description('Set vertical orientation.').defaultValue(false),\n isDotted: PropTypes.bool.description('Set dashed style.').defaultValue(false),\n colorType: PropTypes.oneOf(['dark', 'light'])\n .description('Set dark or light color types. Using color property will override this one.')\n .defaultValue('dark'),\n color: PropTypes.string.description('Set a custom color.'),\n};\n\nexport declare namespace DSSeparatorV2T {\n export interface DefaultProps {\n isVertical: boolean;\n isDotted: boolean;\n colorType: 'dark' | 'light';\n }\n\n export interface PropsOptional {\n color?: string;\n }\n\n export interface Props extends Partial<DefaultProps>, PropsOptional {}\n}\n"],
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\n\nexport const defaultProps: DSSeparatorV2T.DefaultProps = {\n isVertical: false,\n isDotted: false,\n colorType: 'dark',\n};\n\nexport const propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n isVertical: PropTypes.bool.description('Set vertical orientation.').defaultValue(false),\n isDotted: PropTypes.bool.description('Set dashed style.').defaultValue(false),\n colorType: PropTypes.oneOf(['dark', 'light'])\n .description('Set dark or light color types. Using color property will override this one.')\n .defaultValue('dark'),\n color: PropTypes.string.description('Set a custom color.'),\n};\n\nexport declare namespace DSSeparatorV2T {\n export interface DefaultProps {\n isVertical: boolean;\n isDotted: boolean;\n colorType: 'dark' | 'light';\n }\n\n export interface PropsOptional {\n color?: string;\n }\n\n export interface Props extends Partial<DefaultProps>, PropsOptional {}\n}\n"],
5
5
  "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,WAAW,2BAA2B,wBAAwB;AAEhE,MAAM,eAA4C;AAAA,EACvD,YAAY;AAAA,EACZ,UAAU;AAAA,EACV,WAAW;AACb;AAEO,MAAM,YAAY;AAAA,EACvB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,YAAY,UAAU,KAAK,YAAY,2BAA2B,EAAE,aAAa,KAAK;AAAA,EACtF,UAAU,UAAU,KAAK,YAAY,mBAAmB,EAAE,aAAa,KAAK;AAAA,EAC5E,WAAW,UAAU,MAAM,CAAC,QAAQ,OAAO,CAAC,EACzC,YAAY,6EAA6E,EACzF,aAAa,MAAM;AAAA,EACtB,OAAO,UAAU,OAAO,YAAY,qBAAqB;AAC3D;",
6
6
  "names": []
7
7
  }
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/v2/styles.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, css, xStyledCommonProps } from '@elliemae/ds-system';\n\ninterface StyledSeparatorT {\n isVertical: boolean;\n isDotted: boolean;\n color: string;\n colorType: 'dark' | 'light';\n}\n\nconst defaultColorTypes = {\n dark: '700',\n light: '400',\n};\n\nconst directionStyles = css`\n ${({ isVertical }) => (isVertical ? `height: 100%; width: 1px;` : `height: 1px; width: 100%;`)}\n`;\n``;\nconst dottedBorder = css`\n background-image: linear-gradient(\n to ${({ isVertical }) => (!isVertical ? 'right' : 'bottom')},\n ${({ theme, color, colorType }) => color || theme.colors.neutral[defaultColorTypes[colorType]]} 25%,\n rgba(255, 255, 255, 0) 0%\n );\n background-position: bottom;\n background-size: ${({ isVertical }) => (isVertical ? '1px 4px' : '4px 1px')};\n background-repeat: ${({ isVertical }) => (isVertical ? 'repeat-y' : 'repeat-x')};\n`;\n\nconst solidBorder = css`\n background: ${({ theme, color, colorType }) => color || theme.colors.neutral[defaultColorTypes[colorType]]};\n`;\n\nexport const StyledSeparator = styled('div', { name: 'DSSeparator', slot: 'root' })<StyledSeparatorT>`\n ${directionStyles}\n ${({ isDotted }) => (isDotted ? dottedBorder : solidBorder)}\n ${xStyledCommonProps}\n`;\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,KAAK,0BAA0B;AAShD,MAAM,oBAAoB;AAAA,EACxB,MAAM;AAAA,EACN,OAAO;AACT;AAEA,MAAM,kBAAkB;AAAA,IACpB,CAAC,EAAE,WAAW,MAAO,aAAa,8BAA8B;AAAA;AAEpE;AACA,MAAM,eAAe;AAAA;AAAA,SAEZ,CAAC,EAAE,WAAW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AAO,WAAW,eAAe;AAAA,IAC7C;AAAA;",
6
6
  "names": []
7
7
  }
@@ -19,35 +19,35 @@ declare const DSSeparator: {
19
19
  };
20
20
  propTypes: {
21
21
  /** class for separator */
22
- className: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
22
+ className: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
23
23
  /** style object for separator */
24
- style: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
24
+ style: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
25
25
  /** Injected props to wrapper element of component */
26
- containerProps: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
26
+ containerProps: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
27
27
  /**
28
28
  * If the separator has to be dashed or solid
29
29
  */
30
- dashed: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
30
+ dashed: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
31
31
  /**
32
32
  * Amount of margin to be added to the separator
33
33
  */
34
- margin: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
34
+ margin: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
35
35
  /**
36
36
  * Orientation 'horizontal' or 'vertical'
37
37
  */
38
- orientation: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
38
+ orientation: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
39
39
  /**
40
40
  * ['category-level', 'group-level', 'non-form']
41
41
  */
42
- type: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
42
+ type: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
43
43
  /**
44
44
  * ['initial', 'center', 'end']
45
45
  */
46
- position: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").ReactDescT;
46
+ position: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").ReactDescT;
47
47
  };
48
48
  displayName: string;
49
49
  };
50
- declare const DSSeparatorWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<{
50
+ declare const DSSeparatorWithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types").DocumentedReactComponent<{
51
51
  containerProps: any;
52
52
  dashed: any;
53
53
  margin: any;
@@ -1,3 +1,3 @@
1
- export * from './DSSeparator';
2
- export * from './v2';
3
- export { default } from './DSSeparator';
1
+ export * from './DSSeparator.js';
2
+ export * from './v2/index.js';
3
+ export { default } from './DSSeparator.js';
@@ -1,7 +1,7 @@
1
- import type { DSSeparatorV2T } from './react-desc-prop-types';
1
+ import type { DSSeparatorV2T } from './react-desc-prop-types.js';
2
2
  declare const DSSeparatorV2: {
3
3
  (props: DSSeparatorV2T.Props): JSX.Element;
4
4
  displayName: string;
5
5
  };
6
- declare const DSSeparatorV2WithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSSeparatorV2T.Props>;
6
+ declare const DSSeparatorV2WithSchema: import("@elliemae/ds-props-helpers/dist/types/propTypes/types.js").DocumentedReactComponent<DSSeparatorV2T.Props>;
7
7
  export { DSSeparatorV2, DSSeparatorV2WithSchema };
@@ -1,2 +1,2 @@
1
- export * from './DSSeparatorV2';
2
- export * from './exported-related/DSSeparatorV2Datatestid';
1
+ export * from './DSSeparatorV2.js';
2
+ export * from './exported-related/DSSeparatorV2Datatestid.js';