@photoroom/ui 0.1.64 → 0.1.66
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.
|
@@ -13,6 +13,8 @@ export type IconSwitchProps = Readonly<{
|
|
|
13
13
|
off?: React.ReactNode;
|
|
14
14
|
on?: React.ReactNode;
|
|
15
15
|
};
|
|
16
|
+
/** Override tooltip trigger-disabled state. Defaults to the switch's `disabled`. */
|
|
17
|
+
isTooltipDisabled?: boolean;
|
|
16
18
|
className?: string;
|
|
17
19
|
}> & Omit<RadixSwitch.SwitchProps, "aria-label">;
|
|
18
20
|
export declare const IconSwitch: import("react").ForwardRefExoticComponent<Readonly<{
|
|
@@ -28,6 +30,8 @@ export declare const IconSwitch: import("react").ForwardRefExoticComponent<Reado
|
|
|
28
30
|
off?: React.ReactNode;
|
|
29
31
|
on?: React.ReactNode;
|
|
30
32
|
};
|
|
33
|
+
/** Override tooltip trigger-disabled state. Defaults to the switch's `disabled`. */
|
|
34
|
+
isTooltipDisabled?: boolean;
|
|
31
35
|
className?: string;
|
|
32
36
|
}> & Omit<RadixSwitch.SwitchProps, "aria-label"> & import("react").RefAttributes<HTMLButtonElement>>;
|
|
33
37
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconSwitch.d.ts","sourceRoot":"","sources":["../../../../src/components/input/IconSwitch/IconSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,WAAW,MAAM,wBAAwB,CAAC;AAOtD,KAAK,QAAQ,GAAG,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;AAM3E,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACrC,gEAAgE;IAChE,KAAK,EAAE;QAAE,GAAG,EAAE,QAAQ,CAAC;QAAC,EAAE,EAAE,QAAQ,CAAA;KAAE,CAAC;IACvC,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAAC;IACd,4C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S,CAAC;QAAC,EAAE,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;KAAE;IAC1D,oFAAoF;wBAChE,OAAO;gBACf,MAAM;oGA4DnB,CAAC"}
|
package/index.mjs
CHANGED
|
@@ -45110,7 +45110,7 @@ function Vle({ children: e, icon: t, visible: n = !0, className: r }) {
|
|
|
45110
45110
|
opacity: 0,
|
|
45111
45111
|
transition: { duration: .15 }
|
|
45112
45112
|
},
|
|
45113
|
-
className: H("pointer-events-none flex w-fit max-w-[400px] items-center", "rounded-full bg-black-alpha-
|
|
45113
|
+
className: H("pointer-events-none flex w-fit max-w-[400px] items-center", "rounded-full bg-black-alpha-7 px-4 py-[14px] backdrop-blur-[4px]", t && "gap-2", r),
|
|
45114
45114
|
children: [t && /* @__PURE__ */ T(t, { className: "size-[18px] shrink-0 text-content-white-primary-inverted" }), /* @__PURE__ */ T("span", {
|
|
45115
45115
|
className: "component-500 min-w-0 flex-1 text-content-white-primary-inverted",
|
|
45116
45116
|
children: e
|