@geneui/components 3.0.0-next-b458115-12022025 → 3.0.0-next-ca44d76-15022025

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,25 +1,6 @@
1
1
  import { _ as _objectWithoutProperties, a as _extends } from './ArrowLeft-b88e2ba8.js';
2
2
  import React__default from 'react';
3
3
 
4
- var _excluded$1 = ["size", "color"];
5
- var SvgErrorAlertFill = function SvgErrorAlertFill(_ref) {
6
- var _ref$size = _ref.size,
7
- size = _ref$size === void 0 ? 24 : _ref$size,
8
- _ref$color = _ref.color,
9
- color = _ref$color === void 0 ? "currentColor" : _ref$color,
10
- props = _objectWithoutProperties(_ref, _excluded$1);
11
- return /*#__PURE__*/React__default.createElement("svg", _extends({
12
- width: size,
13
- height: size,
14
- viewBox: "0 0 24 24",
15
- fill: color,
16
- xmlns: "http://www.w3.org/2000/svg"
17
- }, props), /*#__PURE__*/React__default.createElement("path", {
18
- d: "M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-.75 5.758a.75.75 0 1 1 1.5 0v5.243a.75.75 0 1 1-1.5 0v-5.243Zm.75 9.235a.915.915 0 1 1 0-1.83.915.915 0 0 1 0 1.83Z",
19
- fill: color
20
- }));
21
- };
22
-
23
4
  var _excluded = ["size", "color"];
24
5
  var SvgWarningFill = function SvgWarningFill(_ref) {
25
6
  var _ref$size = _ref.size,
@@ -41,4 +22,4 @@ var SvgWarningFill = function SvgWarningFill(_ref) {
41
22
  }));
42
23
  };
43
24
 
44
- export { SvgErrorAlertFill as S, SvgWarningFill as a };
25
+ export { SvgWarningFill as S };
@@ -32,7 +32,7 @@ interface IButtonProps {
32
32
  /**
33
33
  * The text will shown as content of the `button`.
34
34
  */
35
- text?: string;
35
+ children?: string;
36
36
  /**
37
37
  * The `Icon` prop accepts a React Functional Component that will be displayed alongside the button text.
38
38
  */
@@ -0,0 +1,8 @@
1
+ import { Placement } from "@floating-ui/utils";
2
+ export declare const getPositionRect: (currentPopoverRect: DOMRect, position: Placement) => DOMRect | {
3
+ top: number;
4
+ left: number;
5
+ bottom: number;
6
+ right: number;
7
+ };
8
+ export declare const calculateOverlap: (rect1: DOMRect, rect2: DOMRect) => number;
@@ -0,0 +1,64 @@
1
+ import { Dispatch, FC, ReactNode, SetStateAction } from "react";
2
+ import "./Popover.scss";
3
+ type Positions = "bottom" | "bottom-start" | "bottom-end" | "left-end" | "left" | "left-start" | "right-end" | "right" | "right-start" | "top" | "top-start" | "top-end" | "auto";
4
+ export declare const correctPosition: Record<string, Positions>;
5
+ export type StaticSides = "bottom" | "left" | "right" | "top";
6
+ export declare const staticSides: Record<string, StaticSides>;
7
+ export interface IPopoverProps {
8
+ /**
9
+ * Whether the popover is open initially. Defaults value is `false`.
10
+ */
11
+ isOpen?: boolean;
12
+ /**
13
+ * Define width and height of the popover.<br>
14
+ * Possible values: <code> xLarge | large | medium | small </code>
15
+ */
16
+ size?: "xLarge" | "large" | "medium" | "small" | "mobile";
17
+ /**
18
+ * Title displayed in the popover header.
19
+ */
20
+ title?: string;
21
+ /**
22
+ * Position of the popover, relative to the target.<br><br>
23
+ * Possible values: <code> bottom-center | bottom-left | bottom-right | left-bottom | left-center | left-top | <br><br> right-bottom | right-center | right-top | top-center | top-left | top-right | auto </code>
24
+ */
25
+ position?: keyof typeof correctPosition;
26
+ /**
27
+ * Padding between the popover and its target element.
28
+ */
29
+ padding?: number;
30
+ /**
31
+ * If `true`, the popover is always visible.
32
+ */
33
+ alwaysShow?: boolean;
34
+ /**
35
+ * Function to update popover props dynamically.
36
+ */
37
+ setProps: Dispatch<SetStateAction<Record<string, unknown>>>;
38
+ /**
39
+ * Additional content displayed in the popover footer.
40
+ */
41
+ footerContent?: ReactNode;
42
+ /**
43
+ * The content displayed inside the popover.
44
+ */
45
+ children: ReactNode;
46
+ /**
47
+ * Show or hide arrows
48
+ */
49
+ withArrow?: boolean;
50
+ /**
51
+ * If this property is enabled, rather than the popover content repositioning on a boundary collision,
52
+ * the popover content container will move beyond the window's bounds.
53
+ * You are, however, supplied with nudgedLeft and nudgedTop values, so you may choose to handle content overflow as you wish.
54
+ */
55
+ disableReposition?: boolean;
56
+ }
57
+ /**
58
+ Popover displays additional content or information in an overlay box.
59
+ It appears on top of the main content when triggered by a user action,
60
+ such as a click or hover. Unlike tooltips, popovers can contain more
61
+ complex and interactive content, including text, images, and form elements.
62
+ */
63
+ declare const Popover: FC<IPopoverProps>;
64
+ export default Popover;
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ declare const PopoverBody: FC<PropsWithChildren>;
3
+ export default PopoverBody;
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ declare const PopoverFooter: FC<PropsWithChildren>;
3
+ export default PopoverFooter;
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from "react";
2
+ declare const PopoverFooterActions: FC<PropsWithChildren>;
3
+ export default PopoverFooterActions;
@@ -0,0 +1,4 @@
1
+ export { IPopoverProps, default as Popover } from "./Popover";
2
+ export { default as PopoverBody } from "./PopoverBody";
3
+ export { default as PopoverFooter } from "./PopoverFooter";
4
+ export { default as PopoverFooterActions } from "./PopoverFooterActions";
@@ -0,0 +1,41 @@
1
+ import { FC } from "react";
2
+ interface IPointTypesProps {
3
+ /**
4
+ * If type is numeric you can provide the number.<br>
5
+ * By default starts with 1.
6
+ */
7
+ stepNumber?: number;
8
+ /**
9
+ * Error state for Step.
10
+ */
11
+ error?: boolean;
12
+ /**
13
+ * Loading state for Step.
14
+ */
15
+ isLoading?: boolean;
16
+ /**
17
+ * Change the icon for step to mention the Step state.
18
+ */
19
+ state?: "incomplete" | "current" | "complete";
20
+ }
21
+ interface IStepProps extends IPointTypesProps {
22
+ /**
23
+ * The text displayed as the label for the Step, describing its purpose.<br>
24
+ * The Label can be clickable on not. For more information see the isLinear prop.
25
+ */
26
+ label?: string;
27
+ /**
28
+ * Extra information displayed with the label of step for clarity or guidance.
29
+ */
30
+ description?: string;
31
+ /**
32
+ * Unique id for Step.
33
+ */
34
+ id: string | number;
35
+ /**
36
+ * Disable state for Steps.
37
+ */
38
+ disabled?: boolean;
39
+ }
40
+ declare const Step: FC<IStepProps>;
41
+ export { IStepProps, Step as default };
@@ -0,0 +1,39 @@
1
+ import React, { FC, ReactNode } from "react";
2
+ import "./Steps.scss";
3
+ interface IStepsContextProps {
4
+ /**
5
+ * Steps direction <br/>
6
+ * Possible values: `vertical | horizontal`
7
+ */
8
+ direction?: "vertical" | "horizontal";
9
+ /**
10
+ * Fires when the user interact with Step label. Provides the Step id as a callback's argument.
11
+ */
12
+ onChange?: (e: string | number) => void;
13
+ /**
14
+ * Steps type <br/>
15
+ * Possible values: `dot | numeric`
16
+ */
17
+ type?: "dot" | "numeric";
18
+ }
19
+ interface IStepsProps extends IStepsContextProps {
20
+ /**
21
+ * Provide `<Step/>` components to be rendered in the `<Steps/>`
22
+ */
23
+ children: ReactNode;
24
+ /**
25
+ * Additional class for the parent element.
26
+ * This prop should be used to set placement properties for the element relative to its parent using BEM conventions.
27
+ */
28
+ className?: string;
29
+ /**
30
+ * This prop for label click ability. If true the labels are interactive else informative.
31
+ */
32
+ isLinear?: boolean;
33
+ }
34
+ export declare const StepsContext: React.Context<IStepsContextProps>;
35
+ /**
36
+ * Step component is used to guide users through a sequential process by breaking it down into distinct steps. It is commonly employed in multi-step forms, checkout processes, or workflows that require users to complete tasks in a specific order.
37
+ */
38
+ declare const Steps: FC<IStepsProps>;
39
+ export { IStepsProps, Steps as default };
@@ -0,0 +1,2 @@
1
+ export { IStepsProps, default as Steps } from "./Steps";
2
+ export { IStepProps, default as Step } from "./Step";