@rikstv/shared-components 0.4.3 → 0.6.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/dist/button/Button.css +1 -1
- package/dist/button/Button.d.ts +4 -4
- package/dist/button/Button.js +1 -1
- package/dist/button/IconButton.d.ts +4 -4
- package/dist/button/IconButton.js +1 -1
- package/dist/button/button-shared.scss +14 -5
- package/dist/button/button.scss +1 -0
- package/dist/core/RiksTV.css +1 -1
- package/dist/core/Strim.css +1 -1
- package/dist/core/mixin/fluid.scss +20 -0
- package/dist/core/rtv.scss +6 -2
- package/dist/core/strm.scss +7 -4
- package/dist/typography/Typography.css +1 -1
- package/dist/typography/typography.scss +24 -15
- package/package.json +8 -9
package/dist/button/Button.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.rds-button{padding:.78125rem var(--rds-spacing--32);border-radius:var(--rds-roundness--button);overflow-y:hidden;cursor:pointer;font-size:1.125rem}.rds-button__icon{display:flex;align-items:center;margin-right:var(--rds-spacing--16);width:1.125rem}.rds-button__icon>svg{width:100%}.rds-button__postfix{position:relative;display:flex;align-items:center;margin-left:var(--rds-spacing--16);padding-left:var(--rds-spacing--16)}.rds-button__postfix:before{content:" ";position:absolute;width:1px;background-color:currentColor;height:200%;left:0}.rds-button--loading:disabled{cursor:wait!important}.rds-button--loading:disabled:hover{box-shadow:none}.rds-button__shared{--common-button--primary-color: var(--rds-button-primary-fg);--common-button--primary-bg: var(--rds-accent-color);--common-button--primary-hover-bg: var(--rds-accent-hover);--common-button--primary-pressed-bg: var(--rds-accent-color);--common-button--secondary-border-color: var(--rds-foreground-primary);--common-button--secondary-color: var(--rds-foreground-primary);--common-button--secondary-hover-color: var(--rds-background-primary);--common-button--secondary-hover-bg: var(--rds-foreground-primary);--common-button--tertiary-bg: var(--rds-
|
|
1
|
+
.rds-button{padding:.78125rem var(--rds-spacing--32);border-radius:var(--rds-roundness--button);overflow-y:hidden;cursor:pointer;font-size:1.125rem}.rds-button__icon{display:flex;align-items:center;align-self:center;margin-right:var(--rds-spacing--16);width:1.125rem}.rds-button__icon>svg{width:100%}.rds-button__postfix{position:relative;display:flex;align-items:center;margin-left:var(--rds-spacing--16);padding-left:var(--rds-spacing--16)}.rds-button__postfix:before{content:" ";position:absolute;width:1px;background-color:currentColor;height:200%;left:0}.rds-button--loading:disabled{cursor:wait!important}.rds-button--loading:disabled:hover{box-shadow:none}.rds-button__shared{--common-button--primary-color: var(--rds-button-primary-fg);--common-button--primary-bg: var(--rds-accent-color);--common-button--primary-hover-bg: var(--rds-accent-hover);--common-button--primary-pressed-bg: var(--rds-accent-color);--common-button--secondary-border-color: var(--rds-foreground-primary);--common-button--secondary-color: var(--rds-foreground-primary);--common-button--secondary-bg: var(--rds-background-primary);--common-button--secondary-hover-color: var(--rds-background-primary);--common-button--secondary-hover-bg: var(--rds-foreground-primary);--common-button--secondary-pressed-color: var(--rds-button-secondary-pressed-fg);--common-button--secondary-pressed-bg: var(--rds-button-secondary-pressed-bg);--common-button--tertiary-bg: var(--rds-button-tertirary-bg);--common-button--tertiary-color: var(--rds-foreground-primary);--common-button--tertiary-hover-bg: var(--rds-button-tertiary-hover-bg);--common-button--tertiary-hover-color: var(--rds-foreground-primary);--common-button--tertiary-pressed-bg: var(--rds-background-tertiary);--common-button--tertiary-pressed-color: var(--rds-foreground-primary);--common-button--disabled-bg: var(--rds-foreground-secondary);--common-button--disabled-color: var(--rds-foreground-tertiary);border:none;width:auto;background:transparent;line-height:normal;-webkit-appearance:none;display:flex;transition:125ms ease-in-out;transition-property:color,box-shadow,background-color;font-family:var(--rds-font-family-m-headlines)}.rds-button__shared::-moz-focus-inner{border:0;padding:0}.rds-button__shared--primary{color:var(--common-button--primary-color);background-color:var(--common-button--primary-bg)}.rds-button__shared--primary:hover{background-color:var(--common-button--primary-hover-bg)}.rds-button__shared--primary:active{box-shadow:none;background-color:var(--common-button--primary-pressed-bg)}.rds-button__shared--secondary{background-color:var(--common-button--secondary-bg);border:2px solid var(--common-button--secondary-border-color);color:var(--common-button--secondary-color)}.rds-button__shared--secondary:hover{background-color:var(--common-button--secondary-hover-bg);color:var(--common-button--secondary-hover-color)}.rds-button__shared--secondary:active{background-color:var(--common-button--secondary-pressed-bg);color:var(--common-button--secondary-pressed-color);border-color:var(--common-button--secondary-pressed-bg)}.rds-button__shared--tertiary{background-color:var(--common-button--tertiary-bg);color:var(--common-button--tertiary-color)}.rds-button__shared--tertiary:hover{background-color:var(--common-button--tertiary-hover-bg);color:var(--common-button--tertiary-hover-color)}.rds-button__shared--tertiary:active{background-color:var(--common-button--tertiary-pressed-bg);color:var(--common-button--tertiary-pressed-color)}.rds-button__shared:disabled{background-color:var(--common-button--disabled-bg);color:var(--common-button--disabled-color);box-shadow:none;cursor:not-allowed;border:none}.rds-button__shared:hover{box-shadow:var(--rds-box-shadow--default)}.rds-button__shared:active{box-shadow:none}.rds-button__shared:focus::-moz-focus-inner{border-style:none;outline:0}.rds-button__shared:focus button::-moz-focus-inner,.rds-button__shared:focus [type=button]::-moz-focus-inner,.rds-button__shared:focus [type=reset]::-moz-focus-inner,.rds-button__shared:focus [type=submit]::-moz-focus-inner{border-style:none}.rds-button__shared:focus input[type=button]::-moz-focus-inner{outline:0}html:not([data-mousenavigation]):not([data-touchnavigation]) .rds-button__shared:focus{outline-offset:2px;outline:2px solid var(--rds-feedback-info);transition:outline-offset .25s ease}
|
package/dist/button/Button.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from "./BaseButton";
|
|
3
3
|
import "./button.scss";
|
|
4
4
|
import "./button-shared.scss";
|
|
5
|
-
export declare const PrimaryButton:
|
|
6
|
-
export declare const SecondaryButton:
|
|
7
|
-
export declare const TertiaryButton:
|
|
5
|
+
export declare const PrimaryButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
export declare const SecondaryButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
export declare const TertiaryButton: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
package/dist/button/Button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=Object.defineProperty,r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,
|
|
1
|
+
var t=Object.defineProperty,r=Object.getOwnPropertySymbols,e=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,a=(r,e,o)=>e in r?t(r,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):r[e]=o,n=(t,n)=>{for(var s in n||(n={}))e.call(n,s)&&a(t,s,n[s]);if(r)for(var s of r(n))o.call(n,s)&&a(t,s,n[s]);return t};import{forwardRef as s}from"react";import{B as y}from"./BaseButton.js";import{j as p}from"../core/RiksTV.js";const b=s(((t,r)=>p(y,n({buttonStyle:"rds-button",buttonType:"primary",ref:r},t))));b.displayName="PrimaryButton";const u=s(((t,r)=>p(y,n({buttonStyle:"rds-button",buttonType:"secondary",ref:r},t))));u.displayName="SecondaryButton";const i=s(((t,r)=>p(y,n({buttonStyle:"rds-button",buttonType:"tertiary",ref:r},t))));i.displayName="TertiaryButton";export{b as P,u as S,i as T};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
2
|
import { ButtonProps } from "./BaseButton";
|
|
3
3
|
import "./icon-button.scss";
|
|
4
4
|
import "./button-shared.scss";
|
|
@@ -6,7 +6,7 @@ interface IconButtonProps extends Omit<ButtonProps, "icon" | "postfix"> {
|
|
|
6
6
|
["aria-label"]: string;
|
|
7
7
|
icon: () => JSX.Element;
|
|
8
8
|
}
|
|
9
|
-
export declare const PrimaryIconButton:
|
|
10
|
-
export declare const SecondaryIconButton:
|
|
11
|
-
export declare const TertiaryIconButton:
|
|
9
|
+
export declare const PrimaryIconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
|
+
export declare const SecondaryIconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export declare const TertiaryIconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t=Object.defineProperty,o=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable,n=(o,r,e)=>r in o?t(o,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[r]=e,a=(t,a)=>{for(var s in a||(a={}))r.call(a,s)&&n(t,s,a[s]);if(o)for(var s of o(a))e.call(a,s)&&n(t,s,a[s]);return t};import{forwardRef as s}from"react";import{B as y}from"./BaseButton.js";import"./Button.js";import{j as i}from"../core/RiksTV.js";const p=s(((t,o)=>i(y,a({buttonStyle:"rds-icon-button",buttonType:"primary",ref:o},t))));p.displayName="PrimaryIconButton";const c=s(((t,o)=>i(y,a({buttonStyle:"rds-icon-button",buttonType:"secondary",ref:o},t))));c.displayName="SecondaryIconButton";const u=s(((t,o)=>i(y,a({buttonStyle:"rds-icon-button",buttonType:"tertiary",ref:o},t))));u.displayName="TertiaryIconButton";export{p as P,c as S,u as T};
|
|
@@ -8,14 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
--common-button--secondary-border-color: var(--rds-foreground-primary);
|
|
10
10
|
--common-button--secondary-color: var(--rds-foreground-primary);
|
|
11
|
+
--common-button--secondary-bg: var(--rds-background-primary);
|
|
11
12
|
--common-button--secondary-hover-color: var(--rds-background-primary);
|
|
12
13
|
--common-button--secondary-hover-bg: var(--rds-foreground-primary);
|
|
14
|
+
--common-button--secondary-pressed-color: var(--rds-button-secondary-pressed-fg);
|
|
15
|
+
--common-button--secondary-pressed-bg: var(--rds-button-secondary-pressed-bg);
|
|
13
16
|
|
|
14
|
-
--common-button--tertiary-bg: var(--rds-
|
|
17
|
+
--common-button--tertiary-bg: var(--rds-button-tertirary-bg);
|
|
15
18
|
--common-button--tertiary-color: var(--rds-foreground-primary);
|
|
16
|
-
--common-button--tertiary-hover-bg: var(--rds-
|
|
17
|
-
--common-button--tertiary-hover-color: var(--rds-
|
|
18
|
-
--common-button--tertiary-pressed-bg: var(--rds-background-
|
|
19
|
+
--common-button--tertiary-hover-bg: var(--rds-button-tertiary-hover-bg);
|
|
20
|
+
--common-button--tertiary-hover-color: var(--rds-foreground-primary);
|
|
21
|
+
--common-button--tertiary-pressed-bg: var(--rds-background-tertiary);
|
|
19
22
|
--common-button--tertiary-pressed-color: var(--rds-foreground-primary);
|
|
20
23
|
|
|
21
24
|
--common-button--disabled-bg: var(--rds-foreground-secondary);
|
|
@@ -58,7 +61,7 @@
|
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
&--secondary {
|
|
61
|
-
background-color:
|
|
64
|
+
background-color: var(--common-button--secondary-bg);
|
|
62
65
|
border: 2px solid var(--common-button--secondary-border-color);
|
|
63
66
|
color: var(--common-button--secondary-color);
|
|
64
67
|
|
|
@@ -66,6 +69,12 @@
|
|
|
66
69
|
background-color: var(--common-button--secondary-hover-bg);
|
|
67
70
|
color: var(--common-button--secondary-hover-color);
|
|
68
71
|
}
|
|
72
|
+
|
|
73
|
+
&:active {
|
|
74
|
+
background-color: var(--common-button--secondary-pressed-bg);
|
|
75
|
+
color: var(--common-button--secondary-pressed-color);
|
|
76
|
+
border-color: var(--common-button--secondary-pressed-bg);
|
|
77
|
+
}
|
|
69
78
|
}
|
|
70
79
|
|
|
71
80
|
&--tertiary {
|
package/dist/button/button.scss
CHANGED
package/dist/core/RiksTV.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--rds-spacing--2: .125rem;--rds-spacing--4: .25rem;--rds-spacing--8: .5rem;--rds-spacing--16: 1rem;--rds-spacing--24: 1.5rem;--rds-spacing--32: 2rem;--rds-spacing--48: 3rem;--rds-spacing--64: 4rem;--rds-spacing--80: 5rem;--rds-spacing--96: 6rem;--rds-box-shadow--default: 0px 8px 16px rgba(0, 0, 0, .5)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.rtv{--rds-button-primary-fg: #fff;--rds-accent-color: #ee4642;--rds-accent-color-mid: #ed302b;--rds-accent-color-dark: #d41612;--rds-accent-hover: #d41612;--rds-foreground-primary: #fff;--rds-foreground-secondary: #a8a8a8;--rds-foreground-tertiary: #666;--rds-heading-accent: var(--rds-foreground-primary);--rds-background-primary-rgb: 37, 37, 37;--rds-background-primary: rgb(var(--rds-background-primary-rgb));--rds-background-secondary: #
|
|
1
|
+
:root{--rds-spacing--2: .125rem;--rds-spacing--4: .25rem;--rds-spacing--8: .5rem;--rds-spacing--16: 1rem;--rds-spacing--24: 1.5rem;--rds-spacing--32: 2rem;--rds-spacing--48: 3rem;--rds-spacing--64: 4rem;--rds-spacing--80: 5rem;--rds-spacing--96: 6rem;--rds-box-shadow--default: 0px 8px 16px rgba(0, 0, 0, .5)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.rtv{--rds-button-primary-fg: #fff;--rds-button-secondary-pressed-fg: #666666;--rds-button-secondary-pressed-bg: #fff;--rds-button-tertirary-bg: #3b3b3b;--rds-button-tertiary-hover-bg: #434343;--rds-accent-color: #ee4642;--rds-accent-color-mid: #ed302b;--rds-accent-color-dark: #d41612;--rds-accent-hover: #d41612;--rds-foreground-primary: #fff;--rds-foreground-secondary: #a8a8a8;--rds-foreground-tertiary: #666;--rds-heading-accent: var(--rds-foreground-primary);--rds-background-primary-rgb: 37, 37, 37;--rds-background-primary: rgb(var(--rds-background-primary-rgb));--rds-background-secondary: #434343;--rds-background-tertiary: #0b0b0b;--rds-foreground-overlay-soft: rgba(255, 255, 255, .1);--rds-foreground-overlay-medium: rgba(255, 255, 255, .3);--rds-foreground-overlay-heavy: rgba(255, 255, 255, .7);--rds-background-overlay-soft: rgba(0, 0, 0, .1);--rds-background-overlay-medium: rgba(0, 0, 0, .5);--rds-background-overlay-heavy: rgba(0, 0, 0, .85);--rds-feedback-info: #00aec7;--rds-feedback-warning: #f2a900;--rds-feedback-confirm: #4cbb81;--rds-feedback-error: #e01c17;--rds-roundness--default: 4px;--rds-roundness--button: 34px;--rds-roundness--round: 50%;--rds-font-family-lg-headlines: "AvertaBold", Arial, Helvetica, "system-ui", sans-serif;--rds-font-family-headlines: "AvertaBold", Arial, Helvetica, "system-ui", sans-serif;--rds-font-family-m-headlines: "AvertaSemibold", Arial, Helvetica, "system-ui", sans-serif;--rds-font-family-body: "AvertaRegular", Arial, Helvetica, "system-ui", sans-serif;--rds-font-size--default: 1.125rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
package/dist/core/Strim.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--rds-spacing--2: .125rem;--rds-spacing--4: .25rem;--rds-spacing--8: .5rem;--rds-spacing--16: 1rem;--rds-spacing--24: 1.5rem;--rds-spacing--32: 2rem;--rds-spacing--48: 3rem;--rds-spacing--64: 4rem;--rds-spacing--80: 5rem;--rds-spacing--96: 6rem;--rds-box-shadow--default: 0px 8px 16px rgba(0, 0, 0, .5)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.strm{--stand-up-green: #49f5a4;--surface-background: #edfef6;--rds-button-primary-fg: #004b50;--rds-accent-color: #faed6f;--rds-accent-color-mid: #f7e426;--rds-accent-color-dark: #f7e426;--rds-accent-hover: #fcf4a9;--rds-foreground-primary: #ffffff;--rds-foreground-secondary: #b2bfbf;--rds-foreground-tertiary: #356e63;--rds-heading-accent: var(--stand-up-green);--rds-background-primary-rgb: 0, 42, 42;--rds-background-primary: rgb(var(--rds-background-primary-rgb));--rds-background-secondary: #
|
|
1
|
+
:root{--rds-spacing--2: .125rem;--rds-spacing--4: .25rem;--rds-spacing--8: .5rem;--rds-spacing--16: 1rem;--rds-spacing--24: 1.5rem;--rds-spacing--32: 2rem;--rds-spacing--48: 3rem;--rds-spacing--64: 4rem;--rds-spacing--80: 5rem;--rds-spacing--96: 6rem;--rds-box-shadow--default: 0px 8px 16px rgba(0, 0, 0, .5)}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);border:0}.strm{--stand-up-green: #49f5a4;--surface-background: #edfef6;--rds-button-primary-fg: #004b50;--rds-button-secondary-pressed-fg: #ffffff;--rds-button-secondary-pressed-bg: #001d1d;--rds-button-tertirary-bg: #193f3f;--rds-button-tertiary-hover-bg: #004b50;--rds-accent-color: #faed6f;--rds-accent-color-mid: #f7e426;--rds-accent-color-dark: #f7e426;--rds-accent-hover: #fcf4a9;--rds-foreground-primary: #ffffff;--rds-foreground-secondary: #b2bfbf;--rds-foreground-tertiary: #356e63;--rds-heading-accent: var(--stand-up-green);--rds-background-primary-rgb: 0, 42, 42;--rds-background-primary: rgb(var(--rds-background-primary-rgb));--rds-background-secondary: #001d1d;--rds-background-tertiary: #001515;--rds-foreground-overlay-soft: rgba(255, 255, 255, .1);--rds-foreground-overlay-medium: rgba(255, 255, 255, .3);--rds-foreground-overlay-heavy: rgba(255, 255, 255, .7);--rds-background-overlay-soft: rgba(0, 0, 0, .1);--rds-background-overlay-medium: rgba(0, 0, 0, .5);--rds-background-overlay-heavy: rgba(0, 0, 0, .85);--rds-feedback-info: #00aec7;--rds-feedback-warning: #f2a900;--rds-feedback-confirm: #4cbb81;--rds-feedback-error: #e01c17;--rds-roundness--default: 12px;--rds-roundness--button: 12px;--rds-roundness--round: 50%;--rds-font-family-lg-headlines: "HALMatex", "system-ui", sans-serif;--rds-font-family-headlines: "AvertaBold", Arial, Helvetica, "system-ui", sans-serif;--rds-font-family-m-headlines: "AvertaSemibold", Arial, Helvetica, "system-ui", sans-serif;--rds-font-family-body: "AvertaRegular", Arial, Helvetica, "system-ui", sans-serif;--rds-font-size--default: 1.125rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
$pixelsPerRem: 16; //in case people change their browser’s font
|
|
4
|
+
$minWidthPx: 576; //min view port in px
|
|
5
|
+
$maxWidthPx: 1920; //max view port in px
|
|
6
|
+
|
|
7
|
+
@function get-clamp($minFontSizePx, $maxFontSizePx) {
|
|
8
|
+
$minWidth: math.div($minWidthPx, $pixelsPerRem);
|
|
9
|
+
$maxWidth: math.div($maxWidthPx, $pixelsPerRem);
|
|
10
|
+
|
|
11
|
+
$minFontSize: math.div($minFontSizePx, $pixelsPerRem);
|
|
12
|
+
$maxFontSize: math.div($maxFontSizePx, $pixelsPerRem);
|
|
13
|
+
|
|
14
|
+
$slope: math.div($maxFontSize - $minFontSize, $maxWidth - $minWidth);
|
|
15
|
+
$yAxisIntersection: -$minWidth * $slope + $minFontSize;
|
|
16
|
+
|
|
17
|
+
$fluid: calc(#{$yAxisIntersection}rem + #{$slope * 100}vw);
|
|
18
|
+
|
|
19
|
+
@return clamp(#{$minFontSize}rem, #{$fluid}, #{$maxFontSize}rem);
|
|
20
|
+
}
|
package/dist/core/rtv.scss
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
.rtv {
|
|
4
4
|
--rds-button-primary-fg: #fff;
|
|
5
|
+
--rds-button-secondary-pressed-fg: #666666;
|
|
6
|
+
--rds-button-secondary-pressed-bg: #fff;
|
|
7
|
+
--rds-button-tertirary-bg: #3b3b3b;
|
|
8
|
+
--rds-button-tertiary-hover-bg: #434343;
|
|
5
9
|
--rds-accent-color: #ee4642;
|
|
6
10
|
--rds-accent-color-mid: #ed302b;
|
|
7
11
|
--rds-accent-color-dark: #d41612;
|
|
@@ -14,8 +18,8 @@
|
|
|
14
18
|
|
|
15
19
|
--rds-background-primary-rgb: 37, 37, 37;
|
|
16
20
|
--rds-background-primary: rgb(var(--rds-background-primary-rgb));
|
|
17
|
-
--rds-background-secondary: #
|
|
18
|
-
--rds-background-tertiary: #
|
|
21
|
+
--rds-background-secondary: #434343;
|
|
22
|
+
--rds-background-tertiary: #0b0b0b;
|
|
19
23
|
|
|
20
24
|
--rds-foreground-overlay-soft: rgba(255, 255, 255, 0.1);
|
|
21
25
|
--rds-foreground-overlay-medium: rgba(255, 255, 255, 0.3);
|
package/dist/core/strm.scss
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
.strm {
|
|
4
4
|
--stand-up-green: #49f5a4;
|
|
5
5
|
--surface-background: #edfef6;
|
|
6
|
-
|
|
7
6
|
--rds-button-primary-fg: #004b50;
|
|
7
|
+
--rds-button-secondary-pressed-fg: #ffffff;
|
|
8
|
+
--rds-button-secondary-pressed-bg: #001d1d;
|
|
9
|
+
--rds-button-tertirary-bg: #193f3f;
|
|
10
|
+
--rds-button-tertiary-hover-bg: #004b50;
|
|
8
11
|
--rds-accent-color: #faed6f;
|
|
9
12
|
--rds-accent-color-mid: #f7e426;
|
|
10
13
|
--rds-accent-color-dark: #f7e426;
|
|
@@ -17,8 +20,8 @@
|
|
|
17
20
|
|
|
18
21
|
--rds-background-primary-rgb: 0, 42, 42; // #002a2a
|
|
19
22
|
--rds-background-primary: rgb(var(--rds-background-primary-rgb));
|
|
20
|
-
--rds-background-secondary: #
|
|
21
|
-
--rds-background-tertiary: #
|
|
23
|
+
--rds-background-secondary: #001d1d;
|
|
24
|
+
--rds-background-tertiary: #001515;
|
|
22
25
|
|
|
23
26
|
--rds-foreground-overlay-soft: rgba(255, 255, 255, 0.1);
|
|
24
27
|
--rds-foreground-overlay-medium: rgba(255, 255, 255, 0.3);
|
|
@@ -37,7 +40,7 @@
|
|
|
37
40
|
--rds-roundness--button: 12px;
|
|
38
41
|
--rds-roundness--round: 50%;
|
|
39
42
|
|
|
40
|
-
--rds-font-family-lg-headlines: "
|
|
43
|
+
--rds-font-family-lg-headlines: "HALMatex", "system-ui", sans-serif;
|
|
41
44
|
--rds-font-family-headlines: "AvertaBold", Arial, Helvetica, "system-ui", sans-serif;
|
|
42
45
|
--rds-font-family-m-headlines: "AvertaSemibold", Arial, Helvetica, "system-ui", sans-serif;
|
|
43
46
|
--rds-font-family-body: "AvertaRegular", Arial, Helvetica, "system-ui", sans-serif;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.rds-display-title{font-family:var(--rds-font-family-lg-headlines);font-size:clamp(
|
|
1
|
+
.rds-display-title{font-family:var(--rds-font-family-lg-headlines);font-size:clamp(2.5rem,calc(1.4285714286rem + 2.9761904762vw),5rem);font-weight:normal;line-height:1.2;color:var(--rds-foreground-primary)}.rds-title-1{font-family:var(--rds-font-family-lg-headlines);font-size:clamp(1.875rem,calc(1.1785714286rem + 1.9345238095vw),3.5rem);font-weight:normal;line-height:1.2;color:var(--rds-foreground-primary)}.rds-title-2{font-family:var(--rds-font-family-lg-headlines);font-size:clamp(1.5rem,calc(1.0714285714rem + 1.1904761905vw),2.5rem);font-weight:normal;line-height:1.2;color:var(--rds-foreground-primary)}.rds-title-3{font-family:var(--rds-font-family-m-headlines);font-size:clamp(1.25rem,calc(1.1964285714rem + .1488095238vw),1.375rem);font-weight:normal;line-height:1.2;color:var(--rds-heading-accent)}.rds-title-4{font-family:var(--rds-font-family-m-headlines);font-size:clamp(1rem,calc(.9464285714rem + .1488095238vw),1.125rem);font-weight:normal;line-height:1.2;color:var(--rds-foreground-primary)}.rds-body{font-family:var(--rds-font-family-body);font-size:clamp(1rem,calc(.9464285714rem + .1488095238vw),1.125rem);font-weight:normal;line-height:1.5;color:var(--rds-foreground-primary)}.rds-sub-body{font-family:var(--rds-font-family-body);font-size:clamp(.875rem,calc(.8214285714rem + .1488095238vw),1rem);font-weight:normal;line-height:1.5;color:var(--rds-foreground-primary)}.rds-tag{font-family:var(--rds-font-family-headlines);text-transform:uppercase;font-size:clamp(.75rem,calc(.6964285714rem + .1488095238vw),.875rem);line-height:1.2;font-weight:normal;letter-spacing:.09375rem;color:var(--rds-foreground-primary)}.rds-bold{font-family:var(--rds-font-family-headlines);font-size:clamp(1.125rem,calc(1.125rem + 0vw),1.125rem);font-weight:normal;line-height:1.5;color:var(--rds-foreground-primary)}.rds-meta{font-family:var(--rds-font-family-body);font-size:clamp(.75rem,calc(.6964285714rem + .1488095238vw),.875rem);font-weight:normal;line-height:1.5;color:var(--rds-foreground-overlay-heavy)}.rds-light .rds-display-title{color:var(--rds-foreground-tertiary)}.rds-display-title--light{color:var(--rds-foreground-tertiary)}.rds-light .rds-title-1{color:var(--rds-button-primary-fg)}.rds-title-1--light{color:var(--rds-button-primary-fg)}.rds-light .rds-title-2{color:var(--rds-button-primary-fg)}.rds-title-2--light{color:var(--rds-button-primary-fg)}.rds-light .rds-title-3{color:var(--rds-button-primary-fg)}.rds-title-3--light{color:var(--rds-button-primary-fg)}.rds-light .rds-title-4{color:var(--rds-button-primary-fg)}.rds-title-4--light{color:var(--rds-button-primary-fg)}.rds-light .rds-body{color:var(--rds-background-primary)}.rds-body--light{color:var(--rds-background-primary)}.rds-light .rds-sub-body{color:var(--rds-button-primary-fg)}.rds-sub-body--light{color:var(--rds-button-primary-fg)}.rds-light .rds-tag{color:var(--rds-background-primary)}.rds-tag--light{color:var(--rds-background-primary)}.rds-light .rds-bold{color:var(--rds-background-primary)}.rds-bold--light{color:var(--rds-background-primary)}.rds-light .rds-meta{color:var(--rds-button-primary-fg)}.rds-meta--light{color:var(--rds-button-primary-fg)}
|
|
@@ -1,74 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
@use '../core/mixin/fluid';
|
|
2
|
+
|
|
3
3
|
.rds-display-title {
|
|
4
4
|
font-family: var(--rds-font-family-lg-headlines);
|
|
5
|
-
font-size: clamp(
|
|
5
|
+
font-size: fluid.get-clamp(40, 80);
|
|
6
|
+
font-weight: normal;
|
|
6
7
|
line-height: 1.2;
|
|
7
8
|
color: var(--rds-foreground-primary);
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.rds-title-1 {
|
|
11
12
|
font-family: var(--rds-font-family-lg-headlines);
|
|
12
|
-
font-size: clamp(
|
|
13
|
+
font-size: fluid.get-clamp(30, 56);
|
|
14
|
+
font-weight: normal;
|
|
13
15
|
line-height: 1.2;
|
|
14
16
|
color: var(--rds-foreground-primary);
|
|
15
17
|
}
|
|
16
18
|
|
|
17
19
|
.rds-title-2 {
|
|
18
20
|
font-family: var(--rds-font-family-lg-headlines);
|
|
19
|
-
font-size: clamp(
|
|
21
|
+
font-size: fluid.get-clamp(24, 40);
|
|
22
|
+
font-weight: normal;
|
|
20
23
|
line-height: 1.2;
|
|
21
24
|
color: var(--rds-foreground-primary);
|
|
22
25
|
}
|
|
23
26
|
|
|
24
27
|
.rds-title-3 {
|
|
25
28
|
font-family: var(--rds-font-family-m-headlines);
|
|
26
|
-
font-size: clamp(
|
|
29
|
+
font-size: fluid.get-clamp(20, 22);
|
|
30
|
+
font-weight: normal;
|
|
27
31
|
line-height: 1.2;
|
|
28
32
|
color: var(--rds-heading-accent);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
.rds-title-4 {
|
|
32
36
|
font-family: var(--rds-font-family-m-headlines);
|
|
33
|
-
font-size: clamp(
|
|
37
|
+
font-size: fluid.get-clamp(16, 18);
|
|
38
|
+
font-weight: normal;
|
|
34
39
|
line-height: 1.2;
|
|
35
40
|
color: var(--rds-foreground-primary);
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.rds-body {
|
|
39
44
|
font-family: var(--rds-font-family-body);
|
|
40
|
-
font-size: clamp(
|
|
45
|
+
font-size: fluid.get-clamp(16, 18);
|
|
46
|
+
font-weight: normal;
|
|
41
47
|
line-height: 1.5;
|
|
42
48
|
color: var(--rds-foreground-primary);
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
.rds-sub-body {
|
|
46
52
|
font-family: var(--rds-font-family-body);
|
|
47
|
-
font-size: clamp(
|
|
53
|
+
font-size: fluid.get-clamp(14, 16);
|
|
54
|
+
font-weight: normal;
|
|
48
55
|
line-height: 1.5;
|
|
49
56
|
color: var(--rds-foreground-primary);
|
|
50
57
|
}
|
|
51
58
|
|
|
52
59
|
.rds-tag {
|
|
53
|
-
font-family: var(--rds-font-family-
|
|
60
|
+
font-family: var(--rds-font-family-headlines);
|
|
54
61
|
text-transform: uppercase;
|
|
55
|
-
font-size: clamp(
|
|
62
|
+
font-size: fluid.get-clamp(12, 14);
|
|
56
63
|
line-height: 1.2;
|
|
64
|
+
font-weight: normal;
|
|
57
65
|
letter-spacing: 0.09375rem;
|
|
58
66
|
color: var(--rds-foreground-primary);
|
|
59
67
|
}
|
|
60
68
|
|
|
61
69
|
.rds-bold {
|
|
62
|
-
font-family: var(--rds-font-family-
|
|
63
|
-
font-
|
|
64
|
-
font-
|
|
70
|
+
font-family: var(--rds-font-family-headlines);
|
|
71
|
+
font-size: fluid.get-clamp(18, 18);
|
|
72
|
+
font-weight: normal;
|
|
65
73
|
line-height: 1.5;
|
|
66
74
|
color: var(--rds-foreground-primary);
|
|
67
75
|
}
|
|
68
76
|
|
|
69
77
|
.rds-meta {
|
|
70
78
|
font-family: var(--rds-font-family-body);
|
|
71
|
-
font-size: clamp(
|
|
79
|
+
font-size: fluid.get-clamp(12, 14);
|
|
80
|
+
font-weight: normal;
|
|
72
81
|
line-height: 1.5;
|
|
73
82
|
color: var(--rds-foreground-overlay-heavy);
|
|
74
83
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rikstv/shared-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -31,18 +31,17 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@cypress/react": "^5.
|
|
35
|
-
"@cypress/vite-dev-server": "^2.0
|
|
36
|
-
"@testing-library/cypress": "^8.0.
|
|
37
|
-
"react-hook-form": "^7.
|
|
34
|
+
"@cypress/react": "^5.10.0",
|
|
35
|
+
"@cypress/vite-dev-server": "^2.1.0",
|
|
36
|
+
"@testing-library/cypress": "^8.0.1",
|
|
37
|
+
"react-hook-form": "^7.15.3",
|
|
38
38
|
"rollup-plugin-copy": "^3.4.0",
|
|
39
39
|
"rollup-plugin-svg": "^2.0.0",
|
|
40
40
|
"vite-plugin-react-svg": "^0.2.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@types/react": "^16.8.6 || ^17
|
|
44
|
-
"@types/react-dom": "^16.8.6 || ^17
|
|
45
|
-
"react": "^16.8.
|
|
46
|
-
"react-dom": "^16.8.6 || ^17.0.0"
|
|
43
|
+
"@types/react": "^16.8.6 || ^17",
|
|
44
|
+
"@types/react-dom": "^16.8.6 || ^17",
|
|
45
|
+
"react": "^16.8.0 || ^17"
|
|
47
46
|
}
|
|
48
47
|
}
|