@gridui/drawer 1.1.6 → 1.1.8

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.
@@ -0,0 +1,61 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # DrawerTrigger
3
+
4
+ Compose DrawerTrigger with Drawer inside the same @gridui/drawer component family.
5
+
6
+ Import from ``@gridui/drawer`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { DrawerTrigger } from "@gridui/drawer";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/drawer/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/drawer/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/drawer/stories/drawer.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### onFocus
29
+
30
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
31
+
32
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
33
+
34
+ ### onBlur
35
+
36
+ ``(event: FocusEvent<HTMLButtonElement, Element>): void`` · Optional
37
+
38
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
39
+
40
+ ### onChange
41
+
42
+ ``(event: ChangeEvent<HTMLButtonElement, Element>): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### onSubmit
47
+
48
+ ``(event: SubmitEvent<HTMLButtonElement>): void`` · Optional
49
+
50
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
51
+
52
+ ### onClick
53
+
54
+ ``(event: MouseEvent<HTMLButtonElement, MouseEvent>): void`` · Optional
55
+
56
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
57
+
58
+ ### asChild
59
+
60
+ ``boolean | undefined`` · Optional
61
+
@@ -0,0 +1,49 @@
1
+ <!-- Generated from public Props and owned stories. Run pnpm docs:storybook. -->
2
+ # Drawer
3
+
4
+ Presents a modal panel from the start or end edge of the viewport. Use it for navigation or focused tasks that benefit from a side panel.
5
+
6
+ Import from ``@gridui/drawer`` and load Theme before this family's stylesheet.
7
+
8
+ ```tsx
9
+ import { Drawer } from "@gridui/drawer";
10
+ import "@gridui/theme/styles.css";
11
+ import "@gridui/drawer/styles.css";
12
+ ```
13
+
14
+ Read the [package contract](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/drawer/README.md) for shared behavior and stylesheet dependencies.
15
+
16
+ The [working composition](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/drawer/stories/drawer.stories.tsx) demonstrates required context, state, and related components. Use View code in Storybook to inspect the actual implementation.
17
+
18
+ ## API
19
+
20
+ The public Props type is the source of these signatures. Defaults below are explicit implementation defaults; story presets are separate. Native attributes remain available through the exported Props type.
21
+
22
+ ### children
23
+
24
+ ``ReactNode`` · Optional
25
+
26
+ Content rendered inside the component.
27
+
28
+ ### open
29
+
30
+ ``boolean | undefined`` · Optional
31
+
32
+ Controlled visibility. Pair with onOpenChange.
33
+
34
+ ### defaultOpen
35
+
36
+ ``boolean | undefined`` · Optional
37
+
38
+ Initial uncontrolled visibility. Reset the story after changing it.
39
+
40
+ ### onOpenChange
41
+
42
+ ``(open: boolean): void`` · Optional
43
+
44
+ Called when the corresponding interaction occurs; inspect the arguments in Actions.
45
+
46
+ ### modal
47
+
48
+ ``boolean | undefined`` · Optional
49
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gridui/drawer",
3
- "version": "1.1.6",
3
+ "version": "1.1.8",
4
4
  "description": "GridUI React drawer",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -27,14 +27,14 @@
27
27
  "react-dom": "^19.2.0"
28
28
  },
29
29
  "dependencies": {
30
- "@gridui/button": "^3.1.2",
31
- "@gridui/overlay": "^1.2.2",
32
- "@gridui/style-utils": "^2.2.2",
30
+ "@gridui/button": "^4.1.0",
31
+ "@gridui/overlay": "^2.0.0",
32
+ "@gridui/style-utils": "^4.0.0",
33
33
  "@gridui/theme": "^2.5.3",
34
34
  "@radix-ui/react-dialog": "1.3.1",
35
35
  "@radix-ui/react-slot": "1.5.0",
36
36
  "class-variance-authority": "0.7.1",
37
- "lucide-react": "1.69.0"
37
+ "lucide-react": "1.70.0"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@gridui-internal/configuration": "0.0.0-internal",