@mage-ui/components 1.0.18 → 1.0.20
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.
- package/dist/components/buttons/button/Button.d.mts +2 -2
- package/dist/components/buttons/button/Button.d.mts.map +1 -1
- package/dist/components/buttons/button-action/ButtonAction.d.mts +2 -4
- package/dist/components/buttons/button-action/ButtonAction.d.mts.map +1 -1
- package/dist/components/buttons/button-action/ButtonAction.mjs +1 -1
- package/dist/components/buttons/button-action/ButtonAction.mjs.map +1 -1
- package/dist/components/buttons/button-action/ButtonLoader.d.mts +2 -2
- package/dist/components/buttons/button-action/ButtonLoader.d.mts.map +1 -1
- package/dist/components/buttons/button-icon/ButtonIcon.d.mts +2 -2
- package/dist/components/buttons/button-icon/ButtonIcon.d.mts.map +1 -1
- package/dist/components/buttons/button-icon-visual/ButtonIconVisual.d.mts +2 -2
- package/dist/components/buttons/button-icon-visual/ButtonIconVisual.d.mts.map +1 -1
- package/dist/components/buttons/button-visual/ButtonVisual.d.mts +2 -2
- package/dist/components/controls/autocomplete/Autocomplete.d.mts +2 -2
- package/dist/components/controls/checkbox/Checkbox.d.mts +2 -14
- package/dist/components/controls/checkbox/Checkbox.d.mts.map +1 -1
- package/dist/components/controls/checkbox/Checkbox.mjs +1 -1
- package/dist/components/controls/checkbox/Checkbox.mjs.map +1 -1
- package/dist/components/controls/combobox/Combobox.d.mts +2 -2
- package/dist/components/controls/dropzone/Dropzone.d.mts +2 -2
- package/dist/components/controls/dropzone-files/DropzoneFiles.d.mts +2 -2
- package/dist/components/controls/file-input/FileInput.d.mts +2 -2
- package/dist/components/controls/file-input/FileInputMultiple.d.mts +2 -2
- package/dist/components/controls/multi-select/MultiSelect.d.mts +2 -2
- package/dist/components/controls/multi-select/MultiSelectTags.d.mts +2 -2
- package/dist/components/controls/password-input/PasswordInput.d.mts +2 -2
- package/dist/components/controls/password-input/PasswordStrengthInput.mjs +1 -1
- package/dist/components/controls/password-input/PasswordStrengthInput.mjs.map +1 -1
- package/dist/components/controls/password-input-strength/oldPasswordInputStrength.d.mts +2 -2
- package/dist/components/controls/select/Select.d.mts +2 -2
- package/dist/components/controls/text-input/TextInput.d.mts +2 -2
- package/dist/components/controls/textarea/Textarea.d.mts +2 -2
- package/dist/components/controls/utils/clear-button/ClearButton.d.mts +2 -2
- package/dist/components/data-display/assigned-user/AssignedUser.d.mts +2 -2
- package/dist/components/data-display/assigned-user/AssignedUser.mjs.map +1 -1
- package/dist/components/data-display/avatar/Avatar.d.mts +2 -2
- package/dist/components/data-display/badge/Badge.d.mts +2 -2
- package/dist/components/data-display/calendar/Calendar.d.mts +2 -2
- package/dist/components/data-display/loader-dot/LoaderDot.d.mts +2 -2
- package/dist/components/data-display/loader-oval/LoaderOval.d.mts +2 -2
- package/dist/components/data-display/removable-item/RemovableItem.d.mts +2 -2
- package/dist/components/data-display/tag/Tag.d.mts +3 -3
- package/dist/components/data-display/tag-group/TagGroup.d.mts +2 -2
- package/dist/components/data-display/uploaded-file/UploadedFile.d.mts +2 -2
- package/dist/components/data-display/uploaded-file/UploadedFileDetails.d.mts +2 -2
- package/dist/components/forms/Form.d.mts +17 -30
- package/dist/components/forms/Form.d.mts.map +1 -1
- package/dist/components/forms/FormBase.mjs +1 -1
- package/dist/components/forms/FormBase.mjs.map +1 -1
- package/dist/components/forms/controls/FormCheckbox.d.mts +13 -0
- package/dist/components/forms/controls/FormCheckbox.d.mts.map +1 -0
- package/dist/components/forms/controls/FormCheckbox.mjs +1 -1
- package/dist/components/forms/controls/FormCheckbox.mjs.map +1 -1
- package/dist/components/forms/controls/FormPassword.d.mts +18 -0
- package/dist/components/forms/controls/FormPassword.d.mts.map +1 -0
- package/dist/components/forms/controls/FormPassword.mjs +1 -1
- package/dist/components/forms/controls/FormPassword.mjs.map +1 -1
- package/dist/components/forms/controls/FormSubmit.d.mts +9 -0
- package/dist/components/forms/controls/FormSubmit.d.mts.map +1 -0
- package/dist/components/forms/controls/FormSubmit.mjs +1 -1
- package/dist/components/forms/controls/FormSubmit.mjs.map +1 -1
- package/dist/components/forms/controls/FormTextInput.mjs.map +1 -1
- package/dist/components/forms/rules/extract-form-rules.mjs +1 -1
- package/dist/components/forms/rules/extract-form-rules.mjs.map +1 -1
- package/dist/components/layouts/top-bar/TopBar.d.mts +2 -2
- package/dist/components/misc/horizontal-divider/HorizontalDivider.d.mts +2 -2
- package/dist/components/misc/visually-hidden/VisuallyHidden.d.mts +2 -2
- package/dist/components/navigations/menu/Menu.d.mts +4 -4
- package/dist/components/overlays/modal/Modal.d.mts +10 -10
- package/dist/components/overlays/modal/Modal.d.mts.map +1 -1
- package/dist/components/overlays/modals/ModalsProvider.d.mts +2 -2
- package/dist/components/overlays/tooltip/Tooltip.d.mts +2 -2
- package/dist/semedlab/components/data-display/user-group-preview/UserGroupPreview.d.mts +2 -2
- package/dist/semedlab/components/data-display/user-group-preview/UserGroupPreview.d.mts.map +1 -1
- package/dist/semedlab/components/navigations/backoffice-top-bar/BackofficeTopBar.d.mts +2 -2
- package/dist/semedlab/components/navigations/notification-list/NotificationList.d.mts +2 -2
- package/dist/semedlab/components/navigations/notification-menu/NotificationMenu.d.mts +2 -2
- package/dist/semedlab/components/navigations/profile-menu/ProfileMenu.d.mts +2 -2
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonVariantProps } from "@mage-ui/styled-system/recipes";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
3
3
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/buttons/button/Button.d.ts
|
|
@@ -21,7 +21,7 @@ declare const Button: ({
|
|
|
21
21
|
startSlot,
|
|
22
22
|
endSlot,
|
|
23
23
|
...props
|
|
24
|
-
}: ButtonProps) =>
|
|
24
|
+
}: ButtonProps) => react_jsx_runtime5.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Button, ButtonProps };
|
|
27
27
|
//# sourceMappingURL=Button.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.mts","names":[],"sources":["../../../../src/components/buttons/button/Button.tsx"],"mappings":";;;;;KAaY,WAAA,GAAc,IAAA,CAAK,wBAAA;EAC7B,UAAA;IACE,MAAA;IACA,IAAA;IACA,KAAA;IACA,KAAA;IACA,OAAA;EAAA;EAEF,SAAA,GAAY,SAAA;EACZ,OAAA,GAAU,SAAA;EACV,QAAA,GAAW,SAAA;AAAA,IACT,kBAAA;AAAA,cAES,MAAA;EAAU,UAAA;EAAA,QAAA;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMpB,WAAA,KAAW,
|
|
1
|
+
{"version":3,"file":"Button.d.mts","names":[],"sources":["../../../../src/components/buttons/button/Button.tsx"],"mappings":";;;;;KAaY,WAAA,GAAc,IAAA,CAAK,wBAAA;EAC7B,UAAA;IACE,MAAA;IACA,IAAA;IACA,KAAA;IACA,KAAA;IACA,OAAA;EAAA;EAEF,SAAA,GAAY,SAAA;EACZ,OAAA,GAAU,SAAA;EACV,QAAA,GAAW,SAAA;AAAA,IACT,kBAAA;AAAA,cAES,MAAA;EAAU,UAAA;EAAA,QAAA;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,GAMpB,WAAA,KAAW,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "../button/Button.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/buttons/button-action/ButtonAction.d.ts
|
|
@@ -12,7 +12,6 @@ type ButtonActionProps = Omit<ButtonProps, 'classNames'> & {
|
|
|
12
12
|
loading: boolean;
|
|
13
13
|
loadingText?: string;
|
|
14
14
|
successText?: string;
|
|
15
|
-
errorText?: string;
|
|
16
15
|
successDuration?: number;
|
|
17
16
|
};
|
|
18
17
|
declare const ButtonAction: ({
|
|
@@ -24,11 +23,10 @@ declare const ButtonAction: ({
|
|
|
24
23
|
loading,
|
|
25
24
|
loadingText,
|
|
26
25
|
successText,
|
|
27
|
-
errorText,
|
|
28
26
|
successDuration,
|
|
29
27
|
disabled,
|
|
30
28
|
...props
|
|
31
|
-
}: ButtonActionProps) =>
|
|
29
|
+
}: ButtonActionProps) => react_jsx_runtime6.JSX.Element;
|
|
32
30
|
//#endregion
|
|
33
31
|
export { ButtonAction, ButtonActionProps };
|
|
34
32
|
//# sourceMappingURL=ButtonAction.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonAction.d.mts","names":[],"sources":["../../../../src/components/buttons/button-action/ButtonAction.tsx"],"mappings":";;;;;KAiBY,iBAAA,GAAoB,IAAA,CAAK,WAAA;EACnC,UAAA,GAAa,IAAA,CAAK,WAAA,CAAY,WAAA;IAC5B,YAAA;IACA,MAAA;EAAA;EAEF,MAAA,GAAS,SAAA;EACT,OAAA;EACA,WAAA;EACA,WAAA;EACA,
|
|
1
|
+
{"version":3,"file":"ButtonAction.d.mts","names":[],"sources":["../../../../src/components/buttons/button-action/ButtonAction.tsx"],"mappings":";;;;;KAiBY,iBAAA,GAAoB,IAAA,CAAK,WAAA;EACnC,UAAA,GAAa,IAAA,CAAK,WAAA,CAAY,WAAA;IAC5B,YAAA;IACA,MAAA;EAAA;EAEF,MAAA,GAAS,SAAA;EACT,OAAA;EACA,WAAA;EACA,WAAA;EACA,eAAA;AAAA;AAAA,cAiCW,YAAA;EAAgB,UAAA;EAAA,SAAA;EAAA,OAAA;EAAA,QAAA;EAAA,MAAA;EAAA,OAAA;EAAA,WAAA;EAAA,WAAA;EAAA,eAAA;EAAA,QAAA;EAAA,GAAA;AAAA,GAY1B,iBAAA,KAAiB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{VisuallyHidden as e}from"../../misc/visually-hidden/VisuallyHidden.mjs";import{ButtonActionProvider as t}from"./ButtonActionContext.mjs";import{cx as n}from"@mage-ui/styled-system/css";import{buttonAction as r,buttonActionInner as i,buttonActionLabel as a,buttonActionLoader as o,buttonActionRoot as s,buttonActionSection as c}from"@mage-ui/styled-system/recipes";import{Button as l}from"@mantine/core";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useEffect as f,useRef as p,useState as m}from"react";const h=({loading:e,successText:t,successDuration:n=2e3})=>{let[r,i]=m(!1),a=p(e);return f(()=>{if(a.current&&!e&&t){i(!0);let e=setTimeout(()=>{i(!1)},n);return()=>clearTimeout(e)}a.current=e},[e,t,n]),e?`loading`:r?`success`:`idle`},g=({classNames:f,startSlot:p,endSlot:m,children:g,loader:_,loading:v,loadingText:y,successText:b,
|
|
1
|
+
import{VisuallyHidden as e}from"../../misc/visually-hidden/VisuallyHidden.mjs";import{ButtonActionProvider as t}from"./ButtonActionContext.mjs";import{cx as n}from"@mage-ui/styled-system/css";import{buttonAction as r,buttonActionInner as i,buttonActionLabel as a,buttonActionLoader as o,buttonActionRoot as s,buttonActionSection as c}from"@mage-ui/styled-system/recipes";import{Button as l}from"@mantine/core";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{useEffect as f,useRef as p,useState as m}from"react";const h=({loading:e,successText:t,successDuration:n=2e3})=>{let[r,i]=m(!1),a=p(e);return f(()=>{if(a.current&&!e&&t){i(!0);let e=setTimeout(()=>{i(!1)},n);return()=>clearTimeout(e)}a.current=e},[e,t,n]),e?`loading`:r?`success`:`idle`},g=({classNames:f,startSlot:p,endSlot:m,children:g,loader:_,loading:v,loadingText:y,successText:b,successDuration:x,disabled:S,...C})=>{let w=h({loading:v,successText:b,successDuration:x}),T=w===`loading`,E=w===`success`,D=()=>T&&y?y:E&&b?b:g,O=T||E||S;return d(l,{classNames:{inner:f?.inner??i(),label:f?.label??a(),root:n(f?.buttonAction??r(),f?.root??s()),loader:f?.loader??o(),section:f?.section??c()},leftSection:p,rightSection:m,loading:T,disabled:O,"aria-busy":O,...C,children:[_&&u(t,{value:{isLoading:T,isSuccess:E},children:_}),D(),u(e,{"aria-live":`polite`,children:D()})]})};export{g as ButtonAction};
|
|
2
2
|
//# sourceMappingURL=ButtonAction.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonAction.mjs","names":["MantineButton","VisuallyHidden"],"sources":["../../../../src/components/buttons/button-action/ButtonAction.tsx"],"sourcesContent":["import { type ReactNode, useEffect, useRef, useState } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n buttonAction,\n buttonActionInner,\n buttonActionLabel,\n buttonActionLoader,\n buttonActionRoot,\n buttonActionSection,\n} from '@mage-ui/styled-system/recipes';\nimport { Button as MantineButton } from '@mantine/core';\nimport type { ButtonProps } from '@/components/buttons/button/Button';\nimport { VisuallyHidden } from '@/components/misc/visually-hidden/VisuallyHidden';\n\nimport { ButtonActionProvider } from './ButtonActionContext';\n\nexport type ButtonActionProps = Omit<ButtonProps, 'classNames'> & {\n classNames?: Omit<NonNullable<ButtonProps['classNames']>, 'button'> & {\n buttonAction?: string;\n loader?: string;\n };\n loader?: ReactNode;\n loading: boolean;\n loadingText?: string;\n successText?: string;\n
|
|
1
|
+
{"version":3,"file":"ButtonAction.mjs","names":["MantineButton","VisuallyHidden"],"sources":["../../../../src/components/buttons/button-action/ButtonAction.tsx"],"sourcesContent":["import { type ReactNode, useEffect, useRef, useState } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n buttonAction,\n buttonActionInner,\n buttonActionLabel,\n buttonActionLoader,\n buttonActionRoot,\n buttonActionSection,\n} from '@mage-ui/styled-system/recipes';\nimport { Button as MantineButton } from '@mantine/core';\nimport type { ButtonProps } from '@/components/buttons/button/Button';\nimport { VisuallyHidden } from '@/components/misc/visually-hidden/VisuallyHidden';\n\nimport { ButtonActionProvider } from './ButtonActionContext';\n\nexport type ButtonActionProps = Omit<ButtonProps, 'classNames'> & {\n classNames?: Omit<NonNullable<ButtonProps['classNames']>, 'button'> & {\n buttonAction?: string;\n loader?: string;\n };\n loader?: ReactNode;\n loading: boolean;\n loadingText?: string;\n successText?: string;\n successDuration?: number;\n};\n\ntype ButtonActionStatus = 'idle' | 'loading' | 'success' | 'error';\n\nconst useButtonActionState = ({\n loading,\n successText,\n successDuration = 2000,\n}: {\n loading: boolean;\n successText?: string;\n successDuration?: number;\n}): ButtonActionStatus => {\n const [showSuccess, setShowSuccess] = useState(false);\n const prevLoadingRef = useRef(loading);\n\n useEffect(() => {\n if (prevLoadingRef.current && !loading) {\n if (successText) {\n setShowSuccess(true);\n const timer = setTimeout(() => {\n setShowSuccess(false);\n }, successDuration);\n return () => clearTimeout(timer);\n }\n }\n prevLoadingRef.current = loading;\n }, [loading, successText, successDuration]);\n\n return loading ? 'loading' : showSuccess ? 'success' : 'idle';\n};\n\nexport const ButtonAction = ({\n classNames,\n startSlot,\n endSlot,\n children,\n loader,\n loading,\n loadingText,\n successText,\n successDuration,\n disabled,\n ...props\n}: ButtonActionProps) => {\n const status = useButtonActionState({\n loading,\n successText,\n successDuration,\n });\n\n const isLoading = status === 'loading';\n const isSuccess = status === 'success';\n\n const getLabelContent = () => {\n if (isLoading && loadingText) return loadingText;\n if (isSuccess && successText) return successText;\n return children;\n };\n\n const isDisabled = isLoading || isSuccess || disabled;\n\n return (\n <MantineButton\n classNames={{\n inner: classNames?.inner ?? buttonActionInner(),\n label: classNames?.label ?? buttonActionLabel(),\n root: cx(\n classNames?.buttonAction ?? buttonAction(),\n classNames?.root ?? buttonActionRoot(),\n ),\n loader: classNames?.loader ?? buttonActionLoader(),\n section: classNames?.section ?? buttonActionSection(),\n }}\n leftSection={startSlot}\n rightSection={endSlot}\n loading={isLoading}\n disabled={isDisabled}\n aria-busy={isDisabled}\n {...props}\n >\n {loader && (\n <ButtonActionProvider value={{ isLoading, isSuccess }}>\n {loader}\n </ButtonActionProvider>\n )}\n {getLabelContent()}\n\n <VisuallyHidden aria-live='polite'>{getLabelContent()}</VisuallyHidden>\n </MantineButton>\n );\n};\n"],"mappings":"wgBA+BA,MAAM,GAAwB,CAC5B,UACA,cACA,kBAAkB,OAKM,CACxB,GAAM,CAAC,EAAa,GAAkB,EAAS,GAAM,CAC/C,EAAiB,EAAO,EAAQ,CAetC,OAbA,MAAgB,CACd,GAAI,EAAe,SAAW,CAAC,GACzB,EAAa,CACf,EAAe,GAAK,CACpB,IAAM,EAAQ,eAAiB,CAC7B,EAAe,GAAM,EACpB,EAAgB,CACnB,UAAa,aAAa,EAAM,CAGpC,EAAe,QAAU,GACxB,CAAC,EAAS,EAAa,EAAgB,CAAC,CAEpC,EAAU,UAAY,EAAc,UAAY,QAG5C,GAAgB,CAC3B,aACA,YACA,UACA,WACA,SACA,UACA,cACA,cACA,kBACA,WACA,GAAG,KACoB,CACvB,IAAM,EAAS,EAAqB,CAClC,UACA,cACA,kBACD,CAAC,CAEI,EAAY,IAAW,UACvB,EAAY,IAAW,UAEvB,MACA,GAAa,EAAoB,EACjC,GAAa,EAAoB,EAC9B,EAGH,EAAa,GAAa,GAAa,EAE7C,OACE,EAACA,EAAAA,CACC,WAAY,CACV,MAAO,GAAY,OAAS,GAAmB,CAC/C,MAAO,GAAY,OAAS,GAAmB,CAC/C,KAAM,EACJ,GAAY,cAAgB,GAAc,CAC1C,GAAY,MAAQ,GAAkB,CACvC,CACD,OAAQ,GAAY,QAAU,GAAoB,CAClD,QAAS,GAAY,SAAW,GAAqB,CACtD,CACD,YAAa,EACb,aAAc,EACd,QAAS,EACT,SAAU,EACV,YAAW,EACX,GAAI,YAEH,GACC,EAAC,EAAA,CAAqB,MAAO,CAAE,YAAW,YAAW,UAClD,GACoB,CAExB,GAAiB,CAElB,EAACC,EAAAA,CAAe,YAAU,kBAAU,GAAiB,EAAkB,GACzD"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-action/ButtonLoader.d.ts
|
|
5
5
|
declare const ButtonLoader: ({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: ComponentProps<"span">) =>
|
|
8
|
+
}: ComponentProps<"span">) => react_jsx_runtime7.JSX.Element;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { ButtonLoader };
|
|
11
11
|
//# sourceMappingURL=ButtonLoader.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLoader.d.mts","names":[],"sources":["../../../../src/components/buttons/button-action/ButtonLoader.tsx"],"mappings":";;;;cAOa,YAAA;EAAgB,SAAA;EAAA,GAAA;AAAA,GAG1B,cAAA,aAAsB,
|
|
1
|
+
{"version":3,"file":"ButtonLoader.d.mts","names":[],"sources":["../../../../src/components/buttons/button-action/ButtonLoader.tsx"],"mappings":";;;;cAOa,YAAA;EAAgB,SAAA;EAAA,GAAA;AAAA,GAG1B,cAAA,aAAsB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime8 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-icon/ButtonIcon.d.ts
|
|
@@ -23,7 +23,7 @@ declare const ButtonIcon: ({
|
|
|
23
23
|
onClick,
|
|
24
24
|
disabled,
|
|
25
25
|
classNames
|
|
26
|
-
}: ButtonIconProps) =>
|
|
26
|
+
}: ButtonIconProps) => react_jsx_runtime8.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { ButtonIcon, ButtonIconProps };
|
|
29
29
|
//# sourceMappingURL=ButtonIcon.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonIcon.d.mts","names":[],"sources":["../../../../src/components/buttons/button-icon/ButtonIcon.tsx"],"mappings":";;;;KAcY,eAAA,GAAkB,cAAA;EAC5B,IAAA;EACA,IAAA;EACA,KAAA;EACA,UAAA;IACE,UAAA;IACA,IAAA;IACA,IAAA;IACA,OAAA;MACE,OAAA;MACA,IAAA;IAAA;EAAA;AAAA;AAAA,cAKO,UAAA;EAAc,KAAA;EAAA,IAAA;EAAA,IAAA;EAAA,OAAA;EAAA,QAAA;EAAA;AAAA,GAOxB,eAAA,KAAe,
|
|
1
|
+
{"version":3,"file":"ButtonIcon.d.mts","names":[],"sources":["../../../../src/components/buttons/button-icon/ButtonIcon.tsx"],"mappings":";;;;KAcY,eAAA,GAAkB,cAAA;EAC5B,IAAA;EACA,IAAA;EACA,KAAA;EACA,UAAA;IACE,UAAA;IACA,IAAA;IACA,IAAA;IACA,OAAA;MACE,OAAA;MACA,IAAA;IAAA;EAAA;AAAA;AAAA,cAKO,UAAA;EAAc,KAAA;EAAA,IAAA;EAAA,IAAA;EAAA,OAAA;EAAA,QAAA;EAAA;AAAA,GAOxB,eAAA,KAAe,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime9 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-icon-visual/ButtonIconVisual.d.ts
|
|
@@ -22,7 +22,7 @@ declare const ButtonIconVisual: ({
|
|
|
22
22
|
name,
|
|
23
23
|
path,
|
|
24
24
|
disabled
|
|
25
|
-
}: ButtonIconVisualProps) =>
|
|
25
|
+
}: ButtonIconVisualProps) => react_jsx_runtime9.JSX.Element;
|
|
26
26
|
//#endregion
|
|
27
27
|
export { ButtonIconVisual, ButtonIconVisualProps };
|
|
28
28
|
//# sourceMappingURL=ButtonIconVisual.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonIconVisual.d.mts","names":[],"sources":["../../../../src/components/buttons/button-icon-visual/ButtonIconVisual.tsx"],"mappings":";;;;KAcY,qBAAA,GAAwB,cAAA;EAClC,UAAA;IACE,gBAAA;IACA,IAAA;IACA,IAAA;IACA,OAAA;MACE,OAAA;MACA,IAAA;IAAA;EAAA;EAGJ,IAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,cAGW,gBAAA;EAAoB,UAAA;EAAA,KAAA;EAAA,IAAA;EAAA,IAAA;EAAA;AAAA,GAM9B,qBAAA,KAAqB,
|
|
1
|
+
{"version":3,"file":"ButtonIconVisual.d.mts","names":[],"sources":["../../../../src/components/buttons/button-icon-visual/ButtonIconVisual.tsx"],"mappings":";;;;KAcY,qBAAA,GAAwB,cAAA;EAClC,UAAA;IACE,gBAAA;IACA,IAAA;IACA,IAAA;IACA,OAAA;MACE,OAAA;MACA,IAAA;IAAA;EAAA;EAGJ,IAAA;EACA,KAAA;EACA,IAAA;AAAA;AAAA,cAGW,gBAAA;EAAoB,UAAA;EAAA,KAAA;EAAA,IAAA;EAAA,IAAA;EAAA;AAAA,GAM9B,qBAAA,KAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/buttons/button-visual/ButtonVisual.d.ts
|
|
@@ -21,7 +21,7 @@ declare const ButtonVisual: ({
|
|
|
21
21
|
endSlot,
|
|
22
22
|
children,
|
|
23
23
|
disabled
|
|
24
|
-
}: ButtonVisualProps) =>
|
|
24
|
+
}: ButtonVisualProps) => react_jsx_runtime10.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { ButtonVisual, ButtonVisualProps };
|
|
27
27
|
//# sourceMappingURL=ButtonVisual.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ComboboxProps } from "../combobox/Combobox.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/controls/autocomplete/Autocomplete.d.ts
|
|
@@ -29,7 +29,7 @@ declare const Autocomplete: ({
|
|
|
29
29
|
emptyMessage,
|
|
30
30
|
minLength,
|
|
31
31
|
classNames
|
|
32
|
-
}: AutocompleteProps) =>
|
|
32
|
+
}: AutocompleteProps) => react_jsx_runtime14.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { Autocomplete, AutocompleteProps, OptionProps };
|
|
35
35
|
//# sourceMappingURL=Autocomplete.d.mts.map
|
|
@@ -3,12 +3,8 @@ import { ComponentProps, ReactNode } from "react";
|
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/checkbox/Checkbox.d.ts
|
|
5
5
|
type CheckboxProps = Omit<ComponentProps<'input'>, 'size'> & {
|
|
6
|
-
checked?: boolean;
|
|
7
6
|
label?: ReactNode;
|
|
8
|
-
description?: string;
|
|
9
7
|
error?: string;
|
|
10
|
-
name?: string;
|
|
11
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
12
8
|
classNames?: {
|
|
13
9
|
checkbox?: string;
|
|
14
10
|
root?: string;
|
|
@@ -23,25 +19,17 @@ type CheckboxProps = Omit<ComponentProps<'input'>, 'size'> & {
|
|
|
23
19
|
description?: string;
|
|
24
20
|
error?: string;
|
|
25
21
|
};
|
|
26
|
-
indeterminate?: boolean;
|
|
27
22
|
hiddenLabel?: boolean;
|
|
28
23
|
};
|
|
29
24
|
declare const Checkbox: {
|
|
30
25
|
({
|
|
31
26
|
classNames,
|
|
32
|
-
name,
|
|
33
27
|
label,
|
|
34
28
|
hiddenLabel,
|
|
35
|
-
description,
|
|
36
29
|
error,
|
|
37
|
-
onChange,
|
|
38
|
-
value,
|
|
39
|
-
id,
|
|
40
|
-
disabled,
|
|
41
|
-
readOnly,
|
|
42
30
|
required,
|
|
43
|
-
|
|
44
|
-
|
|
31
|
+
value,
|
|
32
|
+
...props
|
|
45
33
|
}: CheckboxProps): ReactNode;
|
|
46
34
|
displayName: string;
|
|
47
35
|
Group: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.mts","names":[],"sources":["../../../../src/components/controls/checkbox/Checkbox.tsx"],"mappings":";;;;KAsBY,aAAA,GAAgB,IAAA,CAAK,cAAA;EAC/B,
|
|
1
|
+
{"version":3,"file":"Checkbox.d.mts","names":[],"sources":["../../../../src/components/controls/checkbox/Checkbox.tsx"],"mappings":";;;;KAsBY,aAAA,GAAgB,IAAA,CAAK,cAAA;EAC/B,KAAA,GAAQ,SAAA;EACR,KAAA;EACA,UAAA;IACE,QAAA;IACA,IAAA;IACA,KAAA;IACA,IAAA;IACA,KAAA;IACA,IAAA;IACA,SAAA;IACA,YAAA;IACA,aAAA;IACA,KAAA;IACA,WAAA;IACA,KAAA;EAAA;EAEF,WAAA;AAAA;AAAA,cAGW,QAAA;EAAA;;;;;;;;KAQV,aAAA,GAAgB,SAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{CheckboxGroup as e}from"../checkbox-group/CheckboxGroup.mjs";import{cx as t}from"@mage-ui/styled-system/css";import{checkbox as n,checkboxBody as r,checkboxBodyError as i,checkboxDescription as a,checkboxError as o,checkboxIcon as s,checkboxInner as c,checkboxInput as l,checkboxLabel as u,checkboxLabelRequired as d,checkboxLabelWrapper as f,checkboxRoot as p}from"@mage-ui/styled-system/recipes";import{Checkbox as m}from"@mantine/core";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{visuallyHidden as v}from"@mage-ui/styled-system/patterns";const y=({classNames:e,
|
|
1
|
+
import{CheckboxGroup as e}from"../checkbox-group/CheckboxGroup.mjs";import{cx as t}from"@mage-ui/styled-system/css";import{checkbox as n,checkboxBody as r,checkboxBodyError as i,checkboxDescription as a,checkboxError as o,checkboxIcon as s,checkboxInner as c,checkboxInput as l,checkboxLabel as u,checkboxLabelRequired as d,checkboxLabelWrapper as f,checkboxRoot as p}from"@mage-ui/styled-system/recipes";import{Checkbox as m}from"@mantine/core";import{Fragment as h,jsx as g,jsxs as _}from"react/jsx-runtime";import{visuallyHidden as v}from"@mage-ui/styled-system/patterns";const y=({classNames:e,label:y,hiddenLabel:b,error:x,required:S,value:C,...w})=>g(m,{classNames:{root:t(e?.checkbox??n(),e?.root??p()),input:t(e?.input??l(),`peer`),icon:e?.icon??s(),inner:e?.inner??c(),body:t(e?.body??r(),x&&(e?.bodyError??i())),labelWrapper:e?.labelWrapper??f(),label:t(e?.label??u(),b&&v()),description:e?.description??a(),error:e?.error??o()},label:_(h,{children:[y,g(()=>S?_(`span`,{className:e?.labelRequired??d(),children:[` `,`*`]}):null,{})]}),checked:!!C,...w});y.displayName=`Checkbox`,y.Group=e;export{y as Checkbox};
|
|
2
2
|
//# sourceMappingURL=Checkbox.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.mjs","names":["Checkbox","MantineCheckbox"],"sources":["../../../../src/components/controls/checkbox/Checkbox.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport { visuallyHidden } from '@mage-ui/styled-system/patterns';\nimport {\n checkbox,\n checkboxBody,\n checkboxBodyError,\n checkboxDescription,\n checkboxError,\n checkboxIcon,\n checkboxInner,\n checkboxInput,\n checkboxLabel,\n checkboxLabelRequired,\n checkboxLabelWrapper,\n checkboxRoot,\n} from '@mage-ui/styled-system/recipes';\nimport { Checkbox as MantineCheckbox } from '@mantine/core';\n\nimport { CheckboxGroup } from '../checkbox-group/CheckboxGroup';\n\nexport type CheckboxProps = Omit<ComponentProps<'input'>, 'size'> & {\n
|
|
1
|
+
{"version":3,"file":"Checkbox.mjs","names":["Checkbox","MantineCheckbox"],"sources":["../../../../src/components/controls/checkbox/Checkbox.tsx"],"sourcesContent":["import type { ComponentProps, ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport { visuallyHidden } from '@mage-ui/styled-system/patterns';\nimport {\n checkbox,\n checkboxBody,\n checkboxBodyError,\n checkboxDescription,\n checkboxError,\n checkboxIcon,\n checkboxInner,\n checkboxInput,\n checkboxLabel,\n checkboxLabelRequired,\n checkboxLabelWrapper,\n checkboxRoot,\n} from '@mage-ui/styled-system/recipes';\nimport { Checkbox as MantineCheckbox } from '@mantine/core';\n\nimport { CheckboxGroup } from '../checkbox-group/CheckboxGroup';\n\nexport type CheckboxProps = Omit<ComponentProps<'input'>, 'size'> & {\n label?: ReactNode;\n error?: string;\n classNames?: {\n checkbox?: string;\n root?: string;\n input?: string;\n icon?: string;\n inner?: string;\n body?: string;\n bodyError?: string;\n labelWrapper?: string;\n labelRequired?: string;\n label?: string;\n description?: string;\n error?: string;\n };\n hiddenLabel?: boolean;\n};\n\nexport const Checkbox = ({\n classNames,\n label,\n hiddenLabel,\n error,\n required,\n value,\n ...props\n}: CheckboxProps): ReactNode => {\n const RequiredAsterisk = () =>\n required ? (\n <span className={classNames?.labelRequired ?? checkboxLabelRequired()}>\n {' '}\n *\n </span>\n ) : null;\n\n return (\n <MantineCheckbox\n classNames={{\n root: cx(\n classNames?.checkbox ?? checkbox(),\n classNames?.root ?? checkboxRoot(),\n ),\n input: cx(classNames?.input ?? checkboxInput(), 'peer'),\n icon: classNames?.icon ?? checkboxIcon(),\n inner: classNames?.inner ?? checkboxInner(),\n body: cx(\n classNames?.body ?? checkboxBody(),\n error && (classNames?.bodyError ?? checkboxBodyError()),\n ),\n labelWrapper: classNames?.labelWrapper ?? checkboxLabelWrapper(),\n label: cx(\n classNames?.label ?? checkboxLabel(),\n hiddenLabel && visuallyHidden(),\n ),\n description: classNames?.description ?? checkboxDescription(),\n error: classNames?.error ?? checkboxError(),\n }}\n label={\n <>\n {label}\n <RequiredAsterisk />\n </>\n }\n checked={!!value}\n {...props}\n />\n );\n};\n\nCheckbox.displayName = 'Checkbox';\nCheckbox.Group = CheckboxGroup;\n"],"mappings":"+jBA0CA,MAAaA,GAAY,CACvB,aACA,QACA,cACA,QACA,WACA,QACA,GAAG,KAWD,EAACC,EAAAA,CACC,WAAY,CACV,KAAM,EACJ,GAAY,UAAY,GAAU,CAClC,GAAY,MAAQ,GAAc,CACnC,CACD,MAAO,EAAG,GAAY,OAAS,GAAe,CAAE,OAAO,CACvD,KAAM,GAAY,MAAQ,GAAc,CACxC,MAAO,GAAY,OAAS,GAAe,CAC3C,KAAM,EACJ,GAAY,MAAQ,GAAc,CAClC,IAAU,GAAY,WAAa,GAAmB,EACvD,CACD,aAAc,GAAY,cAAgB,GAAsB,CAChE,MAAO,EACL,GAAY,OAAS,GAAe,CACpC,GAAe,GAAgB,CAChC,CACD,YAAa,GAAY,aAAe,GAAqB,CAC7D,MAAO,GAAY,OAAS,GAAe,CAC5C,CACD,MACE,EAAA,EAAA,CAAA,SAAA,CACG,EACD,MAhCN,EACE,EAAC,OAAA,CAAK,UAAW,GAAY,eAAiB,GAAuB,WAClE,IAAI,IAAA,EAEA,CACL,KA2BG,EAAA,CAAmB,CAAA,CAAA,CACnB,CAEL,QAAS,CAAC,CAAC,EACX,GAAI,GACJ,CAIN,EAAS,YAAc,WACvB,EAAS,MAAQ"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownProps } from "../dropdown/Dropdown.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/combobox/Combobox.d.ts
|
|
5
5
|
type ComboboxProps = Omit<DropdownProps, 'classNames' | 'onChange' | 'onBlur' | 'onFocus' | 'onClick' | 'setValue' | 'children'> & {
|
|
@@ -52,7 +52,7 @@ declare const Combobox: ({
|
|
|
52
52
|
btnClearLabel,
|
|
53
53
|
onChange,
|
|
54
54
|
classNames
|
|
55
|
-
}: ComboboxProps) =>
|
|
55
|
+
}: ComboboxProps) => react_jsx_runtime15.JSX.Element;
|
|
56
56
|
//#endregion
|
|
57
57
|
export { Combobox, ComboboxProps };
|
|
58
58
|
//# sourceMappingURL=Combobox.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IconProps } from "../../data-display/icons/icon/Icon.mjs";
|
|
2
2
|
import { LoaderOvalProps } from "../../data-display/loader-oval/LoaderOval.mjs";
|
|
3
3
|
import "../../data-display/index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/controls/dropzone/Dropzone.d.ts
|
|
@@ -64,7 +64,7 @@ declare const Dropzone: ({
|
|
|
64
64
|
hint,
|
|
65
65
|
inputId,
|
|
66
66
|
classNames
|
|
67
|
-
}: DropzoneProps) =>
|
|
67
|
+
}: DropzoneProps) => react_jsx_runtime16.JSX.Element;
|
|
68
68
|
//#endregion
|
|
69
69
|
export { Dropzone, DropzoneProps, FileData };
|
|
70
70
|
//# sourceMappingURL=Dropzone.d.mts.map
|
|
@@ -2,7 +2,7 @@ import { UploadedFileProps } from "../../data-display/uploaded-file/UploadedFile
|
|
|
2
2
|
import "../../data-display/index.mjs";
|
|
3
3
|
import { DropzoneProps, FileData } from "../dropzone/Dropzone.mjs";
|
|
4
4
|
import "../index.mjs";
|
|
5
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
6
6
|
import { ReactNode } from "react";
|
|
7
7
|
|
|
8
8
|
//#region src/components/controls/dropzone-files/DropzoneFiles.d.ts
|
|
@@ -48,7 +48,7 @@ declare const DropzoneFiles: ({
|
|
|
48
48
|
url,
|
|
49
49
|
inputId,
|
|
50
50
|
classNames
|
|
51
|
-
}: DropzoneFilesProps) =>
|
|
51
|
+
}: DropzoneFilesProps) => react_jsx_runtime17.JSX.Element;
|
|
52
52
|
//#endregion
|
|
53
53
|
export { DropzoneFiles, DropzoneFilesProps };
|
|
54
54
|
//# sourceMappingURL=DropzoneFiles.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseFileInputProps } from "./BaseFileInput.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/file-input/FileInput.d.ts
|
|
5
5
|
type FileInputProps = Omit<BaseFileInputProps, 'multiple' | 'valueComponent' | 'onChange'> & {
|
|
@@ -18,7 +18,7 @@ declare const FileInput: ({
|
|
|
18
18
|
required,
|
|
19
19
|
disabled,
|
|
20
20
|
classNames
|
|
21
|
-
}: FileInputProps) =>
|
|
21
|
+
}: FileInputProps) => react_jsx_runtime18.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { FileInput, FileInputProps };
|
|
24
24
|
//# sourceMappingURL=FileInput.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseFileInputProps } from "./BaseFileInput.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/file-input/FileInputMultiple.d.ts
|
|
5
5
|
type FileInputMultipleProps = Omit<BaseFileInputProps, 'multiple' | 'onChange' | 'valueComponent'> & {
|
|
@@ -25,7 +25,7 @@ declare const FileInputMultiple: ({
|
|
|
25
25
|
disabled,
|
|
26
26
|
classNames,
|
|
27
27
|
badgeClassNames
|
|
28
|
-
}: FileInputMultipleProps) =>
|
|
28
|
+
}: FileInputMultipleProps) => react_jsx_runtime19.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { FileInputMultiple, FileInputMultipleProps };
|
|
31
31
|
//# sourceMappingURL=FileInputMultiple.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownProps, DropdownTextInputClassNames } from "../dropdown/Dropdown.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime20 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/multi-select/MultiSelect.d.ts
|
|
5
5
|
type MultiSelectProps = Omit<DropdownProps, 'classNames' | 'children' | 'onChange' | 'onFocus' | 'onBlur' | 'onClick' | 'value' | 'search' | 'setValue' | 'store' | 'target'> & {
|
|
@@ -39,7 +39,7 @@ declare const MultiSelect: ({
|
|
|
39
39
|
keepMounted,
|
|
40
40
|
textSelected,
|
|
41
41
|
classNames
|
|
42
|
-
}: MultiSelectProps) =>
|
|
42
|
+
}: MultiSelectProps) => react_jsx_runtime20.JSX.Element;
|
|
43
43
|
//#endregion
|
|
44
44
|
export { MultiSelect, MultiSelectProps };
|
|
45
45
|
//# sourceMappingURL=MultiSelect.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownProps, DropdownTextInputClassNames } from "../dropdown/Dropdown.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/multi-select/MultiSelectTags.d.ts
|
|
5
5
|
type MultiSelectTagsProps = Omit<DropdownProps, 'classNames' | 'children' | 'onChange' | 'onFocus' | 'onBlur' | 'onClick' | 'value' | 'search' | 'setValue' | 'store' | 'target'> & {
|
|
@@ -57,7 +57,7 @@ declare const MultiSelectTags: ({
|
|
|
57
57
|
startSlot,
|
|
58
58
|
endSlot,
|
|
59
59
|
classNames
|
|
60
|
-
}: MultiSelectTagsProps) =>
|
|
60
|
+
}: MultiSelectTagsProps) => react_jsx_runtime21.JSX.Element;
|
|
61
61
|
//#endregion
|
|
62
62
|
export { MultiSelectTags, MultiSelectTagsProps };
|
|
63
63
|
//# sourceMappingURL=MultiSelectTags.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextInputProps } from "../text-input/TextInput.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/password-input/PasswordInput.d.ts
|
|
5
5
|
type PasswordInputProps = Omit<NonNullable<TextInputProps>, 'classNames'> & {
|
|
@@ -23,7 +23,7 @@ declare const PasswordInput: ({
|
|
|
23
23
|
hideText,
|
|
24
24
|
showText,
|
|
25
25
|
...props
|
|
26
|
-
}: PasswordInputProps) =>
|
|
26
|
+
}: PasswordInputProps) => react_jsx_runtime22.JSX.Element;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { PasswordInput, PasswordInputProps };
|
|
29
29
|
//# sourceMappingURL=PasswordInput.d.mts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{PasswordInput as e}from"./PasswordInput.mjs";import{jsx as t,jsxs as n}from"react/jsx-runtime";const r=({segments:r=[],rules:i=[],showRules:a=!0,showStrengthLabel:o=!0,...s})=>{let c=r.
|
|
1
|
+
import{PasswordInput as e}from"./PasswordInput.mjs";import{jsx as t,jsxs as n}from"react/jsx-runtime";const r=({segments:r=[],rules:i=[],showRules:a=!0,showStrengthLabel:o=!0,...s})=>{let c=[...r].sort((e,t)=>e.minScore-t.minScore),l=c.length,u=i.filter(e=>e.isValid).length,d=i.length>0?u/i.length*100:0,f=s.value&&String(s.value).length>0,p=[...c].reverse().find(e=>d>=e.minScore),m=f?p?.label??``:``,h=e=>f&&d>=c[e].minScore?`hsl(${e/(l-1)*120}, 70%, 45%)`:`#e5e7eb`;return n(`div`,{children:[t(e,{...s}),n(`div`,{style:{display:`flex`,alignItems:`center`,gap:`8px`,marginTop:`8px`},children:[t(`div`,{style:{display:`flex`,gap:`4px`,flex:1},children:c.map((e,n)=>t(`div`,{style:{flex:1,height:`4px`,backgroundColor:h(n),borderRadius:`2px`}},n))}),o&&m&&t(`span`,{style:{fontSize:`12px`,color:`#6b7280`,whiteSpace:`nowrap`},children:m})]}),a&&i.length>0&&t(`ul`,{style:{listStyle:`none`,padding:0,margin:`8px 0 0 0`,fontSize:`14px`},children:i.map((e,r)=>n(`li`,{style:{display:`flex`,alignItems:`center`,gap:`6px`,color:e.isValid?`#22c55e`:`#9ca3af`},children:[t(`span`,{children:e.isValid?`✓`:`✗`}),t(`span`,{children:e.text})]},r))})]})};export{r as PasswordStrengthInput};
|
|
2
2
|
//# sourceMappingURL=PasswordStrengthInput.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordStrengthInput.mjs","names":[],"sources":["../../../../src/components/controls/password-input/PasswordStrengthInput.tsx"],"sourcesContent":["import { PasswordInput, type PasswordInputProps } from './PasswordInput';\n\nexport type PasswordRule = {\n text: string;\n isValid: boolean;\n};\n\nexport type PasswordSegment = {\n minScore: number;\n label: string;\n};\n\nexport type PasswordStrengthInputProps = PasswordInputProps & {\n segments?: PasswordSegment[];\n rules?: PasswordRule[];\n showRules?: boolean;\n showStrengthLabel?: boolean;\n};\n\nexport const PasswordStrengthInput = ({\n segments = [],\n rules = [],\n showRules = true,\n showStrengthLabel = true,\n ...props\n}: PasswordStrengthInputProps) => {\n const
|
|
1
|
+
{"version":3,"file":"PasswordStrengthInput.mjs","names":[],"sources":["../../../../src/components/controls/password-input/PasswordStrengthInput.tsx"],"sourcesContent":["import { PasswordInput, type PasswordInputProps } from './PasswordInput';\n\nexport type PasswordRule = {\n text: string;\n isValid: boolean;\n};\n\nexport type PasswordSegment = {\n minScore: number;\n label: string;\n};\n\nexport type PasswordStrengthInputProps = PasswordInputProps & {\n segments?: PasswordSegment[];\n rules?: PasswordRule[];\n showRules?: boolean;\n showStrengthLabel?: boolean;\n};\n\nexport const PasswordStrengthInput = ({\n segments = [],\n rules = [],\n showRules = true,\n showStrengthLabel = true,\n ...props\n}: PasswordStrengthInputProps) => {\n const sortedSegments = [...segments].sort((a, b) => a.minScore - b.minScore);\n const segmentCount = sortedSegments.length;\n\n const validCount = rules.filter((rule) => rule.isValid).length;\n const scorePercent = rules.length > 0 ? (validCount / rules.length) * 100 : 0;\n\n const hasValue = props.value && String(props.value).length > 0;\n\n const currentSegment = [...sortedSegments]\n .reverse()\n .find((segment) => scorePercent >= segment.minScore);\n const currentLabel = hasValue ? (currentSegment?.label ?? '') : '';\n\n const getSegmentColor = (index: number) => {\n if (!hasValue) return '#e5e7eb';\n const segment = sortedSegments[index];\n if (scorePercent >= segment.minScore) {\n const hue = (index / (segmentCount - 1)) * 120;\n return `hsl(${hue}, 70%, 45%)`;\n }\n return '#e5e7eb';\n };\n\n return (\n <div>\n <PasswordInput {...props} />\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: '8px',\n marginTop: '8px',\n }}\n >\n <div style={{ display: 'flex', gap: '4px', flex: 1 }}>\n {sortedSegments.map((_, index) => (\n <div\n key={index}\n style={{\n flex: 1,\n height: '4px',\n backgroundColor: getSegmentColor(index),\n borderRadius: '2px',\n }}\n />\n ))}\n </div>\n {showStrengthLabel && currentLabel && (\n <span\n style={{ fontSize: '12px', color: '#6b7280', whiteSpace: 'nowrap' }}\n >\n {currentLabel}\n </span>\n )}\n </div>\n {showRules && rules.length > 0 && (\n <ul\n style={{\n listStyle: 'none',\n padding: 0,\n margin: '8px 0 0 0',\n fontSize: '14px',\n }}\n >\n {rules.map((rule, index) => (\n <li\n key={index}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: '6px',\n color: rule.isValid ? '#22c55e' : '#9ca3af',\n }}\n >\n <span>{rule.isValid ? '✓' : '✗'}</span>\n <span>{rule.text}</span>\n </li>\n ))}\n </ul>\n )}\n </div>\n );\n};\n"],"mappings":"sGAmBA,MAAa,GAAyB,CACpC,WAAW,EAAE,CACb,QAAQ,EAAE,CACV,YAAY,GACZ,oBAAoB,GACpB,GAAG,KAC6B,CAChC,IAAM,EAAiB,CAAC,GAAG,EAAS,CAAC,MAAM,EAAG,IAAM,EAAE,SAAW,EAAE,SAAS,CACtE,EAAe,EAAe,OAE9B,EAAa,EAAM,OAAQ,GAAS,EAAK,QAAQ,CAAC,OAClD,EAAe,EAAM,OAAS,EAAK,EAAa,EAAM,OAAU,IAAM,EAEtE,EAAW,EAAM,OAAS,OAAO,EAAM,MAAM,CAAC,OAAS,EAEvD,EAAiB,CAAC,GAAG,EAAe,CACvC,SAAS,CACT,KAAM,GAAY,GAAgB,EAAQ,SAAS,CAChD,EAAe,EAAY,GAAgB,OAAS,GAAM,GAE1D,EAAmB,GAClB,GAED,GADY,EAAe,GACH,SAEnB,OADM,GAAS,EAAe,GAAM,IACzB,aAEb,UAGT,OACE,EAAC,MAAA,CAAA,SAAA,CACC,EAAC,EAAA,CAAc,GAAI,EAAA,CAAS,CAC5B,EAAC,MAAA,CACC,MAAO,CACL,QAAS,OACT,WAAY,SACZ,IAAK,MACL,UAAW,MACZ,WAED,EAAC,MAAA,CAAI,MAAO,CAAE,QAAS,OAAQ,IAAK,MAAO,KAAM,EAAG,UACjD,EAAe,KAAK,EAAG,IACtB,EAAC,MAAA,CAEC,MAAO,CACL,KAAM,EACN,OAAQ,MACR,gBAAiB,EAAgB,EAAM,CACvC,aAAc,MACf,CAAA,CANI,EAOL,CACF,EACE,CACL,GAAqB,GACpB,EAAC,OAAA,CACC,MAAO,CAAE,SAAU,OAAQ,MAAO,UAAW,WAAY,SAAU,UAElE,GACI,CAAA,EAEL,CACL,GAAa,EAAM,OAAS,GAC3B,EAAC,KAAA,CACC,MAAO,CACL,UAAW,OACX,QAAS,EACT,OAAQ,YACR,SAAU,OACX,UAEA,EAAM,KAAK,EAAM,IAChB,EAAC,KAAA,CAEC,MAAO,CACL,QAAS,OACT,WAAY,SACZ,IAAK,MACL,MAAO,EAAK,QAAU,UAAY,UACnC,WAED,EAAC,OAAA,CAAA,SAAM,EAAK,QAAU,IAAM,IAAA,CAAW,CACvC,EAAC,OAAA,CAAA,SAAM,EAAK,KAAA,CAAY,CAAA,EATnB,EAUF,CACL,EACC,GAEH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PasswordInputProps } from "../password-input/PasswordInput.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime23 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/password-input-strength/oldPasswordInputStrength.d.ts
|
|
5
5
|
type PasswordInputStrengthProps = Omit<PasswordInputProps, 'classNames'> & {
|
|
@@ -37,7 +37,7 @@ declare const PasswordInputStrength: ({
|
|
|
37
37
|
weakPasswordText,
|
|
38
38
|
mediumPasswordText,
|
|
39
39
|
strongPasswordText
|
|
40
|
-
}: PasswordInputStrengthProps) =>
|
|
40
|
+
}: PasswordInputStrengthProps) => react_jsx_runtime23.JSX.Element;
|
|
41
41
|
//#endregion
|
|
42
42
|
export { PasswordInputStrength, PasswordInputStrengthProps };
|
|
43
43
|
//# sourceMappingURL=oldPasswordInputStrength.d.mts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DropdownProps } from "../dropdown/Dropdown.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/controls/select/Select.d.ts
|
|
@@ -32,7 +32,7 @@ declare const Select: ({
|
|
|
32
32
|
emptyMessage,
|
|
33
33
|
btnClearLabel,
|
|
34
34
|
classNames
|
|
35
|
-
}: SelectProps) =>
|
|
35
|
+
}: SelectProps) => react_jsx_runtime24.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Select, SelectProps };
|
|
38
38
|
//# sourceMappingURL=Select.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime25 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/text-input/TextInput.d.ts
|
|
@@ -26,7 +26,7 @@ declare const TextInput: ({
|
|
|
26
26
|
startSlot,
|
|
27
27
|
endSlot,
|
|
28
28
|
...props
|
|
29
|
-
}: TextInputProps) =>
|
|
29
|
+
}: TextInputProps) => react_jsx_runtime25.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { TextInput, TextInputProps };
|
|
32
32
|
//# sourceMappingURL=TextInput.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
2
2
|
import { ComponentProps, ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/controls/textarea/Textarea.d.ts
|
|
@@ -41,7 +41,7 @@ declare const Textarea: ({
|
|
|
41
41
|
autosize,
|
|
42
42
|
minRows,
|
|
43
43
|
maxRows
|
|
44
|
-
}: TextareaProps) =>
|
|
44
|
+
}: TextareaProps) => react_jsx_runtime26.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { Textarea, TextareaProps };
|
|
47
47
|
//# sourceMappingURL=Textarea.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime62 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/controls/utils/clear-button/ClearButton.d.ts
|
|
4
4
|
type ClearButtonProps = {
|
|
@@ -20,7 +20,7 @@ declare const ClearButton: ({
|
|
|
20
20
|
onClick,
|
|
21
21
|
name,
|
|
22
22
|
classNames
|
|
23
|
-
}: ClearButtonProps) =>
|
|
23
|
+
}: ClearButtonProps) => react_jsx_runtime62.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { ClearButton, ClearButtonProps };
|
|
26
26
|
//# sourceMappingURL=ClearButton.d.mts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AvatarProps } from "../avatar/Avatar.mjs";
|
|
2
2
|
import { RemovableItemProps } from "../removable-item/RemovableItem.mjs";
|
|
3
3
|
import "../index.mjs";
|
|
4
|
-
import * as
|
|
4
|
+
import * as react_jsx_runtime27 from "react/jsx-runtime";
|
|
5
5
|
import { ReactNode } from "react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/data-display/assigned-user/AssignedUser.d.ts
|
|
@@ -31,7 +31,7 @@ declare const AssignedUser: ({
|
|
|
31
31
|
removeButtonLabel,
|
|
32
32
|
children,
|
|
33
33
|
classNames
|
|
34
|
-
}: AssignedUserProps) =>
|
|
34
|
+
}: AssignedUserProps) => react_jsx_runtime27.JSX.Element;
|
|
35
35
|
//#endregion
|
|
36
36
|
export { AssignedUser, AssignedUserProps };
|
|
37
37
|
//# sourceMappingURL=AssignedUser.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssignedUser.mjs","names":[],"sources":["../../../../src/components/data-display/assigned-user/AssignedUser.tsx"],"sourcesContent":["// TODO: crear stories\n\nimport type { ReactNode } from 'react';\n\nimport {\n assignedUser,\n assignedUserAvatar,\n assignedUserAvatarImage,\n assignedUserAvatarPlaceholder,\n assignedUserAvatarRoot,\n assignedUserButtonIcon,\n assignedUserButtonIconIcon,\n assignedUserButtonIconIconRaw,\n assignedUserButtonIconIconRawRoot,\n assignedUserButtonIconRoot,\n assignedUserContent,\n assignedUserName,\n assignedUserRoot,\n assignedUserSection,\n} from '@mage-ui/styled-system/recipes';\nimport {\n Avatar,\n type AvatarProps,\n RemovableItem,\n type RemovableItemProps,\n} from '@/components/data-display';\n\nexport type AssignedUserProps = {\n name: string;\n avatarSrc?: string;\n avatarAlt?: string;\n onRemove: () => void;\n children?: ReactNode;\n removeButtonLabel?: string;\n classNames?: {\n assignedUser?: string;\n root?: string;\n section?: string;\n content?: string;\n name?: string;\n avatar?: AvatarProps['classNames'];\n removableItem?: RemovableItemProps['classNames'];\n buttonIcon?: NonNullable<RemovableItemProps['classNames']>['buttonIcon'];\n };\n};\n\nexport const AssignedUser = ({\n name,\n avatarSrc,\n avatarAlt,\n onRemove,\n removeButtonLabel = 'Remove user',\n children,\n classNames,\n}: AssignedUserProps) => {\n return (\n <RemovableItem\n startSlot={\n <Avatar\n name={name}\n src={avatarSrc}\n alt={avatarAlt}\n classNames={{\n avatar: classNames?.avatar?.avatar ?? assignedUserAvatar(),\n root: classNames?.avatar?.root ?? assignedUserAvatarRoot(),\n image: classNames?.avatar?.image ?? assignedUserAvatarImage(),\n placeholder:\n classNames?.avatar?.placeholder ??\n assignedUserAvatarPlaceholder(),\n }}\n />\n }\n onRemove={onRemove}\n removeButtonLabel={removeButtonLabel}\n classNames={{\n container:\n classNames?.removableItem?.container ??\n classNames?.assignedUser ??\n assignedUser(),\n root:\n classNames?.removableItem?.root ??\n classNames?.root ??\n assignedUserRoot(),\n section:\n classNames?.removableItem?.section ??\n classNames?.section ??\n assignedUserSection(),\n content:\n classNames?.removableItem?.content ??\n classNames?.content ??\n assignedUserContent(),\n buttonIcon: {\n buttonIcon:\n classNames?.buttonIcon?.buttonIcon ??\n classNames?.removableItem?.buttonIcon?.buttonIcon ??\n assignedUserButtonIcon(),\n root:\n classNames?.buttonIcon?.root ??\n classNames?.removableItem?.buttonIcon?.root ??\n assignedUserButtonIconRoot(),\n icon:\n classNames?.buttonIcon?.icon ??\n classNames?.removableItem?.buttonIcon?.icon ??\n assignedUserButtonIconIcon(),\n iconRaw: {\n iconRaw:\n classNames?.buttonIcon?.iconRaw?.iconRaw ??\n classNames?.removableItem?.buttonIcon?.iconRaw?.iconRaw ??\n assignedUserButtonIconIconRaw(),\n root:\n classNames?.buttonIcon?.iconRaw?.root ??\n classNames?.removableItem?.buttonIcon?.iconRaw?.root ??\n assignedUserButtonIconIconRawRoot(),\n },\n },\n }}\n >\n <span className={classNames?.name ?? assignedUserName()}
|
|
1
|
+
{"version":3,"file":"AssignedUser.mjs","names":[],"sources":["../../../../src/components/data-display/assigned-user/AssignedUser.tsx"],"sourcesContent":["// TODO: crear stories\n\nimport type { ReactNode } from 'react';\n\nimport {\n assignedUser,\n assignedUserAvatar,\n assignedUserAvatarImage,\n assignedUserAvatarPlaceholder,\n assignedUserAvatarRoot,\n assignedUserButtonIcon,\n assignedUserButtonIconIcon,\n assignedUserButtonIconIconRaw,\n assignedUserButtonIconIconRawRoot,\n assignedUserButtonIconRoot,\n assignedUserContent,\n assignedUserName,\n assignedUserRoot,\n assignedUserSection,\n} from '@mage-ui/styled-system/recipes';\nimport {\n Avatar,\n type AvatarProps,\n RemovableItem,\n type RemovableItemProps,\n} from '@/components/data-display';\n\nexport type AssignedUserProps = {\n name: string;\n avatarSrc?: string;\n avatarAlt?: string;\n onRemove: () => void;\n children?: ReactNode;\n removeButtonLabel?: string;\n classNames?: {\n assignedUser?: string;\n root?: string;\n section?: string;\n content?: string;\n name?: string;\n avatar?: AvatarProps['classNames'];\n removableItem?: RemovableItemProps['classNames'];\n buttonIcon?: NonNullable<RemovableItemProps['classNames']>['buttonIcon'];\n };\n};\n\nexport const AssignedUser = ({\n name,\n avatarSrc,\n avatarAlt,\n onRemove,\n removeButtonLabel = 'Remove user',\n children,\n classNames,\n}: AssignedUserProps) => {\n return (\n <RemovableItem\n startSlot={\n <Avatar\n name={name}\n src={avatarSrc}\n alt={avatarAlt}\n classNames={{\n avatar: classNames?.avatar?.avatar ?? assignedUserAvatar(),\n root: classNames?.avatar?.root ?? assignedUserAvatarRoot(),\n image: classNames?.avatar?.image ?? assignedUserAvatarImage(),\n placeholder:\n classNames?.avatar?.placeholder ??\n assignedUserAvatarPlaceholder(),\n }}\n />\n }\n onRemove={onRemove}\n removeButtonLabel={removeButtonLabel}\n classNames={{\n container:\n classNames?.removableItem?.container ??\n classNames?.assignedUser ??\n assignedUser(),\n root:\n classNames?.removableItem?.root ??\n classNames?.root ??\n assignedUserRoot(),\n section:\n classNames?.removableItem?.section ??\n classNames?.section ??\n assignedUserSection(),\n content:\n classNames?.removableItem?.content ??\n classNames?.content ??\n assignedUserContent(),\n buttonIcon: {\n buttonIcon:\n classNames?.buttonIcon?.buttonIcon ??\n classNames?.removableItem?.buttonIcon?.buttonIcon ??\n assignedUserButtonIcon(),\n root:\n classNames?.buttonIcon?.root ??\n classNames?.removableItem?.buttonIcon?.root ??\n assignedUserButtonIconRoot(),\n icon:\n classNames?.buttonIcon?.icon ??\n classNames?.removableItem?.buttonIcon?.icon ??\n assignedUserButtonIconIcon(),\n iconRaw: {\n iconRaw:\n classNames?.buttonIcon?.iconRaw?.iconRaw ??\n classNames?.removableItem?.buttonIcon?.iconRaw?.iconRaw ??\n assignedUserButtonIconIconRaw(),\n root:\n classNames?.buttonIcon?.iconRaw?.root ??\n classNames?.removableItem?.buttonIcon?.iconRaw?.root ??\n assignedUserButtonIconIconRawRoot(),\n },\n },\n }}\n >\n <span className={classNames?.name ?? assignedUserName()}>{children}</span>\n </RemovableItem>\n );\n};\n"],"mappings":"glBA8CA,MAAa,GAAgB,CAC3B,OACA,YACA,YACA,WACA,oBAAoB,cACpB,WACA,gBAGE,EAAC,EAAA,CACC,UACE,EAAC,EAAA,CACO,OACN,IAAK,EACL,IAAK,EACL,WAAY,CACV,OAAQ,GAAY,QAAQ,QAAU,GAAoB,CAC1D,KAAM,GAAY,QAAQ,MAAQ,GAAwB,CAC1D,MAAO,GAAY,QAAQ,OAAS,GAAyB,CAC7D,YACE,GAAY,QAAQ,aACpB,GAA+B,CAClC,EACD,CAEM,WACS,oBACnB,WAAY,CACV,UACE,GAAY,eAAe,WAC3B,GAAY,cACZ,GAAc,CAChB,KACE,GAAY,eAAe,MAC3B,GAAY,MACZ,GAAkB,CACpB,QACE,GAAY,eAAe,SAC3B,GAAY,SACZ,GAAqB,CACvB,QACE,GAAY,eAAe,SAC3B,GAAY,SACZ,GAAqB,CACvB,WAAY,CACV,WACE,GAAY,YAAY,YACxB,GAAY,eAAe,YAAY,YACvC,GAAwB,CAC1B,KACE,GAAY,YAAY,MACxB,GAAY,eAAe,YAAY,MACvC,GAA4B,CAC9B,KACE,GAAY,YAAY,MACxB,GAAY,eAAe,YAAY,MACvC,GAA4B,CAC9B,QAAS,CACP,QACE,GAAY,YAAY,SAAS,SACjC,GAAY,eAAe,YAAY,SAAS,SAChD,GAA+B,CACjC,KACE,GAAY,YAAY,SAAS,MACjC,GAAY,eAAe,YAAY,SAAS,MAChD,GAAmC,CACtC,CACF,CACF,UAED,EAAC,OAAA,CAAK,UAAW,GAAY,MAAQ,GAAkB,CAAG,YAAgB,EAC5D"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AvatarVariantProps } from "@mage-ui/styled-system/recipes";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/data-display/avatar/Avatar.d.ts
|
|
5
5
|
type AvatarProps = {
|
|
@@ -18,7 +18,7 @@ declare const Avatar: ({
|
|
|
18
18
|
name,
|
|
19
19
|
src,
|
|
20
20
|
alt
|
|
21
|
-
}: AvatarProps) =>
|
|
21
|
+
}: AvatarProps) => react_jsx_runtime28.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Avatar, AvatarProps };
|
|
24
24
|
//# sourceMappingURL=Avatar.d.mts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/data-display/badge/Badge.d.ts
|
|
@@ -18,7 +18,7 @@ declare const Badge: ({
|
|
|
18
18
|
endSlot,
|
|
19
19
|
startSlot,
|
|
20
20
|
classNames
|
|
21
|
-
}: BadgeProps) =>
|
|
21
|
+
}: BadgeProps) => react_jsx_runtime29.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { Badge, BadgeProps };
|
|
24
24
|
//# sourceMappingURL=Badge.d.mts.map
|