@stamcat/craftsman 0.0.23-alpha.7 → 0.0.23-alpha.9
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 +162 -0
- package/Components.esm.js +5 -3
- package/components/Button.d.ts +6 -1
- package/components/Loader.d.ts +9 -0
- package/components/Modal.d.ts +23 -0
- package/components/Progress.d.ts +1 -0
- package/components/index.d.ts +2 -0
- package/package.json +12 -1
- package/src/components/Button.esm.js +20 -0
- package/src/components/Loader.esm.js +19 -0
- package/src/components/Modal.esm.js +156 -0
- package/src/styles/global/components/loaders.esm.js +65 -0
- package/src/styles/global/components/loaders.module.css +1 -0
- package/src/styles/global/components/loaders.module.esm.js +25 -0
- package/src/styles/global/components/loaders.module.scss +240 -0
- package/src/styles/utilities/color.esm.js +19 -0
- package/src/styles/utilities/config.esm.js +25 -0
- package/src/styles/utilities/constants.esm.js +79 -0
- package/src/styles/utilities/layout.esm.js +48 -0
- package/stories/Button.stories.d.ts +7 -0
- package/stories/Colors.stories.d.ts +5 -0
- package/stories/Icons.stories.d.ts +36 -0
- package/stories/Loaders.stories.d.ts +6 -0
- package/stories/Modal.stories.d.ts +8 -0
- package/stories/Toastify.stories.d.ts +7 -0
- package/stories/Typography.stories.d.ts +6 -0
- package/styles/global/components/button.d.ts +7 -0
- package/styles/global/components/code.d.ts +1 -0
- package/styles/global/components/loaders.d.ts +17 -0
- package/styles/global/components/typography.d.ts +11 -0
- package/styles/global/variables.d.ts +2 -0
- package/styles/theme/components.d.ts +1 -1
- package/styles/theme/constants.d.ts +1 -2
- package/styles/theme/types.d.ts +1 -1
- package/styles/theme/utilities.d.ts +2 -0
- package/styles/utilities/color.d.ts +2 -66
- package/styles/utilities/config.d.ts +7 -0
- package/styles/utilities/constants.d.ts +77 -0
- package/styles/utilities/layout.d.ts +15 -0
- package/styles/utilities/types.d.ts +17 -0
- package/Button.esm.js +0 -5
- package/icons/IconCalendar.d.ts +0 -3
- package/icons/IconChevronRight.d.ts +0 -2
- package/icons/IconCircleAlert.d.ts +0 -2
- package/icons/IconCircleCheck.d.ts +0 -2
- package/icons/IconCircleHelp.d.ts +0 -2
- package/icons/IconCircleInfo.d.ts +0 -2
- package/icons/IconEye.d.ts +0 -2
- package/icons/IconEyeClosed.d.ts +0 -2
- package/icons/IconX.d.ts +0 -2
- package/styles/global/colors.d.ts +0 -1
- package/styles/theme/components/button.d.ts +0 -1
- /package/{Input.esm.js → src/components/Input.esm.js} +0 -0
|
@@ -0,0 +1,77 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CSSObject, SerializedStyles } from '@emotion/react';
|
|
2
|
+
import { Breakpoint, LayoutWidthsType, ResponsiveWidth } from './types';
|
|
3
|
+
export declare const widths: ResponsiveWidth;
|
|
4
|
+
export declare const media: {
|
|
5
|
+
readonly mobile: string;
|
|
6
|
+
readonly tablet: string;
|
|
7
|
+
readonly desktop: string;
|
|
8
|
+
readonly extDesktop: string;
|
|
9
|
+
readonly mobileOnly: string;
|
|
10
|
+
readonly tabletOnly: string;
|
|
11
|
+
readonly mobileTablet: string;
|
|
12
|
+
readonly desktopOnly: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const width: (w: LayoutWidthsType, multiplier?: number, px?: boolean) => string;
|
|
15
|
+
export declare const breakpoint: (bp: Breakpoint, styles: SerializedStyles | CSSObject) => SerializedStyles;
|
|
@@ -0,0 +1,17 @@
|
|
|
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 {};
|
package/Button.esm.js
DELETED
package/icons/IconCalendar.d.ts
DELETED
package/icons/IconEye.d.ts
DELETED
package/icons/IconEyeClosed.d.ts
DELETED
package/icons/IconX.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const colors: import('@emotion/utils').SerializedStyles;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const button: import('@emotion/utils').SerializedStyles;
|
|
File without changes
|