@konstructio/ui 0.1.2-alpha.74 → 0.1.2-alpha.76
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-CXRo8f-h.js → Modal-BTOXCb0Y.js} +1 -1
- package/dist/assets/icons/components/Home2.d.ts +3 -0
- package/dist/assets/icons/components/Home2.js +28 -0
- package/dist/assets/icons/components/Upload.d.ts +3 -0
- package/dist/assets/icons/components/Upload.js +28 -0
- package/dist/assets/icons/components/index.d.ts +2 -0
- package/dist/assets/icons/components/index.js +70 -66
- package/dist/assets/icons/index.js +70 -66
- package/dist/components/Alert/Alert.d.ts +2 -2
- package/dist/components/Alert/Alert.types.d.ts +3 -1
- package/dist/components/AlertDialog/AlertDialog.d.ts +2 -2
- package/dist/components/AlertDialog/AlertDialog.js +1 -1
- package/dist/components/AlertDialog/AlertDialog.types.d.ts +5 -3
- package/dist/components/AlertDialog/components/AlertDialogTrigger.d.ts +2 -2
- package/dist/components/AlertDialog/components/AlertDialogTrigger.js +1 -1
- package/dist/components/AlertDialog/components/AlertDialogTrigger.types.d.ts +4 -2
- package/dist/components/AlertDialog/components/index.js +1 -1
- package/dist/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/components/Autocomplete/Autocomplete.types.d.ts +3 -1
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Badge/Badge.types.d.ts +3 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -2
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +3 -1
- package/dist/components/Breadcrumb/components/Item/Item.d.ts +2 -2
- package/dist/components/Breadcrumb/components/Item/Item.types.d.ts +3 -1
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Button.types.d.ts +3 -1
- package/dist/components/Button/Button.variants.js +4 -5
- package/dist/components/ButtonGroup/ButtonGroup.js +1 -1
- package/dist/components/ButtonGroup/components/ButtonGroupItem/ButtonGroupItem.js +1 -1
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/Card/Card.types.d.ts +3 -1
- package/dist/components/Checkbox/Checkbox.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.types.d.ts +3 -1
- package/dist/components/Command/Command.d.ts +2 -2
- package/dist/components/Command/Command.js +2 -2
- package/dist/components/Command/Command.types.d.ts +3 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/Command/components/DialogOverlay.js +1 -1
- package/dist/components/Counter/Counter.d.ts +2 -2
- package/dist/components/Counter/Counter.types.d.ts +3 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -2
- package/dist/components/DateRangePicker/DateRangePicker.types.d.ts +3 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/IndependentModeCalendar/IndependentModeCalendar.js +1 -1
- package/dist/components/DateRangePicker/components/CalendarPanel/components/TogetherModeCalendar/TogetherModeCalendar.js +1 -1
- package/dist/components/Datepicker/DatePicker.d.ts +2 -2
- package/dist/components/Datepicker/DatePicker.types.d.ts +3 -1
- package/dist/components/Filter/Filter.js +24 -22
- package/dist/components/Filter/Filter.types.d.ts +13 -3
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.d.ts +3 -1
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.hook.js +57 -41
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.js +75 -49
- package/dist/components/Filter/components/BadgeDropdown/BadgeMultiSelect.types.d.ts +2 -0
- package/dist/components/Filter/components/DateFilterDropdown/DateFilterDropdown.hook.js +38 -37
- package/dist/components/Filter/components/DateRangeFilterDropdown/DateRangeFilterDropdown.hook.js +31 -30
- package/dist/components/Filter/components/ResetButton/ResetButton.types.d.ts +1 -1
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.js +64 -47
- package/dist/components/Filter/components/TextMultiSelect/TextMultiSelect.types.d.ts +2 -0
- package/dist/components/Filter/components/TimeFilterDropdown/TimeFilterDropdown.hook.js +35 -34
- package/dist/components/Filter/contexts/filter.context.d.ts +4 -0
- package/dist/components/Filter/contexts/filter.context.js +7 -0
- package/dist/components/Filter/contexts/filter.hook.d.ts +2 -0
- package/dist/components/Filter/contexts/filter.hook.js +11 -0
- package/dist/components/Filter/contexts/filter.provider.d.ts +5 -0
- package/dist/components/Filter/contexts/filter.provider.js +6 -0
- package/dist/components/Filter/contexts/index.d.ts +3 -0
- package/dist/components/Filter/contexts/index.js +8 -0
- package/dist/components/ImageUpload/ImageUpload.d.ts +2 -2
- package/dist/components/ImageUpload/ImageUpload.types.d.ts +3 -1
- package/dist/components/Input/Input.d.ts +2 -2
- package/dist/components/Input/Input.types.d.ts +3 -1
- package/dist/components/LineChart/LineChart.d.ts +2 -2
- package/dist/components/LineChart/LineChart.js +55 -52
- package/dist/components/LineChart/LineChart.types.d.ts +6 -2
- package/dist/components/Loading/Loading.d.ts +2 -2
- package/dist/components/Loading/Loading.types.d.ts +3 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/components/Wrapper/Wrapper.js +2 -2
- package/dist/components/Modal/components/index.js +1 -1
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.d.ts +2 -2
- package/dist/components/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +3 -1
- package/dist/components/MultiSelectDropdown/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/PhoneNumberInput/components/FlagSelectorList/FlagSelectorList.js +394 -353
- package/dist/components/PhoneNumberInput/components/TruncateText/TruncateText.js +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +2 -2
- package/dist/components/ProgressBar/ProgressBar.types.d.ts +3 -1
- package/dist/components/Radio/Radio.d.ts +2 -2
- package/dist/components/Radio/Radio.types.d.ts +3 -1
- package/dist/components/RadioCard/RadioCard.d.ts +2 -2
- package/dist/components/RadioCard/RadioCard.types.d.ts +5 -3
- package/dist/components/RadioCardGroup/RadioCardGroup.d.ts +2 -2
- package/dist/components/RadioCardGroup/RadioCardGroup.types.d.ts +4 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.types.d.ts +4 -2
- package/dist/components/Range/Range.d.ts +2 -2
- package/dist/components/Range/Range.types.d.ts +3 -1
- package/dist/components/Select/Select.d.ts +2 -2
- package/dist/components/Select/Select.types.d.ts +4 -1
- package/dist/components/Select/Select.variants.js +1 -1
- package/dist/components/Select/components/AdditionalOptions/AdditionalOptions.types.d.ts +1 -1
- package/dist/components/Select/components/List/List.js +64 -61
- package/dist/components/Select/components/List/List.types.d.ts +2 -1
- package/dist/components/Select/components/Wrapper.js +46 -44
- package/dist/components/Select/constants/index.d.ts +1 -0
- package/dist/components/Select/constants/index.js +3 -1
- package/dist/components/Select/constants/list.d.ts +1 -0
- package/dist/components/Select/constants/list.js +4 -0
- package/dist/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/components/Sidebar/Sidebar.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Footer/Footer.d.ts +2 -2
- package/dist/components/Sidebar/components/Footer/Footer.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Logo/Logo.d.ts +2 -2
- package/dist/components/Sidebar/components/Logo/Logo.types.d.ts +3 -1
- package/dist/components/Sidebar/components/Navigation/Navigation.d.ts +2 -2
- package/dist/components/Sidebar/components/Navigation/Navigation.types.d.ts +7 -5
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationGroup/NavigationGroup.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationOption/NavigationOption.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationSeparator/NavigationSeparator.types.d.ts +3 -1
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.d.ts +2 -2
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.js +1 -5
- package/dist/components/Sidebar/components/NavigationTitle/NavigationTitle.types.d.ts +3 -1
- package/dist/components/Sidebar/components/index.d.ts +7 -7
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Slider/Slider.types.d.ts +3 -1
- package/dist/components/Spinner/Spinner.d.ts +2 -2
- package/dist/components/Spinner/Spinner.types.d.ts +4 -2
- package/dist/components/Stepper/Stepper.d.ts +2 -2
- package/dist/components/Stepper/Stepper.types.d.ts +3 -1
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.types.d.ts +3 -1
- package/dist/components/Table/Table.types.d.ts +3 -1
- package/dist/components/Tabs/Tabs.d.ts +1 -1
- package/dist/components/Tabs/Tabs.types.d.ts +3 -1
- package/dist/components/Tag/Tag.d.ts +2 -2
- package/dist/components/Tag/Tag.types.d.ts +3 -1
- package/dist/components/TagSelect/TagSelect.d.ts +2 -2
- package/dist/components/TagSelect/TagSelect.js +3 -1
- package/dist/components/TagSelect/TagSelect.types.d.ts +4 -2
- package/dist/components/TagSelect/components/Item/Item.types.d.ts +1 -1
- package/dist/components/TagSelect/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/TagSelect/contexts/TagSelect.types.d.ts +1 -1
- package/dist/components/TextArea/TextArea.d.ts +2 -2
- package/dist/components/TextArea/TextArea.types.d.ts +3 -1
- package/dist/components/TimePicker/TimePicker.d.ts +2 -2
- package/dist/components/TimePicker/TimePicker.types.d.ts +3 -1
- package/dist/components/TimePicker/components/HoursList/HoursList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/MeridianList/MeridianList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/MinutesList/MinutesList.types.d.ts +1 -1
- package/dist/components/TimePicker/components/Wrapper/Wrapper.types.d.ts +1 -1
- package/dist/components/TimePicker/components/WrapperList/WrapperList.types.d.ts +1 -1
- package/dist/components/Toast/Toast.d.ts +2 -2
- package/dist/components/Toast/Toast.js +191 -184
- package/dist/components/Toast/Toast.types.d.ts +3 -1
- package/dist/components/Toast/Toast.variants.js +6 -12
- package/dist/components/Tooltip/Tooltip.d.ts +2 -2
- package/dist/components/Tooltip/Tooltip.js +20 -20
- package/dist/components/Tooltip/Tooltip.types.d.ts +3 -1
- package/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/components/Typography/Typography.types.d.ts +3 -1
- package/dist/components/VirtualizedTable/VirtualizedTable.js +57 -55
- package/dist/components/VirtualizedTable/VirtualizedTable.types.d.ts +3 -1
- package/dist/components/VirtualizedTable/components/Filter/Filter.js +55 -54
- package/dist/components/VirtualizedTable/components/Filter/Filter.types.d.ts +1 -0
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.d.ts +1 -1
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.js +55 -26
- package/dist/components/VirtualizedTable/components/TruncateText/TruncateText.types.d.ts +4 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -1
- package/dist/icons.d.ts +1 -1
- package/dist/icons.js +70 -66
- package/dist/index-BvEpLnOv.js +144 -0
- package/dist/{index-Dd_ZmIqU.js → index-C7zAY3xv.js} +1 -1
- package/dist/{index-Dfq4O3b4.js → index-CrCTywU1.js} +1 -1
- package/dist/{index-9a-FL_6D.js → index-DWyM654o.js} +41 -42
- package/dist/{index-B7-5g1Sm.js → index-mPinF0Ho.js} +407 -401
- package/dist/index.js +1 -1
- package/dist/package.json +10 -10
- package/dist/proxy-BvdTb_6B.js +4974 -0
- package/dist/styles.css +1 -1
- package/package.json +10 -10
- package/dist/index-CESXsoMn.js +0 -14
- package/dist/index-URQGEGX7.js +0 -136
- package/dist/proxy-0sbyKj-k.js +0 -4946
|
@@ -1,34 +1,63 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { d as R } from "../../../../debounce-DJveWHr_.js";
|
|
3
|
+
import { useRef as g, useState as z, useCallback as L, useEffect as l } from "react";
|
|
4
|
+
import { Tooltip as y } from "../../../Tooltip/Tooltip.js";
|
|
5
|
+
import { Typography as i } from "../../../Typography/Typography.js";
|
|
6
|
+
import { cn as a } from "../../../../utils/index.js";
|
|
7
|
+
const A = ({
|
|
8
|
+
getValue: u,
|
|
9
|
+
value: f,
|
|
10
|
+
textClassName: c,
|
|
11
|
+
side: m = "bottom",
|
|
12
|
+
sideOffset: p,
|
|
13
|
+
bgClassName: d,
|
|
14
|
+
arrowClassName: h,
|
|
15
|
+
className: b,
|
|
16
|
+
delayDuration: w = 0
|
|
17
|
+
}) => {
|
|
18
|
+
const o = g(null), [T, x] = z(!1), r = f ?? u().toLocaleLowerCase(), t = L(() => {
|
|
19
|
+
const e = o.current;
|
|
20
|
+
e && x(e.scrollWidth > e.clientWidth);
|
|
9
21
|
}, []);
|
|
10
|
-
return
|
|
11
|
-
const e = new AbortController(),
|
|
12
|
-
return window.addEventListener("resize",
|
|
22
|
+
return l(() => {
|
|
23
|
+
const e = new AbortController(), s = R(t, 300);
|
|
24
|
+
return window.addEventListener("resize", s, {
|
|
13
25
|
signal: e.signal
|
|
14
26
|
}), () => {
|
|
15
|
-
e.abort(),
|
|
27
|
+
e.abort(), s.cancel();
|
|
16
28
|
};
|
|
17
|
-
}, [t]),
|
|
29
|
+
}, [t]), l(() => {
|
|
18
30
|
t();
|
|
19
|
-
}, [t]),
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
}, [t]), T ? /* @__PURE__ */ n(
|
|
32
|
+
y,
|
|
33
|
+
{
|
|
34
|
+
content: r,
|
|
35
|
+
side: m,
|
|
36
|
+
sideOffset: p,
|
|
37
|
+
bgClassName: d,
|
|
38
|
+
arrowClassName: h,
|
|
39
|
+
className: b,
|
|
40
|
+
delayDuration: w,
|
|
41
|
+
children: /* @__PURE__ */ n(
|
|
42
|
+
i,
|
|
43
|
+
{
|
|
44
|
+
ref: o,
|
|
45
|
+
component: "p",
|
|
46
|
+
className: a("w-full truncate cursor-pointer", c),
|
|
47
|
+
children: r
|
|
48
|
+
}
|
|
49
|
+
)
|
|
50
|
+
}
|
|
51
|
+
) : /* @__PURE__ */ n(
|
|
52
|
+
i,
|
|
53
|
+
{
|
|
54
|
+
ref: o,
|
|
55
|
+
component: "p",
|
|
56
|
+
className: a("w-full truncate", c),
|
|
57
|
+
children: r
|
|
58
|
+
}
|
|
59
|
+
);
|
|
31
60
|
};
|
|
32
61
|
export {
|
|
33
|
-
|
|
62
|
+
A as TruncateText
|
|
34
63
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { CellContext } from '@tanstack/react-table';
|
|
2
|
+
import { Props as TooltipProps } from '../../../Tooltip/Tooltip.types';
|
|
2
3
|
import { RowData } from '../../VirtualizedTable.types';
|
|
3
|
-
export type Props<TData extends RowData> = CellContext<TData, string> & {
|
|
4
|
+
export type Props<TData extends RowData> = CellContext<TData, string> & Partial<Omit<TooltipProps, 'content' | 'children' | 'textClassName'>> & {
|
|
4
5
|
value?: string;
|
|
6
|
+
/** Additional className for the text element */
|
|
7
|
+
textClassName?: string;
|
|
5
8
|
};
|
|
@@ -50,5 +50,7 @@ export type { VirtualizedTableEventDetail } from './VirtualizedTable/events';
|
|
|
50
50
|
export type { ColumnDef, RowData, FilterConfig, ActionFilterConfig, BadgeMultiSelectFilterConfig, TextMultiSelectFilterConfig, DateFilterConfig, DateRangeFilterConfig, TimeFilterConfig, } from './VirtualizedTable/VirtualizedTable.types';
|
|
51
51
|
export type { Step, StepperClassNames, StepperIcons, StepperProps, StepSize, StepStatus, StepVariant, } from './Stepper/Stepper.types';
|
|
52
52
|
export { horizontalConnectorWrapperVariants, stepConnectorVariants, stepContentVariants, stepDescriptionVariants, stepIndicatorVariants, stepItemVariants, stepLabelVariants, stepListVariants, stepperVariants, stepVariants, } from './Stepper/Stepper.variants';
|
|
53
|
+
/** @deprecated Use Counter instead */
|
|
53
54
|
export { Counter as NumberInput } from './Counter/Counter';
|
|
55
|
+
/** @deprecated Use Select instead */
|
|
54
56
|
export { Select as Dropdown } from './Select/Select';
|
package/dist/components/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { ImageUpload as k } from "./ImageUpload/ImageUpload.js";
|
|
|
18
18
|
import { Input as G } from "./Input/Input.js";
|
|
19
19
|
import { LineChart as y } from "./LineChart/LineChart.js";
|
|
20
20
|
import { Loading as U } from "./Loading/Loading.js";
|
|
21
|
-
import { M as j } from "../Modal-
|
|
21
|
+
import { M as j } from "../Modal-BTOXCb0Y.js";
|
|
22
22
|
import { MultiSelectDropdown as H } from "./MultiSelectDropdown/MultiSelectDropdown.js";
|
|
23
23
|
import { PhoneNumberInput as K } from "./PhoneNumberInput/PhoneNumberInput.js";
|
|
24
24
|
import { PieChart as X } from "./PieChart/PieChart.js";
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { AccountsIcon, AddChartIcon, AlertOutlineIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BookOpenIcon, CalendarMonthIcon, CheckboxMarkedCircleOutlineIcon, CheckCircleFilledIcon, CheckCircleOutlineIcon, CheckIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, CloudLockOutlineIcon, ClustersIcon, CogOutlineIcon, CopyIcon, CpuIcon, CubeIcon, DatacenterIcon, DeleteIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, GitIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, HomeIcon, IdIcon, InfoCircleIcon, InformationOutlineIcon, InvoiceListIcon, KeyIcon, LoaderIcon, LightBulbIcon, NetworkIcon, PagesStackIcon, PageviewIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, ReceiptLongIcon, RefreshIcon, ScatterPlotIcon, SearchIcon, ServerIcon, StartIcon, TabNewIcon, TeamsIcon, WarningIcon, WarningTriangleIcon, XIcon, } from './assets/icons/components';
|
|
1
|
+
export { AccountsIcon, AddChartIcon, AlertOutlineIcon, AppRepoIcon, AppsIcon, ArchivesIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BarChartIcon, BookOpenIcon, CalendarMonthIcon, CheckboxMarkedCircleOutlineIcon, CheckCircleFilledIcon, CheckCircleOutlineIcon, CheckIcon, ClockAlertIcon, ClockOutlineIcon, CloseIcon, CloudIcon, CloudLockOutlineIcon, ClustersIcon, CogOutlineIcon, CopyIcon, CpuIcon, CubeIcon, DatacenterIcon, DeleteIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsesIcon, EnvironmentsIcon, ErrorIcon, ErrorOutlineIcon, ExclamationIcon, GitIcon, GitOpsCatalogIcon, GridViewIcon, HelpIcon, HideOutlineIcon, Home2Icon, HomeIcon, IdIcon, InfoCircleIcon, InformationOutlineIcon, InvoiceListIcon, KeyIcon, LoaderIcon, LightBulbIcon, NetworkIcon, PagesStackIcon, PageviewIcon, PeopleIcon, PhotoLibraryIcon, PipelineIcon, PlusIcon, PowerSettingsIcon, PreviewIcon, ReceiptLongIcon, RefreshIcon, ScatterPlotIcon, SearchIcon, ServerIcon, StartIcon, TabNewIcon, TeamsIcon, UploadIcon, WarningIcon, WarningTriangleIcon, XIcon, } from './assets/icons/components';
|
|
2
2
|
export type { IconProps, IconComponent } from './assets/icons/components';
|
package/dist/icons.js
CHANGED
|
@@ -13,12 +13,12 @@ import { BookOpenIcon as P } from "./assets/icons/components/BookOpen.js";
|
|
|
13
13
|
import { CalendarMonthIcon as S } from "./assets/icons/components/CalendarMonth.js";
|
|
14
14
|
import { CheckCircleFilledIcon as E } from "./assets/icons/components/CheckCircleFilled.js";
|
|
15
15
|
import { CheckCircleOutlineIcon as D } from "./assets/icons/components/CheckCircleOutline.js";
|
|
16
|
-
import { CheckIcon as
|
|
17
|
-
import { CheckboxMarkedCircleOutlineIcon as
|
|
16
|
+
import { CheckIcon as R } from "./assets/icons/components/Check.js";
|
|
17
|
+
import { CheckboxMarkedCircleOutlineIcon as B } from "./assets/icons/components/CheckboxMarkedCircleOutline.js";
|
|
18
18
|
import { ClockAlertIcon as T } from "./assets/icons/components/ClockAlert.js";
|
|
19
19
|
import { ClockOutlineIcon as N } from "./assets/icons/components/ClockOutline.js";
|
|
20
|
-
import { CloseIcon as
|
|
21
|
-
import { CloudIcon as
|
|
20
|
+
import { CloseIcon as W } from "./assets/icons/components/Close.js";
|
|
21
|
+
import { CloudIcon as K } from "./assets/icons/components/Cloud.js";
|
|
22
22
|
import { CloudLockOutlineIcon as X } from "./assets/icons/components/CloudLockOutline.js";
|
|
23
23
|
import { ClustersIcon as q } from "./assets/icons/components/Clusters.js";
|
|
24
24
|
import { CogOutlineIcon as J } from "./assets/icons/components/CogOutline.js";
|
|
@@ -39,35 +39,37 @@ import { GitIcon as Oo } from "./assets/icons/components/Git.js";
|
|
|
39
39
|
import { GitOpsCatalogIcon as Lo } from "./assets/icons/components/GitOpsCatalog.js";
|
|
40
40
|
import { GridViewIcon as vo } from "./assets/icons/components/GridView.js";
|
|
41
41
|
import { HelpIcon as bo } from "./assets/icons/components/Help.js";
|
|
42
|
-
import { HideOutlineIcon as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
42
|
+
import { HideOutlineIcon as Ho } from "./assets/icons/components/HideOutline.js";
|
|
43
|
+
import { Home2Icon as yo } from "./assets/icons/components/Home2.js";
|
|
44
|
+
import { HomeIcon as Go } from "./assets/icons/components/Home.js";
|
|
45
|
+
import { IdIcon as Mo } from "./assets/icons/components/Id.js";
|
|
46
|
+
import { InfoCircleIcon as Uo } from "./assets/icons/components/InfoCircle.js";
|
|
47
|
+
import { InformationOutlineIcon as Fo } from "./assets/icons/components/InformationOutline.js";
|
|
48
|
+
import { InvoiceListIcon as Vo } from "./assets/icons/components/InvoiceList.js";
|
|
49
|
+
import { KeyIcon as jo } from "./assets/icons/components/Key.js";
|
|
50
|
+
import { LightBulbIcon as zo } from "./assets/icons/components/LightBulb.js";
|
|
51
|
+
import { LoaderIcon as Qo } from "./assets/icons/components/Loader.js";
|
|
52
|
+
import { NetworkIcon as Zo } from "./assets/icons/components/Network.js";
|
|
53
|
+
import { PagesStackIcon as $o } from "./assets/icons/components/PagesStack.js";
|
|
54
|
+
import { PageviewIcon as rr } from "./assets/icons/components/Pageview.js";
|
|
55
|
+
import { PeopleIcon as tr } from "./assets/icons/components/People.js";
|
|
56
|
+
import { PhotoLibraryIcon as cr } from "./assets/icons/components/PhotoLibrary.js";
|
|
57
|
+
import { PipelineIcon as mr } from "./assets/icons/components/Pipeline.js";
|
|
58
|
+
import { PlusIcon as Ir } from "./assets/icons/components/Plus.js";
|
|
59
|
+
import { PowerSettingsIcon as ir } from "./assets/icons/components/PowerSettings.js";
|
|
60
|
+
import { PreviewIcon as ar } from "./assets/icons/components/Preview.js";
|
|
61
|
+
import { ReceiptLongIcon as ur } from "./assets/icons/components/ReceiptLong.js";
|
|
62
|
+
import { RefreshIcon as dr } from "./assets/icons/components/Refresh.js";
|
|
63
|
+
import { ScatterPlotIcon as gr } from "./assets/icons/components/ScatterPlot.js";
|
|
64
|
+
import { SearchIcon as kr } from "./assets/icons/components/Search.js";
|
|
65
|
+
import { ServerIcon as Or } from "./assets/icons/components/Server.js";
|
|
66
|
+
import { StartIcon as Lr } from "./assets/icons/components/Start.js";
|
|
67
|
+
import { TabNewIcon as vr } from "./assets/icons/components/TabNew.js";
|
|
68
|
+
import { TeamsIcon as br } from "./assets/icons/components/Teams.js";
|
|
69
|
+
import { UploadIcon as Hr } from "./assets/icons/components/Upload.js";
|
|
70
|
+
import { WarningIcon as yr } from "./assets/icons/components/Warning.js";
|
|
71
|
+
import { WarningTriangleIcon as Gr } from "./assets/icons/components/WarningTriangle.js";
|
|
72
|
+
import { XIcon as Mr } from "./assets/icons/components/X.js";
|
|
71
73
|
export {
|
|
72
74
|
e as AccountsIcon,
|
|
73
75
|
n as AddChartIcon,
|
|
@@ -84,12 +86,12 @@ export {
|
|
|
84
86
|
S as CalendarMonthIcon,
|
|
85
87
|
E as CheckCircleFilledIcon,
|
|
86
88
|
D as CheckCircleOutlineIcon,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
+
R as CheckIcon,
|
|
90
|
+
B as CheckboxMarkedCircleOutlineIcon,
|
|
89
91
|
T as ClockAlertIcon,
|
|
90
92
|
N as ClockOutlineIcon,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
W as CloseIcon,
|
|
94
|
+
K as CloudIcon,
|
|
93
95
|
X as CloudLockOutlineIcon,
|
|
94
96
|
q as ClustersIcon,
|
|
95
97
|
J as CogOutlineIcon,
|
|
@@ -110,33 +112,35 @@ export {
|
|
|
110
112
|
Lo as GitOpsCatalogIcon,
|
|
111
113
|
vo as GridViewIcon,
|
|
112
114
|
bo as HelpIcon,
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
Mo as
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
Vo as
|
|
120
|
-
jo as
|
|
121
|
-
zo as
|
|
122
|
-
Qo as
|
|
123
|
-
Zo as
|
|
124
|
-
$o as
|
|
125
|
-
rr as
|
|
126
|
-
tr as
|
|
127
|
-
cr as
|
|
128
|
-
mr as
|
|
129
|
-
Ir as
|
|
130
|
-
ir as
|
|
131
|
-
ar as
|
|
132
|
-
ur as
|
|
133
|
-
dr as
|
|
134
|
-
gr as
|
|
135
|
-
kr as
|
|
136
|
-
Or as
|
|
137
|
-
Lr as
|
|
138
|
-
vr as
|
|
139
|
-
br as
|
|
140
|
-
|
|
141
|
-
|
|
115
|
+
Ho as HideOutlineIcon,
|
|
116
|
+
yo as Home2Icon,
|
|
117
|
+
Go as HomeIcon,
|
|
118
|
+
Mo as IdIcon,
|
|
119
|
+
Uo as InfoCircleIcon,
|
|
120
|
+
Fo as InformationOutlineIcon,
|
|
121
|
+
Vo as InvoiceListIcon,
|
|
122
|
+
jo as KeyIcon,
|
|
123
|
+
zo as LightBulbIcon,
|
|
124
|
+
Qo as LoaderIcon,
|
|
125
|
+
Zo as NetworkIcon,
|
|
126
|
+
$o as PagesStackIcon,
|
|
127
|
+
rr as PageviewIcon,
|
|
128
|
+
tr as PeopleIcon,
|
|
129
|
+
cr as PhotoLibraryIcon,
|
|
130
|
+
mr as PipelineIcon,
|
|
131
|
+
Ir as PlusIcon,
|
|
132
|
+
ir as PowerSettingsIcon,
|
|
133
|
+
ar as PreviewIcon,
|
|
134
|
+
ur as ReceiptLongIcon,
|
|
135
|
+
dr as RefreshIcon,
|
|
136
|
+
gr as ScatterPlotIcon,
|
|
137
|
+
kr as SearchIcon,
|
|
138
|
+
Or as ServerIcon,
|
|
139
|
+
Lr as StartIcon,
|
|
140
|
+
vr as TabNewIcon,
|
|
141
|
+
br as TeamsIcon,
|
|
142
|
+
Hr as UploadIcon,
|
|
143
|
+
yr as WarningIcon,
|
|
144
|
+
Gr as WarningTriangleIcon,
|
|
145
|
+
Mr as XIcon
|
|
142
146
|
};
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import * as r from "react";
|
|
2
|
+
import { P as m, c as p, d as U, u as z } from "./index--l0zux8V.js";
|
|
3
|
+
import { u as T } from "./index-DLcqcWxM.js";
|
|
4
|
+
import { u as b } from "./index-0ioNhtNM.js";
|
|
5
|
+
import { jsx as P } from "react/jsx-runtime";
|
|
6
|
+
import H from "react-dom";
|
|
7
|
+
function K(n, e = globalThis?.document) {
|
|
8
|
+
const t = b(n);
|
|
9
|
+
r.useEffect(() => {
|
|
10
|
+
const o = (s) => {
|
|
11
|
+
s.key === "Escape" && t(s);
|
|
12
|
+
};
|
|
13
|
+
return e.addEventListener("keydown", o, { capture: !0 }), () => e.removeEventListener("keydown", o, { capture: !0 });
|
|
14
|
+
}, [t, e]);
|
|
15
|
+
}
|
|
16
|
+
var j = "DismissableLayer", h = "dismissableLayer.update", X = "dismissableLayer.pointerDownOutside", Y = "dismissableLayer.focusOutside", R, B = r.createContext({
|
|
17
|
+
layers: /* @__PURE__ */ new Set(),
|
|
18
|
+
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
19
|
+
branches: /* @__PURE__ */ new Set()
|
|
20
|
+
}), x = r.forwardRef(
|
|
21
|
+
(n, e) => {
|
|
22
|
+
const {
|
|
23
|
+
disableOutsidePointerEvents: t = !1,
|
|
24
|
+
onEscapeKeyDown: o,
|
|
25
|
+
onPointerDownOutside: s,
|
|
26
|
+
onFocusOutside: a,
|
|
27
|
+
onInteractOutside: d,
|
|
28
|
+
onDismiss: l,
|
|
29
|
+
...E
|
|
30
|
+
} = n, c = r.useContext(B), [u, S] = r.useState(null), f = u?.ownerDocument ?? globalThis?.document, [, A] = r.useState({}), N = T(e, (i) => S(i)), D = Array.from(c.layers), [W] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), _ = D.indexOf(W), O = u ? D.indexOf(u) : -1, k = c.layersWithOutsidePointerEventsDisabled.size > 0, L = O >= _, M = G((i) => {
|
|
31
|
+
const v = i.target, w = [...c.branches].some((y) => y.contains(v));
|
|
32
|
+
!L || w || (s?.(i), d?.(i), i.defaultPrevented || l?.());
|
|
33
|
+
}, f), C = J((i) => {
|
|
34
|
+
const v = i.target;
|
|
35
|
+
[...c.branches].some((y) => y.contains(v)) || (a?.(i), d?.(i), i.defaultPrevented || l?.());
|
|
36
|
+
}, f);
|
|
37
|
+
return K((i) => {
|
|
38
|
+
O === c.layers.size - 1 && (o?.(i), !i.defaultPrevented && l && (i.preventDefault(), l()));
|
|
39
|
+
}, f), r.useEffect(() => {
|
|
40
|
+
if (u)
|
|
41
|
+
return t && (c.layersWithOutsidePointerEventsDisabled.size === 0 && (R = f.body.style.pointerEvents, f.body.style.pointerEvents = "none"), c.layersWithOutsidePointerEventsDisabled.add(u)), c.layers.add(u), g(), () => {
|
|
42
|
+
t && c.layersWithOutsidePointerEventsDisabled.size === 1 && (f.body.style.pointerEvents = R);
|
|
43
|
+
};
|
|
44
|
+
}, [u, f, t, c]), r.useEffect(() => () => {
|
|
45
|
+
u && (c.layers.delete(u), c.layersWithOutsidePointerEventsDisabled.delete(u), g());
|
|
46
|
+
}, [u, c]), r.useEffect(() => {
|
|
47
|
+
const i = () => A({});
|
|
48
|
+
return document.addEventListener(h, i), () => document.removeEventListener(h, i);
|
|
49
|
+
}, []), /* @__PURE__ */ P(
|
|
50
|
+
m.div,
|
|
51
|
+
{
|
|
52
|
+
...E,
|
|
53
|
+
ref: N,
|
|
54
|
+
style: {
|
|
55
|
+
pointerEvents: k ? L ? "auto" : "none" : void 0,
|
|
56
|
+
...n.style
|
|
57
|
+
},
|
|
58
|
+
onFocusCapture: p(n.onFocusCapture, C.onFocusCapture),
|
|
59
|
+
onBlurCapture: p(n.onBlurCapture, C.onBlurCapture),
|
|
60
|
+
onPointerDownCapture: p(
|
|
61
|
+
n.onPointerDownCapture,
|
|
62
|
+
M.onPointerDownCapture
|
|
63
|
+
)
|
|
64
|
+
}
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
x.displayName = j;
|
|
69
|
+
var q = "DismissableLayerBranch", F = r.forwardRef((n, e) => {
|
|
70
|
+
const t = r.useContext(B), o = r.useRef(null), s = T(e, o);
|
|
71
|
+
return r.useEffect(() => {
|
|
72
|
+
const a = o.current;
|
|
73
|
+
if (a)
|
|
74
|
+
return t.branches.add(a), () => {
|
|
75
|
+
t.branches.delete(a);
|
|
76
|
+
};
|
|
77
|
+
}, [t.branches]), /* @__PURE__ */ P(m.div, { ...n, ref: s });
|
|
78
|
+
});
|
|
79
|
+
F.displayName = q;
|
|
80
|
+
function G(n, e = globalThis?.document) {
|
|
81
|
+
const t = b(n), o = r.useRef(!1), s = r.useRef(() => {
|
|
82
|
+
});
|
|
83
|
+
return r.useEffect(() => {
|
|
84
|
+
const a = (l) => {
|
|
85
|
+
if (l.target && !o.current) {
|
|
86
|
+
let E = function() {
|
|
87
|
+
I(
|
|
88
|
+
X,
|
|
89
|
+
t,
|
|
90
|
+
c,
|
|
91
|
+
{ discrete: !0 }
|
|
92
|
+
);
|
|
93
|
+
};
|
|
94
|
+
const c = { originalEvent: l };
|
|
95
|
+
l.pointerType === "touch" ? (e.removeEventListener("click", s.current), s.current = E, e.addEventListener("click", s.current, { once: !0 })) : E();
|
|
96
|
+
} else
|
|
97
|
+
e.removeEventListener("click", s.current);
|
|
98
|
+
o.current = !1;
|
|
99
|
+
}, d = window.setTimeout(() => {
|
|
100
|
+
e.addEventListener("pointerdown", a);
|
|
101
|
+
}, 0);
|
|
102
|
+
return () => {
|
|
103
|
+
window.clearTimeout(d), e.removeEventListener("pointerdown", a), e.removeEventListener("click", s.current);
|
|
104
|
+
};
|
|
105
|
+
}, [e, t]), {
|
|
106
|
+
// ensures we check React component tree (not just DOM tree)
|
|
107
|
+
onPointerDownCapture: () => o.current = !0
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function J(n, e = globalThis?.document) {
|
|
111
|
+
const t = b(n), o = r.useRef(!1);
|
|
112
|
+
return r.useEffect(() => {
|
|
113
|
+
const s = (a) => {
|
|
114
|
+
a.target && !o.current && I(Y, t, { originalEvent: a }, {
|
|
115
|
+
discrete: !1
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
return e.addEventListener("focusin", s), () => e.removeEventListener("focusin", s);
|
|
119
|
+
}, [e, t]), {
|
|
120
|
+
onFocusCapture: () => o.current = !0,
|
|
121
|
+
onBlurCapture: () => o.current = !1
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
function g() {
|
|
125
|
+
const n = new CustomEvent(h);
|
|
126
|
+
document.dispatchEvent(n);
|
|
127
|
+
}
|
|
128
|
+
function I(n, e, t, { discrete: o }) {
|
|
129
|
+
const s = t.originalEvent.target, a = new CustomEvent(n, { bubbles: !1, cancelable: !0, detail: t });
|
|
130
|
+
e && s.addEventListener(n, e, { once: !0 }), o ? U(s, a) : s.dispatchEvent(a);
|
|
131
|
+
}
|
|
132
|
+
var ne = x, re = F, Q = "Portal", V = r.forwardRef((n, e) => {
|
|
133
|
+
const { container: t, ...o } = n, [s, a] = r.useState(!1);
|
|
134
|
+
z(() => a(!0), []);
|
|
135
|
+
const d = t || s && globalThis?.document?.body;
|
|
136
|
+
return d ? H.createPortal(/* @__PURE__ */ P(m.div, { ...o, ref: e }), d) : null;
|
|
137
|
+
});
|
|
138
|
+
V.displayName = Q;
|
|
139
|
+
export {
|
|
140
|
+
re as B,
|
|
141
|
+
x as D,
|
|
142
|
+
V as P,
|
|
143
|
+
ne as R
|
|
144
|
+
};
|
|
@@ -3,7 +3,7 @@ import * as l from "react";
|
|
|
3
3
|
import { forwardRef as I } from "react";
|
|
4
4
|
import { c as x, b as M } from "./index--l0zux8V.js";
|
|
5
5
|
import { u } from "./index-DLcqcWxM.js";
|
|
6
|
-
import { T as L, c as A, R as $, P as F, O as B, W as G, C as W, d as j, e as Y, b as f } from "./index-
|
|
6
|
+
import { T as L, c as A, R as $, P as F, O as B, W as G, C as W, d as j, e as Y, b as f } from "./index-DWyM654o.js";
|
|
7
7
|
import { Button as k } from "./components/Button/Button.js";
|
|
8
8
|
import { cn as q } from "./utils/index.js";
|
|
9
9
|
var H = /* @__PURE__ */ Symbol("radix.slottable");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-
|
|
1
|
+
import { R as Ee, P as ke, O as Se, C as Ie } from "./index-DWyM654o.js";
|
|
2
2
|
import * as n from "react";
|
|
3
3
|
import { P as C } from "./index--l0zux8V.js";
|
|
4
4
|
import { u as P } from "./index-BKMaItIC.js";
|