@mage-ui/components 0.0.58 → 0.0.60
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/controls/dropdown/Select.d.ts.map +1 -1
- package/dist/components/controls/dropdown/Select.js +1 -1
- package/dist/components/controls/dropdown/Select.js.map +1 -1
- package/dist/components/data-display/avatar/Avatar.d.ts +2 -2
- package/dist/components/data-display/badge/Badge.d.ts +2 -2
- package/dist/components/data-display/carousel/Carousel.d.ts +2 -2
- package/dist/components/data-display/tables/table/Table.d.ts +8 -8
- package/dist/components/data-display/tooltip/Tooltip.d.ts +25 -0
- package/dist/components/data-display/tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/data-display/tooltip/Tooltip.js +2 -0
- package/dist/components/data-display/tooltip/Tooltip.js.map +1 -0
- package/dist/components/forms/form/Form.d.ts +13 -13
- package/dist/components/misc/horizontal-divider/HorizontalDivider.d.ts +2 -2
- package/dist/components/misc/visually-hidden/VisuallyHidden.d.ts +2 -2
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/panda.json +4 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","names":[],"sources":["../../../../src/components/controls/dropdown/Select.tsx"],"sourcesContent":[],"mappings":";;;;;KAgBY,WAAA,GAAc,KACxB,qEAGA;;;IAJU,KAAA,EAAA,MAAW;EAAA,CAAA,GAAA,SAAA,EAAA,GAAA,IAAA;SACrB,EAAA;IADwB,EAAA,EAAA,MAAA,GAAA,MAAA;IAIxB,KAAA,EAAA,MAAA;EAAc,CAAA,EAAA;EAUH,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","names":[],"sources":["../../../../src/components/controls/dropdown/Select.tsx"],"sourcesContent":[],"mappings":";;;;;KAgBY,WAAA,GAAc,KACxB,qEAGA;;;IAJU,KAAA,EAAA,MAAW;EAAA,CAAA,GAAA,SAAA,EAAA,GAAA,IAAA;SACrB,EAAA;IADwB,EAAA,EAAA,MAAA,GAAA,MAAA;IAIxB,KAAA,EAAA,MAAA;EAAc,CAAA,EAAA;EAUH,UAmDZ,CAAA,EAAA;IAAA,MAAA,CAAA,EAAA,MAAA;;;AAnDsB,cAAV,MAAU,EAAA,CAAA;EAAA,aAAA;EAAA,iBAAA;EAAA,cAAA;EAAA,OAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAOpB,WAPoB,EAAA,GAOT,mBAAA,CAAA,GAAA,CAAA,OAPS"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{DropdownBase as e}from"./DropdownBase.js";import{InputText as t}from"../input-text/InputText.js";import{comboboxOption as n,input as r,inputLabel as i,inputRoot as a,inputSection as o,selectButton as s,selectSection as c}from"@mage-ui/styled-system/recipes";import{jsx as l}from"react/jsx-runtime";import{useState as u}from"react";import{cx as d}from"@mage-ui/styled-system/css";const f=({defaultOpened:f=!1,setSelectedOption:p,selectedOption:m,options:h,classNames:g,..._})=>{let[v,y]=u(m?.value??``),b=h.map(t=>l(e.Option,{value:t.value,active:m?.id===t.id,classNames:{option:g?.option??n()},children:t.value},t.id)),x=e=>{let t=h.find(t=>t.value===e);p(t)};return l(e,{readOnly:!0,target:l(t,{readOnly:!0,classNames:{root:g?.root??a(),label:g?.label??i(),input:g?.input??d(r(),s()),section:g?.section??d(o(),c())},value:v,..._}),selectedOption:m,setQuery:y,setSelectedOption:e=>x(e)
|
|
1
|
+
import{DropdownBase as e}from"./DropdownBase.js";import{InputText as t}from"../input-text/InputText.js";import{comboboxOption as n,input as r,inputLabel as i,inputRoot as a,inputSection as o,selectButton as s,selectSection as c}from"@mage-ui/styled-system/recipes";import{jsx as l}from"react/jsx-runtime";import{useState as u}from"react";import{cx as d}from"@mage-ui/styled-system/css";const f=({defaultOpened:f=!1,setSelectedOption:p,selectedOption:m,options:h,classNames:g,..._})=>{let[v,y]=u(m?.value??``),b=h.map(t=>l(e.Option,{value:t.value,active:m?.id===t.id,classNames:{option:g?.option??n()},children:t.value},t.id)),x=e=>{let t=h.find(t=>t.value===e);p(t)};return l(e,{readOnly:!0,target:l(t,{readOnly:!0,classNames:{root:g?.root??a(),label:g?.label??i(),input:g?.input??d(r(),s()),section:g?.section??d(o(),c())},value:v,..._}),selectedOption:m,setQuery:y,setSelectedOption:e=>x(e),width:`target`,..._,children:b})};export{f as Select};
|
|
2
2
|
//# sourceMappingURL=Select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.js","names":[],"sources":["../../../../src/components/controls/dropdown/Select.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n comboboxOption,\n input,\n inputLabel,\n inputRoot,\n inputSection,\n selectButton,\n selectSection,\n} from '@mage-ui/styled-system/recipes';\nimport { InputText, type InputTextProps } from '@/components/controls';\n\nimport { DropdownBase, type DropdownBaseProps } from './DropdownBase';\n\nexport type SelectProps = Omit<\n DropdownBaseProps,\n 'children' | 'onClick' | 'setQuery' | 'target'\n> &\n InputTextProps & {\n setSelectedOption: (\n option: { id: string | number; value: string } | undefined,\n ) => void;\n options: { id: string | number; value: string }[];\n classNames?: {\n option?: string;\n };\n };\n\nexport const Select = ({\n defaultOpened = false,\n setSelectedOption,\n selectedOption,\n options,\n classNames,\n ...props\n}: SelectProps) => {\n const [query, setQuery] = useState(selectedOption?.value ?? '');\n\n const dropdownOptions = options.map((option) => (\n <DropdownBase.Option\n value={option.value}\n key={option.id}\n active={selectedOption?.id === option.id}\n classNames={{ option: classNames?.option ?? comboboxOption() }}\n >\n {option.value}\n </DropdownBase.Option>\n ));\n\n const onChange = (value: string | undefined) => {\n const selected = options.find((item) => item.value === value);\n setSelectedOption(selected);\n };\n\n return (\n <DropdownBase\n readOnly={true}\n target={\n <InputText\n readOnly\n classNames={{\n root: classNames?.root ?? inputRoot(),\n label: classNames?.label ?? inputLabel(),\n input: classNames?.input ?? cx(input(), selectButton()),\n section: classNames?.section ?? cx(inputSection(), selectSection()),\n }}\n value={query}\n {...props}\n />\n }\n selectedOption={selectedOption}\n setQuery={setQuery}\n setSelectedOption={(option) => onChange(option)}\n {...props}\n >\n {dropdownOptions}\n </DropdownBase>\n );\n};\n"],"mappings":"kYA8BA,MAAa,GAAU,CACrB,gBAAgB,GAChB,oBACA,iBACA,UACA,aACA,GAAG,KACc,CACjB,GAAM,CAAC,EAAO,GAAY,EAAS,GAAgB,OAAS,GAAG,CAEzD,EAAkB,EAAQ,IAAK,GACnC,EAAC,EAAa,OAAA,CACZ,MAAO,EAAO,MAEd,OAAQ,GAAgB,KAAO,EAAO,GACtC,WAAY,CAAE,OAAQ,GAAY,QAAU,GAAgB,CAAE,UAE7D,EAAO,OAJH,EAAO,GAKQ,CACtB,CAEI,EAAY,GAA8B,CAC9C,IAAM,EAAW,EAAQ,KAAM,GAAS,EAAK,QAAU,EAAM,CAC7D,EAAkB,EAAS,EAG7B,OACE,EAAC,EAAA,CACC,SAAU,GACV,OACE,EAAC,EAAA,CACC,SAAA,GACA,WAAY,CACV,KAAM,GAAY,MAAQ,GAAW,CACrC,MAAO,GAAY,OAAS,GAAY,CACxC,MAAO,GAAY,OAAS,EAAG,GAAO,CAAE,GAAc,CAAC,CACvD,QAAS,GAAY,SAAW,EAAG,GAAc,CAAE,GAAe,CAAC,CACpE,CACD,MAAO,EACP,GAAI,GACJ,CAEY,iBACN,WACV,kBAAoB,GAAW,EAAS,EAAO,CAC/C,GAAI,WAEH,GACY"}
|
|
1
|
+
{"version":3,"file":"Select.js","names":[],"sources":["../../../../src/components/controls/dropdown/Select.tsx"],"sourcesContent":["import { useState } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n comboboxOption,\n input,\n inputLabel,\n inputRoot,\n inputSection,\n selectButton,\n selectSection,\n} from '@mage-ui/styled-system/recipes';\nimport { InputText, type InputTextProps } from '@/components/controls';\n\nimport { DropdownBase, type DropdownBaseProps } from './DropdownBase';\n\nexport type SelectProps = Omit<\n DropdownBaseProps,\n 'children' | 'onClick' | 'setQuery' | 'target'\n> &\n InputTextProps & {\n setSelectedOption: (\n option: { id: string | number; value: string } | undefined,\n ) => void;\n options: { id: string | number; value: string }[];\n classNames?: {\n option?: string;\n };\n };\n\nexport const Select = ({\n defaultOpened = false,\n setSelectedOption,\n selectedOption,\n options,\n classNames,\n ...props\n}: SelectProps) => {\n const [query, setQuery] = useState(selectedOption?.value ?? '');\n\n const dropdownOptions = options.map((option) => (\n <DropdownBase.Option\n value={option.value}\n key={option.id}\n active={selectedOption?.id === option.id}\n classNames={{ option: classNames?.option ?? comboboxOption() }}\n >\n {option.value}\n </DropdownBase.Option>\n ));\n\n const onChange = (value: string | undefined) => {\n const selected = options.find((item) => item.value === value);\n setSelectedOption(selected);\n };\n\n return (\n <DropdownBase\n readOnly={true}\n target={\n <InputText\n readOnly\n classNames={{\n root: classNames?.root ?? inputRoot(),\n label: classNames?.label ?? inputLabel(),\n input: classNames?.input ?? cx(input(), selectButton()),\n section: classNames?.section ?? cx(inputSection(), selectSection()),\n }}\n value={query}\n {...props}\n />\n }\n selectedOption={selectedOption}\n setQuery={setQuery}\n setSelectedOption={(option) => onChange(option)}\n width='target'\n {...props}\n >\n {dropdownOptions}\n </DropdownBase>\n );\n};\n"],"mappings":"kYA8BA,MAAa,GAAU,CACrB,gBAAgB,GAChB,oBACA,iBACA,UACA,aACA,GAAG,KACc,CACjB,GAAM,CAAC,EAAO,GAAY,EAAS,GAAgB,OAAS,GAAG,CAEzD,EAAkB,EAAQ,IAAK,GACnC,EAAC,EAAa,OAAA,CACZ,MAAO,EAAO,MAEd,OAAQ,GAAgB,KAAO,EAAO,GACtC,WAAY,CAAE,OAAQ,GAAY,QAAU,GAAgB,CAAE,UAE7D,EAAO,OAJH,EAAO,GAKQ,CACtB,CAEI,EAAY,GAA8B,CAC9C,IAAM,EAAW,EAAQ,KAAM,GAAS,EAAK,QAAU,EAAM,CAC7D,EAAkB,EAAS,EAG7B,OACE,EAAC,EAAA,CACC,SAAU,GACV,OACE,EAAC,EAAA,CACC,SAAA,GACA,WAAY,CACV,KAAM,GAAY,MAAQ,GAAW,CACrC,MAAO,GAAY,OAAS,GAAY,CACxC,MAAO,GAAY,OAAS,EAAG,GAAO,CAAE,GAAc,CAAC,CACvD,QAAS,GAAY,SAAW,EAAG,GAAc,CAAE,GAAe,CAAC,CACpE,CACD,MAAO,EACP,GAAI,GACJ,CAEY,iBACN,WACV,kBAAoB,GAAW,EAAS,EAAO,CAC/C,MAAM,SACN,GAAI,WAEH,GACY"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime15 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/data-display/avatar/Avatar.d.ts
|
|
4
4
|
type AvatarProps = {
|
|
@@ -13,7 +13,7 @@ type AvatarProps = {
|
|
|
13
13
|
declare const Avatar: ({
|
|
14
14
|
classNames,
|
|
15
15
|
...props
|
|
16
|
-
}: AvatarProps) =>
|
|
16
|
+
}: AvatarProps) => react_jsx_runtime15.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { Avatar, AvatarProps };
|
|
19
19
|
//# sourceMappingURL=Avatar.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime16 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/data-display/badge/Badge.d.ts
|
|
@@ -17,7 +17,7 @@ declare const Badge: ({
|
|
|
17
17
|
startSlot,
|
|
18
18
|
classNames,
|
|
19
19
|
...props
|
|
20
|
-
}: BadgeProps) =>
|
|
20
|
+
}: BadgeProps) => react_jsx_runtime16.JSX.Element;
|
|
21
21
|
//#endregion
|
|
22
22
|
export { Badge, BadgeProps };
|
|
23
23
|
//# sourceMappingURL=Badge.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime17 from "react/jsx-runtime";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/data-display/carousel/Carousel.d.ts
|
|
@@ -40,7 +40,7 @@ declare const Carousel: {
|
|
|
40
40
|
({
|
|
41
41
|
classNames,
|
|
42
42
|
...props
|
|
43
|
-
}: CarouselProps):
|
|
43
|
+
}: CarouselProps): react_jsx_runtime17.JSX.Element;
|
|
44
44
|
Slide: {
|
|
45
45
|
({
|
|
46
46
|
children
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime47 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/data-display/tables/table/Table.d.ts
|
|
4
4
|
type TableProps = {
|
|
@@ -17,14 +17,14 @@ declare const Table: {
|
|
|
17
17
|
classNames,
|
|
18
18
|
scrollable,
|
|
19
19
|
children
|
|
20
|
-
}: TableProps):
|
|
20
|
+
}: TableProps): react_jsx_runtime47.JSX.Element;
|
|
21
21
|
displayName: string;
|
|
22
22
|
Header: {
|
|
23
23
|
({
|
|
24
24
|
children
|
|
25
25
|
}: {
|
|
26
26
|
children: any;
|
|
27
|
-
}):
|
|
27
|
+
}): react_jsx_runtime47.JSX.Element;
|
|
28
28
|
displayName: string;
|
|
29
29
|
};
|
|
30
30
|
Body: {
|
|
@@ -32,7 +32,7 @@ declare const Table: {
|
|
|
32
32
|
children
|
|
33
33
|
}: {
|
|
34
34
|
children: any;
|
|
35
|
-
}):
|
|
35
|
+
}): react_jsx_runtime47.JSX.Element;
|
|
36
36
|
displayName: string;
|
|
37
37
|
};
|
|
38
38
|
Footer: {
|
|
@@ -40,7 +40,7 @@ declare const Table: {
|
|
|
40
40
|
children
|
|
41
41
|
}: {
|
|
42
42
|
children: any;
|
|
43
|
-
}):
|
|
43
|
+
}): react_jsx_runtime47.JSX.Element;
|
|
44
44
|
displayName: string;
|
|
45
45
|
};
|
|
46
46
|
Head: {
|
|
@@ -50,7 +50,7 @@ declare const Table: {
|
|
|
50
50
|
}: {
|
|
51
51
|
[x: string]: any;
|
|
52
52
|
children: any;
|
|
53
|
-
}):
|
|
53
|
+
}): react_jsx_runtime47.JSX.Element;
|
|
54
54
|
displayName: string;
|
|
55
55
|
};
|
|
56
56
|
Row: {
|
|
@@ -60,7 +60,7 @@ declare const Table: {
|
|
|
60
60
|
}: {
|
|
61
61
|
[x: string]: any;
|
|
62
62
|
children: any;
|
|
63
|
-
}):
|
|
63
|
+
}): react_jsx_runtime47.JSX.Element;
|
|
64
64
|
displayName: string;
|
|
65
65
|
};
|
|
66
66
|
Cell: {
|
|
@@ -70,7 +70,7 @@ declare const Table: {
|
|
|
70
70
|
}: {
|
|
71
71
|
[x: string]: any;
|
|
72
72
|
children: any;
|
|
73
|
-
}):
|
|
73
|
+
}): react_jsx_runtime47.JSX.Element;
|
|
74
74
|
displayName: string;
|
|
75
75
|
};
|
|
76
76
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react_jsx_runtime14 from "react/jsx-runtime";
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/data-display/tooltip/Tooltip.d.ts
|
|
5
|
+
type TooltipProps = {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
offset?: number;
|
|
9
|
+
id?: string;
|
|
10
|
+
position?: 'bottom' | 'bottom-start' | 'bottom-end' | 'top' | 'top-start' | 'top-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
11
|
+
inline?: boolean;
|
|
12
|
+
multiline?: boolean;
|
|
13
|
+
classNames?: {
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
arrow?: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare const Tooltip: ({
|
|
19
|
+
children,
|
|
20
|
+
classNames,
|
|
21
|
+
...props
|
|
22
|
+
}: TooltipProps) => react_jsx_runtime14.JSX.Element;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { Tooltip, TooltipProps };
|
|
25
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","names":[],"sources":["../../../../src/components/data-display/tooltip/Tooltip.tsx"],"sourcesContent":[],"mappings":";;;;KAUY,YAAA;YACA;SACH;EAFG,MAAA,CAAA,EAAA,MAAY;EAAA,EAAA,CAAA,EAAA,MAAA;UACZ,CAAA,EAAA,QAAA,GAAA,cAAA,GAAA,YAAA,GAAA,KAAA,GAAA,WAAA,GAAA,SAAA,GAAA,OAAA,GAAA,aAAA,GAAA,WAAA,GAAA,MAAA,GAAA,YAAA,GAAA,UAAA;QACH,CAAA,EAAA,OAAA;EAAS,SAAA,CAAA,EAAA,OAAA;EAwBL,UAYZ,CAAA,EAAA;IAAA,OAAA,CAAA,EAAA,MAAA;IAZuB,KAAA,CAAA,EAAA,MAAA;;;AAAgD,cAA3D,OAA2D,EAAA,CAAA;EAAA,QAAA;EAAA,UAAA;EAAA,GAAA;AAAA,CAAA,EAAZ,YAAY,EAAA,GAAA,mBAAA,CAAA,GAAA,CAAA,OAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{tooltip as e,tooltipArrow as t,tooltipRoot as n}from"@mage-ui/styled-system/recipes";import{Tooltip as r}from"@mantine/core";import{jsx as i}from"react/jsx-runtime";import{cx as a}from"@mage-ui/styled-system/css";const o=({children:o,classNames:s,...c})=>i(r,{classNames:{tooltip:a(e(),n()),arrow:t()},...c,children:o});export{o as Tooltip};
|
|
2
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.js","names":["Tooltip","MantineTooltip"],"sources":["../../../../src/components/data-display/tooltip/Tooltip.tsx"],"sourcesContent":["import type { ReactNode } from 'react';\n\nimport { cx } from '@mage-ui/styled-system/css';\nimport {\n tooltip,\n tooltipArrow,\n tooltipRoot,\n} from '@mage-ui/styled-system/recipes';\nimport { Tooltip as MantineTooltip } from '@mantine/core';\n\nexport type TooltipProps = {\n children: ReactNode;\n label: ReactNode;\n offset?: number;\n id?: string;\n position?:\n | 'bottom'\n | 'bottom-start'\n | 'bottom-end'\n | 'top'\n | 'top-start'\n | 'top-end'\n | 'right'\n | 'right-start'\n | 'right-end'\n | 'left'\n | 'left-start'\n | 'left-end';\n inline?: boolean;\n multiline?: boolean;\n classNames?: {\n tooltip?: string;\n arrow?: string;\n };\n};\n\nexport const Tooltip = ({ children, classNames, ...props }: TooltipProps) => {\n return (\n <MantineTooltip\n classNames={{\n tooltip: cx(tooltip(), tooltipRoot()),\n arrow: tooltipArrow(),\n }}\n {...props}\n >\n {children}\n </MantineTooltip>\n );\n};\n"],"mappings":"4NAoCA,MAAaA,GAAW,CAAE,WAAU,aAAY,GAAG,KAE/C,EAACC,EAAAA,CACC,WAAY,CACV,QAAS,EAAG,GAAS,CAAE,GAAa,CAAC,CACrC,MAAO,GAAc,CACtB,CACD,GAAI,EAEH,YACc"}
|
|
@@ -11,7 +11,7 @@ import { FormDatePickerProps } from "./controls/FormDatePicker.js";
|
|
|
11
11
|
import { FormInputFileProps } from "./controls/FormInputFile.js";
|
|
12
12
|
import { FormInputPasswordProps } from "./controls/FormInputPassword.js";
|
|
13
13
|
import { FormIfFieldProps } from "./controls/FormIfField.js";
|
|
14
|
-
import * as
|
|
14
|
+
import * as react_jsx_runtime18 from "react/jsx-runtime";
|
|
15
15
|
import { ReactNode } from "react";
|
|
16
16
|
import { ZodEffects, ZodObject, ZodRawShape, z } from "zod";
|
|
17
17
|
|
|
@@ -29,11 +29,11 @@ declare const Form: {
|
|
|
29
29
|
onSubmit,
|
|
30
30
|
children,
|
|
31
31
|
...props
|
|
32
|
-
}: FormProps):
|
|
32
|
+
}: FormProps): react_jsx_runtime18.JSX.Element;
|
|
33
33
|
InputText: {
|
|
34
34
|
({
|
|
35
35
|
...props
|
|
36
|
-
}: FormInputTextProps):
|
|
36
|
+
}: FormInputTextProps): react_jsx_runtime18.JSX.Element;
|
|
37
37
|
displayName: string;
|
|
38
38
|
rules: {
|
|
39
39
|
required: (message?: string, min?: number) => z.ZodString;
|
|
@@ -44,7 +44,7 @@ declare const Form: {
|
|
|
44
44
|
name,
|
|
45
45
|
control,
|
|
46
46
|
...props
|
|
47
|
-
}: FormCheckboxProps):
|
|
47
|
+
}: FormCheckboxProps): react_jsx_runtime18.JSX.Element;
|
|
48
48
|
displayName: string;
|
|
49
49
|
rules: {
|
|
50
50
|
required: (message?: string) => ZodEffects<z.ZodBoolean, boolean, boolean>;
|
|
@@ -56,7 +56,7 @@ declare const Form: {
|
|
|
56
56
|
control,
|
|
57
57
|
children,
|
|
58
58
|
...props
|
|
59
|
-
}: FormCheckboxGroupProps):
|
|
59
|
+
}: FormCheckboxGroupProps): react_jsx_runtime18.JSX.Element;
|
|
60
60
|
displayName: string;
|
|
61
61
|
rules: {
|
|
62
62
|
required: (message?: string) => z.ZodArray<z.ZodString, "many">;
|
|
@@ -74,7 +74,7 @@ declare const Form: {
|
|
|
74
74
|
name,
|
|
75
75
|
control,
|
|
76
76
|
...props
|
|
77
|
-
}: FormComboboxProps):
|
|
77
|
+
}: FormComboboxProps): react_jsx_runtime18.JSX.Element;
|
|
78
78
|
displayName: string;
|
|
79
79
|
rules: {
|
|
80
80
|
required: (message?: string, defaultValue?: {
|
|
@@ -104,20 +104,20 @@ declare const Form: {
|
|
|
104
104
|
control,
|
|
105
105
|
children,
|
|
106
106
|
...props
|
|
107
|
-
}: FormRadioGroupProps):
|
|
107
|
+
}: FormRadioGroupProps): react_jsx_runtime18.JSX.Element;
|
|
108
108
|
displayName: string;
|
|
109
109
|
rules: {
|
|
110
110
|
required: (message?: string) => ZodEffects<z.ZodAny, any, any>;
|
|
111
111
|
};
|
|
112
112
|
};
|
|
113
113
|
Radio: {
|
|
114
|
-
(props: RadioProps):
|
|
114
|
+
(props: RadioProps): react_jsx_runtime18.JSX.Element;
|
|
115
115
|
displayName: string;
|
|
116
116
|
};
|
|
117
117
|
Textarea: {
|
|
118
118
|
({
|
|
119
119
|
...props
|
|
120
|
-
}: FormTextareaProps):
|
|
120
|
+
}: FormTextareaProps): react_jsx_runtime18.JSX.Element;
|
|
121
121
|
displayName: string;
|
|
122
122
|
rules: {
|
|
123
123
|
required: (message?: string, min?: number) => z.ZodString;
|
|
@@ -128,7 +128,7 @@ declare const Form: {
|
|
|
128
128
|
name,
|
|
129
129
|
control,
|
|
130
130
|
...props
|
|
131
|
-
}: FormSelectProps):
|
|
131
|
+
}: FormSelectProps): react_jsx_runtime18.JSX.Element;
|
|
132
132
|
displayName: string;
|
|
133
133
|
rules: {
|
|
134
134
|
required: (message?: string, defaultValue?: {
|
|
@@ -157,7 +157,7 @@ declare const Form: {
|
|
|
157
157
|
name,
|
|
158
158
|
control,
|
|
159
159
|
...props
|
|
160
|
-
}: FormDatePickerProps):
|
|
160
|
+
}: FormDatePickerProps): react_jsx_runtime18.JSX.Element;
|
|
161
161
|
displayName: string;
|
|
162
162
|
rules: {
|
|
163
163
|
required: (message?: string) => ZodEffects<z.ZodUnion<[z.ZodType<Date, z.ZodTypeDef, Date>, ZodEffects<z.ZodString, string, string>]>, string | Date, string | Date>;
|
|
@@ -168,7 +168,7 @@ declare const Form: {
|
|
|
168
168
|
control,
|
|
169
169
|
name,
|
|
170
170
|
...props
|
|
171
|
-
}: FormInputFileProps):
|
|
171
|
+
}: FormInputFileProps): react_jsx_runtime18.JSX.Element;
|
|
172
172
|
displayName: string;
|
|
173
173
|
rules: {
|
|
174
174
|
required: (message?: string, min?: number) => ZodEffects<z.ZodAny, any, any>;
|
|
@@ -177,7 +177,7 @@ declare const Form: {
|
|
|
177
177
|
InputPassword: {
|
|
178
178
|
({
|
|
179
179
|
...props
|
|
180
|
-
}: FormInputPasswordProps):
|
|
180
|
+
}: FormInputPasswordProps): react_jsx_runtime18.JSX.Element;
|
|
181
181
|
displayName: string;
|
|
182
182
|
rules: {
|
|
183
183
|
required: (message?: string) => z.ZodString;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime31 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/misc/horizontal-divider/HorizontalDivider.d.ts
|
|
4
4
|
type HorizontalDividerProps = {
|
|
@@ -9,7 +9,7 @@ type HorizontalDividerProps = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const HorizontalDivider: ({
|
|
11
11
|
classNames
|
|
12
|
-
}: HorizontalDividerProps) =>
|
|
12
|
+
}: HorizontalDividerProps) => react_jsx_runtime31.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { HorizontalDivider, HorizontalDividerProps };
|
|
15
15
|
//# sourceMappingURL=HorizontalDivider.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime30 from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/misc/visually-hidden/VisuallyHidden.d.ts
|
|
@@ -7,7 +7,7 @@ type VisuallyHiddenProps = {
|
|
|
7
7
|
};
|
|
8
8
|
declare const VisuallyHidden: ({
|
|
9
9
|
children
|
|
10
|
-
}: VisuallyHiddenProps) =>
|
|
10
|
+
}: VisuallyHiddenProps) => react_jsx_runtime30.JSX.Element;
|
|
11
11
|
//#endregion
|
|
12
12
|
export { VisuallyHidden, VisuallyHiddenProps };
|
|
13
13
|
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -19,10 +19,11 @@ import { Icon, IconProps } from "./components/data-display/icons/icon/Icon.js";
|
|
|
19
19
|
import { IconRaw, IconRawProps } from "./components/data-display/icons/icon-raw/IconRaw.js";
|
|
20
20
|
import { IconTheme, IconThemeProps } from "./components/data-display/icons/icon-theme/IconTheme.js";
|
|
21
21
|
import { Table } from "./components/data-display/tables/table/Table.js";
|
|
22
|
+
import { Tooltip, TooltipProps } from "./components/data-display/tooltip/Tooltip.js";
|
|
22
23
|
import { Form, FormProps } from "./components/forms/form/Form.js";
|
|
23
24
|
import { HorizontalDivider, HorizontalDividerProps } from "./components/misc/horizontal-divider/HorizontalDivider.js";
|
|
24
25
|
import { VisuallyHidden, VisuallyHiddenProps } from "./components/misc/visually-hidden/VisuallyHidden.js";
|
|
25
26
|
import { Breadcrumbs, BreadcrumbsProps } from "./components/navigation/breadcrumbs/Breadcrumbs.js";
|
|
26
27
|
import { Tabs, TabsProps } from "./components/navigation/tabs/Tabs.js";
|
|
27
28
|
import { MageUiProvider, MageUiProviderProps } from "./providers/MageUiProvider.js";
|
|
28
|
-
export { Avatar, AvatarProps, Badge, BadgeProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Combobox, ComboboxProps, DatePicker, DatePickerProps, Form, FormProps, HorizontalDivider, HorizontalDividerProps, Icon, IconProps, IconRaw, IconRawProps, IconTheme, IconThemeProps, InputFile, InputFileProps, InputPassword, InputPasswordProps, InputText, InputTextProps, MageUiProvider, MageUiProviderProps, Menu, MenuProps, MultiSwitch, MultiSwitchProps, Radio, RadioIcon, RadioIconProps, RadioProps, Select, SelectProps, Table, Tabs, TabsProps, Textarea, TextareaProps, VisuallyHidden, VisuallyHiddenProps };
|
|
29
|
+
export { Avatar, AvatarProps, Badge, BadgeProps, Breadcrumbs, BreadcrumbsProps, Button, ButtonIcon, ButtonIconProps, ButtonProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Combobox, ComboboxProps, DatePicker, DatePickerProps, Form, FormProps, HorizontalDivider, HorizontalDividerProps, Icon, IconProps, IconRaw, IconRawProps, IconTheme, IconThemeProps, InputFile, InputFileProps, InputPassword, InputPasswordProps, InputText, InputTextProps, MageUiProvider, MageUiProviderProps, Menu, MenuProps, MultiSwitch, MultiSwitchProps, Radio, RadioIcon, RadioIconProps, RadioProps, Select, SelectProps, Table, Tabs, TabsProps, Textarea, TextareaProps, Tooltip, TooltipProps, VisuallyHidden, VisuallyHiddenProps };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Button as e}from"./components/buttons/button/Button.js";import{Avatar as t}from"./components/data-display/avatar/Avatar.js";import{Badge as n}from"./components/data-display/badge/Badge.js";import{HorizontalDivider as r}from"./components/misc/horizontal-divider/HorizontalDivider.js";import{VisuallyHidden as i}from"./components/misc/visually-hidden/VisuallyHidden.js";import{Carousel as a}from"./components/data-display/carousel/Carousel.js";import{Icon as o}from"./components/data-display/icons/icon/Icon.js";import{IconRaw as s}from"./components/data-display/icons/icon-raw/IconRaw.js";import{IconTheme as c}from"./components/data-display/icons/icon-theme/IconTheme.js";import{Table as l}from"./components/data-display/tables/table/Table.js";import{
|
|
1
|
+
import{Button as e}from"./components/buttons/button/Button.js";import{Avatar as t}from"./components/data-display/avatar/Avatar.js";import{Badge as n}from"./components/data-display/badge/Badge.js";import{HorizontalDivider as r}from"./components/misc/horizontal-divider/HorizontalDivider.js";import{VisuallyHidden as i}from"./components/misc/visually-hidden/VisuallyHidden.js";import{Carousel as a}from"./components/data-display/carousel/Carousel.js";import{Icon as o}from"./components/data-display/icons/icon/Icon.js";import{IconRaw as s}from"./components/data-display/icons/icon-raw/IconRaw.js";import{IconTheme as c}from"./components/data-display/icons/icon-theme/IconTheme.js";import{Table as l}from"./components/data-display/tables/table/Table.js";import{Tooltip as u}from"./components/data-display/tooltip/Tooltip.js";import{ButtonIcon as d}from"./components/buttons/button-icon/ButtonIcon.js";import{Checkbox as f}from"./components/controls/checkbox/Checkbox.js";import{DatePicker as p}from"./components/controls/date-picker/DatePicker.js";import{Combobox as m}from"./components/controls/dropdown/Combobox.js";import{Menu as h}from"./components/controls/dropdown/Menu.js";import{Select as g}from"./components/controls/dropdown/Select.js";import{InputFile as _}from"./components/controls/input-file/InputFile.js";import{InputPassword as v}from"./components/controls/input-password/InputPassword.js";import{InputText as y}from"./components/controls/input-text/InputText.js";import{MultiSwitch as b}from"./components/controls/multi-switch/MultiSwitch.js";import{Radio as x}from"./components/controls/radio/Radio.js";import{RadioIcon as S}from"./components/controls/radio/RadioIcon.js";import{Textarea as C}from"./components/controls/textarea/Textarea.js";import{Form as w}from"./components/forms/form/Form.js";import{Breadcrumbs as T}from"./components/navigation/breadcrumbs/Breadcrumbs.js";import{Tabs as E}from"./components/navigation/tabs/Tabs.js";import{MageUiProvider as D}from"./providers/MageUiProvider.js";export{t as Avatar,n as Badge,T as Breadcrumbs,e as Button,d as ButtonIcon,a as Carousel,f as Checkbox,m as Combobox,p as DatePicker,w as Form,r as HorizontalDivider,o as Icon,s as IconRaw,c as IconTheme,_ as InputFile,v as InputPassword,y as InputText,D as MageUiProvider,h as Menu,b as MultiSwitch,x as Radio,S as RadioIcon,g as Select,l as Table,E as Tabs,C as Textarea,u as Tooltip,i as VisuallyHidden};
|
package/dist/panda.json
CHANGED
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
"srOnly]___[value:true",
|
|
46
46
|
"position]___[value:bottom-start",
|
|
47
47
|
"width]___[value:auto",
|
|
48
|
+
"width]___[value:target",
|
|
48
49
|
"backgroundColor]___[value:neutral.background.1.enabled",
|
|
49
50
|
"backgroundColor]___[value:primary.background.4.hovered]___[cond:_hover",
|
|
50
51
|
"backgroundColor]___[value:primary.background.5.enabled]___[cond:_active",
|
|
@@ -221,6 +222,9 @@
|
|
|
221
222
|
"carouselControl": [],
|
|
222
223
|
"carouselIndicators": [],
|
|
223
224
|
"carouselIndicator": [],
|
|
225
|
+
"tooltip": [],
|
|
226
|
+
"tooltipRoot": [],
|
|
227
|
+
"tooltipArrow": [],
|
|
224
228
|
"horizontalDivider": [],
|
|
225
229
|
"horizontalDividerRoot": [
|
|
226
230
|
"color]___[value:neutral]___[recipe:horizontalDividerRoot"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mage-ui/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.60",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"rimraf": "^6.0.1",
|
|
27
27
|
"tsdown": "^0.15.6",
|
|
28
28
|
"typescript": "^5.9.3",
|
|
29
|
-
"@mage-ui/preset": "0.0.
|
|
30
|
-
"@mage-ui/styled-system": "0.0.
|
|
29
|
+
"@mage-ui/preset": "0.0.60",
|
|
30
|
+
"@mage-ui/styled-system": "0.0.60"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@hookform/resolvers": "^5.2.2",
|