@kakadu/components 4.0.8 → 4.2.0
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.js +1 -1
- package/build/components/combobox.mjs +165 -156
- package/build/components/flex.d.ts +4 -1
- package/build/components/flex.js +1 -1
- package/build/components/flex.mjs +54 -26
- package/build/components/popover-menu.js +1 -1
- package/build/components/popover-menu.mjs +1 -1
- package/build/components.css +1 -1
- package/build/hooks/use-media-query.d.ts +1 -0
- package/build/hooks/use-synchronized-value.d.ts +1 -0
- package/build/hooks/use-synchronized-value.js +1 -0
- package/build/{use-synchronized-value-XnIpeq1s.mjs → hooks/use-synchronized-value.mjs} +8 -8
- package/build/hooks/use-throttled.d.ts +2 -0
- package/build/hooks/use-throttled.js +1 -0
- package/build/hooks/use-throttled.mjs +16 -0
- package/build/index.d.ts +6 -2
- package/build/index.js +1 -1
- package/build/index.mjs +36 -32
- package/package.json +1 -1
- package/build/use-synchronized-value-D0_rS5Wp.js +0 -1
package/build/index.mjs
CHANGED
|
@@ -11,8 +11,8 @@ import { default as H } from "./components/collapsible.mjs";
|
|
|
11
11
|
import { default as V, getComboboxOptionString as U } from "./components/combobox.mjs";
|
|
12
12
|
import { default as W } from "./components/copy-icon-button.mjs";
|
|
13
13
|
import { default as j } from "./components/datum.mjs";
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
14
|
+
import { default as O } from "./components/decorators.mjs";
|
|
15
|
+
import { default as q } from "./components/dnb-logo.mjs";
|
|
16
16
|
import { default as Y } from "./components/dot.mjs";
|
|
17
17
|
import { default as _, flexDirections as $, flexPresets as ee } from "./components/flex.mjs";
|
|
18
18
|
import { default as te, footerLinkItems as ae } from "./components/footer.mjs";
|
|
@@ -30,7 +30,7 @@ import { default as Ae } from "./components/kakadu-logo.mjs";
|
|
|
30
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
31
|
import { default as Ne } from "./components/moving-gradients.mjs";
|
|
32
32
|
import { default as Je } from "./components/moving-stars.mjs";
|
|
33
|
-
import { default as
|
|
33
|
+
import { default as ze, noticeTypes as Oe, noticeTypes as Qe } from "./components/notice.mjs";
|
|
34
34
|
import { default as Xe, NotificationProvider as Ye, useCreateNotification as Ze } from "./components/notification.mjs";
|
|
35
35
|
import { default as $e, dangerPopoverMenuItemStyles as eo, usePopoverMenu as oo } from "./components/popover-menu.mjs";
|
|
36
36
|
import { default as ao, PopoverContainer as ro, usePopover as fo, usePopoverContext as so } from "./components/popover.mjs";
|
|
@@ -43,8 +43,8 @@ import { RevealSpinner as bo, default as Po } from "./components/spinner.mjs";
|
|
|
43
43
|
import { default as Bo } from "./components/sto-logo.mjs";
|
|
44
44
|
import { default as Mo } from "./components/storebrand-logo.mjs";
|
|
45
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
|
|
47
|
-
import { default as
|
|
46
|
+
import { default as jo, textButtonVariants as zo } from "./components/text-button.mjs";
|
|
47
|
+
import { default as Qo, getThemePreference as qo, setThemePreference as Xo, themePreferences as Yo, useIsDarkMode as Zo, useIsLightMode as _o, useTheme as $o } from "./components/theme-setter.mjs";
|
|
48
48
|
import { default as ot } from "./components/veil.mjs";
|
|
49
49
|
import { default as at, wrapperWidths as rt } from "./components/wrapper.mjs";
|
|
50
50
|
import { default as st, iconShadowStyles as lt, iconTypes as ut } from "./icons/icon.mjs";
|
|
@@ -66,8 +66,8 @@ import { default as Kt } from "./icons/chevron-up.mjs";
|
|
|
66
66
|
import { default as Ut } from "./icons/cog.mjs";
|
|
67
67
|
import { default as Wt } from "./icons/copy.mjs";
|
|
68
68
|
import { default as jt } from "./icons/document.mjs";
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
69
|
+
import { default as Ot } from "./icons/dots.mjs";
|
|
70
|
+
import { default as qt } from "./icons/drag.mjs";
|
|
71
71
|
import { default as Yt } from "./icons/edit.mjs";
|
|
72
72
|
import { default as _t } from "./icons/external.mjs";
|
|
73
73
|
import { default as ea } from "./icons/exclamation-triangle.mjs";
|
|
@@ -87,12 +87,14 @@ import { default as Pa } from "./icons/trash.mjs";
|
|
|
87
87
|
import { default as Ba } from "./icons/trend-up.mjs";
|
|
88
88
|
import { default as Ma } from "./icons/chrome-browser-logo.mjs";
|
|
89
89
|
import { default as Aa } from "./icons/edge-browser-logo.mjs";
|
|
90
|
-
import { default as Fa } from "./hooks/use-
|
|
91
|
-
import { default as
|
|
92
|
-
import { default as Na } from "./
|
|
93
|
-
import { default as Ja } from "./
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
90
|
+
import { default as Fa, useFetcher as Ra, useJsonFetch as Ea, useJsonFetcher as Ha } from "./hooks/use-fetch.mjs";
|
|
91
|
+
import { default as Va } from "./hooks/use-media-query.mjs";
|
|
92
|
+
import { default as Na } from "./hooks/use-synchronized-value.mjs";
|
|
93
|
+
import { default as Ja } from "./hooks/use-throttled.mjs";
|
|
94
|
+
import { default as za } from "./utilities/clamp.mjs";
|
|
95
|
+
import { default as Qa } from "./utilities/copy-to-clipboard.mjs";
|
|
96
|
+
import { default as Xa } from "./utilities/generate-random-id.mjs";
|
|
97
|
+
import { default as Za } from "./utilities/scale.mjs";
|
|
96
98
|
export {
|
|
97
99
|
pt as AnchorDownSvg,
|
|
98
100
|
Ao as AnchorHeading,
|
|
@@ -126,12 +128,12 @@ export {
|
|
|
126
128
|
W as CopyIconButton,
|
|
127
129
|
Wt as CopySvg,
|
|
128
130
|
j as Datum,
|
|
129
|
-
|
|
130
|
-
|
|
131
|
+
O as Decorators,
|
|
132
|
+
q as DnbLogo,
|
|
131
133
|
jt as DocumentSvg,
|
|
132
134
|
Y as Dot,
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
Ot as DotsSvg,
|
|
136
|
+
qt as DragSvg,
|
|
135
137
|
Aa as EdgeBrowserLogoSvg,
|
|
136
138
|
Yt as EditSvg,
|
|
137
139
|
ea as ExclamationTriangleSvg,
|
|
@@ -168,7 +170,7 @@ export {
|
|
|
168
170
|
He as ModalHeading,
|
|
169
171
|
Ne as MovingGradients,
|
|
170
172
|
Je as MovingStars,
|
|
171
|
-
|
|
173
|
+
ze as Notice,
|
|
172
174
|
Xe as Notification,
|
|
173
175
|
Ye as NotificationProvider,
|
|
174
176
|
na as PackageSvg,
|
|
@@ -196,7 +198,7 @@ export {
|
|
|
196
198
|
ka as TestSvg,
|
|
197
199
|
Vo as Text,
|
|
198
200
|
jo as TextButton,
|
|
199
|
-
|
|
201
|
+
Qo as ThemeSetter,
|
|
200
202
|
Ta as TimesSvg,
|
|
201
203
|
Pa as TrashSvg,
|
|
202
204
|
Ba as TrendUpSvg,
|
|
@@ -211,8 +213,8 @@ export {
|
|
|
211
213
|
w as buttonTooltipPositions,
|
|
212
214
|
I as buttonVariants,
|
|
213
215
|
B as buttonWarningStyles,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
za as clamp,
|
|
217
|
+
Qa as copyToClipboard,
|
|
216
218
|
eo as dangerPopoverMenuItemStyles,
|
|
217
219
|
r as darkBackgroundColor,
|
|
218
220
|
S as defaultAtomElementType,
|
|
@@ -223,10 +225,10 @@ export {
|
|
|
223
225
|
ee as flexPresets,
|
|
224
226
|
s as font,
|
|
225
227
|
ae as footerLinkItems,
|
|
226
|
-
|
|
228
|
+
Xa as generateRandomId,
|
|
227
229
|
U as getComboboxOptionString,
|
|
228
230
|
Co as getDeterministicSkeletonWidth,
|
|
229
|
-
|
|
231
|
+
qo as getThemePreference,
|
|
230
232
|
ie as iconButtonVariants,
|
|
231
233
|
lt as iconShadowStyles,
|
|
232
234
|
ut as iconTypes,
|
|
@@ -235,30 +237,32 @@ export {
|
|
|
235
237
|
l as lightBackgroundColor,
|
|
236
238
|
u as nonInteractiveEffectStyles,
|
|
237
239
|
ne as normalBlendStyles,
|
|
238
|
-
|
|
239
|
-
|
|
240
|
+
Oe as noticeTypes,
|
|
241
|
+
Qe as notificationTypes,
|
|
240
242
|
d as overflowProtectionStyles,
|
|
241
|
-
|
|
243
|
+
Za as scale,
|
|
242
244
|
Xo as setThemePreference,
|
|
243
245
|
No as spanStyles,
|
|
244
|
-
|
|
246
|
+
zo as textButtonVariants,
|
|
245
247
|
Wo as textShadowStyles,
|
|
246
248
|
p as theme,
|
|
247
249
|
Yo as themePreferences,
|
|
248
250
|
Ze as useCreateNotification,
|
|
249
|
-
|
|
250
|
-
|
|
251
|
+
Fa as useFetch,
|
|
252
|
+
Ra as useFetcher,
|
|
251
253
|
Zo as useIsDarkMode,
|
|
252
254
|
_o as useIsLightMode,
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
255
|
+
Ea as useJsonFetch,
|
|
256
|
+
Ha as useJsonFetcher,
|
|
257
|
+
Va as useMediaQuery,
|
|
256
258
|
Ke as useModal,
|
|
257
259
|
Ve as useModalContext,
|
|
258
260
|
fo as usePopover,
|
|
259
261
|
so as usePopoverContext,
|
|
260
262
|
oo as usePopoverMenu,
|
|
261
263
|
po as useRevealer,
|
|
264
|
+
Na as useSynchronizedValue,
|
|
262
265
|
$o as useTheme,
|
|
266
|
+
Ja as useThrottled,
|
|
263
267
|
rt as wrapperWidths
|
|
264
268
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
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;
|