@konstructio/ui 0.1.2-alpha.4 → 0.1.2-alpha.5
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/{Modal-V67Uz78z.js → Modal-D-NOEWMX.js} +3 -3
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{chevron-down-BLZPftpV.js → chevron-down-MZvQoT2F.js} +2 -2
- package/dist/chevron-right-VYBOBhRt.js +19 -0
- package/dist/components/Alert/Alert.js +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Badge/Badge.js +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
- package/dist/components/Breadcrumb/components/Item/Item.js +16 -15
- package/dist/components/Checkbox/Checkbox.js +5 -4
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/components/Command.js +1 -1
- package/dist/components/Command/components/CommandEmpty.js +1 -1
- package/dist/components/Command/components/CommandGroup.js +1 -1
- package/dist/components/Command/components/CommandInput.js +2 -2
- package/dist/components/Command/components/CommandItem.js +1 -1
- package/dist/components/Command/components/CommandList.js +1 -1
- package/dist/components/Command/components/CommandSeparator.js +1 -1
- package/dist/components/Command/components/DialogContent.js +2 -2
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Datepicker/DatePicker.js +545 -543
- package/dist/components/Dropdown/components/List/List.js +36 -33
- package/dist/components/Dropdown/components/ListItem/ListItem.js +19 -18
- package/dist/components/Dropdown/components/Wrapper.js +3 -3
- package/dist/components/Dropdown/contexts/dropdown.provider.js +18 -18
- package/dist/components/Dropdown/hooks/useNavigationList.js +25 -25
- package/dist/components/DropdownButton/DropdownButton.js +1 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +1 -1
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.js +1 -1
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Loading/Loading.js +2 -2
- package/dist/components/Modal/Modal.js +2 -2
- package/dist/components/Modal/components/Wrapper/Wrapper.js +3 -3
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/NumberInput/NumberInput.js +2 -2
- package/dist/components/PieChart/PieChart.js +217 -215
- package/dist/components/Range/Range.js +1 -1
- package/dist/components/Sidebar/components/Wrapper/Wrapper.js +29 -28
- package/dist/components/Slider/Slider.js +1 -1
- package/dist/components/Switch/Switch.js +6 -5
- package/dist/components/Tabs/Tabs.js +1 -1
- package/dist/components/Tabs/components/Content.js +1 -1
- package/dist/components/Tabs/components/List.js +1 -1
- package/dist/components/Tabs/components/Trigger.js +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/TimePicker/components/Wrapper/Wrapper.js +1 -1
- package/dist/components/Toast/Toast.js +8 -7
- package/dist/components/VirtualizedTable/VirtualizedTable.js +99 -0
- package/dist/components/VirtualizedTable/VirtualizedTable.variants.js +5 -0
- package/dist/components/VirtualizedTable/assets/chevron-down.js +25 -0
- package/dist/components/VirtualizedTable/assets/chevron-up.js +25 -0
- package/dist/components/VirtualizedTable/assets/index.js +6 -0
- package/dist/components/VirtualizedTable/components/Actions/Actions.js +46 -0
- package/dist/components/VirtualizedTable/components/Body/Body.js +25 -0
- package/dist/components/VirtualizedTable/components/DotPaginate/DotPaginate.js +165 -0
- package/dist/components/VirtualizedTable/components/DropdownPaginate/DropdownPaginate.js +34 -0
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +73 -0
- package/dist/components/VirtualizedTable/components/FormPaginate/FormPaginate.js +48 -0
- package/dist/components/VirtualizedTable/components/Header/Header.js +82 -0
- package/dist/components/VirtualizedTable/components/Pagination/Pagination.js +45 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +1870 -0
- package/dist/components/VirtualizedTable/components/index.js +14 -0
- package/dist/components/VirtualizedTable/constants/index.js +5 -0
- package/dist/components/VirtualizedTable/constants/pagination.js +5 -0
- package/dist/components/VirtualizedTable/contexts/index.js +8 -0
- package/dist/components/VirtualizedTable/contexts/table.context.js +31 -0
- package/dist/components/VirtualizedTable/contexts/table.hook.js +11 -0
- package/dist/components/VirtualizedTable/contexts/table.provider.js +778 -0
- package/dist/components/index.js +44 -40
- package/dist/{createLucideIcon-DbC6TvM5.js → createLucideIcon-D2CN7Ma9.js} +4 -4
- package/dist/debounce-BFejQm9P.js +200 -0
- package/dist/{index-D3xzCzcO.js → index-B7t8D14s.js} +2 -2
- package/dist/index-BAEWsOG1.js +27 -0
- package/dist/{index-C9T9HQaa.js → index-BITvcJAz.js} +1 -1
- package/dist/index-BZPx6jYI.js +8 -0
- package/dist/{index-BAraV3ai.js → index-Bnb0ezr3.js} +1 -1
- package/dist/{index-DB2XhXHn.js → index-C84F4YyO.js} +11 -10
- package/dist/index-Cd2vhaop.js +137 -0
- package/dist/{index-iXyXtdgP.js → index-DBbEcSUG.js} +1 -1
- package/dist/index-Dx2grAuN.js +1742 -0
- package/dist/{index-BXuxPoz7.js → index-DzIBBMjs.js} +18 -17
- package/dist/{index-h-Ul0anl.js → index-N2OStZoU.js} +1 -1
- package/dist/{index-Oq5GlCHP.js → index-os7vysFS.js} +1 -1
- package/dist/index-ti1b9kqV.js +14 -0
- package/dist/index.d.ts +88 -3
- package/dist/index.js +41 -37
- package/dist/package.json +19 -15
- package/dist/styles.css +1 -1
- package/dist/{x-BPcqkRZd.js → x-4F_5p77m.js} +1 -1
- package/package.json +19 -15
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/index-CZnD2QxM.js +0 -32
- package/dist/index-CrBonFvu.js +0 -144
|
@@ -2,10 +2,11 @@ import * as i from "react";
|
|
|
2
2
|
import { a as Ee, c as he, b as _, d as ye } from "./index-BfXxHr_2.js";
|
|
3
3
|
import { u as S, c as De } from "./index-DQH6odE9.js";
|
|
4
4
|
import { u as w } from "./index-bwWKd82e.js";
|
|
5
|
-
import {
|
|
6
|
-
import { P as N } from "./index-
|
|
5
|
+
import { D as be } from "./index-Cd2vhaop.js";
|
|
6
|
+
import { P as N } from "./index-BITvcJAz.js";
|
|
7
7
|
import { u as j } from "./index-0ioNhtNM.js";
|
|
8
8
|
import { jsx as l, jsxs as q, Fragment as B } from "react/jsx-runtime";
|
|
9
|
+
import { P as Ce } from "./index-ti1b9kqV.js";
|
|
9
10
|
import { P as U } from "./index-C1g_chDT.js";
|
|
10
11
|
import { R as Ae } from "./Combination-VYaRRJBZ.js";
|
|
11
12
|
var x = "focusScope.autoFocusOnMount", L = "focusScope.autoFocusOnUnmount", V = { bubbles: !1, cancelable: !0 }, Re = "FocusScope", Q = i.forwardRef((e, o) => {
|
|
@@ -197,7 +198,7 @@ var Se = function(e) {
|
|
|
197
198
|
return r ? (n.push.apply(n, Array.from(r.querySelectorAll("[aria-live]"))), we(n, r, t, "aria-hidden")) : function() {
|
|
198
199
|
return null;
|
|
199
200
|
};
|
|
200
|
-
}, M = "Dialog", [te,
|
|
201
|
+
}, M = "Dialog", [te, tt] = he(M), [Le, m] = te(M), oe = (e) => {
|
|
201
202
|
const {
|
|
202
203
|
__scopeDialog: o,
|
|
203
204
|
children: t,
|
|
@@ -252,7 +253,7 @@ var K = "DialogPortal", [ke, ae] = te(K, {
|
|
|
252
253
|
forceMount: void 0
|
|
253
254
|
}), se = (e) => {
|
|
254
255
|
const { __scopeDialog: o, forceMount: t, children: n, container: r } = e, a = m(K, o);
|
|
255
|
-
return /* @__PURE__ */ l(ke, { scope: o, forceMount: t, children: i.Children.map(n, (d) => /* @__PURE__ */ l(U, { present: t || a.open, children: /* @__PURE__ */ l(
|
|
256
|
+
return /* @__PURE__ */ l(ke, { scope: o, forceMount: t, children: i.Children.map(n, (d) => /* @__PURE__ */ l(U, { present: t || a.open, children: /* @__PURE__ */ l(Ce, { asChild: !0, container: r, children: d }) })) });
|
|
256
257
|
};
|
|
257
258
|
se.displayName = K;
|
|
258
259
|
var I = "DialogOverlay", ie = i.forwardRef(
|
|
@@ -347,7 +348,7 @@ var Ke = i.forwardRef(
|
|
|
347
348
|
onMountAutoFocus: r,
|
|
348
349
|
onUnmountAutoFocus: a,
|
|
349
350
|
children: /* @__PURE__ */ l(
|
|
350
|
-
|
|
351
|
+
be,
|
|
351
352
|
{
|
|
352
353
|
role: "dialog",
|
|
353
354
|
id: s.contentId,
|
|
@@ -399,7 +400,7 @@ ve.displayName = pe;
|
|
|
399
400
|
function H(e) {
|
|
400
401
|
return e ? "open" : "closed";
|
|
401
402
|
}
|
|
402
|
-
var me = "DialogTitleWarning", [
|
|
403
|
+
var me = "DialogTitleWarning", [ot, ge] = ye(me, {
|
|
403
404
|
contentName: A,
|
|
404
405
|
titleName: G,
|
|
405
406
|
docsSlug: "dialog"
|
|
@@ -418,18 +419,18 @@ For more information, see https://radix-ui.com/primitives/docs/components/${o.do
|
|
|
418
419
|
const r = e.current?.getAttribute("aria-describedby");
|
|
419
420
|
o && r && (document.getElementById(o) || console.warn(n));
|
|
420
421
|
}, [n, e, o]), null;
|
|
421
|
-
},
|
|
422
|
+
}, nt = oe, rt = re, at = se, st = ie, it = ce, ct = le, ut = de, lt = ve;
|
|
422
423
|
export {
|
|
423
|
-
|
|
424
|
+
it as C,
|
|
424
425
|
le as D,
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
426
|
+
st as O,
|
|
427
|
+
at as P,
|
|
428
|
+
nt as R,
|
|
429
|
+
ct as T,
|
|
430
|
+
ot as W,
|
|
430
431
|
se as a,
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
432
|
+
lt as b,
|
|
433
|
+
tt as c,
|
|
434
|
+
ut as d,
|
|
435
|
+
rt as e
|
|
435
436
|
};
|
|
@@ -2,7 +2,7 @@ import { jsx as i, jsxs as O } from "react/jsx-runtime";
|
|
|
2
2
|
import * as l from "react";
|
|
3
3
|
import { c as w, b as M } from "./index-BfXxHr_2.js";
|
|
4
4
|
import { u, b as x } from "./index-DQH6odE9.js";
|
|
5
|
-
import { c as A, R as I, P as $, O as L, W as F, C as G, T as W, d as j, b as v, e as B } from "./index-
|
|
5
|
+
import { c as A, R as I, P as $, O as L, W as F, C as G, T as W, d as j, b as v, e as B } from "./index-DzIBBMjs.js";
|
|
6
6
|
import { Button as Y } from "./components/Button/Button.js";
|
|
7
7
|
import { cn as k } from "./utils/index.js";
|
|
8
8
|
var D = "AlertDialog", [q, le] = w(D, [
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import { R as m, P as c } from "./index-BITvcJAz.js";
|
|
3
|
+
import { u as f } from "./index-BfXxHr_2.js";
|
|
4
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
5
|
+
var u = "Portal", p = o.forwardRef((r, a) => {
|
|
6
|
+
const { container: e, ...s } = r, [n, i] = o.useState(!1);
|
|
7
|
+
f(() => i(!0), []);
|
|
8
|
+
const t = e || n && globalThis?.document?.body;
|
|
9
|
+
return t ? m.createPortal(/* @__PURE__ */ l(c.div, { ...s, ref: a }), t) : null;
|
|
10
|
+
});
|
|
11
|
+
p.displayName = u;
|
|
12
|
+
export {
|
|
13
|
+
p as P
|
|
14
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AlertDialogProps as AlertDialogProps_2 } from '@radix-ui/react-alert-dialog';
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { CellContext } from '@tanstack/react-table';
|
|
3
4
|
import { CheckboxProps as CheckboxProps_2 } from '@radix-ui/react-checkbox';
|
|
4
5
|
import { ClassProp } from 'class-variance-authority/types';
|
|
6
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
5
7
|
import { ComponentRef } from 'react';
|
|
6
8
|
import { Context } from 'react';
|
|
7
9
|
import { DayPickerProps } from 'react-day-picker';
|
|
@@ -11,15 +13,23 @@ import { getAllTimezones } from 'countries-and-timezones';
|
|
|
11
13
|
import { HTMLAttributes } from 'react';
|
|
12
14
|
import { HtmlHTMLAttributes } from 'react';
|
|
13
15
|
import { InputHTMLAttributes } from 'react';
|
|
16
|
+
import { JSX } from 'react/jsx-runtime';
|
|
17
|
+
import { JSX as JSX_2 } from 'react';
|
|
14
18
|
import { PropsWithChildren } from 'react';
|
|
15
19
|
import { ReactNode } from 'react';
|
|
16
20
|
import * as ReactTabs from '@radix-ui/react-tabs';
|
|
17
21
|
import { Ref } from 'react';
|
|
18
22
|
import { RefAttributes } from 'react';
|
|
23
|
+
import { RowData as RowData_2 } from '@tanstack/react-table';
|
|
19
24
|
import { SliderProps } from '@radix-ui/react-slider';
|
|
20
25
|
import { TabsContentProps } from '@radix-ui/react-tabs';
|
|
21
26
|
import { VariantProps } from 'class-variance-authority';
|
|
22
27
|
|
|
28
|
+
declare type Action<TData> = {
|
|
29
|
+
label: string;
|
|
30
|
+
onClick: (rowData: TData) => void;
|
|
31
|
+
};
|
|
32
|
+
|
|
23
33
|
export declare const Alert: FC<AlertProps>;
|
|
24
34
|
|
|
25
35
|
export declare const AlertDialog: FC<AlertDialogProps>;
|
|
@@ -324,6 +334,13 @@ declare interface ModalProps extends PropsWithChildren, VariantProps<typeof moda
|
|
|
324
334
|
|
|
325
335
|
declare const modalVariants: (props?: ClassProp | undefined) => string;
|
|
326
336
|
|
|
337
|
+
declare type MultiSelectFilter = {
|
|
338
|
+
key: string;
|
|
339
|
+
label: string;
|
|
340
|
+
position?: 'right' | 'left';
|
|
341
|
+
options: OptionType[];
|
|
342
|
+
};
|
|
343
|
+
|
|
327
344
|
export declare const Navigation: FC<NavigationProps> & NavigationChildrenProps;
|
|
328
345
|
|
|
329
346
|
declare type NavigationChildrenProps = {
|
|
@@ -433,6 +450,12 @@ declare type Option_5 = {
|
|
|
433
450
|
variant?: BadgeProps['variant'];
|
|
434
451
|
};
|
|
435
452
|
|
|
453
|
+
declare type OptionType = {
|
|
454
|
+
id: string;
|
|
455
|
+
label: string;
|
|
456
|
+
variant?: 'info' | 'danger' | 'success' | 'default' | 'warning' | null;
|
|
457
|
+
};
|
|
458
|
+
|
|
436
459
|
export declare const PieChart: FC<Props_2>;
|
|
437
460
|
|
|
438
461
|
export declare const ProgressBar: FC<ProgressBarProps>;
|
|
@@ -539,6 +562,53 @@ declare type Props_2 = {
|
|
|
539
562
|
subtitle?: string;
|
|
540
563
|
});
|
|
541
564
|
|
|
565
|
+
declare type Props_3<TData extends RowData> = CellContext<TData, string> & {
|
|
566
|
+
value?: string;
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
declare type Props_4<TData extends RowData_2> = VariantProps<typeof virtualizeTableVariants> & {
|
|
570
|
+
id: string;
|
|
571
|
+
ariaLabel?: string;
|
|
572
|
+
columns: ColumnDef<TData, string>[];
|
|
573
|
+
data: TData[];
|
|
574
|
+
totalItems: number;
|
|
575
|
+
fetchData: (params: Record<string, string | number | string[] | number[] | undefined>) => Promise<{
|
|
576
|
+
data: TData[];
|
|
577
|
+
totalItemsCount: number;
|
|
578
|
+
}>;
|
|
579
|
+
classNameHeaderTable?: string;
|
|
580
|
+
classNameHeaderArrows?: string;
|
|
581
|
+
classNameHeaderActiveArrows?: string;
|
|
582
|
+
} & ({
|
|
583
|
+
showPagination: true;
|
|
584
|
+
showTotalItems?: boolean;
|
|
585
|
+
showDropdownPagination?: boolean;
|
|
586
|
+
showDotPagination?: boolean;
|
|
587
|
+
showFormPagination?: boolean;
|
|
588
|
+
pageSizes?: number[] | string[];
|
|
589
|
+
} | {
|
|
590
|
+
showPagination?: false | undefined;
|
|
591
|
+
showTotalItems?: never;
|
|
592
|
+
showDropdownPagination?: never;
|
|
593
|
+
showDotPagination?: never;
|
|
594
|
+
showFormPagination?: never;
|
|
595
|
+
pageSizes?: never;
|
|
596
|
+
}) & ({
|
|
597
|
+
filterSearchPlaceholder?: string;
|
|
598
|
+
multiSelectFilter?: MultiSelectFilter[];
|
|
599
|
+
showFilter: true;
|
|
600
|
+
showFilterInput?: boolean;
|
|
601
|
+
} | {
|
|
602
|
+
filterSearchPlaceholder?: never;
|
|
603
|
+
multiSelectFilter?: never;
|
|
604
|
+
showFilter?: false | undefined;
|
|
605
|
+
showFilterInput?: never;
|
|
606
|
+
});
|
|
607
|
+
|
|
608
|
+
declare type Props_5<TData extends RowData> = CellContext<TData, unknown> & {
|
|
609
|
+
actions: Action<TData>[];
|
|
610
|
+
};
|
|
611
|
+
|
|
542
612
|
export declare const Radio: FC<RadioProps>;
|
|
543
613
|
|
|
544
614
|
export declare const RadioCard: FC<RadioCardProps>;
|
|
@@ -619,6 +689,8 @@ declare type ResetButtonProps = ButtonProps & {
|
|
|
619
689
|
onClick?: VoidFunction;
|
|
620
690
|
};
|
|
621
691
|
|
|
692
|
+
declare type RowData = RowData_2;
|
|
693
|
+
|
|
622
694
|
declare interface RowProps extends React.HTMLAttributes<HTMLTableRowElement>, PropsWithChildren, VariantProps<typeof rowVariants> {
|
|
623
695
|
width?: string;
|
|
624
696
|
isSelected?: boolean;
|
|
@@ -641,11 +713,12 @@ declare type SidebarChildrenProps = {
|
|
|
641
713
|
};
|
|
642
714
|
|
|
643
715
|
declare interface SidebarProps extends VariantProps<typeof wrapperSiderbarVariants>, PropsWithChildren {
|
|
644
|
-
wrapperClassName?: string;
|
|
645
|
-
minWith?: number;
|
|
646
|
-
maxWith?: number;
|
|
647
716
|
canResize?: boolean;
|
|
717
|
+
dividerClassName?: string;
|
|
718
|
+
maxWith?: number;
|
|
719
|
+
minWith?: number;
|
|
648
720
|
theme?: Theme;
|
|
721
|
+
wrapperClassName?: string;
|
|
649
722
|
}
|
|
650
723
|
|
|
651
724
|
export declare const Slider: FC<SliderProps_2>;
|
|
@@ -833,6 +906,8 @@ declare const triggerVariants: (props?: ({
|
|
|
833
906
|
variant?: "default" | "active" | "inactive" | null | undefined;
|
|
834
907
|
} & ClassProp) | undefined) => string;
|
|
835
908
|
|
|
909
|
+
export declare const TruncateText: <TData>({ getValue, value }: Props_3<TData>) => JSX.Element;
|
|
910
|
+
|
|
836
911
|
export declare const Typography: ForwardRefExoticComponent<Omit<TypographyProps, 'ref'> & RefAttributes<HTMLParagraphElement | HTMLHeadingElement>>;
|
|
837
912
|
|
|
838
913
|
declare interface TypographyProps extends HTMLAttributes<ComponentRef<HeadingTag | 'p' | 'span'>>, VariantProps<typeof typographyVariants> {
|
|
@@ -850,6 +925,16 @@ export declare const useTheme: () => ThemeProps;
|
|
|
850
925
|
|
|
851
926
|
export declare const useToggle: (initialState?: boolean) => [boolean, (value?: boolean) => void];
|
|
852
927
|
|
|
928
|
+
export declare const VirtualizedTable: VirtualizedTableCompound;
|
|
929
|
+
|
|
930
|
+
declare type VirtualizedTableCompound = (<TData extends RowData>(props: Props_4<TData>) => JSX_2.Element) & {
|
|
931
|
+
TruncateText: typeof TruncateText;
|
|
932
|
+
Actions: <TData extends RowData>(props: Props_5<TData>) => JSX_2.Element | null;
|
|
933
|
+
displayName?: string;
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
declare const virtualizeTableVariants: (props?: ClassProp | undefined) => string;
|
|
937
|
+
|
|
853
938
|
declare const wrapperSiderbarVariants: (props?: ClassProp | undefined) => string;
|
|
854
939
|
|
|
855
940
|
export { }
|
package/dist/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import { Autocomplete as x } from "./components/Autocomplete/Autocomplete.js";
|
|
|
4
4
|
import { Badge as a } from "./components/Badge/Badge.js";
|
|
5
5
|
import { Breadcrumb as d } from "./components/Breadcrumb/Breadcrumb.js";
|
|
6
6
|
import { Button as n } from "./components/Button/Button.js";
|
|
7
|
-
import { Card as
|
|
7
|
+
import { Card as l } from "./components/Card/Card.js";
|
|
8
8
|
import { Checkbox as c } from "./components/Checkbox/Checkbox.js";
|
|
9
|
-
import { DatePicker as
|
|
10
|
-
import { Divider as
|
|
9
|
+
import { DatePicker as b } from "./components/Datepicker/DatePicker.js";
|
|
10
|
+
import { Divider as C } from "./components/Divider/Divider.js";
|
|
11
11
|
import { Dropdown as v } from "./components/Dropdown/Dropdown.js";
|
|
12
12
|
import { DropdownButton as S } from "./components/DropdownButton/DropdownButton.js";
|
|
13
13
|
import { Filter as P } from "./components/Filter/Filter.js";
|
|
@@ -15,12 +15,12 @@ import { BadgeMultiSelect as w } from "./components/Filter/components/BadgeDropd
|
|
|
15
15
|
import { DateFilterDropdown as k } from "./components/Filter/components/DateFilterDropdown/DateFilterDropdown.js";
|
|
16
16
|
import { Input as G } from "./components/Input/Input.js";
|
|
17
17
|
import { Loading as M } from "./components/Loading/Loading.js";
|
|
18
|
-
import { M as I } from "./Modal-
|
|
19
|
-
import { NumberInput as
|
|
20
|
-
import { PieChart as
|
|
21
|
-
import { ProgressBar as
|
|
22
|
-
import { Radio as
|
|
23
|
-
import { RadioCard as
|
|
18
|
+
import { M as I } from "./Modal-D-NOEWMX.js";
|
|
19
|
+
import { NumberInput as O } from "./components/NumberInput/NumberInput.js";
|
|
20
|
+
import { PieChart as j } from "./components/PieChart/PieChart.js";
|
|
21
|
+
import { ProgressBar as E } from "./components/ProgressBar/ProgressBar.js";
|
|
22
|
+
import { Radio as J } from "./components/Radio/Radio.js";
|
|
23
|
+
import { RadioCard as Q } from "./components/RadioCard/RadioCard.js";
|
|
24
24
|
import { RadioCardGroup as W } from "./components/RadioCardGroup/RadioCardGroup.js";
|
|
25
25
|
import { RadioGroup as Y } from "./components/RadioGroup/RadioGroup.js";
|
|
26
26
|
import { Range as _ } from "./components/Range/Range.js";
|
|
@@ -30,11 +30,11 @@ import { Navigation as po } from "./components/Sidebar/components/Navigation/Nav
|
|
|
30
30
|
import { NavigationGroup as xo } from "./components/Sidebar/components/NavigationGroup/NavigationGroup.js";
|
|
31
31
|
import { NavigationOption as ao } from "./components/Sidebar/components/NavigationOption/NavigationOption.js";
|
|
32
32
|
import { NavigationSeparator as go } from "./components/Sidebar/components/NavigationSeparator/NavigationSeparator.js";
|
|
33
|
-
import { Sidebar as
|
|
33
|
+
import { Sidebar as To } from "./components/Sidebar/Sidebar.js";
|
|
34
34
|
import { Slider as uo } from "./components/Slider/Slider.js";
|
|
35
35
|
import { Switch as so } from "./components/Switch/Switch.js";
|
|
36
|
-
import { Table as
|
|
37
|
-
import { Content as
|
|
36
|
+
import { Table as ho } from "./components/Table/Table.js";
|
|
37
|
+
import { Content as Do } from "./components/Tabs/components/Content.js";
|
|
38
38
|
import { List as Bo } from "./components/Tabs/components/List.js";
|
|
39
39
|
import { Tabs as No } from "./components/Tabs/Tabs.js";
|
|
40
40
|
import { Trigger as Ro } from "./components/Tabs/components/Trigger.js";
|
|
@@ -42,13 +42,15 @@ import { Tag as Ao } from "./components/Tag/Tag.js";
|
|
|
42
42
|
import { TagSelect as Fo } from "./components/TagSelect/TagSelect.js";
|
|
43
43
|
import { TextArea as Lo } from "./components/TextArea/TextArea.js";
|
|
44
44
|
import { TimePicker as yo } from "./components/TimePicker/TimePicker.js";
|
|
45
|
-
import { Toast as
|
|
46
|
-
import { Tooltip as
|
|
47
|
-
import { Typography as
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
45
|
+
import { Toast as zo } from "./components/Toast/Toast.js";
|
|
46
|
+
import { Tooltip as Vo } from "./components/Tooltip/Tooltip.js";
|
|
47
|
+
import { Typography as qo } from "./components/Typography/Typography.js";
|
|
48
|
+
import { TruncateText as Ho } from "./components/VirtualizedTable/components/TruncateText/TruncateText.js";
|
|
49
|
+
import { VirtualizedTable as Ko } from "./components/VirtualizedTable/VirtualizedTable.js";
|
|
50
|
+
import { ThemeContext as Uo } from "./contexts/theme.context.js";
|
|
51
|
+
import { useTheme as Xo } from "./contexts/theme.hook.js";
|
|
52
|
+
import { ThemeProvider as Zo } from "./contexts/theme.provider.js";
|
|
53
|
+
import { useToggle as $o } from "./hooks/useToggle.js";
|
|
52
54
|
export {
|
|
53
55
|
e as Alert,
|
|
54
56
|
p as AlertDialog,
|
|
@@ -57,12 +59,12 @@ export {
|
|
|
57
59
|
w as BadgeMultiSelect,
|
|
58
60
|
d as Breadcrumb,
|
|
59
61
|
n as Button,
|
|
60
|
-
|
|
62
|
+
l as Card,
|
|
61
63
|
c as Checkbox,
|
|
62
|
-
|
|
64
|
+
Do as Content,
|
|
63
65
|
k as DateFilterDropdown,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
b as DatePicker,
|
|
67
|
+
C as Divider,
|
|
66
68
|
v as Dropdown,
|
|
67
69
|
S as DropdownButton,
|
|
68
70
|
P as Filter,
|
|
@@ -76,29 +78,31 @@ export {
|
|
|
76
78
|
xo as NavigationGroup,
|
|
77
79
|
ao as NavigationOption,
|
|
78
80
|
go as NavigationSeparator,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
O as NumberInput,
|
|
82
|
+
j as PieChart,
|
|
83
|
+
E as ProgressBar,
|
|
84
|
+
J as Radio,
|
|
85
|
+
Q as RadioCard,
|
|
84
86
|
W as RadioCardGroup,
|
|
85
87
|
Y as RadioGroup,
|
|
86
88
|
_ as Range,
|
|
87
|
-
|
|
89
|
+
To as Sidebar,
|
|
88
90
|
uo as Slider,
|
|
89
91
|
so as Switch,
|
|
90
|
-
|
|
92
|
+
ho as Table,
|
|
91
93
|
No as Tabs,
|
|
92
94
|
Ao as Tag,
|
|
93
95
|
Fo as TagSelect,
|
|
94
96
|
Lo as TextArea,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
+
Uo as ThemeContext,
|
|
98
|
+
Zo as ThemeProvider,
|
|
97
99
|
yo as TimePicker,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
zo as Toast,
|
|
101
|
+
Vo as Tooltip,
|
|
100
102
|
Ro as Trigger,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
103
|
+
Ho as TruncateText,
|
|
104
|
+
qo as Typography,
|
|
105
|
+
Ko as VirtualizedTable,
|
|
106
|
+
Xo as useTheme,
|
|
107
|
+
$o as useToggle
|
|
104
108
|
};
|
package/dist/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@konstructio/ui",
|
|
3
3
|
"description": "A set of reusable and customizable React components built for konstruct.io",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.1.2-alpha.
|
|
5
|
+
"version": "0.1.2-alpha.4",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"main": "dist/index.js",
|
|
@@ -63,16 +63,19 @@
|
|
|
63
63
|
"@radix-ui/react-switch": "^1.2.6",
|
|
64
64
|
"@radix-ui/react-tabs": "^1.1.13",
|
|
65
65
|
"@radix-ui/react-toast": "^1.2.15",
|
|
66
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
66
67
|
"@radix-ui/react-visually-hidden": "^1.2.3",
|
|
67
|
-
"
|
|
68
|
+
"@tanstack/react-query": "^5.90.3",
|
|
69
|
+
"@tanstack/react-table": "^8.21.3",
|
|
70
|
+
"chart.js": "^4.5.1",
|
|
68
71
|
"class-variance-authority": "^0.7.1",
|
|
69
72
|
"clsx": "^2.1.1",
|
|
70
73
|
"cmdk": "^1.1.1",
|
|
71
74
|
"countries-and-timezones": "^3.8.0",
|
|
72
75
|
"js-cookie": "^3.0.5",
|
|
73
|
-
"lucide-react": "^0.
|
|
76
|
+
"lucide-react": "^0.545.0",
|
|
74
77
|
"react-chartjs-2": "^5.3.0",
|
|
75
|
-
"react-day-picker": "^9.11.
|
|
78
|
+
"react-day-picker": "^9.11.1",
|
|
76
79
|
"react-feather": "^2.0.10",
|
|
77
80
|
"react-focus-lock": "^2.13.6",
|
|
78
81
|
"react-remove-scroll": "^2.7.1",
|
|
@@ -107,28 +110,29 @@
|
|
|
107
110
|
}
|
|
108
111
|
},
|
|
109
112
|
"devDependencies": {
|
|
113
|
+
"@faker-js/faker": "^10.0.0",
|
|
110
114
|
"@rollup/plugin-alias": "^5.1.1",
|
|
111
115
|
"@storybook/addon-docs": "^9.1.10",
|
|
112
116
|
"@storybook/addon-links": "^9.1.10",
|
|
113
117
|
"@storybook/react-vite": "^9.1.10",
|
|
114
|
-
"@tailwindcss/vite": "^4.1.
|
|
115
|
-
"@testing-library/jest-dom": "^6.9.
|
|
118
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
119
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
116
120
|
"@testing-library/react": "^16.3.0",
|
|
117
121
|
"@testing-library/user-event": "^14.6.1",
|
|
118
122
|
"@types/jest-axe": "^3.5.9",
|
|
119
123
|
"@types/js-cookie": "^3.0.6",
|
|
120
124
|
"@types/lodash": "^4.17.20",
|
|
121
|
-
"@types/react": "^19.
|
|
122
|
-
"@types/react-dom": "^19.
|
|
123
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
124
|
-
"@typescript-eslint/parser": "^8.
|
|
125
|
+
"@types/react": "^19.2.2",
|
|
126
|
+
"@types/react-dom": "^19.2.2",
|
|
127
|
+
"@typescript-eslint/eslint-plugin": "^8.46.1",
|
|
128
|
+
"@typescript-eslint/parser": "^8.46.1",
|
|
125
129
|
"@vitejs/plugin-react": "^5.0.4",
|
|
126
130
|
"@vitest/coverage-v8": "^3.2.4",
|
|
127
131
|
"autoprefixer": "^10.4.21",
|
|
128
|
-
"eslint": "^9.
|
|
132
|
+
"eslint": "^9.37.0",
|
|
129
133
|
"eslint-plugin-react": "^7.37.5",
|
|
130
|
-
"eslint-plugin-react-hooks": "^
|
|
131
|
-
"eslint-plugin-react-refresh": "^0.4.
|
|
134
|
+
"eslint-plugin-react-hooks": "^6.1.1",
|
|
135
|
+
"eslint-plugin-react-refresh": "^0.4.23",
|
|
132
136
|
"eslint-plugin-storybook": "^9.1.10",
|
|
133
137
|
"eslint-plugin-vitest": "^0.5.4",
|
|
134
138
|
"glob": "^11.0.3",
|
|
@@ -140,10 +144,10 @@
|
|
|
140
144
|
"prettier": "^3.6.2",
|
|
141
145
|
"rimraf": "^6.0.1",
|
|
142
146
|
"storybook": "^9.1.10",
|
|
143
|
-
"tailwindcss": "^4.1.
|
|
147
|
+
"tailwindcss": "^4.1.14",
|
|
144
148
|
"ts-node": "^10.9.2",
|
|
145
149
|
"typescript": "^5.9.3",
|
|
146
|
-
"vite": "^7.1.
|
|
150
|
+
"vite": "^7.1.10",
|
|
147
151
|
"vite-plugin-dts": "^4.5.4",
|
|
148
152
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
149
153
|
"vite-plugin-svgr": "^4.5.0",
|