softable-pixels-web 1.0.7 → 1.1.0
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/{Button-B9tDbn4Q.js → Button-nrM-Dn6T.js} +20 -12
- package/dist/Button-nrM-Dn6T.js.map +1 -0
- package/dist/{CheckItem-CBzbinCc.js → CheckItem-Cr8YZFKe.js} +6 -5
- package/dist/CheckItem-Cr8YZFKe.js.map +1 -0
- package/dist/{Checkbox-l_SA4qUE.js → Checkbox-BRAE-Kg-.js} +8 -7
- package/dist/Checkbox-BRAE-Kg-.js.map +1 -0
- package/dist/{Icon-BrLGgg0w.js → Icon-7fQw74zg.js} +4 -4
- package/dist/{Icon-BrLGgg0w.js.map → Icon-7fQw74zg.js.map} +1 -1
- package/dist/IconButton-B7-l2DTb.js +81 -0
- package/dist/IconButton-B7-l2DTb.js.map +1 -0
- package/dist/{InfoSummary-CHRfCc3v.js → InfoSummary-D2ER39sF.js} +13 -12
- package/dist/InfoSummary-D2ER39sF.js.map +1 -0
- package/dist/{Input-CUZNjGoG.js → Input-BR3ZaetX.js} +8 -7
- package/dist/Input-BR3ZaetX.js.map +1 -0
- package/dist/{Label-BVteAeiK.js → Label-1Gh2DlKl.js} +5 -4
- package/dist/Label-1Gh2DlKl.js.map +1 -0
- package/dist/{TabSwitch-DRs6-76U.js → TabSwitch-Ce-uQvRp.js} +8 -11
- package/dist/TabSwitch-Ce-uQvRp.js.map +1 -0
- package/dist/{TextArea-ZKDCCx4I.js → TextArea-BsErpaMx.js} +7 -6
- package/dist/TextArea-BsErpaMx.js.map +1 -0
- package/dist/{ThemeContext-BQQnMo5F.js → ThemeContext-BsU2ZyE5.js} +52 -90
- package/dist/ThemeContext-BsU2ZyE5.js.map +1 -0
- package/dist/Typography-CKXLkfw7.js +148 -0
- package/dist/Typography-CKXLkfw7.js.map +1 -0
- package/dist/button.d.ts +2 -2
- package/dist/button.js +3 -2
- package/dist/check-item.d.ts +1 -1
- package/dist/check-item.js +4 -3
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.js +4 -3
- package/dist/icon-button.d.ts +2 -0
- package/dist/icon-button.js +4 -0
- package/dist/index-BYZm15m2.d.ts +26 -0
- package/dist/{index-CXR_rnK-.d.ts → index-BrVPSHH2.d.ts} +11 -11
- package/dist/{index-Cbt7nYQB.d.ts → index-C181qAfZ.d.ts} +3 -2
- package/dist/{index-H8VYQre4.d.ts → index-CIxyqe-m.d.ts} +4 -13
- package/dist/{index-CqAWI5LI.d.ts → index-Da42fqu3.d.ts} +2 -2
- package/dist/{index-x_PYKZgv.d.ts → index-R-Kb8ovB.d.ts} +48 -3
- package/dist/{index-CADs9cEh.d.ts → index-akSk71wZ.d.ts} +1 -1
- package/dist/{index-BvkboQOE.d.ts → index-v4w-T_f6.d.ts} +14 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.js +14 -12
- package/dist/info-summary.js +3 -2
- package/dist/input.d.ts +2 -2
- package/dist/input.js +5 -4
- package/dist/styleProps-7WdaXgmQ.d.ts +39 -0
- package/dist/tab-switch.d.ts +1 -1
- package/dist/tab-switch.js +3 -2
- package/dist/text-area.d.ts +2 -2
- package/dist/text-area.js +5 -4
- package/dist/theme-context.d.ts +1 -1
- package/dist/theme-context.js +3 -1
- package/dist/{types-_ZbgGCjb.d.ts → types-CdA3IIV2.d.ts} +4 -3
- package/dist/typography.d.ts +1 -1
- package/dist/typography.js +2 -1
- package/dist/{Typography-BaE9Y1O8.js → useThemedStyles-68D71Lua.js} +30 -159
- package/dist/useThemedStyles-68D71Lua.js.map +1 -0
- package/dist/{useThemedStyles-_SsqjB7Q.d.ts → useThemedStyles-CXoofBTv.d.ts} +10 -39
- package/package.json +8 -1
- package/dist/Button-B9tDbn4Q.js.map +0 -1
- package/dist/CheckItem-CBzbinCc.js.map +0 -1
- package/dist/Checkbox-l_SA4qUE.js.map +0 -1
- package/dist/InfoSummary-CHRfCc3v.js.map +0 -1
- package/dist/Input-CUZNjGoG.js.map +0 -1
- package/dist/Label-BVteAeiK.js.map +0 -1
- package/dist/TabSwitch-DRs6-76U.js.map +0 -1
- package/dist/TextArea-ZKDCCx4I.js.map +0 -1
- package/dist/ThemeContext-BQQnMo5F.js.map +0 -1
- package/dist/Typography-BaE9Y1O8.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Typography-CKXLkfw7.js","names":["typographyVariants: Record<TypographyVariant, CSSProperties>","variantToElement: Record<\n TypographyVariant,\n keyof JSX.IntrinsicElements\n>","alignText: Record<TextAlign, CSSProperties>"],"sources":["../src/components/toolkit/Typography/config.ts","../src/components/toolkit/Typography/style.ts","../src/components/toolkit/Typography/index.tsx"],"sourcesContent":["// External Libraries\nimport type { CSSProperties, JSX } from 'react'\n\n// Types\nimport type { TextAlign, TypographyVariant } from './types'\n\nconst primaryColor = 'var(--px-text-primary)'\nconst secondaryColor = 'var(--px-text-secondary)'\n\nexport const typographyVariants: Record<TypographyVariant, CSSProperties> = {\n h1: {\n fontSize: '3rem',\n fontWeight: '700',\n lineHeight: '1.25',\n color: primaryColor\n },\n h2: {\n fontSize: '2.25rem',\n fontWeight: '600',\n lineHeight: '1.35',\n color: primaryColor\n },\n h3: {\n fontSize: '1.875rem',\n fontWeight: '600',\n color: primaryColor\n },\n h4: {\n fontSize: '1.5rem',\n fontWeight: '500',\n color: primaryColor\n },\n h5: {\n fontSize: '1.25rem',\n fontWeight: '500',\n color: primaryColor\n },\n b1: {\n fontSize: '1rem',\n fontWeight: '500',\n color: primaryColor\n },\n b2: {\n fontSize: '0.875rem',\n color: secondaryColor\n },\n b3: {\n fontSize: '0.75rem',\n color: secondaryColor\n },\n caption: {\n fontSize: '0.75rem',\n color: secondaryColor\n },\n legal: {\n fontSize: '0.65rem',\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, CSSProperties> = {\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 { styled, type StyleMap } from '@hooks/useThemedStyles/types'\n\nexport function createTypographyStyles(props: TypographyProps): StyleMap {\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 }\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 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],\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 }\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":";;;;AAMA,MAAM,eAAe;AACrB,MAAM,iBAAiB;AAEvB,MAAaA,qBAA+D;CAC1E,IAAI;EACF,UAAU;EACV,YAAY;EACZ,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY;EACZ,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,YAAY;EACZ,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,OAAO;EACR;CACD,IAAI;EACF,UAAU;EACV,OAAO;EACR;CACD,SAAS;EACP,UAAU;EACV,OAAO;EACR;CACD,OAAO;EACL,UAAU;EACV,eAAe;EACf,eAAe;EACf,OAAO;EACR;CACF;AAED,MAAaC,mBAGT;CACF,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,SAAS;CACT,OAAO;CACR;AAED,MAAaC,YAA8C;CACzD,MAAM,EAAE,WAAW,QAAQ;CAC3B,QAAQ,EAAE,WAAW,UAAU;CAC/B,OAAO,EAAE,WAAW,SAAS;CAC7B,SAAS,EAAE,WAAW,WAAW;CAClC;;;;AC5ED,SAAgB,uBAAuB,OAAkC;CACvE,MAAM,EAAE,WAAW,SAAS,QAAQ,QAAQ,UAAU;AAEtD,QAAO,OAAO;EACZ,MAAM;GACJ,SAAS;GACT,eAAe;GACf,YAAY;GACZ,cAAc;GACd,KAAK;GACL,WAAW,YAAY,gCAAgC;GACxD;EAED,SAAS;GACP,OAAO;GACP,QAAQ;GACR,SAAS;GACT,iBAAiB;GACjB,cAAc;GACf;EAED,MAAM;GACJ,GAAG,UAAU;GACb,GAAG,mBAAmB;GACtB,OAAO,SAAS,mBAAmB,SAAS;GAC7C;EACF,CAAC;;;;;ACrBJ,SAAgB,WAAW,OAAwB;CACjD,MAAM,EACJ,IACA,IACA,MACA,SACA,UACA,aACA,YAAY,OACZ,QAAQ,oBACN;CAEJ,MAAM,EAAE,WAAW,gBAAgB,OAAO,wBAAwB;EAChE,OAAM,MAAK;GAAC,EAAE;GAAW,EAAE;GAAS,EAAE;GAAM;EAC5C,YAAY;EACZ,kBAAkB;EAClB,UAAU;EACX,CAAC;CAEF,MAAM,YAAY,MAAM,iBAAiB;AAEzC,KAAI,UACF,QACE,oBAAC;EACK;EACJ,eAAY;EACZ,MAAK;EACL,OAAO;GAAE,GAAG,OAAO;GAAM,GAAG,OAAO;GAAS;GAC5C;CAIN,MAAM,cAAc;EAClB;EACA,OAAO,OAAO;EACd,cAAc;EACf;AAED,KAAI,KACF,QACE,oBAAC;EAAQ;EAAM,GAAI;EAChB;GACC;AAIR,QAAO,oBAAC;EAAU,GAAI;EAAc;GAAqB"}
|
package/dist/button.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Button } from "./index-
|
|
1
|
+
import "./types-CdA3IIV2.js";
|
|
2
|
+
import { t as Button } from "./index-R-Kb8ovB.js";
|
|
3
3
|
export { Button };
|
package/dist/button.js
CHANGED
package/dist/check-item.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as CheckItem } from "./index-
|
|
1
|
+
import { t as CheckItem } from "./index-akSk71wZ.js";
|
|
2
2
|
export { CheckItem };
|
package/dist/check-item.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
1
|
+
import "./Icon-7fQw74zg.js";
|
|
2
|
+
import "./useThemedStyles-68D71Lua.js";
|
|
3
|
+
import "./Typography-CKXLkfw7.js";
|
|
4
|
+
import { t as CheckItem } from "./CheckItem-Cr8YZFKe.js";
|
|
4
5
|
|
|
5
6
|
export { CheckItem };
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Checkbox } from "./index-
|
|
1
|
+
import "./types-CdA3IIV2.js";
|
|
2
|
+
import { t as Checkbox } from "./index-Da42fqu3.js";
|
|
3
3
|
export { Checkbox };
|
package/dist/checkbox.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
1
|
+
import "./Icon-7fQw74zg.js";
|
|
2
|
+
import "./useThemedStyles-68D71Lua.js";
|
|
3
|
+
import "./Typography-CKXLkfw7.js";
|
|
4
|
+
import { t as Checkbox } from "./Checkbox-BRAE-Kg-.js";
|
|
4
5
|
|
|
5
6
|
export { Checkbox };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { t as StyleMap } from "./useThemedStyles-CXoofBTv.js";
|
|
2
|
+
import { MouseEvent, ReactNode } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/commons/buttons/IconButton/styles.d.ts
|
|
5
|
+
declare function createIconButtonStyles(props: IconButtonProps): StyleMap;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region src/components/commons/buttons/IconButton/types.d.ts
|
|
8
|
+
interface IconButtonProps {
|
|
9
|
+
icon: ReactNode;
|
|
10
|
+
size?: IconButtonSize;
|
|
11
|
+
isLoading?: boolean;
|
|
12
|
+
isDisabled?: boolean;
|
|
13
|
+
variant?: IconButtonVarriant;
|
|
14
|
+
backgroundColor?: string;
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
styles?: Partial<ReturnType<typeof createIconButtonStyles>>;
|
|
17
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
18
|
+
}
|
|
19
|
+
type IconButtonSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
20
|
+
type IconButtonVarriant = 'filled' | 'outlined' | 'borderless';
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region src/components/commons/buttons/IconButton/index.d.ts
|
|
23
|
+
declare const IconButton: React.FC<IconButtonProps>;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { IconButton as t };
|
|
26
|
+
//# sourceMappingURL=index-BYZm15m2.d.ts.map
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { t as StyleMap } from "./useThemedStyles-
|
|
2
|
-
import { n as TypographyVariant } from "./types-
|
|
3
|
-
import * as
|
|
1
|
+
import { t as StyleMap } from "./useThemedStyles-CXoofBTv.js";
|
|
2
|
+
import { n as TypographyVariant } from "./types-CdA3IIV2.js";
|
|
3
|
+
import * as react_jsx_runtime2 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region src/assets/icons/index.d.ts
|
|
6
6
|
/** biome-ignore-all lint/suspicious/noShadowRestrictedNames: generated */
|
|
7
7
|
declare const icons: {
|
|
8
|
-
'brands-facebook':
|
|
9
|
-
'brands-facebook-fit':
|
|
10
|
-
'brands-google':
|
|
11
|
-
'general-check':
|
|
12
|
-
'general-eye':
|
|
13
|
-
'general-eye-off':
|
|
8
|
+
'brands-facebook': react_jsx_runtime2.JSX.Element;
|
|
9
|
+
'brands-facebook-fit': react_jsx_runtime2.JSX.Element;
|
|
10
|
+
'brands-google': react_jsx_runtime2.JSX.Element;
|
|
11
|
+
'general-check': react_jsx_runtime2.JSX.Element;
|
|
12
|
+
'general-eye': react_jsx_runtime2.JSX.Element;
|
|
13
|
+
'general-eye-off': react_jsx_runtime2.JSX.Element;
|
|
14
14
|
};
|
|
15
15
|
type IconName = keyof typeof icons;
|
|
16
16
|
//#endregion
|
|
@@ -42,7 +42,7 @@ interface TextAreaProps {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/components/commons/inputs/TextArea/index.d.ts
|
|
45
|
-
declare const TextArea: (props: TextAreaProps) =>
|
|
45
|
+
declare const TextArea: (props: TextAreaProps) => react_jsx_runtime2.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { TextArea as t };
|
|
48
|
-
//# sourceMappingURL=index-
|
|
48
|
+
//# sourceMappingURL=index-BrVPSHH2.d.ts.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { t as CommonStyleProps } from "./styleProps-7WdaXgmQ.js";
|
|
2
|
+
import { t as StyleMap } from "./useThemedStyles-CXoofBTv.js";
|
|
2
3
|
import { ReactNode } from "react";
|
|
3
4
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
5
|
|
|
@@ -29,4 +30,4 @@ interface TabSwitchProps<T> extends CommonStyleProps {
|
|
|
29
30
|
declare const TabSwitch: <T>(props: TabSwitchProps<T>) => react_jsx_runtime0.JSX.Element;
|
|
30
31
|
//#endregion
|
|
31
32
|
export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
|
|
32
|
-
//# sourceMappingURL=index-
|
|
33
|
+
//# sourceMappingURL=index-C181qAfZ.d.ts.map
|
|
@@ -74,6 +74,7 @@ interface ThemeTokens {
|
|
|
74
74
|
error: string;
|
|
75
75
|
invalid: string;
|
|
76
76
|
info: string;
|
|
77
|
+
disabled: string;
|
|
77
78
|
scrollbar: string;
|
|
78
79
|
button: {
|
|
79
80
|
filled: {
|
|
@@ -278,23 +279,13 @@ type ThemeProviderProps = PropsWithChildren & {
|
|
|
278
279
|
* Allows persistence via cookies, server, indexedDB, etc.
|
|
279
280
|
*/
|
|
280
281
|
persistence?: ThemePersistence;
|
|
282
|
+
/** * Optional fallback element while the theme is initializing. */
|
|
283
|
+
fallback?: React.ReactNode;
|
|
281
284
|
};
|
|
282
285
|
//#endregion
|
|
283
286
|
//#region src/contexts/ThemeContext/index.d.ts
|
|
284
|
-
/**
|
|
285
|
-
* ThemeProvider
|
|
286
|
-
* -------------
|
|
287
|
-
* Provides theme state + resolved theme tokens to your app.
|
|
288
|
-
*/
|
|
289
287
|
declare const ThemeProvider: React.FC<ThemeProviderProps>;
|
|
290
|
-
/**
|
|
291
|
-
* useTheme()
|
|
292
|
-
*
|
|
293
|
-
* Returns the current theme context.
|
|
294
|
-
*
|
|
295
|
-
* @throws If called outside of `<ThemeProvider />`.
|
|
296
|
-
*/
|
|
297
288
|
declare function useTheme(): ThemeContextData;
|
|
298
289
|
//#endregion
|
|
299
290
|
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 };
|
|
300
|
-
//# sourceMappingURL=index-
|
|
291
|
+
//# sourceMappingURL=index-CIxyqe-m.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as TypographyVariant } from "./types-
|
|
1
|
+
import { n as TypographyVariant } from "./types-CdA3IIV2.js";
|
|
2
2
|
import React$1 from "react";
|
|
3
3
|
import { ChecklistAlertResponse } from "@api/checklist/alerts/dtos";
|
|
4
4
|
|
|
@@ -28,4 +28,4 @@ interface CheckboxProps {
|
|
|
28
28
|
declare const Checkbox: React$1.FC<CheckboxProps>;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Checkbox as t };
|
|
31
|
-
//# sourceMappingURL=index-
|
|
31
|
+
//# sourceMappingURL=index-Da42fqu3.d.ts.map
|
|
@@ -1,7 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { i as PaddingProps } from "./styleProps-7WdaXgmQ.js";
|
|
2
|
+
import { n as TypeStyles } from "./useThemedStyles-CXoofBTv.js";
|
|
3
|
+
import { n as TypographyVariant } from "./types-CdA3IIV2.js";
|
|
3
4
|
import React, { ReactNode } from "react";
|
|
4
5
|
|
|
6
|
+
//#region src/components/commons/buttons/Button/styles.d.ts
|
|
7
|
+
declare function createButtonStyles({
|
|
8
|
+
color,
|
|
9
|
+
variant,
|
|
10
|
+
disabled,
|
|
11
|
+
fullWidth,
|
|
12
|
+
textAlign,
|
|
13
|
+
outlineColor
|
|
14
|
+
}: ButtonProps): {
|
|
15
|
+
container: {
|
|
16
|
+
minHeight: string;
|
|
17
|
+
height: string;
|
|
18
|
+
width: string;
|
|
19
|
+
position: "relative";
|
|
20
|
+
display: "flex";
|
|
21
|
+
justifyContent: Align;
|
|
22
|
+
padding: string;
|
|
23
|
+
gap: string;
|
|
24
|
+
borderRadius: string;
|
|
25
|
+
cursor: "not-allowed" | "pointer";
|
|
26
|
+
opacity: number;
|
|
27
|
+
transition: "background-color 0.5s";
|
|
28
|
+
border: string;
|
|
29
|
+
backgroundColor: string;
|
|
30
|
+
__rules: {
|
|
31
|
+
'&:hover': {
|
|
32
|
+
opacity: "0.85 !important";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
content: {
|
|
37
|
+
display: "flex";
|
|
38
|
+
flexDirection: "row";
|
|
39
|
+
alignItems: "center";
|
|
40
|
+
padding: string;
|
|
41
|
+
borderRadius: string;
|
|
42
|
+
whiteSpace: "nowrap";
|
|
43
|
+
columnGap: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
//#endregion
|
|
5
47
|
//#region src/components/commons/buttons/Button/types.d.ts
|
|
6
48
|
type Align = 'center' | 'left' | 'right';
|
|
7
49
|
type ButtonType = 'button' | 'submit' | 'reset';
|
|
@@ -13,6 +55,7 @@ interface ButtonProps extends PaddingProps {
|
|
|
13
55
|
labelVariant?: TypographyVariant;
|
|
14
56
|
/** Icon displayed before the label */
|
|
15
57
|
startIcon?: ReactNode;
|
|
58
|
+
styles?: TypeStyles<typeof createButtonStyles>;
|
|
16
59
|
/** Icon displayed after the label */
|
|
17
60
|
endIcon?: ReactNode;
|
|
18
61
|
/**
|
|
@@ -25,6 +68,8 @@ interface ButtonProps extends PaddingProps {
|
|
|
25
68
|
loading?: boolean;
|
|
26
69
|
/** Text color of the button label */
|
|
27
70
|
labelColor?: string;
|
|
71
|
+
/** Outline color for outlined variant */
|
|
72
|
+
outlineColor?: string;
|
|
28
73
|
/** Aligns the button text content */
|
|
29
74
|
textAlign?: Align;
|
|
30
75
|
/**
|
|
@@ -62,4 +107,4 @@ interface ButtonProps extends PaddingProps {
|
|
|
62
107
|
declare const Button: React.FC<ButtonProps>;
|
|
63
108
|
//#endregion
|
|
64
109
|
export { Button as t };
|
|
65
|
-
//# sourceMappingURL=index-
|
|
110
|
+
//# sourceMappingURL=index-R-Kb8ovB.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { i as PaddingProps, n as LayoutProps } from "./styleProps-7WdaXgmQ.js";
|
|
2
|
+
import { t as StyleMap } from "./useThemedStyles-CXoofBTv.js";
|
|
3
|
+
import { n as TypographyVariant } from "./types-CdA3IIV2.js";
|
|
4
|
+
import React, { ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/commons/inputs/Input/styles.d.ts
|
|
7
7
|
|
|
@@ -13,12 +13,17 @@ type InputSize = 'sm' | 'md' | 'lg';
|
|
|
13
13
|
type InputRadius = 'none' | 'sm' | 'md' | 'lg' | 'full';
|
|
14
14
|
type InputType = 'text' | 'email' | 'url' | 'password' | 'tel' | 'search';
|
|
15
15
|
type InputWidth = 'auto' | 'full' | 'md' | 'lg' | 'xl' | '2xl';
|
|
16
|
-
interface InputProps extends
|
|
16
|
+
interface InputProps extends LayoutProps, PaddingProps {
|
|
17
|
+
id?: string;
|
|
18
|
+
label?: string;
|
|
19
|
+
value?: string;
|
|
17
20
|
size?: InputSize;
|
|
18
21
|
type?: InputType;
|
|
22
|
+
minLength?: number;
|
|
23
|
+
maxLength?: number;
|
|
19
24
|
width?: InputWidth;
|
|
20
|
-
|
|
21
|
-
|
|
25
|
+
required?: boolean;
|
|
26
|
+
placeholder?: string;
|
|
22
27
|
radius?: InputRadius;
|
|
23
28
|
variant?: InputVariant;
|
|
24
29
|
isInvalid?: boolean;
|
|
@@ -38,7 +43,7 @@ interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'
|
|
|
38
43
|
}
|
|
39
44
|
//#endregion
|
|
40
45
|
//#region src/components/commons/inputs/Input/index.d.ts
|
|
41
|
-
declare const Input:
|
|
46
|
+
declare const Input: React.FC<InputProps>;
|
|
42
47
|
//#endregion
|
|
43
48
|
export { Input as t };
|
|
44
|
-
//# sourceMappingURL=index-
|
|
49
|
+
//# sourceMappingURL=index-v4w-T_f6.d.ts.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Button } from "./index-
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
1
|
+
import "./types-CdA3IIV2.js";
|
|
2
|
+
import { t as Button } from "./index-R-Kb8ovB.js";
|
|
3
|
+
import { t as IconButton } from "./index-BYZm15m2.js";
|
|
4
|
+
import { t as Input } from "./index-v4w-T_f6.js";
|
|
5
|
+
import { t as TextArea } from "./index-BrVPSHH2.js";
|
|
6
|
+
import { t as CheckItem } from "./index-akSk71wZ.js";
|
|
7
|
+
import { t as Checkbox } from "./index-Da42fqu3.js";
|
|
7
8
|
import { InfoSummary, InfoSummaryItem, InfoSummaryProps } from "./info-summary.js";
|
|
8
|
-
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-
|
|
9
|
+
import { n as SwitchOption, r as TabSwitchProps, t as TabSwitch } from "./index-C181qAfZ.js";
|
|
9
10
|
import { Typography } from "./typography.js";
|
|
10
|
-
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-
|
|
11
|
-
export { Button, CheckItem, Checkbox, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useTheme };
|
|
11
|
+
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-CIxyqe-m.js";
|
|
12
|
+
export { Button, CheckItem, Checkbox, IconButton, InfoSummary, InfoSummaryItem, InfoSummaryProps, Input, SwitchOption, TabSwitch, TabSwitchProps, TextArea, ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, Typography, useTheme };
|
package/dist/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import
|
|
3
|
-
import { t as
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import "./
|
|
10
|
-
import { t as
|
|
11
|
-
import
|
|
1
|
+
import "./Icon-7fQw74zg.js";
|
|
2
|
+
import "./useThemedStyles-68D71Lua.js";
|
|
3
|
+
import { t as Typography } from "./Typography-CKXLkfw7.js";
|
|
4
|
+
import { t as Checkbox } from "./Checkbox-BRAE-Kg-.js";
|
|
5
|
+
import { n as useTheme, t as ThemeProvider } from "./ThemeContext-BsU2ZyE5.js";
|
|
6
|
+
import { t as TabSwitch } from "./TabSwitch-Ce-uQvRp.js";
|
|
7
|
+
import { t as InfoSummary } from "./InfoSummary-D2ER39sF.js";
|
|
8
|
+
import { t as CheckItem } from "./CheckItem-Cr8YZFKe.js";
|
|
9
|
+
import { t as Button } from "./Button-nrM-Dn6T.js";
|
|
10
|
+
import { t as IconButton } from "./IconButton-B7-l2DTb.js";
|
|
11
|
+
import "./Label-1Gh2DlKl.js";
|
|
12
|
+
import { t as Input } from "./Input-BR3ZaetX.js";
|
|
13
|
+
import { t as TextArea } from "./TextArea-BsErpaMx.js";
|
|
12
14
|
|
|
13
|
-
export { Button, CheckItem, Checkbox, InfoSummary, Input, TabSwitch, TextArea, ThemeProvider, Typography, useTheme };
|
|
15
|
+
export { Button, CheckItem, Checkbox, IconButton, InfoSummary, Input, TabSwitch, TextArea, ThemeProvider, Typography, useTheme };
|
package/dist/info-summary.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import
|
|
1
|
+
import "./useThemedStyles-68D71Lua.js";
|
|
2
|
+
import "./Typography-CKXLkfw7.js";
|
|
3
|
+
import { t as InfoSummary } from "./InfoSummary-D2ER39sF.js";
|
|
3
4
|
|
|
4
5
|
export { InfoSummary };
|
package/dist/input.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as Input } from "./index-
|
|
1
|
+
import "./types-CdA3IIV2.js";
|
|
2
|
+
import { t as Input } from "./index-v4w-T_f6.js";
|
|
3
3
|
export { Input };
|
package/dist/input.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
1
|
+
import "./Icon-7fQw74zg.js";
|
|
2
|
+
import "./useThemedStyles-68D71Lua.js";
|
|
3
|
+
import "./Typography-CKXLkfw7.js";
|
|
4
|
+
import "./Label-1Gh2DlKl.js";
|
|
5
|
+
import { t as Input } from "./Input-BR3ZaetX.js";
|
|
5
6
|
|
|
6
7
|
export { Input };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
//#region src/hooks/useThemedStyles/types/styleProps.d.ts
|
|
2
|
+
type Space = number | string;
|
|
3
|
+
type Size = number | string;
|
|
4
|
+
interface MarginProps {
|
|
5
|
+
m?: Space;
|
|
6
|
+
mx?: Space;
|
|
7
|
+
my?: Space;
|
|
8
|
+
mt?: Space;
|
|
9
|
+
mr?: Space;
|
|
10
|
+
mb?: Space;
|
|
11
|
+
ml?: Space;
|
|
12
|
+
}
|
|
13
|
+
interface PaddingProps {
|
|
14
|
+
p?: Space;
|
|
15
|
+
px?: Space;
|
|
16
|
+
py?: Space;
|
|
17
|
+
pt?: Space;
|
|
18
|
+
pr?: Space;
|
|
19
|
+
pb?: Space;
|
|
20
|
+
pl?: Space;
|
|
21
|
+
}
|
|
22
|
+
interface TextProps {
|
|
23
|
+
fontSize?: number | string;
|
|
24
|
+
fontWeight?: React.CSSProperties['fontWeight'];
|
|
25
|
+
lineHeight?: number | string;
|
|
26
|
+
textAlign?: React.CSSProperties['textAlign'];
|
|
27
|
+
}
|
|
28
|
+
interface LayoutProps {
|
|
29
|
+
w?: Size;
|
|
30
|
+
h?: Size;
|
|
31
|
+
minW?: Size;
|
|
32
|
+
maxW?: Size;
|
|
33
|
+
minH?: Size;
|
|
34
|
+
maxH?: Size;
|
|
35
|
+
}
|
|
36
|
+
type CommonStyleProps = MarginProps & PaddingProps & TextProps & LayoutProps;
|
|
37
|
+
//#endregion
|
|
38
|
+
export { TextProps as a, PaddingProps as i, LayoutProps as n, MarginProps as r, CommonStyleProps as t };
|
|
39
|
+
//# sourceMappingURL=styleProps-7WdaXgmQ.d.ts.map
|
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-C181qAfZ.js";
|
|
2
2
|
export { SwitchOption, TabSwitch, TabSwitchProps };
|
package/dist/tab-switch.js
CHANGED
package/dist/text-area.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "./types-
|
|
2
|
-
import { t as TextArea } from "./index-
|
|
1
|
+
import "./types-CdA3IIV2.js";
|
|
2
|
+
import { t as TextArea } from "./index-BrVPSHH2.js";
|
|
3
3
|
export { TextArea };
|
package/dist/text-area.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "./Icon-
|
|
2
|
-
import "./
|
|
3
|
-
import "./
|
|
4
|
-
import
|
|
1
|
+
import "./Icon-7fQw74zg.js";
|
|
2
|
+
import "./useThemedStyles-68D71Lua.js";
|
|
3
|
+
import "./Typography-CKXLkfw7.js";
|
|
4
|
+
import "./Label-1Gh2DlKl.js";
|
|
5
|
+
import { t as TextArea } from "./TextArea-BsErpaMx.js";
|
|
5
6
|
|
|
6
7
|
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-CIxyqe-m.js";
|
|
2
2
|
export { ThemeContextData, ThemeMode, ThemeName, ThemePersistence, ThemeProvider, ThemeProviderProps, ThemeRegistry, ThemeTokens, useTheme };
|
package/dist/theme-context.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as TextProps, r as MarginProps } from "./styleProps-7WdaXgmQ.js";
|
|
2
|
+
import { t as StyleMap } from "./useThemedStyles-CXoofBTv.js";
|
|
2
3
|
import { ElementType, ReactNode } from "react";
|
|
3
4
|
|
|
4
5
|
//#region src/components/toolkit/Typography/style.d.ts
|
|
5
6
|
declare function createTypographyStyles(props: TypographyProps): StyleMap;
|
|
6
7
|
//#endregion
|
|
7
8
|
//#region src/components/toolkit/Typography/types.d.ts
|
|
8
|
-
interface TypographyProps extends TextProps {
|
|
9
|
+
interface TypographyProps extends TextProps, MarginProps {
|
|
9
10
|
variant: TypographyVariant;
|
|
10
11
|
id?: string;
|
|
11
12
|
href?: string;
|
|
@@ -21,4 +22,4 @@ type TextAlign = 'left' | 'center' | 'right' | 'justify';
|
|
|
21
22
|
type TypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'b1' | 'b2' | 'b3' | 'caption' | 'legal';
|
|
22
23
|
//#endregion
|
|
23
24
|
export { TypographyVariant as n, TypographyProps as t };
|
|
24
|
-
//# sourceMappingURL=types-
|
|
25
|
+
//# sourceMappingURL=types-CdA3IIV2.d.ts.map
|
package/dist/typography.d.ts
CHANGED
package/dist/typography.js
CHANGED