@stamcat/craftsman 0.0.23-alpha.9 → 0.0.23
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/AGENTS.md +216 -6
- package/Components.d.ts +2 -0
- package/Components.esm.js +20 -5
- package/Styles.d.ts +2 -0
- package/Styles.esm.js +8 -0
- package/Utilities.d.ts +2 -0
- package/Utilities.esm.js +2 -0
- package/_virtual/_rolldown/runtime.esm.js +11 -0
- package/package.json +42 -15
- package/{components → src/components}/Button.d.ts +2 -2
- package/src/components/Button.esm.js +23 -16
- package/src/components/Button.module.css +1 -0
- package/src/components/Button.module.esm.js +9 -0
- package/src/components/Button.module.scss +5 -0
- package/src/components/Checkbox.d.ts +7 -0
- package/src/components/Checkbox.esm.js +10 -0
- package/src/components/Input.d.ts +11 -0
- package/src/components/Input.esm.js +38 -3
- package/src/components/Input.module.css +1 -0
- package/src/components/Input.module.esm.js +11 -0
- package/src/components/Input.module.scss +141 -0
- package/src/components/InputPassword.d.ts +6 -0
- package/src/components/InputPassword.esm.js +32 -0
- package/{components → src/components}/Loader.d.ts +1 -2
- package/src/components/Loader.esm.js +15 -14
- package/{components → src/components}/Modal.d.ts +2 -3
- package/src/components/Modal.esm.js +40 -135
- package/src/components/Modal.module.css +1 -0
- package/src/components/Modal.module.esm.js +13 -0
- package/src/components/Modal.module.scss +133 -0
- package/src/components/RadioButton.d.ts +7 -0
- package/src/components/RadioButton.esm.js +10 -0
- package/{components → src/components}/index.d.ts +3 -0
- package/src/styles/components/ThemeProvider.d.ts +7 -0
- package/src/styles/components/ThemeProvider.esm.js +8 -0
- package/src/styles/global/components/_button.scss +64 -0
- package/src/styles/global/components/_checkbox.scss +78 -0
- package/src/styles/global/components/_code.scss +19 -0
- package/src/styles/global/components/_input.scss +46 -0
- package/src/styles/global/components/_mixins.scss +2 -0
- package/src/styles/global/components/_modal.scss +9 -0
- package/src/styles/global/components/_radioButton.scss +33 -0
- package/src/styles/global/components/_typography.scss +7 -0
- package/{styles → src/styles}/global/components/button.d.ts +1 -2
- package/{styles → src/styles}/global/components/loaders.d.ts +3 -5
- package/src/styles/global/components/loaders.esm.js +44 -55
- package/src/styles/global/components/loaders.module.css +1 -1
- package/src/styles/global/components/loaders.module.esm.js +15 -19
- package/src/styles/global/components/loaders.module.scss +73 -67
- package/src/styles/global/globalStyles.d.ts +1 -0
- package/src/styles/global/globalStyles.esm.js +4 -0
- package/src/styles/global/globalStyles.module.scss +129 -0
- package/src/styles/global/variables.esm.js +11 -0
- package/src/styles/index.d.ts +7 -0
- package/src/styles/theme/components.esm.js +12 -0
- package/src/styles/theme/constants.esm.js +4 -0
- package/src/styles/theme/theme.d.ts +2 -0
- package/src/styles/theme/theme.esm.js +56 -0
- package/{styles → src/styles}/theme/types.d.ts +10 -3
- package/src/styles/theme/utilities.d.ts +3 -0
- package/src/styles/theme/utilities.esm.js +48 -0
- package/src/styles/utilities/color.d.ts +174 -0
- package/src/styles/utilities/color.esm.js +4 -8
- package/src/styles/utilities/constants.d.ts +172 -0
- package/src/styles/utilities/constants.esm.js +175 -71
- package/{styles → src/styles}/utilities/layout.d.ts +6 -4
- package/src/styles/utilities/layout.esm.js +28 -29
- package/src/styles/utilities/types.d.ts +85 -0
- package/src/styles/utilities/types.esm.js +54 -0
- package/src/utilities/index.d.ts +1 -0
- package/src/utilities/validations.esm.js +9 -0
- package/components/Input.d.ts +0 -2
- package/src/styles/utilities/config.esm.js +0 -25
- package/stories/Button.stories.d.ts +0 -15
- package/stories/Colors.stories.d.ts +0 -5
- package/stories/Icons.stories.d.ts +0 -36
- package/stories/Loaders.stories.d.ts +0 -6
- package/stories/Modal.stories.d.ts +0 -8
- package/stories/Toastify.stories.d.ts +0 -7
- package/stories/Typography.stories.d.ts +0 -6
- package/styles/global/components/code.d.ts +0 -1
- package/styles/global/components/typography.d.ts +0 -11
- package/styles/global/globalStyles.d.ts +0 -1
- package/styles/theme/theme.d.ts +0 -8
- package/styles/theme/utilities.d.ts +0 -2
- package/styles/utilities/color.d.ts +0 -5
- package/styles/utilities/config.d.ts +0 -7
- package/styles/utilities/constants.d.ts +0 -77
- package/styles/utilities/types.d.ts +0 -17
- /package/{components → src/components}/Progress.d.ts +0 -0
- /package/{main.d.ts → src/main.d.ts} +0 -0
- /package/{styles → src/styles}/global/variables.d.ts +0 -0
- /package/{styles → src/styles}/theme/components.d.ts +0 -0
- /package/{styles → src/styles}/theme/constants.d.ts +0 -0
- /package/{utilities → src/utilities}/validations.d.ts +0 -0
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { ColorType } from './types';
|
|
2
|
-
export declare const colors: Record<string, string>;
|
|
3
|
-
export type ColorKey = keyof typeof colors;
|
|
4
|
-
export declare function hexToRgba(hex: string, alpha?: number): string;
|
|
5
|
-
export declare const color: (name: ColorKey, type?: ColorType, alpha?: number) => string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResponsiveWidth, SetConfig } from './types';
|
|
2
|
-
export declare function setCraftsmanConfig(config: SetConfig): void;
|
|
3
|
-
export declare function resetCraftsmanConfig(): void;
|
|
4
|
-
export declare function getCraftsmanConfig(): {
|
|
5
|
-
colors: Record<string, string>;
|
|
6
|
-
widths: ResponsiveWidth;
|
|
7
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
export declare const defaultColors: {
|
|
2
|
-
text: string;
|
|
3
|
-
primary: string;
|
|
4
|
-
transparent: string;
|
|
5
|
-
white: string;
|
|
6
|
-
black: string;
|
|
7
|
-
grey50: string;
|
|
8
|
-
grey100: string;
|
|
9
|
-
grey200: string;
|
|
10
|
-
grey300: string;
|
|
11
|
-
grey400: string;
|
|
12
|
-
grey500: string;
|
|
13
|
-
grey600: string;
|
|
14
|
-
grey700: string;
|
|
15
|
-
grey800: string;
|
|
16
|
-
grey900: string;
|
|
17
|
-
blue50: string;
|
|
18
|
-
blue100: string;
|
|
19
|
-
blue200: string;
|
|
20
|
-
blue300: string;
|
|
21
|
-
blue400: string;
|
|
22
|
-
blue500: string;
|
|
23
|
-
blue600: string;
|
|
24
|
-
blue700: string;
|
|
25
|
-
blue800: string;
|
|
26
|
-
blue900: string;
|
|
27
|
-
green50: string;
|
|
28
|
-
green100: string;
|
|
29
|
-
green200: string;
|
|
30
|
-
green300: string;
|
|
31
|
-
green400: string;
|
|
32
|
-
green500: string;
|
|
33
|
-
green600: string;
|
|
34
|
-
green700: string;
|
|
35
|
-
green800: string;
|
|
36
|
-
green900: string;
|
|
37
|
-
yellow50: string;
|
|
38
|
-
yellow100: string;
|
|
39
|
-
yellow200: string;
|
|
40
|
-
yellow300: string;
|
|
41
|
-
yellow400: string;
|
|
42
|
-
yellow500: string;
|
|
43
|
-
yellow600: string;
|
|
44
|
-
yellow700: string;
|
|
45
|
-
yellow800: string;
|
|
46
|
-
yellow900: string;
|
|
47
|
-
red50: string;
|
|
48
|
-
red100: string;
|
|
49
|
-
red200: string;
|
|
50
|
-
red300: string;
|
|
51
|
-
red400: string;
|
|
52
|
-
red500: string;
|
|
53
|
-
red600: string;
|
|
54
|
-
red700: string;
|
|
55
|
-
red800: string;
|
|
56
|
-
red900: string;
|
|
57
|
-
purple50: string;
|
|
58
|
-
purple100: string;
|
|
59
|
-
purple200: string;
|
|
60
|
-
purple300: string;
|
|
61
|
-
purple400: string;
|
|
62
|
-
purple500: string;
|
|
63
|
-
purple600: string;
|
|
64
|
-
purple700: string;
|
|
65
|
-
purple800: string;
|
|
66
|
-
purple900: string;
|
|
67
|
-
};
|
|
68
|
-
export declare const defaultWidths: {
|
|
69
|
-
text: number;
|
|
70
|
-
column: number;
|
|
71
|
-
gutter: number;
|
|
72
|
-
extDesktop: number;
|
|
73
|
-
extNav: number;
|
|
74
|
-
desktop: number;
|
|
75
|
-
tablet: number;
|
|
76
|
-
extMobile: number;
|
|
77
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
type BaseLayoutWidth = "column" | "gutter" | "extDesktop" | "extNav" | "desktop" | "tablet" | "extMobile";
|
|
2
|
-
type MaxLayoutWidth = "mobileMax" | "tabletMax" | "desktopMax";
|
|
3
|
-
export type Breakpoint = "mobile" | "tablet" | "desktop" | "extDesktop" | "mobileOnly" | "tabletOnly" | "mobileTablet" | "desktopOnly";
|
|
4
|
-
export type LayoutWidthsType = BaseLayoutWidth | MaxLayoutWidth;
|
|
5
|
-
export type Width = Record<"text" | BaseLayoutWidth, number>;
|
|
6
|
-
export type ResponsiveWidth = Width & Record<MaxLayoutWidth, number>;
|
|
7
|
-
export type Colors = Record<string, string>;
|
|
8
|
-
export type ColorType = "rgba" | "hex";
|
|
9
|
-
export type CraftsmanConfig = {
|
|
10
|
-
colors: Colors;
|
|
11
|
-
widths: Width;
|
|
12
|
-
};
|
|
13
|
-
export type SetConfig = Partial<{
|
|
14
|
-
colors: Partial<Colors>;
|
|
15
|
-
widths: Partial<Width>;
|
|
16
|
-
}>;
|
|
17
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|