@useblu/ocean-react 1.113.1 → 1.114.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/Chips/Options.d.ts.map +1 -1
  3. package/_shared/components/InternalListActions/InternalListActions.d.ts +10 -0
  4. package/_shared/components/InternalListActions/InternalListActions.d.ts.map +1 -0
  5. package/_shared/components/InternalListActions/components/DragHandle.d.ts +8 -0
  6. package/_shared/components/InternalListActions/components/DragHandle.d.ts.map +1 -0
  7. package/_shared/components/InternalListActions/components/MenuBackdrop.d.ts +7 -0
  8. package/_shared/components/InternalListActions/components/MenuBackdrop.d.ts.map +1 -0
  9. package/_shared/components/InternalListActions/components/MenuItem.d.ts +9 -0
  10. package/_shared/components/InternalListActions/components/MenuItem.d.ts.map +1 -0
  11. package/_shared/components/InternalListActions/components/MenuList.d.ts +16 -0
  12. package/_shared/components/InternalListActions/components/MenuList.d.ts.map +1 -0
  13. package/_shared/components/InternalListActions/components/TriggerButton.d.ts +11 -0
  14. package/_shared/components/InternalListActions/components/TriggerButton.d.ts.map +1 -0
  15. package/_shared/components/InternalListActions/components/index.d.ts +6 -0
  16. package/_shared/components/InternalListActions/components/index.d.ts.map +1 -0
  17. package/_shared/components/InternalListActions/constants.d.ts +5 -0
  18. package/_shared/components/InternalListActions/constants.d.ts.map +1 -0
  19. package/_shared/components/InternalListActions/hooks/index.d.ts +3 -0
  20. package/_shared/components/InternalListActions/hooks/index.d.ts.map +1 -0
  21. package/_shared/components/InternalListActions/hooks/useClickOutside.d.ts +3 -0
  22. package/_shared/components/InternalListActions/hooks/useClickOutside.d.ts.map +1 -0
  23. package/_shared/components/InternalListActions/hooks/useSwipeGesture.d.ts +3 -0
  24. package/_shared/components/InternalListActions/hooks/useSwipeGesture.d.ts.map +1 -0
  25. package/_shared/components/InternalListActions/index.d.ts +4 -0
  26. package/_shared/components/InternalListActions/index.d.ts.map +1 -0
  27. package/_shared/components/InternalListActions/types.d.ts +15 -0
  28. package/_shared/components/InternalListActions/types.d.ts.map +1 -0
  29. package/index.es.js +12 -7
  30. package/index.es.js.map +1 -1
  31. package/index.js +12 -7
  32. package/index.js.map +1 -1
  33. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.114.0](https://github.com/ocean-ds/ocean-web/compare/v1.113.2...v1.114.0) (2025-12-04)
7
+
8
+ ### Features
9
+
10
+ - create internal list actions ([#1194](https://github.com/ocean-ds/ocean-web/issues/1194)) ([dafce53](https://github.com/ocean-ds/ocean-web/commit/dafce530677eacd471f91af2d2a936042b14f2f5))
11
+
12
+ ## [1.113.2](https://github.com/ocean-ds/ocean-web/compare/v1.113.1...v1.113.2) (2025-12-03)
13
+
14
+ ### Bug Fixes
15
+
16
+ - chip multi select ([#1203](https://github.com/ocean-ds/ocean-web/issues/1203)) ([9943a81](https://github.com/ocean-ds/ocean-web/commit/9943a8160f8ab40eb8d325475c080d3ad7e32ffb))
17
+
6
18
  ## [1.113.1](https://github.com/ocean-ds/ocean-web/compare/v1.113.0...v1.113.1) (2025-11-26)
7
19
 
8
20
  ### Bug Fixes
@@ -1 +1 @@
1
- {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../src/Chips/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,UAAU,QAAQ;IAChB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1B,eAAe,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAiE9C,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Options.d.ts","sourceRoot":"","sources":["../../src/Chips/Options.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,UAAU,QAAQ;IAChB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1B,eAAe,EAAE,SAAS,EAAE,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,QAAA,MAAM,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAwF9C,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { ActionItem } from './types';
3
+ declare const InternalListActions: React.ForwardRefExoticComponent<{
4
+ actions: ActionItem[];
5
+ disabled?: boolean;
6
+ position?: "bottom-left" | "bottom-right" | "top-left" | "top-right";
7
+ actionType?: "menu" | "swipe";
8
+ } & Omit<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof React.HTMLAttributes<HTMLDivElement>>, "children"> & React.RefAttributes<HTMLDivElement>>;
9
+ export default InternalListActions;
10
+ //# sourceMappingURL=InternalListActions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InternalListActions.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/InternalListActions/InternalListActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAA4B,UAAU,EAAE,MAAM,SAAS,CAAC;AAK/D,QAAA,MAAM,mBAAmB;;;;;oMAgHxB,CAAC;AAIF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ interface DragHandleProps {
3
+ onClose: () => void;
4
+ onKeyDown: (e: React.KeyboardEvent) => void;
5
+ }
6
+ declare const DragHandle: React.FC<DragHandleProps>;
7
+ export default DragHandle;
8
+ //# sourceMappingURL=DragHandle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DragHandle.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/DragHandle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAEtC,UAAU,eAAe;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;CAC7C;AAKD,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA8DzC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ interface MenuBackdropProps {
3
+ onClick: () => void;
4
+ }
5
+ declare const MenuBackdrop: React.FC<MenuBackdropProps>;
6
+ export default MenuBackdrop;
7
+ //# sourceMappingURL=MenuBackdrop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuBackdrop.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/MenuBackdrop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAa7C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { ActionItem } from '../types';
3
+ interface MenuItemProps {
4
+ action: ActionItem;
5
+ onClick: (action: ActionItem) => void;
6
+ }
7
+ declare const MenuItem: React.FC<MenuItemProps>;
8
+ export default MenuItem;
9
+ //# sourceMappingURL=MenuItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuItem.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/MenuItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEtC,UAAU,aAAa;IACrB,MAAM,EAAE,UAAU,CAAC;IACnB,OAAO,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CACvC;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAgCrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { ActionItem } from '../types';
3
+ interface MenuListProps {
4
+ menuRef: React.RefObject<HTMLUListElement>;
5
+ actions: ActionItem[];
6
+ position: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
7
+ isClosing: boolean;
8
+ isSwipeMode: boolean;
9
+ onActionClick: (action: ActionItem) => void;
10
+ onClose: () => void;
11
+ onDragHandleKeyDown: (e: React.KeyboardEvent) => void;
12
+ triggerElement?: HTMLElement | null;
13
+ }
14
+ declare const MenuList: React.FC<MenuListProps>;
15
+ export default MenuList;
16
+ //# sourceMappingURL=MenuList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MenuList.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/MenuList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAC;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAItC,UAAU,aAAa;IACrB,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC3C,OAAO,EAAE,UAAU,EAAE,CAAC;IACtB,QAAQ,EAAE,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC;IACpE,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5C,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,mBAAmB,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,aAAa,KAAK,IAAI,CAAC;IACtD,cAAc,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACrC;AAED,QAAA,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA0FrC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface TriggerButtonProps {
3
+ triggerRef: React.RefObject<HTMLButtonElement>;
4
+ disabled: boolean;
5
+ isOpen: boolean;
6
+ isSwipeGesture: boolean;
7
+ onClick: () => void;
8
+ }
9
+ declare const TriggerButton: React.FC<TriggerButtonProps>;
10
+ export default TriggerButton;
11
+ //# sourceMappingURL=TriggerButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TriggerButton.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/TriggerButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC/C,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAyC/C,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { default as MenuBackdrop } from './MenuBackdrop';
2
+ export { default as DragHandle } from './DragHandle';
3
+ export { default as MenuItem } from './MenuItem';
4
+ export { default as MenuList } from './MenuList';
5
+ export { default as TriggerButton } from './TriggerButton';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const MOBILE_BREAKPOINT = 768;
2
+ export declare const CLOSE_ANIMATION_DURATION = 300;
3
+ export declare const SWIPE_THRESHOLD = 50;
4
+ export declare const VERTICAL_TOLERANCE = 30;
5
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/InternalListActions/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,MAAM,CAAC;AACrC,eAAO,MAAM,wBAAwB,MAAM,CAAC;AAC5C,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,kBAAkB,KAAK,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { default as useSwipeGesture } from './useSwipeGesture';
2
+ export { default as useClickOutside } from './useClickOutside';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/hooks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const useClickOutside: (ref: React.RefObject<HTMLElement>, isOpen: boolean, onClickOutside: () => void, menuRef?: React.RefObject<HTMLElement>) => void;
2
+ export default useClickOutside;
3
+ //# sourceMappingURL=useClickOutside.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useClickOutside.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/hooks/useClickOutside.ts"],"names":[],"mappings":"AAEA,QAAA,MAAM,eAAe,GACnB,KAAK,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EACjC,QAAQ,OAAO,EACf,gBAAgB,MAAM,IAAI,EAC1B,UAAU,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,KACrC,IAwBF,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const useSwipeGesture: (triggerRef: React.RefObject<HTMLButtonElement>, isSwipeMode: boolean, isOpen: boolean, onSwipeLeft: () => void) => void;
2
+ export default useSwipeGesture;
3
+ //# sourceMappingURL=useSwipeGesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSwipeGesture.d.ts","sourceRoot":"","sources":["../../../../../src/_shared/components/InternalListActions/hooks/useSwipeGesture.ts"],"names":[],"mappings":"AAGA,QAAA,MAAM,eAAe,GACnB,YAAY,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAC9C,aAAa,OAAO,EACpB,QAAQ,OAAO,EACf,aAAa,MAAM,IAAI,KACtB,IA6DF,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { default } from './InternalListActions';
2
+ export { default as InternalListActions } from './InternalListActions';
3
+ export type { ActionItem, InternalListActionsProps } from './types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/InternalListActions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACvE,YAAY,EAAE,UAAU,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ export type ActionItem = {
3
+ label: string;
4
+ onClick: () => void;
5
+ icon?: React.ReactNode;
6
+ disabled?: boolean;
7
+ variant?: 'default' | 'positive' | 'warning' | 'negative' | 'neutral';
8
+ };
9
+ export type InternalListActionsProps = {
10
+ actions: ActionItem[];
11
+ disabled?: boolean;
12
+ position?: 'bottom-left' | 'bottom-right' | 'top-left' | 'top-right';
13
+ actionType?: 'menu' | 'swipe';
14
+ } & Omit<ComponentPropsWithoutRef<'div'>, 'children'>;
15
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/_shared/components/InternalListActions/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IAIrC,OAAO,EAAE,UAAU,EAAE,CAAC;IAItB,QAAQ,CAAC,EAAE,OAAO,CAAC;IAInB,QAAQ,CAAC,EAAE,aAAa,GAAG,cAAc,GAAG,UAAU,GAAG,WAAW,CAAC;IAOrE,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CAC/B,GAAG,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,CAAC"}
package/index.es.js CHANGED
@@ -46923,16 +46923,21 @@ CardListItem.displayName = 'CardListItem';
46923
46923
  var Options = function (_a) {
46924
46924
  var options = _a.options, selectedOptions = _a.selectedOptions, clearLabel = _a.clearLabel, filterLabel = _a.filterLabel, multiChoice = _a.multiChoice, onSelect = _a.onSelect, filterOptions = _a.filterOptions, clearOptions = _a.clearOptions;
46925
46925
  var columns = multiChoice ? Math.ceil(options.length / 5) : 1;
46926
+ var isMultiArray = Array.isArray(selectedOptions);
46926
46927
  return (e.createElement("div", { className: "ods-chips__options", "data-testid": "ods-chips-option" },
46927
46928
  e.createElement("div", { className: classNames('ods-chips__options--content', "ods-chips__options--content--columns-".concat(columns)) }, options.map(function (_a) {
46928
46929
  var label = _a.label, value = _a.value;
46929
- return (e.createElement("button", { key: label, type: "button", value: value, onClick: function () { return onSelect(label, value); }, className: classNames('ods-chips__options--option', {
46930
- 'ods-chips__options--option--selected': !multiChoice &&
46931
- !Array.isArray(selectedOptions) &&
46932
- selectedOptions.value === value,
46933
- }) },
46934
- multiChoice && Array.isArray(selectedOptions) && (e.createElement(Checkbox, { checked: !!selectedOptions.find(function (option) { return option.value === value; }), readOnly: true })),
46935
- label));
46930
+ if (multiChoice && isMultiArray) {
46931
+ var isSelected_1 = selectedOptions.some(function (option) { return option.value === value; });
46932
+ return (e.createElement("div", { key: value, className: classNames('ods-chips__options--option', 'ods-chips__options--option-container', {
46933
+ 'ods-chips__options--option--selected': isSelected_1,
46934
+ }) },
46935
+ e.createElement(Checkbox, { checked: isSelected_1, id: "chips-option-".concat(value), onClick: function () { return onSelect(label, value); }, readOnly: true, label: label })));
46936
+ }
46937
+ var isSelected = !multiChoice && !isMultiArray && selectedOptions.value === value;
46938
+ return (e.createElement("button", { key: value, type: "button", value: value, onClick: function () { return onSelect(label, value); }, className: classNames('ods-chips__options--option', {
46939
+ 'ods-chips__options--option--selected': isSelected,
46940
+ }) }, label));
46936
46941
  })),
46937
46942
  multiChoice && (e.createElement("div", { className: "ods-chips__options--footer" },
46938
46943
  e.createElement("button", { type: "button", onClick: clearOptions, className: "ods-btn ods-btn--sm ods-btn--text" }, clearLabel),