analytica-frontend-lib 1.2.0 → 1.2.1
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/StatisticsCard/index.js +23 -5
- package/dist/StatisticsCard/index.js.map +1 -1
- package/dist/StatisticsCard/index.mjs +23 -5
- package/dist/StatisticsCard/index.mjs.map +1 -1
- package/dist/index.css +29 -3
- package/dist/index.css.map +1 -1
- package/dist/index.js +23 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +23 -5
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +29 -3
- package/dist/styles.css.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -8147,7 +8147,7 @@ var StatCard = ({ item, showPlaceholder = false }) => {
|
|
|
8147
8147
|
{
|
|
8148
8148
|
size: "xs",
|
|
8149
8149
|
weight: "bold",
|
|
8150
|
-
className: "uppercase text-[8px] leading-[9px] text-text-800
|
|
8150
|
+
className: "uppercase text-[8px] leading-[9px] text-text-800 whitespace-nowrap",
|
|
8151
8151
|
children: item.label
|
|
8152
8152
|
}
|
|
8153
8153
|
)
|
|
@@ -8183,8 +8183,18 @@ var StatisticsCard = ({
|
|
|
8183
8183
|
className: `bg-background rounded-xl p-4 h-auto lg:h-[185px] flex flex-col gap-2 ${className}`,
|
|
8184
8184
|
children: [
|
|
8185
8185
|
/* @__PURE__ */ jsxs30("div", { className: "flex flex-row justify-between items-center gap-4", children: [
|
|
8186
|
-
/* @__PURE__ */ jsx42(
|
|
8187
|
-
|
|
8186
|
+
/* @__PURE__ */ jsx42(
|
|
8187
|
+
Text_default,
|
|
8188
|
+
{
|
|
8189
|
+
as: "h3",
|
|
8190
|
+
size: "sm",
|
|
8191
|
+
weight: "medium",
|
|
8192
|
+
color: "text-text-600",
|
|
8193
|
+
className: "flex-1 min-w-0",
|
|
8194
|
+
children: title
|
|
8195
|
+
}
|
|
8196
|
+
),
|
|
8197
|
+
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */ jsx42("div", { className: "w-[120px] min-w-[90px] sm:shrink-0", children: /* @__PURE__ */ jsxs30(
|
|
8188
8198
|
Select_default,
|
|
8189
8199
|
{
|
|
8190
8200
|
value: selectedDropdownValue,
|
|
@@ -8194,12 +8204,20 @@ var StatisticsCard = ({
|
|
|
8194
8204
|
/* @__PURE__ */ jsx42(
|
|
8195
8205
|
SelectTrigger,
|
|
8196
8206
|
{
|
|
8197
|
-
className: "border border-border-300 rounded whitespace-nowrap",
|
|
8207
|
+
className: "border border-border-300 rounded [&>span]:whitespace-nowrap [&>span]:overflow-hidden [&>span]:text-ellipsis",
|
|
8198
8208
|
"aria-label": dropdownAriaLabel,
|
|
8199
8209
|
children: /* @__PURE__ */ jsx42(SelectValue, { placeholder: selectPlaceholder })
|
|
8200
8210
|
}
|
|
8201
8211
|
),
|
|
8202
|
-
/* @__PURE__ */ jsx42(SelectContent, { children: dropdownOptions.map((option) => /* @__PURE__ */ jsx42(
|
|
8212
|
+
/* @__PURE__ */ jsx42(SelectContent, { className: "min-w-[120px]", children: dropdownOptions.map((option) => /* @__PURE__ */ jsx42(
|
|
8213
|
+
SelectItem,
|
|
8214
|
+
{
|
|
8215
|
+
value: option.value,
|
|
8216
|
+
className: "whitespace-nowrap",
|
|
8217
|
+
children: option.label
|
|
8218
|
+
},
|
|
8219
|
+
option.value
|
|
8220
|
+
)) })
|
|
8203
8221
|
]
|
|
8204
8222
|
}
|
|
8205
8223
|
) })
|