@vritti/quantum-ui 0.7.1 → 0.7.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/CurrencySelector.js +35 -22
- package/dist/CurrencySelector.js.map +1 -1
- package/dist/Form.js +8 -4
- package/dist/Form.js.map +1 -1
- package/dist/{ISOCountrySelect.js → ISOCountrySelector.js} +21 -20
- package/dist/ISOCountrySelector.js.map +1 -0
- package/dist/{IconSelect.js → IconSelector.js} +117 -119
- package/dist/IconSelector.js.map +1 -0
- package/dist/LineChart.js +75 -72
- package/dist/LineChart.js.map +1 -1
- package/dist/LocaleSelector.js +17 -7
- package/dist/LocaleSelector.js.map +1 -1
- package/dist/Select2.js +16 -8
- package/dist/Select2.js.map +1 -1
- package/dist/SelectFilter.js +3 -3
- package/dist/SelectFilter.js.map +1 -1
- package/dist/SingleSelect.js +0 -1
- package/dist/SingleSelect.js.map +1 -1
- package/dist/TimezoneSelector.js +11 -11
- package/dist/TimezoneSelector.js.map +1 -1
- package/dist/assets/quantum-ui.css +2 -0
- package/dist/components/Select.js +7 -3
- package/dist/components/Select.js.map +1 -1
- package/dist/image-component.js.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index33.js +16 -13
- package/dist/index33.js.map +1 -1
- package/dist/lib/components/DataTable/hooks/useDataTable.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/button-group.d.ts.map +1 -1
- package/dist/lib/components/Editor/editor-ui/image-component.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/images-plugin.d.ts.map +1 -1
- package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts.map +1 -1
- package/dist/lib/components/Form/Form.d.ts.map +1 -1
- package/dist/lib/components/LineChart/LineChartSkeleton.d.ts.map +1 -1
- package/dist/lib/components/Select/Select.d.ts +6 -11
- package/dist/lib/components/Select/Select.d.ts.map +1 -1
- package/dist/lib/components/Select/SelectFilter.d.ts +21 -20
- package/dist/lib/components/Select/SelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts.map +1 -1
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts +5 -9
- package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/hooks/useMultiSelect.d.ts +2 -1
- package/dist/lib/components/Select/hooks/useMultiSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -1
- package/dist/lib/components/Select/index.d.ts +4 -4
- package/dist/lib/components/Select/index.d.ts.map +1 -1
- package/dist/lib/components/Select/selector.d.ts +22 -22
- package/dist/lib/components/Select/selector.d.ts.map +1 -1
- package/dist/lib/components/Select/types.d.ts +11 -1
- package/dist/lib/components/Select/types.d.ts.map +1 -1
- package/dist/lib/selects/currency/CurrencyFilter.d.ts +11 -10
- package/dist/lib/selects/currency/CurrencyFilter.d.ts.map +1 -1
- package/dist/lib/selects/currency/CurrencySelector.d.ts +6 -8
- package/dist/lib/selects/currency/CurrencySelector.d.ts.map +1 -1
- package/dist/lib/selects/currency/currency-options.d.ts +4 -0
- package/dist/lib/selects/currency/currency-options.d.ts.map +1 -0
- package/dist/lib/selects/currency/index.d.ts +3 -1
- package/dist/lib/selects/currency/index.d.ts.map +1 -1
- package/dist/lib/selects/icon/IconSelector.d.ts +23 -0
- package/dist/lib/selects/icon/IconSelector.d.ts.map +1 -0
- package/dist/lib/selects/icon/index.d.ts +1 -1
- package/dist/lib/selects/icon/index.d.ts.map +1 -1
- package/dist/lib/selects/iso-country/ISOCountryFilter.d.ts +9 -0
- package/dist/lib/selects/iso-country/ISOCountryFilter.d.ts.map +1 -0
- package/dist/lib/selects/iso-country/ISOCountrySelector.d.ts +4 -0
- package/dist/lib/selects/iso-country/ISOCountrySelector.d.ts.map +1 -0
- package/dist/lib/selects/iso-country/index.d.ts +2 -1
- package/dist/lib/selects/iso-country/index.d.ts.map +1 -1
- package/dist/lib/selects/iso-country/iso-countries.d.ts +2 -0
- package/dist/lib/selects/iso-country/iso-countries.d.ts.map +1 -1
- package/dist/lib/selects/locale/LocaleFilter.d.ts +8 -10
- package/dist/lib/selects/locale/LocaleFilter.d.ts.map +1 -1
- package/dist/lib/selects/locale/LocaleSelector.d.ts +2 -7
- package/dist/lib/selects/locale/LocaleSelector.d.ts.map +1 -1
- package/dist/lib/selects/locale/index.d.ts +1 -1
- package/dist/lib/selects/locale/index.d.ts.map +1 -1
- package/dist/lib/selects/timezone/TimezoneFilter.d.ts +8 -10
- package/dist/lib/selects/timezone/TimezoneFilter.d.ts.map +1 -1
- package/dist/lib/selects/timezone/TimezoneSelector.d.ts +2 -7
- package/dist/lib/selects/timezone/TimezoneSelector.d.ts.map +1 -1
- package/dist/lib/selects/timezone/index.d.ts +1 -1
- package/dist/lib/selects/timezone/index.d.ts.map +1 -1
- package/dist/lib/selects/types.d.ts +14 -0
- package/dist/lib/selects/types.d.ts.map +1 -0
- package/dist/selects/currency.js +2 -1
- package/dist/selects/currency.js.map +1 -1
- package/dist/selects/icon.js +1 -1
- package/dist/selects/iso-country.js +1 -1
- package/dist/useDataTable.js +3 -1
- package/dist/useDataTable.js.map +1 -1
- package/package.json +1 -1
- package/dist/ISOCountrySelect.js.map +0 -1
- package/dist/IconSelect.js.map +0 -1
- package/dist/lib/selects/icon/IconSelect.d.ts +0 -21
- package/dist/lib/selects/icon/IconSelect.d.ts.map +0 -1
- package/dist/lib/selects/iso-country/ISOCountrySelect.d.ts +0 -18
- package/dist/lib/selects/iso-country/ISOCountrySelect.d.ts.map +0 -1
package/dist/LineChart.js
CHANGED
|
@@ -1209,85 +1209,88 @@ const LineChartSkeleton = ({ lines, className }) => {
|
|
|
1209
1209
|
const maskId = `${id}-lines`;
|
|
1210
1210
|
const glowId = `${id}-glow`;
|
|
1211
1211
|
const ghosts = GHOST_LINES.slice(0, Math.min(Math.max(lines, 1), GHOST_LINES.length));
|
|
1212
|
-
return
|
|
1213
|
-
"div
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
/* @__PURE__ */
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
/* @__PURE__ */
|
|
1234
|
-
|
|
1212
|
+
return (
|
|
1213
|
+
// biome-ignore lint/a11y/useSemanticElements: <output> is a form-associated element — a form reset inside an enclosing <form> would replace the skeleton's SVG with its text; role="status" gives the same live region on a plain div
|
|
1214
|
+
/* @__PURE__ */ jsxs(
|
|
1215
|
+
"div",
|
|
1216
|
+
{
|
|
1217
|
+
role: "status",
|
|
1218
|
+
"aria-busy": true,
|
|
1219
|
+
"aria-label": "Loading chart",
|
|
1220
|
+
className: cn("flex gap-3", className ?? "min-h-75 w-full"),
|
|
1221
|
+
children: [
|
|
1222
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col justify-between py-1", "aria-hidden": true, children: GRID_Y.map((y, index) => /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-12", style: { animationDelay: `${index * 80}ms` } }, y)) }),
|
|
1223
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", "aria-hidden": true, children: [
|
|
1224
|
+
/* @__PURE__ */ jsxs(
|
|
1225
|
+
"svg",
|
|
1226
|
+
{
|
|
1227
|
+
viewBox: "0 0 100 40",
|
|
1228
|
+
preserveAspectRatio: "none",
|
|
1229
|
+
className: "w-full flex-1 text-muted-foreground",
|
|
1230
|
+
role: "presentation",
|
|
1231
|
+
children: [
|
|
1232
|
+
/* @__PURE__ */ jsxs("defs", { children: [
|
|
1233
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: glowId, x1: "0", x2: "1", y1: "0", y2: "0", children: [
|
|
1234
|
+
/* @__PURE__ */ jsx("stop", { offset: "0", stopColor: "currentColor", stopOpacity: "0" }),
|
|
1235
|
+
/* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "currentColor", stopOpacity: "0.9" }),
|
|
1236
|
+
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
|
|
1237
|
+
] }),
|
|
1238
|
+
/* @__PURE__ */ jsx("mask", { id: maskId, children: ghosts.map((line) => /* @__PURE__ */ jsx(
|
|
1239
|
+
"path",
|
|
1240
|
+
{
|
|
1241
|
+
d: line.d,
|
|
1242
|
+
fill: "none",
|
|
1243
|
+
stroke: "white",
|
|
1244
|
+
strokeWidth: 4,
|
|
1245
|
+
vectorEffect: "non-scaling-stroke"
|
|
1246
|
+
},
|
|
1247
|
+
line.d
|
|
1248
|
+
)) })
|
|
1235
1249
|
] }),
|
|
1236
|
-
|
|
1250
|
+
GRID_Y.map((y) => /* @__PURE__ */ jsx(
|
|
1251
|
+
"line",
|
|
1252
|
+
{
|
|
1253
|
+
x1: 0,
|
|
1254
|
+
x2: 100,
|
|
1255
|
+
y1: y,
|
|
1256
|
+
y2: y,
|
|
1257
|
+
stroke: "currentColor",
|
|
1258
|
+
strokeOpacity: 0.12,
|
|
1259
|
+
vectorEffect: "non-scaling-stroke"
|
|
1260
|
+
},
|
|
1261
|
+
y
|
|
1262
|
+
)),
|
|
1263
|
+
ghosts.map((line, index) => /* @__PURE__ */ jsx(
|
|
1237
1264
|
"path",
|
|
1238
1265
|
{
|
|
1239
1266
|
d: line.d,
|
|
1240
1267
|
fill: "none",
|
|
1241
|
-
stroke: "
|
|
1242
|
-
|
|
1243
|
-
|
|
1268
|
+
stroke: "currentColor",
|
|
1269
|
+
strokeOpacity: 0.3,
|
|
1270
|
+
strokeWidth: 2,
|
|
1271
|
+
strokeDasharray: line.dashed ? "6 4" : void 0,
|
|
1272
|
+
vectorEffect: "non-scaling-stroke",
|
|
1273
|
+
className: "motion-safe:animate-pulse",
|
|
1274
|
+
style: { animationDelay: `${index * 200}ms` }
|
|
1244
1275
|
},
|
|
1245
1276
|
line.d
|
|
1246
|
-
))
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
{
|
|
1264
|
-
d: line.d,
|
|
1265
|
-
fill: "none",
|
|
1266
|
-
stroke: "currentColor",
|
|
1267
|
-
strokeOpacity: 0.3,
|
|
1268
|
-
strokeWidth: 2,
|
|
1269
|
-
strokeDasharray: line.dashed ? "6 4" : void 0,
|
|
1270
|
-
vectorEffect: "non-scaling-stroke",
|
|
1271
|
-
className: "motion-safe:animate-pulse",
|
|
1272
|
-
style: { animationDelay: `${index * 200}ms` }
|
|
1273
|
-
},
|
|
1274
|
-
line.d
|
|
1275
|
-
)),
|
|
1276
|
-
/* @__PURE__ */ jsx("g", { mask: `url(#${maskId})`, className: "motion-reduce:hidden", children: /* @__PURE__ */ jsx("rect", { x: -30, y: 0, width: 30, height: 40, fill: `url(#${glowId})`, opacity: 0.55, children: /* @__PURE__ */ jsx("animate", { attributeName: "x", from: "-30", to: "100", dur: "1.8s", repeatCount: "indefinite" }) }) })
|
|
1277
|
-
]
|
|
1278
|
-
}
|
|
1279
|
-
),
|
|
1280
|
-
/* @__PURE__ */ jsx("div", { className: "flex justify-between", children: Array.from({ length: X_TICKS }, (_, index) => /* @__PURE__ */ jsx(
|
|
1281
|
-
Skeleton,
|
|
1282
|
-
{
|
|
1283
|
-
className: "h-3 w-14",
|
|
1284
|
-
style: { animationDelay: `${index * 80}ms` }
|
|
1285
|
-
},
|
|
1286
|
-
index
|
|
1287
|
-
)) })
|
|
1288
|
-
] })
|
|
1289
|
-
]
|
|
1290
|
-
}
|
|
1277
|
+
)),
|
|
1278
|
+
/* @__PURE__ */ jsx("g", { mask: `url(#${maskId})`, className: "motion-reduce:hidden", children: /* @__PURE__ */ jsx("rect", { x: -30, y: 0, width: 30, height: 40, fill: `url(#${glowId})`, opacity: 0.55, children: /* @__PURE__ */ jsx("animate", { attributeName: "x", from: "-30", to: "100", dur: "1.8s", repeatCount: "indefinite" }) }) })
|
|
1279
|
+
]
|
|
1280
|
+
}
|
|
1281
|
+
),
|
|
1282
|
+
/* @__PURE__ */ jsx("div", { className: "flex justify-between", children: Array.from({ length: X_TICKS }, (_, index) => /* @__PURE__ */ jsx(
|
|
1283
|
+
Skeleton,
|
|
1284
|
+
{
|
|
1285
|
+
className: "h-3 w-14",
|
|
1286
|
+
style: { animationDelay: `${index * 80}ms` }
|
|
1287
|
+
},
|
|
1288
|
+
index
|
|
1289
|
+
)) })
|
|
1290
|
+
] })
|
|
1291
|
+
]
|
|
1292
|
+
}
|
|
1293
|
+
)
|
|
1291
1294
|
);
|
|
1292
1295
|
};
|
|
1293
1296
|
|