stratosphere-ui 0.3.0 → 0.3.1
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.
|
@@ -4,6 +4,7 @@ export interface DisclosureProps {
|
|
|
4
4
|
buttonProps?: ButtonProps;
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
className?: string;
|
|
7
|
+
defaultOpen?: boolean;
|
|
7
8
|
rounded?: boolean;
|
|
8
9
|
}
|
|
9
|
-
export declare const Disclosure: ({ buttonProps: { children: buttonChildren, className: buttonClassName, ...buttonProps }, children, className, rounded, }: DisclosureProps) => JSX.Element;
|
|
10
|
+
export declare const Disclosure: ({ buttonProps: { children: buttonChildren, className: buttonClassName, ...buttonProps }, children, className, defaultOpen, rounded, }: DisclosureProps) => JSX.Element;
|
package/dist/stratosphere-ui.js
CHANGED
|
@@ -27520,17 +27520,19 @@ const aU = ({
|
|
|
27520
27520
|
} = {},
|
|
27521
27521
|
children: c,
|
|
27522
27522
|
className: v,
|
|
27523
|
-
|
|
27523
|
+
defaultOpen: h,
|
|
27524
|
+
rounded: f
|
|
27524
27525
|
}) => /* @__PURE__ */ P(
|
|
27525
27526
|
N1,
|
|
27526
27527
|
{
|
|
27527
27528
|
as: "div",
|
|
27528
27529
|
className: en(
|
|
27529
27530
|
"border border-base-300 bg-base-100",
|
|
27530
|
-
|
|
27531
|
+
f && "rounded-box",
|
|
27531
27532
|
v
|
|
27532
27533
|
),
|
|
27533
|
-
|
|
27534
|
+
defaultOpen: h,
|
|
27535
|
+
children: ({ open: S }) => /* @__PURE__ */ Rt(td, { children: [
|
|
27534
27536
|
/* @__PURE__ */ Rt(
|
|
27535
27537
|
N1.Button,
|
|
27536
27538
|
{
|
|
@@ -27538,20 +27540,20 @@ const aU = ({
|
|
|
27538
27540
|
animation: !1,
|
|
27539
27541
|
className: en(
|
|
27540
27542
|
"w-full justify-between capitalize hover:bg-inherit",
|
|
27541
|
-
|
|
27543
|
+
f && "rounded-box",
|
|
27542
27544
|
u
|
|
27543
27545
|
),
|
|
27544
27546
|
...o,
|
|
27545
27547
|
children: [
|
|
27546
27548
|
r,
|
|
27547
|
-
|
|
27549
|
+
S ? /* @__PURE__ */ P(u$, { className: "h-4 w-4" }) : /* @__PURE__ */ P(o$, { className: "h-4 w-4" })
|
|
27548
27550
|
]
|
|
27549
27551
|
}
|
|
27550
27552
|
),
|
|
27551
27553
|
/* @__PURE__ */ P(
|
|
27552
27554
|
By,
|
|
27553
27555
|
{
|
|
27554
|
-
show:
|
|
27556
|
+
show: S,
|
|
27555
27557
|
enter: "transition duration-100 ease-out",
|
|
27556
27558
|
enterFrom: "transform scale-95 opacity-0",
|
|
27557
27559
|
enterTo: "transform scale-100 opacity-100",
|