@kakadu/components 4.0.0 → 4.0.2
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/components/combobox.d.ts +25 -0
- package/build/components/combobox.js +1 -0
- package/build/components/combobox.mjs +324 -0
- package/build/components/input.d.ts +11 -18
- package/build/components/input.js +2 -2
- package/build/components/input.mjs +124 -147
- package/build/components/modal.js +1 -1
- package/build/components/modal.mjs +1 -1
- package/build/components/popover-menu.js +1 -1
- package/build/components/popover-menu.mjs +98 -106
- package/build/components/popover.js +1 -1
- package/build/components/popover.mjs +1 -1
- package/build/components/select.d.ts +12 -0
- package/build/components/select.js +1 -0
- package/build/components/select.mjs +36 -0
- package/build/components/theme-setter.d.ts +1 -1
- package/build/components.css +1 -1
- package/build/{focus-trap-react-CcpTuiJi.js → focus-trap-react-CkKg4ubd.js} +5 -5
- package/build/{focus-trap-react-DYXrtbDH.mjs → focus-trap-react-DATIi_Ob.mjs} +34 -29
- package/build/hooks/use-synchronized-value.d.ts +4 -0
- package/build/icons/icon.d.ts +2 -1
- package/build/icons/icon.js +1 -1
- package/build/icons/icon.mjs +90 -89
- package/build/index.d.ts +4 -0
- package/build/index.js +1 -1
- package/build/index.mjs +233 -227
- package/build/use-synchronized-value-D0_rS5Wp.js +1 -0
- package/build/use-synchronized-value-XnIpeq1s.mjs +28 -0
- package/package.json +3 -1
package/build/index.mjs
CHANGED
|
@@ -3,256 +3,262 @@ import { default as n, ariaTextStyles as x } from "./components/aria-text.mjs";
|
|
|
3
3
|
import { default as i, defaultAtomElementType as S } from "./components/atom.mjs";
|
|
4
4
|
import { default as c } from "./components/bankid-logo.mjs";
|
|
5
5
|
import { default as y } from "./components/box.mjs";
|
|
6
|
-
import { default as
|
|
7
|
-
import { default as
|
|
6
|
+
import { default as k, ButtonLoader as L, buttonDangerStyles as T, buttonSecondaryStyles as b, buttonSuccessStyles as P, buttonVariants as I, buttonWarningStyles as B } from "./components/button.mjs";
|
|
7
|
+
import { default as M, buttonTooltipPositions as w } from "./components/button-tooltip.mjs";
|
|
8
8
|
import { default as G } from "./components/card.mjs";
|
|
9
9
|
import { default as R } from "./components/click-ripples.mjs";
|
|
10
10
|
import { default as H } from "./components/collapsible.mjs";
|
|
11
|
-
import { default as V } from "./components/
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as Q } from "./components/
|
|
15
|
-
import { default as z } from "./components/
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as $,
|
|
18
|
-
import { default as te } from "./components/
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as me,
|
|
23
|
-
import { default as ge,
|
|
24
|
-
import { default as ce } from "./components/
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as Te } from "./components/kakadu-
|
|
27
|
-
import { default as Be } from "./components/kakadu-
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as He } from "./components/
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as Xe,
|
|
35
|
-
import { default as $e,
|
|
36
|
-
import { default as ro,
|
|
37
|
-
import { default as
|
|
38
|
-
import { default as
|
|
39
|
-
import { default as vo } from "./components/
|
|
40
|
-
import {
|
|
41
|
-
import { default as
|
|
42
|
-
import { default as
|
|
43
|
-
import {
|
|
44
|
-
import { default as
|
|
45
|
-
import {
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as Zo,
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as rt } from "./
|
|
50
|
-
import { default as st } from "./icons/
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as Bt } from "./icons/
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import { default as
|
|
72
|
-
import { default as
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import { default as
|
|
77
|
-
import { default as
|
|
78
|
-
import { default as
|
|
79
|
-
import { default as
|
|
80
|
-
import { default as
|
|
81
|
-
import { default as
|
|
82
|
-
import { default as
|
|
83
|
-
import { default as
|
|
84
|
-
import { default as
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as Ba } from "./icons/
|
|
88
|
-
import { default as
|
|
89
|
-
import { default as
|
|
90
|
-
import { default as
|
|
91
|
-
import { default as Ha } from "./
|
|
92
|
-
import { default as
|
|
93
|
-
import { default as
|
|
11
|
+
import { default as V, getComboboxOptionString as U } from "./components/combobox.mjs";
|
|
12
|
+
import { default as W } from "./components/copy-icon-button.mjs";
|
|
13
|
+
import { default as j } from "./components/datum.mjs";
|
|
14
|
+
import { default as Q } from "./components/decorators.mjs";
|
|
15
|
+
import { default as z } from "./components/dnb-logo.mjs";
|
|
16
|
+
import { default as Y } from "./components/dot.mjs";
|
|
17
|
+
import { default as _, flexDirections as $, flexPresets as ee } from "./components/flex.mjs";
|
|
18
|
+
import { default as te, footerLinkItems as ae } from "./components/footer.mjs";
|
|
19
|
+
import { default as fe } from "./components/gauge.mjs";
|
|
20
|
+
import { default as le } from "./components/gjensidige-logo.mjs";
|
|
21
|
+
import { default as de } from "./components/header.mjs";
|
|
22
|
+
import { default as me, normalBlendStyles as ne } from "./components/hover-gradient.mjs";
|
|
23
|
+
import { default as ge, iconButtonVariants as ie } from "./components/icon-button.mjs";
|
|
24
|
+
import { default as ve, InputLabel as ce, errorParagraph as he, inputStyles as ye } from "./components/input.mjs";
|
|
25
|
+
import { default as ke } from "./components/kakadu-guide-icon.mjs";
|
|
26
|
+
import { default as Te, KakaduGuideLogoSvg as be, kakaduGuideLogoVariants as Pe } from "./components/kakadu-guide-logo.mjs";
|
|
27
|
+
import { default as Be } from "./components/kakadu-index-logo.mjs";
|
|
28
|
+
import { default as Me } from "./components/kakadu-academy-logo.mjs";
|
|
29
|
+
import { default as Ae } from "./components/kakadu-logo.mjs";
|
|
30
|
+
import { default as Fe, ModalActions as Re, ModalContent as Ee, ModalHeading as He, useModal as Ke, useModalContext as Ve } from "./components/modal.mjs";
|
|
31
|
+
import { default as Ne } from "./components/moving-gradients.mjs";
|
|
32
|
+
import { default as Je } from "./components/moving-stars.mjs";
|
|
33
|
+
import { default as Oe, noticeTypes as Qe, noticeTypes as qe } from "./components/notice.mjs";
|
|
34
|
+
import { default as Xe, NotificationProvider as Ye, useCreateNotification as Ze } from "./components/notification.mjs";
|
|
35
|
+
import { default as $e, dangerPopoverMenuItemStyles as eo, usePopoverMenu as oo } from "./components/popover-menu.mjs";
|
|
36
|
+
import { default as ao, PopoverContainer as ro, usePopover as fo, usePopoverContext as so } from "./components/popover.mjs";
|
|
37
|
+
import { default as uo, useRevealer as po } from "./components/revealer.mjs";
|
|
38
|
+
import { default as no } from "./components/select.mjs";
|
|
39
|
+
import { default as go, SeparatorLabel as io, SmallSeparator as So, VerticalSeparator as vo } from "./components/separator.mjs";
|
|
40
|
+
import { default as ho, SkeletonInstance as yo, getDeterministicSkeletonWidth as Co } from "./components/skeleton.mjs";
|
|
41
|
+
import { default as Lo } from "./components/sparebank1-logo.mjs";
|
|
42
|
+
import { RevealSpinner as bo, default as Po } from "./components/spinner.mjs";
|
|
43
|
+
import { default as Bo } from "./components/sto-logo.mjs";
|
|
44
|
+
import { default as Mo } from "./components/storebrand-logo.mjs";
|
|
45
|
+
import { AnchorHeading as Ao, Footnote as Go, Heading as Fo, Hero as Ro, Label as Eo, Paragraph as Ho, Span as Ko, default as Vo, defaultHeadingElementType as Uo, spanStyles as No, textShadowStyles as Wo } from "./components/text.mjs";
|
|
46
|
+
import { default as jo, textButtonVariants as Oo } from "./components/text-button.mjs";
|
|
47
|
+
import { default as qo, getThemePreference as zo, setThemePreference as Xo, themePreferences as Yo, useIsDarkMode as Zo, useIsLightMode as _o, useTheme as $o } from "./components/theme-setter.mjs";
|
|
48
|
+
import { default as ot } from "./components/veil.mjs";
|
|
49
|
+
import { default as at, wrapperWidths as rt } from "./components/wrapper.mjs";
|
|
50
|
+
import { default as st, iconShadowStyles as lt, iconTypes as ut } from "./icons/icon.mjs";
|
|
51
|
+
import { default as pt } from "./icons/anchor-down.mjs";
|
|
52
|
+
import { default as nt } from "./icons/anchor-up.mjs";
|
|
53
|
+
import { default as gt } from "./icons/arrow-down.mjs";
|
|
54
|
+
import { default as St } from "./icons/arrow-left.mjs";
|
|
55
|
+
import { default as ct } from "./icons/arrow-right.mjs";
|
|
56
|
+
import { default as yt } from "./icons/arrow-up.mjs";
|
|
57
|
+
import { default as kt } from "./icons/caret-down.mjs";
|
|
58
|
+
import { default as Tt } from "./icons/caret-left.mjs";
|
|
59
|
+
import { default as Pt } from "./icons/caret-right.mjs";
|
|
60
|
+
import { default as Bt } from "./icons/caret-up.mjs";
|
|
61
|
+
import { default as Mt } from "./icons/check.mjs";
|
|
62
|
+
import { default as At } from "./icons/chevron-down.mjs";
|
|
63
|
+
import { default as Ft } from "./icons/chevron-left.mjs";
|
|
64
|
+
import { default as Et } from "./icons/chevron-right.mjs";
|
|
65
|
+
import { default as Kt } from "./icons/chevron-up.mjs";
|
|
66
|
+
import { default as Ut } from "./icons/cog.mjs";
|
|
67
|
+
import { default as Wt } from "./icons/copy.mjs";
|
|
68
|
+
import { default as jt } from "./icons/document.mjs";
|
|
69
|
+
import { default as Qt } from "./icons/dots.mjs";
|
|
70
|
+
import { default as zt } from "./icons/drag.mjs";
|
|
71
|
+
import { default as Yt } from "./icons/edit.mjs";
|
|
72
|
+
import { default as _t } from "./icons/external.mjs";
|
|
73
|
+
import { default as ea } from "./icons/exclamation-triangle.mjs";
|
|
74
|
+
import { default as ta } from "./icons/eye.mjs";
|
|
75
|
+
import { default as ra } from "./icons/information.mjs";
|
|
76
|
+
import { default as sa } from "./icons/kakadu-guide-glyph.mjs";
|
|
77
|
+
import { default as ua } from "./icons/kakadu-guide-icon.mjs";
|
|
78
|
+
import { default as pa } from "./icons/menu.mjs";
|
|
79
|
+
import { default as na } from "./icons/package.mjs";
|
|
80
|
+
import { default as ga } from "./icons/plus.mjs";
|
|
81
|
+
import { default as Sa } from "./icons/select.mjs";
|
|
82
|
+
import { default as ca } from "./icons/share.mjs";
|
|
83
|
+
import { default as ya } from "./icons/sparkle.mjs";
|
|
84
|
+
import { default as ka } from "./icons/test.mjs";
|
|
85
|
+
import { default as Ta } from "./icons/times.mjs";
|
|
86
|
+
import { default as Pa } from "./icons/trash.mjs";
|
|
87
|
+
import { default as Ba } from "./icons/trend-up.mjs";
|
|
88
|
+
import { default as Ma } from "./icons/chrome-browser-logo.mjs";
|
|
89
|
+
import { default as Aa } from "./icons/edge-browser-logo.mjs";
|
|
90
|
+
import { default as Fa } from "./hooks/use-media-query.mjs";
|
|
91
|
+
import { default as Ea, useFetcher as Ha, useJsonFetch as Ka, useJsonFetcher as Va } from "./hooks/use-fetch.mjs";
|
|
92
|
+
import { default as Na } from "./utilities/clamp.mjs";
|
|
93
|
+
import { default as Ja } from "./utilities/copy-to-clipboard.mjs";
|
|
94
|
+
import { default as Oa } from "./utilities/generate-random-id.mjs";
|
|
95
|
+
import { default as qa } from "./utilities/scale.mjs";
|
|
94
96
|
export {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
97
|
+
pt as AnchorDownSvg,
|
|
98
|
+
Ao as AnchorHeading,
|
|
99
|
+
nt as AnchorUpSvg,
|
|
98
100
|
n as AriaText,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
gt as ArrowDownSvg,
|
|
102
|
+
St as ArrowLeftSvg,
|
|
103
|
+
ct as ArrowRightSvg,
|
|
104
|
+
yt as ArrowUpSvg,
|
|
103
105
|
i as Atom,
|
|
104
106
|
c as BankidLogo,
|
|
105
107
|
y as Box,
|
|
106
|
-
|
|
108
|
+
k as Button,
|
|
107
109
|
L as ButtonLoader,
|
|
108
|
-
|
|
110
|
+
M as ButtonTooltip,
|
|
109
111
|
G as Card,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
112
|
+
kt as CaretDownSvg,
|
|
113
|
+
Tt as CaretLeftSvg,
|
|
114
|
+
Pt as CaretRightSvg,
|
|
115
|
+
Bt as CaretUpSvg,
|
|
116
|
+
Mt as CheckSvg,
|
|
117
|
+
At as ChevronDownSvg,
|
|
118
|
+
Ft as ChevronLeftSvg,
|
|
119
|
+
Et as ChevronRightSvg,
|
|
120
|
+
Kt as ChevronUpSvg,
|
|
121
|
+
Ma as ChromeBrowserLogoSvg,
|
|
120
122
|
R as ClickRipples,
|
|
121
|
-
|
|
123
|
+
Ut as CogSvg,
|
|
122
124
|
H as Collapsible,
|
|
123
|
-
V as
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
Q as
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
125
|
+
V as Combobox,
|
|
126
|
+
W as CopyIconButton,
|
|
127
|
+
Wt as CopySvg,
|
|
128
|
+
j as Datum,
|
|
129
|
+
Q as Decorators,
|
|
130
|
+
z as DnbLogo,
|
|
131
|
+
jt as DocumentSvg,
|
|
132
|
+
Y as Dot,
|
|
133
|
+
Qt as DotsSvg,
|
|
134
|
+
zt as DragSvg,
|
|
135
|
+
Aa as EdgeBrowserLogoSvg,
|
|
136
|
+
Yt as EditSvg,
|
|
137
|
+
ea as ExclamationTriangleSvg,
|
|
138
|
+
_t as ExternalSvg,
|
|
139
|
+
ta as EyeSvg,
|
|
140
|
+
_ as Flex,
|
|
138
141
|
t as FontFamilyHead,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
He as
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
142
|
+
te as Footer,
|
|
143
|
+
Go as Footnote,
|
|
144
|
+
fe as Gauge,
|
|
145
|
+
le as GjensidigeLogo,
|
|
146
|
+
de as Header,
|
|
147
|
+
Fo as Heading,
|
|
148
|
+
Ro as Hero,
|
|
149
|
+
me as HoverGradient,
|
|
150
|
+
st as Icon,
|
|
151
|
+
ge as IconButton,
|
|
152
|
+
ra as InformationSvg,
|
|
153
|
+
ve as Input,
|
|
154
|
+
ce as InputLabel,
|
|
155
|
+
Me as KakaduAcademyLogo,
|
|
156
|
+
sa as KakaduGuideGlyphSvg,
|
|
157
|
+
ke as KakaduGuideIcon,
|
|
158
|
+
ua as KakaduGuideIconSvg,
|
|
159
|
+
Te as KakaduGuideLogo,
|
|
160
|
+
be as KakaduGuideLogoSvg,
|
|
161
|
+
Be as KakaduIndexLogo,
|
|
162
|
+
Ae as KakaduLogo,
|
|
163
|
+
Eo as Label,
|
|
164
|
+
pa as MenuSvg,
|
|
165
|
+
Fe as Modal,
|
|
166
|
+
Re as ModalActions,
|
|
167
|
+
Ee as ModalContent,
|
|
168
|
+
He as ModalHeading,
|
|
169
|
+
Ne as MovingGradients,
|
|
170
|
+
Je as MovingStars,
|
|
171
|
+
Oe as Notice,
|
|
172
|
+
Xe as Notification,
|
|
173
|
+
Ye as NotificationProvider,
|
|
174
|
+
na as PackageSvg,
|
|
175
|
+
Ho as Paragraph,
|
|
176
|
+
ga as PlusSvg,
|
|
177
|
+
ao as Popover,
|
|
178
|
+
ro as PopoverContainer,
|
|
179
|
+
$e as PopoverMenu,
|
|
180
|
+
bo as RevealSpinner,
|
|
181
|
+
uo as Revealer,
|
|
182
|
+
no as Select,
|
|
183
|
+
Sa as SelectSvg,
|
|
184
|
+
go as Separator,
|
|
185
|
+
io as SeparatorLabel,
|
|
186
|
+
ca as ShareSvg,
|
|
187
|
+
ho as Skeleton,
|
|
188
|
+
yo as SkeletonInstance,
|
|
189
|
+
So as SmallSeparator,
|
|
190
|
+
Ko as Span,
|
|
191
|
+
Lo as Sparebank1Logo,
|
|
192
|
+
ya as SparkleSvg,
|
|
193
|
+
Po as Spinner,
|
|
194
|
+
Bo as StoLogo,
|
|
195
|
+
Mo as StorebrandLogo,
|
|
196
|
+
ka as TestSvg,
|
|
197
|
+
Vo as Text,
|
|
198
|
+
jo as TextButton,
|
|
199
|
+
qo as ThemeSetter,
|
|
200
|
+
Ta as TimesSvg,
|
|
201
|
+
Pa as TrashSvg,
|
|
202
|
+
Ba as TrendUpSvg,
|
|
203
|
+
ot as Veil,
|
|
204
|
+
vo as VerticalSeparator,
|
|
205
|
+
at as Wrapper,
|
|
202
206
|
x as ariaTextStyles,
|
|
203
207
|
T as buttonDangerStyles,
|
|
204
208
|
a as buttonResetStyles,
|
|
205
|
-
|
|
206
|
-
|
|
209
|
+
b as buttonSecondaryStyles,
|
|
210
|
+
P as buttonSuccessStyles,
|
|
207
211
|
w as buttonTooltipPositions,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
I as buttonVariants,
|
|
213
|
+
B as buttonWarningStyles,
|
|
214
|
+
Na as clamp,
|
|
215
|
+
Ja as copyToClipboard,
|
|
216
|
+
eo as dangerPopoverMenuItemStyles,
|
|
213
217
|
r as darkBackgroundColor,
|
|
214
218
|
S as defaultAtomElementType,
|
|
215
|
-
|
|
219
|
+
Uo as defaultHeadingElementType,
|
|
216
220
|
f as effectStyles,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
221
|
+
he as errorParagraph,
|
|
222
|
+
$ as flexDirections,
|
|
223
|
+
ee as flexPresets,
|
|
220
224
|
s as font,
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
ae as footerLinkItems,
|
|
226
|
+
Oa as generateRandomId,
|
|
227
|
+
U as getComboboxOptionString,
|
|
228
|
+
Co as getDeterministicSkeletonWidth,
|
|
229
|
+
zo as getThemePreference,
|
|
230
|
+
ie as iconButtonVariants,
|
|
231
|
+
lt as iconShadowStyles,
|
|
232
|
+
ut as iconTypes,
|
|
233
|
+
ye as inputStyles,
|
|
234
|
+
Pe as kakaduGuideLogoVariants,
|
|
229
235
|
l as lightBackgroundColor,
|
|
230
236
|
u as nonInteractiveEffectStyles,
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
237
|
+
ne as normalBlendStyles,
|
|
238
|
+
Qe as noticeTypes,
|
|
239
|
+
qe as notificationTypes,
|
|
234
240
|
d as overflowProtectionStyles,
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
241
|
+
qa as scale,
|
|
242
|
+
Xo as setThemePreference,
|
|
243
|
+
No as spanStyles,
|
|
244
|
+
Oo as textButtonVariants,
|
|
245
|
+
Wo as textShadowStyles,
|
|
240
246
|
p as theme,
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
247
|
+
Yo as themePreferences,
|
|
248
|
+
Ze as useCreateNotification,
|
|
249
|
+
Ea as useFetch,
|
|
250
|
+
Ha as useFetcher,
|
|
251
|
+
Zo as useIsDarkMode,
|
|
252
|
+
_o as useIsLightMode,
|
|
253
|
+
Ka as useJsonFetch,
|
|
254
|
+
Va as useJsonFetcher,
|
|
255
|
+
Fa as useMediaQuery,
|
|
256
|
+
Ke as useModal,
|
|
257
|
+
Ve as useModalContext,
|
|
258
|
+
fo as usePopover,
|
|
259
|
+
so as usePopoverContext,
|
|
260
|
+
oo as usePopoverMenu,
|
|
261
|
+
po as useRevealer,
|
|
262
|
+
$o as useTheme,
|
|
263
|
+
rt as wrapperWidths
|
|
258
264
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const n=require("react"),r=new Map,l=new Map;function f(e){const[c,o]=n.useState(()=>l.get(e)),a=n.useCallback(t=>{const s=r.get(e);if(o(t),l.set(e,t),s)for(const u of s)u(t)},[e]);return n.useEffect(()=>{r.has(e)||r.set(e,new Set);const t=r.get(e),s=u=>{o(u)};return t.add(s),()=>{t.delete(s)}},[e]),n.useMemo(()=>({value:c,setValue:a}),[c,a])}exports.useSynchronizedValue=f;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { useState as l, useCallback as f, useEffect as S, useMemo as p } from "react";
|
|
2
|
+
const n = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Map();
|
|
3
|
+
function g(e) {
|
|
4
|
+
const [r, a] = l(() => u.get(e)), c = f(
|
|
5
|
+
(t) => {
|
|
6
|
+
const s = n.get(e);
|
|
7
|
+
if (a(t), u.set(e, t), s)
|
|
8
|
+
for (const o of s)
|
|
9
|
+
o(t);
|
|
10
|
+
},
|
|
11
|
+
[e]
|
|
12
|
+
);
|
|
13
|
+
return S(() => {
|
|
14
|
+
n.has(e) || n.set(e, /* @__PURE__ */ new Set());
|
|
15
|
+
const t = n.get(e), s = (o) => {
|
|
16
|
+
a(o);
|
|
17
|
+
};
|
|
18
|
+
return t.add(s), () => {
|
|
19
|
+
t.delete(s);
|
|
20
|
+
};
|
|
21
|
+
}, [e]), p(
|
|
22
|
+
() => ({ value: r, setValue: c }),
|
|
23
|
+
[r, c]
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
g as u
|
|
28
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kakadu/components",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.2",
|
|
4
4
|
"description": "Kakadu components library",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./build/index.js",
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@kuma-ui/vite": "^1.5.1",
|
|
64
|
+
"fast-levenshtein": "^3.0.0",
|
|
64
65
|
"focus-trap-react": "^11.0.6",
|
|
65
66
|
"next": "^16.0.1"
|
|
66
67
|
},
|
|
@@ -74,6 +75,7 @@
|
|
|
74
75
|
"@testing-library/jest-dom": "^6.9.1",
|
|
75
76
|
"@testing-library/react": "^16.3.0",
|
|
76
77
|
"@testing-library/user-event": "^14.6.1",
|
|
78
|
+
"@types/fast-levenshtein": "^0.0.4",
|
|
77
79
|
"@types/node": "^20",
|
|
78
80
|
"@types/react": "^19",
|
|
79
81
|
"@types/react-dom": "^19",
|