@cerberus-design/react 0.15.0-next-32cd15e → 0.15.0-next-199cf16
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/build/legacy/_tsup-dts-rollup.d.cts +35 -3
- package/build/legacy/components/DatePicker.client.cjs +37 -30
- package/build/legacy/components/DatePicker.client.cjs.map +1 -1
- package/build/legacy/components/button/button.cjs +154 -0
- package/build/legacy/components/button/button.cjs.map +1 -0
- package/build/legacy/components/button/index.cjs +163 -0
- package/build/legacy/components/button/index.cjs.map +1 -0
- package/build/legacy/components/button/parts.cjs +159 -0
- package/build/legacy/components/button/parts.cjs.map +1 -0
- package/build/legacy/components/deprecated/NavMenuTrigger.cjs.map +1 -1
- package/build/legacy/context/confirm-modal.cjs +53 -44
- package/build/legacy/context/confirm-modal.cjs.map +1 -1
- package/build/legacy/context/cta-modal.cjs +53 -44
- package/build/legacy/context/cta-modal.cjs.map +1 -1
- package/build/legacy/context/notification-center.cjs +22 -15
- package/build/legacy/context/notification-center.cjs.map +1 -1
- package/build/legacy/context/prompt-modal.cjs +75 -66
- package/build/legacy/context/prompt-modal.cjs.map +1 -1
- package/build/legacy/index.cjs +416 -393
- package/build/legacy/index.cjs.map +1 -1
- package/build/modern/_tsup-dts-rollup.d.ts +35 -3
- package/build/modern/{chunk-BRVZVAPT.js → chunk-245SMQ45.js} +1 -1
- package/build/modern/chunk-245SMQ45.js.map +1 -0
- package/build/modern/{chunk-ISCJ542I.js → chunk-2HOUQ2DX.js} +2 -2
- package/build/modern/chunk-2JX27W6Y.js +15 -0
- package/build/modern/chunk-2JX27W6Y.js.map +1 -0
- package/build/modern/{chunk-F5OVI74O.js → chunk-3RGRHMJQ.js} +6 -6
- package/build/modern/chunk-3RGRHMJQ.js.map +1 -0
- package/build/modern/{chunk-FV4UITYD.js → chunk-5QONP7GT.js} +4 -4
- package/build/modern/{chunk-O6LFWUHI.js → chunk-7P7OWBGV.js} +2 -2
- package/build/modern/{chunk-UNDJYNQC.js → chunk-7S47NSGR.js} +6 -6
- package/build/modern/chunk-7S47NSGR.js.map +1 -0
- package/build/modern/{chunk-25HMVHLT.js → chunk-7SU6FCTJ.js} +5 -5
- package/build/modern/chunk-CYC2YUKU.js +1 -0
- package/build/modern/{chunk-NJSETNRL.js → chunk-DXBZ3HMY.js} +2 -2
- package/build/modern/{chunk-A6BRQ2QK.js → chunk-KU2AWAK3.js} +2 -2
- package/build/modern/chunk-KU2AWAK3.js.map +1 -0
- package/build/modern/chunk-MER66QUY.js +52 -0
- package/build/modern/chunk-MER66QUY.js.map +1 -0
- package/build/modern/{chunk-EDARV2EI.js → chunk-MISIUX63.js} +4 -4
- package/build/modern/{chunk-N24COMHJ.js → chunk-NGOLRISW.js} +4 -4
- package/build/modern/{chunk-ZUXK7V4G.js → chunk-Q4IV5NUT.js} +9 -9
- package/build/modern/chunk-Q4IV5NUT.js.map +1 -0
- package/build/modern/{chunk-GCQMH4QA.js → chunk-SXLPDPOZ.js} +4 -4
- package/build/modern/{chunk-MZ3UCDUL.js → chunk-VYCU7I4J.js} +4 -4
- package/build/modern/{chunk-FOKO6LKG.js → chunk-Z7FGXAND.js} +7 -7
- package/build/modern/chunk-Z7FGXAND.js.map +1 -0
- package/build/modern/components/AccordionItemGroup.js +1 -1
- package/build/modern/components/Admonition.client.js +3 -3
- package/build/modern/components/Admonition.js +4 -4
- package/build/modern/components/Avatar.js +2 -2
- package/build/modern/components/Checkbox.js +2 -2
- package/build/modern/components/DatePicker.client.js +4 -2
- package/build/modern/components/FileStatus.js +3 -3
- package/build/modern/components/FileUploader.js +3 -3
- package/build/modern/components/Input.js +2 -2
- package/build/modern/components/Select.js +2 -2
- package/build/modern/components/Tag.js +2 -2
- package/build/modern/components/button/button.js +12 -0
- package/build/modern/components/button/button.js.map +1 -0
- package/build/modern/components/button/index.js +16 -0
- package/build/modern/components/button/index.js.map +1 -0
- package/build/modern/components/button/parts.js +10 -0
- package/build/modern/components/button/parts.js.map +1 -0
- package/build/modern/components/deprecated/NavMenuTrigger.js +1 -1
- package/build/modern/context/confirm-modal.js +5 -4
- package/build/modern/context/cta-modal.js +5 -4
- package/build/modern/context/notification-center.js +5 -4
- package/build/modern/context/prompt-modal.js +6 -5
- package/build/modern/index.js +52 -45
- package/build/modern/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/DatePicker.client.tsx +1 -1
- package/src/components/button/button.tsx +77 -0
- package/src/components/button/index.ts +2 -0
- package/src/components/button/parts.ts +26 -0
- package/src/components/deprecated/NavMenuTrigger.tsx +1 -1
- package/src/context/confirm-modal.tsx +1 -1
- package/src/context/cta-modal.tsx +1 -1
- package/src/context/notification-center.tsx +1 -1
- package/src/context/prompt-modal.tsx +1 -1
- package/src/index.ts +1 -1
- package/build/legacy/components/Button.cjs +0 -51
- package/build/legacy/components/Button.cjs.map +0 -1
- package/build/modern/chunk-A6BRQ2QK.js.map +0 -1
- package/build/modern/chunk-BRVZVAPT.js.map +0 -1
- package/build/modern/chunk-F5OVI74O.js.map +0 -1
- package/build/modern/chunk-FOKO6LKG.js.map +0 -1
- package/build/modern/chunk-STNRGV3Y.js +0 -29
- package/build/modern/chunk-STNRGV3Y.js.map +0 -1
- package/build/modern/chunk-UNDJYNQC.js.map +0 -1
- package/build/modern/chunk-ZUXK7V4G.js.map +0 -1
- package/build/modern/components/Button.js +0 -7
- package/src/components/Button.tsx +0 -36
- /package/build/modern/{chunk-ISCJ542I.js.map → chunk-2HOUQ2DX.js.map} +0 -0
- /package/build/modern/{chunk-FV4UITYD.js.map → chunk-5QONP7GT.js.map} +0 -0
- /package/build/modern/{chunk-O6LFWUHI.js.map → chunk-7P7OWBGV.js.map} +0 -0
- /package/build/modern/{chunk-25HMVHLT.js.map → chunk-7SU6FCTJ.js.map} +0 -0
- /package/build/modern/{components/Button.js.map → chunk-CYC2YUKU.js.map} +0 -0
- /package/build/modern/{chunk-NJSETNRL.js.map → chunk-DXBZ3HMY.js.map} +0 -0
- /package/build/modern/{chunk-EDARV2EI.js.map → chunk-MISIUX63.js.map} +0 -0
- /package/build/modern/{chunk-N24COMHJ.js.map → chunk-NGOLRISW.js.map} +0 -0
- /package/build/modern/{chunk-GCQMH4QA.js.map → chunk-SXLPDPOZ.js.map} +0 -0
- /package/build/modern/{chunk-MZ3UCDUL.js.map → chunk-VYCU7I4J.js.map} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
MatchAvatar
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-BUVVRQLZ.js";
|
|
4
|
+
} from "../chunk-2HOUQ2DX.js";
|
|
5
|
+
import "../chunk-SXLPDPOZ.js";
|
|
7
6
|
import "../chunk-GITT5645.js";
|
|
7
|
+
import "../chunk-BUVVRQLZ.js";
|
|
8
8
|
export {
|
|
9
9
|
MatchAvatar
|
|
10
10
|
};
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Admonition,
|
|
3
3
|
AdmonitionDescription,
|
|
4
4
|
AdmonitionHeading
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
8
|
-
import "../chunk-BUVVRQLZ.js";
|
|
5
|
+
} from "../chunk-DXBZ3HMY.js";
|
|
6
|
+
import "../chunk-2HOUQ2DX.js";
|
|
7
|
+
import "../chunk-SXLPDPOZ.js";
|
|
9
8
|
import "../chunk-GITT5645.js";
|
|
9
|
+
import "../chunk-BUVVRQLZ.js";
|
|
10
10
|
export {
|
|
11
11
|
Admonition,
|
|
12
12
|
AdmonitionDescription,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Checkbox
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NGOLRISW.js";
|
|
5
5
|
import "../chunk-UZDVOIW5.js";
|
|
6
|
-
import "../chunk-BUVVRQLZ.js";
|
|
7
6
|
import "../chunk-GITT5645.js";
|
|
7
|
+
import "../chunk-BUVVRQLZ.js";
|
|
8
8
|
export {
|
|
9
9
|
Checkbox
|
|
10
10
|
};
|
|
@@ -10,13 +10,15 @@ import {
|
|
|
10
10
|
DatePickerViewControlGroup,
|
|
11
11
|
DatePickerYearView,
|
|
12
12
|
RangePickerInput
|
|
13
|
-
} from "../chunk-
|
|
13
|
+
} from "../chunk-KU2AWAK3.js";
|
|
14
14
|
import "../chunk-UZDVOIW5.js";
|
|
15
15
|
import "../chunk-5EWCH7AI.js";
|
|
16
16
|
import "../chunk-APD6IX5R.js";
|
|
17
17
|
import "../chunk-IQJDVFPP.js";
|
|
18
18
|
import "../chunk-GITT5645.js";
|
|
19
|
-
import "../chunk-
|
|
19
|
+
import "../chunk-MER66QUY.js";
|
|
20
|
+
import "../chunk-7SYJFI5E.js";
|
|
21
|
+
import "../chunk-BUVVRQLZ.js";
|
|
20
22
|
export {
|
|
21
23
|
DatePicker,
|
|
22
24
|
DatePickerCalendar,
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FileStatus,
|
|
4
4
|
processStatus
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7P7OWBGV.js";
|
|
6
6
|
import "../chunk-WZJ5UQNM.js";
|
|
7
7
|
import "../chunk-JWIJHSI6.js";
|
|
8
8
|
import "../chunk-UZDVOIW5.js";
|
|
9
9
|
import "../chunk-APD6IX5R.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-BUVVRQLZ.js";
|
|
10
|
+
import "../chunk-SXLPDPOZ.js";
|
|
12
11
|
import "../chunk-GITT5645.js";
|
|
12
|
+
import "../chunk-BUVVRQLZ.js";
|
|
13
13
|
export {
|
|
14
14
|
FileStatus,
|
|
15
15
|
processStatus
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
FileUploader
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-BUVVRQLZ.js";
|
|
4
|
+
} from "../chunk-7SU6FCTJ.js";
|
|
5
|
+
import "../chunk-SXLPDPOZ.js";
|
|
7
6
|
import "../chunk-GITT5645.js";
|
|
7
|
+
import "../chunk-BUVVRQLZ.js";
|
|
8
8
|
export {
|
|
9
9
|
FileUploader
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import {
|
|
3
3
|
Input
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-VYCU7I4J.js";
|
|
5
5
|
import "../chunk-UZDVOIW5.js";
|
|
6
|
-
import "../chunk-BUVVRQLZ.js";
|
|
7
6
|
import "../chunk-GITT5645.js";
|
|
7
|
+
import "../chunk-BUVVRQLZ.js";
|
|
8
8
|
export {
|
|
9
9
|
Input
|
|
10
10
|
};
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
OptionGroupLabel,
|
|
6
6
|
Select,
|
|
7
7
|
createSelectCollection
|
|
8
|
-
} from "../chunk-
|
|
8
|
+
} from "../chunk-5QONP7GT.js";
|
|
9
9
|
import "../chunk-RU5LOXWI.js";
|
|
10
10
|
import "../chunk-YWMPB2JR.js";
|
|
11
11
|
import "../chunk-IQJDVFPP.js";
|
|
12
|
-
import "../chunk-BUVVRQLZ.js";
|
|
13
12
|
import "../chunk-GITT5645.js";
|
|
13
|
+
import "../chunk-BUVVRQLZ.js";
|
|
14
14
|
export {
|
|
15
15
|
Option,
|
|
16
16
|
OptionGroup,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import "../../chunk-CYC2YUKU.js";
|
|
2
|
+
import {
|
|
3
|
+
ButtonParts
|
|
4
|
+
} from "../../chunk-2JX27W6Y.js";
|
|
5
|
+
import {
|
|
6
|
+
Button,
|
|
7
|
+
ButtonIcon
|
|
8
|
+
} from "../../chunk-MER66QUY.js";
|
|
9
|
+
import "../../chunk-7SYJFI5E.js";
|
|
10
|
+
import "../../chunk-BUVVRQLZ.js";
|
|
11
|
+
export {
|
|
12
|
+
Button,
|
|
13
|
+
ButtonIcon,
|
|
14
|
+
ButtonParts
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
import {
|
|
3
3
|
ConfirmModal,
|
|
4
4
|
useConfirmModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-7S47NSGR.js";
|
|
6
6
|
import "../chunk-TFL56AYR.js";
|
|
7
7
|
import "../chunk-IQJDVFPP.js";
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-BUVVRQLZ.js";
|
|
8
|
+
import "../chunk-SXLPDPOZ.js";
|
|
10
9
|
import "../chunk-GITT5645.js";
|
|
11
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-MER66QUY.js";
|
|
11
|
+
import "../chunk-7SYJFI5E.js";
|
|
12
|
+
import "../chunk-BUVVRQLZ.js";
|
|
12
13
|
export {
|
|
13
14
|
ConfirmModal,
|
|
14
15
|
useConfirmModal
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
CTAModal,
|
|
4
4
|
useCTAModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-3RGRHMJQ.js";
|
|
6
6
|
import "../chunk-6BN3XKQF.js";
|
|
7
7
|
import "../chunk-APD6IX5R.js";
|
|
8
8
|
import "../chunk-TFL56AYR.js";
|
|
9
9
|
import "../chunk-IQJDVFPP.js";
|
|
10
|
-
import "../chunk-
|
|
11
|
-
import "../chunk-BUVVRQLZ.js";
|
|
10
|
+
import "../chunk-SXLPDPOZ.js";
|
|
12
11
|
import "../chunk-GITT5645.js";
|
|
13
|
-
import "../chunk-
|
|
12
|
+
import "../chunk-MER66QUY.js";
|
|
13
|
+
import "../chunk-7SYJFI5E.js";
|
|
14
|
+
import "../chunk-BUVVRQLZ.js";
|
|
14
15
|
export {
|
|
15
16
|
CTAModal,
|
|
16
17
|
useCTAModal
|
|
@@ -2,15 +2,16 @@
|
|
|
2
2
|
import {
|
|
3
3
|
NotificationCenter,
|
|
4
4
|
useNotificationCenter
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Z7FGXAND.js";
|
|
6
6
|
import "../chunk-RDRD6ACD.js";
|
|
7
7
|
import "../chunk-UXY3KCC3.js";
|
|
8
8
|
import "../chunk-SLHYBPJ5.js";
|
|
9
9
|
import "../chunk-IQJDVFPP.js";
|
|
10
|
-
import "../chunk-BUVVRQLZ.js";
|
|
11
|
-
import "../chunk-GITT5645.js";
|
|
12
|
-
import "../chunk-STNRGV3Y.js";
|
|
13
10
|
import "../chunk-V3M3ZOQI.js";
|
|
11
|
+
import "../chunk-GITT5645.js";
|
|
12
|
+
import "../chunk-MER66QUY.js";
|
|
13
|
+
import "../chunk-7SYJFI5E.js";
|
|
14
|
+
import "../chunk-BUVVRQLZ.js";
|
|
14
15
|
import "../chunk-JIZQFTW6.js";
|
|
15
16
|
export {
|
|
16
17
|
NotificationCenter,
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
import {
|
|
3
3
|
PromptModal,
|
|
4
4
|
usePromptModal
|
|
5
|
-
} from "../chunk-
|
|
5
|
+
} from "../chunk-Q4IV5NUT.js";
|
|
6
6
|
import "../chunk-RU5LOXWI.js";
|
|
7
|
-
import "../chunk-MZ3UCDUL.js";
|
|
8
7
|
import "../chunk-NMF2HYWO.js";
|
|
8
|
+
import "../chunk-VYCU7I4J.js";
|
|
9
9
|
import "../chunk-UZDVOIW5.js";
|
|
10
10
|
import "../chunk-TFL56AYR.js";
|
|
11
11
|
import "../chunk-IQJDVFPP.js";
|
|
12
|
-
import "../chunk-
|
|
13
|
-
import "../chunk-BUVVRQLZ.js";
|
|
12
|
+
import "../chunk-SXLPDPOZ.js";
|
|
14
13
|
import "../chunk-GITT5645.js";
|
|
15
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-MER66QUY.js";
|
|
15
|
+
import "../chunk-7SYJFI5E.js";
|
|
16
|
+
import "../chunk-BUVVRQLZ.js";
|
|
16
17
|
export {
|
|
17
18
|
PromptModal,
|
|
18
19
|
usePromptModal
|
package/build/modern/index.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NavMenuList,
|
|
3
|
+
getPosition
|
|
4
|
+
} from "./chunk-AIJ75ENY.js";
|
|
5
|
+
import {
|
|
6
|
+
NavMenuTrigger
|
|
7
|
+
} from "./chunk-245SMQ45.js";
|
|
1
8
|
import {
|
|
2
9
|
ThemeProvider,
|
|
3
10
|
useThemeContext
|
|
@@ -17,21 +24,14 @@ import {
|
|
|
17
24
|
import {
|
|
18
25
|
NavMenuLink
|
|
19
26
|
} from "./chunk-YOTXFCCC.js";
|
|
20
|
-
import {
|
|
21
|
-
NavMenuList,
|
|
22
|
-
getPosition
|
|
23
|
-
} from "./chunk-AIJ75ENY.js";
|
|
24
|
-
import {
|
|
25
|
-
NavMenuTrigger
|
|
26
|
-
} from "./chunk-BRVZVAPT.js";
|
|
27
27
|
import {
|
|
28
28
|
ConfirmModal,
|
|
29
29
|
useConfirmModal
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7S47NSGR.js";
|
|
31
31
|
import {
|
|
32
32
|
CTAModal,
|
|
33
33
|
useCTAModal
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-3RGRHMJQ.js";
|
|
35
35
|
import {
|
|
36
36
|
NavMenu,
|
|
37
37
|
useNavMenuContext
|
|
@@ -39,11 +39,14 @@ import {
|
|
|
39
39
|
import {
|
|
40
40
|
NotificationCenter,
|
|
41
41
|
useNotificationCenter
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-Z7FGXAND.js";
|
|
43
43
|
import {
|
|
44
44
|
PromptModal,
|
|
45
45
|
usePromptModal
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-Q4IV5NUT.js";
|
|
47
|
+
import {
|
|
48
|
+
Tbody
|
|
49
|
+
} from "./chunk-ZR37P4NZ.js";
|
|
47
50
|
import {
|
|
48
51
|
Td
|
|
49
52
|
} from "./chunk-3R4TIF2X.js";
|
|
@@ -62,13 +65,16 @@ import {
|
|
|
62
65
|
import {
|
|
63
66
|
Tooltip
|
|
64
67
|
} from "./chunk-LPALHB6R.js";
|
|
68
|
+
import {
|
|
69
|
+
Radio
|
|
70
|
+
} from "./chunk-FTPZHG6J.js";
|
|
65
71
|
import {
|
|
66
72
|
Option,
|
|
67
73
|
OptionGroup,
|
|
68
74
|
OptionGroupLabel,
|
|
69
75
|
Select,
|
|
70
76
|
createSelectCollection
|
|
71
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-5QONP7GT.js";
|
|
72
78
|
import {
|
|
73
79
|
Text
|
|
74
80
|
} from "./chunk-RU5LOXWI.js";
|
|
@@ -88,9 +94,6 @@ import {
|
|
|
88
94
|
SelectTrigger,
|
|
89
95
|
SelectValueText
|
|
90
96
|
} from "./chunk-YWMPB2JR.js";
|
|
91
|
-
import {
|
|
92
|
-
Spinner
|
|
93
|
-
} from "./chunk-7SYJFI5E.js";
|
|
94
97
|
import {
|
|
95
98
|
Table,
|
|
96
99
|
Tr
|
|
@@ -109,10 +112,10 @@ import {
|
|
|
109
112
|
} from "./chunk-RZ7NG77U.js";
|
|
110
113
|
import {
|
|
111
114
|
Tag
|
|
112
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-MISIUX63.js";
|
|
113
116
|
import {
|
|
114
|
-
|
|
115
|
-
} from "./chunk-
|
|
117
|
+
Label
|
|
118
|
+
} from "./chunk-NMF2HYWO.js";
|
|
116
119
|
import {
|
|
117
120
|
Legend
|
|
118
121
|
} from "./chunk-ILQW5VZT.js";
|
|
@@ -135,8 +138,12 @@ import {
|
|
|
135
138
|
NotificationHeading
|
|
136
139
|
} from "./chunk-SLHYBPJ5.js";
|
|
137
140
|
import {
|
|
138
|
-
|
|
139
|
-
} from "./chunk-
|
|
141
|
+
FeatureFlag
|
|
142
|
+
} from "./chunk-BIDE4IJG.js";
|
|
143
|
+
import {
|
|
144
|
+
FeatureFlags,
|
|
145
|
+
useFeatureFlags
|
|
146
|
+
} from "./chunk-CJFW36DZ.js";
|
|
140
147
|
import {
|
|
141
148
|
Fieldset
|
|
142
149
|
} from "./chunk-3ZDFQO25.js";
|
|
@@ -146,7 +153,7 @@ import {
|
|
|
146
153
|
import {
|
|
147
154
|
FileStatus,
|
|
148
155
|
processStatus
|
|
149
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-7P7OWBGV.js";
|
|
150
157
|
import {
|
|
151
158
|
ProgressBar
|
|
152
159
|
} from "./chunk-WZJ5UQNM.js";
|
|
@@ -155,16 +162,13 @@ import {
|
|
|
155
162
|
} from "./chunk-JWIJHSI6.js";
|
|
156
163
|
import {
|
|
157
164
|
FileUploader
|
|
158
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-7SU6FCTJ.js";
|
|
159
166
|
import {
|
|
160
167
|
Input
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import {
|
|
163
|
-
Label
|
|
164
|
-
} from "./chunk-NMF2HYWO.js";
|
|
168
|
+
} from "./chunk-VYCU7I4J.js";
|
|
165
169
|
import {
|
|
166
170
|
Checkbox
|
|
167
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-NGOLRISW.js";
|
|
168
172
|
import {
|
|
169
173
|
CircularProgress
|
|
170
174
|
} from "./chunk-6QHOKCV3.js";
|
|
@@ -179,7 +183,7 @@ import {
|
|
|
179
183
|
DatePickerViewControlGroup,
|
|
180
184
|
DatePickerYearView,
|
|
181
185
|
RangePickerInput
|
|
182
|
-
} from "./chunk-
|
|
186
|
+
} from "./chunk-KU2AWAK3.js";
|
|
183
187
|
import {
|
|
184
188
|
Field,
|
|
185
189
|
useFieldContext
|
|
@@ -217,13 +221,7 @@ import {
|
|
|
217
221
|
import {
|
|
218
222
|
Droppable
|
|
219
223
|
} from "./chunk-TKI2CKHH.js";
|
|
220
|
-
import
|
|
221
|
-
FeatureFlag
|
|
222
|
-
} from "./chunk-BIDE4IJG.js";
|
|
223
|
-
import {
|
|
224
|
-
FeatureFlags,
|
|
225
|
-
useFeatureFlags
|
|
226
|
-
} from "./chunk-CJFW36DZ.js";
|
|
224
|
+
import "./chunk-V3M3ZOQI.js";
|
|
227
225
|
import {
|
|
228
226
|
AccordionItemGroup
|
|
229
227
|
} from "./chunk-WN7TJX6J.js";
|
|
@@ -240,21 +238,15 @@ import {
|
|
|
240
238
|
Admonition,
|
|
241
239
|
AdmonitionDescription,
|
|
242
240
|
AdmonitionHeading
|
|
243
|
-
} from "./chunk-
|
|
244
|
-
import "./chunk-
|
|
241
|
+
} from "./chunk-DXBZ3HMY.js";
|
|
242
|
+
import "./chunk-2HOUQ2DX.js";
|
|
245
243
|
import {
|
|
246
244
|
Avatar
|
|
247
|
-
} from "./chunk-
|
|
248
|
-
import {
|
|
249
|
-
Show
|
|
250
|
-
} from "./chunk-BUVVRQLZ.js";
|
|
245
|
+
} from "./chunk-SXLPDPOZ.js";
|
|
251
246
|
import {
|
|
252
247
|
CerberusProvider,
|
|
253
248
|
useCerberusContext
|
|
254
249
|
} from "./chunk-GITT5645.js";
|
|
255
|
-
import {
|
|
256
|
-
Button
|
|
257
|
-
} from "./chunk-STNRGV3Y.js";
|
|
258
250
|
import {
|
|
259
251
|
useModal
|
|
260
252
|
} from "./chunk-KGQG5JGW.js";
|
|
@@ -276,7 +268,20 @@ import {
|
|
|
276
268
|
getLocalStorage,
|
|
277
269
|
setLocalStorage
|
|
278
270
|
} from "./chunk-FQLMPEYX.js";
|
|
279
|
-
import "./chunk-
|
|
271
|
+
import "./chunk-CYC2YUKU.js";
|
|
272
|
+
import {
|
|
273
|
+
ButtonParts
|
|
274
|
+
} from "./chunk-2JX27W6Y.js";
|
|
275
|
+
import {
|
|
276
|
+
Button,
|
|
277
|
+
ButtonIcon
|
|
278
|
+
} from "./chunk-MER66QUY.js";
|
|
279
|
+
import {
|
|
280
|
+
Spinner
|
|
281
|
+
} from "./chunk-7SYJFI5E.js";
|
|
282
|
+
import {
|
|
283
|
+
Show
|
|
284
|
+
} from "./chunk-BUVVRQLZ.js";
|
|
280
285
|
import "./chunk-55J6XMHW.js";
|
|
281
286
|
import {
|
|
282
287
|
createNavTriggerProps
|
|
@@ -315,6 +320,8 @@ export {
|
|
|
315
320
|
AdmonitionHeading,
|
|
316
321
|
Avatar,
|
|
317
322
|
Button,
|
|
323
|
+
ButtonIcon,
|
|
324
|
+
ButtonParts,
|
|
318
325
|
CTAModal,
|
|
319
326
|
CerberusProvider,
|
|
320
327
|
Checkbox,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/
|
|
1
|
+
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * This module is the entry point for the Cerberus React package.\n * @module\n */\n\n// deprecated\n\nexport * from './components/deprecated/Modal'\nexport * from './components/deprecated/ModalHeader'\nexport * from './components/deprecated/ModalHeading'\nexport * from './components/deprecated/ModalDescription'\nexport * from './components/deprecated/NavMenuTrigger'\nexport * from './components/deprecated/NavMenuList'\nexport * from './components/deprecated/NavMenuLink'\n\n// components\n\nexport * from './components/Accordion'\nexport * from './components/Accordion.client'\nexport * from './components/AccordionItemGroup'\nexport * from './components/Admonition'\nexport * from './components/Avatar'\nexport * from './components/button/index'\nexport * from './components/Checkbox'\nexport * from './components/CircularProgress'\nexport * from './components/DatePicker.client'\nexport * from './components/DatePicker.server'\nexport * from './components/Dialog'\nexport * from './components/Dialog.client'\nexport * from './components/Droppable'\nexport * from './components/FieldMessage'\nexport * from './components/FeatureFlag'\nexport * from './components/Fieldset'\nexport * from './components/FieldsetLabel'\nexport * from './components/FileStatus'\nexport * from './components/FileUploader'\nexport * from './components/IconButton'\nexport * from './components/Input'\nexport * from './components/Label'\nexport * from './components/Legend'\nexport * from './components/Menu'\nexport * from './components/Notification'\nexport * from './components/NotificationHeading'\nexport * from './components/NotificationDescription'\nexport * from './components/Portal'\nexport * from './components/ProgressBar'\nexport * from './components/Radio'\nexport * from './components/Spinner'\nexport * from './components/Tabs.client'\nexport * from './components/Table'\nexport * from './components/Thead'\nexport * from './components/Th'\nexport * from './components/Td'\nexport * from './components/Tbody'\nexport * from './components/Tag'\nexport * from './components/Text'\nexport * from './components/Textarea'\nexport * from './components/Toggle'\nexport * from './components/Tooltip'\nexport * from './components/Select'\nexport * from './components/Select.server'\nexport * from './components/Show'\n\n// context\n\nexport * from './context/cerberus'\nexport * from './context/confirm-modal'\nexport * from './context/cta-modal'\nexport * from './context/feature-flags'\nexport * from './context/field'\nexport * from './context/navMenu'\nexport * from './context/notification-center'\nexport * from './context/prompt-modal'\nexport * from './context/tabs'\nexport * from './context/theme'\n\n// hooks\n\nexport * from './hooks/useDate'\nexport * from './hooks/useModal'\nexport * from './hooks/useTheme'\nexport * from './hooks/useToggle'\nexport * from './hooks/useRootColors'\n\n// aria-helpers\n\nexport * from './aria-helpers/nav-menu.aria'\nexport * from './aria-helpers/trap-focus.aria'\n\n// utils\n\nexport * from './config/index'\nexport * from './utils/index'\n\n// shared types\n\nexport * from './types'\n\n// 3rd party\n\nexport * from '@dnd-kit/core'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoGA,cAAc;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cerberus-design/react",
|
|
3
|
-
"version": "0.15.0-next-
|
|
3
|
+
"version": "0.15.0-next-199cf16",
|
|
4
4
|
"description": "The Cerberus Design React component library.",
|
|
5
5
|
"browserslist": "> 0.25%, not dead",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react-dom": "^18",
|
|
27
27
|
"tsup": "^8.1.0",
|
|
28
28
|
"@cerberus-design/configs": "0.0.0",
|
|
29
|
-
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.15.0-next-
|
|
29
|
+
"@cerberus/styled-system": "npm:@cerberus-design/styled-system@0.15.0-next-199cf16"
|
|
30
30
|
},
|
|
31
31
|
"publishConfig": {
|
|
32
32
|
"access": "public"
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
DatePickerViewControl,
|
|
24
24
|
} from './DatePicker.server'
|
|
25
25
|
import { IconButton } from './IconButton'
|
|
26
|
-
import { Button } from './
|
|
26
|
+
import { Button } from './button/button'
|
|
27
27
|
import { useCerberusContext } from '../context/cerberus'
|
|
28
28
|
import { useMemo, type InputHTMLAttributes } from 'react'
|
|
29
29
|
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
type ButtonHTMLAttributes,
|
|
5
|
+
type PropsWithChildren,
|
|
6
|
+
createContext,
|
|
7
|
+
useContext,
|
|
8
|
+
useMemo,
|
|
9
|
+
} from 'react'
|
|
10
|
+
import { cx } from '@cerberus/styled-system/css'
|
|
11
|
+
import {
|
|
12
|
+
button,
|
|
13
|
+
type ButtonVariantProps,
|
|
14
|
+
} from '@cerberus/styled-system/recipes'
|
|
15
|
+
import { Show } from '../Show'
|
|
16
|
+
import { Spinner } from '../Spinner'
|
|
17
|
+
import { Box } from '@cerberus/styled-system/jsx'
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* This module contains the Button component.
|
|
21
|
+
* @module
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
interface ButtonContextValue {
|
|
25
|
+
pending: boolean
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const ButtonContext = createContext<ButtonContextValue>({
|
|
29
|
+
pending: false,
|
|
30
|
+
})
|
|
31
|
+
|
|
32
|
+
export type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> &
|
|
33
|
+
ButtonVariantProps & {
|
|
34
|
+
pending?: boolean
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* A component that allows the user to perform actions
|
|
39
|
+
* @see https://cerberus.digitalu.design/react/button
|
|
40
|
+
*/
|
|
41
|
+
export function Button(props: ButtonProps): JSX.Element {
|
|
42
|
+
const { palette, usage, shape, size, pending = false, ...nativeProps } = props
|
|
43
|
+
const value = useMemo(() => ({ pending }), [pending])
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<ButtonContext.Provider value={value}>
|
|
47
|
+
<button
|
|
48
|
+
{...nativeProps}
|
|
49
|
+
disabled={pending || nativeProps.disabled}
|
|
50
|
+
className={cx(
|
|
51
|
+
nativeProps.className,
|
|
52
|
+
button({
|
|
53
|
+
palette,
|
|
54
|
+
usage,
|
|
55
|
+
shape,
|
|
56
|
+
size,
|
|
57
|
+
}),
|
|
58
|
+
)}
|
|
59
|
+
/>
|
|
60
|
+
</ButtonContext.Provider>
|
|
61
|
+
)
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* An icon to display in a button that utilizes the pending state to display
|
|
66
|
+
* a loading spinner.
|
|
67
|
+
*/
|
|
68
|
+
export function ButtonIcon(props: PropsWithChildren<object>) {
|
|
69
|
+
const { pending } = useContext(ButtonContext)
|
|
70
|
+
return (
|
|
71
|
+
<Show when={pending} fallback={<>{props.children}</>}>
|
|
72
|
+
<Box w="4">
|
|
73
|
+
<Spinner />
|
|
74
|
+
</Box>
|
|
75
|
+
</Show>
|
|
76
|
+
)
|
|
77
|
+
}
|