@jamsrui/drawer 0.0.7 → 0.0.9
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/drawer-config.d.mts +2 -2
- package/dist/drawer-context.d.mts +0 -1
- package/dist/drawer.d.mts +0 -1
- package/dist/index.d.mts +0 -1
- package/dist/styles.d.mts +4 -5
- package/dist/styles.mjs +1 -1
- package/dist/use-drawer.d.mts +0 -1
- package/package.json +6 -6
package/dist/drawer-config.d.mts
CHANGED
|
@@ -14,11 +14,11 @@ import './drawer-footer.mjs';
|
|
|
14
14
|
import './drawer-header.mjs';
|
|
15
15
|
import './drawer-popover.mjs';
|
|
16
16
|
import './styles.mjs';
|
|
17
|
-
import 'tailwind-variants';
|
|
18
17
|
|
|
19
18
|
declare const useDrawerConfig: () => DrawerConfig.Props;
|
|
20
|
-
declare const DrawerConfig: (props: DrawerConfig.Props & {
|
|
19
|
+
declare const DrawerConfig: (props: Omit<Partial<DrawerConfig.Props>, "children"> & {
|
|
21
20
|
merge?: boolean;
|
|
21
|
+
children: React.ReactNode;
|
|
22
22
|
}) => react_jsx_runtime.JSX.Element;
|
|
23
23
|
declare namespace DrawerConfig {
|
|
24
24
|
interface Props extends Drawer.Props, GlobalConfigProps<Drawer.Props> {
|
|
@@ -12,7 +12,6 @@ import './drawer-footer.mjs';
|
|
|
12
12
|
import './drawer-header.mjs';
|
|
13
13
|
import './drawer-popover.mjs';
|
|
14
14
|
import './styles.mjs';
|
|
15
|
-
import 'tailwind-variants';
|
|
16
15
|
|
|
17
16
|
declare const useDrawerContext: () => DrawerContext.Props;
|
|
18
17
|
declare const DrawerContext: react.Context<DrawerContext.Props | null>;
|
package/dist/drawer.d.mts
CHANGED
|
@@ -12,7 +12,6 @@ import './drawer-footer.mjs';
|
|
|
12
12
|
import './drawer-header.mjs';
|
|
13
13
|
import './drawer-popover.mjs';
|
|
14
14
|
import './styles.mjs';
|
|
15
|
-
import 'tailwind-variants';
|
|
16
15
|
|
|
17
16
|
declare const Drawer: (props: Drawer.Props) => react_jsx_runtime.JSX.Element;
|
|
18
17
|
declare namespace Drawer {
|
package/dist/index.d.mts
CHANGED
package/dist/styles.d.mts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _jamsrui_utils from '@jamsrui/utils';
|
|
2
2
|
import { VariantProps } from '@jamsrui/utils';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
4
|
+
declare const drawerVariants: _jamsrui_utils.TVReturnType<{
|
|
6
5
|
anchor: {
|
|
7
6
|
left: {
|
|
8
7
|
content: string;
|
|
@@ -178,7 +177,7 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
178
177
|
footer: string;
|
|
179
178
|
body: string;
|
|
180
179
|
closeButton: string;
|
|
181
|
-
},
|
|
180
|
+
}, _jamsrui_utils.TVReturnType<{
|
|
182
181
|
anchor: {
|
|
183
182
|
left: {
|
|
184
183
|
content: string;
|
|
@@ -270,4 +269,4 @@ declare const drawerVariants: tailwind_variants.TVReturnType<{
|
|
|
270
269
|
type DrawerVariants = VariantProps<typeof drawerVariants>;
|
|
271
270
|
type DrawerSlots = keyof ReturnType<typeof drawerVariants>;
|
|
272
271
|
|
|
273
|
-
export { type DrawerSlots, type DrawerVariants, drawerVariants
|
|
272
|
+
export { type DrawerSlots, type DrawerVariants, drawerVariants };
|
package/dist/styles.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{radiusVariant as
|
|
1
|
+
import{radiusVariant as o,tv as t}from"@jamsrui/utils";const e=t({slots:{backdrop:"z-backdrop !overflow-hidden",popover:"z-dialog",content:"absolute flex w-full flex-col overflow-y-auto bg-surface shadow-sm",header:"p-4",footer:"flex justify-end gap-2 p-4",body:"grow p-4",closeButton:"absolute right-4 top-4"},variants:{anchor:{left:{content:"left-0 top-0 h-dvh"},right:{content:"right-0 top-0 h-dvh"},top:{content:"left-0 top-0"},bottom:{content:"bottom-0 left-0"}},size:{xs:{content:"max-w-xs"},sm:{content:"max-w-sm"},md:{content:"max-w-md"},lg:{content:"max-w-lg"},xl:{content:"max-w-xl"},"2xl":{content:"max-w-2xl"},"3xl":{content:"max-w-3xl"},"4xl":{content:"max-w-4xl"},"5xl":{content:"max-w-5xl"},full:{content:"m-0 h-dvh max-w-full !rounded-none sm:m-0"}},isBordered:{true:{header:"border-b border-divider",footer:"border-t border-storke-primary"}},scrollBehavior:{inside:{body:"overflow-y-auto"},outside:{}},backdrop:{transparent:{backdrop:""},opaque:{backdrop:"bg-black/50"},blur:{backdrop:"bg-black/30 backdrop-blur-md backdrop-saturate-150"}},radius:o("content")},compoundVariants:[{anchor:["top","bottom"],className:{content:"w-full !max-w-full"}}],defaultVariants:{scrollBehavior:"inside",size:"lg",isBordered:!1,backdrop:"opaque",anchor:"right",radius:"none"}});export{e as drawerVariants};
|
package/dist/use-drawer.d.mts
CHANGED
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jamsrui/drawer",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"motion": ">=12",
|
|
6
6
|
"react": ">=19"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@floating-ui/react": ">=0.27",
|
|
10
|
-
"@jamsrui/
|
|
11
|
-
"@jamsrui/
|
|
12
|
-
"@jamsrui/
|
|
13
|
-
"@jamsrui/
|
|
14
|
-
"@jamsrui/utils": "^0.0.
|
|
10
|
+
"@jamsrui/icons": "^0.0.8",
|
|
11
|
+
"@jamsrui/core": "^0.0.8",
|
|
12
|
+
"@jamsrui/hooks": "^0.0.9",
|
|
13
|
+
"@jamsrui/icon-button": "^0.0.9",
|
|
14
|
+
"@jamsrui/utils": "^0.0.9"
|
|
15
15
|
},
|
|
16
16
|
"exports": {
|
|
17
17
|
".": {
|