@mattilsynet/design 0.2.11 → 0.2.13

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/mtds/styles.json CHANGED
@@ -1,36 +1,36 @@
1
1
  {
2
- "validation": "_validation_f0nxn_1 _ds-validation-message_1yo2l_1",
3
- "tag": "_tag_f0nxn_1 _ds-tag_1yo2l_1",
4
- "tabs": "_tabs_f0nxn_1",
5
- "table": "_table_f0nxn_1 _ds-table_1yo2l_1",
6
- "scrollShadow": "_scrollShadow_f0nxn_1",
7
- "tableChildAdded": "_tableChildAdded_f0nxn_1",
8
- "skeleton": "_skeleton_f0nxn_1 _ds-skeleton_1yo2l_1",
9
- "popover": "_popover_f0nxn_1",
10
- "pagination": "_pagination_f0nxn_1 _ds-pagination_1yo2l_1",
11
- "modal": "_modal_f0nxn_1 _ds-modal_1yo2l_1",
12
- "logo": "_logo_f0nxn_1 _ds-focus_1yo2l_1",
13
- "link": "_link_f0nxn_1",
14
- "grid": "_grid_f0nxn_1",
15
- "flex": "_flex_f0nxn_1",
16
- "box": "_box_f0nxn_1",
17
- "input": "_input_f0nxn_1 _ds-input_1yo2l_1",
18
- "fieldset": "_fieldset_f0nxn_1 _ds-fieldset_1yo2l_1",
19
- "fieldsetValidationAdded": "_fieldsetValidationAdded_f0nxn_1",
20
- "field": "_field_f0nxn_1 _ds-field_1yo2l_1",
21
- "fieldChildAdded": "_fieldChildAdded_f0nxn_1",
22
- "affixes": "_affixes_f0nxn_1 _ds-field-affixes_1yo2l_1",
23
- "count": "_count_f0nxn_1",
24
- "errorsummary": "_errorsummary_f0nxn_1 _ds-error-summary_1yo2l_1",
25
- "details": "_details_f0nxn_1 _ds-details_1yo2l_1",
26
- "chip": "_chip_f0nxn_1 _ds-chip_1yo2l_1",
27
- "card": "_card_f0nxn_1",
28
- "info": "_info_f0nxn_1",
29
- "button": "_button_f0nxn_1 _ds-button_1yo2l_1",
30
- "breadcrumbs": "_breadcrumbs_f0nxn_1 _ds-breadcrumbs_1yo2l_1",
31
- "badge": "_badge_f0nxn_1",
32
- "avatar": "_avatar_f0nxn_1 _ds-avatar_1yo2l_1",
33
- "alert": "_alert_f0nxn_1 _ds-alert_1yo2l_1",
34
- "heading": "_heading_f0nxn_1 _ds-heading_1yo2l_1",
35
- "body": "_body_f0nxn_100"
2
+ "validation": "_validation_1p8e7_1 _ds-validation-message_1yo2l_1",
3
+ "tag": "_tag_1p8e7_1 _ds-tag_1yo2l_1",
4
+ "tabs": "_tabs_1p8e7_1",
5
+ "table": "_table_1p8e7_1 _ds-table_1yo2l_1",
6
+ "scrollShadow": "_scrollShadow_1p8e7_1",
7
+ "tableChildAdded": "_tableChildAdded_1p8e7_1",
8
+ "skeleton": "_skeleton_1p8e7_1 _ds-skeleton_1yo2l_1",
9
+ "popover": "_popover_1p8e7_1",
10
+ "pagination": "_pagination_1p8e7_1 _ds-pagination_1yo2l_1",
11
+ "modal": "_modal_1p8e7_1 _ds-modal_1yo2l_1",
12
+ "logo": "_logo_1p8e7_1 _ds-focus_1yo2l_1",
13
+ "link": "_link_1p8e7_1",
14
+ "grid": "_grid_1p8e7_1",
15
+ "flex": "_flex_1p8e7_1",
16
+ "box": "_box_1p8e7_1",
17
+ "input": "_input_1p8e7_1 _ds-input_1yo2l_1",
18
+ "fieldset": "_fieldset_1p8e7_1 _ds-fieldset_1yo2l_1",
19
+ "fieldsetValidationAdded": "_fieldsetValidationAdded_1p8e7_1",
20
+ "field": "_field_1p8e7_1 _ds-field_1yo2l_1",
21
+ "fieldChildAdded": "_fieldChildAdded_1p8e7_1",
22
+ "affixes": "_affixes_1p8e7_1 _ds-field-affixes_1yo2l_1",
23
+ "count": "_count_1p8e7_1",
24
+ "errorsummary": "_errorsummary_1p8e7_1 _ds-error-summary_1yo2l_1",
25
+ "details": "_details_1p8e7_1 _ds-details_1yo2l_1",
26
+ "chip": "_chip_1p8e7_1 _ds-chip_1yo2l_1",
27
+ "card": "_card_1p8e7_1",
28
+ "info": "_info_1p8e7_1",
29
+ "button": "_button_1p8e7_1 _ds-button_1yo2l_1",
30
+ "breadcrumbs": "_breadcrumbs_1p8e7_1 _ds-breadcrumbs_1yo2l_1",
31
+ "badge": "_badge_1p8e7_1",
32
+ "avatar": "_avatar_1p8e7_1 _ds-avatar_1yo2l_1",
33
+ "alert": "_alert_1p8e7_1 _ds-alert_1yo2l_1",
34
+ "heading": "_heading_1p8e7_1 _ds-heading_1yo2l_1",
35
+ "body": "_body_1p8e7_104"
36
36
  }
@@ -1,26 +1,26 @@
1
- const _ = "_validation_f0nxn_1 _ds-validation-message_1yo2l_1", n = "_tag_f0nxn_1 _ds-tag_1yo2l_1", o = "_tabs_f0nxn_1", d = "_table_f0nxn_1 _ds-table_1yo2l_1", t = "_scrollShadow_f0nxn_1", s = "_tableChildAdded_f0nxn_1", a = "_skeleton_f0nxn_1 _ds-skeleton_1yo2l_1", l = "_popover_f0nxn_1", e = "_pagination_f0nxn_1 _ds-pagination_1yo2l_1", i = "_modal_f0nxn_1 _ds-modal_1yo2l_1", f = "_logo_f0nxn_1 _ds-focus_1yo2l_1", c = "_link_f0nxn_1", r = "_grid_f0nxn_1", x = "_flex_f0nxn_1", b = "_box_f0nxn_1", y = "_input_f0nxn_1 _ds-input_1yo2l_1", g = "_fieldset_f0nxn_1 _ds-fieldset_1yo2l_1", u = "_fieldsetValidationAdded_f0nxn_1", p = "_field_f0nxn_1 _ds-field_1yo2l_1", h = "_fieldChildAdded_f0nxn_1", m = "_affixes_f0nxn_1 _ds-field-affixes_1yo2l_1", v = "_count_f0nxn_1", A = "_errorsummary_f0nxn_1 _ds-error-summary_1yo2l_1", k = "_details_f0nxn_1 _ds-details_1yo2l_1", C = "_chip_f0nxn_1 _ds-chip_1yo2l_1", w = "_card_f0nxn_1", S = "_info_f0nxn_1", V = "_button_f0nxn_1 _ds-button_1yo2l_1", j = "_breadcrumbs_f0nxn_1 _ds-breadcrumbs_1yo2l_1", q = "_badge_f0nxn_1", z = "_avatar_f0nxn_1 _ds-avatar_1yo2l_1", B = "_alert_f0nxn_1 _ds-alert_1yo2l_1", D = "_heading_f0nxn_1 _ds-heading_1yo2l_1", E = "_body_f0nxn_100", F = {
1
+ const _ = "_validation_1p8e7_1 _ds-validation-message_1yo2l_1", e = "_tag_1p8e7_1 _ds-tag_1yo2l_1", o = "_tabs_1p8e7_1", d = "_table_1p8e7_1 _ds-table_1yo2l_1", t = "_scrollShadow_1p8e7_1", s = "_tableChildAdded_1p8e7_1", a = "_skeleton_1p8e7_1 _ds-skeleton_1yo2l_1", l = "_popover_1p8e7_1", n = "_pagination_1p8e7_1 _ds-pagination_1yo2l_1", i = "_modal_1p8e7_1 _ds-modal_1yo2l_1", c = "_logo_1p8e7_1 _ds-focus_1yo2l_1", p = "_link_1p8e7_1", r = "_grid_1p8e7_1", b = "_flex_1p8e7_1", f = "_box_1p8e7_1", y = "_input_1p8e7_1 _ds-input_1yo2l_1", g = "_fieldset_1p8e7_1 _ds-fieldset_1yo2l_1", u = "_fieldsetValidationAdded_1p8e7_1", h = "_field_1p8e7_1 _ds-field_1yo2l_1", m = "_fieldChildAdded_1p8e7_1", v = "_affixes_1p8e7_1 _ds-field-affixes_1yo2l_1", x = "_count_1p8e7_1", A = "_errorsummary_1p8e7_1 _ds-error-summary_1yo2l_1", k = "_details_1p8e7_1 _ds-details_1yo2l_1", C = "_chip_1p8e7_1 _ds-chip_1yo2l_1", w = "_card_1p8e7_1", S = "_info_1p8e7_1", V = "_button_1p8e7_1 _ds-button_1yo2l_1", j = "_breadcrumbs_1p8e7_1 _ds-breadcrumbs_1yo2l_1", q = "_badge_1p8e7_1", z = "_avatar_1p8e7_1 _ds-avatar_1yo2l_1", B = "_alert_1p8e7_1 _ds-alert_1yo2l_1", D = "_heading_1p8e7_1 _ds-heading_1yo2l_1", E = "_body_1p8e7_104", F = {
2
2
  validation: _,
3
- tag: n,
3
+ tag: e,
4
4
  tabs: o,
5
5
  table: d,
6
6
  scrollShadow: t,
7
7
  tableChildAdded: s,
8
8
  skeleton: a,
9
9
  popover: l,
10
- pagination: e,
10
+ pagination: n,
11
11
  modal: i,
12
- logo: f,
13
- link: c,
12
+ logo: c,
13
+ link: p,
14
14
  grid: r,
15
- flex: x,
16
- box: b,
15
+ flex: b,
16
+ box: f,
17
17
  input: y,
18
18
  fieldset: g,
19
19
  fieldsetValidationAdded: u,
20
- field: p,
21
- fieldChildAdded: h,
22
- affixes: m,
23
- count: v,
20
+ field: h,
21
+ fieldChildAdded: m,
22
+ affixes: v,
23
+ count: x,
24
24
  errorsummary: A,
25
25
  details: k,
26
26
  chip: C,
@@ -35,40 +35,40 @@ const _ = "_validation_f0nxn_1 _ds-validation-message_1yo2l_1", n = "_tag_f0nxn_
35
35
  body: E
36
36
  };
37
37
  export {
38
- m as affixes,
38
+ v as affixes,
39
39
  B as alert,
40
40
  z as avatar,
41
41
  q as badge,
42
42
  E as body,
43
- b as box,
43
+ f as box,
44
44
  j as breadcrumbs,
45
45
  V as button,
46
46
  w as card,
47
47
  C as chip,
48
- v as count,
48
+ x as count,
49
49
  F as default,
50
50
  k as details,
51
51
  A as errorsummary,
52
- p as field,
53
- h as fieldChildAdded,
52
+ h as field,
53
+ m as fieldChildAdded,
54
54
  g as fieldset,
55
55
  u as fieldsetValidationAdded,
56
- x as flex,
56
+ b as flex,
57
57
  r as grid,
58
58
  D as heading,
59
59
  S as info,
60
60
  y as input,
61
- c as link,
62
- f as logo,
61
+ p as link,
62
+ c as logo,
63
63
  i as modal,
64
- e as pagination,
64
+ n as pagination,
65
65
  l as popover,
66
66
  t as scrollShadow,
67
67
  a as skeleton,
68
68
  d as table,
69
69
  s as tableChildAdded,
70
70
  o as tabs,
71
- n as tag,
71
+ e as tag,
72
72
  _ as validation
73
73
  };
74
74
  //# sourceMappingURL=styles.module.css.js.map
package/mtds/utils.d.ts CHANGED
@@ -32,19 +32,21 @@ export declare const onAdd: (animationName: string, callback: () => void) => {
32
32
  disconnect: (el: Element | Document) => void;
33
33
  };
34
34
  export declare const isInputLike: (el: unknown) => el is HTMLInputElement;
35
+ type Popover = "" | "auto" | "manual" | undefined;
35
36
  declare global {
36
37
  namespace React.JSX {
37
38
  interface IntrinsicAttributes {
38
39
  popovertargetaction?: string;
39
40
  popovertarget?: string;
40
- popover?: string | boolean;
41
+ popover?: Popover;
41
42
  }
42
43
  }
43
44
  namespace React {
44
45
  interface HTMLAttributes<T> {
45
46
  popovertargetaction?: string;
46
47
  popovertarget?: string;
47
- popover?: "" | "auto" | "manual" | undefined;
48
+ popover?: Popover;
48
49
  }
49
50
  }
50
51
  }
52
+ export {};
package/mtds/utils.js CHANGED
@@ -6,7 +6,7 @@ function u(n) {
6
6
  }
7
7
  const s = (n, t, e) => {
8
8
  for (const i of e[0].split(","))
9
- e[0] = i, Element.prototype[`${n}EventListener`].apply(t, e);
9
+ e[0] = i, t[`${n}EventListener`](...e);
10
10
  }, r = (n, ...t) => s("add", n, t), m = (n, ...t) => s("remove", n, t), p = (n, t) => {
11
11
  let e = 0;
12
12
  const i = (o) => {
@@ -16,11 +16,11 @@ const s = (n, t, e) => {
16
16
  observe: (o) => r(o, "animationend", i, a),
17
17
  disconnect: (o) => m(o, "animationstart", i, a)
18
18
  };
19
- }, E = (n) => n instanceof HTMLElement && "validity" in n && !(n instanceof HTMLButtonElement);
19
+ }, v = (n) => n instanceof HTMLElement && "validity" in n && !(n instanceof HTMLButtonElement);
20
20
  export {
21
21
  f as IS_BROWSER,
22
22
  a as QUICK_EVENT,
23
- E as isInputLike,
23
+ v as isInputLike,
24
24
  m as off,
25
25
  r as on,
26
26
  p as onAdd,
package/mtds/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../designsystem/utils.ts"],"sourcesContent":["export const IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';\nexport const QUICK_EVENT = { capture: true, passive: true };\n\n/**\n * useId\n * @return A generated unique ID\n */\nlet id = 0;\nconst UUID = `${Date.now().toString(36)}${Math.random().toString(36).slice(2, 5)}`;\nexport function useId (el: Element) {\n if (!el.id) el.id = `${UUID}${++id}`;\n\treturn el.id;\n};\n\n/**\n * Speed up MutationObserver by debouncing and only running when page is visible\n * @return new MutaionObserver\n */\nexport function createOptimizedMutationObserver(callback: MutationCallback) {\n const queue: MutationRecord[] = [];\n const observer = new MutationObserver((mutations) => {\n if (!queue[0]) requestAnimationFrame(process);\n queue.push(...mutations);\n });\n\n const process = () => {\n callback(queue, observer);\n queue.length = 0; // Reset queue\n };\n\n return observer;\n}\n\n// Internal helper for on / off\nconst events = (\n\taction: \"add\" | \"remove\",\n\telement: Node | Window,\n\trest: Parameters<typeof Element.prototype.addEventListener>,\n): void => {\n\tfor (const type of rest[0].split(\",\")) {\n\t\trest[0] = type;\n\t\tElement.prototype[`${action}EventListener`].apply(element, rest);\n\t}\n};\n\n/**\n * on\n * @param element The Element to use as EventTarget\n * @param types A comma separated string of event types\n * @param listener An event listener function or listener object\n */\nexport const on = (\n\telement: Node | Window,\n\t...rest: Parameters<typeof Element.prototype.addEventListener>\n): void => events(\"add\", element, rest);\n\n/**\n * off\n * @param element The Element to use as EventTarget\n * @param types A comma separated string of event types\n * @param listener An event listener function or listener object\n */\nexport const off = (\n\telement: Node | Window,\n\t...rest: Parameters<typeof Element.prototype.removeEventListener>\n): void => events(\"remove\", element, rest);\n\n/**\n * Child added event inspired by:\n * https://davidwalsh.name/detect-node-insertion\n */\nexport const onAdd = (animationName: string, callback: () => void) => {\n let timer: ReturnType<typeof requestAnimationFrame> | number = 0;\n const onAnimation = (event: Event & { animationName?: string }) => {\n if (event.animationName === animationName) {\n cancelAnimationFrame(timer);\n timer = requestAnimationFrame(callback);\n }\n };\n\n\treturn {\n\t\tobserve: (el: Element | Document, ) => on(el, 'animationend', onAnimation, QUICK_EVENT),\n\t\tdisconnect: (el: Element | Document, ) => off(el, 'animationstart', onAnimation, QUICK_EVENT)\n\t};\n}\n\nexport const isInputLike = (el: unknown): el is HTMLInputElement =>\n\tel instanceof HTMLElement && 'validity' in el && !(el instanceof HTMLButtonElement);\n\n// Make React support popover=\"\"target attribute\n// https://github.com/facebook/react/issues/27479\ndeclare global {\n\tnamespace React.JSX {\n\t\tinterface IntrinsicAttributes {\n\t\t\tpopovertargetaction?: string;\n\t\t\tpopovertarget?: string;\n\t\t\tpopover?: string | boolean;\n\t\t}\n\t}\n\tnamespace React {\n\t\tinterface HTMLAttributes<T> {\n\t\t\tpopovertargetaction?: string;\n\t\t\tpopovertarget?: string;\n\t\t\tpopover?: \"\" | \"auto\" | \"manual\" | undefined;\n\t\t}\n\t}\n}"],"names":["IS_BROWSER","QUICK_EVENT","id","UUID","useId","el","events","action","element","rest","type","on","off","onAdd","animationName","callback","timer","onAnimation","event","isInputLike"],"mappings":"AAAO,MAAMA,IAAa,OAAO,SAAW,OAAe,OAAO,WAAa,KAClEC,IAAc,EAAE,SAAS,IAAM,SAAS,GAAK;AAM1D,IAAIC,IAAK;AACT,MAAMC,IAAO,GAAG,KAAK,IAAM,EAAA,SAAS,EAAE,CAAC,GAAG,KAAK,SAAS,SAAS,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC;AACzE,SAASC,EAAOC,GAAa;AAC9B,SAACA,EAAG,OAAIA,EAAG,KAAK,GAAGF,CAAI,GAAG,EAAED,CAAE,KAC5BG,EAAG;AACX;AAsBA,MAAMC,IAAS,CACdC,GACAC,GACAC,MACU;AACV,aAAWC,KAAQD,EAAK,CAAC,EAAE,MAAM,GAAG;AACnC,IAAAA,EAAK,CAAC,IAAIC,GACV,QAAQ,UAAU,GAAGH,CAAM,eAAe,EAAE,MAAMC,GAASC,CAAI;AAEjE,GAQaE,IAAK,CACjBH,MACGC,MACOH,EAAO,OAAOE,GAASC,CAAI,GAQzBG,IAAM,CAClBJ,MACGC,MACOH,EAAO,UAAUE,GAASC,CAAI,GAM5BI,IAAQ,CAACC,GAAuBC,MAAyB;AACpE,MAAIC,IAA2D;AACzD,QAAAC,IAAc,CAACC,MAA8C;AAC7D,IAAAA,EAAM,kBAAkBJ,MAC1B,qBAAqBE,CAAK,GAC1BA,IAAQ,sBAAsBD,CAAQ;AAAA,EAE1C;AAEM,SAAA;AAAA,IACN,SAAS,CAACV,MAA6BM,EAAGN,GAAI,gBAAgBY,GAAahB,CAAW;AAAA,IACtF,YAAY,CAACI,MAA6BO,EAAIP,GAAI,kBAAkBY,GAAahB,CAAW;AAAA,EAC7F;AACD,GAEakB,IAAc,CAACd,MAC3BA,aAAc,eAAe,cAAcA,KAAM,EAAEA,aAAc;"}
1
+ {"version":3,"file":"utils.js","sources":["../designsystem/utils.ts"],"sourcesContent":["export const IS_BROWSER = typeof window !== 'undefined' && typeof document !== 'undefined';\nexport const QUICK_EVENT = { capture: true, passive: true };\n\n/**\n * useId\n * @return A generated unique ID\n */\nlet id = 0;\nconst UUID = `${Date.now().toString(36)}${Math.random().toString(36).slice(2, 5)}`;\nexport function useId (el: Element) {\n if (!el.id) el.id = `${UUID}${++id}`;\n\treturn el.id;\n};\n\n/**\n * Speed up MutationObserver by debouncing and only running when page is visible\n * @return new MutaionObserver\n */\nexport function createOptimizedMutationObserver(callback: MutationCallback) {\n const queue: MutationRecord[] = [];\n const observer = new MutationObserver((mutations) => {\n if (!queue[0]) requestAnimationFrame(process);\n queue.push(...mutations);\n });\n\n const process = () => {\n callback(queue, observer);\n queue.length = 0; // Reset queue\n };\n\n return observer;\n}\n\n// Internal helper for on / off\nconst events = (\n\taction: \"add\" | \"remove\",\n\telement: Node | Window,\n\trest: Parameters<typeof Element.prototype.addEventListener>,\n): void => {\n\tfor (const type of rest[0].split(\",\")) {\n\t\trest[0] = type;\n\t\telement[`${action}EventListener`](...rest);\n\t}\n};\n\n/**\n * on\n * @param element The Element to use as EventTarget\n * @param types A comma separated string of event types\n * @param listener An event listener function or listener object\n */\nexport const on = (\n\telement: Node | Window,\n\t...rest: Parameters<typeof Element.prototype.addEventListener>\n): void => events(\"add\", element, rest);\n\n/**\n * off\n * @param element The Element to use as EventTarget\n * @param types A comma separated string of event types\n * @param listener An event listener function or listener object\n */\nexport const off = (\n\telement: Node | Window,\n\t...rest: Parameters<typeof Element.prototype.removeEventListener>\n): void => events(\"remove\", element, rest);\n\n/**\n * Child added event inspired by:\n * https://davidwalsh.name/detect-node-insertion\n */\nexport const onAdd = (animationName: string, callback: () => void) => {\n let timer: ReturnType<typeof requestAnimationFrame> | number = 0;\n const onAnimation = (event: Event & { animationName?: string }) => {\n if (event.animationName === animationName) {\n cancelAnimationFrame(timer);\n timer = requestAnimationFrame(callback);\n }\n };\n\n\treturn {\n\t\tobserve: (el: Element | Document, ) => on(el, 'animationend', onAnimation, QUICK_EVENT),\n\t\tdisconnect: (el: Element | Document, ) => off(el, 'animationstart', onAnimation, QUICK_EVENT)\n\t};\n}\n\nexport const isInputLike = (el: unknown): el is HTMLInputElement =>\n\tel instanceof HTMLElement && 'validity' in el && !(el instanceof HTMLButtonElement);\n\n// Make React support popover=\"\"target attribute\n// https://github.com/facebook/react/issues/27479\ntype Popover = \"\" | \"auto\" | \"manual\" | undefined;\ndeclare global {\n\tnamespace React.JSX {\n\t\tinterface IntrinsicAttributes {\n\t\t\tpopovertargetaction?: string;\n\t\t\tpopovertarget?: string;\n\t\t\tpopover?: Popover;\n\t\t}\n\t}\n\tnamespace React {\n\t\tinterface HTMLAttributes<T> {\n\t\t\tpopovertargetaction?: string;\n\t\t\tpopovertarget?: string;\n\t\t\tpopover?: Popover;\n\t\t}\n\t}\n}"],"names":["IS_BROWSER","QUICK_EVENT","id","UUID","useId","el","events","action","element","rest","type","on","off","onAdd","animationName","callback","timer","onAnimation","event","isInputLike"],"mappings":"AAAO,MAAMA,IAAa,OAAO,SAAW,OAAe,OAAO,WAAa,KAClEC,IAAc,EAAE,SAAS,IAAM,SAAS,GAAK;AAM1D,IAAIC,IAAK;AACT,MAAMC,IAAO,GAAG,KAAK,IAAM,EAAA,SAAS,EAAE,CAAC,GAAG,KAAK,SAAS,SAAS,EAAE,EAAE,MAAM,GAAG,CAAC,CAAC;AACzE,SAASC,EAAOC,GAAa;AAC9B,SAACA,EAAG,OAAIA,EAAG,KAAK,GAAGF,CAAI,GAAG,EAAED,CAAE,KAC5BG,EAAG;AACX;AAsBA,MAAMC,IAAS,CACdC,GACAC,GACAC,MACU;AACV,aAAWC,KAAQD,EAAK,CAAC,EAAE,MAAM,GAAG;AACnC,IAAAA,EAAK,CAAC,IAAIC,GACVF,EAAQ,GAAGD,CAAM,eAAe,EAAE,GAAGE,CAAI;AAE3C,GAQaE,IAAK,CACjBH,MACGC,MACOH,EAAO,OAAOE,GAASC,CAAI,GAQzBG,IAAM,CAClBJ,MACGC,MACOH,EAAO,UAAUE,GAASC,CAAI,GAM5BI,IAAQ,CAACC,GAAuBC,MAAyB;AACpE,MAAIC,IAA2D;AACzD,QAAAC,IAAc,CAACC,MAA8C;AAC7D,IAAAA,EAAM,kBAAkBJ,MAC1B,qBAAqBE,CAAK,GAC1BA,IAAQ,sBAAsBD,CAAQ;AAAA,EAE1C;AAEM,SAAA;AAAA,IACN,SAAS,CAACV,MAA6BM,EAAGN,GAAI,gBAAgBY,GAAahB,CAAW;AAAA,IACtF,YAAY,CAACI,MAA6BO,EAAIP,GAAI,kBAAkBY,GAAahB,CAAW;AAAA,EAC7F;AACD,GAEakB,IAAc,CAACd,MAC3BA,aAAc,eAAe,cAAcA,KAAM,EAAEA,aAAc;"}
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "@mattilsynet/design",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "type": "module",
5
5
  "main": "./mtds/index.js",
6
6
  "types": "./mtds/index.d.ts",
7
- "files": [
8
- "mtds"
9
- ],
7
+ "files": ["mtds"],
10
8
  "engines": {
11
9
  "npm": ">=10.0.0",
12
10
  "node": ">=20.0.0"
@@ -38,6 +36,7 @@
38
36
  "@biomejs/biome": "^1.9.4",
39
37
  "@phosphor-icons/react": "^2.1.7",
40
38
  "@storybook/addon-essentials": "^8.5.0",
39
+ "@storybook/addon-mdx-gfm": "^8.5.2",
41
40
  "@storybook/addon-storysource": "^8.5.0",
42
41
  "@storybook/blocks": "^8.5.0",
43
42
  "@storybook/manager-api": "^8.5.0",