@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.
Files changed (103) hide show
  1. package/dist/CurrencySelector.js +35 -22
  2. package/dist/CurrencySelector.js.map +1 -1
  3. package/dist/Form.js +8 -4
  4. package/dist/Form.js.map +1 -1
  5. package/dist/{ISOCountrySelect.js → ISOCountrySelector.js} +21 -20
  6. package/dist/ISOCountrySelector.js.map +1 -0
  7. package/dist/{IconSelect.js → IconSelector.js} +117 -119
  8. package/dist/IconSelector.js.map +1 -0
  9. package/dist/LineChart.js +75 -72
  10. package/dist/LineChart.js.map +1 -1
  11. package/dist/LocaleSelector.js +17 -7
  12. package/dist/LocaleSelector.js.map +1 -1
  13. package/dist/Select2.js +16 -8
  14. package/dist/Select2.js.map +1 -1
  15. package/dist/SelectFilter.js +3 -3
  16. package/dist/SelectFilter.js.map +1 -1
  17. package/dist/SingleSelect.js +0 -1
  18. package/dist/SingleSelect.js.map +1 -1
  19. package/dist/TimezoneSelector.js +11 -11
  20. package/dist/TimezoneSelector.js.map +1 -1
  21. package/dist/assets/quantum-ui.css +2 -0
  22. package/dist/components/Select.js +7 -3
  23. package/dist/components/Select.js.map +1 -1
  24. package/dist/image-component.js.map +1 -1
  25. package/dist/index.js +5 -4
  26. package/dist/index.js.map +1 -1
  27. package/dist/index33.js +16 -13
  28. package/dist/index33.js.map +1 -1
  29. package/dist/lib/components/DataTable/hooks/useDataTable.d.ts.map +1 -1
  30. package/dist/lib/components/Editor/editor-ui/button-group.d.ts.map +1 -1
  31. package/dist/lib/components/Editor/editor-ui/image-component.d.ts.map +1 -1
  32. package/dist/lib/components/Editor/plugins/actions/markdown-toggle-plugin.d.ts.map +1 -1
  33. package/dist/lib/components/Editor/plugins/component-picker-menu-plugin.d.ts.map +1 -1
  34. package/dist/lib/components/Editor/plugins/floating-link-editor-plugin.d.ts.map +1 -1
  35. package/dist/lib/components/Editor/plugins/floating-text-format-plugin.d.ts.map +1 -1
  36. package/dist/lib/components/Editor/plugins/images-plugin.d.ts.map +1 -1
  37. package/dist/lib/components/Editor/plugins/toolbar/toolbar-plugin.d.ts.map +1 -1
  38. package/dist/lib/components/Form/Form.d.ts.map +1 -1
  39. package/dist/lib/components/LineChart/LineChartSkeleton.d.ts.map +1 -1
  40. package/dist/lib/components/Select/Select.d.ts +6 -11
  41. package/dist/lib/components/Select/Select.d.ts.map +1 -1
  42. package/dist/lib/components/Select/SelectFilter.d.ts +21 -20
  43. package/dist/lib/components/Select/SelectFilter.d.ts.map +1 -1
  44. package/dist/lib/components/Select/components/MultiSelect/MultiSelect.d.ts.map +1 -1
  45. package/dist/lib/components/Select/components/MultiSelect/MultiSelectFilter.d.ts.map +1 -1
  46. package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts +5 -9
  47. package/dist/lib/components/Select/components/SingleSelect/SingleSelect.d.ts.map +1 -1
  48. package/dist/lib/components/Select/hooks/useMultiSelect.d.ts +2 -1
  49. package/dist/lib/components/Select/hooks/useMultiSelect.d.ts.map +1 -1
  50. package/dist/lib/components/Select/hooks/useSelect.d.ts.map +1 -1
  51. package/dist/lib/components/Select/index.d.ts +4 -4
  52. package/dist/lib/components/Select/index.d.ts.map +1 -1
  53. package/dist/lib/components/Select/selector.d.ts +22 -22
  54. package/dist/lib/components/Select/selector.d.ts.map +1 -1
  55. package/dist/lib/components/Select/types.d.ts +11 -1
  56. package/dist/lib/components/Select/types.d.ts.map +1 -1
  57. package/dist/lib/selects/currency/CurrencyFilter.d.ts +11 -10
  58. package/dist/lib/selects/currency/CurrencyFilter.d.ts.map +1 -1
  59. package/dist/lib/selects/currency/CurrencySelector.d.ts +6 -8
  60. package/dist/lib/selects/currency/CurrencySelector.d.ts.map +1 -1
  61. package/dist/lib/selects/currency/currency-options.d.ts +4 -0
  62. package/dist/lib/selects/currency/currency-options.d.ts.map +1 -0
  63. package/dist/lib/selects/currency/index.d.ts +3 -1
  64. package/dist/lib/selects/currency/index.d.ts.map +1 -1
  65. package/dist/lib/selects/icon/IconSelector.d.ts +23 -0
  66. package/dist/lib/selects/icon/IconSelector.d.ts.map +1 -0
  67. package/dist/lib/selects/icon/index.d.ts +1 -1
  68. package/dist/lib/selects/icon/index.d.ts.map +1 -1
  69. package/dist/lib/selects/iso-country/ISOCountryFilter.d.ts +9 -0
  70. package/dist/lib/selects/iso-country/ISOCountryFilter.d.ts.map +1 -0
  71. package/dist/lib/selects/iso-country/ISOCountrySelector.d.ts +4 -0
  72. package/dist/lib/selects/iso-country/ISOCountrySelector.d.ts.map +1 -0
  73. package/dist/lib/selects/iso-country/index.d.ts +2 -1
  74. package/dist/lib/selects/iso-country/index.d.ts.map +1 -1
  75. package/dist/lib/selects/iso-country/iso-countries.d.ts +2 -0
  76. package/dist/lib/selects/iso-country/iso-countries.d.ts.map +1 -1
  77. package/dist/lib/selects/locale/LocaleFilter.d.ts +8 -10
  78. package/dist/lib/selects/locale/LocaleFilter.d.ts.map +1 -1
  79. package/dist/lib/selects/locale/LocaleSelector.d.ts +2 -7
  80. package/dist/lib/selects/locale/LocaleSelector.d.ts.map +1 -1
  81. package/dist/lib/selects/locale/index.d.ts +1 -1
  82. package/dist/lib/selects/locale/index.d.ts.map +1 -1
  83. package/dist/lib/selects/timezone/TimezoneFilter.d.ts +8 -10
  84. package/dist/lib/selects/timezone/TimezoneFilter.d.ts.map +1 -1
  85. package/dist/lib/selects/timezone/TimezoneSelector.d.ts +2 -7
  86. package/dist/lib/selects/timezone/TimezoneSelector.d.ts.map +1 -1
  87. package/dist/lib/selects/timezone/index.d.ts +1 -1
  88. package/dist/lib/selects/timezone/index.d.ts.map +1 -1
  89. package/dist/lib/selects/types.d.ts +14 -0
  90. package/dist/lib/selects/types.d.ts.map +1 -0
  91. package/dist/selects/currency.js +2 -1
  92. package/dist/selects/currency.js.map +1 -1
  93. package/dist/selects/icon.js +1 -1
  94. package/dist/selects/iso-country.js +1 -1
  95. package/dist/useDataTable.js +3 -1
  96. package/dist/useDataTable.js.map +1 -1
  97. package/package.json +1 -1
  98. package/dist/ISOCountrySelect.js.map +0 -1
  99. package/dist/IconSelect.js.map +0 -1
  100. package/dist/lib/selects/icon/IconSelect.d.ts +0 -21
  101. package/dist/lib/selects/icon/IconSelect.d.ts.map +0 -1
  102. package/dist/lib/selects/iso-country/ISOCountrySelect.d.ts +0 -18
  103. 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 /* @__PURE__ */ jsxs(
1213
- "div",
1214
- {
1215
- role: "status",
1216
- "aria-busy": true,
1217
- "aria-label": "Loading chart",
1218
- className: cn("flex gap-3", className ?? "min-h-75 w-full"),
1219
- children: [
1220
- /* @__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)) }),
1221
- /* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col gap-2", "aria-hidden": true, children: [
1222
- /* @__PURE__ */ jsxs(
1223
- "svg",
1224
- {
1225
- viewBox: "0 0 100 40",
1226
- preserveAspectRatio: "none",
1227
- className: "w-full flex-1 text-muted-foreground",
1228
- role: "presentation",
1229
- children: [
1230
- /* @__PURE__ */ jsxs("defs", { children: [
1231
- /* @__PURE__ */ jsxs("linearGradient", { id: glowId, x1: "0", x2: "1", y1: "0", y2: "0", children: [
1232
- /* @__PURE__ */ jsx("stop", { offset: "0", stopColor: "currentColor", stopOpacity: "0" }),
1233
- /* @__PURE__ */ jsx("stop", { offset: "0.5", stopColor: "currentColor", stopOpacity: "0.9" }),
1234
- /* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "currentColor", stopOpacity: "0" })
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
- /* @__PURE__ */ jsx("mask", { id: maskId, children: ghosts.map((line) => /* @__PURE__ */ jsx(
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: "white",
1242
- strokeWidth: 4,
1243
- vectorEffect: "non-scaling-stroke"
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
- GRID_Y.map((y) => /* @__PURE__ */ jsx(
1249
- "line",
1250
- {
1251
- x1: 0,
1252
- x2: 100,
1253
- y1: y,
1254
- y2: y,
1255
- stroke: "currentColor",
1256
- strokeOpacity: 0.12,
1257
- vectorEffect: "non-scaling-stroke"
1258
- },
1259
- y
1260
- )),
1261
- ghosts.map((line, index) => /* @__PURE__ */ jsx(
1262
- "path",
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