@elliemae/ds-form-native-select 3.52.1 → 3.53.0-alpha.2

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/NativeSelect.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["/* eslint-disable no-unused-vars */\nimport React, { type WeakValidationMap, useCallback } from 'react';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport {\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n useGetXstyledProps,\n describe,\n PropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { StyledControlsWrapper, StyledDropDownButton, StyledSelect } from './styled.js';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\ninterface Props {\n hasError: boolean;\n disabled: boolean;\n children: React.ReactNode;\n}\n\nconst propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n hasError: PropTypes.bool.description('whether the input has an error').defaultValue(false),\n disabled: PropTypes.bool.description('whether the input is disabled').defaultValue(false),\n children: PropTypes.node.description('options to be rendered in the select'),\n};\n\nconst DSNativeSelect: React.ComponentType<Props> = (props) => {\n const { hasError, disabled, children } = props;\n\n const getOwnerProps = useCallback(() => props, [props]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n const xStyledProps = useGetXstyledProps(props);\n const { id, required, size, ...globalAttributes } = useGetGlobalAttributes<Props, HTMLDivElement, DSGridT.Props>(\n props,\n );\n return (\n <StyledControlsWrapper disabled={disabled} hasError={hasError} {...xStyledProps} {...globalAttributes}>\n <StyledSelect\n id={id}\n disabled={disabled}\n required={required}\n size={size}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {children}\n </StyledSelect>\n <StyledDropDownButton justifyContent=\"center\" alignItems=\"center\">\n <ChevronSmallDown />\n </StyledDropDownButton>\n </StyledControlsWrapper>\n );\n};\n\nDSNativeSelect.displayName = 'DSNativeSelect';\nconst DSNativeSelectWithSchema = describe(DSNativeSelect);\nDSNativeSelectWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSNativeSelect, DSNativeSelectWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuCnB;AAtCJ,mBAA2D;AAC3D,sBAAiC;AACjC,8BAOO;AACP,oBAA0E;AAS1E,MAAM,YAAY;AAAA,EAChB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,kCAAU,KAAK,YAAY,gCAAgC,EAAE,aAAa,KAAK;AAAA,EACzF,UAAU,kCAAU,KAAK,YAAY,+BAA+B,EAAE,aAAa,KAAK;AAAA,EACxF,UAAU,kCAAU,KAAK,YAAY,sCAAsC;AAC7E;AAEA,MAAM,iBAA6C,CAAC,UAAU;AAC5D,QAAM,EAAE,UAAU,UAAU,SAAS,IAAI;AAEzC,QAAM,oBAAgB,0BAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AACtD,QAAM,6BAAyB,0BAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzD,QAAM,mBAAe,4CAAmB,KAAK;AAC7C,QAAM,EAAE,IAAI,UAAU,MAAM,GAAG,iBAAiB,QAAI;AAAA,IAClD;AAAA,EACF;AACA,SACE,6CAAC,uCAAsB,UAAoB,UAAqB,GAAG,cAAe,GAAG,kBACnF;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,IACA,4CAAC,sCAAqB,gBAAe,UAAS,YAAW,UACvD,sDAAC,oCAAiB,GACpB;AAAA,KACF;AAEJ;AAEA,eAAe,cAAc;AAC7B,MAAM,+BAA2B,kCAAS,cAAc;AACxD,yBAAyB,YAAY;",
4
+ "sourcesContent": ["/* eslint-disable no-unused-vars */\nimport React, { type WeakValidationMap, useCallback } from 'react';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport {\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n useGetXstyledProps,\n describe,\n PropTypes,\n} from '@elliemae/ds-props-helpers';\nimport type { DSGridT } from '@elliemae/ds-grid';\nimport { StyledControlsWrapper, StyledDropDownButton, StyledSelect } from './styled.js';\n\ninterface Props {\n hasError: boolean;\n disabled: boolean;\n children: React.ReactNode;\n}\n\nconst propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n hasError: PropTypes.bool.description('whether the input has an error').defaultValue(false),\n disabled: PropTypes.bool.description('whether the input is disabled').defaultValue(false),\n children: PropTypes.node.description('options to be rendered in the select'),\n};\n\nconst DSNativeSelect: React.ComponentType<Props> = (props) => {\n const { hasError, disabled, children } = props;\n\n const getOwnerProps = useCallback(() => props, [props]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n const xStyledProps = useGetXstyledProps(props);\n const { id, required, size, ...globalAttributes } = useGetGlobalAttributes<Props, HTMLDivElement, DSGridT.Props>(\n props,\n );\n return (\n <StyledControlsWrapper disabled={disabled} hasError={hasError} {...xStyledProps} {...globalAttributes}>\n <StyledSelect\n id={id}\n disabled={disabled}\n required={required}\n size={size}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {children}\n </StyledSelect>\n <StyledDropDownButton justifyContent=\"center\" alignItems=\"center\">\n <ChevronSmallDown />\n </StyledDropDownButton>\n </StyledControlsWrapper>\n );\n};\n\nDSNativeSelect.displayName = 'DSNativeSelect';\nconst DSNativeSelectWithSchema = describe(DSNativeSelect);\nDSNativeSelectWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSNativeSelect, DSNativeSelectWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADuCnB;AAtCJ,mBAA2D;AAC3D,sBAAiC;AACjC,8BAOO;AAEP,oBAA0E;AAQ1E,MAAM,YAAY;AAAA,EAChB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,kCAAU,KAAK,YAAY,gCAAgC,EAAE,aAAa,KAAK;AAAA,EACzF,UAAU,kCAAU,KAAK,YAAY,+BAA+B,EAAE,aAAa,KAAK;AAAA,EACxF,UAAU,kCAAU,KAAK,YAAY,sCAAsC;AAC7E;AAEA,MAAM,iBAA6C,CAAC,UAAU;AAC5D,QAAM,EAAE,UAAU,UAAU,SAAS,IAAI;AAEzC,QAAM,oBAAgB,0BAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AACtD,QAAM,6BAAyB,0BAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzD,QAAM,mBAAe,4CAAmB,KAAK;AAC7C,QAAM,EAAE,IAAI,UAAU,MAAM,GAAG,iBAAiB,QAAI;AAAA,IAClD;AAAA,EACF;AACA,SACE,6CAAC,uCAAsB,UAAoB,UAAqB,GAAG,cAAe,GAAG,kBACnF;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,IACA,4CAAC,sCAAqB,gBAAe,UAAS,YAAW,UACvD,sDAAC,oCAAiB,GACpB;AAAA,KACF;AAEJ;AAEA,eAAe,cAAc;AAC7B,MAAM,+BAA2B,kCAAS,cAAc;AACxD,yBAAyB,YAAY;",
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/NativeSelect.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-unused-vars */\nimport React, { type WeakValidationMap, useCallback } from 'react';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport {\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n useGetXstyledProps,\n describe,\n PropTypes,\n} from '@elliemae/ds-props-helpers';\nimport { StyledControlsWrapper, StyledDropDownButton, StyledSelect } from './styled.js';\nimport type { DSGridT } from '@elliemae/ds-grid';\n\ninterface Props {\n hasError: boolean;\n disabled: boolean;\n children: React.ReactNode;\n}\n\nconst propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n hasError: PropTypes.bool.description('whether the input has an error').defaultValue(false),\n disabled: PropTypes.bool.description('whether the input is disabled').defaultValue(false),\n children: PropTypes.node.description('options to be rendered in the select'),\n};\n\nconst DSNativeSelect: React.ComponentType<Props> = (props) => {\n const { hasError, disabled, children } = props;\n\n const getOwnerProps = useCallback(() => props, [props]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n const xStyledProps = useGetXstyledProps(props);\n const { id, required, size, ...globalAttributes } = useGetGlobalAttributes<Props, HTMLDivElement, DSGridT.Props>(\n props,\n );\n return (\n <StyledControlsWrapper disabled={disabled} hasError={hasError} {...xStyledProps} {...globalAttributes}>\n <StyledSelect\n id={id}\n disabled={disabled}\n required={required}\n size={size}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {children}\n </StyledSelect>\n <StyledDropDownButton justifyContent=\"center\" alignItems=\"center\">\n <ChevronSmallDown />\n </StyledDropDownButton>\n </StyledControlsWrapper>\n );\n};\n\nDSNativeSelect.displayName = 'DSNativeSelect';\nconst DSNativeSelectWithSchema = describe(DSNativeSelect);\nDSNativeSelectWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSNativeSelect, DSNativeSelectWithSchema };\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACuCnB,SACE,KADF;AAtCJ,SAAwC,mBAAmB;AAC3D,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,uBAAuB,sBAAsB,oBAAoB;AAS1E,MAAM,YAAY;AAAA,EAChB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,UAAU,KAAK,YAAY,gCAAgC,EAAE,aAAa,KAAK;AAAA,EACzF,UAAU,UAAU,KAAK,YAAY,+BAA+B,EAAE,aAAa,KAAK;AAAA,EACxF,UAAU,UAAU,KAAK,YAAY,sCAAsC;AAC7E;AAEA,MAAM,iBAA6C,CAAC,UAAU;AAC5D,QAAM,EAAE,UAAU,UAAU,SAAS,IAAI;AAEzC,QAAM,gBAAgB,YAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AACtD,QAAM,yBAAyB,YAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzD,QAAM,eAAe,mBAAmB,KAAK;AAC7C,QAAM,EAAE,IAAI,UAAU,MAAM,GAAG,iBAAiB,IAAI;AAAA,IAClD;AAAA,EACF;AACA,SACE,qBAAC,yBAAsB,UAAoB,UAAqB,GAAG,cAAe,GAAG,kBACnF;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,IACA,oBAAC,wBAAqB,gBAAe,UAAS,YAAW,UACvD,8BAAC,oBAAiB,GACpB;AAAA,KACF;AAEJ;AAEA,eAAe,cAAc;AAC7B,MAAM,2BAA2B,SAAS,cAAc;AACxD,yBAAyB,YAAY;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable no-unused-vars */\nimport React, { type WeakValidationMap, useCallback } from 'react';\nimport { ChevronSmallDown } from '@elliemae/ds-icons';\nimport {\n useGetGlobalAttributes,\n globalAttributesPropTypes,\n xstyledPropTypes,\n useGetXstyledProps,\n describe,\n PropTypes,\n} from '@elliemae/ds-props-helpers';\nimport type { DSGridT } from '@elliemae/ds-grid';\nimport { StyledControlsWrapper, StyledDropDownButton, StyledSelect } from './styled.js';\n\ninterface Props {\n hasError: boolean;\n disabled: boolean;\n children: React.ReactNode;\n}\n\nconst propTypes = {\n ...globalAttributesPropTypes,\n ...xstyledPropTypes,\n hasError: PropTypes.bool.description('whether the input has an error').defaultValue(false),\n disabled: PropTypes.bool.description('whether the input is disabled').defaultValue(false),\n children: PropTypes.node.description('options to be rendered in the select'),\n};\n\nconst DSNativeSelect: React.ComponentType<Props> = (props) => {\n const { hasError, disabled, children } = props;\n\n const getOwnerProps = useCallback(() => props, [props]);\n const getOwnerPropsArguments = useCallback(() => ({}), []);\n\n const xStyledProps = useGetXstyledProps(props);\n const { id, required, size, ...globalAttributes } = useGetGlobalAttributes<Props, HTMLDivElement, DSGridT.Props>(\n props,\n );\n return (\n <StyledControlsWrapper disabled={disabled} hasError={hasError} {...xStyledProps} {...globalAttributes}>\n <StyledSelect\n id={id}\n disabled={disabled}\n required={required}\n size={size}\n getOwnerProps={getOwnerProps}\n getOwnerPropsArguments={getOwnerPropsArguments}\n >\n {children}\n </StyledSelect>\n <StyledDropDownButton justifyContent=\"center\" alignItems=\"center\">\n <ChevronSmallDown />\n </StyledDropDownButton>\n </StyledControlsWrapper>\n );\n};\n\nDSNativeSelect.displayName = 'DSNativeSelect';\nconst DSNativeSelectWithSchema = describe(DSNativeSelect);\nDSNativeSelectWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSNativeSelect, DSNativeSelectWithSchema };\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACuCnB,SACE,KADF;AAtCJ,SAAwC,mBAAmB;AAC3D,SAAS,wBAAwB;AACjC;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEP,SAAS,uBAAuB,sBAAsB,oBAAoB;AAQ1E,MAAM,YAAY;AAAA,EAChB,GAAG;AAAA,EACH,GAAG;AAAA,EACH,UAAU,UAAU,KAAK,YAAY,gCAAgC,EAAE,aAAa,KAAK;AAAA,EACzF,UAAU,UAAU,KAAK,YAAY,+BAA+B,EAAE,aAAa,KAAK;AAAA,EACxF,UAAU,UAAU,KAAK,YAAY,sCAAsC;AAC7E;AAEA,MAAM,iBAA6C,CAAC,UAAU;AAC5D,QAAM,EAAE,UAAU,UAAU,SAAS,IAAI;AAEzC,QAAM,gBAAgB,YAAY,MAAM,OAAO,CAAC,KAAK,CAAC;AACtD,QAAM,yBAAyB,YAAY,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzD,QAAM,eAAe,mBAAmB,KAAK;AAC7C,QAAM,EAAE,IAAI,UAAU,MAAM,GAAG,iBAAiB,IAAI;AAAA,IAClD;AAAA,EACF;AACA,SACE,qBAAC,yBAAsB,UAAoB,UAAqB,GAAG,cAAe,GAAG,kBACnF;AAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QAEC;AAAA;AAAA,IACH;AAAA,IACA,oBAAC,wBAAqB,gBAAe,UAAS,YAAW,UACvD,8BAAC,oBAAiB,GACpB;AAAA,KACF;AAEJ;AAEA,eAAe,cAAc;AAC7B,MAAM,2BAA2B,SAAS,cAAc;AACxD,yBAAyB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface StyledControlsWrapperT {
3
2
  hasError: boolean;
4
3
  disabled: boolean;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form-native-select",
3
- "version": "3.52.1",
3
+ "version": "3.53.0-alpha.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Form Native Select",
6
6
  "files": [
@@ -36,22 +36,22 @@
36
36
  "indent": 4
37
37
  },
38
38
  "dependencies": {
39
- "@elliemae/ds-form-combobox": "3.52.1",
40
- "@elliemae/ds-grid": "3.52.1",
41
- "@elliemae/ds-icons": "3.52.1",
42
- "@elliemae/ds-system": "3.52.1",
43
- "@elliemae/ds-props-helpers": "3.52.1"
39
+ "@elliemae/ds-form-combobox": "3.53.0-alpha.2",
40
+ "@elliemae/ds-grid": "3.53.0-alpha.2",
41
+ "@elliemae/ds-icons": "3.53.0-alpha.2",
42
+ "@elliemae/ds-props-helpers": "3.53.0-alpha.2",
43
+ "@elliemae/ds-system": "3.53.0-alpha.2"
44
44
  },
45
45
  "devDependencies": {
46
- "@elliemae/pui-cli": "9.0.0-next.63",
47
- "@elliemae/pui-theme": "~2.12.0",
46
+ "@elliemae/pui-cli": "9.0.0-next.65",
47
+ "@elliemae/pui-theme": "~2.13.0",
48
48
  "jest": "~29.7.0",
49
49
  "styled-components": "~5.3.9",
50
50
  "styled-system": "^5.1.5",
51
- "@elliemae/ds-monorepo-devops": "3.52.1"
51
+ "@elliemae/ds-monorepo-devops": "3.53.0-alpha.2"
52
52
  },
53
53
  "peerDependencies": {
54
- "@elliemae/pui-theme": "~2.12.0",
54
+ "@elliemae/pui-theme": "~2.13.0",
55
55
  "react": "^18.3.1",
56
56
  "react-dom": "^18.3.1",
57
57
  "styled-components": "~5.3.9",