@oliasoft-open-source/react-ui-library 7.1.0-beta-2 → 7.1.0-beta-4
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/README.md +0 -1
- package/dist/components/pop-confirm/pop-confirm.d.ts +1 -2
- package/dist/components/pop-confirm/pop-confirm.d.ts.map +1 -1
- package/dist/components/pop-confirm/pop-confirm.stories.d.ts.map +1 -1
- package/dist/components/popover/popover.d.ts +1 -6
- package/dist/components/popover/popover.d.ts.map +1 -1
- package/dist/components/popover/popover.stories.d.ts.map +1 -1
- package/dist/components/unit-slider/unit-slider.d.ts.map +1 -1
- package/dist/helpers/overlay-trigger/index.d.ts +2 -2
- package/dist/helpers/overlay-trigger/index.d.ts.map +1 -1
- package/dist/helpers/overlay-trigger/overlay-trigger-child.d.ts +5 -2
- package/dist/helpers/overlay-trigger/overlay-trigger-child.d.ts.map +1 -1
- package/dist/index.js +1095 -1095
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2457,7 +2457,6 @@ The `PopConfirm` component creates a popover with confirmation buttons, typicall
|
|
|
2457
2457
|
| `okText` | The text for the OK button. | `'Ok'` |
|
|
2458
2458
|
| `onClickOk` | The function called when the OK button is clicked. | `() => {}` |
|
|
2459
2459
|
| `disableConfirmButton` | If `true`, disable confirm button. | `false` |
|
|
2460
|
-
| `overflowContainer` | If `true`, the popover will overflow its container if necessary. | `false` |
|
|
2461
2460
|
| `testId` | Optional test id for testing purposes. | - |
|
|
2462
2461
|
|
|
2463
2462
|
### Usage Example
|
|
@@ -12,8 +12,7 @@ export interface IPopConfirmProps {
|
|
|
12
12
|
disableConfirmButton?: boolean;
|
|
13
13
|
okText?: string;
|
|
14
14
|
onClickOk?: (close?: TEmpty) => void;
|
|
15
|
-
overflowContainer?: boolean;
|
|
16
15
|
testId?: string;
|
|
17
16
|
}
|
|
18
|
-
export declare const PopConfirm: ({ children, placement, closeOnOutsideClick, fullWidth, title, cancelText, onClickCancel, okText, onClickOk, disableConfirmButton,
|
|
17
|
+
export declare const PopConfirm: ({ children, placement, closeOnOutsideClick, fullWidth, title, cancelText, onClickCancel, okText, onClickOk, disableConfirmButton, testId, }: IPopConfirmProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
18
|
//# sourceMappingURL=pop-confirm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pop-confirm.d.ts","sourceRoot":"","sources":["../../../src/components/pop-confirm/pop-confirm.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAIzD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,
|
|
1
|
+
{"version":3,"file":"pop-confirm.d.ts","sourceRoot":"","sources":["../../../src/components/pop-confirm/pop-confirm.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAIzD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,UAAU,GAAI,6IAYxB,gBAAgB,4CAwBlB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pop-confirm.stories.d.ts","sourceRoot":"","sources":["../../../src/components/pop-confirm/pop-confirm.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"pop-confirm.stories.d.ts","sourceRoot":"","sources":["../../../src/components/pop-confirm/pop-confirm.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAc,MAAM,eAAe,CAAC;wBA4CxD,IAAI;AA7BT,wBA6BU;AAGV,eAAO,MAAM,OAAO,oHAAoB,CAAC;AAEzC,eAAO,MAAM,MAAM,oHAAoB,CAAC;AAKxC,eAAO,MAAM,SAAS,oHAAoB,CAAC;AAK3C,eAAO,MAAM,oBAAoB,oHAAoB,CAAC"}
|
|
@@ -9,17 +9,12 @@ export interface IPopoverProps {
|
|
|
9
9
|
showCloseButton?: boolean;
|
|
10
10
|
testId?: string;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
-
overflowContainer?: boolean;
|
|
13
12
|
isOpen?: boolean;
|
|
14
13
|
onToggle?: (isOpen: boolean) => void;
|
|
15
14
|
toggleOnTriggerClick?: boolean;
|
|
16
15
|
/** When true, content outside the popover layer stays interactive (e.g. inline edit fields). */
|
|
17
16
|
isNonModal?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* TODO: Remove this prop when we have a better way to manage focus in UnitSlider
|
|
20
|
-
*
|
|
21
|
-
* When false, the trigger does not regain focus on close. Use with inline-edit triggers that open the popover from onFocus (e.g. UnitSlider).
|
|
22
|
-
*/
|
|
17
|
+
/** When false, the trigger does not regain focus on close. Use with inline-edit triggers that open the popover from onFocus (e.g. UnitSlider). */
|
|
23
18
|
restoreTriggerFocusOnClose?: boolean;
|
|
24
19
|
}
|
|
25
20
|
export declare const Popover: ({ children, content, placement, closeOnOutsideClick, fullWidth, showCloseButton, testId, disabled, isOpen: externalIsOpen, onToggle: externalOnToggle, toggleOnTriggerClick, isNonModal, restoreTriggerFocusOnClose, }: IPopoverProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAIZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAc,EAIZ,SAAS,EAMV,MAAM,OAAO,CAAC;AAGf,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAiBnD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,gGAAgG;IAChG,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kJAAkJ;IAClJ,0BAA0B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED,eAAO,MAAM,OAAO,GAAI,wNAcrB,aAAa,mDA2Hf,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAW,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"popover.stories.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAGtD,OAAO,EAAE,aAAa,EAAW,MAAM,WAAW,CAAC;wBA4C9C,IAAI;AAfT,wBAeU;AAIV,eAAO,MAAM,OAAO,iHAAoB,CAAC;AAEzC,eAAO,MAAM,YAAY,iHAAoB,CAAC;AAK9C,eAAO,MAAM,WAAW,iHAAoB,CAAC;AAM7C,eAAO,MAAM,SAAS,iHAAoB,CAAC;AAK3C,eAAO,MAAM,QAAQ,iHAAoB,CAAC;AAK1C,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,aAAa,CAYlD,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,OA4CtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit-slider.d.ts","sourceRoot":"","sources":["../../../src/components/unit-slider/unit-slider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG7E,OAAO,KAAK,EAAgB,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAQ5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAaD,eAAO,MAAM,UAAU,GAAI,6NAqBxB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"unit-slider.d.ts","sourceRoot":"","sources":["../../../src/components/unit-slider/unit-slider.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAG7E,OAAO,KAAK,EAAgB,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACzF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAQ5D,MAAM,WAAW,gBAAgB;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,mBAAmB,CAAC;IAC9B,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;IACvC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;IAC1C,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAC;CAC3C;AAaD,eAAO,MAAM,UAAU,GAAI,6NAqBxB,gBAAgB,4CAuJlB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { OverlayTriggerChild } from './overlay-trigger-child';
|
|
2
|
-
export type { IOverlayTriggerChildProps
|
|
1
|
+
export { OverlayTriggerChild, OverlayTriggerBehavior } from './overlay-trigger-child';
|
|
2
|
+
export type { IOverlayTriggerChildProps } from './overlay-trigger-child';
|
|
3
3
|
export { getLegacyTriggerStyle, getOverlayPortalRoot, getPageLayersRoot, hasOverlayTriggerChild, isDirectTriggerChild, isDisabledTrigger, isDomElementChild, isNativeFocusableChild, PAGE_LAYERS_ID, toAriaPlacement, } from './utils';
|
|
4
4
|
export type { OverlayTriggerElementProps } from './utils';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/overlay-trigger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/overlay-trigger/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACtF,YAAY,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,eAAe,GAChB,MAAM,SAAS,CAAC;AACjB,YAAY,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { CSSProperties, HTMLAttributes, ReactElement, ReactNode, Ref } from 'react';
|
|
2
2
|
import { OverlayTriggerElementProps } from './utils';
|
|
3
|
-
export
|
|
3
|
+
export declare enum OverlayTriggerBehavior {
|
|
4
|
+
PRESS = "press",
|
|
5
|
+
FOCUS = "focus"
|
|
6
|
+
}
|
|
4
7
|
export interface IOverlayTriggerChildProps {
|
|
5
8
|
children?: ReactNode;
|
|
6
|
-
/** `
|
|
9
|
+
/** `PRESS` for DialogTrigger/Popover; `FOCUS` for TooltipTrigger. */
|
|
7
10
|
behavior: OverlayTriggerBehavior;
|
|
8
11
|
isDisabled?: boolean;
|
|
9
12
|
testId?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-trigger-child.d.ts","sourceRoot":"","sources":["../../../src/helpers/overlay-trigger/overlay-trigger-child.tsx"],"names":[],"mappings":"AAAA,OAAc,EAGZ,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAEf,OAAO,EAAmE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAEtH,
|
|
1
|
+
{"version":3,"file":"overlay-trigger-child.d.ts","sourceRoot":"","sources":["../../../src/helpers/overlay-trigger/overlay-trigger-child.tsx"],"names":[],"mappings":"AAAA,OAAc,EAGZ,aAAa,EACb,cAAc,EAEd,YAAY,EACZ,SAAS,EACT,GAAG,EACJ,MAAM,OAAO,CAAC;AAEf,OAAO,EAAmE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAEtH,oBAAY,sBAAsB;IAChC,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,qEAAqE;IACrE,QAAQ,EAAE,sBAAsB,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IACrC,wEAAwE;IACxE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,CAAC,0BAA0B,CAAC,KAAK,YAAY,CAAC,0BAA0B,CAAC,CAAC;IAC7G,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,aAAa,CAAC,EAAE,cAAc,CAAC,eAAe,CAAC,CAAC;IAChD;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,yEAAyE;IACzE,cAAc,CAAC,EAAE,SAAS,OAAO,EAAE,CAAC;CACrC;AAED;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAAI,yIAWjC,yBAAyB,mDA4E3B,CAAC"}
|