klun-ui 0.4.0 → 0.4.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.
@@ -1,4 +1,4 @@
1
- import { locales, Badge, Button, SegmentedControl, Card, Tabs, ProgressBar, Input, Select, Switch, Divider, AvatarGroup, HorizontalFilter, ContentLabel, Chip, Alert, Accordion, useLocale, Avatar, Dropdown, RelativeTime, useMessage, Table, Modal, Label, Drawer, Tree, Textarea, CopyButton, EmptyState, RichEditorToolbar, Money, Timeline, DiffViewer, RichEditor, Kanban, Confirm, Kbd, Checkbox, CodeViewer, Cascader, Wizard, FileUpload, VirtualTable, CounterInput, Breadcrumb, DigitInput, ConfigProvider, Result, Skeleton, CommandMenu, StatusDot, ImageUpload, SelectMenu, CharacterCounter, Spinner } from '../chunk-TREMQLWT.js';
1
+ import { locales, Badge, Button, SegmentedControl, Card, Tabs, ProgressBar, Input, Select, Switch, Divider, AvatarGroup, HorizontalFilter, ContentLabel, Chip, Alert, Accordion, useLocale, Avatar, Dropdown, RelativeTime, useMessage, Table, Modal, Label, Drawer, Tree, Textarea, CopyButton, EmptyState, RichEditorToolbar, Money, Timeline, DiffViewer, RichEditor, Kanban, Confirm, Kbd, Checkbox, CodeViewer, Cascader, Wizard, FileUpload, VirtualTable, CounterInput, Breadcrumb, DigitInput, ConfigProvider, Result, Skeleton, CommandMenu, StatusDot, ImageUpload, SelectMenu, CharacterCounter, Spinner } from '../chunk-MBL2CDDG.js';
2
2
  import '../chunk-T225J6LV.js';
3
3
  import { useState, useRef, useEffect, useMemo, useId } from 'react';
4
4
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -10023,7 +10023,7 @@ function ImportExportScreen() {
10023
10023
  const [dedupe, setDedupe] = useState(true);
10024
10024
  const [updateExisting, setUpdateExisting] = useState(false);
10025
10025
  const [jobs, setJobs] = useState(INITIAL_JOBS);
10026
- const rows = useMemo(() => makeRows(1e5), []);
10026
+ const rows = useMemo(() => makeRows(25e3), []);
10027
10027
  const problemCount = useMemo(() => rows.filter((r) => r.problem).length, [rows]);
10028
10028
  const validCount = rows.length - problemCount;
10029
10029
  const mappedRequired = mapping["Order ID"] !== "ignore" && Boolean(mapping["Order ID"]);
@@ -10180,7 +10180,9 @@ function ImportExportScreen() {
10180
10180
  /* @__PURE__ */ jsxs("span", { style: { font: "var(--klun-text-label-xs)", color: "var(--klun-text-soft-400)" }, children: [
10181
10181
  "25.7 MB \xB7 ",
10182
10182
  SOURCE_COLUMNS.length,
10183
- " columns detected \xB7 100,000 data rows"
10183
+ " columns detected \xB7 ",
10184
+ rows.length.toLocaleString(),
10185
+ " data rows"
10184
10186
  ] })
10185
10187
  ] }),
10186
10188
  /* @__PURE__ */ jsx(Button, { size: "xsmall", variant: "neutral", appearance: "ghost", style: { marginLeft: "auto" }, onClick: () => setFileName(null), children: "Remove" })