@stamcat/craftsman 0.0.27-alpha.10 → 0.0.27-alpha.11
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/Styles.esm.js +5 -5
- package/package.json +3 -1
- package/src/components/Carousel/Carousel.d.ts +12 -0
- package/src/components/Carousel/Carousel.scss +32 -0
- package/src/components/Loader/types.d.ts +1 -1
- package/src/stories/assets/Stam.jpg +0 -0
- package/src/stories/assets/kaluah.jpg +0 -0
- package/src/stories/assets/stam2.jpg +0 -0
- package/src/stories/assets/tito.jpg +0 -0
- package/src/stories/molecules/Carousel.scss +19 -0
- package/src/styles/global/globalStyles.scss +4 -0
- package/src/utilities/types.d.ts +5 -0
- package/src/utilities/types.esm.js +2 -2
package/Styles.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defaultColors as e, defaultWidths as t } from "./src/styles/utilities/constants.esm.js";
|
|
2
2
|
import { color as n, colors as r, hexToRgba as i } from "./src/styles/utilities/color.esm.js";
|
|
3
|
-
import { BaseWidthSchema as a, BreakpointSchema as o, ButtonType as s,
|
|
4
|
-
import { breakpoint as
|
|
5
|
-
import { themeBuilder as
|
|
6
|
-
import { ThemeProvider as
|
|
7
|
-
export { a as BaseWidthSchema, o as BreakpointSchema, s as ButtonType, c as
|
|
3
|
+
import { BaseWidthSchema as a, BreakpointSchema as o, ButtonType as s, CarouselPageType as c, LayoutWidthsSchema as l, MaxScreenWidthSchema as u, ScreenWidthSchema as d, TextSize as f, TextTags as p, TextType as m, zLabelPosition as h, zTextInputExclusions as g, zTextInputType as _, zTextInputTypes as v } from "./src/utilities/types.esm.js";
|
|
4
|
+
import { breakpoint as y, media as b, width as x, widths as S } from "./src/styles/utilities/layout.esm.js";
|
|
5
|
+
import { themeBuilder as C } from "./src/styles/theme/theme.esm.js";
|
|
6
|
+
import { ThemeProvider as w } from "./src/styles/components/ThemeProvider.esm.js";
|
|
7
|
+
export { a as BaseWidthSchema, o as BreakpointSchema, s as ButtonType, c as CarouselPageType, l as LayoutWidthsSchema, u as MaxScreenWidthSchema, d as ScreenWidthSchema, f as TextSize, p as TextTags, m as TextType, w as ThemeProvider, y as breakpoint, n as color, r as colors, e as defaultColors, t as defaultWidths, i as hexToRgba, b as media, C as themeBuilder, x as width, S as widths, h as zLabelPosition, g as zTextInputExclusions, _ as zTextInputType, v as zTextInputTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stamcat/craftsman",
|
|
3
|
-
"version": "0.0.27-alpha.
|
|
3
|
+
"version": "0.0.27-alpha.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A powerful, lightweight framework for design systems",
|
|
6
6
|
"repository": {
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"clsx": "2.1.1",
|
|
27
27
|
"dompurify": "3.4.13",
|
|
28
|
+
"embla-carousel-react": "8.6.0",
|
|
29
|
+
"pure-react-carousel": "1.35.0",
|
|
28
30
|
"react": "19.2.7",
|
|
29
31
|
"react-date-picker": "12.0.2",
|
|
30
32
|
"react-datetime-picker": "7.0.2",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { EmblaOptionsType } from 'embla-carousel';
|
|
3
|
+
import { CarouselPageType } from '../../utilities/types';
|
|
4
|
+
export type CarouselProps = {
|
|
5
|
+
slides?: React.ReactNode[];
|
|
6
|
+
options?: EmblaOptionsType;
|
|
7
|
+
className?: string;
|
|
8
|
+
style?: React.CSSProperties;
|
|
9
|
+
buttons?: boolean;
|
|
10
|
+
pagination?: CarouselPageType;
|
|
11
|
+
};
|
|
12
|
+
export declare const Carousel: React.FC<CarouselProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "../../styles/utilities/functions" as u;
|
|
2
|
+
|
|
3
|
+
.carousel {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
&__viewport {
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&__container {
|
|
11
|
+
display: flex;
|
|
12
|
+
touch-action: pan-y pinch-zoom;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&__slide {
|
|
16
|
+
flex: 0 0 100%;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__controls {
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
justify-content: space-between;
|
|
23
|
+
flex-flow: row nowrap;
|
|
24
|
+
gap: #{u.width("gutter", 0.5)};
|
|
25
|
+
margin-top: #{u.width("gutter", 0.75)};
|
|
26
|
+
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
&__dots button {
|
|
29
|
+
margin: 0 #{u.width("gutter", 0.125)};
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { default as z } from 'zod';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
export declare const LoaderStyleSchema: z.ZodEnum<{
|
|
4
|
-
spinner: "spinner";
|
|
5
4
|
dots: "dots";
|
|
5
|
+
spinner: "spinner";
|
|
6
6
|
"dots-trace": "dots-trace";
|
|
7
7
|
"dots-orbit": "dots-orbit";
|
|
8
8
|
dashes: "dashes";
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
|
|
2
|
+
@use "../../styles/utilities/functions" as u;
|
|
3
|
+
|
|
4
|
+
.carouselWrapper {
|
|
5
|
+
width: 400px;
|
|
6
|
+
img {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
figcaption {
|
|
10
|
+
position: absolute;
|
|
11
|
+
bottom: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
text-align: center;
|
|
14
|
+
font-weight: bold;
|
|
15
|
+
background-color: #{u.color("white", rgba, 0.75)};
|
|
16
|
+
padding: #{u.width("gutter", 0.5)} 0 #{u.width("gutter")};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
}
|
package/src/utilities/types.d.ts
CHANGED
|
@@ -116,3 +116,8 @@ export declare const TextSize: z.ZodEnum<{
|
|
|
116
116
|
xsmall: "xsmall";
|
|
117
117
|
}>;
|
|
118
118
|
export type TextSize = z.infer<typeof TextSize>;
|
|
119
|
+
export declare const CarouselPageType: z.ZodEnum<{
|
|
120
|
+
dots: "dots";
|
|
121
|
+
numbers: "numbers";
|
|
122
|
+
}>;
|
|
123
|
+
export type CarouselPageType = z.infer<typeof CarouselPageType>;
|
|
@@ -74,6 +74,6 @@ var t = e.enum(["gutter", "column"]), n = e.enum([
|
|
|
74
74
|
"medium",
|
|
75
75
|
"small",
|
|
76
76
|
"xsmall"
|
|
77
|
-
]);
|
|
77
|
+
]), m = e.enum(["dots", "numbers"]);
|
|
78
78
|
//#endregion
|
|
79
|
-
export { t as BaseWidthSchema, i as BreakpointSchema, u as ButtonType, a as LayoutWidthsSchema, r as MaxScreenWidthSchema, n as ScreenWidthSchema, p as TextSize, d as TextTags, f as TextType, l as zLabelPosition, o as zTextInputExclusions, c as zTextInputType, s as zTextInputTypes };
|
|
79
|
+
export { t as BaseWidthSchema, i as BreakpointSchema, u as ButtonType, m as CarouselPageType, a as LayoutWidthsSchema, r as MaxScreenWidthSchema, n as ScreenWidthSchema, p as TextSize, d as TextTags, f as TextType, l as zLabelPosition, o as zTextInputExclusions, c as zTextInputType, s as zTextInputTypes };
|