@arbeidstilsynet/design-react 0.3.1 → 0.3.3

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/index.cjs CHANGED
@@ -86,7 +86,7 @@ function requireReactJsxRuntime_development() {
86
86
  case REACT_PORTAL_TYPE:
87
87
  return "Portal";
88
88
  case REACT_CONTEXT_TYPE:
89
- return (type.displayName || "Context") + ".Provider";
89
+ return type.displayName || "Context";
90
90
  case REACT_CONSUMER_TYPE:
91
91
  return (type._context.displayName || "Context") + ".Consumer";
92
92
  case REACT_FORWARD_REF_TYPE:
@@ -174,8 +174,8 @@ function requireReactJsxRuntime_development() {
174
174
  componentName = this.props.ref;
175
175
  return void 0 !== componentName ? componentName : null;
176
176
  }
177
- function ReactElement(type, key, self, source, owner, props, debugStack, debugTask) {
178
- self = props.ref;
177
+ function ReactElement(type, key, props, owner, debugStack, debugTask) {
178
+ var refProp = props.ref;
179
179
  type = {
180
180
  $$typeof: REACT_ELEMENT_TYPE,
181
181
  type,
@@ -183,7 +183,7 @@ function requireReactJsxRuntime_development() {
183
183
  props,
184
184
  _owner: owner
185
185
  };
186
- null !== (void 0 !== self ? self : null) ? Object.defineProperty(type, "ref", {
186
+ null !== (void 0 !== refProp ? refProp : null) ? Object.defineProperty(type, "ref", {
187
187
  enumerable: false,
188
188
  get: elementRefGetterWithDeprecationWarning
189
189
  }) : Object.defineProperty(type, "ref", { enumerable: false, value: null });
@@ -215,7 +215,7 @@ function requireReactJsxRuntime_development() {
215
215
  Object.freeze && (Object.freeze(type.props), Object.freeze(type));
216
216
  return type;
217
217
  }
218
- function jsxDEVImpl(type, config, maybeKey, isStaticChildren, source, self, debugStack, debugTask) {
218
+ function jsxDEVImpl(type, config, maybeKey, isStaticChildren, debugStack, debugTask) {
219
219
  var children = config.children;
220
220
  if (void 0 !== children)
221
221
  if (isStaticChildren)
@@ -257,19 +257,19 @@ function requireReactJsxRuntime_development() {
257
257
  return ReactElement(
258
258
  type,
259
259
  children,
260
- self,
261
- source,
262
- getOwner(),
263
260
  maybeKey,
261
+ getOwner(),
264
262
  debugStack,
265
263
  debugTask
266
264
  );
267
265
  }
268
266
  function validateChildKeys(node) {
269
- "object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
267
+ isValidElement(node) ? node._store && (node._store.validated = 1) : "object" === typeof node && null !== node && node.$$typeof === REACT_LAZY_TYPE && ("fulfilled" === node._payload.status ? isValidElement(node._payload.value) && node._payload.value._store && (node._payload.value._store.validated = 1) : node._store && (node._store.validated = 1));
268
+ }
269
+ function isValidElement(object) {
270
+ return "object" === typeof object && null !== object && object.$$typeof === REACT_ELEMENT_TYPE;
270
271
  }
271
- 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");
272
- 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() {
272
+ 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"), 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() {
273
273
  return null;
274
274
  };
275
275
  React = {
@@ -286,28 +286,24 @@ function requireReactJsxRuntime_development() {
286
286
  var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
287
287
  var didWarnAboutKeySpread = {};
288
288
  reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
289
- reactJsxRuntime_development.jsx = function(type, config, maybeKey, source, self) {
289
+ reactJsxRuntime_development.jsx = function(type, config, maybeKey) {
290
290
  var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
291
291
  return jsxDEVImpl(
292
292
  type,
293
293
  config,
294
294
  maybeKey,
295
295
  false,
296
- source,
297
- self,
298
296
  trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
299
297
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
300
298
  );
301
299
  };
302
- reactJsxRuntime_development.jsxs = function(type, config, maybeKey, source, self) {
300
+ reactJsxRuntime_development.jsxs = function(type, config, maybeKey) {
303
301
  var trackActualOwner = 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
304
302
  return jsxDEVImpl(
305
303
  type,
306
304
  config,
307
305
  maybeKey,
308
306
  true,
309
- source,
310
- self,
311
307
  trackActualOwner ? Error("react-stack-top-frame") : unknownOwnerDebugStack,
312
308
  trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
313
309
  );