@paubox/ui 0.21.0 → 0.22.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.
package/index.esm.js CHANGED
@@ -22424,7 +22424,7 @@ var ArrowIcon = styled(ChevronDown)(_templateObject$m(), spacing(1), function(pa
22424
22424
  var DropdownMenu = function(param) {
22425
22425
  var label = param.label, items = param.items, children = param.children, openProp = param.open, onOpenChange = param.onOpenChange, iconLeft = param.iconLeft, _param_size = param.size, size = _param_size === void 0 ? 'small' : _param_size, align = param.align, _param_buttonProps = param.buttonProps, buttonProps = _param_buttonProps === void 0 ? {
22426
22426
  color: 'primary'
22427
- } : _param_buttonProps, _param_testId = param.testId, testId = _param_testId === void 0 ? 'dropdown' : _param_testId, childContainerRefs = param.childContainerRefs;
22427
+ } : _param_buttonProps, _param_testId = param.testId, testId = _param_testId === void 0 ? 'dropdown' : _param_testId, childContainerRefs = param.childContainerRefs, disabled = param.disabled;
22428
22428
  var _useState = _sliced_to_array$e(useState(false), 2), open = _useState[0], setOpen = _useState[1];
22429
22429
  var buttonRef = useRef(null);
22430
22430
  var isControlled = openProp !== undefined && onOpenChange;
@@ -22437,7 +22437,8 @@ var DropdownMenu = function(param) {
22437
22437
  style: {
22438
22438
  whiteSpace: 'nowrap',
22439
22439
  borderColor: openProp || open ? primary600 : undefined
22440
- }
22440
+ },
22441
+ disabled: disabled
22441
22442
  }, buttonProps), {
22442
22443
  onClick: function() {
22443
22444
  if (isControlled) {
@@ -23708,7 +23709,7 @@ var MultiSelect = function(_param) {
23708
23709
  onClick: function() {
23709
23710
  return toggleSelect(option);
23710
23711
  }
23711
- }), option.label);
23712
+ }), option.value);
23712
23713
  })
23713
23714
  })
23714
23715
  ]
@@ -24520,7 +24521,7 @@ var Select = function(_param) {
24520
24521
  onClick: function() {
24521
24522
  return handleSelect(option);
24522
24523
  }
24523
- }), option.label);
24524
+ }), option.value);
24524
24525
  })
24525
24526
  })
24526
24527
  ]
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paubox/ui",
3
3
  "author": "Paubox, Inc.",
4
4
  "description": "Paubox Component Library",
5
- "version": "0.21.0",
5
+ "version": "0.22.0",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "publishConfig": {
@@ -1,5 +1,5 @@
1
- import { Button, MenuItemProps } from '@components';
2
1
  import { ComponentProps, ElementType, ReactNode, RefObject } from 'react';
2
+ import { Button, MenuItemProps } from '@components';
3
3
  export interface DropdownMenuProps {
4
4
  label: string;
5
5
  items?: MenuItemProps[];
@@ -12,5 +12,6 @@ export interface DropdownMenuProps {
12
12
  testId?: string;
13
13
  size?: 'small' | 'large';
14
14
  childContainerRefs?: RefObject<HTMLElement>[];
15
+ disabled?: boolean;
15
16
  }
16
- export declare const DropdownMenu: ({ label, items, children, open: openProp, onOpenChange, iconLeft, size, align, buttonProps, testId, childContainerRefs, }: DropdownMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
17
+ export declare const DropdownMenu: ({ label, items, children, open: openProp, onOpenChange, iconLeft, size, align, buttonProps, testId, childContainerRefs, disabled, }: DropdownMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;