@sats-group/ui-lib 81.4.0 → 81.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/package.json +1 -1
- package/react/select/select.d.ts +2 -1
- package/react/select/select.js +1 -1
- package/react/select/select.js.map +3 -3
- package/react/select/select.scss +19 -0
- package/react/select/select.types.d.ts +5 -0
- package/react/select/select.types.js +1 -1
- package/react/select/select.types.js.map +3 -3
- package/tokens/dark.scss +3 -1
- package/tokens/darkmode.css +7 -5
- package/tokens/default-colours.css +6 -4
- package/tokens/light.scss +6 -4
- package/tokens/lightmode.css +6 -4
- package/tokens/primitives.scss +2 -2
package/package.json
CHANGED
package/react/select/select.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { labelPositions, Select as Props, variants } from './select.types';
|
|
2
|
+
import { labelPositions, Select as Props, themes, variants } from './select.types';
|
|
3
3
|
declare const SelectComponent: <OptionExtra>(props: Props<OptionExtra> & {
|
|
4
4
|
ref?: React.Ref<HTMLSelectElement>;
|
|
5
5
|
}) => React.ReactElement;
|
|
6
6
|
declare const Select: typeof SelectComponent & {
|
|
7
7
|
labelPositions: typeof labelPositions;
|
|
8
8
|
variants: typeof variants;
|
|
9
|
+
themes: typeof themes;
|
|
9
10
|
};
|
|
10
11
|
export default Select;
|
package/react/select/select.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";var
|
|
1
|
+
"use client";var A=Object.defineProperty;var r=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,x=Object.prototype.propertyIsEnumerable;var b=(e,s,t)=>s in e?A(e,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[s]=t,f=(e,s)=>{for(var t in s||(s={}))w.call(s,t)&&b(e,t,s[t]);if(r)for(var t of r(s))x.call(s,t)&&b(e,t,s[t]);return e};var C=(e,s)=>{var t={};for(var n in e)w.call(e,n)&&s.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&r)for(var n of r(e))s.indexOf(n)<0&&x.call(e,n)&&(t[n]=e[n]);return t};import c from"classnames";import*as l from"react";import D from"../use-input-validation";import F from"../select-option/select-option";import i from"../text";import W from"../icons/18/arrow-down";import{labelPositions as E,themes as B,variants as h}from"./select.types";const y=l.forwardRef((J,z)=>{var S=J,{children:e,className:s,id:t,isLabelVisible:n=!0,label:m,labelPosition:O=E.stacked,name:P,onChange:T=()=>{},onChangeOption:$=()=>{},options:u=[],required:p,spaceBetween:k,theme:o,variant:N=h.large,wide:_}=S,v=C(S,["children","className","id","isLabelVisible","label","labelPosition","name","onChange","onChangeOption","options","required","spaceBetween","theme","variant","wide"]);const[H,M,d]=D(),L=a=>{T(a),$(u.find(({value:j})=>j===a.target.value)),H(a)},g=p?l.createElement("span",{className:"select__asterisk"},"*"):null;return l.createElement("div",{className:c("select",s,{"select--error":d})},l.createElement("div",{className:c(`select__content select__content--position-${O}`,{"select__content--wide":_,"select__content--space-between":k,[`select__content--theme-${o}`]:o})},n?l.createElement("label",{className:"select__label",htmlFor:t},m||e?l.createElement("div",{className:"select__label-text"},l.createElement(i,{size:N===h.small?i.sizes.small:i.sizes.basic,theme:o===I.themes.ghost?i.themes.normal:i.themes.emphasis},m),g,e):p?g:null):null,l.createElement("div",{className:c("select__native-wrapper",{"select__native-wrapper--wide":_})},l.createElement("select",f({"aria-label":n?void 0:m,className:c(`select__select select__select--variant-${N}`,{"select__select--wide":_,[`select__select--theme-${o}`]:o}),id:t,name:P,onChange:L,onInvalid:a=>{v.onInvalid&&v.onInvalid(a),M(a)},ref:z,required:p},v),u.map(a=>l.createElement(F,f({key:a.value},a)))),l.createElement("span",{className:c("select__chevron",{[`select__chevron--theme-${o}`]:o})},l.createElement(W,null))),d?l.createElement("div",{"aria-hidden":"true",className:"select__error"},d):null))});y.displayName="Select";const G=y,I=Object.assign(G,{labelPositions:E,variants:h,themes:B});var R=I;export{R as default};
|
|
2
2
|
//# sourceMappingURL=select.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../react/select/select.tsx"],
|
|
4
|
-
"sourcesContent": ["'use client';\n\nimport cn from 'classnames';\nimport * as React from 'react';\n\nimport useInputValidation from '../use-input-validation';\n\nimport Option from '../select-option/select-option';\nimport Text from '../text';\nimport SvgArrowDown from '../icons/18/arrow-down';\n\nimport {
|
|
5
|
-
"mappings": "wgBAEA,OAAOA,MAAQ,aACf,UAAYC,MAAW,QAEvB,OAAOC,MAAwB,0BAE/B,OAAOC,MAAY,iCACnB,OAAOC,MAAU,UACjB,OAAOC,MAAkB,yBAEzB,
|
|
6
|
-
"names": ["cn", "React", "useInputValidation", "Option", "Text", "SvgArrowDown", "labelPositions", "variants", "RefSelect", "_a", "ref", "_b", "children", "className", "id", "isLabelVisible", "label", "labelPosition", "name", "onChange", "onChangeOption", "options", "required", "variant", "wide", "restProps", "__objRest", "validationOnChange", "onInvalid", "error", "onInputChange", "e", "value", "asterix", "
|
|
4
|
+
"sourcesContent": ["'use client';\n\nimport cn from 'classnames';\nimport * as React from 'react';\n\nimport useInputValidation from '../use-input-validation';\n\nimport Option from '../select-option/select-option';\nimport Text from '../text';\nimport SvgArrowDown from '../icons/18/arrow-down';\n\nimport {\n labelPositions,\n Select as Props,\n themes,\n variants,\n} from './select.types';\n\n// NOTE: `onChangeOption` works like `onChange` but returns the props for that option instead of an event object.\nconst RefSelect = React.forwardRef<\n HTMLSelectElement,\n React.PropsWithChildren<Props>\n>(\n (\n {\n children,\n className,\n id,\n isLabelVisible = true,\n label,\n labelPosition = labelPositions.stacked,\n name,\n onChange = () => {},\n onChangeOption = () => {},\n options = [],\n required,\n spaceBetween,\n theme,\n variant = variants.large,\n wide,\n ...restProps\n },\n ref,\n ) => {\n const [validationOnChange, onInvalid, error] = useInputValidation();\n\n const onInputChange = (e: React.ChangeEvent<HTMLSelectElement>) => {\n onChange(e);\n onChangeOption(options.find(({ value }) => value === e.target.value));\n validationOnChange(e);\n };\n\n const asterix = required ? (\n <span className=\"select__asterisk\">*</span>\n ) : null;\n\n return (\n <div className={cn('select', className, { 'select--error': error })}>\n <div\n className={cn(\n `select__content select__content--position-${labelPosition}`,\n {\n 'select__content--wide': wide,\n 'select__content--space-between': spaceBetween,\n [`select__content--theme-${theme}`]: theme,\n },\n )}\n >\n {isLabelVisible ? (\n <label className=\"select__label\" htmlFor={id}>\n {label || children ? (\n <div className=\"select__label-text\">\n <Text\n size={\n variant === variants.small\n ? Text.sizes.small\n : Text.sizes.basic\n }\n theme={\n theme === Select.themes.ghost\n ? Text.themes.normal\n : Text.themes.emphasis\n }\n >\n {label}\n </Text>\n {asterix}\n {children}\n </div>\n ) : required ? (\n asterix\n ) : null}\n </label>\n ) : null}\n <div\n className={cn('select__native-wrapper', {\n 'select__native-wrapper--wide': wide,\n })}\n >\n <select\n aria-label={isLabelVisible ? undefined : label}\n className={cn(\n `select__select select__select--variant-${variant}`,\n {\n 'select__select--wide': wide,\n [`select__select--theme-${theme}`]: theme,\n },\n )}\n id={id}\n name={name}\n onChange={onInputChange}\n onInvalid={e => {\n // NOTE: To not break compatibility\n if (restProps.onInvalid) restProps.onInvalid(e);\n onInvalid(e);\n }}\n ref={ref}\n required={required}\n {...restProps}\n >\n {options.map(option => (\n <Option key={option.value} {...option} />\n ))}\n </select>\n <span\n className={cn(`select__chevron`, {\n [`select__chevron--theme-${theme}`]: theme,\n })}\n >\n <SvgArrowDown />\n </span>\n </div>\n\n {/* NOTE: This is aria-hidden because reporting of validation errors is handled by the browser */}\n {error ? (\n <div aria-hidden=\"true\" className=\"select__error\">\n {error}\n </div>\n ) : null}\n </div>\n </div>\n );\n },\n);\n\n// NOTE: If this isn't set, stack traces say \"forwardRef\" instead of \"Select\"\nRefSelect.displayName = 'Select';\n\n// NOTE: Since `React.forwardRef` props aren't generic, the component is cast so that generics work as intended. See https://stackoverflow.com/a/58473012\nconst SelectComponent = RefSelect as <OptionExtra>(\n props: Props<OptionExtra> & {\n ref?: React.Ref<HTMLSelectElement>;\n },\n) => React.ReactElement;\n\nconst Select: typeof SelectComponent & {\n labelPositions: typeof labelPositions;\n variants: typeof variants;\n themes: typeof themes;\n} = Object.assign(SelectComponent, { labelPositions, variants, themes });\n\nexport default Select;\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["cn", "React", "useInputValidation", "Option", "Text", "SvgArrowDown", "labelPositions", "themes", "variants", "RefSelect", "_a", "ref", "_b", "children", "className", "id", "isLabelVisible", "label", "labelPosition", "name", "onChange", "onChangeOption", "options", "required", "spaceBetween", "theme", "variant", "wide", "restProps", "__objRest", "validationOnChange", "onInvalid", "error", "onInputChange", "e", "value", "asterix", "Select", "__spreadValues", "option", "SelectComponent", "select_default"]
|
|
7
7
|
}
|
package/react/select/select.scss
CHANGED
|
@@ -22,6 +22,14 @@
|
|
|
22
22
|
&--wide {
|
|
23
23
|
flex-wrap: nowrap;
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
&--space-between {
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&--theme-ghost {
|
|
31
|
+
padding-left: spacing.$xs;
|
|
32
|
+
}
|
|
25
33
|
}
|
|
26
34
|
|
|
27
35
|
// NOTE: Specificity hack
|
|
@@ -54,6 +62,10 @@
|
|
|
54
62
|
pointer-events: none;
|
|
55
63
|
display: flex;
|
|
56
64
|
align-items: center;
|
|
65
|
+
|
|
66
|
+
&--theme-ghost {
|
|
67
|
+
right: spacing.$xs;
|
|
68
|
+
}
|
|
57
69
|
}
|
|
58
70
|
|
|
59
71
|
&__select {
|
|
@@ -84,6 +96,13 @@
|
|
|
84
96
|
padding-left: spacing.$m;
|
|
85
97
|
}
|
|
86
98
|
|
|
99
|
+
&--theme-ghost {
|
|
100
|
+
border: 0;
|
|
101
|
+
padding-top: spacing.$xs;
|
|
102
|
+
padding-bottom: spacing.$xs;
|
|
103
|
+
padding-left: spacing.$xs;
|
|
104
|
+
}
|
|
105
|
+
|
|
87
106
|
@media (hover: hover) {
|
|
88
107
|
&:hover {
|
|
89
108
|
&:not(:disabled) {
|
|
@@ -8,6 +8,9 @@ export declare const variants: {
|
|
|
8
8
|
readonly small: "small";
|
|
9
9
|
readonly large: "large";
|
|
10
10
|
};
|
|
11
|
+
export declare const themes: {
|
|
12
|
+
readonly ghost: "ghost";
|
|
13
|
+
};
|
|
11
14
|
export type Select<OptionExtra = any> = {
|
|
12
15
|
id: string;
|
|
13
16
|
isLabelVisible?: boolean;
|
|
@@ -18,4 +21,6 @@ export type Select<OptionExtra = any> = {
|
|
|
18
21
|
options?: SelectOption<OptionExtra>[];
|
|
19
22
|
variant?: ObjectValues<typeof variants>;
|
|
20
23
|
wide?: boolean;
|
|
24
|
+
theme?: ObjectValues<typeof themes>;
|
|
25
|
+
spaceBetween?: boolean;
|
|
21
26
|
} & SelectHtmlProps;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a={inline:"inline",stacked:"stacked"},i={small:"small",large:"large"},l={ghost:"ghost"};export{a as labelPositions,l as themes,i as variants};
|
|
2
2
|
//# sourceMappingURL=select.types.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../react/select/select.types.ts"],
|
|
4
|
-
"sourcesContent": ["import { ObjectValues, SelectHtmlProps } from '../types';\n\nimport { SelectOption } from '../select-option/select-option.types';\n\nexport const labelPositions = {\n inline: 'inline',\n stacked: 'stacked',\n} as const;\n\nexport const variants = {\n small: 'small',\n large: 'large',\n} as const;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type Select<OptionExtra = any> = {\n id: string;\n isLabelVisible?: boolean;\n label?: string;\n labelPosition?: ObjectValues<typeof labelPositions>;\n name: string;\n onChangeOption?: (option?: SelectOption<OptionExtra>) => void;\n options?: SelectOption<OptionExtra>[];\n variant?: ObjectValues<typeof variants>;\n wide?: boolean;\n} & SelectHtmlProps;\n"],
|
|
5
|
-
"mappings": "AAIO,MAAMA,EAAiB,CAC5B,OAAQ,SACR,QAAS,SACX,EAEaC,EAAW,CACtB,MAAO,QACP,MAAO,OACT",
|
|
6
|
-
"names": ["labelPositions", "variants"]
|
|
4
|
+
"sourcesContent": ["import { ObjectValues, SelectHtmlProps } from '../types';\n\nimport { SelectOption } from '../select-option/select-option.types';\n\nexport const labelPositions = {\n inline: 'inline',\n stacked: 'stacked',\n} as const;\n\nexport const variants = {\n small: 'small',\n large: 'large',\n} as const;\n\nexport const themes = {\n ghost: 'ghost',\n} as const;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type Select<OptionExtra = any> = {\n id: string;\n isLabelVisible?: boolean;\n label?: string;\n labelPosition?: ObjectValues<typeof labelPositions>;\n name: string;\n onChangeOption?: (option?: SelectOption<OptionExtra>) => void;\n options?: SelectOption<OptionExtra>[];\n variant?: ObjectValues<typeof variants>;\n wide?: boolean;\n theme?: ObjectValues<typeof themes>;\n spaceBetween?: boolean;\n} & SelectHtmlProps;\n"],
|
|
5
|
+
"mappings": "AAIO,MAAMA,EAAiB,CAC5B,OAAQ,SACR,QAAS,SACX,EAEaC,EAAW,CACtB,MAAO,QACP,MAAO,OACT,EAEaC,EAAS,CACpB,MAAO,OACT",
|
|
6
|
+
"names": ["labelPositions", "variants", "themes"]
|
|
7
7
|
}
|
package/tokens/dark.scss
CHANGED
|
@@ -120,6 +120,7 @@ $ge-graphs-trend-neutral: primitives.$coral-130;
|
|
|
120
120
|
$ge-graphs-trend-upwards: primitives.$spring-green-80;
|
|
121
121
|
$ge-icons-attention: primitives.$gold-100;
|
|
122
122
|
$ge-icons-delete: primitives.$chili-red-80;
|
|
123
|
+
$ge-icons-featured: primitives.$coral-100;
|
|
123
124
|
$ge-icons-fixed: primitives.$white-100;
|
|
124
125
|
$ge-icons-negative: primitives.$cardinal-100;
|
|
125
126
|
$ge-icons-positive: primitives.$spring-green-80;
|
|
@@ -134,7 +135,7 @@ $ge-indicator-tags-information-alternate: primitives.$bright-blue-160;
|
|
|
134
135
|
$ge-indicator-tags-information-default: primitives.$bright-blue-100;
|
|
135
136
|
$ge-indicator-tags-negative-alternate: primitives.$cardinal-170;
|
|
136
137
|
$ge-indicator-tags-negative-default: primitives.$cardinal-100;
|
|
137
|
-
$ge-indicator-tags-neutral-alternate: primitives.$
|
|
138
|
+
$ge-indicator-tags-neutral-alternate: primitives.$white-10;
|
|
138
139
|
$ge-indicator-tags-neutral-default: primitives.$black-60;
|
|
139
140
|
$ge-indicator-tags-positive-alternate: primitives.$spring-green-170;
|
|
140
141
|
$ge-indicator-tags-positive-default: primitives.$spring-green-100;
|
|
@@ -188,6 +189,7 @@ $ge-signal-border-success: primitives.$spring-green-30;
|
|
|
188
189
|
$ge-signal-border-waiting-list: primitives.$egyptian-purple-60;
|
|
189
190
|
$ge-signal-border-warning: primitives.$gold-30;
|
|
190
191
|
$ge-skeleton-default: primitives.$black-80;
|
|
192
|
+
$ge-skeleton-fixed: primitives.$white-40;
|
|
191
193
|
$ge-tabs-background-default: primitives.$white-0;
|
|
192
194
|
$ge-tabs-background-disabled: primitives.$black-95;
|
|
193
195
|
$ge-tabs-background-hover: primitives.$coral-190;
|
package/tokens/darkmode.css
CHANGED
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
--ge-graphs-trend-upwards: #3a9979;
|
|
120
120
|
--ge-icons-attention: #e2b74a;
|
|
121
121
|
--ge-icons-delete: #e15b51;
|
|
122
|
+
--ge-icons-featured: #fa5333;
|
|
122
123
|
--ge-icons-fixed: #ffffff;
|
|
123
124
|
--ge-icons-negative: #b93947;
|
|
124
125
|
--ge-icons-positive: #3a9979;
|
|
@@ -131,15 +132,15 @@
|
|
|
131
132
|
--ge-indicator-tags-featured-default: #fb6447;
|
|
132
133
|
--ge-indicator-tags-information-alternate: #0f2f46;
|
|
133
134
|
--ge-indicator-tags-information-default: #2676b0;
|
|
134
|
-
--ge-indicator-tags-negative-alternate: #
|
|
135
|
+
--ge-indicator-tags-negative-alternate: #4a171c;
|
|
135
136
|
--ge-indicator-tags-negative-default: #b93947;
|
|
136
|
-
--ge-indicator-tags-neutral-alternate: #
|
|
137
|
+
--ge-indicator-tags-neutral-alternate: #ffffff1a;
|
|
137
138
|
--ge-indicator-tags-neutral-default: #666666;
|
|
138
139
|
--ge-indicator-tags-positive-alternate: #03261a;
|
|
139
140
|
--ge-indicator-tags-positive-default: #097f58;
|
|
140
141
|
--ge-indicators-attention-alternate: #443716;
|
|
141
142
|
--ge-indicators-attention-default: #e2b74a;
|
|
142
|
-
--ge-indicators-negative-alternate: #
|
|
143
|
+
--ge-indicators-negative-alternate: #4a171c;
|
|
143
144
|
--ge-indicators-negative-default: #b93947;
|
|
144
145
|
--ge-indicators-neutral-alternate: #333333;
|
|
145
146
|
--ge-indicators-neutral-default: #9ea6ae;
|
|
@@ -187,6 +188,7 @@
|
|
|
187
188
|
--ge-signal-border-waiting-list: #8787b9;
|
|
188
189
|
--ge-signal-border-warning: #f3e6c5;
|
|
189
190
|
--ge-skeleton-default: #333333;
|
|
191
|
+
--ge-skeleton-fixed: #ffffff66;
|
|
190
192
|
--ge-tabs-background-default: #ffffff00;
|
|
191
193
|
--ge-tabs-background-disabled: #0d0d0d;
|
|
192
194
|
--ge-tabs-background-hover: #32110a;
|
|
@@ -382,7 +384,7 @@
|
|
|
382
384
|
--on-buttons-on-waiting-list-outlined-default: #5f5fa2;
|
|
383
385
|
--on-buttons-on-waiting-list-outlined-disabled: #808080;
|
|
384
386
|
--on-buttons-on-waiting-list-outlined-hover: #37378b;
|
|
385
|
-
--signal-surface-error: #
|
|
387
|
+
--signal-surface-error: #4a171c;
|
|
386
388
|
--signal-surface-featured: #32110a;
|
|
387
389
|
--signal-surface-information: #0f2f46;
|
|
388
390
|
--signal-surface-neutral: #1a1a1a;
|
|
@@ -407,7 +409,7 @@
|
|
|
407
409
|
--workout-surface-gymfloor-hover: #644000;
|
|
408
410
|
--workout-surface-other: #051e0e;
|
|
409
411
|
--workout-surface-other-hover: #184629;
|
|
410
|
-
--workout-surface-pt: #
|
|
412
|
+
--workout-surface-pt: #002a47;
|
|
411
413
|
--workout-surface-pt-hover: #16496c;
|
|
412
414
|
--workout-surface-treatments: #011314;
|
|
413
415
|
--workout-surface-treatments-hover: #04383b;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
html:not([data-theme]) {
|
|
2
2
|
--background-primary-default: #f3f4f5;
|
|
3
|
-
--background-primary-hover: #
|
|
3
|
+
--background-primary-hover: #e7e9eb;
|
|
4
4
|
--background-primary-selected: #f3f4f5;
|
|
5
5
|
--background-secondary-default: #ffffff;
|
|
6
|
-
--background-secondary-hover: #
|
|
6
|
+
--background-secondary-hover: #f7f7f7;
|
|
7
7
|
--background-secondary-selected: #ffffff;
|
|
8
8
|
--buttons-action-default: #ffffff00;
|
|
9
9
|
--buttons-action-disabled: #ffffff00;
|
|
@@ -119,6 +119,7 @@ html:not([data-theme]) {
|
|
|
119
119
|
--ge-graphs-trend-upwards: #3a9979;
|
|
120
120
|
--ge-icons-attention: #e2b74a;
|
|
121
121
|
--ge-icons-delete: #d93226;
|
|
122
|
+
--ge-icons-featured: #fa5333;
|
|
122
123
|
--ge-icons-fixed: #ffffff;
|
|
123
124
|
--ge-icons-negative: #b93947;
|
|
124
125
|
--ge-icons-positive: #097f58;
|
|
@@ -187,6 +188,7 @@ html:not([data-theme]) {
|
|
|
187
188
|
--ge-signal-border-waiting-list: #5f5fa2;
|
|
188
189
|
--ge-signal-border-warning: #866c2a;
|
|
189
190
|
--ge-skeleton-default: #dcdee0;
|
|
191
|
+
--ge-skeleton-fixed: #ffffff66;
|
|
190
192
|
--ge-tabs-background-default: #ffffff00;
|
|
191
193
|
--ge-tabs-background-disabled: #e7e9eb;
|
|
192
194
|
--ge-tabs-background-hover: #fff6f5;
|
|
@@ -213,7 +215,7 @@ html:not([data-theme]) {
|
|
|
213
215
|
--ge-workouts-pt: #70c4ff;
|
|
214
216
|
--ge-workouts-treatments: #065d63;
|
|
215
217
|
--on-background-error: #942e39;
|
|
216
|
-
--on-background-featured: #
|
|
218
|
+
--on-background-featured: #af3a24;
|
|
217
219
|
--on-background-information: #226a9e;
|
|
218
220
|
--on-background-neutral: #666666;
|
|
219
221
|
--on-background-success: #076646;
|
|
@@ -395,7 +397,7 @@ html:not([data-theme]) {
|
|
|
395
397
|
--surface-primary-selected: #d4e4ef;
|
|
396
398
|
--surface-secondary-default: #f7f7f7;
|
|
397
399
|
--surface-secondary-disabled: #e5e5e5;
|
|
398
|
-
--surface-secondary-hover: #
|
|
400
|
+
--surface-secondary-hover: #f2f2f2;
|
|
399
401
|
--surface-secondary-selected: #f2f2f2;
|
|
400
402
|
--workout-surface-availability: #dcdee0;
|
|
401
403
|
--workout-surface-availability-hover: #cfd3d6;
|
package/tokens/light.scss
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@use './primitives';
|
|
2
2
|
/* Figma: https://www.figma.com/file/WzKCwRY09zn4rzRVfY0YvdRt/%F0%9F%8E%A8-sats-ds-styles?type=design&node-id=8481%3A40160&mode=design&t=4Gq1pqiSLpmo4bBj-1 */
|
|
3
3
|
$background-primary-default: primitives.$blue-5;
|
|
4
|
-
$background-primary-hover: primitives.$
|
|
4
|
+
$background-primary-hover: primitives.$blue-10;
|
|
5
5
|
$background-primary-selected: primitives.$blue-5;
|
|
6
6
|
$background-secondary-default: primitives.$white-100;
|
|
7
|
-
$background-secondary-hover: primitives.$
|
|
7
|
+
$background-secondary-hover: primitives.$black-3;
|
|
8
8
|
$background-secondary-selected: primitives.$white-100;
|
|
9
9
|
$buttons-action-default: primitives.$white-0;
|
|
10
10
|
$buttons-action-disabled: primitives.$white-0;
|
|
@@ -120,6 +120,7 @@ $ge-graphs-trend-neutral: primitives.$coral-40;
|
|
|
120
120
|
$ge-graphs-trend-upwards: primitives.$spring-green-80;
|
|
121
121
|
$ge-icons-attention: primitives.$gold-100;
|
|
122
122
|
$ge-icons-delete: primitives.$chili-red-100;
|
|
123
|
+
$ge-icons-featured: primitives.$coral-100;
|
|
123
124
|
$ge-icons-fixed: primitives.$white-100;
|
|
124
125
|
$ge-icons-negative: primitives.$cardinal-100;
|
|
125
126
|
$ge-icons-positive: primitives.$spring-green-100;
|
|
@@ -188,6 +189,7 @@ $ge-signal-border-success: primitives.$spring-green-120;
|
|
|
188
189
|
$ge-signal-border-waiting-list: primitives.$egyptian-purple-80;
|
|
189
190
|
$ge-signal-border-warning: primitives.$gold-140;
|
|
190
191
|
$ge-skeleton-default: primitives.$light-grey-15;
|
|
192
|
+
$ge-skeleton-fixed: primitives.$white-40;
|
|
191
193
|
$ge-tabs-background-default: primitives.$white-0;
|
|
192
194
|
$ge-tabs-background-disabled: primitives.$blue-10;
|
|
193
195
|
$ge-tabs-background-hover: primitives.$coral-5;
|
|
@@ -214,7 +216,7 @@ $ge-workouts-other: primitives.$celadon-100;
|
|
|
214
216
|
$ge-workouts-pt: primitives.$uranian-blue-100;
|
|
215
217
|
$ge-workouts-treatments: primitives.$caribbean-current-100;
|
|
216
218
|
$on-background-error: primitives.$cardinal-120;
|
|
217
|
-
$on-background-featured: primitives.$coral-
|
|
219
|
+
$on-background-featured: primitives.$coral-130;
|
|
218
220
|
$on-background-information: primitives.$bright-blue-110;
|
|
219
221
|
$on-background-neutral: primitives.$black-60;
|
|
220
222
|
$on-background-success: primitives.$spring-green-120;
|
|
@@ -396,7 +398,7 @@ $surface-primary-hover: primitives.$bright-blue-10;
|
|
|
396
398
|
$surface-primary-selected: primitives.$bright-blue-20;
|
|
397
399
|
$surface-secondary-default: primitives.$black-3;
|
|
398
400
|
$surface-secondary-disabled: primitives.$black-10;
|
|
399
|
-
$surface-secondary-hover: primitives.$
|
|
401
|
+
$surface-secondary-hover: primitives.$black-5;
|
|
400
402
|
$surface-secondary-selected: primitives.$black-5;
|
|
401
403
|
$workout-surface-availability: primitives.$light-grey-15;
|
|
402
404
|
$workout-surface-availability-hover: primitives.$blue-20;
|
package/tokens/lightmode.css
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
[data-theme="light"] {
|
|
2
2
|
--background-primary-default: #f3f4f5;
|
|
3
|
-
--background-primary-hover: #
|
|
3
|
+
--background-primary-hover: #e7e9eb;
|
|
4
4
|
--background-primary-selected: #f3f4f5;
|
|
5
5
|
--background-secondary-default: #ffffff;
|
|
6
|
-
--background-secondary-hover: #
|
|
6
|
+
--background-secondary-hover: #f7f7f7;
|
|
7
7
|
--background-secondary-selected: #ffffff;
|
|
8
8
|
--buttons-action-default: #ffffff00;
|
|
9
9
|
--buttons-action-disabled: #ffffff00;
|
|
@@ -119,6 +119,7 @@
|
|
|
119
119
|
--ge-graphs-trend-upwards: #3a9979;
|
|
120
120
|
--ge-icons-attention: #e2b74a;
|
|
121
121
|
--ge-icons-delete: #d93226;
|
|
122
|
+
--ge-icons-featured: #fa5333;
|
|
122
123
|
--ge-icons-fixed: #ffffff;
|
|
123
124
|
--ge-icons-negative: #b93947;
|
|
124
125
|
--ge-icons-positive: #097f58;
|
|
@@ -187,6 +188,7 @@
|
|
|
187
188
|
--ge-signal-border-waiting-list: #5f5fa2;
|
|
188
189
|
--ge-signal-border-warning: #866c2a;
|
|
189
190
|
--ge-skeleton-default: #dcdee0;
|
|
191
|
+
--ge-skeleton-fixed: #ffffff66;
|
|
190
192
|
--ge-tabs-background-default: #ffffff00;
|
|
191
193
|
--ge-tabs-background-disabled: #e7e9eb;
|
|
192
194
|
--ge-tabs-background-hover: #fff6f5;
|
|
@@ -213,7 +215,7 @@
|
|
|
213
215
|
--ge-workouts-pt: #70c4ff;
|
|
214
216
|
--ge-workouts-treatments: #065d63;
|
|
215
217
|
--on-background-error: #942e39;
|
|
216
|
-
--on-background-featured: #
|
|
218
|
+
--on-background-featured: #af3a24;
|
|
217
219
|
--on-background-information: #226a9e;
|
|
218
220
|
--on-background-neutral: #666666;
|
|
219
221
|
--on-background-success: #076646;
|
|
@@ -395,7 +397,7 @@
|
|
|
395
397
|
--surface-primary-selected: #d4e4ef;
|
|
396
398
|
--surface-secondary-default: #f7f7f7;
|
|
397
399
|
--surface-secondary-disabled: #e5e5e5;
|
|
398
|
-
--surface-secondary-hover: #
|
|
400
|
+
--surface-secondary-hover: #f2f2f2;
|
|
399
401
|
--surface-secondary-selected: #f2f2f2;
|
|
400
402
|
--workout-surface-availability: #dcdee0;
|
|
401
403
|
--workout-surface-availability-hover: #cfd3d6;
|
package/tokens/primitives.scss
CHANGED
|
@@ -37,7 +37,7 @@ $bright-blue-80: #5191c0;
|
|
|
37
37
|
$cardinal-10: #f8ebed;
|
|
38
38
|
$cardinal-100: #b93947;
|
|
39
39
|
$cardinal-120: #942e39;
|
|
40
|
-
$cardinal-170: #
|
|
40
|
+
$cardinal-170: #4a171c;
|
|
41
41
|
$cardinal-30: #eac4c8;
|
|
42
42
|
$cardinal-60: #d58891;
|
|
43
43
|
$caribbean-current-10: #e6efef;
|
|
@@ -124,7 +124,7 @@ $uranian-blue-10: #f1f9ff;
|
|
|
124
124
|
$uranian-blue-100: #70c4ff;
|
|
125
125
|
$uranian-blue-140: #2d6891;
|
|
126
126
|
$uranian-blue-160: #16496c;
|
|
127
|
-
$uranian-blue-180: #
|
|
127
|
+
$uranian-blue-180: #002a47;
|
|
128
128
|
$uranian-blue-20: #e2f3ff;
|
|
129
129
|
$uranian-blue-40: #c6e7ff;
|
|
130
130
|
$uranian-blue-60: #a9dcff;
|