cynx-ui 1.2.2 → 1.2.4
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/components/Toggle.jsx +1 -1
- package/index.js +92 -39
- package/package.json +2 -3
package/components/Toggle.jsx
CHANGED
|
@@ -43,7 +43,7 @@ export default function Toggle({
|
|
|
43
43
|
styleInjected = true;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
const sizeClass =
|
|
46
|
+
const sizeClass = ` tgl-${size}`;
|
|
47
47
|
const classes = `tgl${sizeClass}${className ? ' ' + className : ''}`;
|
|
48
48
|
const trackColor = checked ? (COLORS[color] || COLORS.primary) : 'var(--bd2,#d7d8e0)';
|
|
49
49
|
|
package/index.js
CHANGED
|
@@ -1,41 +1,94 @@
|
|
|
1
1
|
// cynx-ui — shared component library
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
import { default as _Button } from './components/Button.jsx';
|
|
3
|
+
import { default as _Input } from './components/Input.jsx';
|
|
4
|
+
import { default as _Toggle } from './components/Toggle.jsx';
|
|
5
|
+
import { default as _Spinner, Spinner as _SpinnerNamed } from './components/Spinner.jsx';
|
|
6
|
+
import { default as _TabBar } from './components/TabBar.jsx';
|
|
7
|
+
import { default as _Dropdown } from './components/Dropdown.jsx';
|
|
8
|
+
import { default as _MultiSelect } from './components/MultiSelect.jsx';
|
|
9
|
+
import { default as _ImageUpload } from './components/ImageUpload.jsx';
|
|
10
|
+
import { default as _ChipSelect } from './components/ChipSelect.jsx';
|
|
11
|
+
import { default as _Checkbox } from './components/Checkbox.jsx';
|
|
12
|
+
import { default as _AuthOverlay } from './components/AuthOverlay.jsx';
|
|
13
|
+
import { default as _UptimeBar } from './components/UptimeBar.jsx';
|
|
14
|
+
import { default as _LineProgress } from './components/LineProgress.jsx';
|
|
15
|
+
import { default as _StatBarCard } from './components/StatBarCard.jsx';
|
|
16
|
+
import { default as _StatsCard } from './components/StatsCard.jsx';
|
|
17
|
+
import { default as _ActivityCard } from './components/ActivityCard.jsx';
|
|
18
|
+
import { default as _HoverCard } from './components/HoverCard.jsx';
|
|
19
|
+
import { default as _StatsBar } from './components/StatsBar.jsx';
|
|
20
|
+
import { default as _Select } from './components/Select.jsx';
|
|
21
|
+
import { default as _Badge } from './components/Badge.jsx';
|
|
22
|
+
import { default as _PulseDot } from './components/PulseDot.jsx';
|
|
23
|
+
import { default as _CircularProgress } from './components/CircularProgress.jsx';
|
|
24
|
+
import { default as _Skeleton } from './components/Skeleton.jsx';
|
|
25
|
+
import { Modal as _Modal, Confirm as _Confirm } from './components/Modal.jsx';
|
|
26
|
+
import { toast as _toast, useToast as _useToast, Toast as _Toast } from './components/Toast.jsx';
|
|
27
|
+
import { ConfirmRoot as _ConfirmRoot, confirm as _confirm } from './components/Confirm.jsx';
|
|
28
|
+
import { SearchableDropdown as _SearchableDropdown } from './components/SearchableDropdown.jsx';
|
|
29
|
+
import { Pagination as _Pagination } from './components/Pagination.jsx';
|
|
30
|
+
import { DatePicker as _DatePicker } from './components/DatePicker.jsx';
|
|
31
|
+
import { ActionsMenu as _ActionsMenu } from './components/ActionsMenu.jsx';
|
|
32
|
+
import { BrandingCard as _BrandingCard } from './components/BrandingCard.jsx';
|
|
33
|
+
import { Dropzone as _Dropzone } from './components/Dropzone.jsx';
|
|
34
|
+
import { Tabs as _Tabs } from './components/Tabs.jsx';
|
|
35
|
+
import { SkeletonText as _SkeletonText, SkeletonCard as _SkeletonCard, SkeletonRows as _SkeletonRows, SkeletonStats as _SkeletonStats } from './components/Skeleton.jsx';
|
|
36
|
+
import { XTable as _XTable, XThead as _XThead, XTbody as _XTbody, XTr as _XTr, XTh as _XTh, XTd as _XTd, SkeletonTable as _SkeletonTable } from './components/XTable.jsx';
|
|
37
|
+
import { PageShell as _PageShell, TableCard as _TableCard, TableCardFilters as _TableCardFilters, TableCardBody as _TableCardBody, TableCardFooter as _TableCardFooter, CardHdr as _CardHdr, StatCard as _StatCard, StatCardSkeleton as _StatCardSkeleton } from './components/Card.jsx';
|
|
4
38
|
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
39
|
+
export const Button = _Button;
|
|
40
|
+
export const Input = _Input;
|
|
41
|
+
export const Toggle = _Toggle;
|
|
42
|
+
export const Spinner = _Spinner || _SpinnerNamed;
|
|
43
|
+
export const TabBar = _TabBar;
|
|
44
|
+
export const Dropdown = _Dropdown;
|
|
45
|
+
export const MultiSelect = _MultiSelect;
|
|
46
|
+
export const ImageUpload = _ImageUpload;
|
|
47
|
+
export const ChipSelect = _ChipSelect;
|
|
48
|
+
export const Checkbox = _Checkbox;
|
|
49
|
+
export const AuthOverlay = _AuthOverlay;
|
|
50
|
+
export const UptimeBar = _UptimeBar;
|
|
51
|
+
export const LineProgress = _LineProgress;
|
|
52
|
+
export const StatBarCard = _StatBarCard;
|
|
53
|
+
export const StatsCard = _StatsCard;
|
|
54
|
+
export const ActivityCard = _ActivityCard;
|
|
55
|
+
export const HoverCard = _HoverCard;
|
|
56
|
+
export const StatsBar = _StatsBar;
|
|
57
|
+
export const Select = _Select;
|
|
58
|
+
export const Badge = _Badge;
|
|
59
|
+
export const PulseDot = _PulseDot;
|
|
60
|
+
export const CircularProgress = _CircularProgress;
|
|
61
|
+
export const Skeleton = _Skeleton;
|
|
62
|
+
export const Modal = _Modal;
|
|
63
|
+
export const Confirm = _Confirm;
|
|
64
|
+
export const toast = _toast;
|
|
65
|
+
export const useToast = _useToast;
|
|
66
|
+
export const Toast = _Toast;
|
|
67
|
+
export const ConfirmRoot = _ConfirmRoot;
|
|
68
|
+
export const confirm = _confirm;
|
|
69
|
+
export const SearchableDropdown = _SearchableDropdown;
|
|
70
|
+
export const Pagination = _Pagination;
|
|
71
|
+
export const DatePicker = _DatePicker;
|
|
72
|
+
export const ActionsMenu = _ActionsMenu;
|
|
73
|
+
export const BrandingCard = _BrandingCard;
|
|
74
|
+
export const Dropzone = _Dropzone;
|
|
75
|
+
export const Tabs = _Tabs;
|
|
76
|
+
export const SkeletonText = _SkeletonText;
|
|
77
|
+
export const SkeletonCard = _SkeletonCard;
|
|
78
|
+
export const SkeletonRows = _SkeletonRows;
|
|
79
|
+
export const SkeletonStats = _SkeletonStats;
|
|
80
|
+
export const XTable = _XTable;
|
|
81
|
+
export const XThead = _XThead;
|
|
82
|
+
export const XTbody = _XTbody;
|
|
83
|
+
export const XTr = _XTr;
|
|
84
|
+
export const XTh = _XTh;
|
|
85
|
+
export const XTd = _XTd;
|
|
86
|
+
export const SkeletonTable = _SkeletonTable;
|
|
87
|
+
export const PageShell = _PageShell;
|
|
88
|
+
export const TableCard = _TableCard;
|
|
89
|
+
export const TableCardFilters = _TableCardFilters;
|
|
90
|
+
export const TableCardBody = _TableCardBody;
|
|
91
|
+
export const TableCardFooter = _TableCardFooter;
|
|
92
|
+
export const CardHdr = _CardHdr;
|
|
93
|
+
export const StatCard = _StatCard;
|
|
94
|
+
export const StatCardSkeleton = _StatCardSkeleton;
|