superdesk-ui-framework 3.1.13 → 3.1.15
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/design-tokens/_new-colors.scss +32 -17
- package/app-typescript/components/Button.tsx +1 -1
- package/app-typescript/components/DatePicker.tsx +18 -2
- 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 +151 -127
- package/dist/examples.bundle.js +368 -331
- package/dist/playgrounds/react-playgrounds/TestGround.tsx +30 -10
- package/dist/superdesk-ui.bundle.css +55 -20
- package/dist/superdesk-ui.bundle.js +187 -177
- package/examples/pages/components/Avatar.tsx +97 -40
- package/examples/pages/components/Buttons.tsx +5 -3
- package/examples/pages/components/Index.tsx +151 -127
- 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.d.ts +0 -1
- package/react/components/DatePicker.js +9 -1
- 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);
|
@@ -65745,7 +65760,8 @@ i.sd-sidetab-menu__helper-icon {
|
|
65745
65760
|
color: white;
|
65746
65761
|
text-transform: uppercase;
|
65747
65762
|
letter-spacing: -0.03em;
|
65748
|
-
overflow: hidden;
|
65763
|
+
overflow: hidden;
|
65764
|
+
cursor: default; }
|
65749
65765
|
.sd-avatar .sd-avatar-content > img {
|
65750
65766
|
width: 100%; }
|
65751
65767
|
.sd-avatar .sd-avatar-content.sd-avatar-content--add-item {
|
@@ -65781,17 +65797,20 @@ i.sd-sidetab-menu__helper-icon {
|
|
65781
65797
|
.sd-avatar .sd-avatar-content.sd-avatar-content--number:active {
|
65782
65798
|
cursor: pointer;
|
65783
65799
|
outline: 2px solid var(--sd-colour-interactive); }
|
65800
|
+
.sd-avatar .sd-avatar-content span {
|
65801
|
+
cursor: default; }
|
65784
65802
|
.sd-avatar .sd-avatar-content--text {
|
65785
65803
|
background-color: var(--sd-colour-avatar-bg); }
|
65786
65804
|
.sd-avatar .sd-avatar-content--dummy-img {
|
65787
|
-
background-color: var(--sd-colour-avatar-bg);
|
65805
|
+
background-color: var(--sd-colour-avatar-bg--empty);
|
65788
65806
|
background-image: url(avatar_dummy.svg);
|
65789
65807
|
background-repeat: no-repeat;
|
65790
|
-
background-size: cover;
|
65791
|
-
border: 1px solid var(--sd-colour-avatar-border); }
|
65808
|
+
background-size: cover; }
|
65792
65809
|
.sd-avatar.sd-avatar--empty-light .sd-avatar-content--dummy-img {
|
65793
65810
|
background-color: var(--sd-colour-avatar-bg--light);
|
65794
65811
|
border: 1px dashed var(--sd-colour-avatar-border--light); }
|
65812
|
+
.sd-avatar.sd-avatar--empty-light .sd-avatar-content--dummy-img svg {
|
65813
|
+
opacity: 0.25; }
|
65795
65814
|
.sd-avatar .sd-avatar__icon {
|
65796
65815
|
position: absolute;
|
65797
65816
|
display: flex;
|
@@ -65799,9 +65818,24 @@ i.sd-sidetab-menu__helper-icon {
|
|
65799
65818
|
justify-content: center;
|
65800
65819
|
z-index: 1;
|
65801
65820
|
inset-block-end: -4px;
|
65802
|
-
inset-inline-end: -4px;
|
65821
|
+
inset-inline-end: -4px;
|
65822
|
+
opacity: 1;
|
65823
|
+
color: var(--color-text-lighter); }
|
65803
65824
|
.sd-avatar .sd-avatar__icon [class^="icon-"], .sd-avatar .sd-avatar__icon [class*=" icon-"] {
|
65825
|
+
color: inherit;
|
65804
65826
|
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); }
|
65827
|
+
.sd-avatar .sd-avatar__coverage-state {
|
65828
|
+
--dot-size: 6px;
|
65829
|
+
display: flex;
|
65830
|
+
height: var(--dot-size);
|
65831
|
+
width: var(--dot-size);
|
65832
|
+
position: absolute;
|
65833
|
+
background-color: var(--sd-colour-coverage-state--default);
|
65834
|
+
z-index: 2;
|
65835
|
+
border-radius: var(--b-radius--full);
|
65836
|
+
inset-block-end: -3px;
|
65837
|
+
inset-inline-end: 3px;
|
65838
|
+
box-shadow: 0 0 0 1px var(--sd-item__main-Bg); }
|
65805
65839
|
.sd-avatar.sd-avatar--x-small .sd-avatar__icon {
|
65806
65840
|
inset-block-end: -4px;
|
65807
65841
|
inset-inline-end: -10px; }
|
@@ -65966,10 +66000,11 @@ i.sd-sidetab-menu__helper-icon {
|
|
65966
66000
|
|
65967
66001
|
.avatar-popup {
|
65968
66002
|
background-color: var(--color-dropdown-menu-Bg);
|
65969
|
-
border-radius:
|
65970
|
-
padding:
|
66003
|
+
border-radius: var(--b-radius--large);
|
66004
|
+
padding: var(--space--2);
|
66005
|
+
padding-inline-end: var(--space--3);
|
65971
66006
|
box-shadow: var(--sd-shadow__dropdown);
|
65972
66007
|
display: flex;
|
65973
66008
|
flex-direction: column;
|
65974
|
-
gap:
|
66009
|
+
gap: var(--gap-1-5);
|
65975
66010
|
overflow: auto; }
|