softable-pixels-web 1.0.0 → 1.0.2
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/TabSwitch-bxVgCnTw.js +126 -0
- package/dist/TabSwitch-bxVgCnTw.js.map +1 -0
- package/dist/{ThemeContext-CRXby8a0.js → ThemeContext-DiQ-_KUr.js} +56 -83
- package/dist/ThemeContext-DiQ-_KUr.js.map +1 -0
- package/dist/Typography-Dn1vnPBy.js +528 -0
- package/dist/Typography-Dn1vnPBy.js.map +1 -0
- package/dist/index--nD5Wzza.d.ts +32 -0
- package/dist/{index-jFi4YRO5.d.ts → index-B0CCFNqx.d.ts} +4 -4
- package/dist/index-C_T04IuG.d.ts +27 -0
- package/dist/index.d.ts +4 -3
- package/dist/index.js +4 -3
- package/dist/tab-switch.d.ts +1 -1
- package/dist/tab-switch.js +2 -1
- package/dist/theme-context.d.ts +1 -1
- package/dist/theme-context.js +1 -1
- package/dist/typography.d.ts +2 -0
- package/dist/typography.js +3 -0
- package/dist/useThemedStyles-DyrejrCM.d.ts +91 -0
- package/package.json +20 -8
- package/dist/TabSwitch-D6OPAUjC.js +0 -304
- package/dist/TabSwitch-D6OPAUjC.js.map +0 -1
- package/dist/ThemeContext-CRXby8a0.js.map +0 -1
- package/dist/index-CZOu4S--.d.ts +0 -69
package/dist/index-CZOu4S--.d.ts
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from "react";
|
|
2
|
-
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
-
|
|
4
|
-
//#region src/hooks/useThemedStyles/types/styleProps.d.ts
|
|
5
|
-
type Space = number | string;
|
|
6
|
-
type Size = number | string;
|
|
7
|
-
interface MarginProps {
|
|
8
|
-
m?: Space;
|
|
9
|
-
mx?: Space;
|
|
10
|
-
my?: Space;
|
|
11
|
-
mt?: Space;
|
|
12
|
-
mr?: Space;
|
|
13
|
-
mb?: Space;
|
|
14
|
-
ml?: Space;
|
|
15
|
-
}
|
|
16
|
-
interface PaddingProps {
|
|
17
|
-
p?: Space;
|
|
18
|
-
px?: Space;
|
|
19
|
-
py?: Space;
|
|
20
|
-
pt?: Space;
|
|
21
|
-
pr?: Space;
|
|
22
|
-
pb?: Space;
|
|
23
|
-
pl?: Space;
|
|
24
|
-
}
|
|
25
|
-
interface TextProps {
|
|
26
|
-
fontSize?: number | string;
|
|
27
|
-
fontWeight?: React.CSSProperties['fontWeight'];
|
|
28
|
-
lineHeight?: number | string;
|
|
29
|
-
textAlign?: React.CSSProperties['textAlign'];
|
|
30
|
-
}
|
|
31
|
-
interface LayoutProps {
|
|
32
|
-
w?: Size;
|
|
33
|
-
h?: Size;
|
|
34
|
-
minW?: Size;
|
|
35
|
-
maxW?: Size;
|
|
36
|
-
minH?: Size;
|
|
37
|
-
maxH?: Size;
|
|
38
|
-
}
|
|
39
|
-
type CommonStyleProps = MarginProps & PaddingProps & TextProps & LayoutProps;
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region src/components/toolkit/TabSwitch/styles.d.ts
|
|
42
|
-
declare function createTabSwitchStyles<T>(props: TabSwitchProps<T>): {
|
|
43
|
-
container: CSSProperties;
|
|
44
|
-
};
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region src/components/toolkit/TabSwitch/types.d.ts
|
|
47
|
-
interface SwitchOption<T> {
|
|
48
|
-
value: T;
|
|
49
|
-
label: string;
|
|
50
|
-
disabled?: boolean;
|
|
51
|
-
icon?: ReactNode;
|
|
52
|
-
}
|
|
53
|
-
interface TabSwitchProps<T> extends CommonStyleProps {
|
|
54
|
-
currentValue: T;
|
|
55
|
-
options: SwitchOption<T>[];
|
|
56
|
-
disabled?: boolean;
|
|
57
|
-
fitContent?: boolean;
|
|
58
|
-
layoutId?: string;
|
|
59
|
-
selectedLabelColor?: string;
|
|
60
|
-
variant?: 'default' | 'underline';
|
|
61
|
-
styles?: Partial<ReturnType<typeof createTabSwitchStyles>>;
|
|
62
|
-
onChange: (value: T) => void;
|
|
63
|
-
}
|
|
64
|
-
//#endregion
|
|
65
|
-
//#region src/components/toolkit/TabSwitch/index.d.ts
|
|
66
|
-
declare function TabSwitch<T>(props: TabSwitchProps<T>): react_jsx_runtime0.JSX.Element;
|
|
67
|
-
//#endregion
|
|
68
|
-
export { SwitchOption as n, TabSwitchProps as r, TabSwitch as t };
|
|
69
|
-
//# sourceMappingURL=index-CZOu4S--.d.ts.map
|