@dmitriikapustin/ui 0.4.4 → 0.4.5
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/index.cjs +4 -2
- package/dist/index.d.cts +12 -2
- package/dist/index.d.ts +12 -2
- package/dist/index.js +4 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -6627,13 +6627,14 @@ function PromoSplit({
|
|
|
6627
6627
|
media,
|
|
6628
6628
|
mediaPosition = "right",
|
|
6629
6629
|
verticalPadding = "default",
|
|
6630
|
+
headingSize = "lg",
|
|
6630
6631
|
className = ""
|
|
6631
6632
|
}) {
|
|
6632
6633
|
const isLeft = mediaPosition === "left";
|
|
6633
6634
|
const noVerticalClass = verticalPadding === "none" ? ` ${__default63.rootNoVertical}` : "";
|
|
6634
6635
|
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: `${__default63.root}${noVerticalClass}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: isLeft ? __default63.gridReversed : __default63.grid, children: [
|
|
6635
6636
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: `${__default63.textColumn}${isLeft ? ` ${__default63.textColumnLtr}` : ""}`, children: [
|
|
6636
|
-
/* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { size:
|
|
6637
|
+
/* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { size: headingSize, children: heading }),
|
|
6637
6638
|
description && /* @__PURE__ */ jsxRuntime.jsx("p", { className: __default63.description, children: description }),
|
|
6638
6639
|
features && features.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default63.features, children: features.map((feature, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: __default63.feature, children: [
|
|
6639
6640
|
/* @__PURE__ */ jsxRuntime.jsx("h3", { className: __default63.featureTitle, children: feature.title }),
|
|
@@ -7163,6 +7164,7 @@ function PromoTestimonials({
|
|
|
7163
7164
|
testimonials,
|
|
7164
7165
|
media,
|
|
7165
7166
|
verticalPadding = "default",
|
|
7167
|
+
headingSize = "lg",
|
|
7166
7168
|
className = ""
|
|
7167
7169
|
}) {
|
|
7168
7170
|
const noVerticalClass = verticalPadding === "none" ? ` ${__default66.rootNoVertical}` : "";
|
|
@@ -7192,7 +7194,7 @@ function PromoTestimonials({
|
|
|
7192
7194
|
testimonials.length - 5
|
|
7193
7195
|
] }) })
|
|
7194
7196
|
] }) }),
|
|
7195
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.headingSection, children: /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { size:
|
|
7197
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.headingSection, children: /* @__PURE__ */ jsxRuntime.jsx(SectionHeading, { size: headingSize, align: "center", subtitle, children: heading }) }),
|
|
7196
7198
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.cardsSection, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: __default66.cardsGrid, children: testimonials.map((t, i) => {
|
|
7197
7199
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
7198
7200
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
package/dist/index.d.cts
CHANGED
|
@@ -908,9 +908,14 @@ interface PromoSplitProps {
|
|
|
908
908
|
* контролирует vertical rhythm.
|
|
909
909
|
*/
|
|
910
910
|
verticalPadding?: 'default' | 'none';
|
|
911
|
+
/**
|
|
912
|
+
* Размер главного heading через `<SectionHeading>`. Default `'lg'` (landing promo).
|
|
913
|
+
* Используй `'md'` для density-aware admin / dashboard контекстов.
|
|
914
|
+
*/
|
|
915
|
+
headingSize?: 'sm' | 'md' | 'lg';
|
|
911
916
|
className?: string;
|
|
912
917
|
}
|
|
913
|
-
declare function PromoSplit({ heading, description, features, media, mediaPosition, verticalPadding, className, }: PromoSplitProps): react_jsx_runtime.JSX.Element;
|
|
918
|
+
declare function PromoSplit({ heading, description, features, media, mediaPosition, verticalPadding, headingSize, className, }: PromoSplitProps): react_jsx_runtime.JSX.Element;
|
|
914
919
|
|
|
915
920
|
interface TrustFeature {
|
|
916
921
|
icon?: ReactNode;
|
|
@@ -954,9 +959,14 @@ interface PromoTestimonialsProps {
|
|
|
954
959
|
* - `'none'` — `padding-block: 0`.
|
|
955
960
|
*/
|
|
956
961
|
verticalPadding?: 'default' | 'none';
|
|
962
|
+
/**
|
|
963
|
+
* Размер главного heading через `<SectionHeading>`. Default `'lg'` (landing promo).
|
|
964
|
+
* Используй `'md'` для density-aware admin / dashboard контекстов.
|
|
965
|
+
*/
|
|
966
|
+
headingSize?: 'sm' | 'md' | 'lg';
|
|
957
967
|
className?: string;
|
|
958
968
|
}
|
|
959
|
-
declare function PromoTestimonials({ heading, subtitle, testimonials, media, verticalPadding, className, }: PromoTestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
969
|
+
declare function PromoTestimonials({ heading, subtitle, testimonials, media, verticalPadding, headingSize, className, }: PromoTestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
960
970
|
|
|
961
971
|
interface PromoHeroProps {
|
|
962
972
|
title: ReactNode;
|
package/dist/index.d.ts
CHANGED
|
@@ -908,9 +908,14 @@ interface PromoSplitProps {
|
|
|
908
908
|
* контролирует vertical rhythm.
|
|
909
909
|
*/
|
|
910
910
|
verticalPadding?: 'default' | 'none';
|
|
911
|
+
/**
|
|
912
|
+
* Размер главного heading через `<SectionHeading>`. Default `'lg'` (landing promo).
|
|
913
|
+
* Используй `'md'` для density-aware admin / dashboard контекстов.
|
|
914
|
+
*/
|
|
915
|
+
headingSize?: 'sm' | 'md' | 'lg';
|
|
911
916
|
className?: string;
|
|
912
917
|
}
|
|
913
|
-
declare function PromoSplit({ heading, description, features, media, mediaPosition, verticalPadding, className, }: PromoSplitProps): react_jsx_runtime.JSX.Element;
|
|
918
|
+
declare function PromoSplit({ heading, description, features, media, mediaPosition, verticalPadding, headingSize, className, }: PromoSplitProps): react_jsx_runtime.JSX.Element;
|
|
914
919
|
|
|
915
920
|
interface TrustFeature {
|
|
916
921
|
icon?: ReactNode;
|
|
@@ -954,9 +959,14 @@ interface PromoTestimonialsProps {
|
|
|
954
959
|
* - `'none'` — `padding-block: 0`.
|
|
955
960
|
*/
|
|
956
961
|
verticalPadding?: 'default' | 'none';
|
|
962
|
+
/**
|
|
963
|
+
* Размер главного heading через `<SectionHeading>`. Default `'lg'` (landing promo).
|
|
964
|
+
* Используй `'md'` для density-aware admin / dashboard контекстов.
|
|
965
|
+
*/
|
|
966
|
+
headingSize?: 'sm' | 'md' | 'lg';
|
|
957
967
|
className?: string;
|
|
958
968
|
}
|
|
959
|
-
declare function PromoTestimonials({ heading, subtitle, testimonials, media, verticalPadding, className, }: PromoTestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
969
|
+
declare function PromoTestimonials({ heading, subtitle, testimonials, media, verticalPadding, headingSize, className, }: PromoTestimonialsProps): react_jsx_runtime.JSX.Element;
|
|
960
970
|
|
|
961
971
|
interface PromoHeroProps {
|
|
962
972
|
title: ReactNode;
|
package/dist/index.js
CHANGED
|
@@ -6621,13 +6621,14 @@ function PromoSplit({
|
|
|
6621
6621
|
media,
|
|
6622
6622
|
mediaPosition = "right",
|
|
6623
6623
|
verticalPadding = "default",
|
|
6624
|
+
headingSize = "lg",
|
|
6624
6625
|
className = ""
|
|
6625
6626
|
}) {
|
|
6626
6627
|
const isLeft = mediaPosition === "left";
|
|
6627
6628
|
const noVerticalClass = verticalPadding === "none" ? ` ${__default63.rootNoVertical}` : "";
|
|
6628
6629
|
return /* @__PURE__ */ jsx("section", { className: `${__default63.root}${noVerticalClass}${className ? ` ${className}` : ""}`, children: /* @__PURE__ */ jsxs("div", { className: isLeft ? __default63.gridReversed : __default63.grid, children: [
|
|
6629
6630
|
/* @__PURE__ */ jsxs("div", { className: `${__default63.textColumn}${isLeft ? ` ${__default63.textColumnLtr}` : ""}`, children: [
|
|
6630
|
-
/* @__PURE__ */ jsx(SectionHeading, { size:
|
|
6631
|
+
/* @__PURE__ */ jsx(SectionHeading, { size: headingSize, children: heading }),
|
|
6631
6632
|
description && /* @__PURE__ */ jsx("p", { className: __default63.description, children: description }),
|
|
6632
6633
|
features && features.length > 0 && /* @__PURE__ */ jsx("div", { className: __default63.features, children: features.map((feature, i) => /* @__PURE__ */ jsxs("div", { className: __default63.feature, children: [
|
|
6633
6634
|
/* @__PURE__ */ jsx("h3", { className: __default63.featureTitle, children: feature.title }),
|
|
@@ -7157,6 +7158,7 @@ function PromoTestimonials({
|
|
|
7157
7158
|
testimonials,
|
|
7158
7159
|
media,
|
|
7159
7160
|
verticalPadding = "default",
|
|
7161
|
+
headingSize = "lg",
|
|
7160
7162
|
className = ""
|
|
7161
7163
|
}) {
|
|
7162
7164
|
const noVerticalClass = verticalPadding === "none" ? ` ${__default66.rootNoVertical}` : "";
|
|
@@ -7186,7 +7188,7 @@ function PromoTestimonials({
|
|
|
7186
7188
|
testimonials.length - 5
|
|
7187
7189
|
] }) })
|
|
7188
7190
|
] }) }),
|
|
7189
|
-
/* @__PURE__ */ jsx("div", { className: __default66.headingSection, children: /* @__PURE__ */ jsx(SectionHeading, { size:
|
|
7191
|
+
/* @__PURE__ */ jsx("div", { className: __default66.headingSection, children: /* @__PURE__ */ jsx(SectionHeading, { size: headingSize, align: "center", subtitle, children: heading }) }),
|
|
7190
7192
|
/* @__PURE__ */ jsx("div", { className: __default66.cardsSection, children: /* @__PURE__ */ jsx("div", { className: __default66.cardsGrid, children: testimonials.map((t, i) => {
|
|
7191
7193
|
const initials = t.name.split(" ").map((n) => n[0]).join("").toUpperCase();
|
|
7192
7194
|
return /* @__PURE__ */ jsxs(
|
package/package.json
CHANGED