@elliemae/ds-form-layout-input-group 3.2.0 → 3.2.1-rc.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,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/InputGroup.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["import React, { WeakValidationMap, useMemo } from 'react';\nimport {\n describe,\n useValidateTypescriptPropTypes,\n useGetGlobalAttributes,\n useGetXstyledProps,\n} from '@elliemae/ds-utilities';\nimport { StyledContainer, StyledLeftAddon, StyledRightAddon, StyledInput } from './styled';\nimport { DSInputGroupT, propTypes } from './react-desc-prop-types';\nimport { InputGroupDataTestIds } from './exported-related';\nconst DSInputGroup: React.ComponentType<DSInputGroupT.Props> = (props) => {\n useValidateTypescriptPropTypes(props, propTypes);\n const { children, leftAddon, rightAddon } = props;\n const globals = useGetGlobalAttributes(props);\n const xstyledProps = useGetXstyledProps(props);\n const cols = useMemo(() => {\n if (leftAddon && rightAddon) {\n return ['max-content', 'auto', 'max-content'];\n }\n if (leftAddon && !rightAddon) {\n return ['max-content', 'auto'];\n }\n if (!leftAddon && rightAddon) {\n return ['auto', 'max-content'];\n }\n return ['auto'];\n }, [leftAddon, rightAddon]);\n return (\n <StyledContainer cols={cols} data-testid={InputGroupDataTestIds.CONTAINER} {...globals} {...xstyledProps}>\n {leftAddon && <StyledLeftAddon data-testid={InputGroupDataTestIds.LEFTADDON}>{leftAddon}</StyledLeftAddon>}\n <StyledInput data-testid={InputGroupDataTestIds.INPUTCONTAINER}>{children}</StyledInput>\n {rightAddon && <StyledRightAddon data-testid={InputGroupDataTestIds.RIGHTADDON}>{rightAddon}</StyledRightAddon>}\n </StyledContainer>\n );\n};\nDSInputGroup.propTypes = propTypes as WeakValidationMap<unknown>;\nDSInputGroup.displayName = 'DSInputGroup';\nconst DSInputGroupWithSchema = describe(DSInputGroup);\nDSInputGroupWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSInputGroup, DSInputGroupWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkD;AAClD,0BAKO;AACP,oBAAgF;AAChF,mCAAyC;AACzC,8BAAsC;AACtC,MAAM,eAAyD,CAAC,UAAU;AACxE,0DAA+B,OAAO,sCAAS;AAC/C,QAAM,EAAE,UAAU,WAAW,eAAe;AAC5C,QAAM,UAAU,gDAAuB,KAAK;AAC5C,QAAM,eAAe,4CAAmB,KAAK;AAC7C,QAAM,OAAO,0BAAQ,MAAM;AACzB,QAAI,aAAa,YAAY;AAC3B,aAAO,CAAC,eAAe,QAAQ,aAAa;AAAA,IAC9C;AACA,QAAI,aAAa,CAAC,YAAY;AAC5B,aAAO,CAAC,eAAe,MAAM;AAAA,IAC/B;AACA,QAAI,CAAC,aAAa,YAAY;AAC5B,aAAO,CAAC,QAAQ,aAAa;AAAA,IAC/B;AACA,WAAO,CAAC,MAAM;AAAA,EAChB,GAAG,CAAC,WAAW,UAAU,CAAC;AAC1B,SACE,mDAAC;AAAA,IAAgB;AAAA,IAAY,eAAa,8CAAsB;AAAA,KAAe,UAAa,eACzF,aAAa,mDAAC;AAAA,IAAgB,eAAa,8CAAsB;AAAA,KAAY,SAAU,GACxF,mDAAC;AAAA,IAAY,eAAa,8CAAsB;AAAA,KAAiB,QAAS,GACzE,cAAc,mDAAC;AAAA,IAAiB,eAAa,8CAAsB;AAAA,KAAa,UAAW,CAC9F;AAEJ;AACA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,kCAAS,YAAY;AACpD,uBAAuB,YAAY;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAvB,mBAAkD;AAClD,0BAKO;AACP,oBAAgF;AAChF,mCAAyC;AACzC,8BAAsC;AACtC,MAAM,eAAyD,CAAC,UAAU;AACxE,0DAA+B,OAAO,sCAAS;AAC/C,QAAM,EAAE,UAAU,WAAW,eAAe;AAC5C,QAAM,UAAU,gDAAuB,KAAK;AAC5C,QAAM,eAAe,4CAAmB,KAAK;AAC7C,QAAM,OAAO,0BAAQ,MAAM;AACzB,QAAI,aAAa,YAAY;AAC3B,aAAO,CAAC,eAAe,QAAQ,aAAa;AAAA,IAC9C;AACA,QAAI,aAAa,CAAC,YAAY;AAC5B,aAAO,CAAC,eAAe,MAAM;AAAA,IAC/B;AACA,QAAI,CAAC,aAAa,YAAY;AAC5B,aAAO,CAAC,QAAQ,aAAa;AAAA,IAC/B;AACA,WAAO,CAAC,MAAM;AAAA,EAChB,GAAG,CAAC,WAAW,UAAU,CAAC;AAC1B,SACE,mDAAC;AAAA,IAAgB;AAAA,IAAY,eAAa,8CAAsB;AAAA,KAAe,UAAa,eACzF,aAAa,mDAAC;AAAA,IAAgB,eAAa,8CAAsB;AAAA,KAAY,SAAU,GACxF,mDAAC;AAAA,IAAY,eAAa,8CAAsB;AAAA,KAAiB,QAAS,GACzE,cAAc,mDAAC;AAAA,IAAiB,eAAa,8CAAsB;AAAA,KAAa,UAAW,CAC9F;AAEJ;AACA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,kCAAS,YAAY;AACpD,uBAAuB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/exported-related/data-test-ids.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export const InputGroupDataTestIds = {\n CONTAINER: 'ds-input-group-container',\n LEFTADDON: 'ds-input-group-left-addon',\n RIGHTADDON: 'ds-input-group-right-addon',\n INPUTCONTAINER: 'ds-input-group-input-container',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,wBAAwB;AAAA,EACnC,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAClB;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,wBAAwB;AAAA,EACnC,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAClB;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/exported-related/index.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export * from './data-test-ids';\nexport * from './theming';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAAc,4BAAd;AACA,qCAAc,sBADd;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADAvB,qCAAc,4BAAd;AACA,qCAAc,sBADd;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../src/exported-related/theming.ts", "../../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["export const DSInputGroupName = 'ds-input-group';\n\nexport const DSInputGroupSlots = {\n CONTAINER: 'root',\n LEFT_ADDON: 'leftaddon',\n RIGHT_ADDON: 'rightaddon',\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,mBAAmB;AAEzB,MAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADAhB,MAAM,mBAAmB;AAEzB,MAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf;",
6
6
  "names": []
7
7
  }
package/dist/cjs/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["// export { CBContainer, CBContainerWithSchema } from './parts/cb-container';\nexport * from './exported-related';\nexport * from './InputGroup';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADCvB,wBAAc,+BADd;AAEA,wBAAc,yBAFd;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;ACAA,YAAuB;ADCvB,wBAAc,+BADd;AAEA,wBAAc,yBAFd;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/react-desc-prop-types.ts", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-unused-vars */\nimport React from 'react';\nimport { PropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSInputGroupT {\n export interface RequiredProps {\n children: React.ReactChild;\n }\n export interface OptionalProps {\n leftAddon?: React.ReactNode;\n rightAddon?: React.ReactNode;\n }\n\n export interface Props extends Partial<OptionalProps>, RequiredProps {}\n\n export interface InternalProps extends OptionalProps, RequiredProps {}\n}\n\nexport const propTypes = {\n leftAddon: PropTypes.element.description('Component to be added at the left side of the input'),\n rightAddon: PropTypes.element.description('Component to be added at the right side of the input'),\n children: PropTypes.node.isRequired\n .description('React component to apply autocomplete functionality')\n .defaultValue(''),\n};\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,0BAA0B;AAgBnB,MAAM,YAAY;AAAA,EACvB,WAAW,8BAAU,QAAQ,YAAY,qDAAqD;AAAA,EAC9F,YAAY,8BAAU,QAAQ,YAAY,sDAAsD;AAAA,EAChG,UAAU,8BAAU,KAAK,WACtB,YAAY,qDAAqD,EACjE,aAAa,EAAE;AACpB;",
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,0BAA0B;AAgBnB,MAAM,YAAY;AAAA,EACvB,WAAW,8BAAU,QAAQ,YAAY,qDAAqD;AAAA,EAC9F,YAAY,8BAAU,QAAQ,YAAY,sDAAsD;AAAA,EAChG,UAAU,8BAAU,KAAK,WACtB,YAAY,qDAAqD,EACjE,aAAa,EAAE;AACpB;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../src/styled.tsx", "../../../../scripts/build/transpile/react-shim.js"],
4
4
  "sourcesContent": ["/* eslint-disable @typescript-eslint/no-unsafe-assignment */\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSInputTextName, DSInputTextSlots } from '@elliemae/ds-form-input-text';\nimport { DSComboBoxName, DSComboboxSlots } from '@elliemae/ds-form-combobox';\nimport { DSInputGroupName, DSInputGroupSlots } from './exported-related';\n\nexport const StyledContainer = styled(Grid, {\n name: DSInputGroupName,\n slot: DSInputGroupSlots.CONTAINER,\n})`\n width: 100%;\n height: 28px;\n\n // input in left position with right addon\n & > div:nth-child(1) {\n .${DSInputTextName}-${DSInputTextSlots.INPUT_WRAPPER},\n .${DSInputTextName}-${DSInputTextSlots.INPUT},\n .${DSComboBoxName}-${DSComboboxSlots.INPUT_WRAPPER} {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n\n // input in center position with left and right addon\n & > div:nth-child(2):nth-last-child(2) {\n .${DSInputTextName}-${DSInputTextSlots.INPUT_WRAPPER},\n .${DSInputTextName}-${DSInputTextSlots.INPUT},\n .${DSComboBoxName}-${DSComboboxSlots.INPUT_WRAPPER} {\n border-radius: 0;\n }\n }\n\n // input in right position with left addon\n & > div:nth-child(2):nth-last-child(1) {\n .${DSInputTextName}-${DSInputTextSlots.INPUT_WRAPPER},\n .${DSInputTextName}-${DSInputTextSlots.INPUT},\n .${DSComboBoxName}-${DSComboboxSlots.INPUT_WRAPPER} {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n }\n`;\n\nconst StyledAddon = styled.div`\n outline: 1px solid ${({ theme }) => theme.colors.neutral['400']};\n outline-offset: -1px;\n height: inherit;\n display: flex;\n button {\n border-width: 1px;\n }\n &:hover {\n z-index: 2;\n button:not(:disabled) {\n border: 1px solid ${({ theme }) => theme.colors.brand['700']};\n }\n }\n &:focus-within {\n z-index: 2;\n }\n`;\nexport const StyledLeftAddon = styled(StyledAddon, {\n name: DSInputGroupName,\n slot: DSInputGroupSlots.LEFT_ADDON,\n})`\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n margin-right: -1px;\n &:hover {\n button:not(:disabled) {\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n }\n }\n`;\n\nexport const StyledRightAddon = styled(StyledAddon, {\n name: DSInputGroupName,\n slot: DSInputGroupSlots.RIGHT_ADDON,\n})`\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n margin-left: -1px;\n &:hover {\n button:not(:disabled) {\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n }\n`;\n\nexport const StyledInput = styled.div`\n z-index: 1;\n`;\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADCvB,uBAAuB;AACvB,qBAAqB;AACrB,gCAAkD;AAClD,8BAAgD;AAChD,8BAAoD;AAE7C,MAAM,kBAAkB,6BAAO,qBAAM;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM,0CAAkB;AAC1B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAMM,6CAAmB,2CAAiB;AAAA,SAClC,6CAAmB,2CAAiB;AAAA,SACpC,0CAAkB,wCAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAQpC,6CAAmB,2CAAiB;AAAA,SAClC,6CAAmB,2CAAiB;AAAA,SACpC,0CAAkB,wCAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAOpC,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B,2CAAiB;AAAA,SAClC,6CAAmB,2CAAiB;AAAA,SACpC,0CAAkB,wCAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAO3C,MAAM,cAAc,wBAAO;AAAA,uBACJ,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAUjC,CAAC,EAAE,YAAY,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOrD,MAAM,kBAAkB,6BAAO,aAAa;AAAA,EACjD,MAAM;AAAA,EACN,MAAM,0CAAkB;AAC1B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYM,MAAM,mBAAmB,6BAAO,aAAa;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,0CAAkB;AAC1B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYM,MAAM,cAAc,wBAAO;AAAA;AAAA;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
3
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/InputGroup.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React, { WeakValidationMap, useMemo } from 'react';\nimport {\n describe,\n useValidateTypescriptPropTypes,\n useGetGlobalAttributes,\n useGetXstyledProps,\n} from '@elliemae/ds-utilities';\nimport { StyledContainer, StyledLeftAddon, StyledRightAddon, StyledInput } from './styled';\nimport { DSInputGroupT, propTypes } from './react-desc-prop-types';\nimport { InputGroupDataTestIds } from './exported-related';\nconst DSInputGroup: React.ComponentType<DSInputGroupT.Props> = (props) => {\n useValidateTypescriptPropTypes(props, propTypes);\n const { children, leftAddon, rightAddon } = props;\n const globals = useGetGlobalAttributes(props);\n const xstyledProps = useGetXstyledProps(props);\n const cols = useMemo(() => {\n if (leftAddon && rightAddon) {\n return ['max-content', 'auto', 'max-content'];\n }\n if (leftAddon && !rightAddon) {\n return ['max-content', 'auto'];\n }\n if (!leftAddon && rightAddon) {\n return ['auto', 'max-content'];\n }\n return ['auto'];\n }, [leftAddon, rightAddon]);\n return (\n <StyledContainer cols={cols} data-testid={InputGroupDataTestIds.CONTAINER} {...globals} {...xstyledProps}>\n {leftAddon && <StyledLeftAddon data-testid={InputGroupDataTestIds.LEFTADDON}>{leftAddon}</StyledLeftAddon>}\n <StyledInput data-testid={InputGroupDataTestIds.INPUTCONTAINER}>{children}</StyledInput>\n {rightAddon && <StyledRightAddon data-testid={InputGroupDataTestIds.RIGHTADDON}>{rightAddon}</StyledRightAddon>}\n </StyledContainer>\n );\n};\nDSInputGroup.propTypes = propTypes as WeakValidationMap<unknown>;\nDSInputGroup.displayName = 'DSInputGroup';\nconst DSInputGroupWithSchema = describe(DSInputGroup);\nDSInputGroupWithSchema.propTypes = propTypes as WeakValidationMap<unknown>;\n\nexport { DSInputGroup, DSInputGroupWithSchema };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;AAAA;ACAA;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA;AACA;AACA;AACA,MAAM,eAAyD,CAAC,UAAU;AACxE,iCAA+B,OAAO,SAAS;AAC/C,QAAM,EAAE,UAAU,WAAW,eAAe;AAC5C,QAAM,UAAU,uBAAuB,KAAK;AAC5C,QAAM,eAAe,mBAAmB,KAAK;AAC7C,QAAM,OAAO,QAAQ,MAAM;AACzB,QAAI,aAAa,YAAY;AAC3B,aAAO,CAAC,eAAe,QAAQ,aAAa;AAAA,IAC9C;AACA,QAAI,aAAa,CAAC,YAAY;AAC5B,aAAO,CAAC,eAAe,MAAM;AAAA,IAC/B;AACA,QAAI,CAAC,aAAa,YA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AAa,sBAAsB;AAAA,KAAiB,QAAS,GACzE,cAAc,qCAAC;AAAA,IAAiB,eAAa,sBAAsB;AAAA,KAAa,UAAW,CAC9F;AAEJ;AACA,aAAa,YAAY;AACzB,aAAa,cAAc;AAC3B,MAAM,yBAAyB,SAAS,YAAY;AACpD,uBAAuB,YAAY;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import * as React from "react";
2
3
  const InputGroupDataTestIds = {
3
4
  CONTAINER: "ds-input-group-container",
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported-related/data-test-ids.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const InputGroupDataTestIds = {\n CONTAINER: 'ds-input-group-container',\n LEFTADDON: 'ds-input-group-left-addon',\n RIGHTADDON: 'ds-input-group-right-addon',\n INPUTCONTAINER: 'ds-input-group-input-container',\n};\n"],
5
- "mappings": "AAAA;ACAO,MAAM,wBAAwB;AAAA,EACnC,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAClB;",
5
+ "mappings": ";AAAA;ACAO,MAAM,wBAAwB;AAAA,EACnC,WAAW;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,gBAAgB;AAClB;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import * as React from "react";
2
3
  export * from "./data-test-ids";
3
4
  export * from "./theming";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported-related/index.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export * from './data-test-ids';\nexport * from './theming';\n"],
5
- "mappings": "AAAA;ACAA;AACA;",
5
+ "mappings": ";AAAA;ACAA;AACA;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import * as React from "react";
2
3
  const DSInputGroupName = "ds-input-group";
3
4
  const DSInputGroupSlots = {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../../src/exported-related/theming.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "export const DSInputGroupName = 'ds-input-group';\n\nexport const DSInputGroupSlots = {\n CONTAINER: 'root',\n LEFT_ADDON: 'leftaddon',\n RIGHT_ADDON: 'rightaddon',\n};\n"],
5
- "mappings": "AAAA;ACAO,MAAM,mBAAmB;AAEzB,MAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf;",
5
+ "mappings": ";AAAA;ACAO,MAAM,mBAAmB;AAEzB,MAAM,oBAAoB;AAAA,EAC/B,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,aAAa;AACf;",
6
6
  "names": []
7
7
  }
package/dist/esm/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import * as React from "react";
2
3
  export * from "./exported-related";
3
4
  export * from "./InputGroup";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/index.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "// export { CBContainer, CBContainerWithSchema } from './parts/cb-container';\nexport * from './exported-related';\nexport * from './InputGroup';\n"],
5
- "mappings": "AAAA;ACCA;AACA;",
5
+ "mappings": ";AAAA;ACCA;AACA;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import * as React from "react";
2
3
  import { PropTypes } from "@elliemae/ds-utilities";
3
4
  const propTypes = {
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-unused-vars */\nimport React from 'react';\nimport { PropTypes } from '@elliemae/ds-utilities';\n\nexport declare namespace DSInputGroupT {\n export interface RequiredProps {\n children: React.ReactChild;\n }\n export interface OptionalProps {\n leftAddon?: React.ReactNode;\n rightAddon?: React.ReactNode;\n }\n\n export interface Props extends Partial<OptionalProps>, RequiredProps {}\n\n export interface InternalProps extends OptionalProps, RequiredProps {}\n}\n\nexport const propTypes = {\n leftAddon: PropTypes.element.description('Component to be added at the left side of the input'),\n rightAddon: PropTypes.element.description('Component to be added at the right side of the input'),\n children: PropTypes.node.isRequired\n .description('React component to apply autocomplete functionality')\n .defaultValue(''),\n};\n"],
5
- "mappings": "AAAA;ACGA;AAgBO,MAAM,YAAY;AAAA,EACvB,WAAW,UAAU,QAAQ,YAAY,qDAAqD;AAAA,EAC9F,YAAY,UAAU,QAAQ,YAAY,sDAAsD;AAAA,EAChG,UAAU,UAAU,KAAK,WACtB,YAAY,qDAAqD,EACjE,aAAa,EAAE;AACpB;",
5
+ "mappings": ";AAAA;ACGA;AAgBO,MAAM,YAAY;AAAA,EACvB,WAAW,UAAU,QAAQ,YAAY,qDAAqD;AAAA,EAC9F,YAAY,UAAU,QAAQ,YAAY,sDAAsD;AAAA,EAChG,UAAU,UAAU,KAAK,WACtB,YAAY,qDAAqD,EACjE,aAAa,EAAE;AACpB;",
6
6
  "names": []
7
7
  }
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  import * as React from "react";
2
3
  import { styled } from "@elliemae/ds-system";
3
4
  import { Grid } from "@elliemae/ds-grid";
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../../../scripts/build/transpile/react-shim.js", "../../src/styled.tsx"],
4
4
  "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-unsafe-assignment */\nimport { styled } from '@elliemae/ds-system';\nimport { Grid } from '@elliemae/ds-grid';\nimport { DSInputTextName, DSInputTextSlots } from '@elliemae/ds-form-input-text';\nimport { DSComboBoxName, DSComboboxSlots } from '@elliemae/ds-form-combobox';\nimport { DSInputGroupName, DSInputGroupSlots } from './exported-related';\n\nexport const StyledContainer = styled(Grid, {\n name: DSInputGroupName,\n slot: DSInputGroupSlots.CONTAINER,\n})`\n width: 100%;\n height: 28px;\n\n // input in left position with right addon\n & > div:nth-child(1) {\n .${DSInputTextName}-${DSInputTextSlots.INPUT_WRAPPER},\n .${DSInputTextName}-${DSInputTextSlots.INPUT},\n .${DSComboBoxName}-${DSComboboxSlots.INPUT_WRAPPER} {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n }\n }\n\n // input in center position with left and right addon\n & > div:nth-child(2):nth-last-child(2) {\n .${DSInputTextName}-${DSInputTextSlots.INPUT_WRAPPER},\n .${DSInputTextName}-${DSInputTextSlots.INPUT},\n .${DSComboBoxName}-${DSComboboxSlots.INPUT_WRAPPER} {\n border-radius: 0;\n }\n }\n\n // input in right position with left addon\n & > div:nth-child(2):nth-last-child(1) {\n .${DSInputTextName}-${DSInputTextSlots.INPUT_WRAPPER},\n .${DSInputTextName}-${DSInputTextSlots.INPUT},\n .${DSComboBoxName}-${DSComboboxSlots.INPUT_WRAPPER} {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n }\n }\n`;\n\nconst StyledAddon = styled.div`\n outline: 1px solid ${({ theme }) => theme.colors.neutral['400']};\n outline-offset: -1px;\n height: inherit;\n display: flex;\n button {\n border-width: 1px;\n }\n &:hover {\n z-index: 2;\n button:not(:disabled) {\n border: 1px solid ${({ theme }) => theme.colors.brand['700']};\n }\n }\n &:focus-within {\n z-index: 2;\n }\n`;\nexport const StyledLeftAddon = styled(StyledAddon, {\n name: DSInputGroupName,\n slot: DSInputGroupSlots.LEFT_ADDON,\n})`\n border-top-left-radius: 2px;\n border-bottom-left-radius: 2px;\n margin-right: -1px;\n &:hover {\n button:not(:disabled) {\n border-top-right-radius: 0px;\n border-bottom-right-radius: 0px;\n }\n }\n`;\n\nexport const StyledRightAddon = styled(StyledAddon, {\n name: DSInputGroupName,\n slot: DSInputGroupSlots.RIGHT_ADDON,\n})`\n border-top-right-radius: 2px;\n border-bottom-right-radius: 2px;\n margin-left: -1px;\n &:hover {\n button:not(:disabled) {\n border-top-left-radius: 0px;\n border-bottom-left-radius: 0px;\n }\n }\n`;\n\nexport const StyledInput = styled.div`\n z-index: 1;\n`;\n"],
5
- "mappings": "AAAA;ACCA;AACA;AACA;AACA;AACA;AAEO,MAAM,kBAAkB,OAAO,MAAM;AAAA,EAC1C,MAAM;AAAA,EACN,MAAM,kBAAkB;AAC1B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAMM,mBAAmB,iBAAiB;AAAA,SAClC,mBAAmB,iBAAiB;AAAA,SACpC,kBAAkB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAQpC,mBAAmB,iBAAiB;AAAA,SAClC,mBAAmB,iBAAiB;AAAA,SACpC,kBAAkB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,OAOpC,mBAAmB,iBAAiB;AAAA,SAClC,mBAAmB,iBAAiB;AAAA,SACpC,kBAAkB,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAO3C,MAAM,cAAc,OAAO;AAAA,uBACJ,CAAC,EAAE,YAAY,MAAM,OAAO,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAUjC,CAAC,EAAE,YAAY,MAAM,OAAO,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAOrD,MAAM,kBAAkB,OAAO,aAAa;AAAA,EACjD,MAAM;AAAA,EACN,MAAM,kBAAkB;AAC1B,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYM,MAAM,mBAAmB,OAAO,aAAa;AAAA,EAClD,MAAM;AAAA,EACN,MAAM,k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package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-form-layout-input-group",
3
- "version": "3.2.0",
3
+ "version": "3.2.1-rc.2",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Form Layout - Input Group",
6
6
  "files": [
@@ -35,15 +35,15 @@
35
35
  "indent": 4
36
36
  },
37
37
  "dependencies": {
38
- "@elliemae/ds-form-combobox": "3.2.0",
39
- "@elliemae/ds-form-input-text": "3.2.0",
40
- "@elliemae/ds-grid": "3.2.0",
41
- "@elliemae/ds-system": "3.2.0",
42
- "@elliemae/ds-utilities": "3.2.0",
38
+ "@elliemae/ds-form-combobox": "3.2.1-rc.2",
39
+ "@elliemae/ds-form-input-text": "3.2.1-rc.2",
40
+ "@elliemae/ds-grid": "3.2.1-rc.2",
41
+ "@elliemae/ds-system": "3.2.1-rc.2",
42
+ "@elliemae/ds-utilities": "3.2.1-rc.2",
43
43
  "styled-components": "~5.3.5"
44
44
  },
45
45
  "devDependencies": {
46
- "@elliemae/ds-button": "3.2.0",
46
+ "@elliemae/ds-button": "3.2.1-rc.2",
47
47
  "@elliemae/pui-theme": "~2.6.0",
48
48
  "@testing-library/dom": "~8.13.0",
49
49
  "@testing-library/jest-dom": "~5.16.4",