@kakadu/components 5.0.4 → 5.0.6
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/button.js +1 -1
- package/build/components/button.mjs +1 -1
- package/build/components/card.js +1 -1
- package/build/components/card.mjs +28 -27
- package/build/components/icon-button.js +1 -1
- package/build/components/icon-button.mjs +10 -10
- package/build/components/moving-gradients.js +1 -1
- package/build/components/moving-gradients.mjs +40 -36
- package/build/components/moving-stars.js +1 -1
- package/build/components/moving-stars.mjs +57 -53
- package/build/components/popover-menu.js +1 -1
- package/build/components/popover-menu.mjs +87 -87
- package/build/components/text-button.js +1 -1
- package/build/components/text-button.mjs +1 -1
- package/build/hooks/use-is-in-view.d.ts +6 -0
- package/build/hooks/use-is-in-view.js +1 -0
- package/build/hooks/use-is-in-view.mjs +26 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +1 -1
- package/build/index.mjs +71 -68
- package/package.json +1 -1
package/build/index.mjs
CHANGED
|
@@ -3,11 +3,11 @@ import { default as x, ariaTextStyles as i } from "./components/aria-text.mjs";
|
|
|
3
3
|
import { default as S, defaultAtomElementType as v } from "./components/atom.mjs";
|
|
4
4
|
import { default as h } from "./components/bankid-logo.mjs";
|
|
5
5
|
import { default as C } from "./components/box.mjs";
|
|
6
|
-
import { default as L, ButtonLoader as T, buttonDangerStyles as b, buttonSecondaryStyles as
|
|
7
|
-
import { default as
|
|
6
|
+
import { default as L, ButtonLoader as T, buttonDangerStyles as b, buttonSecondaryStyles as I, buttonSuccessStyles as P, buttonVariants as w, buttonWarningStyles as B } from "./components/button.mjs";
|
|
7
|
+
import { default as M, buttonTooltipPositions as A } from "./components/button-tooltip.mjs";
|
|
8
8
|
import { default as F } from "./components/card.mjs";
|
|
9
|
-
import { default as
|
|
10
|
-
import { default as
|
|
9
|
+
import { default as H } from "./components/click-ripples.mjs";
|
|
10
|
+
import { default as V } from "./components/collapsible.mjs";
|
|
11
11
|
import { default as U, getComboboxOptionString as N } from "./components/combobox.mjs";
|
|
12
12
|
import { default as J } from "./components/copy-icon-button.mjs";
|
|
13
13
|
import { default as z } from "./components/datum.mjs";
|
|
@@ -23,11 +23,11 @@ import { default as xe, normalBlendStyles as ie } from "./components/hover-gradi
|
|
|
23
23
|
import { default as Se, iconButtonVariants as ve } from "./components/icon-button.mjs";
|
|
24
24
|
import { default as he, InputLabel as ye, errorParagraph as Ce, inputStyles as ke } from "./components/input.mjs";
|
|
25
25
|
import { default as Te } from "./components/kakadu-guide-icon.mjs";
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
26
|
+
import { default as Ie, KakaduGuideLogoSvg as Pe, kakaduGuideLogoVariants as we } from "./components/kakadu-guide-logo.mjs";
|
|
27
|
+
import { default as De } from "./components/kakadu-index-logo.mjs";
|
|
28
28
|
import { default as Ae } from "./components/kakadu-academy-logo.mjs";
|
|
29
29
|
import { default as Fe } from "./components/kakadu-logo.mjs";
|
|
30
|
-
import { default as
|
|
30
|
+
import { default as He, ModalActions as Re, ModalContent as Ve, ModalHeading as Ke, useModal as Ue, useModalContext as Ne } from "./components/modal.mjs";
|
|
31
31
|
import { default as Je } from "./components/moving-gradients.mjs";
|
|
32
32
|
import { default as ze } from "./components/moving-stars.mjs";
|
|
33
33
|
import { default as Qe, noticeTypes as qe, noticeTypes as Xe } from "./components/notice.mjs";
|
|
@@ -39,10 +39,10 @@ import { default as io } from "./components/select.mjs";
|
|
|
39
39
|
import { default as So, SeparatorLabel as vo, SmallSeparator as co, VerticalSeparator as ho } from "./components/separator.mjs";
|
|
40
40
|
import { default as Co, SkeletonInstance as ko, getDeterministicSkeletonWidth as Lo } from "./components/skeleton.mjs";
|
|
41
41
|
import { default as bo } from "./components/sparebank1-logo.mjs";
|
|
42
|
-
import { RevealSpinner as
|
|
43
|
-
import { default as
|
|
42
|
+
import { RevealSpinner as Po, default as wo } from "./components/spinner.mjs";
|
|
43
|
+
import { default as Do } from "./components/sto-logo.mjs";
|
|
44
44
|
import { default as Ao } from "./components/storebrand-logo.mjs";
|
|
45
|
-
import { AnchorHeading as Fo, Footnote as Eo, Heading as
|
|
45
|
+
import { AnchorHeading as Fo, Footnote as Eo, Heading as Ho, Hero as Ro, Label as Vo, Paragraph as Ko, Span as Uo, default as No, defaultHeadingElementType as Wo, spanStyles as Jo, textShadowStyles as jo } from "./components/text.mjs";
|
|
46
46
|
import { default as Oo, textButtonVariants as Qo } from "./components/text-button.mjs";
|
|
47
47
|
import { default as Xo, getThemePreference as Yo, setThemePreference as Zo, themePreferences as _o, useIsDarkMode as $o, useIsLightMode as et, useTheme as ot } from "./components/theme-setter.mjs";
|
|
48
48
|
import { default as at } from "./components/veil.mjs";
|
|
@@ -55,13 +55,13 @@ import { default as ct } from "./icons/arrow-left.mjs";
|
|
|
55
55
|
import { default as yt } from "./icons/arrow-right.mjs";
|
|
56
56
|
import { default as kt } from "./icons/arrow-up.mjs";
|
|
57
57
|
import { default as Tt } from "./icons/caret-down.mjs";
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
58
|
+
import { default as It } from "./icons/caret-left.mjs";
|
|
59
|
+
import { default as wt } from "./icons/caret-right.mjs";
|
|
60
|
+
import { default as Dt } from "./icons/caret-up.mjs";
|
|
61
61
|
import { default as At } from "./icons/check.mjs";
|
|
62
62
|
import { default as Ft } from "./icons/chevron-down.mjs";
|
|
63
|
-
import { default as
|
|
64
|
-
import { default as
|
|
63
|
+
import { default as Ht } from "./icons/chevron-left.mjs";
|
|
64
|
+
import { default as Vt } from "./icons/chevron-right.mjs";
|
|
65
65
|
import { default as Ut } from "./icons/chevron-up.mjs";
|
|
66
66
|
import { default as Wt } from "./icons/cog.mjs";
|
|
67
67
|
import { default as jt } from "./icons/copy.mjs";
|
|
@@ -82,21 +82,22 @@ import { default as ca } from "./icons/select.mjs";
|
|
|
82
82
|
import { default as ya } from "./icons/share.mjs";
|
|
83
83
|
import { default as ka } from "./icons/sparkle.mjs";
|
|
84
84
|
import { default as Ta } from "./icons/test.mjs";
|
|
85
|
-
import { default as
|
|
86
|
-
import { default as
|
|
87
|
-
import { default as
|
|
85
|
+
import { default as Ia } from "./icons/times.mjs";
|
|
86
|
+
import { default as wa } from "./icons/trash.mjs";
|
|
87
|
+
import { default as Da } from "./icons/trend-up.mjs";
|
|
88
88
|
import { default as Aa } from "./icons/chrome-browser-logo.mjs";
|
|
89
89
|
import { default as Fa } from "./icons/edge-browser-logo.mjs";
|
|
90
|
-
import { default as
|
|
90
|
+
import { default as Ha, useFetcher as Ra, useJsonFetch as Va, useJsonFetcher as Ka } from "./hooks/use-fetch.mjs";
|
|
91
91
|
import { default as Na } from "./hooks/use-is-document-focused.mjs";
|
|
92
|
-
import {
|
|
93
|
-
import { default as
|
|
94
|
-
import { default as
|
|
95
|
-
import { default as
|
|
96
|
-
import { default as
|
|
97
|
-
import { default as
|
|
98
|
-
import { default as
|
|
99
|
-
import { default as
|
|
92
|
+
import { useHasBeenInView as Ja, default as ja } from "./hooks/use-is-in-view.mjs";
|
|
93
|
+
import { default as Oa } from "./hooks/use-media-query.mjs";
|
|
94
|
+
import { default as qa } from "./hooks/use-synchronized-value.mjs";
|
|
95
|
+
import { default as Ya } from "./hooks/use-throttled.mjs";
|
|
96
|
+
import { default as _a } from "./utilities/clamp.mjs";
|
|
97
|
+
import { default as er } from "./utilities/copy-to-clipboard.mjs";
|
|
98
|
+
import { default as tr } from "./utilities/generate-random-id.mjs";
|
|
99
|
+
import { default as rr } from "./utilities/scale.mjs";
|
|
100
|
+
import { default as sr } from "./utilities/search.mjs";
|
|
100
101
|
export {
|
|
101
102
|
mt as AnchorDownSvg,
|
|
102
103
|
Fo as AnchorHeading,
|
|
@@ -111,21 +112,21 @@ export {
|
|
|
111
112
|
C as Box,
|
|
112
113
|
L as Button,
|
|
113
114
|
T as ButtonLoader,
|
|
114
|
-
|
|
115
|
+
M as ButtonTooltip,
|
|
115
116
|
F as Card,
|
|
116
117
|
Tt as CaretDownSvg,
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
It as CaretLeftSvg,
|
|
119
|
+
wt as CaretRightSvg,
|
|
120
|
+
Dt as CaretUpSvg,
|
|
120
121
|
At as CheckSvg,
|
|
121
122
|
Ft as ChevronDownSvg,
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
Ht as ChevronLeftSvg,
|
|
124
|
+
Vt as ChevronRightSvg,
|
|
124
125
|
Ut as ChevronUpSvg,
|
|
125
126
|
Aa as ChromeBrowserLogoSvg,
|
|
126
|
-
|
|
127
|
+
H as ClickRipples,
|
|
127
128
|
Wt as CogSvg,
|
|
128
|
-
|
|
129
|
+
V as Collapsible,
|
|
129
130
|
U as Combobox,
|
|
130
131
|
J as CopyIconButton,
|
|
131
132
|
jt as CopySvg,
|
|
@@ -148,8 +149,8 @@ export {
|
|
|
148
149
|
le as Gauge,
|
|
149
150
|
de as GjensidigeLogo,
|
|
150
151
|
ne as Header,
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
Ho as Heading,
|
|
153
|
+
Ro as Hero,
|
|
153
154
|
xe as HoverGradient,
|
|
154
155
|
ut as Icon,
|
|
155
156
|
Se as IconButton,
|
|
@@ -160,28 +161,28 @@ export {
|
|
|
160
161
|
ua as KakaduGuideGlyphSvg,
|
|
161
162
|
Te as KakaduGuideIcon,
|
|
162
163
|
pa as KakaduGuideIconSvg,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
Ie as KakaduGuideLogo,
|
|
165
|
+
Pe as KakaduGuideLogoSvg,
|
|
166
|
+
De as KakaduIndexLogo,
|
|
166
167
|
Fe as KakaduLogo,
|
|
167
|
-
|
|
168
|
+
Vo as Label,
|
|
168
169
|
ma as MenuSvg,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
170
|
+
He as Modal,
|
|
171
|
+
Re as ModalActions,
|
|
172
|
+
Ve as ModalContent,
|
|
173
|
+
Ke as ModalHeading,
|
|
173
174
|
Je as MovingGradients,
|
|
174
175
|
ze as MovingStars,
|
|
175
176
|
Qe as Notice,
|
|
176
177
|
Ze as Notification,
|
|
177
178
|
_e as NotificationProvider,
|
|
178
179
|
ia as PackageSvg,
|
|
179
|
-
|
|
180
|
+
Ko as Paragraph,
|
|
180
181
|
Sa as PlusSvg,
|
|
181
182
|
fo as Popover,
|
|
182
183
|
so as PopoverContainer,
|
|
183
184
|
oo as PopoverMenu,
|
|
184
|
-
|
|
185
|
+
Po as RevealSpinner,
|
|
185
186
|
no as Revealer,
|
|
186
187
|
io as Select,
|
|
187
188
|
ca as SelectSvg,
|
|
@@ -194,29 +195,29 @@ export {
|
|
|
194
195
|
Uo as Span,
|
|
195
196
|
bo as Sparebank1Logo,
|
|
196
197
|
ka as SparkleSvg,
|
|
197
|
-
|
|
198
|
-
|
|
198
|
+
wo as Spinner,
|
|
199
|
+
Do as StoLogo,
|
|
199
200
|
Ao as StorebrandLogo,
|
|
200
201
|
Ta as TestSvg,
|
|
201
202
|
No as Text,
|
|
202
203
|
Oo as TextButton,
|
|
203
204
|
Xo as ThemeSetter,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
Ia as TimesSvg,
|
|
206
|
+
wa as TrashSvg,
|
|
207
|
+
Da as TrendUpSvg,
|
|
207
208
|
at as Veil,
|
|
208
209
|
ho as VerticalSeparator,
|
|
209
210
|
ft as Wrapper,
|
|
210
211
|
i as ariaTextStyles,
|
|
211
212
|
b as buttonDangerStyles,
|
|
212
213
|
a as buttonResetStyles,
|
|
213
|
-
|
|
214
|
-
|
|
214
|
+
I as buttonSecondaryStyles,
|
|
215
|
+
P as buttonSuccessStyles,
|
|
215
216
|
A as buttonTooltipPositions,
|
|
216
|
-
|
|
217
|
+
w as buttonVariants,
|
|
217
218
|
B as buttonWarningStyles,
|
|
218
|
-
|
|
219
|
-
|
|
219
|
+
_a as clamp,
|
|
220
|
+
er as copyToClipboard,
|
|
220
221
|
to as dangerPopoverMenuItemStyles,
|
|
221
222
|
r as darkBackgroundColor,
|
|
222
223
|
v as defaultAtomElementType,
|
|
@@ -228,7 +229,7 @@ export {
|
|
|
228
229
|
s as font,
|
|
229
230
|
re as footerSectionLinks,
|
|
230
231
|
fe as footerSections,
|
|
231
|
-
|
|
232
|
+
tr as generateRandomId,
|
|
232
233
|
N as getComboboxOptionString,
|
|
233
234
|
Lo as getDeterministicSkeletonWidth,
|
|
234
235
|
Yo as getThemePreference,
|
|
@@ -236,7 +237,7 @@ export {
|
|
|
236
237
|
dt as iconShadowStyles,
|
|
237
238
|
pt as iconTypes,
|
|
238
239
|
ke as inputStyles,
|
|
239
|
-
|
|
240
|
+
we as kakaduGuideLogoVariants,
|
|
240
241
|
l as lightBackgroundColor,
|
|
241
242
|
u as nonInteractiveEffectStyles,
|
|
242
243
|
ie as normalBlendStyles,
|
|
@@ -244,8 +245,8 @@ export {
|
|
|
244
245
|
Xe as notificationTypes,
|
|
245
246
|
d as overflowProtectionStyles,
|
|
246
247
|
p as overlayEffectStyles,
|
|
247
|
-
|
|
248
|
-
|
|
248
|
+
rr as scale,
|
|
249
|
+
sr as search,
|
|
249
250
|
Zo as setThemePreference,
|
|
250
251
|
Jo as spanStyles,
|
|
251
252
|
Qo as textButtonVariants,
|
|
@@ -253,22 +254,24 @@ export {
|
|
|
253
254
|
n as theme,
|
|
254
255
|
_o as themePreferences,
|
|
255
256
|
$e as useCreateNotification,
|
|
256
|
-
|
|
257
|
-
|
|
257
|
+
Ha as useFetch,
|
|
258
|
+
Ra as useFetcher,
|
|
259
|
+
Ja as useHasBeenInView,
|
|
258
260
|
$o as useIsDarkMode,
|
|
259
261
|
Na as useIsDocumentFocused,
|
|
262
|
+
ja as useIsInView,
|
|
260
263
|
et as useIsLightMode,
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
+
Va as useJsonFetch,
|
|
265
|
+
Ka as useJsonFetcher,
|
|
266
|
+
Oa as useMediaQuery,
|
|
264
267
|
Ue as useModal,
|
|
265
268
|
Ne as useModalContext,
|
|
266
269
|
lo as usePopover,
|
|
267
270
|
uo as usePopoverContext,
|
|
268
271
|
ao as usePopoverMenu,
|
|
269
272
|
mo as useRevealer,
|
|
270
|
-
|
|
273
|
+
qa as useSynchronizedValue,
|
|
271
274
|
ot as useTheme,
|
|
272
|
-
|
|
275
|
+
Ya as useThrottled,
|
|
273
276
|
st as wrapperWidths
|
|
274
277
|
};
|