superdesk-ui-framework 3.1.14 → 3.1.16
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/app/img/AvatarDefaultImage.svg +6 -0
- package/app/styles/_avatar.scss +28 -6
- package/app/styles/components/_sd-loader.scss +18 -5
- package/app/styles/design-tokens/_new-colors.scss +32 -17
- package/app-typescript/components/Button.tsx +1 -1
- package/app-typescript/components/DatePicker.tsx +6 -0
- package/app-typescript/components/Loader.tsx +23 -5
- package/app-typescript/components/avatar/avatar-group.tsx +2 -1
- package/app-typescript/components/avatar/avatar-image.tsx +1 -1
- package/app-typescript/components/avatar/avatar-placeholder.tsx +0 -1
- package/app-typescript/components/avatar/avatar-wrapper.tsx +14 -2
- package/app-typescript/components/avatar/avatar.tsx +8 -1
- package/dist/components/Avatar.tsx +97 -40
- package/dist/components/Buttons.tsx +5 -3
- package/dist/components/Index.tsx +157 -128
- package/dist/components/Loader.tsx +24 -0
- package/dist/examples.bundle.js +351 -243
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +30 -10
- package/dist/superdesk-ui.bundle.css +68 -26
- package/dist/superdesk-ui.bundle.js +95 -84
- package/examples/pages/components/Avatar.tsx +97 -40
- package/examples/pages/components/Buttons.tsx +5 -3
- package/examples/pages/components/Index.tsx +157 -128
- package/examples/pages/components/Loader.tsx +24 -0
- package/examples/pages/playgrounds/react-playgrounds/TestGround.tsx +30 -10
- package/package.json +1 -1
- package/react/components/Button.js +1 -1
- package/react/components/DatePicker.js +4 -0
- package/react/components/Loader.d.ts +11 -3
- package/react/components/Loader.js +6 -2
- package/react/components/avatar/avatar-group.js +2 -2
- package/react/components/avatar/avatar-image.js +1 -1
- package/react/components/avatar/avatar-placeholder.js +1 -1
- package/react/components/avatar/avatar-wrapper.d.ts +4 -1
- package/react/components/avatar/avatar-wrapper.js +4 -2
- package/react/components/avatar/avatar.d.ts +4 -0
- package/react/components/avatar/avatar.js +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import * as Components from './components/Index';
|
3
|
-
import { Checkbox, RadioGroup, CheckboxButton, RadioButtonGroup, Button, Dropdown, Input, Label, Icon, IconButton, Badge, ThemeSelector, Container, IconLabel, Tooltip, Spinner, Divider, InputWrapper, InputNew, InputBase, Text, FormRowNew, ButtonGroup, Heading, SearchBar, Modal, BoxedList, BoxedListItem, TimePicker, TreeSelect, DatePicker, ContentDivider, Select, Option, AvatarGroup, Avatar, SvgIconIllustration, IllustrationButton, SubNav, NavButton } from '../../../../app-typescript/index';
|
3
|
+
import { Checkbox, RadioGroup, CheckboxButton, RadioButtonGroup, Button, Dropdown, Input, Label, Icon, IconButton, Badge, ThemeSelector, Container, IconLabel, Tooltip, Spinner, Divider, InputWrapper, InputNew, InputBase, Text, FormRowNew, ButtonGroup, Heading, SearchBar, Modal, BoxedList, BoxedListItem, TimePicker, TreeSelect, DatePicker, ContentDivider, Select, Option, AvatarGroup, Avatar, SvgIconIllustration, IllustrationButton, SubNav, NavButton, } from '../../../../app-typescript/index';
|
4
4
|
import { IAvatarInGroup } from '../../../../app-typescript/components/avatar/avatar-group';
|
5
5
|
import { FormLabel } from '../../../../app-typescript/components/Form/FormLabel';
|
6
6
|
|
@@ -104,29 +104,37 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
104
104
|
|
105
105
|
render() {
|
106
106
|
const avatars: Array<IAvatarInGroup> = [
|
107
|
+
{
|
108
|
+
imageUrl: null,
|
109
|
+
initials: null,
|
110
|
+
displayName: 'Unassigned',
|
111
|
+
icon:{name: 'video', color: 'var(--sd-colour-state--default)'},
|
112
|
+
statusDot:{color: 'var(--sd-colour-coverage-state--not-covering)'}
|
113
|
+
},
|
114
|
+
{
|
115
|
+
imageUrl: null,
|
116
|
+
initials: null,
|
117
|
+
displayName: 'Unassigned',
|
118
|
+
icon:{name: 'file', color: 'var(--sd-colour-state--unassigned)'},
|
119
|
+
statusDot:{color: 'var(--sd-colour-coverage-state--on-merit)'}
|
120
|
+
},
|
107
121
|
{
|
108
122
|
imageUrl: null,
|
109
123
|
initials: "VS",
|
110
124
|
displayName: 'Vladimir Stefanovic',
|
111
|
-
icon:{name: 'text', color: 'var(--sd-colour-
|
125
|
+
icon:{name: 'text', color: 'var(--sd-colour-state--in-progress)'},
|
112
126
|
},
|
113
127
|
{
|
114
128
|
imageUrl: null,
|
115
129
|
initials: "JL",
|
116
130
|
displayName: 'Jeffrey Lebowski',
|
117
|
-
icon:{name: 'photo', color: 'var(--sd-colour-
|
131
|
+
icon:{name: 'photo', color: 'var(--sd-colour-state--in-workflow)'}
|
118
132
|
},
|
119
133
|
{
|
120
134
|
imageUrl: null,
|
121
135
|
initials: "WS",
|
122
136
|
displayName: 'Walter Sobchak',
|
123
|
-
icon:{name: '
|
124
|
-
},
|
125
|
-
{
|
126
|
-
imageUrl: null,
|
127
|
-
initials: "ML",
|
128
|
-
displayName: 'Maude Lebowski',
|
129
|
-
icon:{name: 'file', color: 'var(--sd-colour-highlight)'}
|
137
|
+
icon:{name: 'text', color: 'var(--sd-colour-state--done)'},
|
130
138
|
},
|
131
139
|
];
|
132
140
|
|
@@ -159,6 +167,18 @@ export class TestGround extends React.Component<IProps, IState> {
|
|
159
167
|
|
160
168
|
<hr />
|
161
169
|
|
170
|
+
<Avatar
|
171
|
+
displayName="Jeffrey Lebowski"
|
172
|
+
imageUrl={null}
|
173
|
+
initials='JL'
|
174
|
+
size="small"
|
175
|
+
statusDot={{color: 'var(--sd-colour-coverage-state--on-merit)'}}
|
176
|
+
icon={{name: 'text'}}
|
177
|
+
/>
|
178
|
+
|
179
|
+
<hr />
|
180
|
+
|
181
|
+
|
162
182
|
<div style={{maxWidth: '600px'}} className={`sd-shadow--z1 new-collapse-box ${this.state.openCollapsibleOne ? 'new-collapse-box--open' : ''}`}>
|
163
183
|
{/* Header */}
|
164
184
|
<div className='new-collapse-box__header'>
|
@@ -12035,19 +12035,29 @@
|
|
12035
12035
|
--sd-colour-bg__desk-select--worspace: hsla(306, 25%, 49%, 1);
|
12036
12036
|
--sd-colour__tag-label-Bg--inverse: var(--sd-colour-bg--08);
|
12037
12037
|
--sd-colour__tag-label-Txt--inverse: hsla(214, 13%, 98%, 1);
|
12038
|
-
--sd-colour-avatar-bg: hsl(197, 100%,
|
12038
|
+
--sd-colour-avatar-bg: hsl(197, 100%, 30%);
|
12039
12039
|
--sd-colour-avatar-border: var(--sd-colour-avatar-bg);
|
12040
12040
|
--sd-colour-avatar-bg--light: hsla(214, 13%, 90%, 1);
|
12041
|
-
--sd-colour-avatar-
|
12042
|
-
--sd-colour-avatar-
|
12043
|
-
--sd-colour-avatar-
|
12041
|
+
--sd-colour-avatar-bg--empty: hsl(212, 20%, 48%);
|
12042
|
+
--sd-colour-avatar-bg--empty-light: hsla(214, 13%, 90%, 1);
|
12043
|
+
--sd-colour-avatar-border--light: var(--sd-colour-line--medium);
|
12044
|
+
--sd-colour-avatar-border--light-hover: var(--sd-colour-line--strong);
|
12045
|
+
--sd-colour-avatar-dummy: hsla(214, 13%, 65%, 0.50);
|
12044
12046
|
--sd-colour-avatar-add: hsla(214, 13%, 55%, 1);
|
12045
12047
|
--sd-colour-avatar-add--hover: hsla(214, 13%, 45%, 1);
|
12046
|
-
--sd-colour-avatar-outline--offline:
|
12048
|
+
--sd-colour-avatar-outline--offline: var(--sd-colour-line--light);
|
12047
12049
|
--sd-colour-avatar-outline--online: var(--sd-colour-success);
|
12048
12050
|
--sd-colour-state--default: var(--color-text-lighter);
|
12049
|
-
--sd-colour-state--
|
12051
|
+
--sd-colour-state--unassigned: var(--color-text-lighter);
|
12052
|
+
--sd-colour-state--assigned: var(--color-text-lighter);
|
12053
|
+
--sd-colour-state--canceled: var(--color-text-lighter);
|
12054
|
+
--sd-colour-state--in-progress: var(--sd-colour-warning);
|
12055
|
+
--sd-colour-state--in-workflow: var(--sd-colour-info);
|
12056
|
+
--sd-colour-state--completed: var(--sd-colour-success);
|
12050
12057
|
--sd-colour-state--done: var(--sd-colour-success);
|
12058
|
+
--sd-colour-coverage-state--default: var(--color-text-lighter);
|
12059
|
+
--sd-colour-coverage-state--on-merit: var(--sd-colour-warning);
|
12060
|
+
--sd-colour-coverage-state--not-covering: var(--sd-colour-alert);
|
12051
12061
|
--collapse-box-button-color-bg-default: hsla(var(--sd-colour-cool-grey-l--85), 1);
|
12052
12062
|
--collapse-box-button-color-bg-hover: hsla(var(--sd-colour-cool-grey-l--80), 1);
|
12053
12063
|
--collapse-box-button-color-fg-default: var(--color-text);
|
@@ -12162,16 +12172,21 @@
|
|
12162
12172
|
--sd-colour__tag-label-Bg--inverse: hsla(214, 13%, 55%, 0.95);
|
12163
12173
|
--sd-colour__tag-label-Txt--inverse: hsla(214, 13%, 10%, 1);
|
12164
12174
|
--sd-colour-avatar-bg: hsl(197, 100%, 25%);
|
12165
|
-
--sd-colour-avatar-border:
|
12175
|
+
--sd-colour-avatar-border: var(--sd-colour-avatar-bg);
|
12166
12176
|
--sd-colour-avatar-bg--light: hsla(214, 13%, 20%, 1);
|
12167
|
-
--sd-colour-avatar-
|
12168
|
-
--sd-colour-avatar-
|
12169
|
-
--sd-colour-avatar-
|
12177
|
+
--sd-colour-avatar-bg--empty: hsl(212, 20%, 38%);
|
12178
|
+
--sd-colour-avatar-bg--empty-light: hsla(214, 13%, 20%, 1);
|
12179
|
+
--sd-colour-avatar-border--light: var(--sd-colour-line--light);
|
12180
|
+
--sd-colour-avatar-border--light-hover: var(--sd-colour-line--medium);
|
12181
|
+
--sd-colour-avatar-dummy: hsla(214, 13%, 95%, 0.2);
|
12170
12182
|
--sd-colour-avatar-add: hsla(214, 13%, 65%, 1);
|
12171
12183
|
--sd-colour-avatar-add--hover: hsla(214, 13%, 90%, 1);
|
12184
|
+
--sd-colour-avatar-outline--offline: var(--sd-colour-line--medium);
|
12185
|
+
--sd-colour-avatar-outline--online: var(--sd-colour-success);
|
12172
12186
|
--sd-colour-state--default: var(--color-text-lighter);
|
12173
|
-
--sd-colour-state--
|
12174
|
-
--sd-colour-state--
|
12187
|
+
--sd-colour-state--unassigned: var(--color-text-lighter);
|
12188
|
+
--sd-colour-state--assigned: var(--color-text-lighter);
|
12189
|
+
--sd-colour-state--canceled: var(--color-text-lighter);
|
12175
12190
|
--collapse-box-button-color-bg-default: hsla(var(--sd-colour-cool-grey-l--25), 1);
|
12176
12191
|
--collapse-box-button-color-bg-hover: hsla(var(--sd-colour-cool-grey-l--30), 1);
|
12177
12192
|
--collapse-box-button-color-fg-default: var(--color-text-light);
|
@@ -45598,6 +45613,18 @@ textarea.sd-media-carousel__media-title {
|
|
45598
45613
|
background-color: var(--sd-colour-interactive);
|
45599
45614
|
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); }
|
45600
45615
|
|
45616
|
+
.sd-loader--inline, .sd-loader {
|
45617
|
+
display: inline-flex;
|
45618
|
+
width: 100%;
|
45619
|
+
min-width: 90px;
|
45620
|
+
height: 100%;
|
45621
|
+
min-height: 30px;
|
45622
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjMwIiB2aWV3Qm94PSIwIDAgMTIwIDMwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9IiM3YjdiN2IiPjxjaXJjbGUgY3g9IjE1IiBjeT0iMTUiIHI9IjE1Ij48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiBmcm9tPSIxNSIgdG89IjE1IiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxNTs5OzE1IiBjYWxjTW9kZT0ibGluZWFyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsLW9wYWNpdHkiIGZyb209IjEiIHRvPSIxIiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxOy41OzEiIGNhbGNNb2RlPSJsaW5lYXIiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPjwvY2lyY2xlPjxjaXJjbGUgY3g9IjYwIiBjeT0iMTUiIHI9IjkiIGZpbGwtb3BhY2l0eT0iMC4zIj48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiBmcm9tPSI5IiB0bz0iOSIgYmVnaW49IjBzIiBkdXI9IjAuOHMiIHZhbHVlcz0iOTsxNTs5IiBjYWxjTW9kZT0ibGluZWFyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsLW9wYWNpdHkiIGZyb209IjAuNSIgdG89IjAuNSIgYmVnaW49IjBzIiBkdXI9IjAuOHMiIHZhbHVlcz0iLjU7MTsuNSIgY2FsY01vZGU9ImxpbmVhciIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiIC8+PC9jaXJjbGU+PGNpcmNsZSBjeD0iMTA1IiBjeT0iMTUiIHI9IjE1Ij48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJyIiBmcm9tPSIxNSIgdG89IjE1IiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxNTs5OzE1IiBjYWxjTW9kZT0ibGluZWFyIiByZXBlYXRDb3VudD0iaW5kZWZpbml0ZSIgLz48YW5pbWF0ZSBhdHRyaWJ1dGVOYW1lPSJmaWxsLW9wYWNpdHkiIGZyb209IjEiIHRvPSIxIiBiZWdpbj0iMHMiIGR1cj0iMC44cyIgdmFsdWVzPSIxOy41OzEiIGNhbGNNb2RlPSJsaW5lYXIiIHJlcGVhdENvdW50PSJpbmRlZmluaXRlIiAvPjwvY2lyY2xlPjwvc3ZnPg==");
|
45623
|
+
background-repeat: no-repeat;
|
45624
|
+
background-position: center center;
|
45625
|
+
background-size: 60px;
|
45626
|
+
background-color: var(--sd-colour-overlay-actioning); }
|
45627
|
+
|
45601
45628
|
.sd-loader {
|
45602
45629
|
content: '';
|
45603
45630
|
display: block;
|
@@ -45606,12 +45633,7 @@ textarea.sd-media-carousel__media-title {
|
|
45606
45633
|
inset-inline-end: 0;
|
45607
45634
|
inset-block-end: 0;
|
45608
45635
|
inset-inline-start: 0;
|
45609
|
-
z-index: 99999;
|
45610
|
-
background-image: url(three-dots.svg);
|
45611
|
-
background-repeat: no-repeat;
|
45612
|
-
background-position: center center;
|
45613
|
-
background-size: 60px;
|
45614
|
-
background-color: var(--sd-colour-overlay-actioning); }
|
45636
|
+
z-index: 99999; }
|
45615
45637
|
|
45616
45638
|
.red--100 {
|
45617
45639
|
background-color: #fde4e2; }
|
@@ -65745,7 +65767,8 @@ i.sd-sidetab-menu__helper-icon {
|
|
65745
65767
|
color: white;
|
65746
65768
|
text-transform: uppercase;
|
65747
65769
|
letter-spacing: -0.03em;
|
65748
|
-
overflow: hidden;
|
65770
|
+
overflow: hidden;
|
65771
|
+
cursor: default; }
|
65749
65772
|
.sd-avatar .sd-avatar-content > img {
|
65750
65773
|
width: 100%; }
|
65751
65774
|
.sd-avatar .sd-avatar-content.sd-avatar-content--add-item {
|
@@ -65781,17 +65804,20 @@ i.sd-sidetab-menu__helper-icon {
|
|
65781
65804
|
.sd-avatar .sd-avatar-content.sd-avatar-content--number:active {
|
65782
65805
|
cursor: pointer;
|
65783
65806
|
outline: 2px solid var(--sd-colour-interactive); }
|
65807
|
+
.sd-avatar .sd-avatar-content span {
|
65808
|
+
cursor: default; }
|
65784
65809
|
.sd-avatar .sd-avatar-content--text {
|
65785
65810
|
background-color: var(--sd-colour-avatar-bg); }
|
65786
65811
|
.sd-avatar .sd-avatar-content--dummy-img {
|
65787
|
-
background-color: var(--sd-colour-avatar-bg);
|
65812
|
+
background-color: var(--sd-colour-avatar-bg--empty);
|
65788
65813
|
background-image: url(avatar_dummy.svg);
|
65789
65814
|
background-repeat: no-repeat;
|
65790
|
-
background-size: cover;
|
65791
|
-
border: 1px solid var(--sd-colour-avatar-border); }
|
65815
|
+
background-size: cover; }
|
65792
65816
|
.sd-avatar.sd-avatar--empty-light .sd-avatar-content--dummy-img {
|
65793
65817
|
background-color: var(--sd-colour-avatar-bg--light);
|
65794
65818
|
border: 1px dashed var(--sd-colour-avatar-border--light); }
|
65819
|
+
.sd-avatar.sd-avatar--empty-light .sd-avatar-content--dummy-img svg {
|
65820
|
+
opacity: 0.25; }
|
65795
65821
|
.sd-avatar .sd-avatar__icon {
|
65796
65822
|
position: absolute;
|
65797
65823
|
display: flex;
|
@@ -65799,9 +65825,24 @@ i.sd-sidetab-menu__helper-icon {
|
|
65799
65825
|
justify-content: center;
|
65800
65826
|
z-index: 1;
|
65801
65827
|
inset-block-end: -4px;
|
65802
|
-
inset-inline-end: -4px;
|
65828
|
+
inset-inline-end: -4px;
|
65829
|
+
opacity: 1;
|
65830
|
+
color: var(--color-text-lighter); }
|
65803
65831
|
.sd-avatar .sd-avatar__icon [class^="icon-"], .sd-avatar .sd-avatar__icon [class*=" icon-"] {
|
65832
|
+
color: inherit;
|
65804
65833
|
text-shadow: -1px 1px 0 var(--sd-item__main-Bg), 1px 1px 0 var(--sd-item__main-Bg), 1px -1px 0 var(--sd-item__main-Bg), -1px -1px 0 var(--sd-item__main-Bg); }
|
65834
|
+
.sd-avatar .sd-avatar__coverage-state {
|
65835
|
+
--dot-size: 6px;
|
65836
|
+
display: flex;
|
65837
|
+
height: var(--dot-size);
|
65838
|
+
width: var(--dot-size);
|
65839
|
+
position: absolute;
|
65840
|
+
background-color: var(--sd-colour-coverage-state--default);
|
65841
|
+
z-index: 2;
|
65842
|
+
border-radius: var(--b-radius--full);
|
65843
|
+
inset-block-end: -3px;
|
65844
|
+
inset-inline-end: 3px;
|
65845
|
+
box-shadow: 0 0 0 1px var(--sd-item__main-Bg); }
|
65805
65846
|
.sd-avatar.sd-avatar--x-small .sd-avatar__icon {
|
65806
65847
|
inset-block-end: -4px;
|
65807
65848
|
inset-inline-end: -10px; }
|
@@ -65966,10 +66007,11 @@ i.sd-sidetab-menu__helper-icon {
|
|
65966
66007
|
|
65967
66008
|
.avatar-popup {
|
65968
66009
|
background-color: var(--color-dropdown-menu-Bg);
|
65969
|
-
border-radius:
|
65970
|
-
padding:
|
66010
|
+
border-radius: var(--b-radius--large);
|
66011
|
+
padding: var(--space--2);
|
66012
|
+
padding-inline-end: var(--space--3);
|
65971
66013
|
box-shadow: var(--sd-shadow__dropdown);
|
65972
66014
|
display: flex;
|
65973
66015
|
flex-direction: column;
|
65974
|
-
gap:
|
66016
|
+
gap: var(--gap-1-5);
|
65975
66017
|
overflow: auto; }
|