@elliemae/ds-app-picker 3.70.0-next.34 → 3.70.0-next.36

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.
@@ -36,7 +36,9 @@ var import_jsx_runtime = require("react/jsx-runtime");
36
36
  var import_ds_button_v2 = require("@elliemae/ds-button-v2");
37
37
  var import_ds_system = require("@elliemae/ds-system");
38
38
  var import_constants = require("../constants/index.js");
39
- const StyledButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV3, { name: import_constants.DSAppPickerName, slot: import_constants.DSAppPickerSlots.BUTTON })``;
39
+ const StyledButton = (0, import_ds_system.styled)(import_ds_button_v2.DSButtonV3, { name: import_constants.DSAppPickerName, slot: import_constants.DSAppPickerSlots.BUTTON })`
40
+ height: fit-content;
41
+ `;
40
42
  const Trigger = ({ Icon, isOpen, setRef, ownerProps, onClick, renderTrigger }) => {
41
43
  if (renderTrigger) {
42
44
  return renderTrigger({ ref: setRef });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/parts/Trigger.tsx", "../../../../../../scripts/build/transpile/react-shim.js"],
4
- "sourcesContent": ["import React from 'react';\nimport { DSButtonV3 } from '@elliemae/ds-button-v2';\nimport { styled } from '@elliemae/ds-system';\nimport type { DSAppPickerT } from '../react-desc-prop-types.js';\nimport { DSAppPickerName, DSAppPickerSlots, DSAppPickerDataTestIds } from '../constants/index.js';\n\nconst StyledButton = styled(DSButtonV3, { name: DSAppPickerName, slot: DSAppPickerSlots.BUTTON })``;\n\ninterface TriggerProps {\n Icon: DSAppPickerT.InternalProps['icon'];\n isOpen: boolean;\n setRef: React.RefCallback<HTMLButtonElement>;\n ownerProps: { getOwnerProps: () => object; getOwnerPropsArguments: () => object };\n onClick: (e: React.MouseEvent | React.KeyboardEvent) => void;\n renderTrigger?: DSAppPickerT.OptionalProps['renderTrigger'];\n}\n\nexport const Trigger: React.FC<TriggerProps> = ({ Icon, isOpen, setRef, ownerProps, onClick, renderTrigger }) => {\n if (renderTrigger) {\n // Plain function call (not React element) preserves the legacy DSPopover render-prop contract:\n // consumers receive `ref` as a regular prop, no forwardRef required.\n return renderTrigger({ ref: setRef });\n }\n return (\n <StyledButton\n data-testid={DSAppPickerDataTestIds.BUTTON}\n id=\"app-picker__button\"\n buttonType=\"icon\"\n aria-haspopup=\"true\"\n aria-expanded={isOpen}\n aria-label=\"Application picker\"\n innerRef={setRef}\n onClick={onClick}\n getOwnerProps={ownerProps.getOwnerProps}\n getOwnerPropsArguments={ownerProps.getOwnerPropsArguments}\n >\n <Icon />\n </StyledButton>\n );\n};\n\nTrigger.displayName = 'DSAppPicker.Trigger';\n", "import * as React from 'react';\nexport { React };\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoCjB;AAnCN,0BAA2B;AAC3B,uBAAuB;AAEvB,uBAA0E;AAE1E,MAAM,mBAAe,yBAAO,gCAAY,EAAE,MAAM,kCAAiB,MAAM,kCAAiB,OAAO,CAAC;AAWzF,MAAM,UAAkC,CAAC,EAAE,MAAM,QAAQ,QAAQ,YAAY,SAAS,cAAc,MAAM;AAC/G,MAAI,eAAe;AAGjB,WAAO,cAAc,EAAE,KAAK,OAAO,CAAC;AAAA,EACtC;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,wCAAuB;AAAA,MACpC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,iBAAc;AAAA,MACd,iBAAe;AAAA,MACf,cAAW;AAAA,MACX,UAAU;AAAA,MACV;AAAA,MACA,eAAe,WAAW;AAAA,MAC1B,wBAAwB,WAAW;AAAA,MAEnC,sDAAC,QAAK;AAAA;AAAA,EACR;AAEJ;AAEA,QAAQ,cAAc;",
4
+ "sourcesContent": ["import React from 'react';\nimport { DSButtonV3 } from '@elliemae/ds-button-v2';\nimport { styled } from '@elliemae/ds-system';\nimport type { DSAppPickerT } from '../react-desc-prop-types.js';\nimport { DSAppPickerName, DSAppPickerSlots, DSAppPickerDataTestIds } from '../constants/index.js';\n\n// DSButtonV3 sizes itself with `min-height` (height stays `auto`) so multi-line labels can grow.\n// As a side effect, when the trigger is a direct grid/flex child of a consumer layout with the\n// default `align-items: stretch`, it stretches to fill the container height (PUI-18354 regression:\n// the legacy DSButtonV2 trigger used a fixed `height` and did not stretch). `height: fit-content`\n// pins the trigger to its intrinsic size \u2014 mirroring the button's own `width: fit-content` \u2014 so it\n// stays ~28px regardless of layout context.\n// DSButtonV3 sizes itself with `min-height` (height stays `auto`) so multi-line labels can grow.\n// As a side effect, when the trigger is a direct grid/flex child of a consumer layout with the\n// default `align-items: stretch`, it stretches to fill the container height (PUI-18354 regression:\n// the legacy DSButtonV2 trigger used a fixed `height` and did not stretch). `height: fit-content`\n// pins the trigger to its intrinsic size \u2014 mirroring the button's own `width: fit-content` \u2014 so it\n// stays ~28px regardless of layout context.\nconst StyledButton = styled(DSButtonV3, { name: DSAppPickerName, slot: DSAppPickerSlots.BUTTON })`\n height: fit-content;\n`;\n\ninterface TriggerProps {\n Icon: DSAppPickerT.InternalProps['icon'];\n isOpen: boolean;\n setRef: React.RefCallback<HTMLButtonElement>;\n ownerProps: { getOwnerProps: () => object; getOwnerPropsArguments: () => object };\n onClick: (e: React.MouseEvent | React.KeyboardEvent) => void;\n renderTrigger?: DSAppPickerT.OptionalProps['renderTrigger'];\n}\n\nexport const Trigger: React.FC<TriggerProps> = ({ Icon, isOpen, setRef, ownerProps, onClick, renderTrigger }) => {\n if (renderTrigger) {\n // Plain function call (not React element) preserves the legacy DSPopover render-prop contract:\n // consumers receive `ref` as a regular prop, no forwardRef required.\n return renderTrigger({ ref: setRef });\n }\n return (\n <StyledButton\n data-testid={DSAppPickerDataTestIds.BUTTON}\n id=\"app-picker__button\"\n buttonType=\"icon\"\n aria-haspopup=\"true\"\n aria-expanded={isOpen}\n aria-label=\"Application picker\"\n innerRef={setRef}\n onClick={onClick}\n getOwnerProps={ownerProps.getOwnerProps}\n getOwnerPropsArguments={ownerProps.getOwnerPropsArguments}\n >\n <Icon />\n </StyledButton>\n );\n};\n\nTrigger.displayName = 'DSAppPicker.Trigger';\n", "import * as React from 'react';\nexport { React };\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADkDjB;AAjDN,0BAA2B;AAC3B,uBAAuB;AAEvB,uBAA0E;AAc1E,MAAM,mBAAe,yBAAO,gCAAY,EAAE,MAAM,kCAAiB,MAAM,kCAAiB,OAAO,CAAC;AAAA;AAAA;AAazF,MAAM,UAAkC,CAAC,EAAE,MAAM,QAAQ,QAAQ,YAAY,SAAS,cAAc,MAAM;AAC/G,MAAI,eAAe;AAGjB,WAAO,cAAc,EAAE,KAAK,OAAO,CAAC;AAAA,EACtC;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,wCAAuB;AAAA,MACpC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,iBAAc;AAAA,MACd,iBAAe;AAAA,MACf,cAAW;AAAA,MACX,UAAU;AAAA,MACV;AAAA,MACA,eAAe,WAAW;AAAA,MAC1B,wBAAwB,WAAW;AAAA,MAEnC,sDAAC,QAAK;AAAA;AAAA,EACR;AAEJ;AAEA,QAAQ,cAAc;",
6
6
  "names": []
7
7
  }
@@ -3,7 +3,9 @@ import { jsx } from "react/jsx-runtime";
3
3
  import { DSButtonV3 } from "@elliemae/ds-button-v2";
4
4
  import { styled } from "@elliemae/ds-system";
5
5
  import { DSAppPickerName, DSAppPickerSlots, DSAppPickerDataTestIds } from "../constants/index.js";
6
- const StyledButton = styled(DSButtonV3, { name: DSAppPickerName, slot: DSAppPickerSlots.BUTTON })``;
6
+ const StyledButton = styled(DSButtonV3, { name: DSAppPickerName, slot: DSAppPickerSlots.BUTTON })`
7
+ height: fit-content;
8
+ `;
7
9
  const Trigger = ({ Icon, isOpen, setRef, ownerProps, onClick, renderTrigger }) => {
8
10
  if (renderTrigger) {
9
11
  return renderTrigger({ ref: setRef });
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../../../scripts/build/transpile/react-shim.js", "../../../src/parts/Trigger.tsx"],
4
- "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { DSButtonV3 } from '@elliemae/ds-button-v2';\nimport { styled } from '@elliemae/ds-system';\nimport type { DSAppPickerT } from '../react-desc-prop-types.js';\nimport { DSAppPickerName, DSAppPickerSlots, DSAppPickerDataTestIds } from '../constants/index.js';\n\nconst StyledButton = styled(DSButtonV3, { name: DSAppPickerName, slot: DSAppPickerSlots.BUTTON })``;\n\ninterface TriggerProps {\n Icon: DSAppPickerT.InternalProps['icon'];\n isOpen: boolean;\n setRef: React.RefCallback<HTMLButtonElement>;\n ownerProps: { getOwnerProps: () => object; getOwnerPropsArguments: () => object };\n onClick: (e: React.MouseEvent | React.KeyboardEvent) => void;\n renderTrigger?: DSAppPickerT.OptionalProps['renderTrigger'];\n}\n\nexport const Trigger: React.FC<TriggerProps> = ({ Icon, isOpen, setRef, ownerProps, onClick, renderTrigger }) => {\n if (renderTrigger) {\n // Plain function call (not React element) preserves the legacy DSPopover render-prop contract:\n // consumers receive `ref` as a regular prop, no forwardRef required.\n return renderTrigger({ ref: setRef });\n }\n return (\n <StyledButton\n data-testid={DSAppPickerDataTestIds.BUTTON}\n id=\"app-picker__button\"\n buttonType=\"icon\"\n aria-haspopup=\"true\"\n aria-expanded={isOpen}\n aria-label=\"Application picker\"\n innerRef={setRef}\n onClick={onClick}\n getOwnerProps={ownerProps.getOwnerProps}\n getOwnerPropsArguments={ownerProps.getOwnerPropsArguments}\n >\n <Icon />\n </StyledButton>\n );\n};\n\nTrigger.displayName = 'DSAppPicker.Trigger';\n"],
5
- "mappings": "AAAA,YAAY,WAAW;ACoCjB;AAnCN,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AAEvB,SAAS,iBAAiB,kBAAkB,8BAA8B;AAE1E,MAAM,eAAe,OAAO,YAAY,EAAE,MAAM,iBAAiB,MAAM,iBAAiB,OAAO,CAAC;AAWzF,MAAM,UAAkC,CAAC,EAAE,MAAM,QAAQ,QAAQ,YAAY,SAAS,cAAc,MAAM;AAC/G,MAAI,eAAe;AAGjB,WAAO,cAAc,EAAE,KAAK,OAAO,CAAC;AAAA,EACtC;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,uBAAuB;AAAA,MACpC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,iBAAc;AAAA,MACd,iBAAe;AAAA,MACf,cAAW;AAAA,MACX,UAAU;AAAA,MACV;AAAA,MACA,eAAe,WAAW;AAAA,MAC1B,wBAAwB,WAAW;AAAA,MAEnC,8BAAC,QAAK;AAAA;AAAA,EACR;AAEJ;AAEA,QAAQ,cAAc;",
4
+ "sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { DSButtonV3 } from '@elliemae/ds-button-v2';\nimport { styled } from '@elliemae/ds-system';\nimport type { DSAppPickerT } from '../react-desc-prop-types.js';\nimport { DSAppPickerName, DSAppPickerSlots, DSAppPickerDataTestIds } from '../constants/index.js';\n\n// DSButtonV3 sizes itself with `min-height` (height stays `auto`) so multi-line labels can grow.\n// As a side effect, when the trigger is a direct grid/flex child of a consumer layout with the\n// default `align-items: stretch`, it stretches to fill the container height (PUI-18354 regression:\n// the legacy DSButtonV2 trigger used a fixed `height` and did not stretch). `height: fit-content`\n// pins the trigger to its intrinsic size \u2014 mirroring the button's own `width: fit-content` \u2014 so it\n// stays ~28px regardless of layout context.\n// DSButtonV3 sizes itself with `min-height` (height stays `auto`) so multi-line labels can grow.\n// As a side effect, when the trigger is a direct grid/flex child of a consumer layout with the\n// default `align-items: stretch`, it stretches to fill the container height (PUI-18354 regression:\n// the legacy DSButtonV2 trigger used a fixed `height` and did not stretch). `height: fit-content`\n// pins the trigger to its intrinsic size \u2014 mirroring the button's own `width: fit-content` \u2014 so it\n// stays ~28px regardless of layout context.\nconst StyledButton = styled(DSButtonV3, { name: DSAppPickerName, slot: DSAppPickerSlots.BUTTON })`\n height: fit-content;\n`;\n\ninterface TriggerProps {\n Icon: DSAppPickerT.InternalProps['icon'];\n isOpen: boolean;\n setRef: React.RefCallback<HTMLButtonElement>;\n ownerProps: { getOwnerProps: () => object; getOwnerPropsArguments: () => object };\n onClick: (e: React.MouseEvent | React.KeyboardEvent) => void;\n renderTrigger?: DSAppPickerT.OptionalProps['renderTrigger'];\n}\n\nexport const Trigger: React.FC<TriggerProps> = ({ Icon, isOpen, setRef, ownerProps, onClick, renderTrigger }) => {\n if (renderTrigger) {\n // Plain function call (not React element) preserves the legacy DSPopover render-prop contract:\n // consumers receive `ref` as a regular prop, no forwardRef required.\n return renderTrigger({ ref: setRef });\n }\n return (\n <StyledButton\n data-testid={DSAppPickerDataTestIds.BUTTON}\n id=\"app-picker__button\"\n buttonType=\"icon\"\n aria-haspopup=\"true\"\n aria-expanded={isOpen}\n aria-label=\"Application picker\"\n innerRef={setRef}\n onClick={onClick}\n getOwnerProps={ownerProps.getOwnerProps}\n getOwnerPropsArguments={ownerProps.getOwnerPropsArguments}\n >\n <Icon />\n </StyledButton>\n );\n};\n\nTrigger.displayName = 'DSAppPicker.Trigger';\n"],
5
+ "mappings": "AAAA,YAAY,WAAW;ACkDjB;AAjDN,SAAS,kBAAkB;AAC3B,SAAS,cAAc;AAEvB,SAAS,iBAAiB,kBAAkB,8BAA8B;AAc1E,MAAM,eAAe,OAAO,YAAY,EAAE,MAAM,iBAAiB,MAAM,iBAAiB,OAAO,CAAC;AAAA;AAAA;AAazF,MAAM,UAAkC,CAAC,EAAE,MAAM,QAAQ,QAAQ,YAAY,SAAS,cAAc,MAAM;AAC/G,MAAI,eAAe;AAGjB,WAAO,cAAc,EAAE,KAAK,OAAO,CAAC;AAAA,EACtC;AACA,SACE;AAAA,IAAC;AAAA;AAAA,MACC,eAAa,uBAAuB;AAAA,MACpC,IAAG;AAAA,MACH,YAAW;AAAA,MACX,iBAAc;AAAA,MACd,iBAAe;AAAA,MACf,cAAW;AAAA,MACX,UAAU;AAAA,MACV;AAAA,MACA,eAAe,WAAW;AAAA,MAC1B,wBAAwB,WAAW;AAAA,MAEnC,8BAAC,QAAK;AAAA;AAAA,EACR;AAEJ;AAEA,QAAQ,cAAc;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-app-picker",
3
- "version": "3.70.0-next.34",
3
+ "version": "3.70.0-next.36",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - App Picker",
6
6
  "files": [
@@ -37,23 +37,23 @@
37
37
  },
38
38
  "dependencies": {
39
39
  "uid": "^2.0.2",
40
- "@elliemae/ds-button-v2": "3.70.0-next.34",
41
- "@elliemae/ds-floating-context": "3.70.0-next.34",
42
- "@elliemae/ds-chip": "3.70.0-next.34",
43
- "@elliemae/ds-grid": "3.70.0-next.34",
44
- "@elliemae/ds-hooks-focus-trap": "3.70.0-next.34",
45
- "@elliemae/ds-props-helpers": "3.70.0-next.34",
46
- "@elliemae/ds-system": "3.70.0-next.34",
47
- "@elliemae/ds-icons": "3.70.0-next.34",
48
- "@elliemae/ds-typography": "3.70.0-next.34"
40
+ "@elliemae/ds-button-v2": "3.70.0-next.36",
41
+ "@elliemae/ds-chip": "3.70.0-next.36",
42
+ "@elliemae/ds-floating-context": "3.70.0-next.36",
43
+ "@elliemae/ds-grid": "3.70.0-next.36",
44
+ "@elliemae/ds-hooks-focus-trap": "3.70.0-next.36",
45
+ "@elliemae/ds-props-helpers": "3.70.0-next.36",
46
+ "@elliemae/ds-icons": "3.70.0-next.36",
47
+ "@elliemae/ds-system": "3.70.0-next.36",
48
+ "@elliemae/ds-typography": "3.70.0-next.36"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@playwright/experimental-ct-react": "^1.60.0",
52
52
  "jest": "^30.0.0",
53
53
  "styled-components": "~5.3.9",
54
- "@elliemae/ds-monorepo-devops": "3.70.0-next.34",
55
- "@elliemae/ds-typescript-helpers": "3.70.0-next.34",
56
- "@elliemae/ds-test-utils": "3.70.0-next.34"
54
+ "@elliemae/ds-monorepo-devops": "3.70.0-next.36",
55
+ "@elliemae/ds-typescript-helpers": "3.70.0-next.36",
56
+ "@elliemae/ds-test-utils": "3.70.0-next.36"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": "^18.3.1",