@masaraxui/styles 1.0.0 → 1.1.0
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/dist/components/index.css +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/page-hero/index.d.ts +2 -0
- package/dist/components/page-hero/index.d.ts.map +1 -0
- package/dist/components/page-hero/index.js +1 -0
- package/dist/components/page-hero/page-hero.styles.d.ts +83 -0
- package/dist/components/page-hero/page-hero.styles.d.ts.map +1 -0
- package/dist/components/page-hero/page-hero.styles.js +38 -0
- package/dist/components/page-hero.css +62 -0
- package/dist/index.js +1 -0
- package/dist/masaraxui.min.css +1 -1
- package/package.json +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/page-hero/index.ts +1 -0
- package/src/components/page-hero/page-hero.styles.ts +41 -0
|
@@ -124,6 +124,7 @@
|
|
|
124
124
|
* ------------------------------------------------------------------------------------------------ */
|
|
125
125
|
@import "./card.css";
|
|
126
126
|
@import "./header.css";
|
|
127
|
+
@import "./page-hero.css";
|
|
127
128
|
@import "./separator.css";
|
|
128
129
|
@import "./surface.css";
|
|
129
130
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AACA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,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ACtB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/page-hero/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { pageHeroVariants } from './page-hero.styles.js';
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import type { VariantProps } from "tailwind-variants";
|
|
2
|
+
declare const pageHeroVariants: import("tailwind-variants").TVReturnType<{
|
|
3
|
+
align: {
|
|
4
|
+
center: {
|
|
5
|
+
base: string;
|
|
6
|
+
};
|
|
7
|
+
left: {
|
|
8
|
+
base: string;
|
|
9
|
+
};
|
|
10
|
+
right: {
|
|
11
|
+
base: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
size: {
|
|
15
|
+
lg: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
md: {};
|
|
19
|
+
sm: {
|
|
20
|
+
base: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
}, {
|
|
24
|
+
base: string;
|
|
25
|
+
breadcrumbs: string;
|
|
26
|
+
description: string;
|
|
27
|
+
title: string;
|
|
28
|
+
}, undefined, {
|
|
29
|
+
align: {
|
|
30
|
+
center: {
|
|
31
|
+
base: string;
|
|
32
|
+
};
|
|
33
|
+
left: {
|
|
34
|
+
base: string;
|
|
35
|
+
};
|
|
36
|
+
right: {
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
size: {
|
|
41
|
+
lg: {
|
|
42
|
+
base: string;
|
|
43
|
+
};
|
|
44
|
+
md: {};
|
|
45
|
+
sm: {
|
|
46
|
+
base: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
}, {
|
|
50
|
+
base: string;
|
|
51
|
+
breadcrumbs: string;
|
|
52
|
+
description: string;
|
|
53
|
+
title: string;
|
|
54
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
55
|
+
align: {
|
|
56
|
+
center: {
|
|
57
|
+
base: string;
|
|
58
|
+
};
|
|
59
|
+
left: {
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
right: {
|
|
63
|
+
base: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
size: {
|
|
67
|
+
lg: {
|
|
68
|
+
base: string;
|
|
69
|
+
};
|
|
70
|
+
md: {};
|
|
71
|
+
sm: {
|
|
72
|
+
base: string;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
}, {
|
|
76
|
+
base: string;
|
|
77
|
+
breadcrumbs: string;
|
|
78
|
+
description: string;
|
|
79
|
+
title: string;
|
|
80
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
81
|
+
export { pageHeroVariants };
|
|
82
|
+
export type PageHeroVariants = VariantProps<typeof pageHeroVariants>;
|
|
83
|
+
//# sourceMappingURL=page-hero.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page-hero.styles.d.ts","sourceRoot":"","sources":["../../../src/components/page-hero/page-hero.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAIpD,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CAiCpB,CAAC;AAEH,OAAO,EAAC,gBAAgB,EAAC,CAAC;AAC1B,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { tv } from 'tailwind-variants';
|
|
2
|
+
|
|
3
|
+
const pageHeroVariants = tv({
|
|
4
|
+
defaultVariants: {
|
|
5
|
+
align: "left",
|
|
6
|
+
size: "md",
|
|
7
|
+
},
|
|
8
|
+
slots: {
|
|
9
|
+
base: "page-hero",
|
|
10
|
+
breadcrumbs: "page-hero__breadcrumbs",
|
|
11
|
+
description: "page-hero__description",
|
|
12
|
+
title: "page-hero__title",
|
|
13
|
+
},
|
|
14
|
+
variants: {
|
|
15
|
+
align: {
|
|
16
|
+
center: {
|
|
17
|
+
base: "page-hero--center",
|
|
18
|
+
},
|
|
19
|
+
left: {
|
|
20
|
+
base: "page-hero--left",
|
|
21
|
+
},
|
|
22
|
+
right: {
|
|
23
|
+
base: "page-hero--right",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
size: {
|
|
27
|
+
lg: {
|
|
28
|
+
base: "page-hero--lg",
|
|
29
|
+
},
|
|
30
|
+
md: {},
|
|
31
|
+
sm: {
|
|
32
|
+
base: "page-hero--sm",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
export { pageHeroVariants };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/* Page Hero component styles */
|
|
2
|
+
|
|
3
|
+
/* Block */
|
|
4
|
+
.page-hero {
|
|
5
|
+
@apply flex w-full flex-col gap-2;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
/* Element - breadcrumbs wrapper */
|
|
9
|
+
.page-hero__breadcrumbs {
|
|
10
|
+
@apply flex items-center;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/* Element - title */
|
|
14
|
+
.page-hero__title {
|
|
15
|
+
@apply text-3xl leading-tight font-bold tracking-tight text-foreground;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/* Element - description */
|
|
19
|
+
.page-hero__description {
|
|
20
|
+
@apply text-base leading-relaxed text-muted;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/* Modifier - alignment: left (default) */
|
|
24
|
+
.page-hero--left {
|
|
25
|
+
@apply items-start text-left;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/* Modifier - alignment: center */
|
|
29
|
+
.page-hero--center {
|
|
30
|
+
@apply items-center text-center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Modifier - alignment: right */
|
|
34
|
+
.page-hero--right {
|
|
35
|
+
@apply items-end text-right;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/* Modifier - size: sm */
|
|
39
|
+
.page-hero--sm {
|
|
40
|
+
@apply gap-1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.page-hero--sm .page-hero__title {
|
|
44
|
+
@apply text-xl;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.page-hero--sm .page-hero__description {
|
|
48
|
+
@apply text-sm;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/* Modifier - size: lg */
|
|
52
|
+
.page-hero--lg {
|
|
53
|
+
@apply gap-3;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.page-hero--lg .page-hero__title {
|
|
57
|
+
@apply text-5xl;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.page-hero--lg .page-hero__description {
|
|
61
|
+
@apply text-lg leading-7;
|
|
62
|
+
}
|
package/dist/index.js
CHANGED
|
@@ -39,6 +39,7 @@ export { errorMessageVariants } from './components/error-message/error-message.s
|
|
|
39
39
|
export { fieldErrorVariants } from './components/field-error/field-error.styles.js';
|
|
40
40
|
export { fieldsetVariants } from './components/fieldset/fieldset.styles.js';
|
|
41
41
|
export { headerVariants } from './components/header/header.styles.js';
|
|
42
|
+
export { pageHeroVariants } from './components/page-hero/page-hero.styles.js';
|
|
42
43
|
export { inputVariants } from './components/input/input.styles.js';
|
|
43
44
|
export { inputGroupVariants } from './components/input-group/input-group.styles.js';
|
|
44
45
|
export { inputOTPVariants } from './components/input-otp/input-otp.styles.js';
|