@useblu/ocean-react 1.113.2 → 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.
- package/CHANGELOG.md +6 -0
- package/_shared/components/InternalListActions/InternalListActions.d.ts +10 -0
- package/_shared/components/InternalListActions/InternalListActions.d.ts.map +1 -0
- package/_shared/components/InternalListActions/components/DragHandle.d.ts +8 -0
- package/_shared/components/InternalListActions/components/DragHandle.d.ts.map +1 -0
- package/_shared/components/InternalListActions/components/MenuBackdrop.d.ts +7 -0
- package/_shared/components/InternalListActions/components/MenuBackdrop.d.ts.map +1 -0
- package/_shared/components/InternalListActions/components/MenuItem.d.ts +9 -0
- package/_shared/components/InternalListActions/components/MenuItem.d.ts.map +1 -0
- package/_shared/components/InternalListActions/components/MenuList.d.ts +16 -0
- package/_shared/components/InternalListActions/components/MenuList.d.ts.map +1 -0
- package/_shared/components/InternalListActions/components/TriggerButton.d.ts +11 -0
- package/_shared/components/InternalListActions/components/TriggerButton.d.ts.map +1 -0
- package/_shared/components/InternalListActions/components/index.d.ts +6 -0
- package/_shared/components/InternalListActions/components/index.d.ts.map +1 -0
- package/_shared/components/InternalListActions/constants.d.ts +5 -0
- package/_shared/components/InternalListActions/constants.d.ts.map +1 -0
- package/_shared/components/InternalListActions/hooks/index.d.ts +3 -0
- package/_shared/components/InternalListActions/hooks/index.d.ts.map +1 -0
- package/_shared/components/InternalListActions/hooks/useClickOutside.d.ts +3 -0
- package/_shared/components/InternalListActions/hooks/useClickOutside.d.ts.map +1 -0
- package/_shared/components/InternalListActions/hooks/useSwipeGesture.d.ts +3 -0
- package/_shared/components/InternalListActions/hooks/useSwipeGesture.d.ts.map +1 -0
- package/_shared/components/InternalListActions/index.d.ts +4 -0
- package/_shared/components/InternalListActions/index.d.ts.map +1 -0
- package/_shared/components/InternalListActions/types.d.ts +15 -0
- package/_shared/components/InternalListActions/types.d.ts.map +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
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
|
+
|
|
6
12
|
## [1.113.2](https://github.com/ocean-ds/ocean-web/compare/v1.113.1...v1.113.2) (2025-12-03)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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"}
|