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