@gridui/drawer 2.0.0 → 2.2.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/README.md +24 -3
- package/dist/drawer-panel/drawer-panel.d.ts +6 -0
- package/dist/drawer-surface/drawer-surface.d.ts +1 -1
- package/dist/index.js +14 -6
- package/dist/index.js.map +3 -3
- package/dist/shared/drawer-panel-options.d.ts +1 -0
- package/dist/styled.js +4 -0
- package/dist/styles.css +598 -5
- package/dist/styles.local.css +202 -0
- package/docs/catalog.json +2 -1
- package/docs/reference/drawer-panel.md +5 -1
- package/docs/reference/drawer-surface.md +1 -1
- package/package.json +15 -10
package/README.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Core family. Public API: `Drawer`, `DrawerBody`, `DrawerBodyProps`, `DrawerClose`, `DrawerCloseProps`, `DrawerCloseButton`, `DrawerCloseButtonProps`, `DrawerDescription`, `DrawerDescriptionProps`, `DrawerFooter`, `DrawerFooterProps`, `DrawerHeader`, `DrawerHeaderProps`, `DrawerPanel`, `DrawerPanelProps`, `DrawerProps`, `DrawerSurface`, `DrawerSurfaceProps`, `DrawerTitle`, `DrawerTitleProps`, `DrawerTrigger`, `DrawerTriggerProps`.
|
|
4
4
|
|
|
5
5
|
Import components from `@gridui/drawer` and load `@gridui/drawer/styles.css` after Theme.
|
|
6
|
-
|
|
6
|
+
Applications own routes, labels, state persistence, and branding.
|
|
7
7
|
|
|
8
8
|
See [component ownership](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/component-ownership.md) and [release history](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/drawer/.changeset/history).
|
|
9
9
|
|
|
@@ -12,6 +12,16 @@ Set `portal={false}` to keep an ordinary modal panel in its owner's DOM scope.
|
|
|
12
12
|
`side="start" | "end"` follows writing direction; `"left" | "right"` fixes the
|
|
13
13
|
physical placement and entry direction, including in RTL.
|
|
14
14
|
|
|
15
|
+
## Styles
|
|
16
|
+
|
|
17
|
+
Load Theme once. Use `@gridui/drawer/styled` for automatic component CSS in
|
|
18
|
+
CSS-aware bundlers, or keep the CSS-free root import and load `@gridui/drawer/styles.css`.
|
|
19
|
+
Both entries expose the same root API. The standalone stylesheet includes component
|
|
20
|
+
dependency styles; Theme/reset remain separate. See the
|
|
21
|
+
[integration guide](https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/docs/usage/integration.md)
|
|
22
|
+
for static HTML loading, SSR limits, and avoiding duplicate CSS.
|
|
23
|
+
|
|
24
|
+
|
|
15
25
|
## Stable inline surfaces
|
|
16
26
|
|
|
17
27
|
Use `DrawerSurface` inside `Drawer` when the same content must stay mounted
|
|
@@ -45,7 +55,7 @@ surface; Sidebar does not implement that mechanism. The owner must keep this
|
|
|
45
55
|
inline surface outside transformed or clipping ancestors and provide an adequate
|
|
46
56
|
stacking context. Use a normal portalled `DrawerPanel` for independent overlays.
|
|
47
57
|
|
|
48
|
-
Surface motion uses `@gridui/overlay`;
|
|
58
|
+
Surface motion uses `@gridui/overlay`; its styles are included.
|
|
49
59
|
|
|
50
60
|
[Component reference](docs/reference/README.md) contains focused API pages for each public component.
|
|
51
61
|
|
|
@@ -54,7 +64,7 @@ Surface motion uses `@gridui/overlay`; load `@gridui/overlay/styles.css` after T
|
|
|
54
64
|
DrawerFooter owns the body separator, scrolling limit, and bottom safe-area inset.
|
|
55
65
|
It has no general content padding. Use ButtonGroup from `@gridui/button` with
|
|
56
66
|
`layout="cells"` for edge-aligned footer actions; ordinary footer content supplies
|
|
57
|
-
its own padding.
|
|
67
|
+
its own padding. Button styles are included in the Drawer stylesheet.
|
|
58
68
|
|
|
59
69
|
```tsx
|
|
60
70
|
<DrawerFooter>
|
|
@@ -63,3 +73,14 @@ its own padding. Load Button styles before Drawer styles.
|
|
|
63
73
|
</ButtonGroup>
|
|
64
74
|
</DrawerFooter>
|
|
65
75
|
```
|
|
76
|
+
|
|
77
|
+
Shared animation policy and tempo come from `MotionConfig` in `@gridui/motion`.
|
|
78
|
+
Disabled or reduced-motion policy settles decoration without disabling interaction.
|
|
79
|
+
See the [motion guide](https://github.com/sudo-ui/GridUI-React-Monorepo/tree/main/packages-core/motion)
|
|
80
|
+
for CSS scopes, portal behavior, and specialized timing contracts.
|
|
81
|
+
|
|
82
|
+
## Local color scopes
|
|
83
|
+
|
|
84
|
+
Pass `container` to the portaled panel/content to mount it in a local
|
|
85
|
+
`data-gridui-system` region. Dialog panels use that host for their backdrop too.
|
|
86
|
+
The default remains `document.body`; React ancestry does not determine CSS inheritance.
|
|
@@ -6,5 +6,5 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { DrawerPanelOptions } from "../shared/drawer-panel-options";
|
|
8
8
|
import { type FC } from "react";
|
|
9
|
-
export type DrawerSurfaceProps = Omit<DrawerPanelOptions, "portal" | "forceMount">;
|
|
9
|
+
export type DrawerSurfaceProps = Omit<DrawerPanelOptions, "portal" | "forceMount" | "container">;
|
|
10
10
|
export declare const DrawerSurface: FC<DrawerSurfaceProps>;
|
package/dist/index.js
CHANGED
|
@@ -173,6 +173,9 @@ var DrawerHeader = (props) => {
|
|
|
173
173
|
);
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
+
// src/drawer-panel/drawer-panel.tsx
|
|
177
|
+
import { useMotionStyle } from "@gridui/motion/policy";
|
|
178
|
+
|
|
176
179
|
// src/drawer-panel/style.ts
|
|
177
180
|
import { overlayBackdropStyles } from "@gridui/overlay";
|
|
178
181
|
import { cn as cn9 } from "@gridui/style-utils";
|
|
@@ -180,7 +183,7 @@ import { cva as cva5 } from "class-variance-authority";
|
|
|
180
183
|
var drawerOverlayStyles = cva5(cn9(
|
|
181
184
|
overlayBackdropStyles({ pace: "deliberate" }),
|
|
182
185
|
"gridui-drawer-overlay",
|
|
183
|
-
"gridui-u-drawer--fixed gridui-u-drawer--z-(--gridui-z-drawer-backdrop) gridui-u-drawer--inset-0
|
|
186
|
+
"gridui-u-drawer--fixed gridui-u-drawer--z-(--gridui-z-drawer-backdrop) gridui-u-drawer--inset-0",
|
|
184
187
|
"gridui-u-drawer--data-[state='closed']:pointer-events-none"
|
|
185
188
|
));
|
|
186
189
|
var drawerPanelStyles = cva5(cn9(
|
|
@@ -199,7 +202,8 @@ import { cn as cn10 } from "@gridui/style-utils";
|
|
|
199
202
|
import * as Dialog5 from "@radix-ui/react-dialog";
|
|
200
203
|
import { Fragment, jsx as jsx8, jsxs } from "react/jsx-runtime";
|
|
201
204
|
var DrawerPanel = (props) => {
|
|
202
|
-
const
|
|
205
|
+
const motionStyle = useMotionStyle();
|
|
206
|
+
const { side = "end", portal = true, container, className, forceMount, ...restProps } = props;
|
|
203
207
|
const content = /* @__PURE__ */ jsx8(
|
|
204
208
|
Dialog5.Content,
|
|
205
209
|
{
|
|
@@ -208,7 +212,8 @@ var DrawerPanel = (props) => {
|
|
|
208
212
|
forceMount,
|
|
209
213
|
"aria-describedby": restProps["aria-describedby"],
|
|
210
214
|
"data-side": side,
|
|
211
|
-
className: cn10(drawerPanelStyles(), className)
|
|
215
|
+
className: cn10(drawerPanelStyles(), className),
|
|
216
|
+
style: { ...restProps.style, ...motionStyle }
|
|
212
217
|
}
|
|
213
218
|
);
|
|
214
219
|
const mountedContent = forceMount ? /* @__PURE__ */ jsx8(RetainedLayer, { children: content }) : content;
|
|
@@ -217,22 +222,25 @@ var DrawerPanel = (props) => {
|
|
|
217
222
|
/* @__PURE__ */ jsx8(
|
|
218
223
|
Dialog5.Overlay,
|
|
219
224
|
{
|
|
220
|
-
className: cn10(drawerOverlayStyles())
|
|
225
|
+
className: cn10(drawerOverlayStyles()),
|
|
226
|
+
style: motionStyle
|
|
221
227
|
}
|
|
222
228
|
),
|
|
223
229
|
mountedContent
|
|
224
230
|
] });
|
|
225
231
|
}
|
|
226
232
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
227
|
-
/* @__PURE__ */ jsx8(Dialog5.Portal, { children: /* @__PURE__ */ jsx8(
|
|
233
|
+
/* @__PURE__ */ jsx8(Dialog5.Portal, { container, children: /* @__PURE__ */ jsx8(
|
|
228
234
|
Dialog5.Overlay,
|
|
229
235
|
{
|
|
230
|
-
className: cn10(drawerOverlayStyles())
|
|
236
|
+
className: cn10(drawerOverlayStyles()),
|
|
237
|
+
style: motionStyle
|
|
231
238
|
}
|
|
232
239
|
) }),
|
|
233
240
|
/* @__PURE__ */ jsx8(
|
|
234
241
|
Dialog5.Portal,
|
|
235
242
|
{
|
|
243
|
+
container,
|
|
236
244
|
forceMount,
|
|
237
245
|
children: mountedContent
|
|
238
246
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/drawer/drawer.tsx", "../src/drawer-body/style.ts", "../src/drawer-body/drawer-body.tsx", "../src/drawer-close/drawer-close.tsx", "../src/drawer-close-button/drawer-close-button.tsx", "../src/drawer-description/style.ts", "../src/drawer-description/drawer-description.tsx", "../src/drawer-footer/style.ts", "../src/drawer-footer/drawer-footer.tsx", "../src/drawer-header/style.ts", "../src/drawer-header/drawer-header.tsx", "../src/drawer-panel/
|
|
4
|
-
"sourcesContent": ["/**\n * @author WMXPY\n * @package Drawer\n * @namespace Drawer\n * @description Drawer\n */\n\nimport { OverlayOpen, useOverlayState } from \"@gridui/overlay\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerProps = ComponentPropsWithRef<typeof Dialog.Root>;\n\nexport const Drawer: FC<DrawerProps> = (props: DrawerProps) => {\n const state = useOverlayState(props);\n return (<OverlayOpen.Provider\n value={state.open}\n >\n <Dialog.Root\n {...props}\n {...state}\n />\n </OverlayOpen.Provider>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerBody\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerBodyStyles = cva(cn(\n \"gridui-drawer-body\",\n \"gridui-u-drawer--min-h-0 gridui-u-drawer--flex-1 gridui-u-drawer--overflow-y-auto gridui-u-drawer--overscroll-contain gridui-u-drawer--p-gridui-24\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerBody\n * @description Drawer Body\n */\n\nimport { drawerBodyStyles } from \"./style\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerBodyProps = ComponentPropsWithRef<\"div\">;\n\nexport const DrawerBody: FC<DrawerBodyProps> = (props: DrawerBodyProps) => {\n const { ref: forwardedRef, className, ...restProps } = props;\n const scrollbarRef = useScrollbars({ ref: forwardedRef });\n const ref = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n ref={ref}\n className={cn(drawerBodyStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerClose\n * @description Drawer Close\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerCloseProps = ComponentPropsWithRef<typeof Dialog.Close>;\n\nexport const DrawerClose: FC<DrawerCloseProps> = (props: DrawerCloseProps) => {\n return (<Dialog.Close\n {...props}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerCloseButton\n * @description Drawer Close Button\n */\n\nimport { Button, type ButtonProps } from \"@gridui/button\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type DrawerCloseButtonProps = ButtonProps;\n\nexport const DrawerCloseButton: FC<DrawerCloseButtonProps> = (props: DrawerCloseButtonProps) => {\n const {\n children,\n size = \"small\",\n ...restProps\n } = props;\n const buttonProps: ButtonProps = (restProps.variant === \"text\" || restProps.variant === \"underlined\") ? {\n ...restProps,\n layout: \"standard\",\n } : {\n ...restProps,\n variant: restProps.variant === undefined ? \"quiet\" : restProps.variant,\n layout: restProps.layout === undefined ? \"icon\" : restProps.layout,\n };\n return (<Dialog.Close\n asChild\n >\n <Button\n {...buttonProps}\n size={size}\n >\n {children ?? (<X\n aria-hidden=\"true\"\n />)}\n </Button>\n </Dialog.Close>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerDescription\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerDescriptionStyles = cva(cn(\n \"gridui-drawer-description\",\n \"gridui-u-drawer--text-muted\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerDescription\n * @description Drawer Description\n */\n\nimport { drawerDescriptionStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerDescriptionProps = ComponentPropsWithRef<typeof Dialog.Description>;\n\nexport const DrawerDescription: FC<DrawerDescriptionProps> = (props: DrawerDescriptionProps) => {\n const {\n className,\n ...restProps\n } = props;\n return (<Dialog.Description\n {...restProps}\n className={cn(drawerDescriptionStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerFooter\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerFooterStyles = cva(cn(\n \"gridui-drawer-footer\",\n \"gridui-u-drawer--shrink-0\",\n \"gridui-u-drawer--max-h-[50dvh] gridui-u-drawer--overflow-y-auto gridui-u-drawer--pb-[env(safe-area-inset-bottom)] gridui-u-drawer--border-t gridui-u-drawer--border-solid gridui-u-drawer--border-border\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerFooter\n * @description Drawer Footer\n */\n\nimport { drawerFooterStyles } from \"./style\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerFooterProps = ComponentPropsWithRef<\"div\">;\n\nexport const DrawerFooter: FC<DrawerFooterProps> = (props: DrawerFooterProps) => {\n const { ref: forwardedRef, className, ...restProps } = props;\n const scrollbarRef = useScrollbars({ ref: forwardedRef });\n const ref = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n ref={ref}\n className={cn(drawerFooterStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerHeader\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerHeaderStyles = cva(cn(\n \"gridui-drawer-header\",\n \"gridui-u-drawer--shrink-0 gridui-u-drawer--p-gridui-24\",\n \"gridui-u-drawer--flex gridui-u-drawer--items-center gridui-u-drawer--justify-between gridui-u-drawer--gap-gridui-16 gridui-u-drawer--pt-[max(var(--gridui-space-24),env(safe-area-inset-top))] gridui-u-drawer--border-b gridui-u-drawer--border-solid gridui-u-drawer--border-border\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerHeader\n * @description Drawer Header\n */\n\nimport { drawerHeaderStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerHeaderProps = ComponentPropsWithRef<\"div\">;\n\nexport const DrawerHeader: FC<DrawerHeaderProps> = (props: DrawerHeaderProps) => {\n const { className, ...restProps } = props;\n return (<div\n {...restProps}\n className={cn(drawerHeaderStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerPanel\n * @description Style\n */\n\nimport { overlayBackdropStyles } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerOverlayStyles = cva(cn(\n overlayBackdropStyles({ pace: \"deliberate\" }),\n \"gridui-drawer-overlay\",\n \"gridui-u-drawer--fixed gridui-u-drawer--z-(--gridui-z-drawer-backdrop) gridui-u-drawer--inset-0 gridui-u-drawer--bg-[light-dark(rgb(0_0_0/25%),rgb(0_0_0/60%))]\",\n \"gridui-u-drawer--data-[state='closed']:pointer-events-none\",\n));\n\nexport const drawerPanelStyles = cva(cn(\n \"gridui-drawer-panel\",\n \"gridui-u-drawer--fixed gridui-u-drawer--z-(--gridui-z-drawer) gridui-u-drawer--inset-y-0 gridui-u-drawer--flex gridui-u-drawer--w-[min(100%,var(--gridui-drawer-width,24rem))] gridui-u-drawer--max-w-full gridui-u-drawer--h-dvh gridui-u-drawer--min-h-0 gridui-u-drawer--flex-col gridui-u-drawer--box-border gridui-u-drawer--border gridui-u-drawer--border-solid gridui-u-drawer--border-border gridui-u-drawer--border-y-0 gridui-u-drawer--text-foreground gridui-u-drawer--bg-background gridui-u-drawer--type-supporting\",\n \"gridui-u-drawer--data-[side='end']:inset-e-0 gridui-u-drawer--data-[side='end']:[border-inline-end:0]\",\n \"gridui-u-drawer--data-[side='start']:inset-s-0 gridui-u-drawer--data-[side='start']:[border-inline-start:0]\",\n \"gridui-u-drawer--data-[side='left']:left-0 gridui-u-drawer--data-[side='left']:border-l-0\",\n \"gridui-u-drawer--data-[side='right']:right-0 gridui-u-drawer--data-[side='right']:border-r-0\",\n \"gridui-u-drawer--data-[state='closed']:pointer-events-none\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerPanel\n * @description Drawer Panel\n */\n\nimport type { DrawerPanelOptions } from \"../shared/drawer-panel-options\";\nimport { drawerOverlayStyles, drawerPanelStyles } from \"./style\";\nimport { interactionLayerProps, RetainedLayer } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { FC } from \"react\";\n\nexport type DrawerPanelProps = DrawerPanelOptions;\n\nexport const DrawerPanel: FC<DrawerPanelProps> = (props: DrawerPanelProps) => {\n const { side = \"end\", portal = true, className, forceMount, ...restProps } = props;\n const content = (<Dialog.Content\n {...interactionLayerProps}\n {...restProps}\n forceMount={forceMount}\n aria-describedby={restProps[\"aria-describedby\"]}\n data-side={side}\n className={cn(drawerPanelStyles(), className)}\n />);\n const mountedContent = forceMount ? (<RetainedLayer>\n {content}\n </RetainedLayer>) : content;\n if (!portal) {\n return (<>\n <Dialog.Overlay\n className={cn(drawerOverlayStyles())}\n />\n {mountedContent}\n </>);\n }\n return (<>\n <Dialog.Portal>\n <Dialog.Overlay\n className={cn(drawerOverlayStyles())}\n />\n </Dialog.Portal>\n <Dialog.Portal\n forceMount={forceMount}\n >\n {mountedContent}\n </Dialog.Portal>\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerSurface\n * @description Surface Binding\n */\n\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { type ComponentPropsWithRef, type FC, type Ref, type RefObject, useImperativeHandle, useLayoutEffect, useRef, useState } from \"react\";\n\nexport type SurfaceProps = ComponentPropsWithRef<typeof Slot>;\nexport type SurfaceHandle = {\n readonly element: HTMLElement | null;\n readonly bind: (props: SurfaceProps | null) => void;\n};\nexport type SurfaceViewProps = SurfaceProps & {\n readonly handle: Ref<SurfaceHandle>;\n};\n\nexport const SurfaceView: FC<SurfaceViewProps> = (props: SurfaceViewProps) => {\n const { handle, ...surfaceProps } = props;\n const element = useRef<HTMLElement>(null);\n const [\n modalProps,\n setModalProps,\n ] = useState<SurfaceProps | null>(null);\n useImperativeHandle(handle, () => {\n return {\n get element() { return element.current; },\n bind: setModalProps,\n };\n }, []);\n return (<Slot\n {...modalProps}\n ref={element}\n data-drawer-presentation={modalProps ? \"overlay\" : \"inline\"}\n >\n <Slot\n {...surfaceProps}\n />\n </Slot>);\n};\n\nexport type SurfaceBindingProps = SurfaceProps & {\n readonly handle: RefObject<SurfaceHandle | null>;\n};\n\n// Radix owns the temporary modal lifecycle. Slot merges its handlers and refs\n// onto the stable surface without moving or remounting the caller's content.\nexport const SurfaceBinding: FC<SurfaceBindingProps> = (props: SurfaceBindingProps) => {\n const { handle, ref, ...modalProps } = props;\n useLayoutEffect(() => {\n handle.current?.bind(modalProps);\n });\n useLayoutEffect(() => {\n const surface = handle.current;\n return () => {\n surface?.bind(null);\n };\n }, [handle]);\n useImperativeHandle(ref, () => {\n const element = handle.current?.element;\n if (!element) {\n throw new Error(\"DrawerSurface must mount before its modal lifecycle.\");\n }\n return element;\n }, [handle]);\n return null;\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerSurface\n * @description Drawer Surface\n */\n\nimport { DrawerPanel } from \"../drawer-panel/drawer-panel\";\nimport type { DrawerPanelOptions } from \"../shared/drawer-panel-options\";\nimport { SurfaceBinding, type SurfaceHandle, SurfaceView } from \"./surface-binding\";\nimport { OverlayOpen } from \"@gridui/overlay\";\nimport { type FC, useContext, useRef } from \"react\";\n\nexport type DrawerSurfaceProps = Omit<DrawerPanelOptions, \"portal\" | \"forceMount\">;\n\nexport const DrawerSurface: FC<DrawerSurfaceProps> = (props: DrawerSurfaceProps) => {\n const {\n asChild = false, side = \"end\", children,\n onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown,\n onPointerDownOutside, onFocusOutside, onInteractOutside,\n ...surfaceProps\n } = props;\n const open = useContext(OverlayOpen);\n const handle = useRef<SurfaceHandle>(null);\n return (<>\n <SurfaceView\n {...surfaceProps}\n handle={handle}\n >\n {asChild ? children : (<div>\n {children}\n </div>)}\n </SurfaceView>\n {open && (<DrawerPanel\n asChild\n portal={false}\n side={side}\n onOpenAutoFocus={onOpenAutoFocus}\n onCloseAutoFocus={onCloseAutoFocus}\n onEscapeKeyDown={onEscapeKeyDown}\n onPointerDownOutside={onPointerDownOutside}\n onFocusOutside={onFocusOutside}\n onInteractOutside={onInteractOutside}\n >\n <SurfaceBinding\n handle={handle}\n />\n </DrawerPanel>)}\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerTitle\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerTitleStyles = cva(cn(\n \"gridui-drawer-title\",\n \"gridui-u-drawer--m-0 gridui-u-drawer--type-subheading\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerTitle\n * @description Drawer Title\n */\n\nimport { drawerTitleStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerTitleProps = ComponentPropsWithRef<typeof Dialog.Title>;\n\nexport const DrawerTitle: FC<DrawerTitleProps> = (props: DrawerTitleProps) => {\n const {\n className,\n ...restProps\n } = props;\n return (<Dialog.Title\n {...restProps}\n className={cn(drawerTitleStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerTrigger\n * @description Drawer Trigger\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerTriggerProps = ComponentPropsWithRef<typeof Dialog.Trigger>;\n\nexport const DrawerTrigger: FC<DrawerTriggerProps> = (props: DrawerTriggerProps) => {\n return (<Dialog.Trigger\n {...props}\n />);\n};\n"],
|
|
5
|
-
"mappings": ";AAOA,SAAS,aAAa,uBAAuB;AAC7C,YAAY,YAAY;AAUhB;AALD,IAAM,SAA0B,CAAC,UAAuB;AAC3D,QAAM,QAAQ,gBAAgB,KAAK;AACnC,SAAQ;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACL,OAAO,MAAM;AAAA,MAEb;AAAA,QAAQ;AAAA,QAAP;AAAA,UACI,GAAG;AAAA,UACH,GAAG;AAAA;AAAA,MACR;AAAA;AAAA,EACJ;AACJ;;;AChBA,SAAS,UAAU;AACnB,SAAS,WAAW;AAEb,IAAM,mBAAmB,IAAI;AAAA,EAChC;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,uBAAuB,qBAAqB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,MACJ,GAAG;AAAA,MACJ,WAAWD,IAAG,mBAAmB,GAAG,SAAS;AAAA;AAAA,EACjD;AACJ;;;ACZA,SAAS,6BAA6B;AACtC,SAAS,MAAAE,WAAU;AACnB,SAAS,OAAAC,YAAW;AAEb,IAAM,sBAAsBA,KAAID;AAAA,EACnC,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAAA,EAC5C;AAAA,EACA;AAAA,EACA;AACJ,CAAC;AAEM,IAAM,oBAAoBC,KAAID;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,CAAC;;;
|
|
3
|
+
"sources": ["../src/drawer/drawer.tsx", "../src/drawer-body/style.ts", "../src/drawer-body/drawer-body.tsx", "../src/drawer-close/drawer-close.tsx", "../src/drawer-close-button/drawer-close-button.tsx", "../src/drawer-description/style.ts", "../src/drawer-description/drawer-description.tsx", "../src/drawer-footer/style.ts", "../src/drawer-footer/drawer-footer.tsx", "../src/drawer-header/style.ts", "../src/drawer-header/drawer-header.tsx", "../src/drawer-panel/drawer-panel.tsx", "../src/drawer-panel/style.ts", "../src/drawer-surface/surface-binding.tsx", "../src/drawer-surface/drawer-surface.tsx", "../src/drawer-title/style.ts", "../src/drawer-title/drawer-title.tsx", "../src/drawer-trigger/drawer-trigger.tsx"],
|
|
4
|
+
"sourcesContent": ["/**\n * @author WMXPY\n * @package Drawer\n * @namespace Drawer\n * @description Drawer\n */\n\nimport { OverlayOpen, useOverlayState } from \"@gridui/overlay\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerProps = ComponentPropsWithRef<typeof Dialog.Root>;\n\nexport const Drawer: FC<DrawerProps> = (props: DrawerProps) => {\n const state = useOverlayState(props);\n return (<OverlayOpen.Provider\n value={state.open}\n >\n <Dialog.Root\n {...props}\n {...state}\n />\n </OverlayOpen.Provider>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerBody\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerBodyStyles = cva(cn(\n \"gridui-drawer-body\",\n \"gridui-u-drawer--min-h-0 gridui-u-drawer--flex-1 gridui-u-drawer--overflow-y-auto gridui-u-drawer--overscroll-contain gridui-u-drawer--p-gridui-24\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerBody\n * @description Drawer Body\n */\n\nimport { drawerBodyStyles } from \"./style\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerBodyProps = ComponentPropsWithRef<\"div\">;\n\nexport const DrawerBody: FC<DrawerBodyProps> = (props: DrawerBodyProps) => {\n const { ref: forwardedRef, className, ...restProps } = props;\n const scrollbarRef = useScrollbars({ ref: forwardedRef });\n const ref = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n ref={ref}\n className={cn(drawerBodyStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerClose\n * @description Drawer Close\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerCloseProps = ComponentPropsWithRef<typeof Dialog.Close>;\n\nexport const DrawerClose: FC<DrawerCloseProps> = (props: DrawerCloseProps) => {\n return (<Dialog.Close\n {...props}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerCloseButton\n * @description Drawer Close Button\n */\n\nimport { Button, type ButtonProps } from \"@gridui/button\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { X } from \"lucide-react\";\nimport type { FC } from \"react\";\n\nexport type DrawerCloseButtonProps = ButtonProps;\n\nexport const DrawerCloseButton: FC<DrawerCloseButtonProps> = (props: DrawerCloseButtonProps) => {\n const {\n children,\n size = \"small\",\n ...restProps\n } = props;\n const buttonProps: ButtonProps = (restProps.variant === \"text\" || restProps.variant === \"underlined\") ? {\n ...restProps,\n layout: \"standard\",\n } : {\n ...restProps,\n variant: restProps.variant === undefined ? \"quiet\" : restProps.variant,\n layout: restProps.layout === undefined ? \"icon\" : restProps.layout,\n };\n return (<Dialog.Close\n asChild\n >\n <Button\n {...buttonProps}\n size={size}\n >\n {children ?? (<X\n aria-hidden=\"true\"\n />)}\n </Button>\n </Dialog.Close>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerDescription\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerDescriptionStyles = cva(cn(\n \"gridui-drawer-description\",\n \"gridui-u-drawer--text-muted\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerDescription\n * @description Drawer Description\n */\n\nimport { drawerDescriptionStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerDescriptionProps = ComponentPropsWithRef<typeof Dialog.Description>;\n\nexport const DrawerDescription: FC<DrawerDescriptionProps> = (props: DrawerDescriptionProps) => {\n const {\n className,\n ...restProps\n } = props;\n return (<Dialog.Description\n {...restProps}\n className={cn(drawerDescriptionStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerFooter\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerFooterStyles = cva(cn(\n \"gridui-drawer-footer\",\n \"gridui-u-drawer--shrink-0\",\n \"gridui-u-drawer--max-h-[50dvh] gridui-u-drawer--overflow-y-auto gridui-u-drawer--pb-[env(safe-area-inset-bottom)] gridui-u-drawer--border-t gridui-u-drawer--border-solid gridui-u-drawer--border-border\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerFooter\n * @description Drawer Footer\n */\n\nimport { drawerFooterStyles } from \"./style\";\nimport { useInteractionOutline, useScrollbars } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerFooterProps = ComponentPropsWithRef<\"div\">;\n\nexport const DrawerFooter: FC<DrawerFooterProps> = (props: DrawerFooterProps) => {\n const { ref: forwardedRef, className, ...restProps } = props;\n const scrollbarRef = useScrollbars({ ref: forwardedRef });\n const ref = useInteractionOutline({ ref: scrollbarRef });\n return (<div\n {...restProps}\n ref={ref}\n className={cn(drawerFooterStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerHeader\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerHeaderStyles = cva(cn(\n \"gridui-drawer-header\",\n \"gridui-u-drawer--shrink-0 gridui-u-drawer--p-gridui-24\",\n \"gridui-u-drawer--flex gridui-u-drawer--items-center gridui-u-drawer--justify-between gridui-u-drawer--gap-gridui-16 gridui-u-drawer--pt-[max(var(--gridui-space-24),env(safe-area-inset-top))] gridui-u-drawer--border-b gridui-u-drawer--border-solid gridui-u-drawer--border-border\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerHeader\n * @description Drawer Header\n */\n\nimport { drawerHeaderStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerHeaderProps = ComponentPropsWithRef<\"div\">;\n\nexport const DrawerHeader: FC<DrawerHeaderProps> = (props: DrawerHeaderProps) => {\n const { className, ...restProps } = props;\n return (<div\n {...restProps}\n className={cn(drawerHeaderStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerPanel\n * @description Drawer Panel\n */\n\nimport { useMotionStyle } from \"@gridui/motion/policy\";\n/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerPanel\n * @description Drawer Panel\n */\n\nimport type { DrawerPanelOptions } from \"../shared/drawer-panel-options\";\nimport { drawerOverlayStyles, drawerPanelStyles } from \"./style\";\nimport { interactionLayerProps, RetainedLayer } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { FC } from \"react\";\n\nexport type DrawerPanelProps = DrawerPanelOptions;\n\nexport const DrawerPanel: FC<DrawerPanelProps> = (props: DrawerPanelProps) => {\n const motionStyle = useMotionStyle();\n const { side = \"end\", portal = true, container, className, forceMount, ...restProps } = props;\n const content = (<Dialog.Content\n {...interactionLayerProps}\n {...restProps}\n forceMount={forceMount}\n aria-describedby={restProps[\"aria-describedby\"]}\n data-side={side}\n className={cn(drawerPanelStyles(), className)}\n style={{ ...(restProps.style), ...motionStyle }}\n />);\n const mountedContent = forceMount ? (<RetainedLayer>\n {content}\n </RetainedLayer>) : content;\n if (!portal) {\n return (<>\n <Dialog.Overlay\n className={cn(drawerOverlayStyles())}\n style={motionStyle}\n />\n {mountedContent}\n </>);\n }\n return (<>\n <Dialog.Portal container={container}>\n <Dialog.Overlay\n className={cn(drawerOverlayStyles())}\n style={motionStyle}\n />\n </Dialog.Portal>\n <Dialog.Portal\n container={container}\n forceMount={forceMount}\n >\n {mountedContent}\n </Dialog.Portal>\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerPanel\n * @description Style\n */\n\nimport { overlayBackdropStyles } from \"@gridui/overlay\";\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerOverlayStyles = cva(cn(\n overlayBackdropStyles({ pace: \"deliberate\" }),\n \"gridui-drawer-overlay\",\n \"gridui-u-drawer--fixed gridui-u-drawer--z-(--gridui-z-drawer-backdrop) gridui-u-drawer--inset-0\",\n \"gridui-u-drawer--data-[state='closed']:pointer-events-none\",\n));\n\nexport const drawerPanelStyles = cva(cn(\n \"gridui-drawer-panel\",\n \"gridui-u-drawer--fixed gridui-u-drawer--z-(--gridui-z-drawer) gridui-u-drawer--inset-y-0 gridui-u-drawer--flex gridui-u-drawer--w-[min(100%,var(--gridui-drawer-width,24rem))] gridui-u-drawer--max-w-full gridui-u-drawer--h-dvh gridui-u-drawer--min-h-0 gridui-u-drawer--flex-col gridui-u-drawer--box-border gridui-u-drawer--border gridui-u-drawer--border-solid gridui-u-drawer--border-border gridui-u-drawer--border-y-0 gridui-u-drawer--text-foreground gridui-u-drawer--bg-background gridui-u-drawer--type-supporting\",\n \"gridui-u-drawer--data-[side='end']:inset-e-0 gridui-u-drawer--data-[side='end']:[border-inline-end:0]\",\n \"gridui-u-drawer--data-[side='start']:inset-s-0 gridui-u-drawer--data-[side='start']:[border-inline-start:0]\",\n \"gridui-u-drawer--data-[side='left']:left-0 gridui-u-drawer--data-[side='left']:border-l-0\",\n \"gridui-u-drawer--data-[side='right']:right-0 gridui-u-drawer--data-[side='right']:border-r-0\",\n \"gridui-u-drawer--data-[state='closed']:pointer-events-none\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerSurface\n * @description Surface Binding\n */\n\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { type ComponentPropsWithRef, type FC, type Ref, type RefObject, useImperativeHandle, useLayoutEffect, useRef, useState } from \"react\";\n\nexport type SurfaceProps = ComponentPropsWithRef<typeof Slot>;\nexport type SurfaceHandle = {\n readonly element: HTMLElement | null;\n readonly bind: (props: SurfaceProps | null) => void;\n};\nexport type SurfaceViewProps = SurfaceProps & {\n readonly handle: Ref<SurfaceHandle>;\n};\n\nexport const SurfaceView: FC<SurfaceViewProps> = (props: SurfaceViewProps) => {\n const { handle, ...surfaceProps } = props;\n const element = useRef<HTMLElement>(null);\n const [\n modalProps,\n setModalProps,\n ] = useState<SurfaceProps | null>(null);\n useImperativeHandle(handle, () => {\n return {\n get element() { return element.current; },\n bind: setModalProps,\n };\n }, []);\n return (<Slot\n {...modalProps}\n ref={element}\n data-drawer-presentation={modalProps ? \"overlay\" : \"inline\"}\n >\n <Slot\n {...surfaceProps}\n />\n </Slot>);\n};\n\nexport type SurfaceBindingProps = SurfaceProps & {\n readonly handle: RefObject<SurfaceHandle | null>;\n};\n\n// Radix owns the temporary modal lifecycle. Slot merges its handlers and refs\n// onto the stable surface without moving or remounting the caller's content.\nexport const SurfaceBinding: FC<SurfaceBindingProps> = (props: SurfaceBindingProps) => {\n const { handle, ref, ...modalProps } = props;\n useLayoutEffect(() => {\n handle.current?.bind(modalProps);\n });\n useLayoutEffect(() => {\n const surface = handle.current;\n return () => {\n surface?.bind(null);\n };\n }, [handle]);\n useImperativeHandle(ref, () => {\n const element = handle.current?.element;\n if (!element) {\n throw new Error(\"DrawerSurface must mount before its modal lifecycle.\");\n }\n return element;\n }, [handle]);\n return null;\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerSurface\n * @description Drawer Surface\n */\n\nimport { DrawerPanel } from \"../drawer-panel/drawer-panel\";\nimport type { DrawerPanelOptions } from \"../shared/drawer-panel-options\";\nimport { SurfaceBinding, type SurfaceHandle, SurfaceView } from \"./surface-binding\";\nimport { OverlayOpen } from \"@gridui/overlay\";\nimport { type FC, useContext, useRef } from \"react\";\n\nexport type DrawerSurfaceProps = Omit<DrawerPanelOptions, \"portal\" | \"forceMount\" | \"container\">;\n\nexport const DrawerSurface: FC<DrawerSurfaceProps> = (props: DrawerSurfaceProps) => {\n const {\n asChild = false, side = \"end\", children,\n onOpenAutoFocus, onCloseAutoFocus, onEscapeKeyDown,\n onPointerDownOutside, onFocusOutside, onInteractOutside,\n ...surfaceProps\n } = props;\n const open = useContext(OverlayOpen);\n const handle = useRef<SurfaceHandle>(null);\n return (<>\n <SurfaceView\n {...surfaceProps}\n handle={handle}\n >\n {asChild ? children : (<div>\n {children}\n </div>)}\n </SurfaceView>\n {open && (<DrawerPanel\n asChild\n portal={false}\n side={side}\n onOpenAutoFocus={onOpenAutoFocus}\n onCloseAutoFocus={onCloseAutoFocus}\n onEscapeKeyDown={onEscapeKeyDown}\n onPointerDownOutside={onPointerDownOutside}\n onFocusOutside={onFocusOutside}\n onInteractOutside={onInteractOutside}\n >\n <SurfaceBinding\n handle={handle}\n />\n </DrawerPanel>)}\n </>);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerTitle\n * @description Style\n */\n\nimport { cn } from \"@gridui/style-utils\";\nimport { cva } from \"class-variance-authority\";\n\nexport const drawerTitleStyles = cva(cn(\n \"gridui-drawer-title\",\n \"gridui-u-drawer--m-0 gridui-u-drawer--type-subheading\",\n));\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerTitle\n * @description Drawer Title\n */\n\nimport { drawerTitleStyles } from \"./style\";\nimport { cn } from \"@gridui/style-utils\";\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerTitleProps = ComponentPropsWithRef<typeof Dialog.Title>;\n\nexport const DrawerTitle: FC<DrawerTitleProps> = (props: DrawerTitleProps) => {\n const {\n className,\n ...restProps\n } = props;\n return (<Dialog.Title\n {...restProps}\n className={cn(drawerTitleStyles(), className)}\n />);\n};\n", "/**\n * @author WMXPY\n * @package Drawer\n * @namespace DrawerTrigger\n * @description Drawer Trigger\n */\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport type { ComponentPropsWithRef, FC } from \"react\";\n\nexport type DrawerTriggerProps = ComponentPropsWithRef<typeof Dialog.Trigger>;\n\nexport const DrawerTrigger: FC<DrawerTriggerProps> = (props: DrawerTriggerProps) => {\n return (<Dialog.Trigger\n {...props}\n />);\n};\n"],
|
|
5
|
+
"mappings": ";AAOA,SAAS,aAAa,uBAAuB;AAC7C,YAAY,YAAY;AAUhB;AALD,IAAM,SAA0B,CAAC,UAAuB;AAC3D,QAAM,QAAQ,gBAAgB,KAAK;AACnC,SAAQ;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MAC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M,oBAAoBA,KAAID;AAAA,EACjC;AAAA,EACA;AACJ,CAAC;;;ACLD,SAAS,MAAAE,YAAU;AACnB,YAAYC,aAAY;AAUZ,gBAAAC,aAAA;AALL,IAAM,cAAoC,CAAC,UAA4B;AAC1E,QAAM;AAAA,IACF;AAAA,IACA,GAAG;AAAA,EACP,IAAI;AACJ,SAAQ,gBAAAA;AAAA,IAAQ;AAAA,IAAP;AAAA,MACJ,GAAG;AAAA,MACJ,WAAWF,KAAG,kBAAkB,GAAG,SAAS;AAAA;AAAA,EAChD;AACJ;;;AChBA,YAAYG,aAAY;AAMZ,gBAAAC,aAAA;AADL,IAAM,gBAAwC,CAAC,UAA8B;AAChF,SAAQ,gBAAAA;AAAA,IAAQ;AAAA,IAAP;AAAA,MACJ,GAAG;AAAA;AAAA,EACR;AACJ;",
|
|
6
6
|
"names": ["cn", "jsx", "Dialog", "jsx", "Dialog", "jsx", "cn", "cva", "cn", "Dialog", "jsx", "cn", "cva", "useInteractionOutline", "useScrollbars", "cn", "jsx", "cn", "cva", "cn", "jsx", "cn", "cva", "cn", "Dialog", "jsx", "jsx", "OverlayOpen", "useRef", "Fragment", "jsx", "jsxs", "cn", "cva", "cn", "Dialog", "jsx", "Dialog", "jsx"]
|
|
7
7
|
}
|
|
@@ -9,4 +9,5 @@ import type { ComponentPropsWithRef } from "react";
|
|
|
9
9
|
export type DrawerPanelOptions = ComponentPropsWithRef<typeof Dialog.Content> & {
|
|
10
10
|
readonly side?: "start" | "end" | "left" | "right";
|
|
11
11
|
readonly portal?: boolean;
|
|
12
|
+
readonly container?: ComponentPropsWithRef<typeof Dialog.Portal>["container"];
|
|
12
13
|
};
|
package/dist/styled.js
ADDED
package/dist/styles.css
CHANGED
|
@@ -1,3 +1,597 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root, :host {
|
|
6
|
+
--spacing: 0.25rem;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
@layer utilities {
|
|
10
|
+
.gridui-u-button--pointer-events-none {
|
|
11
|
+
pointer-events: none;
|
|
12
|
+
}
|
|
13
|
+
.gridui-u-button--inline-flex {
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
}
|
|
16
|
+
.gridui-u-button--h-full {
|
|
17
|
+
height: 100%;
|
|
18
|
+
}
|
|
19
|
+
.gridui-u-button--h-gridui-control {
|
|
20
|
+
height: var(--gridui-control-min-height);
|
|
21
|
+
}
|
|
22
|
+
.gridui-u-button--min-h-18 {
|
|
23
|
+
min-height: calc(var(--spacing) * 18);
|
|
24
|
+
}
|
|
25
|
+
.gridui-u-button--min-h-gridui-control {
|
|
26
|
+
min-height: var(--gridui-control-min-height);
|
|
27
|
+
}
|
|
28
|
+
.gridui-u-button--min-h-gridui-control-large {
|
|
29
|
+
min-height: var(--gridui-control-min-height-large);
|
|
30
|
+
}
|
|
31
|
+
.gridui-u-button--min-h-gridui-control-small {
|
|
32
|
+
min-height: var(--gridui-control-min-height-small);
|
|
33
|
+
}
|
|
34
|
+
.gridui-u-button--w-fit {
|
|
35
|
+
width: fit-content;
|
|
36
|
+
}
|
|
37
|
+
.gridui-u-button--w-full {
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
.gridui-u-button--w-gridui-64 {
|
|
41
|
+
width: var(--gridui-space-64);
|
|
42
|
+
}
|
|
43
|
+
.gridui-u-button--w-gridui-control {
|
|
44
|
+
width: var(--gridui-control-min-height);
|
|
45
|
+
}
|
|
46
|
+
.gridui-u-button--w-gridui-control-large {
|
|
47
|
+
width: var(--gridui-control-min-height-large);
|
|
48
|
+
}
|
|
49
|
+
.gridui-u-button--w-gridui-control-small {
|
|
50
|
+
width: var(--gridui-control-min-height-small);
|
|
51
|
+
}
|
|
52
|
+
.gridui-u-button--max-w-full {
|
|
53
|
+
max-width: 100%;
|
|
54
|
+
}
|
|
55
|
+
.gridui-u-button--min-w-0 {
|
|
56
|
+
min-width: 0px;
|
|
57
|
+
}
|
|
58
|
+
.gridui-u-button--min-w-gridui-24 {
|
|
59
|
+
min-width: var(--gridui-space-24);
|
|
60
|
+
}
|
|
61
|
+
.gridui-u-button--flex-1 {
|
|
62
|
+
flex: 1;
|
|
63
|
+
}
|
|
64
|
+
.gridui-u-button--shrink-0 {
|
|
65
|
+
flex-shrink: 0;
|
|
66
|
+
}
|
|
67
|
+
.gridui-u-button--cursor-pointer {
|
|
68
|
+
cursor: pointer;
|
|
69
|
+
}
|
|
70
|
+
.gridui-u-button--flex-col {
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}
|
|
73
|
+
.gridui-u-button--items-center {
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
.gridui-u-button--items-stretch {
|
|
77
|
+
align-items: stretch;
|
|
78
|
+
}
|
|
79
|
+
.gridui-u-button--justify-between {
|
|
80
|
+
justify-content: space-between;
|
|
81
|
+
}
|
|
82
|
+
.gridui-u-button--justify-center {
|
|
83
|
+
justify-content: center;
|
|
84
|
+
}
|
|
85
|
+
.gridui-u-button--justify-start {
|
|
86
|
+
justify-content: flex-start;
|
|
87
|
+
}
|
|
88
|
+
.gridui-u-button--gap-0 {
|
|
89
|
+
gap: 0px;
|
|
90
|
+
}
|
|
91
|
+
.gridui-u-button--gap-gridui-8 {
|
|
92
|
+
gap: var(--gridui-space-8);
|
|
93
|
+
}
|
|
94
|
+
.gridui-u-button--gap-gridui-32 {
|
|
95
|
+
gap: var(--gridui-space-32);
|
|
96
|
+
}
|
|
97
|
+
.gridui-u-button--self-stretch {
|
|
98
|
+
align-self: stretch;
|
|
99
|
+
}
|
|
100
|
+
.gridui-u-button--rounded-control {
|
|
101
|
+
border-radius: var(--gridui-control-radius);
|
|
102
|
+
}
|
|
103
|
+
.gridui-u-button--rounded-none {
|
|
104
|
+
border-radius: 0;
|
|
105
|
+
}
|
|
106
|
+
.gridui-u-button--border-0 {
|
|
107
|
+
border-style: var(--tw-border-style);
|
|
108
|
+
border-width: 0px;
|
|
109
|
+
}
|
|
110
|
+
.gridui-u-button--border-b {
|
|
111
|
+
border-bottom-style: var(--tw-border-style);
|
|
112
|
+
border-bottom-width: 1px;
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-button--border-accent-background {
|
|
115
|
+
border-color: var(--gridui-accent-background);
|
|
116
|
+
}
|
|
117
|
+
.gridui-u-button--border-control-border {
|
|
118
|
+
border-color: var(--gridui-control-border);
|
|
119
|
+
}
|
|
120
|
+
.gridui-u-button--border-foreground {
|
|
121
|
+
border-color: var(--gridui-foreground);
|
|
122
|
+
}
|
|
123
|
+
.gridui-u-button--bg-accent-background {
|
|
124
|
+
background-color: var(--gridui-accent-background);
|
|
125
|
+
}
|
|
126
|
+
.gridui-u-button--bg-selection-background {
|
|
127
|
+
background-color: var(--gridui-selection-background);
|
|
128
|
+
}
|
|
129
|
+
.gridui-u-button--bg-transparent {
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
}
|
|
132
|
+
.gridui-u-button--p-0 {
|
|
133
|
+
padding: 0px;
|
|
134
|
+
}
|
|
135
|
+
.gridui-u-button--px-0 {
|
|
136
|
+
padding-inline: 0px;
|
|
137
|
+
}
|
|
138
|
+
.gridui-u-button--px-gridui-8 {
|
|
139
|
+
padding-inline: var(--gridui-space-8);
|
|
140
|
+
}
|
|
141
|
+
.gridui-u-button--px-gridui-16 {
|
|
142
|
+
padding-inline: var(--gridui-space-16);
|
|
143
|
+
}
|
|
144
|
+
.gridui-u-button--px-gridui-24 {
|
|
145
|
+
padding-inline: var(--gridui-space-24);
|
|
146
|
+
}
|
|
147
|
+
.gridui-u-button--py-gridui-4 {
|
|
148
|
+
padding-block: var(--gridui-space-4);
|
|
149
|
+
}
|
|
150
|
+
.gridui-u-button--py-gridui-8 {
|
|
151
|
+
padding-block: var(--gridui-space-8);
|
|
152
|
+
}
|
|
153
|
+
.gridui-u-button--py-gridui-16 {
|
|
154
|
+
padding-block: var(--gridui-space-16);
|
|
155
|
+
}
|
|
156
|
+
.gridui-u-button--text-center {
|
|
157
|
+
text-align: center;
|
|
158
|
+
}
|
|
159
|
+
.gridui-u-button--text-left {
|
|
160
|
+
text-align: left;
|
|
161
|
+
}
|
|
162
|
+
.gridui-u-button--text-start {
|
|
163
|
+
text-align: start;
|
|
164
|
+
}
|
|
165
|
+
.gridui-u-button--type-supporting {
|
|
166
|
+
font: var(--gridui-type-supporting);
|
|
167
|
+
font-family: var(--gridui-font-body);
|
|
168
|
+
letter-spacing: normal;
|
|
169
|
+
}
|
|
170
|
+
.gridui-u-button--type-ui {
|
|
171
|
+
font: var(--gridui-type-ui);
|
|
172
|
+
font-family: var(--gridui-font-body);
|
|
173
|
+
letter-spacing: normal;
|
|
174
|
+
}
|
|
175
|
+
.gridui-u-button--wrap-anywhere {
|
|
176
|
+
overflow-wrap: anywhere;
|
|
177
|
+
}
|
|
178
|
+
.gridui-u-button--text-accent-foreground {
|
|
179
|
+
color: var(--gridui-accent-foreground);
|
|
180
|
+
}
|
|
181
|
+
.gridui-u-button--text-foreground {
|
|
182
|
+
color: var(--gridui-foreground);
|
|
183
|
+
}
|
|
184
|
+
.gridui-u-button--no-underline {
|
|
185
|
+
text-decoration-line: none;
|
|
186
|
+
}
|
|
187
|
+
.gridui-u-button--\[transition-property\:var\(--gridui-motion-transition\,color\,background-color\,border-color\,text-decoration-color\,fill\,stroke\)\] {
|
|
188
|
+
transition-property: var(--gridui-motion-transition,color,background-color,border-color,text-decoration-color,fill,stroke);
|
|
189
|
+
}
|
|
190
|
+
.gridui-u-button--duration-\[calc\(var\(--gridui-motion-duration-quick\)\*var\(--gridui-motion-factor\,1\)\)\] {
|
|
191
|
+
--tw-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
|
|
192
|
+
transition-duration: calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor,1));
|
|
193
|
+
}
|
|
194
|
+
.gridui-u-button--ease-\(--gridui-motion-ease-out\) {
|
|
195
|
+
--tw-ease: var(--gridui-motion-ease-out);
|
|
196
|
+
transition-timing-function: var(--gridui-motion-ease-out);
|
|
197
|
+
}
|
|
198
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-icon-size\)\] {
|
|
199
|
+
--gridui-button-icon-size: var(--gridui-icon-size);
|
|
200
|
+
}
|
|
201
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-icon-size-large\)\] {
|
|
202
|
+
--gridui-button-icon-size: var(--gridui-icon-size-large);
|
|
203
|
+
}
|
|
204
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-space-32\)\] {
|
|
205
|
+
--gridui-button-icon-size: var(--gridui-space-32);
|
|
206
|
+
}
|
|
207
|
+
.gridui-u-button--\[--gridui-button-icon-size\:var\(--gridui-space-48\)\] {
|
|
208
|
+
--gridui-button-icon-size: var(--gridui-space-48);
|
|
209
|
+
}
|
|
210
|
+
@media (hover: hover) {
|
|
211
|
+
.gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:hover\:bg-accent-hover:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):hover {
|
|
212
|
+
background-color: var(--gridui-accent-hover);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
.gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:active\:bg-accent-pressed:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):active {
|
|
216
|
+
background-color: var(--gridui-accent-pressed);
|
|
217
|
+
}
|
|
218
|
+
.gridui-u-button--not-disabled\:not-aria-disabled\:not-data-disabled\:active\:bg-surface-pressed:not(:disabled):not([aria-disabled="true"]):not([data-disabled]):active {
|
|
219
|
+
background-color: var(--gridui-surface-pressed);
|
|
220
|
+
}
|
|
221
|
+
.gridui-u-button--disabled\:cursor-not-allowed:disabled {
|
|
222
|
+
cursor: not-allowed;
|
|
223
|
+
}
|
|
224
|
+
.gridui-u-button--aria-disabled\:cursor-not-allowed[aria-disabled="true"] {
|
|
225
|
+
cursor: not-allowed;
|
|
226
|
+
}
|
|
227
|
+
.gridui-u-button--data-disabled\:cursor-not-allowed[data-disabled] {
|
|
228
|
+
cursor: not-allowed;
|
|
229
|
+
}
|
|
230
|
+
.gridui-u-button--data-gridui-busy\:cursor-wait[data-gridui-busy] {
|
|
231
|
+
cursor: wait;
|
|
232
|
+
}
|
|
233
|
+
@media (prefers-reduced-motion: reduce) {
|
|
234
|
+
.gridui-u-button--motion-reduce\:transition-none {
|
|
235
|
+
transition-property: none;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
.gridui-u-button--\[\&_\>_span\]\:whitespace-nowrap > span {
|
|
239
|
+
white-space: nowrap;
|
|
240
|
+
}
|
|
241
|
+
.gridui-u-button--\[\&_\>_span\]\:\[writing-mode\:vertical-rl\] > span {
|
|
242
|
+
writing-mode: vertical-rl;
|
|
243
|
+
}
|
|
244
|
+
.gridui-u-button--\[\&_svg\]\:pointer-events-none svg {
|
|
245
|
+
pointer-events: none;
|
|
246
|
+
}
|
|
247
|
+
.gridui-u-button--\[\&_svg\]\:h-\(--gridui-button-icon-size\) svg {
|
|
248
|
+
height: var(--gridui-button-icon-size);
|
|
249
|
+
}
|
|
250
|
+
.gridui-u-button--\[\&_svg\]\:w-\(--gridui-button-icon-size\) svg {
|
|
251
|
+
width: var(--gridui-button-icon-size);
|
|
252
|
+
}
|
|
253
|
+
.gridui-u-button--\[\&_svg\]\:shrink-0 svg {
|
|
254
|
+
flex-shrink: 0;
|
|
255
|
+
}
|
|
256
|
+
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:h-18.gridui-button-extra-large {
|
|
257
|
+
height: calc(var(--spacing) * 18);
|
|
258
|
+
}
|
|
259
|
+
.gridui-u-button--\[\&\.gridui-button-extra-large\]\:w-18.gridui-button-extra-large {
|
|
260
|
+
width: calc(var(--spacing) * 18);
|
|
261
|
+
}
|
|
262
|
+
.gridui-u-button--\[\&\.gridui-button-large\]\:h-gridui-control-large.gridui-button-large {
|
|
263
|
+
height: var(--gridui-control-min-height-large);
|
|
264
|
+
}
|
|
265
|
+
.gridui-u-button--\[\&\.gridui-button-large\]\:w-gridui-control-large.gridui-button-large {
|
|
266
|
+
width: var(--gridui-control-min-height-large);
|
|
267
|
+
}
|
|
268
|
+
.gridui-u-button--\[\&\.gridui-button-small\]\:h-gridui-control-small.gridui-button-small {
|
|
269
|
+
height: var(--gridui-control-min-height-small);
|
|
270
|
+
}
|
|
271
|
+
.gridui-u-button--\[\&\.gridui-button-small\]\:w-gridui-control-small.gridui-button-small {
|
|
272
|
+
width: var(--gridui-control-min-height-small);
|
|
273
|
+
}
|
|
274
|
+
@media (pointer: coarse) {
|
|
275
|
+
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:h-gridui-control.gridui-button-small {
|
|
276
|
+
height: var(--gridui-control-min-height);
|
|
277
|
+
}
|
|
278
|
+
.gridui-u-button--pointer-coarse\:\[\&\.gridui-button-small\]\:w-gridui-control.gridui-button-small {
|
|
279
|
+
width: var(--gridui-control-min-height);
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
@layer components {
|
|
284
|
+
.gridui-button {
|
|
285
|
+
border: 1px solid transparent;
|
|
286
|
+
}
|
|
287
|
+
.gridui-button-cell {
|
|
288
|
+
border: 0;
|
|
289
|
+
}
|
|
290
|
+
.gridui-button-label-content {
|
|
291
|
+
display: inline-flex;
|
|
292
|
+
min-width: 0;
|
|
293
|
+
flex-direction: inherit;
|
|
294
|
+
align-items: inherit;
|
|
295
|
+
justify-content: inherit;
|
|
296
|
+
gap: inherit;
|
|
297
|
+
}
|
|
298
|
+
.gridui-button-body {
|
|
299
|
+
display: inline-flex;
|
|
300
|
+
flex: 1;
|
|
301
|
+
min-width: 0;
|
|
302
|
+
flex-direction: inherit;
|
|
303
|
+
align-items: inherit;
|
|
304
|
+
justify-content: inherit;
|
|
305
|
+
gap: inherit;
|
|
306
|
+
}
|
|
307
|
+
.gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-content, .gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-start-region > .gridui-button-content, .gridui-button:is(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled]) > .gridui-button-end-region > .gridui-button-content {
|
|
308
|
+
opacity: 0.5;
|
|
309
|
+
}
|
|
310
|
+
.gridui-button-start-region {
|
|
311
|
+
min-width: calc(var(--gridui-button-icon-size) + var(--gridui-space-16));
|
|
312
|
+
border-inline-end: 1px solid;
|
|
313
|
+
border-color: inherit;
|
|
314
|
+
}
|
|
315
|
+
.gridui-button-end-region {
|
|
316
|
+
border-inline-start: 1px solid;
|
|
317
|
+
border-color: inherit;
|
|
318
|
+
}
|
|
319
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
320
|
+
.gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]) .gridui-button-end-icon {
|
|
321
|
+
transition: var(--gridui-motion-transition, transform calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out));
|
|
322
|
+
}
|
|
323
|
+
.gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]):hover .gridui-button-end-icon {
|
|
324
|
+
transform: var(--gridui-motion-transform, translate(var(--gridui-space-4), calc(-1 * var(--gridui-space-4))));
|
|
325
|
+
}
|
|
326
|
+
.gridui-button-icon-motion-outward:not(:disabled, [aria-disabled="true"]:not([data-gridui-busy]), [data-disabled], [aria-readonly="true"], [data-readonly], [readonly]):dir(rtl):hover .gridui-button-end-icon {
|
|
327
|
+
transform: var(--gridui-motion-transform, translate(calc(-1 * var(--gridui-space-4)), calc(-1 * var(--gridui-space-4))));
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
.gridui-button-group {
|
|
331
|
+
--gridui-button-group-padding-block: var(--gridui-space-24);
|
|
332
|
+
container: gridui-button-group / inline-size;
|
|
333
|
+
min-width: 0;
|
|
334
|
+
}
|
|
335
|
+
.gridui-button-group-items {
|
|
336
|
+
display: grid;
|
|
337
|
+
grid-auto-flow: column;
|
|
338
|
+
grid-auto-columns: minmax(0, 1fr);
|
|
339
|
+
align-items: stretch;
|
|
340
|
+
}
|
|
341
|
+
.gridui-button-group-items[data-layout="standard"] {
|
|
342
|
+
gap: var(--gridui-space-8);
|
|
343
|
+
}
|
|
344
|
+
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item]:not([hidden]) ~ [data-gridui-button-group-item]:not([hidden])::before {
|
|
345
|
+
position: absolute;
|
|
346
|
+
inset-block: 0;
|
|
347
|
+
inset-inline-start: 0;
|
|
348
|
+
width: 1px;
|
|
349
|
+
background: var(--gridui-button-group-border, var(--gridui-border));
|
|
350
|
+
pointer-events: none;
|
|
351
|
+
content: "";
|
|
352
|
+
}
|
|
353
|
+
@container gridui-button-group (max-width: 20rem) {
|
|
354
|
+
.gridui-button-group-items {
|
|
355
|
+
grid-auto-flow: row;
|
|
356
|
+
grid-auto-rows: 1fr;
|
|
357
|
+
}
|
|
358
|
+
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item]:not([hidden]) ~ [data-gridui-button-group-item]:not([hidden])::before {
|
|
359
|
+
inset-block: 0 auto;
|
|
360
|
+
inset-inline: 0;
|
|
361
|
+
width: auto;
|
|
362
|
+
height: 1px;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
@layer utilities {
|
|
367
|
+
.gridui-button-group-items > [data-gridui-button-group-item] {
|
|
368
|
+
position: relative;
|
|
369
|
+
width: 100%;
|
|
370
|
+
height: 100%;
|
|
371
|
+
min-width: 0;
|
|
372
|
+
}
|
|
373
|
+
.gridui-button-group-items[data-layout="cells"] > [data-gridui-button-group-item] {
|
|
374
|
+
min-height: 2.75rem;
|
|
375
|
+
padding: var(--gridui-button-group-padding-block) var(--gridui-space-24);
|
|
376
|
+
border: 0;
|
|
377
|
+
border-radius: 0;
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
@property --tw-border-style {
|
|
381
|
+
syntax: "*";
|
|
382
|
+
inherits: false;
|
|
383
|
+
initial-value: solid;
|
|
384
|
+
}
|
|
385
|
+
@property --tw-duration {
|
|
386
|
+
syntax: "*";
|
|
387
|
+
inherits: false;
|
|
388
|
+
}
|
|
389
|
+
@property --tw-ease {
|
|
390
|
+
syntax: "*";
|
|
391
|
+
inherits: false;
|
|
392
|
+
}
|
|
393
|
+
@layer properties {
|
|
394
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
395
|
+
*, ::before, ::after, ::backdrop {
|
|
396
|
+
--tw-border-style: solid;
|
|
397
|
+
--tw-duration: initial;
|
|
398
|
+
--tw-ease: initial;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
404
|
+
@layer properties;
|
|
405
|
+
@layer theme, base, components, utilities;
|
|
406
|
+
@layer theme {
|
|
407
|
+
:root, :host {
|
|
408
|
+
--spacing: 0.25rem;
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
@layer utilities {
|
|
412
|
+
.gridui-u-overlay--z-\(--gridui-z-popover\) {
|
|
413
|
+
z-index: var(--gridui-z-popover);
|
|
414
|
+
}
|
|
415
|
+
.gridui-u-overlay--flex {
|
|
416
|
+
display: flex;
|
|
417
|
+
}
|
|
418
|
+
.gridui-u-overlay--inline-flex {
|
|
419
|
+
display: inline-flex;
|
|
420
|
+
}
|
|
421
|
+
.gridui-u-overlay--size-gridui-16 {
|
|
422
|
+
width: var(--gridui-space-16);
|
|
423
|
+
height: var(--gridui-space-16);
|
|
424
|
+
}
|
|
425
|
+
.gridui-u-overlay--min-h-10 {
|
|
426
|
+
min-height: calc(var(--spacing) * 10);
|
|
427
|
+
}
|
|
428
|
+
.gridui-u-overlay--min-w-0 {
|
|
429
|
+
min-width: 0px;
|
|
430
|
+
}
|
|
431
|
+
.gridui-u-overlay--shrink-0 {
|
|
432
|
+
flex-shrink: 0;
|
|
433
|
+
}
|
|
434
|
+
.gridui-u-overlay--cursor-pointer {
|
|
435
|
+
cursor: pointer;
|
|
436
|
+
}
|
|
437
|
+
.gridui-u-overlay--items-center {
|
|
438
|
+
align-items: center;
|
|
439
|
+
}
|
|
440
|
+
.gridui-u-overlay--justify-center {
|
|
441
|
+
justify-content: center;
|
|
442
|
+
}
|
|
443
|
+
.gridui-u-overlay--gap-gridui-8 {
|
|
444
|
+
gap: var(--gridui-space-8);
|
|
445
|
+
}
|
|
446
|
+
.gridui-u-overlay--rounded-control {
|
|
447
|
+
border-radius: var(--gridui-control-radius);
|
|
448
|
+
}
|
|
449
|
+
.gridui-u-overlay--border {
|
|
450
|
+
border-style: var(--tw-border-style);
|
|
451
|
+
border-width: 1px;
|
|
452
|
+
}
|
|
453
|
+
.gridui-u-overlay--border-solid {
|
|
454
|
+
--tw-border-style: solid;
|
|
455
|
+
border-style: solid;
|
|
456
|
+
}
|
|
457
|
+
.gridui-u-overlay--border-border {
|
|
458
|
+
border-color: var(--gridui-border);
|
|
459
|
+
}
|
|
460
|
+
.gridui-u-overlay--bg-background {
|
|
461
|
+
background-color: var(--gridui-background);
|
|
462
|
+
}
|
|
463
|
+
.gridui-u-overlay--p-0 {
|
|
464
|
+
padding: 0px;
|
|
465
|
+
}
|
|
466
|
+
.gridui-u-overlay--p-gridui-8 {
|
|
467
|
+
padding: var(--gridui-space-8);
|
|
468
|
+
}
|
|
469
|
+
.gridui-u-overlay--px-gridui-8 {
|
|
470
|
+
padding-inline: var(--gridui-space-8);
|
|
471
|
+
}
|
|
472
|
+
.gridui-u-overlay--py-gridui-8 {
|
|
473
|
+
padding-block: var(--gridui-space-8);
|
|
474
|
+
}
|
|
475
|
+
.gridui-u-overlay--type-data {
|
|
476
|
+
font: var(--gridui-type-data);
|
|
477
|
+
font-family: var(--gridui-font-body);
|
|
478
|
+
letter-spacing: normal;
|
|
479
|
+
font-variant-numeric: tabular-nums;
|
|
480
|
+
}
|
|
481
|
+
.gridui-u-overlay--type-caption {
|
|
482
|
+
font: var(--gridui-type-caption);
|
|
483
|
+
font-family: var(--gridui-font-body);
|
|
484
|
+
letter-spacing: normal;
|
|
485
|
+
}
|
|
486
|
+
.gridui-u-overlay--wrap-anywhere {
|
|
487
|
+
overflow-wrap: anywhere;
|
|
488
|
+
}
|
|
489
|
+
.gridui-u-overlay--whitespace-normal {
|
|
490
|
+
white-space: normal;
|
|
491
|
+
}
|
|
492
|
+
.gridui-u-overlay--text-foreground {
|
|
493
|
+
color: var(--gridui-foreground);
|
|
494
|
+
}
|
|
495
|
+
.gridui-u-overlay--text-inherit {
|
|
496
|
+
color: inherit;
|
|
497
|
+
}
|
|
498
|
+
.gridui-u-overlay--text-muted {
|
|
499
|
+
color: var(--gridui-muted);
|
|
500
|
+
}
|
|
501
|
+
.gridui-u-overlay--no-underline {
|
|
502
|
+
text-decoration-line: none;
|
|
503
|
+
}
|
|
504
|
+
.gridui-u-overlay--aria-selected\:bg-selection-background[aria-selected="true"] {
|
|
505
|
+
background-color: var(--gridui-selection-background);
|
|
506
|
+
}
|
|
507
|
+
.gridui-u-overlay--aria-\[current\=page\]\:bg-selection-background[aria-current="page"] {
|
|
508
|
+
background-color: var(--gridui-selection-background);
|
|
509
|
+
}
|
|
510
|
+
.gridui-u-overlay--data-disabled\:pointer-events-none[data-disabled] {
|
|
511
|
+
pointer-events: none;
|
|
512
|
+
}
|
|
513
|
+
.gridui-u-overlay--data-disabled\:opacity-50[data-disabled] {
|
|
514
|
+
opacity: 50%;
|
|
515
|
+
}
|
|
516
|
+
.gridui-u-overlay--data-\[state\=checked\]\:bg-selection-background[data-state="checked"] {
|
|
517
|
+
background-color: var(--gridui-selection-background);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
@layer components {
|
|
521
|
+
.gridui-overlay-surface {
|
|
522
|
+
--gridui-surface-offset-x: 0px;
|
|
523
|
+
--gridui-surface-offset-y: 0px;
|
|
524
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
|
|
525
|
+
--gridui-overlay-fill-mode: both;
|
|
526
|
+
transform-origin: var(--gridui-overlay-origin, center);
|
|
527
|
+
}
|
|
528
|
+
.gridui-overlay-dialog {
|
|
529
|
+
--gridui-overlay-fill-mode: none;
|
|
530
|
+
transform-origin: center;
|
|
531
|
+
}
|
|
532
|
+
.gridui-overlay-tooltip {
|
|
533
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-quick);
|
|
534
|
+
}
|
|
535
|
+
.gridui-overlay-floating[data-side="bottom"] {
|
|
536
|
+
--gridui-surface-offset-y: calc(-1 * var(--gridui-motion-distance));
|
|
537
|
+
}
|
|
538
|
+
.gridui-overlay-floating[data-side="top"] {
|
|
539
|
+
--gridui-surface-offset-y: var(--gridui-motion-distance);
|
|
540
|
+
}
|
|
541
|
+
.gridui-overlay-floating[data-side="left"] {
|
|
542
|
+
--gridui-surface-offset-x: var(--gridui-motion-distance);
|
|
543
|
+
}
|
|
544
|
+
.gridui-overlay-floating[data-side="right"] {
|
|
545
|
+
--gridui-surface-offset-x: calc(-1 * var(--gridui-motion-distance));
|
|
546
|
+
}
|
|
547
|
+
.gridui-overlay-surface[data-state="closed"] {
|
|
548
|
+
pointer-events: none;
|
|
549
|
+
}
|
|
550
|
+
.gridui-overlay-surface:not([data-side="none"]):is([data-state="open"], [data-state="delayed-open"], [data-state="instant-open"]) {
|
|
551
|
+
animation: var(--gridui-motion-animation, gridui-surface-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
|
|
552
|
+
}
|
|
553
|
+
.gridui-overlay-surface:not([data-side="none"])[data-state="closed"] {
|
|
554
|
+
animation: var(--gridui-motion-animation, gridui-surface-exit calc(var(--gridui-motion-duration-quick) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
|
|
555
|
+
}
|
|
556
|
+
.gridui-overlay-backdrop {
|
|
557
|
+
background: var(--gridui-backdrop);
|
|
558
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
559
|
+
background: color-mix(in srgb, var(--gridui-backdrop) var(--gridui-backdrop-opacity), transparent);
|
|
560
|
+
}
|
|
561
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-normal);
|
|
562
|
+
--gridui-overlay-exit-duration: var(--gridui-motion-duration-quick);
|
|
563
|
+
--gridui-overlay-fill-mode: none;
|
|
564
|
+
}
|
|
565
|
+
.gridui-overlay-backdrop-deliberate {
|
|
566
|
+
--gridui-overlay-enter-duration: var(--gridui-motion-duration-deliberate);
|
|
567
|
+
--gridui-overlay-exit-duration: var(--gridui-motion-duration-normal);
|
|
568
|
+
--gridui-overlay-fill-mode: both;
|
|
569
|
+
}
|
|
570
|
+
.gridui-overlay-backdrop[data-state="open"] {
|
|
571
|
+
animation: var(--gridui-motion-animation, gridui-fade-enter calc(var(--gridui-overlay-enter-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) var(--gridui-overlay-fill-mode));
|
|
572
|
+
}
|
|
573
|
+
.gridui-overlay-backdrop[data-state="closed"] {
|
|
574
|
+
animation: var(--gridui-motion-animation, gridui-fade-exit calc(var(--gridui-overlay-exit-duration) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) var(--gridui-overlay-fill-mode));
|
|
575
|
+
}
|
|
576
|
+
@media (prefers-reduced-motion: reduce) {
|
|
577
|
+
.gridui-overlay-surface:not([data-side="none"])[data-state], .gridui-overlay-backdrop[data-state] {
|
|
578
|
+
animation: none;
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
@property --tw-border-style {
|
|
583
|
+
syntax: "*";
|
|
584
|
+
inherits: false;
|
|
585
|
+
initial-value: solid;
|
|
586
|
+
}
|
|
587
|
+
@layer properties {
|
|
588
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
589
|
+
*, ::before, ::after, ::backdrop {
|
|
590
|
+
--tw-border-style: solid;
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
|
|
1
595
|
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
596
|
@layer properties;
|
|
3
597
|
@layer theme, base, components, utilities;
|
|
@@ -88,9 +682,6 @@
|
|
|
88
682
|
.gridui-u-drawer--border-border {
|
|
89
683
|
border-color: var(--gridui-border);
|
|
90
684
|
}
|
|
91
|
-
.gridui-u-drawer--bg-\[light-dark\(rgb\(0_0_0\/25\%\)\,rgb\(0_0_0\/60\%\)\)\] {
|
|
92
|
-
background-color: light-dark(rgb(0 0 0/25%),rgb(0 0 0/60%));
|
|
93
|
-
}
|
|
94
685
|
.gridui-u-drawer--bg-background {
|
|
95
686
|
background-color: var(--gridui-background);
|
|
96
687
|
}
|
|
@@ -105,11 +696,13 @@
|
|
|
105
696
|
}
|
|
106
697
|
.gridui-u-drawer--type-subheading {
|
|
107
698
|
font: var(--gridui-type-subheading);
|
|
699
|
+
font-family: var(--gridui-font-body);
|
|
108
700
|
letter-spacing: normal;
|
|
109
701
|
text-wrap: balance;
|
|
110
702
|
}
|
|
111
703
|
.gridui-u-drawer--type-supporting {
|
|
112
704
|
font: var(--gridui-type-supporting);
|
|
705
|
+
font-family: var(--gridui-font-body);
|
|
113
706
|
letter-spacing: normal;
|
|
114
707
|
}
|
|
115
708
|
.gridui-u-drawer--text-foreground {
|
|
@@ -162,10 +755,10 @@
|
|
|
162
755
|
--gridui-drawer-offset: 100%;
|
|
163
756
|
}
|
|
164
757
|
.gridui-drawer-panel[data-state="open"] {
|
|
165
|
-
animation: gridui-drawer-enter var(--gridui-motion-duration-deliberate) var(--gridui-motion-ease-out) both;
|
|
758
|
+
animation: var(--gridui-motion-animation, gridui-drawer-enter calc(var(--gridui-motion-duration-deliberate) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) both);
|
|
166
759
|
}
|
|
167
760
|
.gridui-drawer-panel[data-state="closed"] {
|
|
168
|
-
animation: gridui-drawer-exit var(--gridui-motion-duration-normal) var(--gridui-motion-ease-in) both;
|
|
761
|
+
animation: var(--gridui-motion-animation, gridui-drawer-exit calc(var(--gridui-motion-duration-normal) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) both);
|
|
169
762
|
}
|
|
170
763
|
@keyframes gridui-drawer-enter {
|
|
171
764
|
from {
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer utilities {
|
|
5
|
+
.gridui-u-drawer--fixed {
|
|
6
|
+
position: fixed;
|
|
7
|
+
}
|
|
8
|
+
.gridui-u-drawer--inset-0 {
|
|
9
|
+
inset: 0px;
|
|
10
|
+
}
|
|
11
|
+
.gridui-u-drawer--inset-y-0 {
|
|
12
|
+
inset-block: 0px;
|
|
13
|
+
}
|
|
14
|
+
.gridui-u-drawer--z-\(--gridui-z-drawer\) {
|
|
15
|
+
z-index: var(--gridui-z-drawer);
|
|
16
|
+
}
|
|
17
|
+
.gridui-u-drawer--z-\(--gridui-z-drawer-backdrop\) {
|
|
18
|
+
z-index: var(--gridui-z-drawer-backdrop);
|
|
19
|
+
}
|
|
20
|
+
.gridui-u-drawer--m-0 {
|
|
21
|
+
margin: 0px;
|
|
22
|
+
}
|
|
23
|
+
.gridui-u-drawer--box-border {
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
}
|
|
26
|
+
.gridui-u-drawer--flex {
|
|
27
|
+
display: flex;
|
|
28
|
+
}
|
|
29
|
+
.gridui-u-drawer--h-dvh {
|
|
30
|
+
height: 100dvh;
|
|
31
|
+
}
|
|
32
|
+
.gridui-u-drawer--max-h-\[50dvh\] {
|
|
33
|
+
max-height: 50dvh;
|
|
34
|
+
}
|
|
35
|
+
.gridui-u-drawer--min-h-0 {
|
|
36
|
+
min-height: 0px;
|
|
37
|
+
}
|
|
38
|
+
.gridui-u-drawer--w-\[min\(100\%\,var\(--gridui-drawer-width\,24rem\)\)\] {
|
|
39
|
+
width: min(100%, var(--gridui-drawer-width,24rem));
|
|
40
|
+
}
|
|
41
|
+
.gridui-u-drawer--max-w-full {
|
|
42
|
+
max-width: 100%;
|
|
43
|
+
}
|
|
44
|
+
.gridui-u-drawer--flex-1 {
|
|
45
|
+
flex: 1;
|
|
46
|
+
}
|
|
47
|
+
.gridui-u-drawer--shrink-0 {
|
|
48
|
+
flex-shrink: 0;
|
|
49
|
+
}
|
|
50
|
+
.gridui-u-drawer--flex-col {
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
}
|
|
53
|
+
.gridui-u-drawer--items-center {
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
.gridui-u-drawer--justify-between {
|
|
57
|
+
justify-content: space-between;
|
|
58
|
+
}
|
|
59
|
+
.gridui-u-drawer--gap-gridui-16 {
|
|
60
|
+
gap: var(--gridui-space-16);
|
|
61
|
+
}
|
|
62
|
+
.gridui-u-drawer--overflow-y-auto {
|
|
63
|
+
overflow-y: auto;
|
|
64
|
+
}
|
|
65
|
+
.gridui-u-drawer--overscroll-contain {
|
|
66
|
+
overscroll-behavior: contain;
|
|
67
|
+
}
|
|
68
|
+
.gridui-u-drawer--border {
|
|
69
|
+
border-style: var(--tw-border-style);
|
|
70
|
+
border-width: 1px;
|
|
71
|
+
}
|
|
72
|
+
.gridui-u-drawer--border-y-0 {
|
|
73
|
+
border-block-style: var(--tw-border-style);
|
|
74
|
+
border-block-width: 0px;
|
|
75
|
+
}
|
|
76
|
+
.gridui-u-drawer--border-t {
|
|
77
|
+
border-top-style: var(--tw-border-style);
|
|
78
|
+
border-top-width: 1px;
|
|
79
|
+
}
|
|
80
|
+
.gridui-u-drawer--border-b {
|
|
81
|
+
border-bottom-style: var(--tw-border-style);
|
|
82
|
+
border-bottom-width: 1px;
|
|
83
|
+
}
|
|
84
|
+
.gridui-u-drawer--border-solid {
|
|
85
|
+
--tw-border-style: solid;
|
|
86
|
+
border-style: solid;
|
|
87
|
+
}
|
|
88
|
+
.gridui-u-drawer--border-border {
|
|
89
|
+
border-color: var(--gridui-border);
|
|
90
|
+
}
|
|
91
|
+
.gridui-u-drawer--bg-background {
|
|
92
|
+
background-color: var(--gridui-background);
|
|
93
|
+
}
|
|
94
|
+
.gridui-u-drawer--p-gridui-24 {
|
|
95
|
+
padding: var(--gridui-space-24);
|
|
96
|
+
}
|
|
97
|
+
.gridui-u-drawer--pt-\[max\(var\(--gridui-space-24\)\,env\(safe-area-inset-top\)\)\] {
|
|
98
|
+
padding-top: max(var(--gridui-space-24), env(safe-area-inset-top));
|
|
99
|
+
}
|
|
100
|
+
.gridui-u-drawer--pb-\[env\(safe-area-inset-bottom\)\] {
|
|
101
|
+
padding-bottom: env(safe-area-inset-bottom);
|
|
102
|
+
}
|
|
103
|
+
.gridui-u-drawer--type-subheading {
|
|
104
|
+
font: var(--gridui-type-subheading);
|
|
105
|
+
font-family: var(--gridui-font-body);
|
|
106
|
+
letter-spacing: normal;
|
|
107
|
+
text-wrap: balance;
|
|
108
|
+
}
|
|
109
|
+
.gridui-u-drawer--type-supporting {
|
|
110
|
+
font: var(--gridui-type-supporting);
|
|
111
|
+
font-family: var(--gridui-font-body);
|
|
112
|
+
letter-spacing: normal;
|
|
113
|
+
}
|
|
114
|
+
.gridui-u-drawer--text-foreground {
|
|
115
|
+
color: var(--gridui-foreground);
|
|
116
|
+
}
|
|
117
|
+
.gridui-u-drawer--text-muted {
|
|
118
|
+
color: var(--gridui-muted);
|
|
119
|
+
}
|
|
120
|
+
.gridui-u-drawer--data-\[side\=\'end\'\]\:inset-e-0[data-side='end'] {
|
|
121
|
+
inset-inline-end: 0px;
|
|
122
|
+
}
|
|
123
|
+
.gridui-u-drawer--data-\[side\=\'end\'\]\:\[border-inline-end\:0\][data-side='end'] {
|
|
124
|
+
border-inline-end: 0;
|
|
125
|
+
}
|
|
126
|
+
.gridui-u-drawer--data-\[side\=\'left\'\]\:left-0[data-side='left'] {
|
|
127
|
+
left: 0px;
|
|
128
|
+
}
|
|
129
|
+
.gridui-u-drawer--data-\[side\=\'left\'\]\:border-l-0[data-side='left'] {
|
|
130
|
+
border-left-style: var(--tw-border-style);
|
|
131
|
+
border-left-width: 0px;
|
|
132
|
+
}
|
|
133
|
+
.gridui-u-drawer--data-\[side\=\'right\'\]\:right-0[data-side='right'] {
|
|
134
|
+
right: 0px;
|
|
135
|
+
}
|
|
136
|
+
.gridui-u-drawer--data-\[side\=\'right\'\]\:border-r-0[data-side='right'] {
|
|
137
|
+
border-right-style: var(--tw-border-style);
|
|
138
|
+
border-right-width: 0px;
|
|
139
|
+
}
|
|
140
|
+
.gridui-u-drawer--data-\[side\=\'start\'\]\:inset-s-0[data-side='start'] {
|
|
141
|
+
inset-inline-start: 0px;
|
|
142
|
+
}
|
|
143
|
+
.gridui-u-drawer--data-\[side\=\'start\'\]\:\[border-inline-start\:0\][data-side='start'] {
|
|
144
|
+
border-inline-start: 0;
|
|
145
|
+
}
|
|
146
|
+
.gridui-u-drawer--data-\[state\=\'closed\'\]\:pointer-events-none[data-state='closed'] {
|
|
147
|
+
pointer-events: none;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
@layer components {
|
|
151
|
+
.gridui-drawer-panel {
|
|
152
|
+
--gridui-drawer-offset: 100%;
|
|
153
|
+
}
|
|
154
|
+
.gridui-drawer-panel[data-side="left"], .gridui-drawer-panel[data-side="start"] {
|
|
155
|
+
--gridui-drawer-offset: -100%;
|
|
156
|
+
}
|
|
157
|
+
.gridui-drawer-panel[data-side="end"]:dir(rtl) {
|
|
158
|
+
--gridui-drawer-offset: -100%;
|
|
159
|
+
}
|
|
160
|
+
.gridui-drawer-panel[data-side="start"]:dir(rtl) {
|
|
161
|
+
--gridui-drawer-offset: 100%;
|
|
162
|
+
}
|
|
163
|
+
.gridui-drawer-panel[data-state="open"] {
|
|
164
|
+
animation: var(--gridui-motion-animation, gridui-drawer-enter calc(var(--gridui-motion-duration-deliberate) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-out) both);
|
|
165
|
+
}
|
|
166
|
+
.gridui-drawer-panel[data-state="closed"] {
|
|
167
|
+
animation: var(--gridui-motion-animation, gridui-drawer-exit calc(var(--gridui-motion-duration-normal) * var(--gridui-motion-factor, 1)) var(--gridui-motion-ease-in) both);
|
|
168
|
+
}
|
|
169
|
+
@keyframes gridui-drawer-enter {
|
|
170
|
+
from {
|
|
171
|
+
transform: translateX(var(--gridui-drawer-offset));
|
|
172
|
+
}
|
|
173
|
+
to {
|
|
174
|
+
transform: translateX(0);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@keyframes gridui-drawer-exit {
|
|
178
|
+
from {
|
|
179
|
+
transform: translateX(0);
|
|
180
|
+
}
|
|
181
|
+
to {
|
|
182
|
+
transform: translateX(var(--gridui-drawer-offset));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
@media (prefers-reduced-motion: reduce) {
|
|
186
|
+
.gridui-drawer-panel[data-state] {
|
|
187
|
+
animation: none;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
@property --tw-border-style {
|
|
192
|
+
syntax: "*";
|
|
193
|
+
inherits: false;
|
|
194
|
+
initial-value: solid;
|
|
195
|
+
}
|
|
196
|
+
@layer properties {
|
|
197
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
198
|
+
*, ::before, ::after, ::backdrop {
|
|
199
|
+
--tw-border-style: solid;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
package/docs/catalog.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
3
|
"name": "@gridui/drawer",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"category": "core",
|
|
6
6
|
"description": "GridUI React drawer",
|
|
7
7
|
"usage": "`DrawerPanel` portals its backdrop and surface to the document by default. Set `portal={false}` to keep an ordinary modal panel in its owner's DOM scope. `side=\"start\" | \"end\"` follows writing direction; `\"left\" | \"right\"` fixes the physical placement and entry direction, including in RTL.",
|
|
@@ -138,6 +138,7 @@
|
|
|
138
138
|
"@gridui/overlay/styles.css",
|
|
139
139
|
"@gridui/drawer/styles.css"
|
|
140
140
|
],
|
|
141
|
+
"styledImport": "@gridui/drawer/styled",
|
|
141
142
|
"examples": [
|
|
142
143
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/drawer/stories/getting-started.mdx",
|
|
143
144
|
"https://github.com/sudo-ui/GridUI-React-Monorepo/blob/main/packages-core/drawer/stories/inline-modal.mdx",
|
|
@@ -119,7 +119,7 @@ Can be prevented.
|
|
|
119
119
|
|
|
120
120
|
### side
|
|
121
121
|
|
|
122
|
-
``"
|
|
122
|
+
``"end" | "right" | "left" | "start" | undefined`` · Optional
|
|
123
123
|
|
|
124
124
|
Default: ``"end"``
|
|
125
125
|
|
|
@@ -129,3 +129,7 @@ Default: ``"end"``
|
|
|
129
129
|
|
|
130
130
|
Default: ``true``
|
|
131
131
|
|
|
132
|
+
### container
|
|
133
|
+
|
|
134
|
+
``Element | DocumentFragment | null | undefined`` · Optional
|
|
135
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gridui/drawer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "GridUI React drawer",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"type": "module",
|
|
@@ -10,14 +10,19 @@
|
|
|
10
10
|
"docs"
|
|
11
11
|
],
|
|
12
12
|
"sideEffects": [
|
|
13
|
-
"**/*.css"
|
|
13
|
+
"**/*.css",
|
|
14
|
+
"./dist/styled.js"
|
|
14
15
|
],
|
|
15
16
|
"exports": {
|
|
16
17
|
".": {
|
|
17
18
|
"types": "./dist/index.d.ts",
|
|
18
19
|
"import": "./dist/index.js"
|
|
19
20
|
},
|
|
20
|
-
"./styles.css": "./dist/styles.css"
|
|
21
|
+
"./styles.css": "./dist/styles.css",
|
|
22
|
+
"./styled": {
|
|
23
|
+
"types": "./dist/index.d.ts",
|
|
24
|
+
"import": "./dist/styled.js"
|
|
25
|
+
}
|
|
21
26
|
},
|
|
22
27
|
"publishConfig": {
|
|
23
28
|
"access": "public"
|
|
@@ -27,19 +32,20 @@
|
|
|
27
32
|
"react-dom": "^19.2.0"
|
|
28
33
|
},
|
|
29
34
|
"dependencies": {
|
|
30
|
-
"@gridui/button": "^5.
|
|
31
|
-
"@gridui/
|
|
35
|
+
"@gridui/button": "^5.2.0",
|
|
36
|
+
"@gridui/motion": "^1.0.2",
|
|
37
|
+
"@gridui/overlay": "^2.4.0",
|
|
32
38
|
"@gridui/style-utils": "^4.0.0",
|
|
33
|
-
"@gridui/theme": "^
|
|
39
|
+
"@gridui/theme": "^4.0.0",
|
|
34
40
|
"@radix-ui/react-dialog": "1.3.1",
|
|
35
41
|
"@radix-ui/react-slot": "1.5.0",
|
|
36
42
|
"class-variance-authority": "0.7.1",
|
|
37
|
-
"lucide-react": "1.
|
|
43
|
+
"lucide-react": "1.72.0"
|
|
38
44
|
},
|
|
39
45
|
"devDependencies": {
|
|
40
46
|
"@gridui-internal/configuration": "0.0.0-internal",
|
|
41
47
|
"@jest/globals": "30.5.2",
|
|
42
|
-
"@storybook/react-vite": "10.6.
|
|
48
|
+
"@storybook/react-vite": "10.6.7",
|
|
43
49
|
"@types/jest": "30.0.0",
|
|
44
50
|
"@types/node": "26.6.6",
|
|
45
51
|
"@types/react": "19.3.0",
|
|
@@ -52,7 +58,6 @@
|
|
|
52
58
|
"scripts": {
|
|
53
59
|
"build": "node ../../scripts/compilation/package.ts",
|
|
54
60
|
"compile": "tsc --project tsconfig.json",
|
|
55
|
-
"test": "jest"
|
|
56
|
-
"coverage": "jest --coverage"
|
|
61
|
+
"test": "jest"
|
|
57
62
|
}
|
|
58
63
|
}
|