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.js
CHANGED
|
@@ -8237,7 +8237,7 @@ var StatCard = ({ item, showPlaceholder = false }) => {
|
|
|
8237
8237
|
{
|
|
8238
8238
|
size: "xs",
|
|
8239
8239
|
weight: "bold",
|
|
8240
|
-
className: "uppercase text-[8px] leading-[9px] text-text-800
|
|
8240
|
+
className: "uppercase text-[8px] leading-[9px] text-text-800 whitespace-nowrap",
|
|
8241
8241
|
children: item.label
|
|
8242
8242
|
}
|
|
8243
8243
|
)
|
|
@@ -8273,8 +8273,18 @@ var StatisticsCard = ({
|
|
|
8273
8273
|
className: `bg-background rounded-xl p-4 h-auto lg:h-[185px] flex flex-col gap-2 ${className}`,
|
|
8274
8274
|
children: [
|
|
8275
8275
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex flex-row justify-between items-center gap-4", children: [
|
|
8276
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
8277
|
-
|
|
8276
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
8277
|
+
Text_default,
|
|
8278
|
+
{
|
|
8279
|
+
as: "h3",
|
|
8280
|
+
size: "sm",
|
|
8281
|
+
weight: "medium",
|
|
8282
|
+
color: "text-text-600",
|
|
8283
|
+
className: "flex-1 min-w-0",
|
|
8284
|
+
children: title
|
|
8285
|
+
}
|
|
8286
|
+
),
|
|
8287
|
+
dropdownOptions && dropdownOptions.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "w-[120px] min-w-[90px] sm:shrink-0", children: /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
|
|
8278
8288
|
Select_default,
|
|
8279
8289
|
{
|
|
8280
8290
|
value: selectedDropdownValue,
|
|
@@ -8284,12 +8294,20 @@ var StatisticsCard = ({
|
|
|
8284
8294
|
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
8285
8295
|
SelectTrigger,
|
|
8286
8296
|
{
|
|
8287
|
-
className: "border border-border-300 rounded whitespace-nowrap",
|
|
8297
|
+
className: "border border-border-300 rounded [&>span]:whitespace-nowrap [&>span]:overflow-hidden [&>span]:text-ellipsis",
|
|
8288
8298
|
"aria-label": dropdownAriaLabel,
|
|
8289
8299
|
children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectValue, { placeholder: selectPlaceholder })
|
|
8290
8300
|
}
|
|
8291
8301
|
),
|
|
8292
|
-
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectContent, { children: dropdownOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
8302
|
+
/* @__PURE__ */ (0, import_jsx_runtime42.jsx)(SelectContent, { className: "min-w-[120px]", children: dropdownOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
|
|
8303
|
+
SelectItem,
|
|
8304
|
+
{
|
|
8305
|
+
value: option.value,
|
|
8306
|
+
className: "whitespace-nowrap",
|
|
8307
|
+
children: option.label
|
|
8308
|
+
},
|
|
8309
|
+
option.value
|
|
8310
|
+
)) })
|
|
8293
8311
|
]
|
|
8294
8312
|
}
|
|
8295
8313
|
) })
|