@sats-group/ui-lib 81.3.0 → 81.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 +1 -1
- package/react/icons/24/download.d.ts +3 -0
- package/react/icons/24/download.js +2 -0
- package/react/icons/24/download.js.map +7 -0
- package/react/link-card/link-card.js +1 -1
- package/react/link-card/link-card.js.map +3 -3
- package/react/link-card/link-card.scss +8 -9
- package/react/link-card/link-card.types.d.ts +6 -0
- package/react/link-card/link-card.types.js +1 -0
- package/react/link-card/link-card.types.js.map +4 -4
package/package.json
CHANGED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import*as e from"react";const l=()=>e.createElement("svg",{width:24,height:24,fill:"none"},e.createElement("path",{fill:"currentColor",fillRule:"evenodd",d:"M12 .25a.75.75 0 0 1 .75.75v14.19l4.72-4.72a.75.75 0 1 1 1.06 1.06L12 18.06l-6.53-6.53a.75.75 0 1 1 1.06-1.06l4.72 4.72V1A.75.75 0 0 1 12 .25M1.25 22a.75.75 0 0 1 .75-.75h20a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75",clipRule:"evenodd"}));var a=l;export{a as default};
|
|
2
|
+
//# sourceMappingURL=download.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../react/icons/24/download.tsx"],
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nconst SvgDownload = () =>\n /* @__PURE__ */ React.createElement(\n 'svg',\n { width: 24, height: 24, fill: 'none' },\n /* @__PURE__ */ React.createElement('path', {\n fill: 'currentColor',\n fillRule: 'evenodd',\n d: 'M12 .25a.75.75 0 0 1 .75.75v14.19l4.72-4.72a.75.75 0 1 1 1.06 1.06L12 18.06l-6.53-6.53a.75.75 0 1 1 1.06-1.06l4.72 4.72V1A.75.75 0 0 1 12 .25M1.25 22a.75.75 0 0 1 .75-.75h20a.75.75 0 0 1 0 1.5H2a.75.75 0 0 1-.75-.75',\n clipRule: 'evenodd',\n }),\n );\nexport default SvgDownload;\n"],
|
|
5
|
+
"mappings": "AAAA,UAAYA,MAAW,QACvB,MAAMC,EAAc,IACFD,EAAM,cACpB,MACA,CAAE,MAAO,GAAI,OAAQ,GAAI,KAAM,MAAO,EACtBA,EAAM,cAAc,OAAQ,CAC1C,KAAM,eACN,SAAU,UACV,EAAG,0NACH,SAAU,SACZ,CAAC,CACH,EACF,IAAOE,EAAQD",
|
|
6
|
+
"names": ["React", "SvgDownload", "download_default"]
|
|
7
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import*as
|
|
1
|
+
import*as s from"react";import l from"../icons/24/arrow-right";import t from"../icons/24/download";import i from"../text";import{variants as a}from"./link-card.types";const d=({href:o,text:r,title:m,variant:e=a.link})=>s.createElement("a",{className:"link-card",href:o},s.createElement(i,{className:"link-card__title",theme:i.themes.emphasis,size:i.sizes.basic},m),e===a.download?s.createElement(t,null):s.createElement(l,null),r?s.createElement("div",{className:"link-card__text"},s.createElement(i,{size:i.sizes.small},r)):null);var c=d;export{c as default};
|
|
2
2
|
//# sourceMappingURL=link-card.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../react/link-card/link-card.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\n\nimport ArrowRight from '../icons/24/arrow-right';\nimport Text from '../text';\n\nimport { LinkCard as Props } from './link-card.types';\n\nconst LinkCard: React.FC<Props> = ({
|
|
5
|
-
"mappings": "AAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAgB,0BACvB,OAAOC,MAAU,
|
|
6
|
-
"names": ["React", "ArrowRight", "Text", "LinkCard", "href", "text", "title", "link_card_default"]
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\n\nimport ArrowRight from '../icons/24/arrow-right';\nimport Download from '../icons/24/download';\nimport Text from '../text';\n\nimport { LinkCard as Props, variants } from './link-card.types';\n\nconst LinkCard: React.FC<Props> = ({\n href,\n text,\n title,\n variant = variants.link,\n}) => (\n <a className=\"link-card\" href={href}>\n <Text\n className=\"link-card__title\"\n theme={Text.themes.emphasis}\n size={Text.sizes.basic}\n >\n {title}\n </Text>\n {variant === variants.download ? <Download /> : <ArrowRight />}\n {text ? (\n <div className=\"link-card__text\">\n <Text size={Text.sizes.small}>{text}</Text>\n </div>\n ) : null}\n </a>\n);\n\nexport default LinkCard;\n"],
|
|
5
|
+
"mappings": "AAAA,UAAYA,MAAW,QAEvB,OAAOC,MAAgB,0BACvB,OAAOC,MAAc,uBACrB,OAAOC,MAAU,UAEjB,OAA4B,YAAAC,MAAgB,oBAE5C,MAAMC,EAA4B,CAAC,CACjC,KAAAC,EACA,KAAAC,EACA,MAAAC,EACA,QAAAC,EAAUL,EAAS,IACrB,IACEJ,EAAA,cAAC,KAAE,UAAU,YAAY,KAAMM,GAC7BN,EAAA,cAACG,EAAA,CACC,UAAU,mBACV,MAAOA,EAAK,OAAO,SACnB,KAAMA,EAAK,MAAM,OAEhBK,CACH,EACCC,IAAYL,EAAS,SAAWJ,EAAA,cAACE,EAAA,IAAS,EAAKF,EAAA,cAACC,EAAA,IAAW,EAC3DM,EACCP,EAAA,cAAC,OAAI,UAAU,mBACbA,EAAA,cAACG,EAAA,CAAK,KAAMA,EAAK,MAAM,OAAQI,CAAK,CACtC,EACE,IACN,EAGF,IAAOG,EAAQL",
|
|
6
|
+
"names": ["React", "ArrowRight", "Download", "Text", "variants", "LinkCard", "href", "text", "title", "variant", "link_card_default"]
|
|
7
7
|
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
1
|
@use '../../tokens/corner-radius';
|
|
2
|
-
@use '../../tokens/elevation';
|
|
3
2
|
@use '../../tokens/colours';
|
|
4
3
|
@use '../../tokens/spacing';
|
|
5
4
|
|
|
6
5
|
.link-card {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
align-items: center;
|
|
9
7
|
background: var(--surface-primary-default);
|
|
10
8
|
border-radius: corner-radius.$s;
|
|
11
|
-
|
|
9
|
+
border: 1px solid var(--ge-border-default);
|
|
10
|
+
color: var(--on-surface-primary-default);
|
|
12
11
|
display: grid;
|
|
13
12
|
gap: spacing.$s;
|
|
14
13
|
grid-template-columns: [first] [second];
|
|
15
14
|
padding: spacing.$m;
|
|
16
15
|
text-decoration: none;
|
|
17
16
|
|
|
17
|
+
> svg {
|
|
18
|
+
grid-column: 2;
|
|
19
|
+
justify-self: end;
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
@media (hover: hover) {
|
|
19
23
|
&:hover {
|
|
20
24
|
background: var(--surface-primary-hover);
|
|
@@ -26,11 +30,6 @@
|
|
|
26
30
|
grid-column: 1;
|
|
27
31
|
}
|
|
28
32
|
|
|
29
|
-
&__icon {
|
|
30
|
-
grid-column: 2;
|
|
31
|
-
justify-self: end;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
33
|
&__text {
|
|
35
34
|
grid-column: span 2;
|
|
36
35
|
}
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import type { ObjectValues } from '../types';
|
|
2
|
+
export declare const variants: {
|
|
3
|
+
readonly download: "download";
|
|
4
|
+
readonly link: "link";
|
|
5
|
+
};
|
|
1
6
|
export type LinkCard = {
|
|
2
7
|
href: string;
|
|
3
8
|
text?: string;
|
|
4
9
|
title: string;
|
|
10
|
+
variant?: ObjectValues<typeof variants>;
|
|
5
11
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
6
|
-
"names": []
|
|
3
|
+
"sources": ["../../../react/link-card/link-card.types.ts"],
|
|
4
|
+
"sourcesContent": ["import type { ObjectValues } from '../types';\n\nexport const variants = {\n download: 'download',\n link: 'link',\n} as const;\n\nexport type LinkCard = {\n href: string;\n text?: string;\n title: string;\n variant?: ObjectValues<typeof variants>;\n};\n"],
|
|
5
|
+
"mappings": "AAEO,MAAMA,EAAW,CACtB,SAAU,WACV,KAAM,MACR",
|
|
6
|
+
"names": ["variants"]
|
|
7
7
|
}
|