@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.
Files changed (95) hide show
  1. package/AGENTS.md +216 -6
  2. package/Components.d.ts +2 -0
  3. package/Components.esm.js +20 -5
  4. package/Styles.d.ts +2 -0
  5. package/Styles.esm.js +8 -0
  6. package/Utilities.d.ts +2 -0
  7. package/Utilities.esm.js +2 -0
  8. package/_virtual/_rolldown/runtime.esm.js +11 -0
  9. package/package.json +42 -15
  10. package/{components → src/components}/Button.d.ts +2 -2
  11. package/src/components/Button.esm.js +23 -16
  12. package/src/components/Button.module.css +1 -0
  13. package/src/components/Button.module.esm.js +9 -0
  14. package/src/components/Button.module.scss +5 -0
  15. package/src/components/Checkbox.d.ts +7 -0
  16. package/src/components/Checkbox.esm.js +10 -0
  17. package/src/components/Input.d.ts +11 -0
  18. package/src/components/Input.esm.js +38 -3
  19. package/src/components/Input.module.css +1 -0
  20. package/src/components/Input.module.esm.js +11 -0
  21. package/src/components/Input.module.scss +141 -0
  22. package/src/components/InputPassword.d.ts +6 -0
  23. package/src/components/InputPassword.esm.js +32 -0
  24. package/{components → src/components}/Loader.d.ts +1 -2
  25. package/src/components/Loader.esm.js +15 -14
  26. package/{components → src/components}/Modal.d.ts +2 -3
  27. package/src/components/Modal.esm.js +40 -135
  28. package/src/components/Modal.module.css +1 -0
  29. package/src/components/Modal.module.esm.js +13 -0
  30. package/src/components/Modal.module.scss +133 -0
  31. package/src/components/RadioButton.d.ts +7 -0
  32. package/src/components/RadioButton.esm.js +10 -0
  33. package/{components → src/components}/index.d.ts +3 -0
  34. package/src/styles/components/ThemeProvider.d.ts +7 -0
  35. package/src/styles/components/ThemeProvider.esm.js +8 -0
  36. package/src/styles/global/components/_button.scss +64 -0
  37. package/src/styles/global/components/_checkbox.scss +78 -0
  38. package/src/styles/global/components/_code.scss +19 -0
  39. package/src/styles/global/components/_input.scss +46 -0
  40. package/src/styles/global/components/_mixins.scss +2 -0
  41. package/src/styles/global/components/_modal.scss +9 -0
  42. package/src/styles/global/components/_radioButton.scss +33 -0
  43. package/src/styles/global/components/_typography.scss +7 -0
  44. package/{styles → src/styles}/global/components/button.d.ts +1 -2
  45. package/{styles → src/styles}/global/components/loaders.d.ts +3 -5
  46. package/src/styles/global/components/loaders.esm.js +44 -55
  47. package/src/styles/global/components/loaders.module.css +1 -1
  48. package/src/styles/global/components/loaders.module.esm.js +15 -19
  49. package/src/styles/global/components/loaders.module.scss +73 -67
  50. package/src/styles/global/globalStyles.d.ts +1 -0
  51. package/src/styles/global/globalStyles.esm.js +4 -0
  52. package/src/styles/global/globalStyles.module.scss +129 -0
  53. package/src/styles/global/variables.esm.js +11 -0
  54. package/src/styles/index.d.ts +7 -0
  55. package/src/styles/theme/components.esm.js +12 -0
  56. package/src/styles/theme/constants.esm.js +4 -0
  57. package/src/styles/theme/theme.d.ts +2 -0
  58. package/src/styles/theme/theme.esm.js +56 -0
  59. package/{styles → src/styles}/theme/types.d.ts +10 -3
  60. package/src/styles/theme/utilities.d.ts +3 -0
  61. package/src/styles/theme/utilities.esm.js +48 -0
  62. package/src/styles/utilities/color.d.ts +174 -0
  63. package/src/styles/utilities/color.esm.js +4 -8
  64. package/src/styles/utilities/constants.d.ts +172 -0
  65. package/src/styles/utilities/constants.esm.js +175 -71
  66. package/{styles → src/styles}/utilities/layout.d.ts +6 -4
  67. package/src/styles/utilities/layout.esm.js +28 -29
  68. package/src/styles/utilities/types.d.ts +85 -0
  69. package/src/styles/utilities/types.esm.js +54 -0
  70. package/src/utilities/index.d.ts +1 -0
  71. package/src/utilities/validations.esm.js +9 -0
  72. package/components/Input.d.ts +0 -2
  73. package/src/styles/utilities/config.esm.js +0 -25
  74. package/stories/Button.stories.d.ts +0 -15
  75. package/stories/Colors.stories.d.ts +0 -5
  76. package/stories/Icons.stories.d.ts +0 -36
  77. package/stories/Loaders.stories.d.ts +0 -6
  78. package/stories/Modal.stories.d.ts +0 -8
  79. package/stories/Toastify.stories.d.ts +0 -7
  80. package/stories/Typography.stories.d.ts +0 -6
  81. package/styles/global/components/code.d.ts +0 -1
  82. package/styles/global/components/typography.d.ts +0 -11
  83. package/styles/global/globalStyles.d.ts +0 -1
  84. package/styles/theme/theme.d.ts +0 -8
  85. package/styles/theme/utilities.d.ts +0 -2
  86. package/styles/utilities/color.d.ts +0 -5
  87. package/styles/utilities/config.d.ts +0 -7
  88. package/styles/utilities/constants.d.ts +0 -77
  89. package/styles/utilities/types.d.ts +0 -17
  90. /package/{components → src/components}/Progress.d.ts +0 -0
  91. /package/{main.d.ts → src/main.d.ts} +0 -0
  92. /package/{styles → src/styles}/global/variables.d.ts +0 -0
  93. /package/{styles → src/styles}/theme/components.d.ts +0 -0
  94. /package/{styles → src/styles}/theme/constants.d.ts +0 -0
  95. /package/{utilities → src/utilities}/validations.d.ts +0 -0
@@ -1,79 +1,183 @@
1
1
  //#region src/styles/utilities/constants.ts
2
2
  var e = {
3
- text: "#2e2e2e",
4
- primary: "#005cac",
5
- transparent: "transparent",
6
- white: "#ffffff",
7
- black: "#000000",
8
- grey50: "#f8fafc",
9
- grey100: "#f1f5f9",
10
- grey200: "#e2e8f0",
11
- grey300: "#cbd5e1",
12
- grey400: "#94a3b8",
13
- grey500: "#64748b",
14
- grey600: "#475569",
15
- grey700: "#334155",
16
- grey800: "#1e293b",
17
- grey900: "#0f172a",
18
- blue50: "#eff6ff",
19
- blue100: "#dbeafe",
20
- blue200: "#bfdbfe",
21
- blue300: "#93c5fd",
22
- blue400: "#60a5fa",
23
- blue500: "#3b82f6",
24
- blue600: "#2563eb",
25
- blue700: "#1d4ed8",
26
- blue800: "#1e40af",
27
- blue900: "#1e3a8a",
28
- green50: "#f0fdf4",
29
- green100: "#dcfce7",
30
- green200: "#bbf7d0",
31
- green300: "#86efac",
32
- green400: "#4ade80",
33
- green500: "#22c55e",
34
- green600: "#16a34a",
35
- green700: "#15803d",
36
- green800: "#166534",
37
- green900: "#14532d",
38
- yellow50: "#fefce8",
39
- yellow100: "#fef9c3",
40
- yellow200: "#fef08a",
41
- yellow300: "#fde047",
42
- yellow400: "#facc15",
43
- yellow500: "#eab308",
44
- yellow600: "#ca8a04",
45
- yellow700: "#a16207",
46
- yellow800: "#854d0e",
47
- yellow900: "#713f12",
48
- red50: "#fef2f2",
49
- red100: "#fee2e2",
50
- red200: "#fecaca",
51
- red300: "#fca5a5",
52
- red400: "#f87171",
53
- red500: "#ef4444",
54
- red600: "#dc2626",
55
- red700: "#b91c1c",
56
- red800: "#991b1b",
57
- red900: "#7f1d1d",
58
- purple50: "#faf5ff",
59
- purple100: "#f3e8ff",
60
- purple200: "#e9d5ff",
61
- purple300: "#d8b4fe",
62
- purple400: "#c084fc",
63
- purple500: "#a855f7",
64
- purple600: "#9333ea",
65
- purple700: "#7e22ce",
66
- purple800: "#6b21a8",
67
- purple900: "#581c87"
3
+ red990: "#2A0D09",
4
+ red950: "#2E0E05",
5
+ red925: "#3E140E",
6
+ red900: "#451408",
7
+ red850: "#531A13",
8
+ red800: "#5C1B0A",
9
+ red750: "#7D271C",
10
+ red700: "#8A290F",
11
+ red650: "#A63426",
12
+ red600: "#B83614",
13
+ red550: "#D24A39",
14
+ red500: "#E54419",
15
+ red450: "#D96759",
16
+ red400: "#FB6249",
17
+ red350: "#E38D82",
18
+ red300: "#F2A18C",
19
+ red250: "#ECB3AC",
20
+ red200: "#F5B4A3",
21
+ red150: "#F6D9D5",
22
+ red100: "#FADAD1",
23
+ red50: "#FCECE8",
24
+ red10: "#FBF0EE",
25
+ orange950: "#1A1200",
26
+ orange900: "#332400",
27
+ orange800: "#664700",
28
+ orange700: "#996B00",
29
+ orange600: "#CC8E00",
30
+ orange500: "#F2A900",
31
+ orange400: "#FFC133",
32
+ orange300: "#FFD166",
33
+ orange200: "#FFE099",
34
+ orange100: "#FFF0CC",
35
+ orange50: "#FFFCF5",
36
+ yellow950: "#302503",
37
+ yellow900: "#483804",
38
+ yellow800: "#614A05",
39
+ yellow700: "#916F08",
40
+ yellow600: "#C1940B",
41
+ yellow500: "#F1BA0E",
42
+ yellow400: "#FFCF5A",
43
+ yellow300: "#F8DC86",
44
+ yellow200: "#FAE39E",
45
+ yellow100: "#FCF1CF",
46
+ yellow50: "#FEF8E7",
47
+ green990: "#040B09",
48
+ green975: "#071309",
49
+ green950: "#071310",
50
+ green900: "#061409",
51
+ green850: "#0F2410",
52
+ green800: "#0D2620",
53
+ green750: "#163E35",
54
+ green700: "#184E23",
55
+ green650: "#236254",
56
+ green600: "#456600",
57
+ green550: "#308874",
58
+ green500: "#389448",
59
+ green450: "#689900",
60
+ green400: "#46B95A",
61
+ green350: "#83C200",
62
+ green300: "#63CF79",
63
+ green250: "#7FD2BF",
64
+ green200: "#A7DC3C",
65
+ green100: "#B5E3BD",
66
+ green80: "#D1EB94",
67
+ green50: "#DAF1DE",
68
+ green10: "#F6FBEA",
69
+ blueGreen990: "#001C19",
70
+ blueGreen975: "#022427",
71
+ blueGreen950: "#13332E",
72
+ blueGreen900: "#0A3B43",
73
+ blueGreen850: "#0F4A45",
74
+ blueGreen800: "#0D4E59",
75
+ blueGreen750: "#045258",
76
+ blueGreen700: "#08ADBA",
77
+ blueGreen650: "#1D766E",
78
+ blueGreen600: "#137686",
79
+ blueGreen550: "#039084",
80
+ blueGreen500: "#2FBCB0",
81
+ blueGreen450: "#5CD6CC",
82
+ blueGreen400: "#85E0D9",
83
+ blueGreen300: "#ADEBE5",
84
+ blueGreen250: "#A6E7F2",
85
+ blueGreen150: "#D6F5F2",
86
+ blueGreen50: "#EBFAF9",
87
+ blueGreen10: "#EBFDFE",
88
+ teal900: "#06272D",
89
+ teal800: "#068089",
90
+ teal700: "#1A9DB2",
91
+ teal600: "#20C4DF",
92
+ teal500: "#0ADBEA",
93
+ teal450: "#6DE3EE",
94
+ teal400: "#32E8F6",
95
+ teal350: "#63EEF8",
96
+ teal300: "#94F3FA",
97
+ teal250: "#A7F5FB",
98
+ teal200: "#BCEDF5",
99
+ teal150: "#D2FAFD",
100
+ teal100: "#D2F3F9",
101
+ teal50: "#E9F9FC",
102
+ blue950: "#060B14",
103
+ blue900: "#0C1728",
104
+ blue800: "#172D4F",
105
+ blue700: "#234476",
106
+ blue600: "#2F5B9D",
107
+ blue500: "#3A70C2",
108
+ blue400: "#628ED0",
109
+ blue300: "#89AADC",
110
+ blue200: "#B0C6E8",
111
+ blue100: "#D7E2F3",
112
+ blue50: "#EFF4FA",
113
+ violet950: "#0D042F",
114
+ violet900: "#19095D",
115
+ violet800: "#260D8C",
116
+ violet700: "#3311BB",
117
+ violet600: "#3F16E9",
118
+ violet500: "#6644EE",
119
+ violet400: "#8C73F2",
120
+ violet300: "#9F8AF4",
121
+ violet200: "#B2A2F6",
122
+ violet100: "#D9D1FA",
123
+ violet50: "#ECE8FD",
124
+ purple950: "#26062D",
125
+ purple900: "#390A43",
126
+ purple800: "#4D0D59",
127
+ purple700: "#731386",
128
+ purple600: "#9919B2",
129
+ purple500: "#BF20DF",
130
+ purple400: "#E474EE",
131
+ purple300: "#DF8FEF",
132
+ purple200: "#E5A6F2",
133
+ purple100: "#F2D2F9",
134
+ purple50: "#F9E9FC",
135
+ beige990: "#110F09",
136
+ beige900: "#211E12",
137
+ beige800: "#423C24",
138
+ beige700: "#635A36",
139
+ beige600: "#847848",
140
+ beige500: "#A5965A",
141
+ beige400: "#B7AB7B",
142
+ beige300: "#C9C09C",
143
+ beige200: "#DBD5BD",
144
+ beige100: "#EDEADE",
145
+ beige50: "#F9F8F4",
146
+ gray999: "#0D0C0C",
147
+ gray980: "#1B1918",
148
+ gray950: "#212829",
149
+ gray900: "#2A2A2A",
150
+ gray850: "#343E40",
151
+ gray800: "#404040",
152
+ gray750: "#495457",
153
+ gray700: "#6B6361",
154
+ gray650: "#6C787D",
155
+ gray600: "#837976",
156
+ gray550: "#9E9694",
157
+ gray500: "#B6B0AF",
158
+ gray450: "#ADB9BD",
159
+ gray400: "#CFCBC9",
160
+ gray350: "#CED8DA",
161
+ gray300: "#DEE5E6",
162
+ gray250: "#E7E5E4",
163
+ gray200: "#F0F4F4",
164
+ gray150: "#F3F2F2",
165
+ gray100: "#F7F9F9",
166
+ gray50: "#FCFDFD",
167
+ gray10: "#FFFFFF",
168
+ white: "#FFFFFF",
169
+ black: "#101921",
170
+ text: "#101921"
68
171
  }, t = {
69
- text: 16,
70
- column: 60,
172
+ text: 14,
71
173
  gutter: 16,
72
- extDesktop: 1320,
73
- extNav: 1240,
74
- desktop: 1040,
174
+ column: 60,
175
+ mobileMax: 659.99999,
75
176
  tablet: 660,
76
- extMobile: 320
177
+ tabletMax: 1039.99999,
178
+ desktop: 1040,
179
+ desktopMax: 1319.99999,
180
+ extDesktop: 1320
77
181
  };
78
182
  //#endregion
79
183
  export { e as defaultColors, t as defaultWidths };
@@ -1,10 +1,12 @@
1
- import { CSSObject, SerializedStyles } from '@emotion/react';
2
- import { Breakpoint, LayoutWidthsType, ResponsiveWidth } from './types';
3
- export declare const widths: ResponsiveWidth;
1
+ import { Breakpoint, LayoutWidthsType } from './types';
2
+ export declare const widths: Record<LayoutWidthsType, string>;
4
3
  export declare const media: {
5
4
  readonly mobile: string;
5
+ readonly mobileMax: string;
6
6
  readonly tablet: string;
7
+ readonly tabletMax: string;
7
8
  readonly desktop: string;
9
+ readonly desktopMax: string;
8
10
  readonly extDesktop: string;
9
11
  readonly mobileOnly: string;
10
12
  readonly tabletOnly: string;
@@ -12,4 +14,4 @@ export declare const media: {
12
14
  readonly desktopOnly: string;
13
15
  };
14
16
  export declare const width: (w: LayoutWidthsType, multiplier?: number, px?: boolean) => string;
15
- export declare const breakpoint: (bp: Breakpoint, styles: SerializedStyles | CSSObject) => SerializedStyles;
17
+ export declare const breakpoint: (bp: Breakpoint, styles: string) => string;
@@ -1,48 +1,47 @@
1
- import { getCraftsmanConfig as e } from "./config.esm.js";
2
- import { css as t } from "@emotion/react";
1
+ import { defaultWidths as e } from "./constants.esm.js";
2
+ import { LayoutWidthsSchema as t } from "./types.esm.js";
3
3
  //#region src/styles/utilities/layout.ts
4
- var n = [
5
- "text",
6
- "column",
7
- "gutter",
8
- "extDesktop",
9
- "extNav",
10
- "desktop",
11
- "tablet",
12
- "extMobile",
13
- "mobileMax",
14
- "tabletMax",
15
- "desktopMax"
16
- ].reduce((t, n) => (t[n] = {
17
- enumerable: !0,
18
- get: () => e().widths[n]
19
- }, t), {}), r = Object.defineProperties({}, n), i = {
4
+ var n = Object.fromEntries(t.options.map((t) => [t, `var(--w-${t}, ${e[t]}px)`])), r = {
20
5
  get mobile() {
21
6
  return "(min-width: 0px)";
22
7
  },
8
+ get mobileMax() {
9
+ return `(max-width: ${n.mobileMax}px)`;
10
+ },
23
11
  get tablet() {
24
- return `(min-width: ${r.tablet}px)`;
12
+ return `(min-width: ${n.tablet}px)`;
13
+ },
14
+ get tabletMax() {
15
+ return `(max-width: ${n.tabletMax}px)`;
25
16
  },
26
17
  get desktop() {
27
- return `(min-width: ${r.desktop}px)`;
18
+ return `(min-width: ${n.desktop}px)`;
19
+ },
20
+ get desktopMax() {
21
+ return `(max-width: ${n.desktopMax}px)`;
28
22
  },
29
23
  get extDesktop() {
30
- return `(min-width: ${r.extDesktop}px)`;
24
+ return `(min-width: ${n.extDesktop}px)`;
31
25
  },
32
26
  get mobileOnly() {
33
- return `(min-width: 0px) and (max-width: ${r.mobileMax}px)`;
27
+ return `(min-width: 0px) and (max-width: ${n.mobileMax}px)`;
34
28
  },
35
29
  get tabletOnly() {
36
- return `(min-width: ${r.tablet}px) and (max-width: ${r.tabletMax}px)`;
30
+ return `(min-width: ${n.tablet}px) and (max-width: ${n.tabletMax}px)`;
37
31
  },
38
32
  get mobileTablet() {
39
- return `(min-width: 0px) and (max-width: ${r.tabletMax}px)`;
33
+ return `(min-width: 0px) and (max-width: ${n.tabletMax}px)`;
40
34
  },
41
35
  get desktopOnly() {
42
- return `(min-width: ${r.desktop}px) and (max-width: ${r.desktopMax}px)`;
36
+ return `(min-width: ${n.desktop}px) and (max-width: ${n.desktopMax}px)`;
37
+ }
38
+ }, i = (e, t = 1, r = !0) => {
39
+ let i = n[e];
40
+ if (e === "column") {
41
+ let e = t - 1, a = `calc((${i} * ${t}) + (${n.gutter} * ${e}))`;
42
+ return r ? a : `calc(((${i} / 1px) * ${t}) + ((${n.gutter} / 1px) * ${e}))`;
43
43
  }
44
- }, a = (e, n) => t`@media ${i[e]} {
45
- ${n}
46
- }`;
44
+ return r ? t === 1 ? i : `calc(${i} * ${t})` : t === 1 ? `calc(${i} / 1px)` : `calc((${i} / 1px) * ${t})`;
45
+ }, a = (e, t) => `@media ${r[e]} { ${String(t)} }`;
47
46
  //#endregion
48
- export { a as breakpoint, i as media, r as widths };
47
+ export { a as breakpoint, r as media, i as width, n as widths };
@@ -0,0 +1,85 @@
1
+ import { default as z } from 'zod';
2
+ export declare const BaseWidthSchema: z.ZodEnum<{
3
+ gutter: "gutter";
4
+ column: "column";
5
+ }>;
6
+ export declare const ScreenWidthSchema: z.ZodEnum<{
7
+ tablet: "tablet";
8
+ desktop: "desktop";
9
+ extDesktop: "extDesktop";
10
+ }>;
11
+ export declare const MaxScreenWidthSchema: z.ZodEnum<{
12
+ mobileMax: "mobileMax";
13
+ tabletMax: "tabletMax";
14
+ desktopMax: "desktopMax";
15
+ }>;
16
+ export declare const BreakpointSchema: z.ZodEnum<{
17
+ tablet: "tablet";
18
+ desktop: "desktop";
19
+ extDesktop: "extDesktop";
20
+ mobileMax: "mobileMax";
21
+ tabletMax: "tabletMax";
22
+ desktopMax: "desktopMax";
23
+ mobileOnly: "mobileOnly";
24
+ tabletOnly: "tabletOnly";
25
+ mobileTablet: "mobileTablet";
26
+ desktopOnly: "desktopOnly";
27
+ }>;
28
+ export declare const LayoutWidthsSchema: z.ZodEnum<{
29
+ text: "text";
30
+ gutter: "gutter";
31
+ column: "column";
32
+ tablet: "tablet";
33
+ desktop: "desktop";
34
+ extDesktop: "extDesktop";
35
+ mobileMax: "mobileMax";
36
+ tabletMax: "tabletMax";
37
+ desktopMax: "desktopMax";
38
+ }>;
39
+ export type BaseWidth = z.infer<typeof BaseWidthSchema>;
40
+ export type ScreenWidth = z.infer<typeof ScreenWidthSchema>;
41
+ export type MaxScreenWidth = z.infer<typeof MaxScreenWidthSchema>;
42
+ export type Breakpoint = z.infer<typeof BreakpointSchema>;
43
+ export type LayoutWidthsType = z.infer<typeof LayoutWidthsSchema>;
44
+ export type Width = Record<LayoutWidthsType, number>;
45
+ export type Colors = Record<string, string>;
46
+ export type ColorType = "rgba" | "hex";
47
+ export declare const zTextInputExclusions: z.ZodEnum<{
48
+ checkbox: "checkbox";
49
+ radio: "radio";
50
+ }>;
51
+ export type TextInputExclusions = z.infer<typeof zTextInputExclusions>;
52
+ export declare const zTextInputTypes: readonly ["color", "date", "datetime-local", "email", "file", "hidden", "image", "month", "number", "password", "range", "reset", "search", "submit", "tel", "text", "time", "url", "week", "radio", "checkbox"];
53
+ export declare const zTextInputType: z.ZodEnum<{
54
+ number: "number";
55
+ text: "text";
56
+ checkbox: "checkbox";
57
+ radio: "radio";
58
+ color: "color";
59
+ date: "date";
60
+ "datetime-local": "datetime-local";
61
+ email: "email";
62
+ file: "file";
63
+ hidden: "hidden";
64
+ image: "image";
65
+ month: "month";
66
+ password: "password";
67
+ range: "range";
68
+ reset: "reset";
69
+ search: "search";
70
+ submit: "submit";
71
+ tel: "tel";
72
+ time: "time";
73
+ url: "url";
74
+ week: "week";
75
+ }>;
76
+ export type TextInputType = z.infer<typeof zTextInputType>;
77
+ export declare const zLabelPosition: z.ZodEnum<{
78
+ hidden: "hidden";
79
+ top: "top";
80
+ left: "left";
81
+ bottom: "bottom";
82
+ right: "right";
83
+ inside: "inside";
84
+ }>;
85
+ export type LabelPosition = z.infer<typeof zLabelPosition>;
@@ -0,0 +1,54 @@
1
+ import e from "zod";
2
+ //#region src/styles/utilities/types.ts
3
+ var t = e.enum(["gutter", "column"]), n = e.enum([
4
+ "tablet",
5
+ "desktop",
6
+ "extDesktop"
7
+ ]), r = e.enum([
8
+ "mobileMax",
9
+ "tabletMax",
10
+ "desktopMax"
11
+ ]), i = e.enum([
12
+ ...n.options,
13
+ ...r.options,
14
+ "mobileOnly",
15
+ "tabletOnly",
16
+ "mobileTablet",
17
+ "desktopOnly"
18
+ ]), a = e.enum([
19
+ ...t.options,
20
+ ...n.options,
21
+ ...r.options,
22
+ "text"
23
+ ]), o = e.enum(["checkbox", "radio"]), s = [
24
+ "color",
25
+ "date",
26
+ "datetime-local",
27
+ "email",
28
+ "file",
29
+ "hidden",
30
+ "image",
31
+ "month",
32
+ "number",
33
+ "password",
34
+ "range",
35
+ "reset",
36
+ "search",
37
+ "submit",
38
+ "tel",
39
+ "text",
40
+ "time",
41
+ "url",
42
+ "week",
43
+ "radio",
44
+ "checkbox"
45
+ ], c = e.enum(s), l = e.enum([
46
+ "top",
47
+ "left",
48
+ "bottom",
49
+ "right",
50
+ "inside",
51
+ "hidden"
52
+ ]);
53
+ //#endregion
54
+ export { t as BaseWidthSchema, i as BreakpointSchema, a as LayoutWidthsSchema, r as MaxScreenWidthSchema, n as ScreenWidthSchema, l as zLabelPosition, o as zTextInputExclusions, c as zTextInputType, s as zTextInputTypes };
@@ -0,0 +1 @@
1
+ export * from './validations';
@@ -0,0 +1,9 @@
1
+ //#region src/utilities/validations.ts
2
+ function e(e) {
3
+ return e == null || typeof e == "object" && Object.keys(e).length === 0 || typeof e == "string" && e.trim().length === 0 || typeof e == "string" && e === " ";
4
+ }
5
+ function t(e) {
6
+ return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(e);
7
+ }
8
+ //#endregion
9
+ export { e as isEmpty, t as validateEmail };
@@ -1,2 +0,0 @@
1
- export type InputProps = React.ComponentProps<"input">;
2
- export declare const Input: React.FC<InputProps>;
@@ -1,25 +0,0 @@
1
- import { defaultColors as e, defaultWidths as t } from "./constants.esm.js";
2
- //#region src/styles/utilities/config.ts
3
- var n = {
4
- colors: e,
5
- widths: t
6
- }, r = {
7
- colors: { ...n.colors },
8
- widths: { ...n.widths }
9
- };
10
- function i(e) {
11
- return {
12
- ...e,
13
- mobileMax: e.tablet - 1e-5,
14
- tabletMax: e.desktop - 1e-5,
15
- desktopMax: e.extDesktop - 1e-5
16
- };
17
- }
18
- function a() {
19
- return {
20
- colors: { ...r.colors },
21
- widths: i(r.widths)
22
- };
23
- }
24
- //#endregion
25
- export { a as getCraftsmanConfig };
@@ -1,15 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Button } from '../components/Button';
3
- declare const meta: Meta<typeof Button>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Default: Story;
7
- export declare const Primary: Story;
8
- export declare const Text: Story;
9
- export declare const Disabled: Story;
10
- export declare const FullyDisabled: Story;
11
- export declare const Loading: Story;
12
- export declare const AsSubmit: Story;
13
- export declare const WithClassName: Story;
14
- export declare const WithAriaLabel: Story;
15
- export declare const WithEmotionStyles: Story;
@@ -1,5 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const Palette: Story;
@@ -1,36 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const AntDesign: Story;
6
- export declare const BoxIcons: Story;
7
- export declare const BootstrapIcons: Story;
8
- export declare const CssGgIcons: Story;
9
- export declare const CircumIcons: Story;
10
- export declare const Devicons: Story;
11
- export declare const FontAwesome: Story;
12
- export declare const FontAwesome6: Story;
13
- export declare const FlatColorIcons: Story;
14
- export declare const Feather: Story;
15
- export declare const GameIcons: Story;
16
- export declare const GithubOcticons: Story;
17
- export declare const GrommetIcons: Story;
18
- export declare const HeroIcons: Story;
19
- export declare const HeroIcons2: Story;
20
- export declare const IcoMoonFree: Story;
21
- export declare const Ionicons4: Story;
22
- export declare const Ionicons5: Story;
23
- export declare const LineAwesome: Story;
24
- export declare const Lucide: Story;
25
- export declare const MaterialDesignIcons: Story;
26
- export declare const PhosphorIcons: Story;
27
- export declare const RemixIcons: Story;
28
- export declare const RadixIcons: Story;
29
- export declare const SimpleIcons: Story;
30
- export declare const SimpleLineIcons: Story;
31
- export declare const TablerIcons: Story;
32
- export declare const ThemifyIcons: Story;
33
- export declare const Typicons: Story;
34
- export declare const VSCodeIcons: Story;
35
- export declare const WeatherIcons: Story;
36
- export declare const Palette: Story;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Loader } from '../components/Loader';
3
- declare const meta: Meta<typeof Loader>;
4
- export default meta;
5
- type Story = StoryObj<typeof Loader>;
6
- export declare const Basic: Story;
@@ -1,8 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Modal } from '../components/Modal';
3
- declare const meta: Meta<typeof Modal>;
4
- export default meta;
5
- type Story = StoryObj<typeof meta>;
6
- export declare const Dialog: Story;
7
- export declare const Panel: Story;
8
- export declare const NonDismissableBackground: Story;
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { ToastContainerProps } from 'react-toastify';
3
- type StoryArgs = Pick<ToastContainerProps, "position" | "autoClose" | "theme" | "closeOnClick" | "pauseOnHover" | "draggable" | "newestOnTop">;
4
- declare const meta: Meta<StoryArgs>;
5
- export default meta;
6
- type Story = StoryObj<StoryArgs>;
7
- export declare const UsageGuide: Story;
@@ -1,6 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react-vite';
2
- declare const meta: Meta;
3
- export default meta;
4
- type Story = StoryObj<typeof meta>;
5
- export declare const ScaleAndSemantics: Story;
6
- export declare const LongFormArticle: Story;
@@ -1 +0,0 @@
1
- export declare const code: import('@emotion/utils').SerializedStyles;
@@ -1,11 +0,0 @@
1
- export declare const typography: {
2
- body: import('@emotion/utils').SerializedStyles;
3
- h1: import('@emotion/utils').SerializedStyles;
4
- h2: import('@emotion/utils').SerializedStyles;
5
- h3: import('@emotion/utils').SerializedStyles;
6
- h4: import('@emotion/utils').SerializedStyles;
7
- h5: import('@emotion/utils').SerializedStyles;
8
- h6: import('@emotion/utils').SerializedStyles;
9
- p: import('@emotion/utils').SerializedStyles;
10
- };
11
- export declare const typographyStyles: import('@emotion/utils').SerializedStyles[];
@@ -1 +0,0 @@
1
- export declare const globalStyles: import('@emotion/utils').SerializedStyles;
@@ -1,8 +0,0 @@
1
- import { SerializedStyles } from '@emotion/react';
2
- import { default as React } from 'react';
3
- import { Theme, ThemeProviderProps } from './types';
4
- export declare function CraftsmanThemeProvider({ theme, children }: ThemeProviderProps): React.ReactElement<{
5
- theme: Theme;
6
- children?: React.ReactNode;
7
- }, string | React.JSXElementConstructor<any>>;
8
- export declare function themeBuilder(theme: Theme): SerializedStyles;
@@ -1,2 +0,0 @@
1
- import { CSSObject, SerializedStyles } from '@emotion/react';
2
- export declare function toCSSObject(value: CSSObject | SerializedStyles): CSSObject;