@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.
Files changed (53) hide show
  1. package/AGENTS.md +162 -0
  2. package/Components.esm.js +5 -3
  3. package/components/Button.d.ts +6 -1
  4. package/components/Loader.d.ts +9 -0
  5. package/components/Modal.d.ts +23 -0
  6. package/components/Progress.d.ts +1 -0
  7. package/components/index.d.ts +2 -0
  8. package/package.json +12 -1
  9. package/src/components/Button.esm.js +20 -0
  10. package/src/components/Loader.esm.js +19 -0
  11. package/src/components/Modal.esm.js +156 -0
  12. package/src/styles/global/components/loaders.esm.js +65 -0
  13. package/src/styles/global/components/loaders.module.css +1 -0
  14. package/src/styles/global/components/loaders.module.esm.js +25 -0
  15. package/src/styles/global/components/loaders.module.scss +240 -0
  16. package/src/styles/utilities/color.esm.js +19 -0
  17. package/src/styles/utilities/config.esm.js +25 -0
  18. package/src/styles/utilities/constants.esm.js +79 -0
  19. package/src/styles/utilities/layout.esm.js +48 -0
  20. package/stories/Button.stories.d.ts +7 -0
  21. package/stories/Colors.stories.d.ts +5 -0
  22. package/stories/Icons.stories.d.ts +36 -0
  23. package/stories/Loaders.stories.d.ts +6 -0
  24. package/stories/Modal.stories.d.ts +8 -0
  25. package/stories/Toastify.stories.d.ts +7 -0
  26. package/stories/Typography.stories.d.ts +6 -0
  27. package/styles/global/components/button.d.ts +7 -0
  28. package/styles/global/components/code.d.ts +1 -0
  29. package/styles/global/components/loaders.d.ts +17 -0
  30. package/styles/global/components/typography.d.ts +11 -0
  31. package/styles/global/variables.d.ts +2 -0
  32. package/styles/theme/components.d.ts +1 -1
  33. package/styles/theme/constants.d.ts +1 -2
  34. package/styles/theme/types.d.ts +1 -1
  35. package/styles/theme/utilities.d.ts +2 -0
  36. package/styles/utilities/color.d.ts +2 -66
  37. package/styles/utilities/config.d.ts +7 -0
  38. package/styles/utilities/constants.d.ts +77 -0
  39. package/styles/utilities/layout.d.ts +15 -0
  40. package/styles/utilities/types.d.ts +17 -0
  41. package/Button.esm.js +0 -5
  42. package/icons/IconCalendar.d.ts +0 -3
  43. package/icons/IconChevronRight.d.ts +0 -2
  44. package/icons/IconCircleAlert.d.ts +0 -2
  45. package/icons/IconCircleCheck.d.ts +0 -2
  46. package/icons/IconCircleHelp.d.ts +0 -2
  47. package/icons/IconCircleInfo.d.ts +0 -2
  48. package/icons/IconEye.d.ts +0 -2
  49. package/icons/IconEyeClosed.d.ts +0 -2
  50. package/icons/IconX.d.ts +0 -2
  51. package/styles/global/colors.d.ts +0 -1
  52. package/styles/theme/components/button.d.ts +0 -1
  53. /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
@@ -1,5 +0,0 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- //#region src/components/Button.tsx
3
- var t = (t) => /* @__PURE__ */ e("button", { ...t });
4
- //#endregion
5
- export { t as Button };
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconCalendar(props: Readonly<React.SVGProps<SVGSVGElement>>): React.JSX.Element;
3
- export default IconCalendar;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconChevronRight(props: Readonly<React.SVGProps<SVGSVGElement>>): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconCircleAlert(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconCircleCheck(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconCircleHelp(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconCircleInfo(props: React.SVGProps<SVGSVGElement>): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconEye(props: Readonly<React.SVGProps<SVGSVGElement>>): React.JSX.Element;
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconEyeClosed(props: Readonly<React.SVGProps<SVGSVGElement>>): React.JSX.Element;
package/icons/IconX.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { default as React } from 'react';
2
- export declare function IconX(props: Readonly<React.SVGProps<SVGSVGElement>>): React.JSX.Element;
@@ -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