@sats-group/ui-lib 85.3.7 → 85.4.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-group/ui-lib",
3
- "version": "85.3.7",
3
+ "version": "85.4.0",
4
4
  "description": "SATS web user interface library",
5
5
  "author": "developer@sats.no",
6
6
  "license": "UNLICENSED",
@@ -1,2 +1,2 @@
1
- const e=["badge","banner","bomb","button","checkbox","chip","chip-selected","collapse","confirmation","context-menu","cropped-image","div-button","dropdown-list","expander","filter","filter-wrapper","flag","form-content","hidden-input","link","link-button","link-card","message","message-field","modal","pagination","progress-bar","radio","scale-bar","search","select","select-option","tag","text","text-area","text-input","toggle","toolbox","visually-button","visually-hidden"],t=[".badge",".banner",".bomb",".button",".checkbox",".chip",".chip-selected",".collapse",".confirmation",".context-menu",".cropped-image",".div-button",".dropdown-list",".expander",".filter",".filter-wrapper",".flag",".form-content",".hidden-input",".link",".link-button",".link-card",".message",".message-field",".modal",".pagination",".progress-bar",".radio",".scale-bar",".search",".select",".select-option",".tag",".text",".text-area",".text-input",".toggle",".toolbox",".visually-button",".visually-hidden"];export{e as names,t as selectors};
1
+ const e=["badge","banner","bomb","button","checkbox","chip","chip-selected","collapse","confirmation","context-menu","cropped-image","div-button","dropdown-list","expander","filter","filter-wrapper","flag","form-content","hidden-input","link","link-button","link-card","message","message-field","modal","navigation-card","pagination","progress-bar","radio","scale-bar","search","select","select-option","tag","text","text-area","text-input","toggle","toolbox","visually-button","visually-hidden"],t=[".badge",".banner",".bomb",".button",".checkbox",".chip",".chip-selected",".collapse",".confirmation",".context-menu",".cropped-image",".div-button",".dropdown-list",".expander",".filter",".filter-wrapper",".flag",".form-content",".hidden-input",".link",".link-button",".link-card",".message",".message-field",".modal",".navigation-card",".pagination",".progress-bar",".radio",".scale-bar",".search",".select",".select-option",".tag",".text",".text-area",".text-input",".toggle",".toolbox",".visually-button",".visually-hidden"];export{e as names,t as selectors};
2
2
  //# sourceMappingURL=components.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../react/components.ts"],
4
- "sourcesContent": ["export const names = [\n 'badge',\n 'banner',\n 'bomb',\n 'button',\n 'checkbox',\n 'chip',\n 'chip-selected',\n 'collapse',\n 'confirmation',\n 'context-menu',\n 'cropped-image',\n 'div-button',\n 'dropdown-list',\n 'expander',\n 'filter',\n 'filter-wrapper',\n 'flag',\n 'form-content',\n 'hidden-input',\n 'link',\n 'link-button',\n 'link-card',\n 'message',\n 'message-field',\n 'modal',\n 'pagination',\n 'progress-bar',\n 'radio',\n 'scale-bar',\n 'search',\n 'select',\n 'select-option',\n 'tag',\n 'text',\n 'text-area',\n 'text-input',\n 'toggle',\n 'toolbox',\n 'visually-button',\n 'visually-hidden',\n];\n\nexport const selectors = [\n '.badge',\n '.banner',\n '.bomb',\n '.button',\n '.checkbox',\n '.chip',\n '.chip-selected',\n '.collapse',\n '.confirmation',\n '.context-menu',\n '.cropped-image',\n '.div-button',\n '.dropdown-list',\n '.expander',\n '.filter',\n '.filter-wrapper',\n '.flag',\n '.form-content',\n '.hidden-input',\n '.link',\n '.link-button',\n '.link-card',\n '.message',\n '.message-field',\n '.modal',\n '.pagination',\n '.progress-bar',\n '.radio',\n '.scale-bar',\n '.search',\n '.select',\n '.select-option',\n '.tag',\n '.text',\n '.text-area',\n '.text-input',\n '.toggle',\n '.toolbox',\n '.visually-button',\n '.visually-hidden',\n];\n"],
5
- "mappings": "AAAO,MAAMA,EAAQ,CACnB,QACA,SACA,OACA,SACA,WACA,OACA,gBACA,WACA,eACA,eACA,gBACA,aACA,gBACA,WACA,SACA,iBACA,OACA,eACA,eACA,OACA,cACA,YACA,UACA,gBACA,QACA,aACA,eACA,QACA,YACA,SACA,SACA,gBACA,MACA,OACA,YACA,aACA,SACA,UACA,kBACA,iBACF,EAEaC,EAAY,CACvB,SACA,UACA,QACA,UACA,YACA,QACA,iBACA,YACA,gBACA,gBACA,iBACA,cACA,iBACA,YACA,UACA,kBACA,QACA,gBACA,gBACA,QACA,eACA,aACA,WACA,iBACA,SACA,cACA,gBACA,SACA,aACA,UACA,UACA,iBACA,OACA,QACA,aACA,cACA,UACA,WACA,mBACA,kBACF",
4
+ "sourcesContent": ["export const names = [\n 'badge',\n 'banner',\n 'bomb',\n 'button',\n 'checkbox',\n 'chip',\n 'chip-selected',\n 'collapse',\n 'confirmation',\n 'context-menu',\n 'cropped-image',\n 'div-button',\n 'dropdown-list',\n 'expander',\n 'filter',\n 'filter-wrapper',\n 'flag',\n 'form-content',\n 'hidden-input',\n 'link',\n 'link-button',\n 'link-card',\n 'message',\n 'message-field',\n 'modal',\n 'navigation-card',\n 'pagination',\n 'progress-bar',\n 'radio',\n 'scale-bar',\n 'search',\n 'select',\n 'select-option',\n 'tag',\n 'text',\n 'text-area',\n 'text-input',\n 'toggle',\n 'toolbox',\n 'visually-button',\n 'visually-hidden',\n];\n\nexport const selectors = [\n '.badge',\n '.banner',\n '.bomb',\n '.button',\n '.checkbox',\n '.chip',\n '.chip-selected',\n '.collapse',\n '.confirmation',\n '.context-menu',\n '.cropped-image',\n '.div-button',\n '.dropdown-list',\n '.expander',\n '.filter',\n '.filter-wrapper',\n '.flag',\n '.form-content',\n '.hidden-input',\n '.link',\n '.link-button',\n '.link-card',\n '.message',\n '.message-field',\n '.modal',\n '.navigation-card',\n '.pagination',\n '.progress-bar',\n '.radio',\n '.scale-bar',\n '.search',\n '.select',\n '.select-option',\n '.tag',\n '.text',\n '.text-area',\n '.text-input',\n '.toggle',\n '.toolbox',\n '.visually-button',\n '.visually-hidden',\n];\n"],
5
+ "mappings": "AAAO,MAAMA,EAAQ,CACnB,QACA,SACA,OACA,SACA,WACA,OACA,gBACA,WACA,eACA,eACA,gBACA,aACA,gBACA,WACA,SACA,iBACA,OACA,eACA,eACA,OACA,cACA,YACA,UACA,gBACA,QACA,kBACA,aACA,eACA,QACA,YACA,SACA,SACA,gBACA,MACA,OACA,YACA,aACA,SACA,UACA,kBACA,iBACF,EAEaC,EAAY,CACvB,SACA,UACA,QACA,UACA,YACA,QACA,iBACA,YACA,gBACA,gBACA,iBACA,cACA,iBACA,YACA,UACA,kBACA,QACA,gBACA,gBACA,QACA,eACA,aACA,WACA,iBACA,SACA,mBACA,cACA,gBACA,SACA,aACA,UACA,UACA,iBACA,OACA,QACA,aACA,cACA,UACA,WACA,mBACA,kBACF",
6
6
  "names": ["names", "selectors"]
7
7
  }
@@ -1,2 +1,2 @@
1
- var n=Object.defineProperty,s=Object.defineProperties;var d=Object.getOwnPropertyDescriptors;var t=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var m=(r,e,p)=>e in r?n(r,e,{enumerable:!0,configurable:!0,writable:!0,value:p}):r[e]=p,i=(r,e)=>{for(var p in e||(e={}))f.call(e,p)&&m(r,p,e[p]);if(t)for(var p of t(e))w.call(e,p)&&m(r,p,e[p]);return r},o=(r,e)=>s(r,d(e));import c from"classnames";import a from"react";import g from"../filter/filter";import{BreakAtElements as l}from"./filter-wrapper.types";const u=({filters:r})=>a.createElement("div",{className:c("filter-wrapper",{"filter-wrapper--medium":r.length<=l.medium,"filter-wrapper--wide":r.length>=l.wide,"filter-wrapper--single":r.length===1})},r.map((e,p)=>a.createElement(g,o(i({},e),{key:p}))));var W=u;export{W as default};
1
+ var n=Object.defineProperty,s=Object.defineProperties;var d=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var t=(e,r,p)=>r in e?n(e,r,{enumerable:!0,configurable:!0,writable:!0,value:p}):e[r]=p,i=(e,r)=>{for(var p in r||(r={}))f.call(r,p)&&t(e,p,r[p]);if(m)for(var p of m(r))w.call(r,p)&&t(e,p,r[p]);return e},o=(e,r)=>s(e,d(r));import c from"classnames";import a from"react";import u from"../filter/filter";import{BreakAtElements as l}from"./filter-wrapper.types";const F=({filters:e})=>a.createElement("div",{className:c("filter-wrapper",{"filter-wrapper--medium":e.length<=l.medium,"filter-wrapper--wide":e.length>=l.wide})},e.map((r,p)=>a.createElement(u,o(i({},r),{key:p}))));var W=F;export{W as default};
2
2
  //# sourceMappingURL=filter-wrapper.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../react/filter-wrapper/filter-wrapper.tsx"],
4
- "sourcesContent": ["import classNames from 'classnames';\nimport React from 'react';\nimport Filter from '../filter/filter';\n\nimport {\n FilterWrapper as Props,\n BreakAtElements,\n} from './filter-wrapper.types';\n\nconst FilterWrapper: React.FunctionComponent<Props> = ({ filters }) => (\n <div\n className={classNames('filter-wrapper', {\n [`filter-wrapper--medium`]: filters.length <= BreakAtElements.medium,\n [`filter-wrapper--wide`]: filters.length >= BreakAtElements.wide,\n [`filter-wrapper--single`]: filters.length === 1,\n })}\n >\n {filters.map((filter, i) => (\n <Filter {...filter} key={i} />\n ))}\n </div>\n);\n\nexport default FilterWrapper;\n"],
5
- "mappings": "6aAAA,OAAOA,MAAgB,aACvB,OAAOC,MAAW,QAClB,OAAOC,MAAY,mBAEnB,OAEE,mBAAAC,MACK,yBAEP,MAAMC,EAAgD,CAAC,CAAE,QAAAC,CAAQ,IAC/DJ,EAAA,cAAC,OACC,UAAWD,EAAW,iBAAkB,CACrC,yBAA2BK,EAAQ,QAAUF,EAAgB,OAC7D,uBAAyBE,EAAQ,QAAUF,EAAgB,KAC3D,yBAA2BE,EAAQ,SAAW,CACjD,CAAC,GAEAA,EAAQ,IAAI,CAACC,EAAQC,IACpBN,EAAA,cAACC,EAAAM,EAAAC,EAAA,GAAWH,GAAX,CAAmB,IAAKC,GAAG,CAC7B,CACH,EAGF,IAAOG,EAAQN",
4
+ "sourcesContent": ["import classNames from 'classnames';\nimport React from 'react';\nimport Filter from '../filter/filter';\n\nimport {\n FilterWrapper as Props,\n BreakAtElements,\n} from './filter-wrapper.types';\n\nconst FilterWrapper: React.FunctionComponent<Props> = ({ filters }) => (\n <div\n className={classNames('filter-wrapper', {\n [`filter-wrapper--medium`]: filters.length <= BreakAtElements.medium,\n [`filter-wrapper--wide`]: filters.length >= BreakAtElements.wide,\n })}\n >\n {filters.map((filter, i) => (\n <Filter {...filter} key={i} />\n ))}\n </div>\n);\n\nexport default FilterWrapper;\n"],
5
+ "mappings": "6aAAA,OAAOA,MAAgB,aACvB,OAAOC,MAAW,QAClB,OAAOC,MAAY,mBAEnB,OAEE,mBAAAC,MACK,yBAEP,MAAMC,EAAgD,CAAC,CAAE,QAAAC,CAAQ,IAC/DJ,EAAA,cAAC,OACC,UAAWD,EAAW,iBAAkB,CACrC,yBAA2BK,EAAQ,QAAUF,EAAgB,OAC7D,uBAAyBE,EAAQ,QAAUF,EAAgB,IAC9D,CAAC,GAEAE,EAAQ,IAAI,CAACC,EAAQC,IACpBN,EAAA,cAACC,EAAAM,EAAAC,EAAA,GAAWH,GAAX,CAAmB,IAAKC,GAAG,CAC7B,CACH,EAGF,IAAOG,EAAQN",
6
6
  "names": ["classNames", "React", "Filter", "BreakAtElements", "FilterWrapper", "filters", "filter", "i", "__spreadProps", "__spreadValues", "filter_wrapper_default"]
7
7
  }
@@ -5,10 +5,8 @@
5
5
  $breakpointMedium: 850px;
6
6
  $breakpointSmall: 500px;
7
7
  width: 100%;
8
-
9
8
  display: grid;
10
9
  gap: spacing.$s;
11
- width: 100%;
12
10
 
13
11
  &--wide {
14
12
  @media (min-width: $breakpointLarge) {
@@ -20,12 +18,6 @@
20
18
  }
21
19
 
22
20
  &--medium {
23
- &--single {
24
- > * + * {
25
- max-width: 430px;
26
- width: 100%;
27
- }
28
- }
29
21
  @media (min-width: $breakpointMedium) {
30
22
  grid-template-columns: repeat(
31
23
  auto-fit,
@@ -37,10 +29,4 @@
37
29
  @media (max-width: $breakpointSmall) {
38
30
  gap: 0;
39
31
  }
40
-
41
- &--single {
42
- > * {
43
- width: 430px;
44
- }
45
- }
46
32
  }
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ declare const SvgInfo: () => React.JSX.Element;
3
+ export default SvgInfo;
@@ -0,0 +1,2 @@
1
+ import*as l from"react";const o=()=>l.createElement("svg",{width:32,height:32,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M1.926 8a6.074 6.074 0 1 0 12.148 0A6.074 6.074 0 0 0 1.926 8M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1",clipRule:"evenodd"}),l.createElement("path",{fill:"currentColor",d:"M8.523 11.038v-3.61a.588.588 0 1 0-1.176 0v3.61a.588.588 0 0 0 1.176 0M7.935 5.854a.74.74 0 1 0 0-1.48.74.74 0 0 0 0 1.48"}));var e=o;export{e as default};
2
+ //# sourceMappingURL=info.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../react/icons/32/info.tsx"],
4
+ "sourcesContent": ["import * as React from 'react';\nconst SvgInfo = () => (\n <svg\n width={32}\n height={32}\n viewBox=\"0 0 16 16\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n fill=\"currentColor\"\n fillRule=\"evenodd\"\n d=\"M1.926 8a6.074 6.074 0 1 0 12.148 0A6.074 6.074 0 0 0 1.926 8M8 1a7 7 0 1 0 0 14A7 7 0 0 0 8 1\"\n clipRule=\"evenodd\"\n />\n <path\n fill=\"currentColor\"\n d=\"M8.523 11.038v-3.61a.588.588 0 1 0-1.176 0v3.61a.588.588 0 0 0 1.176 0M7.935 5.854a.74.74 0 1 0 0-1.48.74.74 0 0 0 0 1.48\"\n />\n </svg>\n);\nexport default SvgInfo;\n"],
5
+ "mappings": "AAAA,UAAYA,MAAW,QACvB,MAAMC,EAAU,IACdD,EAAA,cAAC,OACC,MAAO,GACP,OAAQ,GACR,QAAQ,YACR,KAAK,OACL,MAAM,8BAENA,EAAA,cAAC,QACC,KAAK,eACL,SAAS,UACT,EAAE,iGACF,SAAS,UACX,EACAA,EAAA,cAAC,QACC,KAAK,eACL,EAAE,4HACJ,CACF,EAEF,IAAOE,EAAQD",
6
+ "names": ["React", "SvgInfo", "info_default"]
7
+ }
@@ -0,0 +1,2 @@
1
+ import NavigationCard from './navigation-card';
2
+ export default NavigationCard;
@@ -0,0 +1,2 @@
1
+ import a from"./navigation-card";var r=a;export{r as default};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/navigation-card/index.ts"],
4
+ "sourcesContent": ["import NavigationCard from './navigation-card';\nexport default NavigationCard;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAoB,oBAC3B,IAAOC,EAAQD",
6
+ "names": ["NavigationCard", "navigation_card_default"]
7
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { NavigationCard as Props } from './navigation-card.types';
3
+ declare const NavigationCard: React.FunctionComponent<Props>;
4
+ export default NavigationCard;
@@ -0,0 +1,2 @@
1
+ import i from"../text/text";import l from"classnames";import a from"react";const m=({data:o,description:d,errors:v,href:s,icon:t,tall:r,title:e})=>a.createElement("a",{"aria-disabled":!s,className:l("navigation-card",{"navigation-card--disabled":!s,"navigation-card--enabled":!!s,"navigation-card--tall":r}),href:s,tabIndex:s?0:-1},a.createElement("div",{className:"navigation-card__text"},a.createElement("div",{className:"navigation-card__title"},t?a.createElement("div",{className:"navigation-card__icon"},t):null,a.createElement(i,{theme:i.themes.emphasis,tight:!0},e)),a.createElement("div",{className:"navigation-card__text-group"},o.map(n=>a.createElement("div",{className:"navigation-card__data",key:n},a.createElement(i,{size:i.sizes.small},n))),v.map(n=>a.createElement("div",{className:"navigation-card__error",key:n},a.createElement(i,{size:i.sizes.small},n)))),d?a.createElement("div",{className:"navigation-card__description"},a.createElement(i,{size:i.sizes.small},d)):null));var c=m;export{c as default};
2
+ //# sourceMappingURL=navigation-card.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../react/navigation-card/navigation-card.tsx"],
4
+ "sourcesContent": ["import Text from '../text/text';\nimport cn from 'classnames';\nimport React from 'react';\nimport type { NavigationCard as Props } from './navigation-card.types';\n\nconst NavigationCard: React.FunctionComponent<Props> = ({\n data,\n description,\n errors,\n href,\n icon,\n tall,\n title,\n}) => (\n <a\n aria-disabled={!href}\n className={cn('navigation-card', {\n 'navigation-card--disabled': !href,\n 'navigation-card--enabled': !!href,\n 'navigation-card--tall': tall,\n })}\n href={href}\n tabIndex={href ? 0 : -1}\n >\n <div className=\"navigation-card__text\">\n <div className=\"navigation-card__title\">\n {icon ? <div className=\"navigation-card__icon\">{icon}</div> : null}\n <Text theme={Text.themes.emphasis} tight>\n {title}\n </Text>\n </div>\n <div className=\"navigation-card__text-group\">\n {data.map(d => (\n <div className=\"navigation-card__data\" key={d}>\n <Text size={Text.sizes.small}>{d}</Text>\n </div>\n ))}\n {errors.map(e => (\n <div className=\"navigation-card__error\" key={e}>\n <Text size={Text.sizes.small}>{e}</Text>\n </div>\n ))}\n </div>\n {description ? (\n <div className=\"navigation-card__description\">\n <Text size={Text.sizes.small}>{description}</Text>\n </div>\n ) : null}\n </div>\n </a>\n);\n\nexport default NavigationCard;\n"],
5
+ "mappings": "AAAA,OAAOA,MAAU,eACjB,OAAOC,MAAQ,aACf,OAAOC,MAAW,QAGlB,MAAMC,EAAiD,CAAC,CACtD,KAAAC,EACA,YAAAC,EACA,OAAAC,EACA,KAAAC,EACA,KAAAC,EACA,KAAAC,EACA,MAAAC,CACF,IACER,EAAA,cAAC,KACC,gBAAe,CAACK,EAChB,UAAWN,EAAG,kBAAmB,CAC/B,4BAA6B,CAACM,EAC9B,2BAA4B,CAAC,CAACA,EAC9B,wBAAyBE,CAC3B,CAAC,EACD,KAAMF,EACN,SAAUA,EAAO,EAAI,IAErBL,EAAA,cAAC,OAAI,UAAU,yBACbA,EAAA,cAAC,OAAI,UAAU,0BACZM,EAAON,EAAA,cAAC,OAAI,UAAU,yBAAyBM,CAAK,EAAS,KAC9DN,EAAA,cAACF,EAAA,CAAK,MAAOA,EAAK,OAAO,SAAU,MAAK,IACrCU,CACH,CACF,EACAR,EAAA,cAAC,OAAI,UAAU,+BACZE,EAAK,IAAIO,GACRT,EAAA,cAAC,OAAI,UAAU,wBAAwB,IAAKS,GAC1CT,EAAA,cAACF,EAAA,CAAK,KAAMA,EAAK,MAAM,OAAQW,CAAE,CACnC,CACD,EACAL,EAAO,IAAIM,GACVV,EAAA,cAAC,OAAI,UAAU,yBAAyB,IAAKU,GAC3CV,EAAA,cAACF,EAAA,CAAK,KAAMA,EAAK,MAAM,OAAQY,CAAE,CACnC,CACD,CACH,EACCP,EACCH,EAAA,cAAC,OAAI,UAAU,gCACbA,EAAA,cAACF,EAAA,CAAK,KAAMA,EAAK,MAAM,OAAQK,CAAY,CAC7C,EACE,IACN,CACF,EAGF,IAAOQ,EAAQV",
6
+ "names": ["Text", "cn", "React", "NavigationCard", "data", "description", "errors", "href", "icon", "tall", "title", "d", "e", "navigation_card_default"]
7
+ }
@@ -0,0 +1,80 @@
1
+ @use '../../tokens/colours';
2
+ @use '../../tokens/corner-radius';
3
+ @use '../../tokens/spacing';
4
+
5
+ .navigation-card {
6
+ @mixin break {
7
+ @media (min-width: 500px) {
8
+ @content;
9
+ }
10
+ }
11
+
12
+ align-content: start;
13
+ align-items: start;
14
+ display: grid;
15
+ background: var(--surface-primary-default);
16
+ border: 1px solid var(--ge-border-default);
17
+ border-radius: corner-radius.$s;
18
+ gap: spacing.$m;
19
+ padding: spacing.$m;
20
+ text-align: center;
21
+ text-decoration: none;
22
+ width: 100%;
23
+
24
+ @include break {
25
+ padding: spacing.$l;
26
+ }
27
+
28
+ &--disabled {
29
+ background: var(--surface-primary-disabled);
30
+ cursor: not-allowed;
31
+ pointer-events: none;
32
+ }
33
+
34
+ &--enabled {
35
+ transition: all 0.2s ease-in-out;
36
+ @media (hover: hover) {
37
+ &:hover {
38
+ background: var(--surface-primary-hover);
39
+ }
40
+ }
41
+ }
42
+
43
+ &--tall {
44
+ height: 100%;
45
+ }
46
+
47
+ &__icon {
48
+ place-self: center;
49
+ }
50
+
51
+ &__text {
52
+ display: grid;
53
+ gap: spacing.$m;
54
+ }
55
+
56
+ &__text-group {
57
+ display: grid;
58
+ gap: spacing.$xs;
59
+
60
+ &:empty {
61
+ display: none;
62
+ }
63
+ }
64
+
65
+ &__title {
66
+ color: var(--on-surface-primary-default);
67
+ }
68
+
69
+ &__data {
70
+ color: var(--on-surface-primary-default);
71
+ }
72
+
73
+ &__error {
74
+ color: var(--on-surface-error);
75
+ }
76
+
77
+ &__description {
78
+ color: var(--on-surface-primary-alternate);
79
+ }
80
+ }
@@ -0,0 +1,10 @@
1
+ import { ReactElement } from 'react';
2
+ export type NavigationCard = {
3
+ data: string[];
4
+ description?: string;
5
+ errors: string[];
6
+ href?: string;
7
+ icon?: ReactElement;
8
+ tall?: boolean;
9
+ title: string;
10
+ };
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=navigation-card.types.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/react/style.scss CHANGED
@@ -18,6 +18,7 @@
18
18
  @use "./message/message.scss";
19
19
  @use "./message-field/message-field.scss";
20
20
  @use "./modal/modal.scss";
21
+ @use "./navigation-card/navigation-card.scss";
21
22
  @use "./pagination/pagination.scss";
22
23
  @use "./progress-bar/progress-bar.scss";
23
24
  @use "./radio/radio.scss";