@postenbring/hedwig-react 0.0.44 → 0.0.46
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/accordion/accordion-content.d.mts +1 -1
- package/dist/accordion/accordion-content.d.ts +1 -1
- package/dist/accordion/accordion-content.mjs +2 -2
- package/dist/accordion/accordion-header.d.mts +1 -1
- package/dist/accordion/accordion-header.d.ts +1 -1
- package/dist/accordion/accordion-header.mjs +2 -2
- package/dist/accordion/accordion-item.d.mts +1 -1
- package/dist/accordion/accordion-item.d.ts +1 -1
- package/dist/accordion/accordion-item.mjs +2 -2
- package/dist/accordion/accordion.d.mts +1 -1
- package/dist/accordion/accordion.d.ts +1 -1
- package/dist/accordion/accordion.mjs +2 -2
- package/dist/accordion/index.d.mts +1 -1
- package/dist/accordion/index.d.ts +1 -1
- package/dist/accordion/index.mjs +6 -6
- package/dist/badge/badge.mjs +2 -2
- package/dist/badge/index.mjs +2 -2
- package/dist/box/box.d.mts +1 -1
- package/dist/box/box.d.ts +1 -1
- package/dist/box/box.mjs +2 -2
- package/dist/box/index.d.mts +1 -1
- package/dist/box/index.d.ts +1 -1
- package/dist/box/index.mjs +3 -3
- package/dist/breadcrumb/breadcrumb.mjs +2 -2
- package/dist/breadcrumb/index.mjs +2 -2
- package/dist/button/button.d.mts +1 -1
- package/dist/button/button.d.ts +1 -1
- package/dist/button/button.mjs +2 -2
- package/dist/button/index.d.mts +1 -1
- package/dist/button/index.d.ts +1 -1
- package/dist/button/index.mjs +2 -2
- package/dist/card/card.d.mts +1 -1
- package/dist/card/card.d.ts +1 -1
- package/dist/card/card.mjs +2 -2
- package/dist/card/index.d.mts +1 -1
- package/dist/card/index.d.ts +1 -1
- package/dist/card/index.mjs +3 -3
- package/dist/{chunk-WTMT5WCJ.mjs → chunk-3EENBGOV.mjs} +1 -1
- package/dist/chunk-3WUAXFB3.mjs +34 -0
- package/dist/{chunk-BHNQPMEB.mjs → chunk-3Y65IUK4.mjs} +2 -2
- package/dist/{chunk-Y2KP4RF2.mjs → chunk-4KBVX3Y7.mjs} +3 -3
- package/dist/{chunk-G3JPULGO.mjs → chunk-4LB35CUY.mjs} +1 -1
- package/dist/{chunk-Q3SWHAU3.mjs → chunk-4M3GIRQZ.mjs} +1 -1
- package/dist/{chunk-PF6PZIZS.mjs → chunk-4RAMNETH.mjs} +1 -1
- package/dist/{chunk-2QZF65FK.mjs → chunk-5FM3XK4V.mjs} +5 -1
- package/dist/{chunk-SDJXW6U7.mjs → chunk-5HF2PDRZ.mjs} +1 -1
- package/dist/{chunk-DOJ2ZKNV.mjs → chunk-5NWYVPBZ.mjs} +1 -1
- package/dist/chunk-67OMX7FP.mjs +5 -0
- package/dist/{chunk-GBDCEHR7.mjs → chunk-6FKQU7QT.mjs} +1 -1
- package/dist/{chunk-QAYPCD5Z.mjs → chunk-6KRJB36T.mjs} +22 -13
- package/dist/chunk-73MDVYU2.mjs +129 -0
- package/dist/{chunk-MER2HJBC.mjs → chunk-7P6MJKWC.mjs} +1 -1
- package/dist/{chunk-6XTXM4YQ.mjs → chunk-A6HNU42U.mjs} +1 -1
- package/dist/{chunk-3JNHAMRV.mjs → chunk-AUK3J77R.mjs} +1 -1
- package/dist/{chunk-LICHSDMT.mjs → chunk-B3SD7RZV.mjs} +1 -1
- package/dist/{chunk-RY53CJI7.mjs → chunk-BEXOLUXV.mjs} +1 -1
- package/dist/{chunk-ZLCNSHLT.mjs → chunk-C2VTAQEP.mjs} +1 -1
- package/dist/chunk-DOWBGRCN.mjs +29253 -0
- package/dist/chunk-FKR5F35B.mjs +70 -0
- package/dist/{chunk-5QMPUCNW.mjs → chunk-FPVGZ4VX.mjs} +1 -1
- package/dist/chunk-HIRUCFWO.mjs +25 -0
- package/dist/chunk-J5QNIAFL.mjs +72 -0
- package/dist/{chunk-KYCCTJI6.mjs → chunk-KBR5N6UB.mjs} +4 -4
- package/dist/{chunk-K3BGDNWO.mjs → chunk-MUGMWWNN.mjs} +3 -3
- package/dist/chunk-OKWNTFU5.mjs +5 -0
- package/dist/{chunk-SX37JSDS.mjs → chunk-OPW2JS5I.mjs} +1 -1
- package/dist/chunk-PPUNMHOX.mjs +0 -0
- package/dist/chunk-R7GQHCN4.mjs +30 -0
- package/dist/{chunk-6KVF3ELJ.mjs → chunk-RNALWA7A.mjs} +3 -3
- package/dist/{chunk-45BJGKVZ.mjs → chunk-S4F2KVFJ.mjs} +1 -1
- package/dist/{chunk-E5575U2F.mjs → chunk-S7FSULI3.mjs} +1 -1
- package/dist/{chunk-TES7CVGU.mjs → chunk-SNLXFZB6.mjs} +1 -1
- package/dist/{chunk-Y4KHO6LN.mjs → chunk-TEOA6K5L.mjs} +1 -1
- package/dist/{chunk-E2GAXTBX.mjs → chunk-UBQPNSMU.mjs} +1 -1
- package/dist/{chunk-FDAXJJHU.mjs → chunk-UGZSXQQQ.mjs} +1 -1
- package/dist/{chunk-GRO36EUL.mjs → chunk-UL2XL6BN.mjs} +1 -1
- package/dist/{chunk-GD4NFQGX.mjs → chunk-UOEKLXX4.mjs} +1 -1
- package/dist/{chunk-WUMZCEIJ.mjs → chunk-VO6ZLGZ7.mjs} +5 -5
- package/dist/{chunk-QC72RAQS.mjs → chunk-VT7SFAQF.mjs} +1 -1
- package/dist/{chunk-WYPGZY5Q.mjs → chunk-WKI6D7BR.mjs} +2 -2
- package/dist/{chunk-BRBGRJ2I.mjs → chunk-X5URKHFD.mjs} +2 -2
- package/dist/{chunk-ENRMC5K7.mjs → chunk-YBSM5D5N.mjs} +1 -1
- package/dist/form/error-message/error-message.d.mts +12 -0
- package/dist/form/error-message/error-message.d.ts +12 -0
- package/dist/form/error-message/error-message.js +66 -0
- package/dist/form/error-message/error-message.mjs +7 -0
- package/dist/form/error-message/index.d.mts +3 -0
- package/dist/form/error-message/index.d.ts +3 -0
- package/dist/form/error-message/index.js +72 -0
- package/dist/form/error-message/index.mjs +8 -0
- package/dist/form/fieldset/fieldset.d.mts +20 -0
- package/dist/form/fieldset/fieldset.d.ts +20 -0
- package/dist/{input-group/input-group.js → form/fieldset/fieldset.js} +65 -61
- package/dist/form/fieldset/fieldset.mjs +9 -0
- package/dist/form/fieldset/index.d.mts +2 -0
- package/dist/form/fieldset/index.d.ts +2 -0
- package/dist/form/fieldset/index.js +152 -0
- package/dist/form/fieldset/index.mjs +10 -0
- package/dist/form/index.d.mts +6 -0
- package/dist/form/index.d.ts +6 -0
- package/dist/form/index.js +375 -0
- package/dist/form/index.mjs +28 -0
- package/dist/{input/input.js → form/input/index.js} +70 -27
- package/dist/form/input/index.mjs +12 -0
- package/dist/{input/index.js → form/input/input.js} +60 -31
- package/dist/form/input/input.mjs +11 -0
- package/dist/form/input-group/index.d.mts +2 -0
- package/dist/form/input-group/index.d.ts +2 -0
- package/dist/{select/select.js → form/input-group/index.js} +60 -49
- package/dist/form/input-group/index.mjs +10 -0
- package/dist/{input-group → form/input-group}/input-group.d.mts +1 -7
- package/dist/{input-group → form/input-group}/input-group.d.ts +1 -7
- package/dist/{input-group/index.js → form/input-group/input-group.js} +51 -21
- package/dist/form/input-group/input-group.mjs +9 -0
- package/dist/form/select/index.js +216 -0
- package/dist/form/select/index.mjs +12 -0
- package/dist/{select/index.js → form/select/select.js} +60 -31
- package/dist/form/select/select.mjs +11 -0
- package/dist/{textarea/textarea.js → form/textarea/index.js} +70 -27
- package/dist/form/textarea/index.mjs +12 -0
- package/dist/{textarea/index.js → form/textarea/textarea.js} +60 -31
- package/dist/form/textarea/textarea.mjs +11 -0
- package/dist/index.d.mts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.js +434 -229
- package/dist/index.mjs +64 -46
- package/dist/layout/container/container.d.mts +1 -1
- package/dist/layout/container/container.d.ts +1 -1
- package/dist/layout/container/container.mjs +2 -2
- package/dist/layout/index.d.mts +1 -1
- package/dist/layout/index.d.ts +1 -1
- package/dist/layout/index.mjs +2 -2
- package/dist/link/index.d.mts +1 -1
- package/dist/link/index.d.ts +1 -1
- package/dist/link/index.mjs +2 -2
- package/dist/link/link.d.mts +1 -1
- package/dist/link/link.d.ts +1 -1
- package/dist/link/link.mjs +2 -2
- package/dist/list/description-list.d.mts +4 -4
- package/dist/list/description-list.d.ts +4 -4
- package/dist/list/description-list.mjs +2 -2
- package/dist/list/index.mjs +6 -6
- package/dist/list/link-list.mjs +3 -3
- package/dist/list/list.mjs +2 -2
- package/dist/message/index.d.mts +1 -1
- package/dist/message/index.d.ts +1 -1
- package/dist/message/index.mjs +4 -4
- package/dist/message/message.d.mts +1 -1
- package/dist/message/message.d.ts +1 -1
- package/dist/message/message.mjs +3 -3
- package/dist/modal/index.d.mts +6 -3
- package/dist/modal/index.d.ts +6 -3
- package/dist/modal/index.js +71 -3
- package/dist/modal/index.mjs +4 -4
- package/dist/modal/modal.d.mts +21 -3
- package/dist/modal/modal.d.ts +21 -3
- package/dist/modal/modal.js +77 -5
- package/dist/modal/modal.mjs +11 -5
- package/dist/navbar/icons.d.mts +6 -0
- package/dist/navbar/icons.d.ts +6 -0
- package/dist/navbar/icons.js +50 -0
- package/dist/navbar/icons.mjs +9 -0
- package/dist/navbar/index.d.mts +1 -1
- package/dist/navbar/index.d.ts +1 -1
- package/dist/navbar/index.js +29217 -15
- package/dist/navbar/index.mjs +4 -3
- package/dist/navbar/navbar-expandable-menu.d.mts +3 -2
- package/dist/navbar/navbar-expandable-menu.d.ts +3 -2
- package/dist/navbar/navbar-expandable-menu.js +29217 -15
- package/dist/navbar/navbar-expandable-menu.mjs +3 -2
- package/dist/navbar/navbar.d.mts +1 -1
- package/dist/navbar/navbar.d.ts +1 -1
- package/dist/navbar/navbar.mjs +2 -2
- package/dist/prose/prose.d.mts +2 -2
- package/dist/prose/prose.d.ts +2 -2
- package/dist/prose/prose.mjs +3 -29
- package/dist/tabs/index.d.mts +1 -1
- package/dist/tabs/index.d.ts +1 -1
- package/dist/tabs/index.mjs +5 -5
- package/dist/tabs/tabs-content.d.mts +1 -1
- package/dist/tabs/tabs-content.d.ts +1 -1
- package/dist/tabs/tabs-content.mjs +2 -2
- package/dist/tabs/tabs-list.d.mts +1 -1
- package/dist/tabs/tabs-list.d.ts +1 -1
- package/dist/tabs/tabs-list.mjs +2 -2
- package/dist/tabs/tabs.d.mts +1 -1
- package/dist/tabs/tabs.d.ts +1 -1
- package/dist/tabs/tabs.mjs +2 -2
- package/dist/typography/index.d.mts +1 -1
- package/dist/typography/index.d.ts +1 -1
- package/dist/typography/index.mjs +2 -2
- package/dist/typography/typography.d.mts +1 -1
- package/dist/typography/typography.d.ts +1 -1
- package/dist/typography/typography.mjs +2 -2
- package/dist/warning-banner/index.d.mts +1 -1
- package/dist/warning-banner/index.d.ts +1 -1
- package/dist/warning-banner/index.mjs +4 -4
- package/dist/warning-banner/warning-banner.d.mts +1 -1
- package/dist/warning-banner/warning-banner.d.ts +1 -1
- package/dist/warning-banner/warning-banner.mjs +4 -4
- package/package.json +5 -4
- package/dist/chunk-FUJQIYOF.mjs +0 -37
- package/dist/chunk-OB6UNSKV.mjs +0 -60
- package/dist/chunk-T5W5SKZP.mjs +0 -80
- package/dist/input/index.mjs +0 -10
- package/dist/input/input.mjs +0 -9
- package/dist/input-group/index.d.mts +0 -2
- package/dist/input-group/index.d.ts +0 -2
- package/dist/input-group/index.mjs +0 -8
- package/dist/input-group/input-group.mjs +0 -7
- package/dist/select/index.mjs +0 -10
- package/dist/select/select.mjs +0 -9
- package/dist/textarea/index.mjs +0 -10
- package/dist/textarea/textarea.mjs +0 -9
- /package/dist/{input → form/input}/index.d.mts +0 -0
- /package/dist/{input → form/input}/index.d.ts +0 -0
- /package/dist/{input → form/input}/input.d.mts +0 -0
- /package/dist/{input → form/input}/input.d.ts +0 -0
- /package/dist/{select → form/select}/index.d.mts +0 -0
- /package/dist/{select → form/select}/index.d.ts +0 -0
- /package/dist/{select → form/select}/select.d.mts +0 -0
- /package/dist/{select → form/select}/select.d.ts +0 -0
- /package/dist/{textarea → form/textarea}/index.d.mts +0 -0
- /package/dist/{textarea → form/textarea}/index.d.ts +0 -0
- /package/dist/{textarea → form/textarea}/textarea.d.mts +0 -0
- /package/dist/{textarea → form/textarea}/textarea.d.ts +0 -0
- /package/dist/{utils-BfZsjuFH.d.mts → utils-3jLhIyOS.d.mts} +0 -0
- /package/dist/{utils-BfZsjuFH.d.ts → utils-3jLhIyOS.d.ts} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -1,89 +1,105 @@
|
|
|
1
|
-
import "./chunk-DOJ2ZKNV.mjs";
|
|
2
1
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-K2HIKZ7F.mjs";
|
|
6
|
-
import {
|
|
7
|
-
WarningBanner
|
|
8
|
-
} from "./chunk-BHNQPMEB.mjs";
|
|
9
|
-
import "./chunk-SX37JSDS.mjs";
|
|
10
|
-
import {
|
|
11
|
-
Select
|
|
12
|
-
} from "./chunk-K3BGDNWO.mjs";
|
|
2
|
+
Prose
|
|
3
|
+
} from "./chunk-3WUAXFB3.mjs";
|
|
13
4
|
import {
|
|
14
5
|
TabsComponent
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-VO6ZLGZ7.mjs";
|
|
7
|
+
import "./chunk-UL2XL6BN.mjs";
|
|
8
|
+
import "./chunk-4LB35CUY.mjs";
|
|
9
|
+
import "./chunk-C2VTAQEP.mjs";
|
|
19
10
|
import "./chunk-4ZM45P62.mjs";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import {
|
|
22
|
-
LinkList
|
|
23
|
-
} from "./chunk-BRBGRJ2I.mjs";
|
|
11
|
+
import "./chunk-K2HIKZ7F.mjs";
|
|
24
12
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./chunk-RY53CJI7.mjs";
|
|
13
|
+
WarningBanner
|
|
14
|
+
} from "./chunk-3Y65IUK4.mjs";
|
|
28
15
|
import {
|
|
29
16
|
MessageComponent
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-7P6MJKWC.mjs";
|
|
18
|
+
import "./chunk-WKI6D7BR.mjs";
|
|
32
19
|
import {
|
|
33
20
|
ModalComponent
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-5FM3XK4V.mjs";
|
|
22
|
+
import "./chunk-73MDVYU2.mjs";
|
|
36
23
|
import "./chunk-FSBY3NKV.mjs";
|
|
37
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-PPUNMHOX.mjs";
|
|
25
|
+
import "./chunk-OPW2JS5I.mjs";
|
|
26
|
+
import {
|
|
27
|
+
Select
|
|
28
|
+
} from "./chunk-MUGMWWNN.mjs";
|
|
29
|
+
import "./chunk-5NWYVPBZ.mjs";
|
|
30
|
+
import {
|
|
31
|
+
Textarea
|
|
32
|
+
} from "./chunk-4KBVX3Y7.mjs";
|
|
33
|
+
import "./chunk-OKWNTFU5.mjs";
|
|
34
|
+
import {
|
|
35
|
+
Fieldset
|
|
36
|
+
} from "./chunk-J5QNIAFL.mjs";
|
|
37
|
+
import "./chunk-4RAMNETH.mjs";
|
|
38
38
|
import {
|
|
39
39
|
Input
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-RNALWA7A.mjs";
|
|
41
|
+
import "./chunk-S4F2KVFJ.mjs";
|
|
42
|
+
import "./chunk-6KRJB36T.mjs";
|
|
43
|
+
import "./chunk-67OMX7FP.mjs";
|
|
44
|
+
import "./chunk-R7GQHCN4.mjs";
|
|
43
45
|
import "./chunk-FJQCHTJZ.mjs";
|
|
44
46
|
import {
|
|
45
47
|
Container
|
|
46
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-UOEKLXX4.mjs";
|
|
47
49
|
import "./chunk-7SCOBRDZ.mjs";
|
|
48
50
|
import {
|
|
49
51
|
Link
|
|
50
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-SNLXFZB6.mjs";
|
|
53
|
+
import "./chunk-5OAMKZDX.mjs";
|
|
51
54
|
import {
|
|
52
55
|
DescriptionList
|
|
53
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-AUK3J77R.mjs";
|
|
57
|
+
import {
|
|
58
|
+
LinkList
|
|
59
|
+
} from "./chunk-X5URKHFD.mjs";
|
|
60
|
+
import {
|
|
61
|
+
OrderedList,
|
|
62
|
+
UnorderedList
|
|
63
|
+
} from "./chunk-BEXOLUXV.mjs";
|
|
54
64
|
import {
|
|
55
65
|
BoxComponent
|
|
56
|
-
} from "./chunk-
|
|
57
|
-
import "./chunk-
|
|
66
|
+
} from "./chunk-UBQPNSMU.mjs";
|
|
67
|
+
import "./chunk-3EENBGOV.mjs";
|
|
58
68
|
import "./chunk-YRAMCYSB.mjs";
|
|
59
69
|
import {
|
|
60
70
|
Breadcrumbs
|
|
61
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-FPVGZ4VX.mjs";
|
|
62
72
|
import "./chunk-VX6MSLLO.mjs";
|
|
63
73
|
import {
|
|
64
74
|
PrimaryButton,
|
|
65
75
|
SecondaryButton
|
|
66
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-YBSM5D5N.mjs";
|
|
67
77
|
import {
|
|
68
78
|
CardComponent
|
|
69
|
-
} from "./chunk-
|
|
70
|
-
import "./chunk-
|
|
79
|
+
} from "./chunk-S7FSULI3.mjs";
|
|
80
|
+
import "./chunk-B3SD7RZV.mjs";
|
|
71
81
|
import {
|
|
72
82
|
AccordionComponent
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import "./chunk-
|
|
75
|
-
import "./chunk-
|
|
76
|
-
import "./chunk-
|
|
83
|
+
} from "./chunk-KBR5N6UB.mjs";
|
|
84
|
+
import "./chunk-4M3GIRQZ.mjs";
|
|
85
|
+
import "./chunk-A6HNU42U.mjs";
|
|
86
|
+
import "./chunk-VT7SFAQF.mjs";
|
|
77
87
|
import "./chunk-PHTGLF6Y.mjs";
|
|
78
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-5HF2PDRZ.mjs";
|
|
79
89
|
import "./chunk-IEY4EQ4E.mjs";
|
|
80
90
|
import {
|
|
81
91
|
Badge,
|
|
82
92
|
DarkBadge,
|
|
83
93
|
WarningBadge,
|
|
84
94
|
WhiteBadge
|
|
85
|
-
} from "./chunk-
|
|
86
|
-
import "./chunk-
|
|
95
|
+
} from "./chunk-6FKQU7QT.mjs";
|
|
96
|
+
import "./chunk-FKR5F35B.mjs";
|
|
97
|
+
|
|
98
|
+
// src/prose/index.ts
|
|
99
|
+
import "@postenbring/hedwig-css/dist/fonts.css";
|
|
100
|
+
import "@postenbring/hedwig-css/dist/tokens.css";
|
|
101
|
+
import "@postenbring/hedwig-css/dist/body.css";
|
|
102
|
+
import "@postenbring/hedwig-css/dist/prose.css";
|
|
87
103
|
export {
|
|
88
104
|
AccordionComponent as Accordion,
|
|
89
105
|
Badge,
|
|
@@ -93,6 +109,7 @@ export {
|
|
|
93
109
|
Container,
|
|
94
110
|
DarkBadge,
|
|
95
111
|
DescriptionList,
|
|
112
|
+
Fieldset,
|
|
96
113
|
Input,
|
|
97
114
|
Link,
|
|
98
115
|
LinkList,
|
|
@@ -100,6 +117,7 @@ export {
|
|
|
100
117
|
ModalComponent as Modal,
|
|
101
118
|
OrderedList,
|
|
102
119
|
PrimaryButton,
|
|
120
|
+
Prose,
|
|
103
121
|
SecondaryButton,
|
|
104
122
|
Select,
|
|
105
123
|
TabsComponent as Tabs,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../../utils-
|
|
2
|
+
import { O as OverridableComponent } from '../../utils-3jLhIyOS.mjs';
|
|
3
3
|
|
|
4
4
|
interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
variant?: "default" | "slim";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../../utils-
|
|
2
|
+
import { O as OverridableComponent } from '../../utils-3jLhIyOS.js';
|
|
3
3
|
|
|
4
4
|
interface ContainerProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
5
|
variant?: "default" | "slim";
|
package/dist/layout/index.d.mts
CHANGED
package/dist/layout/index.d.ts
CHANGED
package/dist/layout/index.mjs
CHANGED
package/dist/link/index.d.mts
CHANGED
package/dist/link/index.d.ts
CHANGED
package/dist/link/index.mjs
CHANGED
package/dist/link/link.d.mts
CHANGED
package/dist/link/link.d.ts
CHANGED
package/dist/link/link.mjs
CHANGED
|
@@ -19,9 +19,9 @@ interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
|
19
19
|
* ```tsx
|
|
20
20
|
* <DescriptionList>
|
|
21
21
|
* <dt>Vekt</dt>
|
|
22
|
-
* <
|
|
22
|
+
* <dd>12 kg</dd>
|
|
23
23
|
* <dt>Antall kolli</dt>
|
|
24
|
-
* <
|
|
24
|
+
* <dd>2</dd>
|
|
25
25
|
* </DescriptionList>
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
@@ -31,11 +31,11 @@ interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
|
31
31
|
* <DescriptionList>
|
|
32
32
|
* <div>
|
|
33
33
|
* <dt>Vekt</dt>
|
|
34
|
-
* <
|
|
34
|
+
* <dd>12 kg</dd>
|
|
35
35
|
* </div>
|
|
36
36
|
* <div>
|
|
37
37
|
* <dt>Antall kolli</dt>
|
|
38
|
-
* <
|
|
38
|
+
* <dd>2</dd>
|
|
39
39
|
* </div>
|
|
40
40
|
* </DescriptionList>
|
|
41
41
|
* ```
|
|
@@ -19,9 +19,9 @@ interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
|
19
19
|
* ```tsx
|
|
20
20
|
* <DescriptionList>
|
|
21
21
|
* <dt>Vekt</dt>
|
|
22
|
-
* <
|
|
22
|
+
* <dd>12 kg</dd>
|
|
23
23
|
* <dt>Antall kolli</dt>
|
|
24
|
-
* <
|
|
24
|
+
* <dd>2</dd>
|
|
25
25
|
* </DescriptionList>
|
|
26
26
|
* ```
|
|
27
27
|
*
|
|
@@ -31,11 +31,11 @@ interface DescriptionListProps extends HTMLAttributes<HTMLDListElement> {
|
|
|
31
31
|
* <DescriptionList>
|
|
32
32
|
* <div>
|
|
33
33
|
* <dt>Vekt</dt>
|
|
34
|
-
* <
|
|
34
|
+
* <dd>12 kg</dd>
|
|
35
35
|
* </div>
|
|
36
36
|
* <div>
|
|
37
37
|
* <dt>Antall kolli</dt>
|
|
38
|
-
* <
|
|
38
|
+
* <dd>2</dd>
|
|
39
39
|
* </div>
|
|
40
40
|
* </DescriptionList>
|
|
41
41
|
* ```
|
package/dist/list/index.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import "../chunk-5OAMKZDX.mjs";
|
|
2
|
+
import {
|
|
3
|
+
DescriptionList
|
|
4
|
+
} from "../chunk-AUK3J77R.mjs";
|
|
2
5
|
import {
|
|
3
6
|
LinkList
|
|
4
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-X5URKHFD.mjs";
|
|
5
8
|
import {
|
|
6
9
|
OrderedList,
|
|
7
10
|
UnorderedList
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import
|
|
10
|
-
DescriptionList
|
|
11
|
-
} from "../chunk-3JNHAMRV.mjs";
|
|
12
|
-
import "../chunk-FUJQIYOF.mjs";
|
|
11
|
+
} from "../chunk-BEXOLUXV.mjs";
|
|
12
|
+
import "../chunk-FKR5F35B.mjs";
|
|
13
13
|
export {
|
|
14
14
|
DescriptionList,
|
|
15
15
|
LinkList,
|
package/dist/list/link-list.mjs
CHANGED
package/dist/list/list.mjs
CHANGED
package/dist/message/index.d.mts
CHANGED
package/dist/message/index.d.ts
CHANGED
package/dist/message/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MessageComponent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
6
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-7P6MJKWC.mjs";
|
|
4
|
+
import "../chunk-WKI6D7BR.mjs";
|
|
5
|
+
import "../chunk-3EENBGOV.mjs";
|
|
6
|
+
import "../chunk-FKR5F35B.mjs";
|
|
7
7
|
export {
|
|
8
8
|
MessageComponent as Message
|
|
9
9
|
};
|
package/dist/message/message.mjs
CHANGED
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
Message,
|
|
3
3
|
MessageDescription,
|
|
4
4
|
MessageTitle
|
|
5
|
-
} from "../chunk-
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
5
|
+
} from "../chunk-WKI6D7BR.mjs";
|
|
6
|
+
import "../chunk-3EENBGOV.mjs";
|
|
7
|
+
import "../chunk-FKR5F35B.mjs";
|
|
8
8
|
export {
|
|
9
9
|
Message,
|
|
10
10
|
MessageDescription,
|
package/dist/modal/index.d.mts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ModalProps, ModalHeader } from './modal.mjs';
|
|
3
|
-
|
|
2
|
+
import { ModalProps, ModalHeader, ModalContent, ModalFooter } from './modal.mjs';
|
|
3
|
+
export { useScrollLock } from './modal.mjs';
|
|
4
|
+
import '../utils-3jLhIyOS.mjs';
|
|
4
5
|
|
|
5
6
|
declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>> & {
|
|
6
7
|
Header: typeof ModalHeader;
|
|
8
|
+
Content: typeof ModalContent;
|
|
9
|
+
Footer: typeof ModalFooter;
|
|
7
10
|
};
|
|
8
11
|
|
|
9
|
-
export { ModalComponent as Modal, ModalHeader, ModalProps };
|
|
12
|
+
export { ModalComponent as Modal, ModalContent, ModalFooter, ModalHeader, ModalProps };
|
package/dist/modal/index.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ModalProps, ModalHeader } from './modal.js';
|
|
3
|
-
|
|
2
|
+
import { ModalProps, ModalHeader, ModalContent, ModalFooter } from './modal.js';
|
|
3
|
+
export { useScrollLock } from './modal.js';
|
|
4
|
+
import '../utils-3jLhIyOS.js';
|
|
4
5
|
|
|
5
6
|
declare const ModalComponent: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>> & {
|
|
6
7
|
Header: typeof ModalHeader;
|
|
8
|
+
Content: typeof ModalContent;
|
|
9
|
+
Footer: typeof ModalFooter;
|
|
7
10
|
};
|
|
8
11
|
|
|
9
|
-
export { ModalComponent as Modal, ModalHeader, ModalProps };
|
|
12
|
+
export { ModalComponent as Modal, ModalContent, ModalFooter, ModalHeader, ModalProps };
|
package/dist/modal/index.js
CHANGED
|
@@ -168,21 +168,38 @@ function useMergeRefs(refs) {
|
|
|
168
168
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
169
169
|
var Modal = (0, import_react3.forwardRef)(
|
|
170
170
|
(_a, ref) => {
|
|
171
|
-
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
|
171
|
+
var _b = _a, { children, className, open, closeOnBackdropClick, onClick } = _b, rest = __objRest(_b, ["children", "className", "open", "closeOnBackdropClick", "onClick"]);
|
|
172
172
|
const modalRef = (0, import_react3.useRef)(null);
|
|
173
173
|
const mergedRef = useMergeRefs([modalRef, ref]);
|
|
174
|
-
function
|
|
174
|
+
function onCloseButtonClick() {
|
|
175
175
|
var _a2;
|
|
176
176
|
(_a2 = modalRef.current) == null ? void 0 : _a2.close();
|
|
177
177
|
return false;
|
|
178
178
|
}
|
|
179
|
+
useScrollLock(modalRef, "hds-modal-scroll-lock");
|
|
180
|
+
(0, import_react3.useEffect)(() => {
|
|
181
|
+
if (modalRef.current && open !== void 0) {
|
|
182
|
+
if (open && !modalRef.current.open) {
|
|
183
|
+
modalRef.current.showModal();
|
|
184
|
+
} else if (!open && modalRef.current.open) {
|
|
185
|
+
modalRef.current.close();
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}, [modalRef, open]);
|
|
189
|
+
function onDialogClick(e) {
|
|
190
|
+
if (closeOnBackdropClick && e.target === modalRef.current) {
|
|
191
|
+
modalRef.current.close();
|
|
192
|
+
}
|
|
193
|
+
onClick == null ? void 0 : onClick(e);
|
|
194
|
+
}
|
|
179
195
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
180
196
|
Box,
|
|
181
197
|
__spreadProps(__spreadValues({
|
|
182
198
|
as: "dialog",
|
|
183
199
|
className: (0, import_typed_classname2.clsx)("hds-modal", className),
|
|
184
200
|
closeable: true,
|
|
185
|
-
|
|
201
|
+
onClick: onDialogClick,
|
|
202
|
+
onClose: onCloseButtonClick,
|
|
186
203
|
ref: mergedRef,
|
|
187
204
|
variant: "white"
|
|
188
205
|
}, rest), {
|
|
@@ -205,10 +222,61 @@ var ModalHeader = (0, import_react3.forwardRef)(
|
|
|
205
222
|
}
|
|
206
223
|
);
|
|
207
224
|
ModalHeader.displayName = "Modal.Header";
|
|
225
|
+
var ModalContent = (0, import_react3.forwardRef)(
|
|
226
|
+
(_a, ref) => {
|
|
227
|
+
var _b = _a, { as: Component = "div", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
229
|
+
Component,
|
|
230
|
+
__spreadValues({
|
|
231
|
+
className: (0, import_typed_classname2.clsx)("hds-modal__content", className),
|
|
232
|
+
ref
|
|
233
|
+
}, rest)
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
);
|
|
237
|
+
ModalContent.displayName = "Modal.Content";
|
|
238
|
+
var ModalFooter = (0, import_react3.forwardRef)(
|
|
239
|
+
(_a, ref) => {
|
|
240
|
+
var _b = _a, { as: Component = "footer", className } = _b, rest = __objRest(_b, ["as", "className"]);
|
|
241
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
242
|
+
Component,
|
|
243
|
+
__spreadValues({
|
|
244
|
+
className: (0, import_typed_classname2.clsx)("hds-modal__footer", className),
|
|
245
|
+
ref
|
|
246
|
+
}, rest)
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
);
|
|
250
|
+
ModalFooter.displayName = "Modal.Footer";
|
|
251
|
+
function useScrollLock(modalRef, bodyClass) {
|
|
252
|
+
(0, import_react3.useEffect)(() => {
|
|
253
|
+
if (!modalRef.current)
|
|
254
|
+
return;
|
|
255
|
+
if (modalRef.current.open)
|
|
256
|
+
document.body.classList.add(bodyClass);
|
|
257
|
+
const observer = new MutationObserver(() => {
|
|
258
|
+
var _a;
|
|
259
|
+
if ((_a = modalRef.current) == null ? void 0 : _a.open)
|
|
260
|
+
document.body.classList.add(bodyClass);
|
|
261
|
+
else
|
|
262
|
+
document.body.classList.remove(bodyClass);
|
|
263
|
+
});
|
|
264
|
+
observer.observe(modalRef.current, {
|
|
265
|
+
attributes: true,
|
|
266
|
+
attributeFilter: ["open"]
|
|
267
|
+
});
|
|
268
|
+
return () => {
|
|
269
|
+
observer.disconnect();
|
|
270
|
+
document.body.classList.remove(bodyClass);
|
|
271
|
+
};
|
|
272
|
+
}, [bodyClass, modalRef]);
|
|
273
|
+
}
|
|
208
274
|
|
|
209
275
|
// src/modal/index.tsx
|
|
210
276
|
var ModalComponent = Modal;
|
|
211
277
|
ModalComponent.Header = ModalHeader;
|
|
278
|
+
ModalComponent.Content = ModalContent;
|
|
279
|
+
ModalComponent.Footer = ModalFooter;
|
|
212
280
|
// Annotate the CommonJS export names for ESM import in node:
|
|
213
281
|
0 && (module.exports = {
|
|
214
282
|
Modal
|
package/dist/modal/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ModalComponent
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-5FM3XK4V.mjs";
|
|
4
|
+
import "../chunk-73MDVYU2.mjs";
|
|
5
5
|
import "../chunk-FSBY3NKV.mjs";
|
|
6
|
-
import "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-3EENBGOV.mjs";
|
|
7
|
+
import "../chunk-FKR5F35B.mjs";
|
|
8
8
|
export {
|
|
9
9
|
ModalComponent as Modal
|
|
10
10
|
};
|
package/dist/modal/modal.d.mts
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { O as OverridableComponent } from '../utils-
|
|
2
|
+
import { O as OverridableComponent } from '../utils-3jLhIyOS.mjs';
|
|
3
3
|
|
|
4
4
|
interface ModalProps extends React.HTMLAttributes<HTMLDialogElement> {
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Controls the open state of the modal
|
|
8
|
+
*/
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Whether to close when clicking on the backdrop.
|
|
12
|
+
*/
|
|
13
|
+
closeOnBackdropClick?: boolean;
|
|
6
14
|
}
|
|
7
15
|
/**
|
|
8
16
|
* # 🚨 WORK IN PROGRESS 🚨
|
|
17
|
+
*
|
|
18
|
+
* ## TODO
|
|
19
|
+
*
|
|
20
|
+
* - [ ] polyfill the dialog element for the %0.2 users that don't have it yet.
|
|
21
|
+
* - [x] Open the modal where there user is, not top of the page
|
|
22
|
+
* - [x] Support the `open` prop
|
|
23
|
+
* - [x] Support click outside to close
|
|
9
24
|
*/
|
|
10
25
|
declare const Modal: react.ForwardRefExoticComponent<ModalProps & react.RefAttributes<HTMLDialogElement>>;
|
|
11
|
-
declare const ModalHeader: OverridableComponent<object,
|
|
26
|
+
declare const ModalHeader: OverridableComponent<object, HTMLHeadingElement>;
|
|
27
|
+
declare const ModalContent: OverridableComponent<object, HTMLDivElement>;
|
|
28
|
+
declare const ModalFooter: OverridableComponent<object, HTMLDivElement>;
|
|
29
|
+
declare function useScrollLock(modalRef: React.RefObject<HTMLDialogElement>, bodyClass: string): void;
|
|
12
30
|
|
|
13
|
-
export { Modal, ModalHeader, type ModalProps };
|
|
31
|
+
export { Modal, ModalContent, ModalFooter, ModalHeader, type ModalProps, useScrollLock };
|