@a-type/ui 6.1.39 → 6.1.40

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.
@@ -1,27 +1,28 @@
1
- import { CollapsiblePanelProps, CollapsibleRootProps } from '@base-ui/react/collapsible';
1
+ import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
2
2
  import { Ref } from 'react';
3
- export declare const CollapsibleRoot: import("react").ForwardRefExoticComponent<Omit<CollapsibleRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
- export declare const CollapsibleContent: ({ ref, horizontal, both, ...props }: CollapsiblePanelProps & {
3
+ export declare const CollapsibleRoot: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const CollapsibleContent: ({ ref, horizontal, both, ...props }: BaseCollapsible.Panel.Props & {
5
5
  horizontal?: boolean;
6
6
  both?: boolean;
7
7
  ref?: Ref<HTMLDivElement>;
8
8
  }) => import("react/jsx-runtime").JSX.Element;
9
9
  export declare const CollapsibleTrigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
10
- export declare const CollapsibleSimple: ({ horizontal, both, children, ...props }: CollapsibleRootProps & {
10
+ export declare const CollapsibleSimple: ({ horizontal, both, children, ...props }: BaseCollapsible.Root.Props & {
11
11
  horizontal?: boolean;
12
12
  both?: boolean;
13
13
  }) => import("react/jsx-runtime").JSX.Element;
14
14
  export declare const CollapsibleIcon: import("react").FunctionComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
15
- export declare const Collapsible: import("react").ForwardRefExoticComponent<Omit<CollapsibleRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
16
- Content: ({ ref, horizontal, both, ...props }: CollapsiblePanelProps & {
15
+ export declare const Collapsible: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleRootProps, "ref"> & import("react").RefAttributes<HTMLDivElement>> & {
16
+ Content: ({ ref, horizontal, both, ...props }: BaseCollapsible.Panel.Props & {
17
17
  horizontal?: boolean;
18
18
  both?: boolean;
19
19
  ref?: Ref<HTMLDivElement>;
20
20
  }) => import("react/jsx-runtime").JSX.Element;
21
21
  Trigger: import("react").ForwardRefExoticComponent<Omit<import("@base-ui/react/collapsible").CollapsibleTriggerProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
22
- Simple: ({ horizontal, both, children, ...props }: CollapsibleRootProps & {
22
+ Simple: ({ horizontal, both, children, ...props }: BaseCollapsible.Root.Props & {
23
23
  horizontal?: boolean;
24
24
  both?: boolean;
25
25
  }) => import("react/jsx-runtime").JSX.Element;
26
26
  Icon: import("react").FunctionComponent<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
27
+ Unstyled: typeof BaseCollapsible;
27
28
  };
@@ -10,7 +10,7 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
- import { Collapsible as BaseCollapsible, } from '@base-ui/react/collapsible';
13
+ import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
14
14
  import { withClassName } from '../../hooks/withClassName.js';
15
15
  import cls from './Collapsible.module.css';
16
16
  export const CollapsibleRoot = BaseCollapsible.Root;
@@ -40,5 +40,6 @@ export const Collapsible = Object.assign(CollapsibleRoot, {
40
40
  Trigger: CollapsibleTrigger,
41
41
  Simple: CollapsibleSimple,
42
42
  Icon: CollapsibleIcon,
43
+ Unstyled: BaseCollapsible,
43
44
  });
44
45
  //# sourceMappingURL=Collapsible.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Collapsible.js","sourceRoot":"","sources":["../../../src/components/collapsible/Collapsible.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,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AC,MAAM,kBAAkB,GAAG,eAAe,CAAC,OAAO,CAAC;AAE1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAQjC,EAAE,EAAE;QAR6B,EACjC,UAAU,EACV,IAAI,EACJ,QAAQ,OAKR,EAJG,KAAK,cAJyB,kCAKjC,CADQ;IAIH,OAAA,CACL,KAAC,eAAe,oBAAK,KAAK,cACzB,KAAC,kBAAkB,IAAC,UAAU,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,YACpD,QAAQ,GACW,IACJ,CAClB,CAAA;CAAA,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,aAAa,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;AAE/D,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE;IACzD,OAAO,EAAE,kBAAkB;IAC3B,OAAO,EAAE,kBAAkB;IAC3B,MAAM,EAAE,iBAAiB;IACzB,IAAI,EAAE,eAAe;IACrB,QAAQ,EAAE,eAAe;CACzB,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import type { StoryObj } from '@storybook/react-vite';
2
2
  import { CollapsibleSimple } from './Collapsible.js';
3
3
  declare const meta: {
4
4
  title: string;
5
- component: ({ horizontal, both, children, ...props }: import("@base-ui/react").CollapsibleRootProps & {
5
+ component: ({ horizontal, both, children, ...props }: import("@base-ui/react").CollapsibleRoot.Props & {
6
6
  horizontal?: boolean;
7
7
  both?: boolean;
8
8
  }) => import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@a-type/ui",
3
- "version": "6.1.39",
3
+ "version": "6.1.40",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "url": "https://github.com/a-type/ui"
@@ -1,8 +1,4 @@
1
- import {
2
- Collapsible as BaseCollapsible,
3
- CollapsiblePanelProps,
4
- CollapsibleRootProps,
5
- } from '@base-ui/react/collapsible';
1
+ import { Collapsible as BaseCollapsible } from '@base-ui/react/collapsible';
6
2
  import { Ref } from 'react';
7
3
  import { withClassName } from '../../hooks/withClassName.js';
8
4
  import cls from './Collapsible.module.css';
@@ -15,7 +11,7 @@ export const CollapsibleContent = function CollapsibleContent({
15
11
  horizontal,
16
12
  both,
17
13
  ...props
18
- }: CollapsiblePanelProps & {
14
+ }: BaseCollapsible.Panel.Props & {
19
15
  horizontal?: boolean;
20
16
  both?: boolean;
21
17
  ref?: Ref<HTMLDivElement>;
@@ -37,7 +33,7 @@ export const CollapsibleSimple = ({
37
33
  both,
38
34
  children,
39
35
  ...props
40
- }: CollapsibleRootProps & {
36
+ }: BaseCollapsible.Root.Props & {
41
37
  horizontal?: boolean;
42
38
  both?: boolean;
43
39
  }) => (
@@ -55,4 +51,5 @@ export const Collapsible = Object.assign(CollapsibleRoot, {
55
51
  Trigger: CollapsibleTrigger,
56
52
  Simple: CollapsibleSimple,
57
53
  Icon: CollapsibleIcon,
54
+ Unstyled: BaseCollapsible,
58
55
  });