@arbeidstilsynet/design-react 0.0.4 → 0.0.5
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/components/index.d.ts +1 -0
- package/dist/components/temp-example/index.d.ts +5 -0
- package/dist/index.cjs +427 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +422 -0
- package/dist/index.js.map +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './temp-example';
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,427 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const designsystemetReact = require("@digdir/designsystemet-react");
|
|
4
|
+
const require$$0 = require("react");
|
|
5
|
+
var jsxRuntime = { exports: {} };
|
|
6
|
+
var reactJsxRuntime_production = {};
|
|
7
|
+
/**
|
|
8
|
+
* @license React
|
|
9
|
+
* react-jsx-runtime.production.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
var hasRequiredReactJsxRuntime_production;
|
|
17
|
+
function requireReactJsxRuntime_production() {
|
|
18
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
19
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
20
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
21
|
+
function jsxProd(type, config, maybeKey) {
|
|
22
|
+
var key = null;
|
|
23
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
24
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
25
|
+
if ("key" in config) {
|
|
26
|
+
maybeKey = {};
|
|
27
|
+
for (var propName in config)
|
|
28
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
29
|
+
} else maybeKey = config;
|
|
30
|
+
config = maybeKey.ref;
|
|
31
|
+
return {
|
|
32
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
33
|
+
type,
|
|
34
|
+
key,
|
|
35
|
+
ref: void 0 !== config ? config : null,
|
|
36
|
+
props: maybeKey
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
40
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
41
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
42
|
+
return reactJsxRuntime_production;
|
|
43
|
+
}
|
|
44
|
+
var reactJsxRuntime_development = {};
|
|
45
|
+
/**
|
|
46
|
+
* @license React
|
|
47
|
+
* react-jsx-runtime.development.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/
|
|
54
|
+
var hasRequiredReactJsxRuntime_development;
|
|
55
|
+
function requireReactJsxRuntime_development() {
|
|
56
|
+
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
57
|
+
hasRequiredReactJsxRuntime_development = 1;
|
|
58
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
59
|
+
function getComponentNameFromType(type) {
|
|
60
|
+
if (null == type) return null;
|
|
61
|
+
if ("function" === typeof type)
|
|
62
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
63
|
+
if ("string" === typeof type) return type;
|
|
64
|
+
switch (type) {
|
|
65
|
+
case REACT_FRAGMENT_TYPE:
|
|
66
|
+
return "Fragment";
|
|
67
|
+
case REACT_PROFILER_TYPE:
|
|
68
|
+
return "Profiler";
|
|
69
|
+
case REACT_STRICT_MODE_TYPE:
|
|
70
|
+
return "StrictMode";
|
|
71
|
+
case REACT_SUSPENSE_TYPE:
|
|
72
|
+
return "Suspense";
|
|
73
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
74
|
+
return "SuspenseList";
|
|
75
|
+
case REACT_ACTIVITY_TYPE:
|
|
76
|
+
return "Activity";
|
|
77
|
+
}
|
|
78
|
+
if ("object" === typeof type)
|
|
79
|
+
switch ("number" === typeof type.tag && console.error(
|
|
80
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
81
|
+
), type.$$typeof) {
|
|
82
|
+
case REACT_PORTAL_TYPE:
|
|
83
|
+
return "Portal";
|
|
84
|
+
case REACT_CONTEXT_TYPE:
|
|
85
|
+
return (type.displayName || "Context") + ".Provider";
|
|
86
|
+
case REACT_CONSUMER_TYPE:
|
|
87
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
88
|
+
case REACT_FORWARD_REF_TYPE:
|
|
89
|
+
var innerType = type.render;
|
|
90
|
+
type = type.displayName;
|
|
91
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
92
|
+
return type;
|
|
93
|
+
case REACT_MEMO_TYPE:
|
|
94
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
95
|
+
case REACT_LAZY_TYPE:
|
|
96
|
+
innerType = type._payload;
|
|
97
|
+
type = type._init;
|
|
98
|
+
try {
|
|
99
|
+
return getComponentNameFromType(type(innerType));
|
|
100
|
+
} catch (x) {
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return null;
|
|
104
|
+
}
|
|
105
|
+
function testStringCoercion(value) {
|
|
106
|
+
return "" + value;
|
|
107
|
+
}
|
|
108
|
+
function checkKeyStringCoercion(value) {
|
|
109
|
+
try {
|
|
110
|
+
testStringCoercion(value);
|
|
111
|
+
var JSCompiler_inline_result = false;
|
|
112
|
+
} catch (e) {
|
|
113
|
+
JSCompiler_inline_result = true;
|
|
114
|
+
}
|
|
115
|
+
if (JSCompiler_inline_result) {
|
|
116
|
+
JSCompiler_inline_result = console;
|
|
117
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
118
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
119
|
+
JSCompiler_temp_const.call(
|
|
120
|
+
JSCompiler_inline_result,
|
|
121
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
122
|
+
JSCompiler_inline_result$jscomp$0
|
|
123
|
+
);
|
|
124
|
+
return testStringCoercion(value);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function getTaskName(type) {
|
|
128
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
129
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
130
|
+
return "<...>";
|
|
131
|
+
try {
|
|
132
|
+
var name = getComponentNameFromType(type);
|
|
133
|
+
return name ? "<" + name + ">" : "<...>";
|
|
134
|
+
} catch (x) {
|
|
135
|
+
return "<...>";
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function getOwner() {
|
|
139
|
+
var dispatcher = ReactSharedInternals.A;
|
|
140
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
141
|
+
}
|
|
142
|
+
function UnknownOwner() {
|
|
143
|
+
return Error("react-stack-top-frame");
|
|
144
|
+
}
|
|
145
|
+
function hasValidKey(config) {
|
|
146
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
147
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
148
|
+
if (getter && getter.isReactWarning) return false;
|
|
149
|
+
}
|
|
150
|
+
return void 0 !== config.key;
|
|
151
|
+
}
|
|
152
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
153
|
+
function warnAboutAccessingKey() {
|
|
154
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
155
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
156
|
+
displayName
|
|
157
|
+
));
|
|
158
|
+
}
|
|
159
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
160
|
+
Object.defineProperty(props, "key", {
|
|
161
|
+
get: warnAboutAccessingKey,
|
|
162
|
+
configurable: true
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
166
|
+
var componentName = getComponentNameFromType(this.type);
|
|
167
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
168
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
169
|
+
));
|
|
170
|
+
componentName = this.props.ref;
|
|
171
|
+
return void 0 !== componentName ? componentName : null;
|
|
172
|
+
}
|
|
173
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
174
|
+
self = props.ref;
|
|
175
|
+
type = {
|
|
176
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
177
|
+
type,
|
|
178
|
+
key,
|
|
179
|
+
props,
|
|
180
|
+
_owner: owner
|
|
181
|
+
};
|
|
182
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
183
|
+
enumerable: false,
|
|
184
|
+
get: elementRefGetterWithDeprecationWarning
|
|
185
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
186
|
+
type._store = {};
|
|
187
|
+
Object.defineProperty(type._store, "validated", {
|
|
188
|
+
configurable: false,
|
|
189
|
+
enumerable: false,
|
|
190
|
+
writable: true,
|
|
191
|
+
value: 0
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
194
|
+
configurable: false,
|
|
195
|
+
enumerable: false,
|
|
196
|
+
writable: true,
|
|
197
|
+
value: null
|
|
198
|
+
});
|
|
199
|
+
Object.defineProperty(type, "_debugStack", {
|
|
200
|
+
configurable: false,
|
|
201
|
+
enumerable: false,
|
|
202
|
+
writable: true,
|
|
203
|
+
value: debugStack
|
|
204
|
+
});
|
|
205
|
+
Object.defineProperty(type, "_debugTask", {
|
|
206
|
+
configurable: false,
|
|
207
|
+
enumerable: false,
|
|
208
|
+
writable: true,
|
|
209
|
+
value: debugTask
|
|
210
|
+
});
|
|
211
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
212
|
+
return type;
|
|
213
|
+
}
|
|
214
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
215
|
+
var children = config.children;
|
|
216
|
+
if (void 0 !== children)
|
|
217
|
+
if (isStaticChildren)
|
|
218
|
+
if (isArrayImpl(children)) {
|
|
219
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
220
|
+
validateChildKeys(children[isStaticChildren]);
|
|
221
|
+
Object.freeze && Object.freeze(children);
|
|
222
|
+
} else
|
|
223
|
+
console.error(
|
|
224
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
225
|
+
);
|
|
226
|
+
else validateChildKeys(children);
|
|
227
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
228
|
+
children = getComponentNameFromType(type);
|
|
229
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
230
|
+
return "key" !== k;
|
|
231
|
+
});
|
|
232
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
233
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
234
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
235
|
+
isStaticChildren,
|
|
236
|
+
children,
|
|
237
|
+
keys,
|
|
238
|
+
children
|
|
239
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
240
|
+
}
|
|
241
|
+
children = null;
|
|
242
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
243
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
244
|
+
if ("key" in config) {
|
|
245
|
+
maybeKey = {};
|
|
246
|
+
for (var propName in config)
|
|
247
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
248
|
+
} else maybeKey = config;
|
|
249
|
+
children && defineKeyPropWarningGetter(
|
|
250
|
+
maybeKey,
|
|
251
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
252
|
+
);
|
|
253
|
+
return ReactElement(
|
|
254
|
+
type,
|
|
255
|
+
children,
|
|
256
|
+
self,
|
|
257
|
+
source,
|
|
258
|
+
getOwner(),
|
|
259
|
+
maybeKey,
|
|
260
|
+
debugStack,
|
|
261
|
+
debugTask
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
function validateChildKeys(node) {
|
|
265
|
+
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
266
|
+
}
|
|
267
|
+
var React = require$$0, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
268
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
269
|
+
return null;
|
|
270
|
+
};
|
|
271
|
+
React = {
|
|
272
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
273
|
+
return callStackForError();
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
var specialPropKeyWarningShown;
|
|
277
|
+
var didWarnAboutElementRef = {};
|
|
278
|
+
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
279
|
+
React,
|
|
280
|
+
UnknownOwner
|
|
281
|
+
)();
|
|
282
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
283
|
+
var didWarnAboutKeySpread = {};
|
|
284
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
285
|
+
reactJsxRuntime_development.jsx = function(type, config, maybeKey, source, self) {
|
|
286
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
287
|
+
return jsxDEVImpl(
|
|
288
|
+
type,
|
|
289
|
+
config,
|
|
290
|
+
maybeKey,
|
|
291
|
+
false,
|
|
292
|
+
source,
|
|
293
|
+
self,
|
|
294
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
295
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
296
|
+
);
|
|
297
|
+
};
|
|
298
|
+
reactJsxRuntime_development.jsxs = function(type, config, maybeKey, source, self) {
|
|
299
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
300
|
+
return jsxDEVImpl(
|
|
301
|
+
type,
|
|
302
|
+
config,
|
|
303
|
+
maybeKey,
|
|
304
|
+
true,
|
|
305
|
+
source,
|
|
306
|
+
self,
|
|
307
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
308
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
309
|
+
);
|
|
310
|
+
};
|
|
311
|
+
}();
|
|
312
|
+
return reactJsxRuntime_development;
|
|
313
|
+
}
|
|
314
|
+
var hasRequiredJsxRuntime;
|
|
315
|
+
function requireJsxRuntime() {
|
|
316
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
317
|
+
hasRequiredJsxRuntime = 1;
|
|
318
|
+
if (process.env.NODE_ENV === "production") {
|
|
319
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
320
|
+
} else {
|
|
321
|
+
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
322
|
+
}
|
|
323
|
+
return jsxRuntime.exports;
|
|
324
|
+
}
|
|
325
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
326
|
+
var compilerRuntime = { exports: {} };
|
|
327
|
+
var reactCompilerRuntime_production = {};
|
|
328
|
+
/**
|
|
329
|
+
* @license React
|
|
330
|
+
* react-compiler-runtime.production.js
|
|
331
|
+
*
|
|
332
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
333
|
+
*
|
|
334
|
+
* This source code is licensed under the MIT license found in the
|
|
335
|
+
* LICENSE file in the root directory of this source tree.
|
|
336
|
+
*/
|
|
337
|
+
var hasRequiredReactCompilerRuntime_production;
|
|
338
|
+
function requireReactCompilerRuntime_production() {
|
|
339
|
+
if (hasRequiredReactCompilerRuntime_production) return reactCompilerRuntime_production;
|
|
340
|
+
hasRequiredReactCompilerRuntime_production = 1;
|
|
341
|
+
var ReactSharedInternals = require$$0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
342
|
+
reactCompilerRuntime_production.c = function(size) {
|
|
343
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
344
|
+
};
|
|
345
|
+
return reactCompilerRuntime_production;
|
|
346
|
+
}
|
|
347
|
+
var reactCompilerRuntime_development = {};
|
|
348
|
+
/**
|
|
349
|
+
* @license React
|
|
350
|
+
* react-compiler-runtime.development.js
|
|
351
|
+
*
|
|
352
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
353
|
+
*
|
|
354
|
+
* This source code is licensed under the MIT license found in the
|
|
355
|
+
* LICENSE file in the root directory of this source tree.
|
|
356
|
+
*/
|
|
357
|
+
var hasRequiredReactCompilerRuntime_development;
|
|
358
|
+
function requireReactCompilerRuntime_development() {
|
|
359
|
+
if (hasRequiredReactCompilerRuntime_development) return reactCompilerRuntime_development;
|
|
360
|
+
hasRequiredReactCompilerRuntime_development = 1;
|
|
361
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
362
|
+
var ReactSharedInternals = require$$0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
363
|
+
reactCompilerRuntime_development.c = function(size) {
|
|
364
|
+
var dispatcher = ReactSharedInternals.H;
|
|
365
|
+
null === dispatcher && console.error(
|
|
366
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
367
|
+
);
|
|
368
|
+
return dispatcher.useMemoCache(size);
|
|
369
|
+
};
|
|
370
|
+
}();
|
|
371
|
+
return reactCompilerRuntime_development;
|
|
372
|
+
}
|
|
373
|
+
var hasRequiredCompilerRuntime;
|
|
374
|
+
function requireCompilerRuntime() {
|
|
375
|
+
if (hasRequiredCompilerRuntime) return compilerRuntime.exports;
|
|
376
|
+
hasRequiredCompilerRuntime = 1;
|
|
377
|
+
if (process.env.NODE_ENV === "production") {
|
|
378
|
+
compilerRuntime.exports = requireReactCompilerRuntime_production();
|
|
379
|
+
} else {
|
|
380
|
+
compilerRuntime.exports = requireReactCompilerRuntime_development();
|
|
381
|
+
}
|
|
382
|
+
return compilerRuntime.exports;
|
|
383
|
+
}
|
|
384
|
+
var compilerRuntimeExports = requireCompilerRuntime();
|
|
385
|
+
function TempExample(t0) {
|
|
386
|
+
const $ = compilerRuntimeExports.c(4);
|
|
387
|
+
const {
|
|
388
|
+
onClick
|
|
389
|
+
} = t0;
|
|
390
|
+
let t1;
|
|
391
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
392
|
+
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Card.Block, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Heading, { children: "Tittel" }) });
|
|
393
|
+
$[0] = t1;
|
|
394
|
+
} else {
|
|
395
|
+
t1 = $[0];
|
|
396
|
+
}
|
|
397
|
+
let t2;
|
|
398
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
399
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Details.Summary, { children: "Oppsummering" });
|
|
400
|
+
$[1] = t2;
|
|
401
|
+
} else {
|
|
402
|
+
t2 = $[1];
|
|
403
|
+
}
|
|
404
|
+
let t3;
|
|
405
|
+
if ($[2] !== onClick) {
|
|
406
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Card, { children: [
|
|
407
|
+
t1,
|
|
408
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Card.Block, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(designsystemetReact.Details, { children: [
|
|
409
|
+
t2,
|
|
410
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Details.Content, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(designsystemetReact.Button, { variant: "primary", onClick, children: "Klikk meg" }) })
|
|
411
|
+
] }) })
|
|
412
|
+
] });
|
|
413
|
+
$[2] = onClick;
|
|
414
|
+
$[3] = t3;
|
|
415
|
+
} else {
|
|
416
|
+
t3 = $[3];
|
|
417
|
+
}
|
|
418
|
+
return t3;
|
|
419
|
+
}
|
|
420
|
+
exports.TempExample = TempExample;
|
|
421
|
+
Object.keys(designsystemetReact).forEach((k) => {
|
|
422
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
423
|
+
enumerable: true,
|
|
424
|
+
get: () => designsystemetReact[k]
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-compiler-runtime.production.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-compiler-runtime.development.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/compiler-runtime.js","../src/components/temp-example/index.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n \"react-stack-bottom-frame\": function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React[\"react-stack-bottom-frame\"].bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n","import { Button, Card, Details, Heading } from \"@digdir/designsystemet-react\";\n\ninterface TempExampleProps {\n onClick: () => void | Promise<void>;\n}\n\nexport function TempExample({ onClick }: Readonly<TempExampleProps>) {\n return (\n <Card>\n <Card.Block>\n <Heading>Tittel</Heading>\n </Card.Block>\n <Card.Block>\n <Details>\n <Details.Summary>Oppsummering</Details.Summary>\n <Details.Content>\n <Button variant=\"primary\" onClick={onClick}>\n Klikk meg\n </Button>\n </Details.Content>\n </Details>\n </Card.Block>\n </Card>\n );\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1","compilerRuntimeModule","TempExample","t0","$","_c","onClick","t1","Symbol","for","Card","jsx","Heading","t2","Details","t3","Button"],"mappings":";;;;;;;;;;;;;;;;;;;AAWA,MAAI,qBAAqB,OAAO,IAAI,4BAA4B,GAC9D,sBAAsB,OAAO,IAAI,gBAAgB;AACnD,WAAS,QAAQ,MAAM,QAAQ,UAAU;AACvC,QAAI,MAAM;AACV,eAAW,aAAa,MAAM,KAAK;AACnC,eAAW,OAAO,QAAQ,MAAM,KAAK,OAAO;AAC5C,QAAI,SAAS,QAAQ;AACnB,iBAAW,CAAE;AACb,eAAS,YAAY;AACnB,kBAAU,aAAa,SAAS,QAAQ,IAAI,OAAO,QAAQ;AAAA,IAC9D,MAAM,YAAW;AAClB,aAAS,SAAS;AAClB,WAAO;AAAA,MACL,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,KAAK,WAAW,SAAS,SAAS;AAAA,MAClC,OAAO;AAAA,IACR;AAAA,EACH;AACA,6BAAA,WAAmB;AACnB,6BAAA,MAAc;AACd,6BAAA,OAAe;;;;;;;;;;;;;;;;;ACtBf,mBAAiB,QAAQ,IAAI,YAC1B,WAAY;AACX,aAAS,yBAAyB,MAAM;AACtC,UAAI,QAAQ,KAAM,QAAO;AACzB,UAAI,eAAe,OAAO;AACxB,eAAO,KAAK,aAAa,yBACrB,OACA,KAAK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AAAG,oBAAA,QAAA,SAAA,EAAiB,UAAY,gBAAA;AAAkBV,WAAAS;AAAAA,EAAAA,OAAA;AAAAA,SAAAT,EAAA,CAAA;AAAA,EAAA;AAAAW,MAAAA;AAAAX,MAAAA,SAAAE,SAAA;AANrDS,gDAACL,0BACCH,EAAAA,UAAAA;AAAAA,MAAAA;AAAAA,MAIEI,kCAAA,IAAAD,oBAAA,KAAA,OAAA,EAAA,iDAACI,oBAAAA,SACCD,EAAAA,UAAAA;AAAAA,QAAAA;AAAAA,QACAF,kCAAAA,IACEG,oBAAAA,QAAA,SAAA,EAAA,UAAAH,kCAAAA,IAACK,oBAAAA,UAAe,SAAA,WAAmBV,SAAS,UAAA,YAE5C,CAAA,EACF,CAAA;AAAA,MAAA,EAAA,CACF,EACF,CAAA;AAAA,IAAA,GACF;AAAOF,WAAAE;AAAAF,WAAAW;AAAAA,EAAAA,OAAA;AAAAA,SAAAX,EAAA,CAAA;AAAA,EAAA;AAdPW,SAAAA;AAcO;;;;;;;;","x_google_ignoreList":[0,1,2,3,4,5]}
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,422 @@
|
|
|
1
|
+
import { Card, Heading, Details, Button } from "@digdir/designsystemet-react";
|
|
2
|
+
export * from "@digdir/designsystemet-react";
|
|
3
|
+
import require$$0 from "react";
|
|
4
|
+
var jsxRuntime = { exports: {} };
|
|
5
|
+
var reactJsxRuntime_production = {};
|
|
6
|
+
/**
|
|
7
|
+
* @license React
|
|
8
|
+
* react-jsx-runtime.production.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/
|
|
15
|
+
var hasRequiredReactJsxRuntime_production;
|
|
16
|
+
function requireReactJsxRuntime_production() {
|
|
17
|
+
if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
|
|
18
|
+
hasRequiredReactJsxRuntime_production = 1;
|
|
19
|
+
var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
20
|
+
function jsxProd(type, config, maybeKey) {
|
|
21
|
+
var key = null;
|
|
22
|
+
void 0 !== maybeKey && (key = "" + maybeKey);
|
|
23
|
+
void 0 !== config.key && (key = "" + config.key);
|
|
24
|
+
if ("key" in config) {
|
|
25
|
+
maybeKey = {};
|
|
26
|
+
for (var propName in config)
|
|
27
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
28
|
+
} else maybeKey = config;
|
|
29
|
+
config = maybeKey.ref;
|
|
30
|
+
return {
|
|
31
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
32
|
+
type,
|
|
33
|
+
key,
|
|
34
|
+
ref: void 0 !== config ? config : null,
|
|
35
|
+
props: maybeKey
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
|
|
39
|
+
reactJsxRuntime_production.jsx = jsxProd;
|
|
40
|
+
reactJsxRuntime_production.jsxs = jsxProd;
|
|
41
|
+
return reactJsxRuntime_production;
|
|
42
|
+
}
|
|
43
|
+
var reactJsxRuntime_development = {};
|
|
44
|
+
/**
|
|
45
|
+
* @license React
|
|
46
|
+
* react-jsx-runtime.development.js
|
|
47
|
+
*
|
|
48
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
49
|
+
*
|
|
50
|
+
* This source code is licensed under the MIT license found in the
|
|
51
|
+
* LICENSE file in the root directory of this source tree.
|
|
52
|
+
*/
|
|
53
|
+
var hasRequiredReactJsxRuntime_development;
|
|
54
|
+
function requireReactJsxRuntime_development() {
|
|
55
|
+
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
56
|
+
hasRequiredReactJsxRuntime_development = 1;
|
|
57
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
58
|
+
function getComponentNameFromType(type) {
|
|
59
|
+
if (null == type) return null;
|
|
60
|
+
if ("function" === typeof type)
|
|
61
|
+
return type.$$typeof === REACT_CLIENT_REFERENCE ? null : type.displayName || type.name || null;
|
|
62
|
+
if ("string" === typeof type) return type;
|
|
63
|
+
switch (type) {
|
|
64
|
+
case REACT_FRAGMENT_TYPE:
|
|
65
|
+
return "Fragment";
|
|
66
|
+
case REACT_PROFILER_TYPE:
|
|
67
|
+
return "Profiler";
|
|
68
|
+
case REACT_STRICT_MODE_TYPE:
|
|
69
|
+
return "StrictMode";
|
|
70
|
+
case REACT_SUSPENSE_TYPE:
|
|
71
|
+
return "Suspense";
|
|
72
|
+
case REACT_SUSPENSE_LIST_TYPE:
|
|
73
|
+
return "SuspenseList";
|
|
74
|
+
case REACT_ACTIVITY_TYPE:
|
|
75
|
+
return "Activity";
|
|
76
|
+
}
|
|
77
|
+
if ("object" === typeof type)
|
|
78
|
+
switch ("number" === typeof type.tag && console.error(
|
|
79
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
80
|
+
), type.$$typeof) {
|
|
81
|
+
case REACT_PORTAL_TYPE:
|
|
82
|
+
return "Portal";
|
|
83
|
+
case REACT_CONTEXT_TYPE:
|
|
84
|
+
return (type.displayName || "Context") + ".Provider";
|
|
85
|
+
case REACT_CONSUMER_TYPE:
|
|
86
|
+
return (type._context.displayName || "Context") + ".Consumer";
|
|
87
|
+
case REACT_FORWARD_REF_TYPE:
|
|
88
|
+
var innerType = type.render;
|
|
89
|
+
type = type.displayName;
|
|
90
|
+
type || (type = innerType.displayName || innerType.name || "", type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef");
|
|
91
|
+
return type;
|
|
92
|
+
case REACT_MEMO_TYPE:
|
|
93
|
+
return innerType = type.displayName || null, null !== innerType ? innerType : getComponentNameFromType(type.type) || "Memo";
|
|
94
|
+
case REACT_LAZY_TYPE:
|
|
95
|
+
innerType = type._payload;
|
|
96
|
+
type = type._init;
|
|
97
|
+
try {
|
|
98
|
+
return getComponentNameFromType(type(innerType));
|
|
99
|
+
} catch (x) {
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
return null;
|
|
103
|
+
}
|
|
104
|
+
function testStringCoercion(value) {
|
|
105
|
+
return "" + value;
|
|
106
|
+
}
|
|
107
|
+
function checkKeyStringCoercion(value) {
|
|
108
|
+
try {
|
|
109
|
+
testStringCoercion(value);
|
|
110
|
+
var JSCompiler_inline_result = false;
|
|
111
|
+
} catch (e) {
|
|
112
|
+
JSCompiler_inline_result = true;
|
|
113
|
+
}
|
|
114
|
+
if (JSCompiler_inline_result) {
|
|
115
|
+
JSCompiler_inline_result = console;
|
|
116
|
+
var JSCompiler_temp_const = JSCompiler_inline_result.error;
|
|
117
|
+
var JSCompiler_inline_result$jscomp$0 = "function" === typeof Symbol && Symbol.toStringTag && value[Symbol.toStringTag] || value.constructor.name || "Object";
|
|
118
|
+
JSCompiler_temp_const.call(
|
|
119
|
+
JSCompiler_inline_result,
|
|
120
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
121
|
+
JSCompiler_inline_result$jscomp$0
|
|
122
|
+
);
|
|
123
|
+
return testStringCoercion(value);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
function getTaskName(type) {
|
|
127
|
+
if (type === REACT_FRAGMENT_TYPE) return "<>";
|
|
128
|
+
if ("object" === typeof type && null !== type && type.$$typeof === REACT_LAZY_TYPE)
|
|
129
|
+
return "<...>";
|
|
130
|
+
try {
|
|
131
|
+
var name = getComponentNameFromType(type);
|
|
132
|
+
return name ? "<" + name + ">" : "<...>";
|
|
133
|
+
} catch (x) {
|
|
134
|
+
return "<...>";
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
function getOwner() {
|
|
138
|
+
var dispatcher = ReactSharedInternals.A;
|
|
139
|
+
return null === dispatcher ? null : dispatcher.getOwner();
|
|
140
|
+
}
|
|
141
|
+
function UnknownOwner() {
|
|
142
|
+
return Error("react-stack-top-frame");
|
|
143
|
+
}
|
|
144
|
+
function hasValidKey(config) {
|
|
145
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
146
|
+
var getter = Object.getOwnPropertyDescriptor(config, "key").get;
|
|
147
|
+
if (getter && getter.isReactWarning) return false;
|
|
148
|
+
}
|
|
149
|
+
return void 0 !== config.key;
|
|
150
|
+
}
|
|
151
|
+
function defineKeyPropWarningGetter(props, displayName) {
|
|
152
|
+
function warnAboutAccessingKey() {
|
|
153
|
+
specialPropKeyWarningShown || (specialPropKeyWarningShown = true, console.error(
|
|
154
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
155
|
+
displayName
|
|
156
|
+
));
|
|
157
|
+
}
|
|
158
|
+
warnAboutAccessingKey.isReactWarning = true;
|
|
159
|
+
Object.defineProperty(props, "key", {
|
|
160
|
+
get: warnAboutAccessingKey,
|
|
161
|
+
configurable: true
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function elementRefGetterWithDeprecationWarning() {
|
|
165
|
+
var componentName = getComponentNameFromType(this.type);
|
|
166
|
+
didWarnAboutElementRef[componentName] || (didWarnAboutElementRef[componentName] = true, console.error(
|
|
167
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
168
|
+
));
|
|
169
|
+
componentName = this.props.ref;
|
|
170
|
+
return void 0 !== componentName ? componentName : null;
|
|
171
|
+
}
|
|
172
|
+
function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
|
|
173
|
+
self = props.ref;
|
|
174
|
+
type = {
|
|
175
|
+
$$typeof: REACT_ELEMENT_TYPE,
|
|
176
|
+
type,
|
|
177
|
+
key,
|
|
178
|
+
props,
|
|
179
|
+
_owner: owner
|
|
180
|
+
};
|
|
181
|
+
null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
|
|
182
|
+
enumerable: false,
|
|
183
|
+
get: elementRefGetterWithDeprecationWarning
|
|
184
|
+
}) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
|
|
185
|
+
type._store = {};
|
|
186
|
+
Object.defineProperty(type._store, "validated", {
|
|
187
|
+
configurable: false,
|
|
188
|
+
enumerable: false,
|
|
189
|
+
writable: true,
|
|
190
|
+
value: 0
|
|
191
|
+
});
|
|
192
|
+
Object.defineProperty(type, "_debugInfo", {
|
|
193
|
+
configurable: false,
|
|
194
|
+
enumerable: false,
|
|
195
|
+
writable: true,
|
|
196
|
+
value: null
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(type, "_debugStack", {
|
|
199
|
+
configurable: false,
|
|
200
|
+
enumerable: false,
|
|
201
|
+
writable: true,
|
|
202
|
+
value: debugStack
|
|
203
|
+
});
|
|
204
|
+
Object.defineProperty(type, "_debugTask", {
|
|
205
|
+
configurable: false,
|
|
206
|
+
enumerable: false,
|
|
207
|
+
writable: true,
|
|
208
|
+
value: debugTask
|
|
209
|
+
});
|
|
210
|
+
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
211
|
+
return type;
|
|
212
|
+
}
|
|
213
|
+
function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
|
|
214
|
+
var children = config.children;
|
|
215
|
+
if (void 0 !== children)
|
|
216
|
+
if (isStaticChildren)
|
|
217
|
+
if (isArrayImpl(children)) {
|
|
218
|
+
for (isStaticChildren = 0; isStaticChildren < children.length; isStaticChildren++)
|
|
219
|
+
validateChildKeys(children[isStaticChildren]);
|
|
220
|
+
Object.freeze && Object.freeze(children);
|
|
221
|
+
} else
|
|
222
|
+
console.error(
|
|
223
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
224
|
+
);
|
|
225
|
+
else validateChildKeys(children);
|
|
226
|
+
if (hasOwnProperty.call(config, "key")) {
|
|
227
|
+
children = getComponentNameFromType(type);
|
|
228
|
+
var keys = Object.keys(config).filter(function(k) {
|
|
229
|
+
return "key" !== k;
|
|
230
|
+
});
|
|
231
|
+
isStaticChildren = 0 < keys.length ? "{key: someKey, " + keys.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
232
|
+
didWarnAboutKeySpread[children + isStaticChildren] || (keys = 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
233
|
+
'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
|
|
234
|
+
isStaticChildren,
|
|
235
|
+
children,
|
|
236
|
+
keys,
|
|
237
|
+
children
|
|
238
|
+
), didWarnAboutKeySpread[children + isStaticChildren] = true);
|
|
239
|
+
}
|
|
240
|
+
children = null;
|
|
241
|
+
void 0 !== maybeKey && (checkKeyStringCoercion(maybeKey), children = "" + maybeKey);
|
|
242
|
+
hasValidKey(config) && (checkKeyStringCoercion(config.key), children = "" + config.key);
|
|
243
|
+
if ("key" in config) {
|
|
244
|
+
maybeKey = {};
|
|
245
|
+
for (var propName in config)
|
|
246
|
+
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
247
|
+
} else maybeKey = config;
|
|
248
|
+
children && defineKeyPropWarningGetter(
|
|
249
|
+
maybeKey,
|
|
250
|
+
"function" === typeof type ? type.displayName || type.name || "Unknown" : type
|
|
251
|
+
);
|
|
252
|
+
return ReactElement(
|
|
253
|
+
type,
|
|
254
|
+
children,
|
|
255
|
+
self,
|
|
256
|
+
source,
|
|
257
|
+
getOwner(),
|
|
258
|
+
maybeKey,
|
|
259
|
+
debugStack,
|
|
260
|
+
debugTask
|
|
261
|
+
);
|
|
262
|
+
}
|
|
263
|
+
function validateChildKeys(node) {
|
|
264
|
+
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
265
|
+
}
|
|
266
|
+
var React = require$$0, REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
267
|
+
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
268
|
+
return null;
|
|
269
|
+
};
|
|
270
|
+
React = {
|
|
271
|
+
"react-stack-bottom-frame": function(callStackForError) {
|
|
272
|
+
return callStackForError();
|
|
273
|
+
}
|
|
274
|
+
};
|
|
275
|
+
var specialPropKeyWarningShown;
|
|
276
|
+
var didWarnAboutElementRef = {};
|
|
277
|
+
var unknownOwnerDebugStack = React["react-stack-bottom-frame"].bind(
|
|
278
|
+
React,
|
|
279
|
+
UnknownOwner
|
|
280
|
+
)();
|
|
281
|
+
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
282
|
+
var didWarnAboutKeySpread = {};
|
|
283
|
+
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
284
|
+
reactJsxRuntime_development.jsx = function(type, config, maybeKey, source, self) {
|
|
285
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
286
|
+
return jsxDEVImpl(
|
|
287
|
+
type,
|
|
288
|
+
config,
|
|
289
|
+
maybeKey,
|
|
290
|
+
false,
|
|
291
|
+
source,
|
|
292
|
+
self,
|
|
293
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
294
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
295
|
+
);
|
|
296
|
+
};
|
|
297
|
+
reactJsxRuntime_development.jsxs = function(type, config, maybeKey, source, self) {
|
|
298
|
+
var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
299
|
+
return jsxDEVImpl(
|
|
300
|
+
type,
|
|
301
|
+
config,
|
|
302
|
+
maybeKey,
|
|
303
|
+
true,
|
|
304
|
+
source,
|
|
305
|
+
self,
|
|
306
|
+
trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
|
|
307
|
+
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
308
|
+
);
|
|
309
|
+
};
|
|
310
|
+
}();
|
|
311
|
+
return reactJsxRuntime_development;
|
|
312
|
+
}
|
|
313
|
+
var hasRequiredJsxRuntime;
|
|
314
|
+
function requireJsxRuntime() {
|
|
315
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
316
|
+
hasRequiredJsxRuntime = 1;
|
|
317
|
+
if (process.env.NODE_ENV === "production") {
|
|
318
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
319
|
+
} else {
|
|
320
|
+
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
321
|
+
}
|
|
322
|
+
return jsxRuntime.exports;
|
|
323
|
+
}
|
|
324
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
325
|
+
var compilerRuntime = { exports: {} };
|
|
326
|
+
var reactCompilerRuntime_production = {};
|
|
327
|
+
/**
|
|
328
|
+
* @license React
|
|
329
|
+
* react-compiler-runtime.production.js
|
|
330
|
+
*
|
|
331
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
332
|
+
*
|
|
333
|
+
* This source code is licensed under the MIT license found in the
|
|
334
|
+
* LICENSE file in the root directory of this source tree.
|
|
335
|
+
*/
|
|
336
|
+
var hasRequiredReactCompilerRuntime_production;
|
|
337
|
+
function requireReactCompilerRuntime_production() {
|
|
338
|
+
if (hasRequiredReactCompilerRuntime_production) return reactCompilerRuntime_production;
|
|
339
|
+
hasRequiredReactCompilerRuntime_production = 1;
|
|
340
|
+
var ReactSharedInternals = require$$0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
341
|
+
reactCompilerRuntime_production.c = function(size) {
|
|
342
|
+
return ReactSharedInternals.H.useMemoCache(size);
|
|
343
|
+
};
|
|
344
|
+
return reactCompilerRuntime_production;
|
|
345
|
+
}
|
|
346
|
+
var reactCompilerRuntime_development = {};
|
|
347
|
+
/**
|
|
348
|
+
* @license React
|
|
349
|
+
* react-compiler-runtime.development.js
|
|
350
|
+
*
|
|
351
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
352
|
+
*
|
|
353
|
+
* This source code is licensed under the MIT license found in the
|
|
354
|
+
* LICENSE file in the root directory of this source tree.
|
|
355
|
+
*/
|
|
356
|
+
var hasRequiredReactCompilerRuntime_development;
|
|
357
|
+
function requireReactCompilerRuntime_development() {
|
|
358
|
+
if (hasRequiredReactCompilerRuntime_development) return reactCompilerRuntime_development;
|
|
359
|
+
hasRequiredReactCompilerRuntime_development = 1;
|
|
360
|
+
"production" !== process.env.NODE_ENV && function() {
|
|
361
|
+
var ReactSharedInternals = require$$0.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;
|
|
362
|
+
reactCompilerRuntime_development.c = function(size) {
|
|
363
|
+
var dispatcher = ReactSharedInternals.H;
|
|
364
|
+
null === dispatcher && console.error(
|
|
365
|
+
"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem."
|
|
366
|
+
);
|
|
367
|
+
return dispatcher.useMemoCache(size);
|
|
368
|
+
};
|
|
369
|
+
}();
|
|
370
|
+
return reactCompilerRuntime_development;
|
|
371
|
+
}
|
|
372
|
+
var hasRequiredCompilerRuntime;
|
|
373
|
+
function requireCompilerRuntime() {
|
|
374
|
+
if (hasRequiredCompilerRuntime) return compilerRuntime.exports;
|
|
375
|
+
hasRequiredCompilerRuntime = 1;
|
|
376
|
+
if (process.env.NODE_ENV === "production") {
|
|
377
|
+
compilerRuntime.exports = requireReactCompilerRuntime_production();
|
|
378
|
+
} else {
|
|
379
|
+
compilerRuntime.exports = requireReactCompilerRuntime_development();
|
|
380
|
+
}
|
|
381
|
+
return compilerRuntime.exports;
|
|
382
|
+
}
|
|
383
|
+
var compilerRuntimeExports = requireCompilerRuntime();
|
|
384
|
+
function TempExample(t0) {
|
|
385
|
+
const $ = compilerRuntimeExports.c(4);
|
|
386
|
+
const {
|
|
387
|
+
onClick
|
|
388
|
+
} = t0;
|
|
389
|
+
let t1;
|
|
390
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
391
|
+
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(Card.Block, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Heading, { children: "Tittel" }) });
|
|
392
|
+
$[0] = t1;
|
|
393
|
+
} else {
|
|
394
|
+
t1 = $[0];
|
|
395
|
+
}
|
|
396
|
+
let t2;
|
|
397
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
398
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(Details.Summary, { children: "Oppsummering" });
|
|
399
|
+
$[1] = t2;
|
|
400
|
+
} else {
|
|
401
|
+
t2 = $[1];
|
|
402
|
+
}
|
|
403
|
+
let t3;
|
|
404
|
+
if ($[2] !== onClick) {
|
|
405
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Card, { children: [
|
|
406
|
+
t1,
|
|
407
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Card.Block, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Details, { children: [
|
|
408
|
+
t2,
|
|
409
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Details.Content, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "primary", onClick, children: "Klikk meg" }) })
|
|
410
|
+
] }) })
|
|
411
|
+
] });
|
|
412
|
+
$[2] = onClick;
|
|
413
|
+
$[3] = t3;
|
|
414
|
+
} else {
|
|
415
|
+
t3 = $[3];
|
|
416
|
+
}
|
|
417
|
+
return t3;
|
|
418
|
+
}
|
|
419
|
+
export {
|
|
420
|
+
TempExample
|
|
421
|
+
};
|
|
422
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.production.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-jsx-runtime.development.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-compiler-runtime.production.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/cjs/react-compiler-runtime.development.js","../../../node_modules/.pnpm/react@19.1.0/node_modules/react/compiler-runtime.js","../src/components/temp-example/index.tsx"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n \"react-stack-bottom-frame\": function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React[\"react-stack-bottom-frame\"].bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","/**\n * @license React\n * react-compiler-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\nexports.c = function (size) {\n return ReactSharedInternals.H.useMemoCache(size);\n};\n","/**\n * @license React\n * react-compiler-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n var ReactSharedInternals =\n require(\"react\").__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;\n exports.c = function (size) {\n var dispatcher = ReactSharedInternals.H;\n null === dispatcher &&\n console.error(\n \"Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\\n1. You might have mismatching versions of React and the renderer (such as React DOM)\\n2. You might be breaking the Rules of Hooks\\n3. You might have more than one copy of React in the same app\\nSee https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.\"\n );\n return dispatcher.useMemoCache(size);\n };\n })();\n","/**\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-compiler-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-compiler-runtime.development.js');\n}\n","import { Button, Card, Details, Heading } from \"@digdir/designsystemet-react\";\n\ninterface TempExampleProps {\n onClick: () => void | Promise<void>;\n}\n\nexport function TempExample({ onClick }: Readonly<TempExampleProps>) {\n return (\n <Card>\n <Card.Block>\n <Heading>Tittel</Heading>\n </Card.Block>\n <Card.Block>\n <Details>\n <Details.Summary>Oppsummering</Details.Summary>\n <Details.Content>\n <Button variant=\"primary\" onClick={onClick}>\n Klikk meg\n </Button>\n </Details.Content>\n </Details>\n </Card.Block>\n </Card>\n );\n}\n"],"names":["jsxRuntimeModule","require$$0","require$$1","compilerRuntimeModule","TempExample","t0","$","_c","onClick","t1","Symbol","for","jsx","t2","t3"],"mappings":";;;;;;;;;;;;;;;;;;AAWA,MAAI,qBAAqB,OAAO,IAAI,4BAA4B,GAC9D,sBAAsB,OAAO,IAAI,gBAAgB;AACnD,WAAS,QAAQ,MAAM,QAAQ,UAAU;AACvC,QAAI,MAAM;AACV,eAAW,aAAa,MAAM,KAAK;AACnC,eAAW,OAAO,QAAQ,MAAM,KAAK,OAAO;AAC5C,QAAI,SAAS,QAAQ;AACnB,iBAAW,CAAE;AACb,eAAS,YAAY;AACnB,kBAAU,aAAa,SAAS,QAAQ,IAAI,OAAO,QAAQ;AAAA,IAC9D,MAAM,YAAW;AAClB,aAAS,SAAS;AAClB,WAAO;AAAA,MACL,UAAU;AAAA,MACV;AAAA,MACA;AAAA,MACA,KAAK,WAAW,SAAS,SAAS;AAAA,MAClC,OAAO;AAAA,IACR;AAAA,EACH;AACA,6BAAA,WAAmB;AACnB,6BAAA,MAAc;AACd,6BAAA,OAAe;;;;;;;;;;;;;;;;;ACtBf,mBAAiB,QAAQ,IAAI,YAC1B,WAAY;AACX,aAAS,yBAAyB,MAAM;AACtC,UAAI,QAAQ,KAAM,QAAO;AACzB,UAAI,eAAe,OAAO;AACx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A;AAGTE,SAAAD,kCAAA,IAAA,QAAA,SAAA,EAAiB,UAAY,gBAAA;AAAkBN,WAAAO;AAAAA,EAAAA,OAAA;AAAAA,SAAAP,EAAA,CAAA;AAAA,EAAA;AAAAQ,MAAAA;AAAAR,MAAAA,SAAAE,SAAA;AANrDM,gDAAC,MACCL,EAAAA,UAAAA;AAAAA,MAAAA;AAAAA,MAIEG,kCAAA,IAAA,KAAA,OAAA,EAAA,iDAAC,SACCC,EAAAA,UAAAA;AAAAA,QAAAA;AAAAA,QACAD,kCAAAA,IACE,QAAA,SAAA,EAAA,UAAAA,kCAAAA,IAAC,UAAe,SAAA,WAAmBJ,SAAS,UAAA,YAE5C,CAAA,EACF,CAAA;AAAA,MAAA,EAAA,CACF,EACF,CAAA;AAAA,IAAA,GACF;AAAOF,WAAAE;AAAAF,WAAAQ;AAAAA,EAAAA,OAAA;AAAAA,SAAAR,EAAA,CAAA;AAAA,EAAA;AAdPQ,SAAAA;AAcO;","x_google_ignoreList":[0,1,2,3,4,5]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arbeidstilsynet/design-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "React implementation of Designsystemet",
|
|
5
5
|
"author": "Arbeidstilsynet",
|
|
6
6
|
"repository": {
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"build": "vite build",
|
|
52
52
|
"test": "vitest run",
|
|
53
53
|
"test:coverage": "vitest run --coverage",
|
|
54
|
+
"typecheck": "tsc --noEmit",
|
|
54
55
|
"lint": "echo TODO"
|
|
55
56
|
}
|
|
56
57
|
}
|