@parto-system-design/ui 1.0.2 → 1.0.3
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 +23 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +23 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -886,7 +886,7 @@ var buttonVariants = (0, import_class_variance_authority2.cva)(
|
|
|
886
886
|
cursor-pointer
|
|
887
887
|
inline-flex
|
|
888
888
|
items-center
|
|
889
|
-
|
|
889
|
+
gap-2
|
|
890
890
|
text-center
|
|
891
891
|
font-regular
|
|
892
892
|
ease-out
|
|
@@ -4810,13 +4810,13 @@ function InstagramPostCaption({
|
|
|
4810
4810
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: cn(
|
|
4811
4811
|
"px-4 py-2",
|
|
4812
4812
|
variant === "horizontal" && "overflow-visible"
|
|
4813
|
-
),
|
|
4813
|
+
), children: [
|
|
4814
4814
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
4815
4815
|
"p",
|
|
4816
4816
|
{
|
|
4817
4817
|
ref: textRef,
|
|
4818
4818
|
className: cn(
|
|
4819
|
-
"text-sm leading-relaxed text-
|
|
4819
|
+
"text-sm leading-relaxed text-start",
|
|
4820
4820
|
!isExpanded && variant === "vertical" && "line-clamp-3"
|
|
4821
4821
|
// No line clamp for horizontal variant - show full text
|
|
4822
4822
|
),
|
|
@@ -5144,6 +5144,7 @@ var InstagramPost = React17.forwardRef(
|
|
|
5144
5144
|
onOpenInstagram,
|
|
5145
5145
|
instagramUrl,
|
|
5146
5146
|
placeholderText,
|
|
5147
|
+
dir,
|
|
5147
5148
|
...props
|
|
5148
5149
|
}, ref) => {
|
|
5149
5150
|
const isVertical = variant === "vertical";
|
|
@@ -5151,8 +5152,8 @@ var InstagramPost = React17.forwardRef(
|
|
|
5151
5152
|
"div",
|
|
5152
5153
|
{
|
|
5153
5154
|
ref,
|
|
5154
|
-
className: cn(instagramPostVariants({ variant }), className, "group"),
|
|
5155
|
-
dir
|
|
5155
|
+
className: cn(instagramPostVariants({ variant }), className, "group", isVertical && "flex flex-col h-full"),
|
|
5156
|
+
dir,
|
|
5156
5157
|
...props,
|
|
5157
5158
|
children: [
|
|
5158
5159
|
showActions && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
@@ -5168,7 +5169,7 @@ var InstagramPost = React17.forwardRef(
|
|
|
5168
5169
|
),
|
|
5169
5170
|
isVertical ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
5170
5171
|
showProfile && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InstagramPostProfile, { profile, variant: variant || "vertical", avatarUrl }),
|
|
5171
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5172
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "mt-2.5", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5172
5173
|
InstagramPostMedia,
|
|
5173
5174
|
{
|
|
5174
5175
|
media,
|
|
@@ -5176,7 +5177,7 @@ var InstagramPost = React17.forwardRef(
|
|
|
5176
5177
|
variant: variant || "vertical",
|
|
5177
5178
|
placeholderText
|
|
5178
5179
|
}
|
|
5179
|
-
),
|
|
5180
|
+
) }),
|
|
5180
5181
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5181
5182
|
InstagramPostStats,
|
|
5182
5183
|
{
|
|
@@ -5190,13 +5191,13 @@ var InstagramPost = React17.forwardRef(
|
|
|
5190
5191
|
}
|
|
5191
5192
|
),
|
|
5192
5193
|
showCaption && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InstagramPostCaption, { caption, variant: variant || "vertical" }),
|
|
5193
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5194
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "mt-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5194
5195
|
InstagramPostTime,
|
|
5195
5196
|
{
|
|
5196
5197
|
publishTime,
|
|
5197
5198
|
timeFormat
|
|
5198
5199
|
}
|
|
5199
|
-
)
|
|
5200
|
+
) })
|
|
5200
5201
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
|
|
5201
5202
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5202
5203
|
InstagramPostMedia,
|
|
@@ -5222,13 +5223,13 @@ var InstagramPost = React17.forwardRef(
|
|
|
5222
5223
|
}
|
|
5223
5224
|
),
|
|
5224
5225
|
showCaption && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(InstagramPostCaption, { caption, variant: variant || "horizontal" }),
|
|
5225
|
-
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5226
|
+
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: "mt-auto w-full", children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
5226
5227
|
InstagramPostTime,
|
|
5227
5228
|
{
|
|
5228
5229
|
publishTime,
|
|
5229
5230
|
timeFormat
|
|
5230
5231
|
}
|
|
5231
|
-
)
|
|
5232
|
+
) })
|
|
5232
5233
|
] })
|
|
5233
5234
|
] })
|
|
5234
5235
|
]
|
|
@@ -6899,12 +6900,18 @@ var EngagementRate = React22.forwardRef(
|
|
|
6899
6900
|
/* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6900
6901
|
"div",
|
|
6901
6902
|
{
|
|
6902
|
-
className: "absolute -top-
|
|
6903
|
+
className: "absolute -top-1 transform -translate-x-1/2 transition-all duration-500 z-10",
|
|
6903
6904
|
style: { left: `${adjustedTrianglePosition}%` },
|
|
6904
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime50.
|
|
6905
|
-
|
|
6906
|
-
|
|
6907
|
-
|
|
6905
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
|
|
6906
|
+
"svg",
|
|
6907
|
+
{
|
|
6908
|
+
width: "20",
|
|
6909
|
+
height: "14",
|
|
6910
|
+
viewBox: "0 0 20 14",
|
|
6911
|
+
className: "fill-primary text-primary transition-transform duration-300",
|
|
6912
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("path", { d: "M10 14L0 0H20L10 14Z" })
|
|
6913
|
+
}
|
|
6914
|
+
)
|
|
6908
6915
|
}
|
|
6909
6916
|
)
|
|
6910
6917
|
] })
|