@dust-tt/sparkle 0.2.92-pr → 0.2.92

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.
@@ -56,8 +56,6 @@ import Spinner from "./components/Spinner";
56
56
  export { Spinner };
57
57
  import { Modal } from "./components/Modal";
58
58
  export { Modal };
59
- import { ElementModal } from "./components/ElementModal";
60
- export { ElementModal };
61
59
  import { Dialog } from "./components/Dialog";
62
60
  export { Dialog };
63
61
  import { Input } from "./components/Input";
@@ -5,7 +5,7 @@ export declare enum ModalType {
5
5
  FullScreen = "full-screen",
6
6
  Side = "side"
7
7
  }
8
- export type ModalProps = {
8
+ type ModalProps = {
9
9
  isOpen: boolean;
10
10
  onClose: () => void;
11
11
  action?: ButtonProps;
@@ -19,3 +19,4 @@ export type ModalProps = {
19
19
  variant?: "full-screen" | "side-sm" | "side-md" | "dialogue";
20
20
  };
21
21
  export declare function Modal({ isOpen, onClose, action, children, hasChanged, onSave, saveLabel, isSaving, savingLabel, title, variant, }: ModalProps): React.JSX.Element;
22
+ export {};
package/dist/cjs/index.js CHANGED
@@ -33614,21 +33614,6 @@ function Modal(_a) {
33614
33614
  React.createElement("div", { className: classNames("s-pb-6 s-pt-16", innerContainerClasses) }, children)))))));
33615
33615
  }
33616
33616
 
33617
- function ElementModal(_a) {
33618
- var openOnElement = _a.openOnElement, props = __rest(_a, ["openOnElement"]);
33619
- var onClose = props.onClose;
33620
- var _b = __read(React.useState(false), 2), isClosingTransition = _b[0], setIsClosingTransition = _b[1];
33621
- var realOnClose = function () {
33622
- setIsClosingTransition(true);
33623
- setTimeout(function () {
33624
- onClose();
33625
- setIsClosingTransition(false);
33626
- }, 200);
33627
- };
33628
- props.onClose = realOnClose;
33629
- return (React.createElement(Modal, __assign({ isOpen: openOnElement !== null && !isClosingTransition }, props)));
33630
- }
33631
-
33632
33617
  function Dialog(_a) {
33633
33618
  var isOpen = _a.isOpen, children = _a.children, onCancel = _a.onCancel, onValidate = _a.onValidate, _b = _a.cancelLabel, cancelLabel = _b === void 0 ? "Cancel" : _b, _c = _a.validateLabel, validateLabel = _c === void 0 ? "Ok" : _c, _d = _a.validateVariant, validateVariant = _d === void 0 ? "primary" : _d, title = _a.title;
33634
33619
  return (React.createElement(tt, { show: isOpen, as: React.Fragment, appear: true },
@@ -33884,7 +33869,6 @@ exports.DriveLogo = SvgDrive;
33884
33869
  exports.DropdownMenu = DropdownMenu;
33885
33870
  exports.DustIcon = SvgDust$1;
33886
33871
  exports.DustStrokeIcon = SvgDust;
33887
- exports.ElementModal = ElementModal;
33888
33872
  exports.EmotionLaughIcon = SvgEmotionLaugh$1;
33889
33873
  exports.EmotionLaughStrokeIcon = SvgEmotionLaugh;
33890
33874
  exports.EqualizerIcon = SvgEqualizer$1;