@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.
@@ -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
@@ -14,7 +14,6 @@ import '@jamsrui/utils';
14
14
  import './drawer-popover.mjs';
15
15
  import 'react';
16
16
  import './styles.mjs';
17
- import 'tailwind-variants';
18
17
  import '@jamsrui/icon-button';
19
18
  import '@jamsrui/core';
20
19
  import 'motion/react';
package/dist/styles.d.mts CHANGED
@@ -1,8 +1,7 @@
1
- import * as tailwind_variants from 'tailwind-variants';
1
+ import * as _jamsrui_utils from '@jamsrui/utils';
2
2
  import { VariantProps } from '@jamsrui/utils';
3
3
 
4
- declare const test = "";
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
- }, tailwind_variants.TVReturnType<{
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, test };
272
+ export { type DrawerSlots, type DrawerVariants, drawerVariants };
package/dist/styles.mjs CHANGED
@@ -1 +1 @@
1
- import{radiusVariant as t,tv as o}from"@jamsrui/utils";const e="",a=o({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:t("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{a as drawerVariants,e as test};
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};
@@ -11,7 +11,6 @@ import 'react';
11
11
  import 'react/jsx-runtime';
12
12
  import '@jamsrui/icon-button';
13
13
  import 'motion/react';
14
- import 'tailwind-variants';
15
14
 
16
15
  declare const useDrawer: (props: useDrawer.Props) => {
17
16
  getHeaderProps: PropGetter<DrawerHeader.Props>;
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@jamsrui/drawer",
3
- "version": "0.0.7",
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/hooks": "^0.0.7",
11
- "@jamsrui/icon-button": "^0.0.7",
12
- "@jamsrui/icons": "^0.0.7",
13
- "@jamsrui/core": "^0.0.7",
14
- "@jamsrui/utils": "^0.0.7"
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
  ".": {