@hive-ui/side-modal 0.3.1 → 0.4.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/dist/index.d.mts +40 -40
- package/dist/index.mjs +1 -1
- package/package.json +11 -11
package/dist/index.d.mts
CHANGED
|
@@ -7,54 +7,54 @@ import { HeadingProps } from "@hive-ui/heading";
|
|
|
7
7
|
//#region src/SideModal.d.ts
|
|
8
8
|
type SideModalProps = Pick<BoxProps<"div">, "element" | "children"> & {
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
* Title of the dialog for screen readers.
|
|
11
|
+
*
|
|
12
|
+
* @type {string}
|
|
13
|
+
* @memberof SideModalProps
|
|
14
|
+
*/
|
|
15
15
|
"aria-label": string;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
17
|
+
* Set to false to disable closing the SideModal when the "Escape" key is pressed.
|
|
18
|
+
*
|
|
19
|
+
* @default true
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof SideModalProps
|
|
22
|
+
*/
|
|
23
23
|
hideOnEsc?: boolean;
|
|
24
24
|
};
|
|
25
25
|
declare const SideModal: _$react.ForwardRefExoticComponent<Pick<BoxProps<"div">, "children" | "element"> & {
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
* Title of the dialog for screen readers.
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof SideModalProps
|
|
31
|
+
*/
|
|
32
32
|
"aria-label": string;
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
* Set to false to disable closing the SideModal when the "Escape" key is pressed.
|
|
35
|
+
*
|
|
36
|
+
* @default true
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof SideModalProps
|
|
39
|
+
*/
|
|
40
40
|
hideOnEsc?: boolean;
|
|
41
41
|
} & _$react.RefAttributes<HTMLElement>>;
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/SideModalButton.d.ts
|
|
44
44
|
type SideModalButtonProps = Omit<ButtonProps, "as"> & {
|
|
45
45
|
/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
* The id of the SideModal that the button controls
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
*/
|
|
50
50
|
id?: string;
|
|
51
51
|
};
|
|
52
52
|
declare const SideModalButton: _$react.ForwardRefExoticComponent<Omit<ButtonProps, "as"> & {
|
|
53
53
|
/**
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
* The id of the SideModal that the button controls
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
*/
|
|
58
58
|
id?: string;
|
|
59
59
|
} & _$react.RefAttributes<HTMLElement>>;
|
|
60
60
|
//#endregion
|
|
@@ -127,20 +127,20 @@ declare const SideModalFooter: _$react.ForwardRefExoticComponent<SideModalFooter
|
|
|
127
127
|
type JustifyOptions = "flex-start" | "flex-end" | "space-between";
|
|
128
128
|
type SideModalFooterActionsProps = Pick<BoxProps<"div">, "element" | "children"> & {
|
|
129
129
|
/**
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
* Sets the `justify-content` CSS property.
|
|
131
|
+
*
|
|
132
|
+
* @type {JustifyOptions}
|
|
133
|
+
* @memberof SideModalFooterActionsProps
|
|
134
|
+
*/
|
|
135
135
|
justifyContent?: JustifyOptions;
|
|
136
136
|
};
|
|
137
137
|
declare const SideModalFooterActions: _$react.ForwardRefExoticComponent<Pick<BoxProps<"div">, "children" | "element"> & {
|
|
138
138
|
/**
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
139
|
+
* Sets the `justify-content` CSS property.
|
|
140
|
+
*
|
|
141
|
+
* @type {JustifyOptions}
|
|
142
|
+
* @memberof SideModalFooterActionsProps
|
|
143
|
+
*/
|
|
144
144
|
justifyContent?: JustifyOptions;
|
|
145
145
|
} & _$react.RefAttributes<HTMLElement>>;
|
|
146
146
|
//#endregion
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { animated, useTransition } from "@hive-ui/animation-library";
|
|
2
2
|
import { Box } from "@hive-ui/box";
|
|
3
|
-
import { hiveBaseStyles } from "@hive-ui/theme";
|
|
4
3
|
import { styled } from "@hive-ui/css-library";
|
|
5
4
|
import { NonModalDialogDisclosurePrimitive, NonModalDialogPrimitive, useNonModalDialogPrimitiveState } from "@hive-ui/non-modal-dialog-primitive";
|
|
5
|
+
import { hiveBaseStyles } from "@hive-ui/theme";
|
|
6
6
|
import { createContext, forwardRef, memo, useContext } from "react";
|
|
7
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { Button } from "@hive-ui/button";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hive-ui/side-modal",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Hive UI Side Modal Component",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,16 +21,16 @@
|
|
|
21
21
|
"prepublishOnly": "vp run build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@hive-ui/
|
|
25
|
-
"@hive-ui/
|
|
26
|
-
"@hive-ui/
|
|
27
|
-
"@hive-ui/
|
|
28
|
-
"@hive-ui/
|
|
29
|
-
"@hive-ui/
|
|
30
|
-
"@hive-ui/
|
|
31
|
-
"@hive-ui/
|
|
32
|
-
"@hive-ui/
|
|
33
|
-
"@hive-ui/
|
|
24
|
+
"@hive-ui/animation-library": "^0.4.0",
|
|
25
|
+
"@hive-ui/box": "^0.4.0",
|
|
26
|
+
"@hive-ui/button": "^0.4.0",
|
|
27
|
+
"@hive-ui/css-library": "^0.4.0",
|
|
28
|
+
"@hive-ui/heading": "^0.4.0",
|
|
29
|
+
"@hive-ui/icons": "^0.4.0",
|
|
30
|
+
"@hive-ui/non-modal-dialog-primitive": "^0.4.0",
|
|
31
|
+
"@hive-ui/screen-reader-only": "^0.4.0",
|
|
32
|
+
"@hive-ui/style-props": "^0.4.0",
|
|
33
|
+
"@hive-ui/theme": "^0.4.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^25.6.2",
|