@stamcat/craftsman 0.0.23-alpha.8 → 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 (99) hide show
  1. package/AGENTS.md +372 -0
  2. package/Components.d.ts +2 -0
  3. package/Components.esm.js +20 -3
  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 +49 -11
  10. package/src/components/Button.d.ts +7 -0
  11. package/src/components/Button.esm.js +27 -0
  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 +40 -0
  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/src/components/Loader.d.ts +8 -0
  25. package/src/components/Loader.esm.js +20 -0
  26. package/src/components/Modal.d.ts +22 -0
  27. package/src/components/Modal.esm.js +61 -0
  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/src/components/index.d.ts +7 -0
  34. package/src/main.d.ts +1 -0
  35. package/src/styles/components/ThemeProvider.d.ts +7 -0
  36. package/src/styles/components/ThemeProvider.esm.js +8 -0
  37. package/src/styles/global/components/_button.scss +64 -0
  38. package/src/styles/global/components/_checkbox.scss +78 -0
  39. package/src/styles/global/components/_code.scss +19 -0
  40. package/src/styles/global/components/_input.scss +46 -0
  41. package/src/styles/global/components/_mixins.scss +2 -0
  42. package/src/styles/global/components/_modal.scss +9 -0
  43. package/src/styles/global/components/_radioButton.scss +33 -0
  44. package/src/styles/global/components/_typography.scss +7 -0
  45. package/src/styles/global/components/button.d.ts +7 -0
  46. package/src/styles/global/components/loaders.d.ts +15 -0
  47. package/src/styles/global/components/loaders.esm.js +54 -0
  48. package/src/styles/global/components/loaders.module.css +1 -0
  49. package/src/styles/global/components/loaders.module.esm.js +21 -0
  50. package/src/styles/global/components/loaders.module.scss +246 -0
  51. package/src/styles/global/globalStyles.d.ts +1 -0
  52. package/src/styles/global/globalStyles.esm.js +4 -0
  53. package/src/styles/global/globalStyles.module.scss +129 -0
  54. package/src/styles/global/variables.d.ts +2 -0
  55. package/src/styles/global/variables.esm.js +11 -0
  56. package/src/styles/index.d.ts +7 -0
  57. package/{styles → src/styles}/theme/components.d.ts +1 -1
  58. package/src/styles/theme/components.esm.js +12 -0
  59. package/src/styles/theme/constants.d.ts +1 -0
  60. package/src/styles/theme/constants.esm.js +4 -0
  61. package/src/styles/theme/theme.d.ts +2 -0
  62. package/src/styles/theme/theme.esm.js +56 -0
  63. package/{styles → src/styles}/theme/types.d.ts +10 -3
  64. package/src/styles/theme/utilities.d.ts +3 -0
  65. package/src/styles/theme/utilities.esm.js +48 -0
  66. package/src/styles/utilities/color.d.ts +174 -0
  67. package/src/styles/utilities/color.esm.js +15 -0
  68. package/src/styles/utilities/constants.d.ts +172 -0
  69. package/src/styles/utilities/constants.esm.js +183 -0
  70. package/src/styles/utilities/layout.d.ts +17 -0
  71. package/src/styles/utilities/layout.esm.js +47 -0
  72. package/src/styles/utilities/types.d.ts +85 -0
  73. package/src/styles/utilities/types.esm.js +54 -0
  74. package/src/utilities/index.d.ts +1 -0
  75. package/src/utilities/validations.esm.js +9 -0
  76. package/Button.esm.js +0 -5
  77. package/Input.esm.js +0 -5
  78. package/components/Button.d.ts +0 -2
  79. package/components/Input.d.ts +0 -2
  80. package/components/index.d.ts +0 -2
  81. package/icons/IconCalendar.d.ts +0 -3
  82. package/icons/IconChevronRight.d.ts +0 -2
  83. package/icons/IconCircleAlert.d.ts +0 -2
  84. package/icons/IconCircleCheck.d.ts +0 -2
  85. package/icons/IconCircleHelp.d.ts +0 -2
  86. package/icons/IconCircleInfo.d.ts +0 -2
  87. package/icons/IconEye.d.ts +0 -2
  88. package/icons/IconEyeClosed.d.ts +0 -2
  89. package/icons/IconX.d.ts +0 -2
  90. package/stories/Button.stories.d.ts +0 -8
  91. package/styles/global/colors.d.ts +0 -1
  92. package/styles/global/components/button.d.ts +0 -1
  93. package/styles/global/globalStyles.d.ts +0 -1
  94. package/styles/theme/components/button.d.ts +0 -1
  95. package/styles/theme/constants.d.ts +0 -2
  96. package/styles/theme/theme.d.ts +0 -8
  97. package/styles/utilities/color.d.ts +0 -69
  98. /package/{main.d.ts → src/components/Progress.d.ts} +0 -0
  99. /package/{utilities → src/utilities}/validations.d.ts +0 -0
@@ -0,0 +1,46 @@
1
+ %inside-input-label-base {
2
+ --react-international-phone-height: 50px;
3
+ --react-international-phone-border-radius: 8px;
4
+ --react-international-phone-border-color: #c0c0c0ff;
5
+ position: relative;
6
+ }
7
+
8
+ %inside-input-label-floating {
9
+ top: -0.5rem;
10
+ left: calc(var(--w-gutter, 16px) * 0.25);
11
+ font-size: calc(var(--w-text, 14px) * 0.75);
12
+ }
13
+
14
+ %interactive-focus-reset {
15
+ &:focus {
16
+ outline: 0;
17
+ box-shadow: none;
18
+ }
19
+ }
20
+
21
+ %input-base {
22
+ color: var(--text);
23
+ border-radius: 3px;
24
+ border: 1px solid var(--gray400);
25
+ padding: calc(var(--w-gutter, 16px) * 0.5);
26
+ background-color: var(--white);
27
+
28
+ &[type="number"]::-webkit-outer-spin-button,
29
+ &[type="number"]::-webkit-inner-spin-button {
30
+ -webkit-appearance: none;
31
+ margin: 0;
32
+ }
33
+
34
+ &[type="number"] {
35
+ -moz-appearance: textfield;
36
+ appearance: textfield;
37
+ }
38
+
39
+ &:disabled,
40
+ &.disabled {
41
+ border-color: var(--gray200);
42
+ background-color: var(--gray100);
43
+ }
44
+
45
+ @extend %interactive-focus-reset;
46
+ }
@@ -0,0 +1,9 @@
1
+ %modal-overlay {
2
+ position: fixed;
3
+ width: 100%;
4
+ height: 100%;
5
+ left: 0;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ }
@@ -0,0 +1,33 @@
1
+ %radio {
2
+ --radio-btn-size: 16px;
3
+ transition: border-color 0.2s ease;
4
+ appearance: none;
5
+ cursor: pointer;
6
+ position: relative;
7
+ display: inline-grid;
8
+ place-content: center;
9
+ padding: 0;
10
+ width: var(--radio-btn-size);
11
+ height: var(--radio-btn-size);
12
+ border: 1px solid var(--blue600);
13
+ border-radius: 50%;
14
+ box-sizing: border-box;
15
+
16
+ &::before {
17
+ content: "";
18
+ width: calc(var(--radio-btn-size) * 0.5);
19
+ height: calc(var(--radio-btn-size) * 0.5);
20
+ border-radius: 50%;
21
+ transform: scale(0);
22
+ transition: transform 0.2s ease;
23
+ background-color: var(--blue600);
24
+ }
25
+
26
+ &:checked {
27
+ border-color: var(--gray500);
28
+
29
+ &::before {
30
+ transform: scale(1);
31
+ }
32
+ }
33
+ }
@@ -0,0 +1,7 @@
1
+ %body-typography {
2
+ font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
3
+ color: var(--text);
4
+ line-height: 1.5;
5
+ font-weight: 400;
6
+ font-size: var(--w-text, 14px);
7
+ }
@@ -0,0 +1,7 @@
1
+ import { default as z } from 'zod';
2
+ export declare const ButtonType: z.ZodEnum<{
3
+ primary: "primary";
4
+ default: "default";
5
+ text: "text";
6
+ }>;
7
+ export type ButtonType = z.infer<typeof ButtonType>;
@@ -0,0 +1,15 @@
1
+ import { default as z } from 'zod';
2
+ import { default as React } from 'react';
3
+ export declare const LoaderStyleSchema: z.ZodEnum<{
4
+ spinner: "spinner";
5
+ dots: "dots";
6
+ "dots-trace": "dots-trace";
7
+ "dots-orbit": "dots-orbit";
8
+ dashes: "dashes";
9
+ swirl: "swirl";
10
+ ball: "ball";
11
+ boxy: "boxy";
12
+ }>;
13
+ export type LoaderStyle = z.infer<typeof LoaderStyleSchema>;
14
+ export type LoaderStyleDefinition = (color: string, width?: number) => React.CSSProperties;
15
+ export declare const loaders: Record<LoaderStyle, LoaderStyleDefinition>;
@@ -0,0 +1,54 @@
1
+ import e from "zod";
2
+ e.enum([
3
+ "dots",
4
+ "dots-trace",
5
+ "dots-orbit",
6
+ "dashes",
7
+ "spinner",
8
+ "swirl",
9
+ "ball",
10
+ "boxy"
11
+ ]);
12
+ var t = {
13
+ dots: (e, t = 100) => ({
14
+ "--_l5c": e,
15
+ "--_l5w": `${Math.round(t * .125)}px`,
16
+ "--_l5w2": `${Math.round(t * .16666)}px`,
17
+ "--_l5w3": `${Math.round(t * -.16666)}px`
18
+ }),
19
+ "dots-trace": (e, t = 60) => ({
20
+ "--_dtc": e,
21
+ "--_dtw": `${t}px`
22
+ }),
23
+ "dots-orbit": (e, t = 17) => ({
24
+ "--_doc": e,
25
+ "--_dow": `${t}px`
26
+ }),
27
+ dashes: (e, t = 40) => ({
28
+ "--_dshc": e,
29
+ "--_dshw": `${t}px`,
30
+ "--_dshw2": `${Math.round(t / 4)}px`
31
+ }),
32
+ spinner: (e, t = 50) => ({
33
+ "--_spnc": e,
34
+ "--_spnw": `${t}px`,
35
+ "--_spnw2": `${Math.round(t * .16)}px`
36
+ }),
37
+ swirl: (e, t = 50) => ({
38
+ "--_swrlc": e,
39
+ "--_swrlw": `${t}px`,
40
+ "--_swrlw2": `${Math.round(t * .16)}px`
41
+ }),
42
+ ball: (e, t = 50) => ({
43
+ "--_ballc": e,
44
+ "--_ballw": `${t}px`,
45
+ "--_ballw2": `${Math.round(t * .24)}px`
46
+ }),
47
+ boxy: (e, t = 120) => ({
48
+ "--_boxc": e,
49
+ "--_boxw": `${t}px`,
50
+ "--_boxw2": `${Math.round(t * .16666)}px`
51
+ })
52
+ };
53
+ //#endregion
54
+ export { t as loaders };
@@ -0,0 +1 @@
1
+ ._dots_1w7tl_1{aspect-ratio:1;width:var(--_l5w);margin:0 var(--_l5w2);border-radius:50%;animation:1s linear infinite alternate _l5_1w7tl_1}@keyframes _l5_1w7tl_1{0%{box-shadow:var(--_l5w2) 0 var(--_l5c), var(--_l5w3) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%);background:var(--_l5c)}33%{box-shadow:var(--_l5w2) 0 var(--_l5c), var(--_l5w3) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%);background:color-mix(in srgb, var(--_l5c) 80%, white 75%)}66%{box-shadow:var(--_l5w2) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%), var(--_l5w3) 0 var(--_l5c);background:color-mix(in srgb, var(--_l5c) 80%, white 75%)}to{box-shadow:var(--_l5w2) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%), var(--_l5w3) 0 var(--_l5c);background:var(--_l5c)}}@keyframes _l3_1w7tl_1{to{transform:rotate(1turn)}}._dots-trace_1w7tl_41{width:var(--_dtw);aspect-ratio:4;background:radial-gradient(circle closest-side, var(--_dtc) 90%, #0000) 0/33.3333% 100% space;clip-path:inset(0 100% 0 0);animation:1s steps(4,end) infinite _l1_1w7tl_1}@keyframes _l1_1w7tl_1{to{clip-path:inset(0 -34% 0 0)}}._dots-orbit_1w7tl_54{width:var(--_dow);aspect-ratio:1;background:var(--_doc);border-radius:50%;animation:2s linear infinite _l22-0_1w7tl_1;display:grid}._dots-orbit_1w7tl_54:before,._dots-orbit_1w7tl_54:after{content:"";background:inherit;border-radius:50%;grid-area:1/1;margin:15%;animation:1s infinite _l22_1w7tl_1;transform:rotate(0)translate(150%)}._dots-orbit_1w7tl_54:after{animation-delay:-.5s}@keyframes _l22-0_1w7tl_1{to{transform:rotate(1turn)}}@keyframes _l22_1w7tl_1{to{transform:rotate(1turn)translate(150%)}}._dashes_1w7tl_85{width:var(--_dshw);height:calc(var(--_dshw) * .3);background:linear-gradient(var(--_dshc) 0 0) left/var(--_dshw2) 4px, linear-gradient(var(--_dshc) 0 0) center/var(--_dshw2) 4px, linear-gradient(var(--_dshc) 0 0) right/var(--_dshw2) 4px;background-repeat:no-repeat;animation:1s linear infinite _dashes_1w7tl_85}@keyframes _dashes_1w7tl_85{0%{background-size:var(--_dshw2) 4px, var(--_dshw2) 4px, var(--_dshw2) 4px;opacity:1}33%{background-size:var(--_dshw2) var(--_dshw2), var(--_dshw2) 4px, var(--_dshw2) 4px;opacity:.7}66%{background-size:var(--_dshw2) 4px, var(--_dshw2) var(--_dshw2), var(--_dshw2) 4px;opacity:.7}to{background-size:var(--_dshw2) 4px, var(--_dshw2) 4px, var(--_dshw2) var(--_dshw2);opacity:1}}._spinner_1w7tl_111{width:var(--_spnw);aspect-ratio:1;border:var(--_spnw2) solid color-mix(in srgb, var(--_spnc) 20%, transparent);border-right-color:var(--_spnc);border-radius:50%;animation:1s linear infinite _l2_1w7tl_1}@keyframes _l2_1w7tl_1{to{transform:rotate(1turn)}}._swirl_1w7tl_125{width:var(--_swrlw);padding:var(--_swrlw2);aspect-ratio:1;background:var(--_swrlc);--_m:conic-gradient(#0000 10%,#000), linear-gradient(#000 0 0) content-box;-webkit-mask:var(--_m);-webkit-mask:var(--_m);mask:var(--_m);-webkit-mask-composite:source-out;border-radius:50%;animation:1s linear infinite _l3_1w7tl_1;-webkit-mask-composite:source-out;mask-composite:subtract}._ball_1w7tl_146{width:var(--_ballw);aspect-ratio:1;background:radial-gradient(farthest-side, var(--_ballc) 95%, #0000) 50% 1px/var(--_ballw2) var(--_ballw2) no-repeat, radial-gradient(farthest-side, #0000 calc(100% - var(--_ballw2)), #ccc 0);border-radius:50%;animation:2s linear infinite _l9_1w7tl_1}@keyframes _l9_1w7tl_1{to{transform:rotate(1turn)}}._boxy_1w7tl_159{width:var(--_boxw);height:var(--_boxw2);background:linear-gradient(var(--_boxc) 0 0) left -25% top 0/20% 100% no-repeat #ddd;animation:1s steps(6,end) infinite _l7_1w7tl_1;-webkit-mask:linear-gradient(90deg,#000 70%,#0000 0) 0/20% 100%}@keyframes _l7_1w7tl_1{to{background-position:right -25% top 0}}
@@ -0,0 +1,21 @@
1
+ import './loaders.module.css';//#region src/styles/global/components/loaders.module.scss
2
+ var e = "_dots_1w7tl_1", t = "_l5_1w7tl_1", n = "_dots-trace_1w7tl_41", r = "_l1_1w7tl_1", i = "_dots-orbit_1w7tl_54", a = "_l22-0_1w7tl_1", o = "_l22_1w7tl_1", s = "_dashes_1w7tl_85", c = "_spinner_1w7tl_111", l = "_l2_1w7tl_1", u = "_swirl_1w7tl_125", d = "_l3_1w7tl_1", f = "_ball_1w7tl_146", p = "_l9_1w7tl_1", m = "_boxy_1w7tl_159", h = "_l7_1w7tl_1", g = {
3
+ dots: e,
4
+ l5: t,
5
+ dotsTrace: n,
6
+ l1: r,
7
+ dotsOrbit: i,
8
+ l220: a,
9
+ l22: o,
10
+ dashes: s,
11
+ spinner: c,
12
+ l2: l,
13
+ swirl: u,
14
+ l3: d,
15
+ ball: f,
16
+ l9: p,
17
+ boxy: m,
18
+ l7: h
19
+ };
20
+ //#endregion
21
+ export { f as ball, m as boxy, s as dashes, g as default, e as dots, i as dotsOrbit, n as dotsTrace, r as l1, l as l2, o as l22, a as l220, d as l3, t as l5, h as l7, p as l9, c as spinner, u as swirl };
@@ -0,0 +1,246 @@
1
+ .dots {
2
+ aspect-ratio: 1;
3
+ border-radius: 50%;
4
+ animation: l5 1s infinite linear alternate;
5
+ width: var(--_l5w);
6
+ margin: 0 var(--_l5w2);
7
+ }
8
+ @keyframes l5 {
9
+ 0% {
10
+ box-shadow:
11
+ var(--_l5w2) 0 var(--_l5c),
12
+ var(--_l5w3) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%);
13
+ background: var(--_l5c);
14
+ }
15
+ 33% {
16
+ box-shadow:
17
+ var(--_l5w2) 0 var(--_l5c),
18
+ var(--_l5w3) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%);
19
+ background: color-mix(in srgb, var(--_l5c) 80%, white 75%);
20
+ }
21
+ 66% {
22
+ box-shadow:
23
+ var(--_l5w2) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%),
24
+ var(--_l5w3) 0 var(--_l5c);
25
+ background: color-mix(in srgb, var(--_l5c) 80%, white 75%);
26
+ }
27
+ 100% {
28
+ box-shadow:
29
+ var(--_l5w2) 0 color-mix(in srgb, var(--_l5c) 80%, white 75%),
30
+ var(--_l5w3) 0 var(--_l5c);
31
+ background: var(--_l5c);
32
+ }
33
+ }
34
+
35
+ @keyframes l3 {
36
+ 20%{background-position:0% 0%, 50% 50%,100% 50%}
37
+ 40%{background-position:0% 100%, 50% 0%,100% 50%}
38
+ 60%{background-position:0% 50%, 50% 100%,100% 0%}
39
+ 80%{background-position:0% 50%, 50% 50%,100% 100%}
40
+ }
41
+ // .dots-bounce {
42
+ // width: var(--_gw);
43
+ // aspect-ratio: 2;
44
+ // background:
45
+ // var(--_g) 0% 50%,
46
+ // var(--_g) 50% 50%,
47
+ // var(--_g) 100% 50%;
48
+ // background-size: calc(100% / 3) 50%;
49
+ // animation: l3 1s infinite linear;
50
+ // }
51
+ // @keyframes l3 {
52
+ // 20% {
53
+ // background-position:
54
+ // 0% 0%,
55
+ // 50% 50%,
56
+ // 100% 50%;
57
+ // }
58
+ // 40% {
59
+ // background-position:
60
+ // 0% 100%,
61
+ // 50% 0%,
62
+ // 100% 50%;
63
+ // }
64
+ // 60% {
65
+ // background-position:
66
+ // 0% 50%,
67
+ // 50% 100%,
68
+ // 100% 0%;
69
+ // }
70
+ // 80% {
71
+ // background-position:
72
+ // 0% 50%,
73
+ // 50% 50%,
74
+ // 100% 100%;
75
+ // }
76
+ // }
77
+
78
+ .dots-trace {
79
+ width: var(--_dtw);
80
+ aspect-ratio: 4;
81
+ background: radial-gradient(circle closest-side, var(--_dtc) 90%, #0000) 0 / calc(100% / 3) 100% space;
82
+ clip-path: inset(0 100% 0 0);
83
+ animation: l1 1s steps(4) infinite;
84
+
85
+ }
86
+ @keyframes l1 {
87
+ to {
88
+ clip-path: inset(0 -34% 0 0);
89
+ }
90
+ }
91
+
92
+ .dots-orbit {
93
+ width: var(--_dow);
94
+ aspect-ratio: 1;
95
+ border-radius: 50%;
96
+ background: var(--_doc);
97
+ display: grid;
98
+ animation: l22-0 2s infinite linear;
99
+ &:before,
100
+ &:after {
101
+ content: "";
102
+ grid-area: 1/1;
103
+ margin: 15%;
104
+ border-radius: 50%;
105
+ background: inherit;
106
+ transform: rotate(0deg) translate(150%);
107
+ animation: l22 1s infinite;
108
+ }
109
+ &:after {
110
+ animation-delay: -.5s
111
+ }
112
+ }
113
+
114
+ @keyframes l22-0 {
115
+ 100% {transform: rotate(1turn)}
116
+ }
117
+ @keyframes l22 {
118
+ 100% {transform: rotate(1turn) translate(150%)}
119
+ }
120
+
121
+ .dashes {
122
+ width: var(--_dshw);
123
+ height: calc(var(--_dshw) * 0.3);
124
+ background:
125
+ linear-gradient(var(--_dshc) 0 0) left/var(--_dshw2) 4px,
126
+ linear-gradient(var(--_dshc) 0 0) center/var(--_dshw2) 4px,
127
+ linear-gradient(var(--_dshc) 0 0) right/var(--_dshw2) 4px;
128
+ background-repeat: no-repeat;
129
+ animation: dashes 1s infinite linear;
130
+
131
+ }
132
+ @keyframes dashes {
133
+ 0% {
134
+ background-size:
135
+ var(--_dshw2) 4px,
136
+ var(--_dshw2) 4px,
137
+ var(--_dshw2) 4px;
138
+ opacity: 1;
139
+ }
140
+ 33% {
141
+ background-size:
142
+ var(--_dshw2) var(--_dshw2),
143
+ var(--_dshw2) 4px,
144
+ var(--_dshw2) 4px;
145
+ opacity: 0.7;
146
+ }
147
+ 66% {
148
+ background-size:
149
+ var(--_dshw2) 4px,
150
+ var(--_dshw2) var(--_dshw2),
151
+ var(--_dshw2) 4px;
152
+ opacity: 0.7;
153
+ }
154
+ 100% {
155
+ background-size:
156
+ var(--_dshw2) 4px,
157
+ var(--_dshw2) 4px,
158
+ var(--_dshw2) var(--_dshw2);
159
+ opacity: 1;
160
+ }
161
+ }
162
+
163
+ .spinner {
164
+ width: var(--_spnw);
165
+ aspect-ratio: 1;
166
+ border-radius: 50%;
167
+ border: var(--_spnw2) solid color-mix(in srgb, var(--_spnc) 20%, transparent);
168
+ border-right-color: var(--_spnc);
169
+ animation: l2 1s infinite linear;
170
+ }
171
+ @keyframes l2 {to{transform: rotate(1turn)}}
172
+
173
+ .swirl {
174
+ width: var(--_swrlw);
175
+ padding: var(--_swrlw2);
176
+ aspect-ratio: 1;
177
+ border-radius: 50%;
178
+ background: var(--_swrlc);
179
+ --_m:
180
+ conic-gradient(#0000 10%,#000),
181
+ linear-gradient(#000 0 0) content-box;
182
+ -webkit-mask: var(--_m);
183
+ mask: var(--_m);
184
+ -webkit-mask-composite: source-out;
185
+ mask-composite: subtract;
186
+ animation: l3 1s infinite linear;
187
+ }
188
+ @keyframes l3 {to{transform: rotate(1turn)}}
189
+
190
+ .ball {
191
+ width: var(--_ballw);
192
+ aspect-ratio: 1;
193
+ border-radius: 50%;
194
+ background:
195
+ radial-gradient(farthest-side,var(--_ballc) 95%,#0000) 50% 1px/var(--_ballw2) var(--_ballw2) no-repeat,
196
+ radial-gradient(farthest-side,#0000 calc(100% - var(--_ballw2)),#ccc 0);
197
+ animation: l9 2s infinite linear;
198
+ }
199
+ @keyframes l9 {to{transform: rotate(1turn)}}
200
+
201
+ .boxy {
202
+ width: var(--_boxw);
203
+ height: var(--_boxw2);
204
+ -webkit-mask: linear-gradient(90deg,#000 70%,#0000 0) left/20% 100%;
205
+ background:
206
+ linear-gradient(var(--_boxc) 0 0) left -25% top 0 /20% 100% no-repeat
207
+ #ddd;
208
+ animation: l7 1s infinite steps(6);
209
+ }
210
+ @keyframes l7 {
211
+ 100% {background-position: right -25% top 0}
212
+ }
213
+
214
+ // .factory {
215
+ // width: var(--_ftyw);
216
+ // height: var(--_ftyw2);
217
+ // box-shadow: 0 3px 0 var(--_ftyc);
218
+ // position: relative;
219
+ // clip-path: inset(-40px 0 -5px);
220
+ // &:before {
221
+ // content: "";
222
+ // position: absolute;
223
+ // inset: auto calc(50% - 17px) 0;
224
+ // height: var(--_ftyw3);
225
+ // --g:no-repeat linear-gradient(color-mix(in srgb, var(--_ftyc) 30%, white) 0 0);
226
+ // background: var(--g),var(--g),var(--g),var(--g);
227
+ // background-size: var(--_ftyw4) 14px;
228
+ // animation:
229
+ // l7-1 2s infinite linear,
230
+ // l7-2 2s infinite linear;
231
+ // }
232
+ // }
233
+ // @keyframes l7-1 {
234
+ // 0%,
235
+ // 100% {background-position: 0 -var(--_ftyw3),100% -var(--_ftyw3)}
236
+ // 17.5% {background-position: 0 100%,100% -var(--_ftyw3),0 -var(--_ftyw3),100% -var(--_ftyw3)}
237
+ // 35% {background-position: 0 100%,100% 100% ,0 -var(--_ftyw3),100% -var(--_ftyw3)}
238
+ // 52.5% {background-position: 0 100%,100% 100% ,0 calc(100% - var(--_ftyw4)),100% -var(--_ftyw3)}
239
+ // 70%,
240
+ // 98% {background-position: 0 100%,100% 100% ,0 calc(100% - var(--_ftyw4)),100% calc(100% - var(--_ftyw4))}
241
+ // }
242
+ // @keyframes l7-2 {
243
+ // 0%,70% {transform:translate(0)}
244
+ // 100% {transform:translate(200%)}
245
+ // }
246
+
@@ -0,0 +1 @@
1
+ export declare const globalStyles = "globalStyles";
@@ -0,0 +1,4 @@
1
+ //#region src/styles/global/globalStyles.ts
2
+ var e = "globalStyles";
3
+ //#endregion
4
+ export { e as globalStyles };
@@ -0,0 +1,129 @@
1
+ @use "./components/typography";
2
+ @use "./components/code";
3
+ @use "./components/mixins" as mixins;
4
+ @use "./components/checkbox";
5
+ @use "./components/radioButton";
6
+ @use "./components/button";
7
+ @use "./components/input";
8
+
9
+ :global {
10
+ :root {
11
+ color-scheme: light dark;
12
+ font-synthesis: none;
13
+ text-rendering: optimizeLegibility;
14
+ -webkit-font-smoothing: antialiased;
15
+ -moz-osx-font-smoothing: grayscale;
16
+ }
17
+
18
+ ::-webkit-scrollbar {
19
+ width: 4px;
20
+ height: 4px;
21
+ }
22
+
23
+ ::-webkit-scrollbar-track {
24
+ background: #ddd;
25
+ }
26
+
27
+ ::-webkit-scrollbar-thumb {
28
+ background: #000;
29
+ border-radius: 6px;
30
+ }
31
+
32
+ ::-webkit-scrollbar-thumb:hover {
33
+ background: #555;
34
+ }
35
+
36
+ body {
37
+ @extend %body-typography;
38
+ }
39
+ body,
40
+ ul {
41
+ margin: 0;
42
+ padding: 0;
43
+ }
44
+
45
+ body {
46
+ background-color: #fff;
47
+ -webkit-overflow-scrolling: touch;
48
+ overscroll-behavior: contain;
49
+ }
50
+
51
+ fieldset {
52
+ padding: 0;
53
+ border: 0;
54
+ }
55
+
56
+ code {
57
+ @extend %code;
58
+ }
59
+
60
+ button {
61
+ @extend %button-styles;
62
+ }
63
+
64
+ input {
65
+ @extend %input-base;
66
+
67
+ &[type="radio"] {
68
+ @extend %radio;
69
+ }
70
+
71
+ &[type="checkbox"] {
72
+ @extend %checkbox;
73
+ }
74
+ }
75
+
76
+ a {
77
+ @extend %text-link;
78
+ }
79
+
80
+ h1 {
81
+ font-size: calc(var(--w-text, 14px) * 3.125);
82
+ line-height: 1.2;
83
+ }
84
+
85
+ h2 {
86
+ font-size: calc(var(--w-text, 14px) * 2.625);
87
+ font-weight: 625;
88
+ line-height: 1.1;
89
+ }
90
+
91
+ h3 {
92
+ font-size: calc(var(--w-text, 14px) * 1.625);
93
+ line-height: 1.1;
94
+ }
95
+
96
+ h4 {
97
+ font-size: calc(var(--w-text, 14px) * 1.25);
98
+ line-height: 1.1;
99
+ margin: calc(var(--w-gutter, 16px) * 0.5) 0;
100
+ }
101
+
102
+ h5 {
103
+ font-size: var(--w-text, 14px);
104
+ line-height: 1.2;
105
+ }
106
+
107
+ h6 {
108
+ font-size: calc(var(--w-text, 14px) * 0.875);
109
+ line-height: 1.2;
110
+ font-weight: 600;
111
+ }
112
+
113
+ p {
114
+ font-style: normal;
115
+ font-size: var(--w-text, 14px);
116
+ line-height: 1.5;
117
+ margin: 0;
118
+ }
119
+
120
+ @media (max-width: 659.99999px) {
121
+ h4 {
122
+ font-size: var(--w-text, 14px);
123
+ }
124
+
125
+ p {
126
+ font-size: calc(var(--w-text, 14px) * 0.875);
127
+ }
128
+ }
129
+ }
@@ -0,0 +1,2 @@
1
+ export declare const colors: string;
2
+ export declare const widths: string;
@@ -0,0 +1,11 @@
1
+ import { defaultWidths as e } from "../utilities/constants.esm.js";
2
+ import { colors as t } from "../utilities/color.esm.js";
3
+ //#region src/styles/global/variables.ts
4
+ var n = {
5
+ ...e,
6
+ mobileMax: e.tablet - 1e-5,
7
+ tabletMax: e.desktop - 1e-5,
8
+ desktopMax: e.extDesktop - 1e-5
9
+ }, r = Object.entries(t).map(([e, t]) => `--${e}: ${t};`).join("\n"), i = Object.entries(n).map(([e, t]) => `--w-${e}: ${t}px;`).join("\n");
10
+ //#endregion
11
+ export { r as colors, i as widths };
@@ -0,0 +1,7 @@
1
+ export * from './utilities/color';
2
+ export * from './utilities/constants';
3
+ export * from './utilities/layout';
4
+ export * from './utilities/types';
5
+ export * from './theme/theme';
6
+ export * from './global/globalStyles';
7
+ export { ThemeProvider } from './components/ThemeProvider';
@@ -1,4 +1,4 @@
1
- import * as exportedComponents from "../../components";
1
+ import * as exportedComponents from "../../components/index";
2
2
  type ExportedComponentName = keyof typeof exportedComponents & string;
3
3
  export type RegisteredComponentName = Uncapitalize<ExportedComponentName>;
4
4
  export declare const componentSelectors: Record<RegisteredComponentName, string>;
@@ -0,0 +1,12 @@
1
+ import { htmlTagNames as e } from "./constants.esm.js";
2
+ import { components_exports as t } from "../../../Components.esm.js";
3
+ //#region src/styles/theme/components.ts
4
+ function n(e) {
5
+ return e.charAt(0).toLowerCase() + e.slice(1);
6
+ }
7
+ function r(t) {
8
+ return e.has(t) ? `${t}, .${t}` : `.${t}`;
9
+ }
10
+ var i = Object.keys(t).map(n), a = Object.fromEntries(i.map((e) => [e, r(e)]));
11
+ //#endregion
12
+ export { a as componentSelectors };
@@ -0,0 +1 @@
1
+ export declare const htmlTagNames: Set<string>;
@@ -0,0 +1,4 @@
1
+ //#region src/styles/theme/constants.ts
2
+ var e = /* @__PURE__ */ new Set(/* @__PURE__ */ "a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.menu.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr".split("."));
3
+ //#endregion
4
+ export { e as htmlTagNames };
@@ -0,0 +1,2 @@
1
+ import { Theme } from './types';
2
+ export declare function themeBuilder(theme: Theme): string;