@moondreamsdev/dreamer-ui 1.7.4-test.0 → 1.7.4-test.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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { AccordionOption } from './Accordion';
2
3
  export interface AccordionItemProps extends Omit<AccordionOption, 'defaultOpen'> {
3
4
  children?: React.ReactNode;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ClickableProps extends Omit<React.HTMLProps<HTMLDivElement>, 'onClick'> {
2
3
  children: React.ReactNode;
3
4
  linkTo?: React.HTMLProps<HTMLAnchorElement>['href'];
@@ -4,6 +4,7 @@ export * from './checkbox';
4
4
  export * from './clickable';
5
5
  export * from './input';
6
6
  export * from './label';
7
+ export * from './modal';
7
8
  export * from './slot';
8
9
  export * from './radiogroup';
9
10
  export * from './textarea';
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { ButtonProps } from '../button';
3
+ interface ModalAction extends Omit<ButtonProps, 'children'> {
4
+ label: string;
5
+ }
6
+ export interface ModalProps {
7
+ id?: string;
8
+ isOpen: boolean;
9
+ onClose: () => void;
10
+ title?: React.ReactNode;
11
+ children: React.ReactNode;
12
+ contentOnly?: boolean;
13
+ className?: string;
14
+ overlayClassName?: string;
15
+ hideCloseButton?: boolean;
16
+ actions?: ModalAction[];
17
+ disableCloseOnOverlayClick?: boolean;
18
+ ariaLabelledBy?: string;
19
+ ariaDescribedBy?: string;
20
+ }
21
+ export declare function Modal({ id, isOpen, onClose, title, children, contentOnly, className, overlayClassName, hideCloseButton, actions, disableCloseOnOverlayClick, ariaLabelledBy, ariaDescribedBy, }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
22
+ export {};
@@ -0,0 +1,10 @@
1
+ import { ModalProps } from './Modal';
2
+ export declare function useAnimationOpenClose({ isOpen }: Pick<ModalProps, 'isOpen'>): {
3
+ show: boolean;
4
+ shouldRender: boolean;
5
+ };
6
+ export declare function useDocumentChanges({ isOpen, onClose }: Pick<ModalProps, 'isOpen' | 'onClose'>): void;
7
+ export declare function useHandleFocus({ modalId, isOpen }: {
8
+ modalId: string;
9
+ isOpen: boolean;
10
+ }): void;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface RadioGroupItemProps {
2
3
  value: string;
3
4
  children: React.ReactNode;
@@ -0,0 +1,4 @@
1
+ export default function X({ size, color }: {
2
+ size?: number;
3
+ color?: string;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -4,4 +4,5 @@ export { default as ChevronDown } from './ChevronDown';
4
4
  export { default as ExclamationTriangle } from './ExclamationTriangle';
5
5
  export { default as EyeClosed } from './EyeClosed';
6
6
  export { default as EyeOpened } from './EyeOpened';
7
+ export { default as X } from './X';
7
8
  export { default as QuestionMarkCircled } from './QuestionMarkCircled';
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./QuestionMarkCircled-BYe9_hkd.cjs");exports.Check=e.Check;exports.CheckCircled=e.CheckCircled;exports.ChevronDown=e.ChevronDown;exports.ExclamationTriangle=e.ExclamationTriangle;exports.EyeClosed=e.EyeClosed;exports.EyeOpened=e.EyeClosed$1;exports.QuestionMarkCircled=e.QuestionMarkCircled;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./QuestionMarkCircled-BYe9_hkd.cjs"),l=require("react/jsx-runtime");function r({size:i=15,color:n="currentColor"}){return l.jsx("svg",{width:i,height:i,className:"inline",viewBox:"0 0 15 15",xmlns:"http://www.w3.org/2000/svg",children:l.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:n,fillRule:"evenodd",clipRule:"evenodd"})})}exports.Check=e.Check;exports.CheckCircled=e.CheckCircled;exports.ChevronDown=e.ChevronDown;exports.ExclamationTriangle=e.ExclamationTriangle;exports.EyeClosed=e.EyeClosed;exports.EyeOpened=e.EyeClosed$1;exports.QuestionMarkCircled=e.QuestionMarkCircled;exports.X=r;
2
2
  //# sourceMappingURL=symbols.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
1
+ {"version":3,"file":"symbols.cjs.js","sources":["../src/symbols/X.tsx"],"sourcesContent":["export default function X({ size = 15, color = 'currentColor' }: { size?: number; color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n"],"names":["X","size","color","jsx"],"mappings":"qKAAA,SAAwBA,EAAE,CAAE,KAAAC,EAAO,GAAI,MAAAC,EAAQ,gBAAqD,CAEhG,OAAAC,EAAAA,IAAC,MAAI,CAAA,MAAOF,EAAM,OAAQA,EAAM,UAAW,SAAU,QAAQ,YAAY,MAAM,6BAC7E,SAAAE,EAAA,IAAC,OAAA,CACC,EAAE,0gBACF,KAAMD,EACN,SAAS,UACT,SAAS,SAAA,CAAA,EAEb,CAEJ"}
@@ -1,11 +1,24 @@
1
- import { C as s, a as o, b as r, E as C, c, d as n, Q as d } from "./QuestionMarkCircled-CIc05alV.js";
1
+ import { C as i, a as s, b as t, E as d, c, d as h, Q as L } from "./QuestionMarkCircled-CIc05alV.js";
2
+ import { jsx as l } from "react/jsx-runtime";
3
+ function n({ size: e = 15, color: o = "currentColor" }) {
4
+ return /* @__PURE__ */ l("svg", { width: e, height: e, className: "inline", viewBox: "0 0 15 15", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l(
5
+ "path",
6
+ {
7
+ d: "M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",
8
+ fill: o,
9
+ fillRule: "evenodd",
10
+ clipRule: "evenodd"
11
+ }
12
+ ) });
13
+ }
2
14
  export {
3
- s as Check,
4
- o as CheckCircled,
5
- r as ChevronDown,
6
- C as ExclamationTriangle,
15
+ i as Check,
16
+ s as CheckCircled,
17
+ t as ChevronDown,
18
+ d as ExclamationTriangle,
7
19
  c as EyeClosed,
8
- n as EyeOpened,
9
- d as QuestionMarkCircled
20
+ h as EyeOpened,
21
+ L as QuestionMarkCircled,
22
+ n as X
10
23
  };
11
24
  //# sourceMappingURL=symbols.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"symbols.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
1
+ {"version":3,"file":"symbols.esm.js","sources":["../src/symbols/X.tsx"],"sourcesContent":["export default function X({ size = 15, color = 'currentColor' }: { size?: number; color?: string }) {\n return (\n <svg width={size} height={size} className={'inline'} viewBox='0 0 15 15' xmlns='http://www.w3.org/2000/svg'>\n <path\n d='M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z'\n fill={color}\n fillRule='evenodd'\n clipRule='evenodd'\n />\n </svg>\n );\n}\n"],"names":["X","size","color","jsx"],"mappings":";;AAAA,SAAwBA,EAAE,EAAE,MAAAC,IAAO,IAAI,OAAAC,IAAQ,kBAAqD;AAEhG,SAAA,gBAAAC,EAAC,OAAI,EAAA,OAAOF,GAAM,QAAQA,GAAM,WAAW,UAAU,SAAQ,aAAY,OAAM,8BAC7E,UAAA,gBAAAE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,GAAE;AAAA,MACF,MAAMD;AAAA,MACN,UAAS;AAAA,MACT,UAAS;AAAA,IAAA;AAAA,EAAA,GAEb;AAEJ;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moondreamsdev/dreamer-ui",
3
- "version": "1.7.4-test.0",
3
+ "version": "1.7.4-test.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },