@lumx/vue 4.12.1-next.2 → 4.13.0-next.0

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,6 +1,6 @@
1
1
  import { ComboboxButtonProps as UIProps, ComboboxButtonLabelDisplayMode, COMPONENT_NAME, CLASSNAME } from '@lumx/core/js/components/Combobox/ComboboxButton';
2
2
  import { VueToJSXProps } from '../../utils/VueToJSX';
3
- export type ComboboxButtonProps = VueToJSXProps<UIProps, 'label'> & {
3
+ export type ComboboxButtonProps = VueToJSXProps<UIProps, 'label' | 'renderButton'> & {
4
4
  /** The label for the button (used for ARIA and tooltip). */
5
5
  label: string;
6
6
  /** The currently selected value to display. */
@@ -18,7 +18,7 @@ declare const ComboboxButton: import('vue').DefineSetupFnComponent<ComboboxButto
18
18
  select: (option: {
19
19
  value: string;
20
20
  }) => true;
21
- }, {}, Omit<UIProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
21
+ }, {}, Omit<UIProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "renderButton"> & {
22
22
  class?: string;
23
23
  } & {
24
24
  /** The label for the button (used for ARIA and tooltip). */
@@ -27,7 +27,7 @@ export declare const Combobox: {
27
27
  select: (option: {
28
28
  value: string;
29
29
  }) => true;
30
- }, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children"> & {
30
+ }, {}, Omit<import('@lumx/core/js/components/Combobox/ComboboxButton').ComboboxButtonProps, "className" | "label" | import('@lumx/core/js/types').PropsToOverride | "children" | "renderButton"> & {
31
31
  class?: string;
32
32
  } & {
33
33
  label: string;
package/index.js CHANGED
@@ -2402,25 +2402,26 @@ const Sh = "lumx-combobox-button", xh = (e, {
2402
2402
  listboxId: i,
2403
2403
  isOpen: l,
2404
2404
  ref: c,
2405
- ...u
2406
- } = e, p = s === "show-tooltip" ? null : (s === "show-selection" && o ? o : null) || r;
2405
+ renderButton: u,
2406
+ ...d
2407
+ } = e, v = s === "show-tooltip" ? null : (s === "show-selection" && o ? o : null) || r, g = r === v || l, b = u || t;
2407
2408
  return f(n, {
2408
- className: r === p || l ? Zt() : void 0,
2409
+ className: g ? Zt() : void 0,
2409
2410
  label: r,
2410
2411
  closeMode: "hide",
2411
2412
  ariaLinkMode: "aria-labelledby"
2412
2413
  }, {
2413
- default: () => [f(t, S({
2414
+ default: () => [f(b, S({
2414
2415
  ref: c
2415
- }, u, {
2416
+ }, d, {
2416
2417
  className: I(a, Sh),
2417
2418
  role: "combobox",
2418
2419
  "aria-controls": i,
2419
2420
  "aria-haspopup": "listbox",
2420
2421
  "aria-expanded": l,
2421
2422
  "aria-activedescendant": ""
2422
- }), wh(p) ? p : {
2423
- default: () => [p]
2423
+ }), wh(v) ? v : {
2424
+ default: () => [v]
2424
2425
  })]
2425
2426
  });
2426
2427
  };