@elliemae/ds-form-native-select 3.70.0-next.23 → 3.70.0-next.25
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/styled.js +1 -1
- package/dist/cjs/styled.js.map +1 -1
- package/dist/esm/styled.js +1 -1
- package/dist/esm/styled.js.map +1 -1
- package/package.json +7 -7
package/dist/cjs/styled.js
CHANGED
|
@@ -107,7 +107,7 @@ const StyledSelect = (0, import_ds_system.styled)("select", {
|
|
|
107
107
|
width: 100%;
|
|
108
108
|
text-align: left;
|
|
109
109
|
&:disabled {
|
|
110
|
-
color: ${({ theme }) => theme.colors.neutral["
|
|
110
|
+
color: ${({ theme }) => theme.colors.neutral["600"]};
|
|
111
111
|
cursor: not-allowed;
|
|
112
112
|
}
|
|
113
113
|
z-index: 2;
|
package/dist/cjs/styled.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/styled.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import { styled, css } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSNativeSelectName, NATIVE_SELECT_SLOTS } from './constants/index.js';\n\ninterface StyledControlsWrapperT {\n hasError: boolean;\n disabled: boolean;\n applyAriaDisabled: boolean;\n readOnly: boolean;\n}\n\n// Border precedence matches packages/forms/ds-form-input-text/src/styled/borders.ts:\n// disabled \u2192 focus (pseudo) \u2192 hasError \u2192 locked (applyAriaDisabled | readOnly) \u2192 normal\nconst disabledBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst errorBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.danger[900]};\n`;\n\nconst lockedBorder = css`\n background-color: ${({ theme }) => theme.colors.neutral['050']};\n border: 1px solid ${({ theme }) => theme.colors.neutral['080']};\n border-bottom: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst normalBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst focusBorder = css`\n outline: 2px solid ${({ theme }) => theme.colors.brand[700]};\n outline-offset: -2px;\n`;\n\nconst hoverBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.brand[700]};\n`;\n\nexport const StyledControlsWrapper = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.CONTAINER,\n})<StyledControlsWrapperT>`\n background: ${({ disabled, theme }) => (disabled ? theme.colors.neutral['080'] : '#ffffff')};\n position: relative;\n border-radius: 2px;\n align-items: center;\n align-content: center;\n height: 28px;\n ${({ disabled, hasError, applyAriaDisabled, readOnly }) => {\n if (disabled) return disabledBorder;\n if (hasError) return errorBorder;\n if (applyAriaDisabled || readOnly) return lockedBorder;\n return normalBorder;\n }}\n &:hover {\n ${({ disabled, applyAriaDisabled, readOnly }) => (!disabled && !applyAriaDisabled && !readOnly ? hoverBorder : '')}\n }\n &:focus-within {\n ${focusBorder}\n }\n`;\n\nexport const StyledDropDownButton = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.DROP_INDICATOR,\n})`\n position: absolute;\n right: 0;\n height: 100%;\n cursor: pointer;\n width: 28px;\n z-index: 1;\n`;\n\nexport const StyledSelect = styled('select', {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.INPUT,\n})`\n height: 28px;\n appearance: none;\n background-color: transparent;\n border: none;\n color: ${({ theme }) => theme.colors.neutral['700']};\n cursor: pointer;\n outline: none;\n padding: 0;\n width: 100%;\n text-align: left;\n &:disabled {\n color: ${({ theme }) => theme.colors.neutral['
|
|
4
|
+
"sourcesContent": ["import { styled, css } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSNativeSelectName, NATIVE_SELECT_SLOTS } from './constants/index.js';\n\ninterface StyledControlsWrapperT {\n hasError: boolean;\n disabled: boolean;\n applyAriaDisabled: boolean;\n readOnly: boolean;\n}\n\n// Border precedence matches packages/forms/ds-form-input-text/src/styled/borders.ts:\n// disabled \u2192 focus (pseudo) \u2192 hasError \u2192 locked (applyAriaDisabled | readOnly) \u2192 normal\nconst disabledBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst errorBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.danger[900]};\n`;\n\nconst lockedBorder = css`\n background-color: ${({ theme }) => theme.colors.neutral['050']};\n border: 1px solid ${({ theme }) => theme.colors.neutral['080']};\n border-bottom: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst normalBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst focusBorder = css`\n outline: 2px solid ${({ theme }) => theme.colors.brand[700]};\n outline-offset: -2px;\n`;\n\nconst hoverBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.brand[700]};\n`;\n\nexport const StyledControlsWrapper = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.CONTAINER,\n})<StyledControlsWrapperT>`\n background: ${({ disabled, theme }) => (disabled ? theme.colors.neutral['080'] : '#ffffff')};\n position: relative;\n border-radius: 2px;\n align-items: center;\n align-content: center;\n height: 28px;\n ${({ disabled, hasError, applyAriaDisabled, readOnly }) => {\n if (disabled) return disabledBorder;\n if (hasError) return errorBorder;\n if (applyAriaDisabled || readOnly) return lockedBorder;\n return normalBorder;\n }}\n &:hover {\n ${({ disabled, applyAriaDisabled, readOnly }) => (!disabled && !applyAriaDisabled && !readOnly ? hoverBorder : '')}\n }\n &:focus-within {\n ${focusBorder}\n }\n`;\n\nexport const StyledDropDownButton = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.DROP_INDICATOR,\n})`\n position: absolute;\n right: 0;\n height: 100%;\n cursor: pointer;\n width: 28px;\n z-index: 1;\n`;\n\nexport const StyledSelect = styled('select', {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.INPUT,\n})`\n height: 28px;\n appearance: none;\n background-color: transparent;\n border: none;\n color: ${({ theme }) => theme.colors.neutral['700']};\n cursor: pointer;\n outline: none;\n padding: 0;\n width: 100%;\n text-align: left;\n &:disabled {\n color: ${({ theme }) => theme.colors.neutral['600']};\n cursor: not-allowed;\n }\n z-index: 2;\n padding-left: 8px;\n padding-right: 28px;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
5
|
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,uBAA4B;AAC5B,qBAAqB;AACrB,uBAAwD;AAWxD,MAAM,iBAAiB;AAAA,sBACD,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAG9D,MAAM,cAAc;AAAA,sBACE,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA;AAG7D,MAAM,eAAe;AAAA,sBACC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,sBAC1C,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,6BACnC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAGrE,MAAM,eAAe;AAAA,sBACC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAG9D,MAAM,cAAc;AAAA,uBACG,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAAA;AAI7D,MAAM,cAAc;AAAA,sBACE,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,MAAM,GAAG,CAAC;AAAA;AAGrD,MAAM,4BAAwB,yBAAO,qBAAM;AAAA,EAChD,MAAM;AAAA,EACN,MAAM,qCAAoB;AAC5B,CAAC;AAAA,gBACe,CAAC,EAAE,UAAU,MAAM,MAAO,WAAW,MAAM,OAAO,QAAQ,KAAK,IAAI,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMzF,CAAC,EAAE,UAAU,UAAU,mBAAmB,SAAS,MAAM;AACzD,MAAI,SAAU,QAAO;AACrB,MAAI,SAAU,QAAO;AACrB,MAAI,qBAAqB,SAAU,QAAO;AAC1C,SAAO;AACT,CAAC;AAAA;AAAA,MAEG,CAAC,EAAE,UAAU,mBAAmB,SAAS,MAAO,CAAC,YAAY,CAAC,qBAAqB,CAAC,WAAW,cAAc,EAAG;AAAA;AAAA;AAAA,MAGhH,WAAW;AAAA;AAAA;AAIV,MAAM,2BAAuB,yBAAO,qBAAM;AAAA,EAC/C,MAAM;AAAA,EACN,MAAM,qCAAoB;AAC5B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASM,MAAM,mBAAe,yBAAO,UAAU;AAAA,EAC3C,MAAM;AAAA,EACN,MAAM,qCAAoB;AAC5B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA,WAKU,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAOxC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/styled.js
CHANGED
package/dist/esm/styled.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, css } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSNativeSelectName, NATIVE_SELECT_SLOTS } from './constants/index.js';\n\ninterface StyledControlsWrapperT {\n hasError: boolean;\n disabled: boolean;\n applyAriaDisabled: boolean;\n readOnly: boolean;\n}\n\n// Border precedence matches packages/forms/ds-form-input-text/src/styled/borders.ts:\n// disabled \u2192 focus (pseudo) \u2192 hasError \u2192 locked (applyAriaDisabled | readOnly) \u2192 normal\nconst disabledBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst errorBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.danger[900]};\n`;\n\nconst lockedBorder = css`\n background-color: ${({ theme }) => theme.colors.neutral['050']};\n border: 1px solid ${({ theme }) => theme.colors.neutral['080']};\n border-bottom: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst normalBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst focusBorder = css`\n outline: 2px solid ${({ theme }) => theme.colors.brand[700]};\n outline-offset: -2px;\n`;\n\nconst hoverBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.brand[700]};\n`;\n\nexport const StyledControlsWrapper = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.CONTAINER,\n})<StyledControlsWrapperT>`\n background: ${({ disabled, theme }) => (disabled ? theme.colors.neutral['080'] : '#ffffff')};\n position: relative;\n border-radius: 2px;\n align-items: center;\n align-content: center;\n height: 28px;\n ${({ disabled, hasError, applyAriaDisabled, readOnly }) => {\n if (disabled) return disabledBorder;\n if (hasError) return errorBorder;\n if (applyAriaDisabled || readOnly) return lockedBorder;\n return normalBorder;\n }}\n &:hover {\n ${({ disabled, applyAriaDisabled, readOnly }) => (!disabled && !applyAriaDisabled && !readOnly ? hoverBorder : '')}\n }\n &:focus-within {\n ${focusBorder}\n }\n`;\n\nexport const StyledDropDownButton = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.DROP_INDICATOR,\n})`\n position: absolute;\n right: 0;\n height: 100%;\n cursor: pointer;\n width: 28px;\n z-index: 1;\n`;\n\nexport const StyledSelect = styled('select', {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.INPUT,\n})`\n height: 28px;\n appearance: none;\n background-color: transparent;\n border: none;\n color: ${({ theme }) => theme.colors.neutral['700']};\n cursor: pointer;\n outline: none;\n padding: 0;\n width: 100%;\n text-align: left;\n &:disabled {\n color: ${({ theme }) => theme.colors.neutral['
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import { styled, css } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSNativeSelectName, NATIVE_SELECT_SLOTS } from './constants/index.js';\n\ninterface StyledControlsWrapperT {\n hasError: boolean;\n disabled: boolean;\n applyAriaDisabled: boolean;\n readOnly: boolean;\n}\n\n// Border precedence matches packages/forms/ds-form-input-text/src/styled/borders.ts:\n// disabled \u2192 focus (pseudo) \u2192 hasError \u2192 locked (applyAriaDisabled | readOnly) \u2192 normal\nconst disabledBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst errorBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.danger[900]};\n`;\n\nconst lockedBorder = css`\n background-color: ${({ theme }) => theme.colors.neutral['050']};\n border: 1px solid ${({ theme }) => theme.colors.neutral['080']};\n border-bottom: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst normalBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.neutral[400]};\n`;\n\nconst focusBorder = css`\n outline: 2px solid ${({ theme }) => theme.colors.brand[700]};\n outline-offset: -2px;\n`;\n\nconst hoverBorder = css`\n border: 1px solid ${({ theme }) => theme.colors.brand[700]};\n`;\n\nexport const StyledControlsWrapper = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.CONTAINER,\n})<StyledControlsWrapperT>`\n background: ${({ disabled, theme }) => (disabled ? theme.colors.neutral['080'] : '#ffffff')};\n position: relative;\n border-radius: 2px;\n align-items: center;\n align-content: center;\n height: 28px;\n ${({ disabled, hasError, applyAriaDisabled, readOnly }) => {\n if (disabled) return disabledBorder;\n if (hasError) return errorBorder;\n if (applyAriaDisabled || readOnly) return lockedBorder;\n return normalBorder;\n }}\n &:hover {\n ${({ disabled, applyAriaDisabled, readOnly }) => (!disabled && !applyAriaDisabled && !readOnly ? hoverBorder : '')}\n }\n &:focus-within {\n ${focusBorder}\n }\n`;\n\nexport const StyledDropDownButton = styled(Grid, {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.DROP_INDICATOR,\n})`\n position: absolute;\n right: 0;\n height: 100%;\n cursor: pointer;\n width: 28px;\n z-index: 1;\n`;\n\nexport const StyledSelect = styled('select', {\n name: DSNativeSelectName,\n slot: NATIVE_SELECT_SLOTS.INPUT,\n})`\n height: 28px;\n appearance: none;\n background-color: transparent;\n border: none;\n color: ${({ theme }) => theme.colors.neutral['700']};\n cursor: pointer;\n outline: none;\n padding: 0;\n width: 100%;\n text-align: left;\n &:disabled {\n color: ${({ theme }) => theme.colors.neutral['600']};\n cursor: not-allowed;\n }\n z-index: 2;\n padding-left: 8px;\n padding-right: 28px;\n`;\n"],
|
|
5
5
|
"mappings": "AAAA,YAAY,WAAW;ACAvB,SAAS,QAAQ,WAAW;AAC5B,SAAS,YAAY;AACrB,SAAS,oBAAoB,2BAA2B;AAWxD,MAAM,iBAAiB;AAAA,sBACD,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,GAAG,CAAC;AAAA;AAG9D,MAAM,cAAc;AAAA,sBACE,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,OAAO,GAAG,CAAC;AAAA;AAG7D,MAAM,eAAe;AAAA,sBACC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,sBAC1C,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ,KAAK,CAAC;AAAA,6BACnC,CAAC,EAAE,MAAM,MAAM,MAAM,OAAO,QAAQ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C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-form-native-select",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.25",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Form Native Select",
|
|
6
6
|
"files": [
|
|
@@ -36,18 +36,18 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-grid": "3.70.0-next.
|
|
40
|
-
"@elliemae/ds-
|
|
41
|
-
"@elliemae/ds-
|
|
42
|
-
"@elliemae/ds-
|
|
43
|
-
"@elliemae/ds-system": "3.70.0-next.
|
|
39
|
+
"@elliemae/ds-grid": "3.70.0-next.25",
|
|
40
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.25",
|
|
41
|
+
"@elliemae/ds-typescript-helpers": "3.70.0-next.25",
|
|
42
|
+
"@elliemae/ds-icons": "3.70.0-next.25",
|
|
43
|
+
"@elliemae/ds-system": "3.70.0-next.25"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@elliemae/pui-theme": "~2.13.0",
|
|
47
47
|
"jest": "^30.0.0",
|
|
48
48
|
"styled-components": "~5.3.9",
|
|
49
49
|
"styled-system": "^5.1.5",
|
|
50
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-next.
|
|
50
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.25"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@elliemae/pui-theme": "~2.13.0",
|