softable-pixels-web 1.2.3 → 1.2.4
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/{Breadcrumb-Bm9YuwCq.js → Breadcrumb-Bxd_E7ov.js} +2 -2
- package/dist/{Breadcrumb-Bm9YuwCq.js.map → Breadcrumb-Bxd_E7ov.js.map} +1 -1
- package/dist/{Button-BgsYjAC1.js → Button-B8fUoKUH.js} +2 -2
- package/dist/{Button-BgsYjAC1.js.map → Button-B8fUoKUH.js.map} +1 -1
- package/dist/{CheckItem-3d-2-qZe.js → CheckItem-BtcT3Qu0.js} +2 -2
- package/dist/{CheckItem-3d-2-qZe.js.map → CheckItem-BtcT3Qu0.js.map} +1 -1
- package/dist/{Checkbox-aFsrig0i.js → Checkbox-Oy1RP6NR.js} +2 -2
- package/dist/{Checkbox-aFsrig0i.js.map → Checkbox-Oy1RP6NR.js.map} +1 -1
- package/dist/{Chip-DWoGbX_A.js → Chip-DzHP3iyU.js} +2 -2
- package/dist/{Chip-DWoGbX_A.js.map → Chip-DzHP3iyU.js.map} +1 -1
- package/dist/{ChipList-ClC-BPyL.js → ChipList-Csyg7DJ2.js} +3 -3
- package/dist/{ChipList-ClC-BPyL.js.map → ChipList-Csyg7DJ2.js.map} +1 -1
- package/dist/{ColorPicker-BVmUDE-h.js → ColorPicker-DSGLaSWK.js} +2 -2
- package/dist/{ColorPicker-BVmUDE-h.js.map → ColorPicker-DSGLaSWK.js.map} +1 -1
- package/dist/{ContextMenu-B8mGn0Fq.js → ContextMenu-Dpmf4SgX.js} +2 -2
- package/dist/{ContextMenu-B8mGn0Fq.js.map → ContextMenu-Dpmf4SgX.js.map} +1 -1
- package/dist/{ErrorMessage-BRnYfudz.js → ErrorMessage-CGFZglzN.js} +2 -2
- package/dist/{ErrorMessage-BRnYfudz.js.map → ErrorMessage-CGFZglzN.js.map} +1 -1
- package/dist/{InfoSummary-p7hgSIZn.js → InfoSummary-BVOiGuug.js} +2 -2
- package/dist/{InfoSummary-p7hgSIZn.js.map → InfoSummary-BVOiGuug.js.map} +1 -1
- package/dist/{Input-Dam9Lbxf.js → Input-CYBXA7Ju.js} +2 -2
- package/dist/{Input-Dam9Lbxf.js.map → Input-CYBXA7Ju.js.map} +1 -1
- package/dist/{Select-BR9OSXHF.js → Select-hia3M0E1.js} +3 -3
- package/dist/{Select-BR9OSXHF.js.map → Select-hia3M0E1.js.map} +1 -1
- package/dist/{TabSwitch-D6KaP0z5.js → TabSwitch-CAxR1ipv.js} +2 -2
- package/dist/{TabSwitch-D6KaP0z5.js.map → TabSwitch-CAxR1ipv.js.map} +1 -1
- package/dist/{TextArea-D9kGofdD.js → TextArea-B0rRWXsg.js} +3 -3
- package/dist/{TextArea-D9kGofdD.js.map → TextArea-B0rRWXsg.js.map} +1 -1
- package/dist/{Typography-BTJk47bm.js → Typography-gvXwbYdT.js} +27 -19
- package/dist/Typography-gvXwbYdT.js.map +1 -0
- package/dist/breadcrumb.js +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/button.js +2 -2
- package/dist/check-item.js +2 -2
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.js +2 -2
- package/dist/chip-list.js +4 -4
- package/dist/chip.js +2 -2
- package/dist/color-picker.js +3 -3
- package/dist/context-menu.d.ts +1 -1
- package/dist/context-menu.js +2 -2
- package/dist/{index-B-f7Shgf.d.ts → index-BZ2ZYR1Y.d.ts} +3 -3
- package/dist/{index-CJDqp_om.d.ts → index-Bg-qBbvL.d.ts} +2 -2
- package/dist/{index-By2y-Zjz.d.ts → index-BwxZG9_q.d.ts} +2 -2
- package/dist/{index-BdXsHz33.d.ts → index-CehwJRt_.d.ts} +3 -3
- package/dist/{index-B_xvhcYY.d.ts → index-ChkulgEl.d.ts} +3 -3
- package/dist/{index-wFIuQoWm.d.ts → index-DCocNerH.d.ts} +2 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.js +15 -15
- package/dist/info-summary.js +2 -2
- package/dist/input.js +3 -3
- package/dist/select.js +3 -3
- package/dist/tab-switch.d.ts +1 -1
- package/dist/tab-switch.js +2 -2
- package/dist/text-area.d.ts +1 -1
- package/dist/text-area.js +3 -3
- package/dist/theme-context.d.ts +1 -1
- package/dist/{types-n-gj1UXJ.d.ts → types-oQ4y-S7G.d.ts} +21 -15
- package/dist/typography.d.ts +3 -3
- package/dist/typography.js +1 -1
- package/package.json +1 -1
- package/dist/Typography-BTJk47bm.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as CommonStyleProps } from "./styleProps-CrD6h1FM.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/commons/toolkit/TabSwitch/styles.d.ts
|
|
6
6
|
declare function createTabSwitchStyles<T>(props: TabSwitchProps<T>): {
|
|
@@ -41,7 +41,7 @@ interface TabSwitchProps<T> extends CommonStyleProps {
|
|
|
41
41
|
}
|
|
42
42
|
//#endregion
|
|
43
43
|
//#region src/components/commons/toolkit/TabSwitch/index.d.ts
|
|
44
|
-
declare const TabSwitch: <T>(props: TabSwitchProps<T>) =>
|
|
44
|
+
declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime0.JSX.Element;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
|
|
47
|
-
//# sourceMappingURL=index-
|
|
47
|
+
//# sourceMappingURL=index-BZ2ZYR1Y.d.ts.map
|
|
@@ -94,7 +94,7 @@ interface ThemeTokens {
|
|
|
94
94
|
background: {
|
|
95
95
|
/** Main page background */
|
|
96
96
|
primary: string;
|
|
97
|
-
/**
|
|
97
|
+
/** Skeleton background */
|
|
98
98
|
skeleton: string;
|
|
99
99
|
/** Card background */
|
|
100
100
|
card: {
|
|
@@ -294,4 +294,4 @@ declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
|
294
294
|
declare function useTheme(): ThemeContextData;
|
|
295
295
|
//#endregion
|
|
296
296
|
export { ThemeName as a, ThemeRegistry as c, ThemeMode as i, ThemeTokens as l, useTheme as n, ThemePersistence as o, ThemeContextData as r, ThemeProviderProps as s, ThemeProvider as t };
|
|
297
|
-
//# sourceMappingURL=index-
|
|
297
|
+
//# sourceMappingURL=index-Bg-qBbvL.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TypographyVariant } from "./types-
|
|
1
|
+
import { n as TypographyVariant } from "./types-oQ4y-S7G.js";
|
|
2
2
|
import React$1 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/commons/toolkit/Checkbox/types.d.ts
|
|
@@ -26,4 +26,4 @@ interface CheckboxProps {
|
|
|
26
26
|
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
27
27
|
//#endregion
|
|
28
28
|
export { Checkbox as t };
|
|
29
|
-
//# sourceMappingURL=index-
|
|
29
|
+
//# sourceMappingURL=index-BwxZG9_q.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as TextProps } from "./styleProps-CrD6h1FM.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime1 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/commons/inputs/TextArea/styles.d.ts
|
|
5
5
|
declare function createTextAreaStyles(props: TextAreaProps): {
|
|
@@ -65,7 +65,7 @@ interface TextAreaProps {
|
|
|
65
65
|
}
|
|
66
66
|
//#endregion
|
|
67
67
|
//#region src/components/commons/inputs/TextArea/index.d.ts
|
|
68
|
-
declare const TextArea: (props: TextAreaProps) =>
|
|
68
|
+
declare const TextArea: (props: TextAreaProps) => react_jsx_runtime1.JSX.Element;
|
|
69
69
|
//#endregion
|
|
70
70
|
export { TextArea as t };
|
|
71
|
-
//# sourceMappingURL=index-
|
|
71
|
+
//# sourceMappingURL=index-CehwJRt_.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as Placement } from "./types-Cr3L1i9Q.js";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/components/commons/toolkit/ContextMenu/styles.d.ts
|
|
6
6
|
declare function createContextMenuStyles<T>(_props: ContextMenuProps<T>): {
|
|
@@ -67,7 +67,7 @@ interface ContextMenuProps<T> {
|
|
|
67
67
|
}
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/components/commons/toolkit/ContextMenu/index.d.ts
|
|
70
|
-
declare const ContextMenu: <T extends string>(props: ContextMenuProps<T>) =>
|
|
70
|
+
declare const ContextMenu: <T extends string>(props: ContextMenuProps<T>) => react_jsx_runtime0.JSX.Element;
|
|
71
71
|
//#endregion
|
|
72
72
|
export { types_d_exports as n, ContextMenu as t };
|
|
73
|
-
//# sourceMappingURL=index-
|
|
73
|
+
//# sourceMappingURL=index-ChkulgEl.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as PaddingProps, n as LayoutProps } from "./styleProps-CrD6h1FM.js";
|
|
2
2
|
import { i as TypeStyles } from "./useThemedStyles-0XwrILh9.js";
|
|
3
|
-
import { n as TypographyVariant } from "./types-
|
|
3
|
+
import { n as TypographyVariant } from "./types-oQ4y-S7G.js";
|
|
4
4
|
import React, { MouseEvent, ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/commons/buttons/Button/styles.d.ts
|
|
@@ -123,4 +123,4 @@ interface ButtonProps extends PaddingProps, LayoutProps {
|
|
|
123
123
|
declare const Button: React.FC<ButtonProps>;
|
|
124
124
|
//#endregion
|
|
125
125
|
export { Button as t };
|
|
126
|
-
//# sourceMappingURL=index-
|
|
126
|
+
//# sourceMappingURL=index-DCocNerH.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Button } from "./index-
|
|
1
|
+
import "./types-oQ4y-S7G.js";
|
|
2
|
+
import { t as Button } from "./index-DCocNerH.js";
|
|
3
3
|
import { t as IconButton } from "./index-DsQyEI6l.js";
|
|
4
4
|
import { n as types_d_exports$1, t as ColorPicker } from "./index-v28FA4ph.js";
|
|
5
5
|
import { n as Locale, r as MaskType, t as MaskModule } from "./index-C2rKLkDO.js";
|
|
6
6
|
import { t as Input } from "./index-B9Ooz6lk.js";
|
|
7
7
|
import { n as types_d_exports$4, t as Select } from "./index-CNPbAm9i.js";
|
|
8
8
|
import { n as types_d_exports$3 } from "./types-B-zFTnqe.js";
|
|
9
|
-
import { t as TextArea } from "./index-
|
|
9
|
+
import { t as TextArea } from "./index-CehwJRt_.js";
|
|
10
10
|
import { t as Popover } from "./index-BbvC10jX.js";
|
|
11
11
|
import { t as BasePopover } from "./index-DvbYyCcE.js";
|
|
12
12
|
import { t as Breadcrumb } from "./index-XBmzyFW4.js";
|
|
13
13
|
import { t as Skeleton } from "./index-B9PAov_V.js";
|
|
14
14
|
import { t as CheckItem } from "./index-IIjo6avX.js";
|
|
15
|
-
import { t as Checkbox } from "./index-
|
|
15
|
+
import { t as Checkbox } from "./index-BwxZG9_q.js";
|
|
16
16
|
import { r as types_d_exports } from "./types-B4Yk1AUa.js";
|
|
17
17
|
import { Chip } from "./chip.js";
|
|
18
18
|
import { t as ChipList } from "./index-Du2b4ABa.js";
|
|
19
|
-
import { n as types_d_exports$2, t as ContextMenu } from "./index-
|
|
19
|
+
import { n as types_d_exports$2, t as ContextMenu } from "./index-ChkulgEl.js";
|
|
20
20
|
import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
|
|
21
21
|
import { t as Switch } from "./index-BEd1qAu7.js";
|
|
22
|
-
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-
|
|
22
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-BZ2ZYR1Y.js";
|
|
23
23
|
import { Typography } from "./typography.js";
|
|
24
|
-
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-
|
|
24
|
+
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-Bg-qBbvL.js";
|
|
25
25
|
import { useDismiss } from "./use-dismiss.js";
|
|
26
26
|
import { AnchorLike, useFloating } from "./use-floating.js";
|
|
27
27
|
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
package/dist/index.js
CHANGED
|
@@ -4,27 +4,27 @@ import { t as useDismiss } from "./useDismiss-w2spkFNN.js";
|
|
|
4
4
|
import { t as useFloating } from "./useFloating-BkMrolmn.js";
|
|
5
5
|
import { n as types_exports$3, t as Popover } from "./Popover-tzAZp6V7.js";
|
|
6
6
|
import "./Icon-CV5fAqK7.js";
|
|
7
|
-
import { t as Typography } from "./Typography-
|
|
8
|
-
import { t as Checkbox } from "./Checkbox-
|
|
7
|
+
import { t as Typography } from "./Typography-gvXwbYdT.js";
|
|
8
|
+
import { t as Checkbox } from "./Checkbox-Oy1RP6NR.js";
|
|
9
9
|
import { n as useTheme, t as ThemeProvider } from "./ThemeContext-C9llUBqb.js";
|
|
10
|
-
import { t as TabSwitch } from "./TabSwitch-
|
|
11
|
-
import { t as CheckItem } from "./CheckItem-
|
|
12
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
10
|
+
import { t as TabSwitch } from "./TabSwitch-CAxR1ipv.js";
|
|
11
|
+
import { t as CheckItem } from "./CheckItem-BtcT3Qu0.js";
|
|
12
|
+
import { t as InfoSummary } from "./InfoSummary-BVOiGuug.js";
|
|
13
13
|
import { t as BasePopover } from "./BasePopover-m1OfX3fO.js";
|
|
14
|
-
import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-
|
|
15
|
-
import { n as types_exports, t as Chip } from "./Chip-
|
|
16
|
-
import "./ErrorMessage-
|
|
17
|
-
import { t as ChipList } from "./ChipList-
|
|
14
|
+
import { n as types_exports$2, t as ContextMenu } from "./ContextMenu-Dpmf4SgX.js";
|
|
15
|
+
import { n as types_exports, t as Chip } from "./Chip-DzHP3iyU.js";
|
|
16
|
+
import "./ErrorMessage-CGFZglzN.js";
|
|
17
|
+
import { t as ChipList } from "./ChipList-Csyg7DJ2.js";
|
|
18
18
|
import "./Loader-DUqRFMzl.js";
|
|
19
|
-
import { t as Button } from "./Button-
|
|
19
|
+
import { t as Button } from "./Button-B8fUoKUH.js";
|
|
20
20
|
import { t as IconButton } from "./IconButton-BkwXYUL1.js";
|
|
21
21
|
import { n as MaskType, r as MaskModule, t as Locale } from "./MaskModule-ChyYaHh2.js";
|
|
22
|
-
import { t as Input } from "./Input-
|
|
23
|
-
import { n as types_exports$4, t as Select } from "./Select-
|
|
24
|
-
import { t as TextArea } from "./TextArea-
|
|
25
|
-
import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-
|
|
22
|
+
import { t as Input } from "./Input-CYBXA7Ju.js";
|
|
23
|
+
import { n as types_exports$4, t as Select } from "./Select-hia3M0E1.js";
|
|
24
|
+
import { t as TextArea } from "./TextArea-B0rRWXsg.js";
|
|
25
|
+
import { n as types_exports$1, t as ColorPicker } from "./ColorPicker-DSGLaSWK.js";
|
|
26
26
|
import { t as Skeleton } from "./Skeleton-iCdZ2Gai.js";
|
|
27
27
|
import { useVirtualAnchor } from "./use-virtual-anchor.js";
|
|
28
|
-
import { t as Breadcrumb } from "./Breadcrumb-
|
|
28
|
+
import { t as Breadcrumb } from "./Breadcrumb-Bxd_E7ov.js";
|
|
29
29
|
|
|
30
30
|
export { BasePopover, Breadcrumb, Button, CheckItem, Checkbox, Chip, ChipList, types_exports as ChipTypes, ColorPicker, types_exports$1 as ColorPickerTypes, ContextMenu, types_exports$2 as ContextMenuTypes, IconButton, InfoSummary, Input, Locale, MaskModule, MaskType, Popover, types_exports$3 as PopoverTypes, Select, types_exports$4 as SelectTypes, Skeleton, Switch, TabSwitch, TextArea, ThemeProvider, Typography, useDismiss, useFloating, useTheme, useVirtualAnchor };
|
package/dist/info-summary.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./useThemedStyles-CV4ryZLN.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import { t as InfoSummary } from "./InfoSummary-
|
|
2
|
+
import "./Typography-gvXwbYdT.js";
|
|
3
|
+
import { t as InfoSummary } from "./InfoSummary-BVOiGuug.js";
|
|
4
4
|
|
|
5
5
|
export { InfoSummary };
|
package/dist/input.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./useThemedStyles-CV4ryZLN.js";
|
|
2
2
|
import "./Icon-CV5fAqK7.js";
|
|
3
|
-
import "./Typography-
|
|
4
|
-
import "./ErrorMessage-
|
|
3
|
+
import "./Typography-gvXwbYdT.js";
|
|
4
|
+
import "./ErrorMessage-CGFZglzN.js";
|
|
5
5
|
import "./MaskModule-ChyYaHh2.js";
|
|
6
|
-
import { t as Input } from "./Input-
|
|
6
|
+
import { t as Input } from "./Input-CYBXA7Ju.js";
|
|
7
7
|
|
|
8
8
|
export { Input };
|
package/dist/select.js
CHANGED
|
@@ -3,10 +3,10 @@ import "./useDismiss-w2spkFNN.js";
|
|
|
3
3
|
import "./useFloating-BkMrolmn.js";
|
|
4
4
|
import "./Popover-tzAZp6V7.js";
|
|
5
5
|
import "./Icon-CV5fAqK7.js";
|
|
6
|
-
import "./Typography-
|
|
6
|
+
import "./Typography-gvXwbYdT.js";
|
|
7
7
|
import "./BasePopover-m1OfX3fO.js";
|
|
8
|
-
import "./ErrorMessage-
|
|
8
|
+
import "./ErrorMessage-CGFZglzN.js";
|
|
9
9
|
import "./Loader-DUqRFMzl.js";
|
|
10
|
-
import { n as types_exports, t as Select } from "./Select-
|
|
10
|
+
import { n as types_exports, t as Select } from "./Select-hia3M0E1.js";
|
|
11
11
|
|
|
12
12
|
export { Select, types_exports as SelectTypes };
|
package/dist/tab-switch.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-
|
|
1
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-BZ2ZYR1Y.js";
|
|
2
2
|
export { SwitchOption, TabSwitch, TabSwitchProps };
|
package/dist/tab-switch.js
CHANGED
package/dist/text-area.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as TextArea } from "./index-
|
|
1
|
+
import { t as TextArea } from "./index-CehwJRt_.js";
|
|
2
2
|
export { TextArea };
|
package/dist/text-area.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./useThemedStyles-CV4ryZLN.js";
|
|
2
|
-
import "./Typography-
|
|
3
|
-
import "./ErrorMessage-
|
|
4
|
-
import { t as TextArea } from "./TextArea-
|
|
2
|
+
import "./Typography-gvXwbYdT.js";
|
|
3
|
+
import "./ErrorMessage-CGFZglzN.js";
|
|
4
|
+
import { t as TextArea } from "./TextArea-B0rRWXsg.js";
|
|
5
5
|
|
|
6
6
|
export { TextArea };
|
package/dist/theme-context.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-
|
|
1
|
+
import { a as ThemeName, c as ThemeRegistry, i as ThemeMode, l as ThemeTokens, n as useTheme, o as ThemePersistence, r as ThemeContextData, s as ThemeProviderProps, t as ThemeProvider } from "./index-Bg-qBbvL.js";
|
|
2
2
|
export { ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, useTheme };
|
|
@@ -1,38 +1,44 @@
|
|
|
1
1
|
import { a as TextProps, r as MarginProps } from "./styleProps-CrD6h1FM.js";
|
|
2
2
|
import { i as TypeStyles, t as SlotStyle } from "./useThemedStyles-0XwrILh9.js";
|
|
3
|
-
import { ElementType,
|
|
3
|
+
import { ElementType, PropsWithChildren } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/commons/toolkit/Typography/style.d.ts
|
|
6
6
|
declare function createTypographyStyles(props: TypographyProps): {
|
|
7
|
-
base: {
|
|
8
|
-
display: "flex";
|
|
9
|
-
flexDirection: "row";
|
|
10
|
-
alignItems: "center";
|
|
11
|
-
borderBottom: string;
|
|
12
|
-
gap: number;
|
|
13
|
-
animation: "animate-pulse 1.5s infinite" | undefined;
|
|
14
|
-
};
|
|
15
7
|
loading: {
|
|
16
8
|
width: string;
|
|
17
|
-
height: string;
|
|
18
9
|
display: "inline-block";
|
|
19
|
-
backgroundColor: "var(--pixel-gray-300, #d1d5db)";
|
|
20
10
|
borderRadius: string;
|
|
11
|
+
background: string;
|
|
12
|
+
backgroundSize: string;
|
|
13
|
+
animation: "gradient 3s ease infinite";
|
|
14
|
+
color: "transparent";
|
|
15
|
+
__keyframes: {
|
|
16
|
+
gradient: {
|
|
17
|
+
'0%': {
|
|
18
|
+
backgroundPosition: string;
|
|
19
|
+
};
|
|
20
|
+
'50%': {
|
|
21
|
+
backgroundPosition: string;
|
|
22
|
+
};
|
|
23
|
+
'100%': {
|
|
24
|
+
backgroundPosition: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
21
28
|
};
|
|
22
29
|
text: SlotStyle;
|
|
23
30
|
};
|
|
24
31
|
//#endregion
|
|
25
32
|
//#region src/components/commons/toolkit/Typography/types.d.ts
|
|
26
|
-
interface TypographyProps extends TextProps, MarginProps {
|
|
33
|
+
interface TypographyProps extends TextProps, MarginProps, PropsWithChildren {
|
|
27
34
|
variant: TypographyVariant;
|
|
28
35
|
id?: string;
|
|
29
36
|
href?: string;
|
|
30
37
|
as?: ElementType;
|
|
31
|
-
children: ReactNode;
|
|
32
38
|
align?: TextAlign;
|
|
33
39
|
color?: string;
|
|
34
40
|
isLoading?: boolean;
|
|
35
|
-
|
|
41
|
+
placeholderSize?: number;
|
|
36
42
|
className?: string;
|
|
37
43
|
styles?: TypeStyles<typeof createTypographyStyles>;
|
|
38
44
|
}
|
|
@@ -40,4 +46,4 @@ type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
|
40
46
|
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'b1' | 'b2' | 'b3' | 'caption' | 'legal';
|
|
41
47
|
//#endregion
|
|
42
48
|
export { TypographyVariant as n, TypographyProps as t };
|
|
43
|
-
//# sourceMappingURL=types-
|
|
49
|
+
//# sourceMappingURL=types-oQ4y-S7G.d.ts.map
|
package/dist/typography.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as TypographyProps } from "./types-
|
|
2
|
-
import
|
|
1
|
+
import { t as TypographyProps } from "./types-oQ4y-S7G.js";
|
|
2
|
+
import React from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/commons/toolkit/Typography/index.d.ts
|
|
5
|
-
declare
|
|
5
|
+
declare const Typography: React.FC<TypographyProps>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Typography };
|
|
8
8
|
//# sourceMappingURL=typography.d.ts.map
|
package/dist/typography.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Typography-BTJk47bm.js","names":["typographyVariants: Record<TypographyVariant, SlotStyle>","variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n>","alignText: Record<TextAlign, SlotStyle>"],"sources":["../src/components/commons/toolkit/Typography/config.ts","../src/components/commons/toolkit/Typography/style.ts","../src/components/commons/toolkit/Typography/index.tsx"],"sourcesContent":["// External Libraries\nimport type { JSX } from 'react'\n\n// Types\nimport type { TextAlign, TypographyVariant } from './types'\nimport { type SlotStyle, WEIGHTS } from '@hooks/useThemedStyles/types'\n\nconst primaryColor = 'var(--px-text-primary)'\nconst secondaryColor = 'var(--px-text-secondary)'\n\nexport const typographyVariants: Record<TypographyVariant, SlotStyle> = {\n h1: {\n fontSize: '3rem',\n fontWeight: '700',\n lineHeight: WEIGHTS.bold,\n color: primaryColor\n },\n h2: {\n fontSize: '2.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.5 / 2.25)',\n color: primaryColor\n },\n h3: {\n fontSize: '1.875rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2.25 / 1.875)',\n color: primaryColor\n },\n h4: {\n fontSize: '1.5rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(2 / 1.5)',\n color: primaryColor\n },\n h5: {\n fontSize: '1.25rem',\n fontWeight: WEIGHTS.bold,\n lineHeight: 'calc(1.75 / 1.25)',\n color: primaryColor\n },\n b1: {\n fontSize: '1rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: '1.5',\n color: primaryColor\n },\n b2: {\n fontSize: '0.875rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1.25 / 0.875)',\n color: secondaryColor\n },\n b3: {\n fontSize: '0.75rem',\n fontWeight: WEIGHTS.medium,\n lineHeight: 'calc(1 / 0.75)',\n color: secondaryColor\n },\n caption: {\n fontSize: '0.65rem',\n fontWeight: WEIGHTS.regular,\n lineHeight: 'calc(1 / 0.65)',\n color: secondaryColor\n },\n legal: {\n fontSize: '0.65rem',\n lineHeight: 'calc(1 / 0.65)',\n fontWeight: WEIGHTS.light,\n textTransform: 'uppercase',\n letterSpacing: '0.025em',\n color: secondaryColor\n }\n}\n\nexport const variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n> = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n b1: 'p',\n b2: 'p',\n b3: 'p',\n caption: 'span',\n legal: 'span'\n}\n\nexport const alignText: Record<TextAlign, SlotStyle> = {\n left: { textAlign: 'left' },\n center: { textAlign: 'center' },\n right: { textAlign: 'right' },\n justify: { textAlign: 'justify' }\n}\n","// Utils\nimport { alignText, typographyVariants } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\nimport { type SlotStyle, styled } from '@hooks/useThemedStyles/types'\n\nexport function createTypographyStyles(props: TypographyProps) {\n const { isLoading, variant, align = 'left', color } = props\n\n return styled({\n base: {\n display: 'flex',\n flexDirection: 'row',\n alignItems: 'center',\n borderBottom: '1px solid var(--pixel-border, #e5e7eb)',\n gap: 0,\n animation: isLoading ? 'animate-pulse 1.5s infinite' : undefined\n },\n\n loading: {\n width: '50%',\n height: '1em',\n display: 'inline-block',\n backgroundColor: 'var(--pixel-gray-300, #d1d5db)',\n borderRadius: '0.25rem'\n },\n\n text: {\n ...alignText[align],\n ...typographyVariants[variant],\n color: color ?? typographyVariants[variant].color\n } as SlotStyle\n })\n}\n","// Utils\nimport { variantToElement } from './config'\n\n// Types\nimport type { TypographyProps } from './types'\n\n// Hooks\nimport { useThemedStyles } from '@hooks/useThemedStyles'\n\n// Styles\nimport { createTypographyStyles } from './style'\n\nexport function Typography(props: TypographyProps) {\n const {\n id,\n as,\n href,\n variant,\n children,\n className,\n placeholder,\n isLoading = false,\n styles: styleTypography\n } = props\n\n const { styles } = useThemedStyles(props, createTypographyStyles, {\n pick: p => [p.isLoading, p.variant, p.align, p.color],\n commonSlot: 'text',\n applyCommonProps: true,\n override: styleTypography\n })\n\n const Component = as ?? variantToElement[variant]\n\n if (isLoading) {\n return (\n <span\n id={id}\n aria-hidden=\"true\"\n role=\"presentation\"\n style={{ ...styles.text, ...styles.loading }}\n />\n )\n }\n\n const sharedProps = {\n id,\n style: styles.text,\n 'aria-label': placeholder,\n className\n }\n\n if (href) {\n return (\n <a href={href} {...sharedProps}>\n {children}\n </a>\n )\n }\n\n return <Component {...sharedProps}>{children}</Component>\n}\n"],"mappings":";;;;AAOA,MAAM,eAAe;AACrB,MAAM,iBAAiB;AAEvB,MAAaA,qBAA2D;CACtE,IAAI;EAC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