superdesk-ui-framework 5.1.3 → 5.1.4
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/.github/workflows/publish-to-npm.yml +2 -0
- package/app/styles/_helpers.scss +62 -18
- package/app/styles/_simple-list.scss +4 -10
- package/app/styles/form-elements/_forms-general.scss +2 -146
- package/app-typescript/components/Form/index.tsx +0 -3
- package/dist/components/Index.tsx +0 -5
- package/dist/examples.bundle.css +1 -1
- package/dist/examples.bundle.js +2250 -2952
- package/dist/superdesk-ui.bundle.css +53 -127
- package/dist/superdesk-ui.bundle.js +1739 -1930
- package/dist/vendor.bundle.js +13 -13
- package/package.json +1 -1
- package/react/components/Form/index.d.ts +0 -3
- package/react/components/Form/index.js +1 -7
- package/app-typescript/components/Form/FormGroupItem.tsx +0 -37
- package/app-typescript/components/Form/FormGroupV2.tsx +0 -40
- package/app-typescript/components/Form/FormLayout.tsx +0 -57
- package/dist/components/FormLayout.tsx +0 -1039
- package/react/components/Form/FormGroupItem.d.ts +0 -18
- package/react/components/Form/FormGroupItem.js +0 -52
- package/react/components/Form/FormGroupV2.d.ts +0 -16
- package/react/components/Form/FormGroupV2.js +0 -53
- package/react/components/Form/FormLayout.d.ts +0 -26
- package/react/components/Form/FormLayout.js +0 -57
package/app/styles/_helpers.scss
CHANGED
|
@@ -346,7 +346,7 @@ h6 {
|
|
|
346
346
|
white-space: nowrap;
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
// FONT FAMILY
|
|
349
|
+
// FONT FAMILY
|
|
350
350
|
.sd-text__serif,
|
|
351
351
|
.sd-text--serif {
|
|
352
352
|
font-family: $baseFontFamilySerif;
|
|
@@ -358,23 +358,6 @@ h6 {
|
|
|
358
358
|
font-family: $baseFontFamilyMono;
|
|
359
359
|
}
|
|
360
360
|
|
|
361
|
-
// FONT FAMILY VARIABLES -------------------------------------------------------------------------
|
|
362
|
-
// Use these utility classes to change the font family of the text. Useful for overriding the font family of the text.
|
|
363
|
-
.font-primary {
|
|
364
|
-
font-family: var(--font-primary);
|
|
365
|
-
}
|
|
366
|
-
.font-secondary {
|
|
367
|
-
font-family: var(--font-secondary);
|
|
368
|
-
}
|
|
369
|
-
.font-mono {
|
|
370
|
-
font-family: var(--font-mono);
|
|
371
|
-
}
|
|
372
|
-
.font-alt {
|
|
373
|
-
font-family: var(--font-alt);
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
361
|
// WHITESPACE
|
|
379
362
|
.sd-whitespace--normal,
|
|
380
363
|
.whitespace-normal {
|
|
@@ -2212,4 +2195,65 @@ h6 {
|
|
|
2212
2195
|
container-type: inline-size;
|
|
2213
2196
|
container-name: left-panel;
|
|
2214
2197
|
}
|
|
2198
|
+
@container left-panel (width <= 900px) {
|
|
2199
|
+
.new-form-layout {
|
|
2200
|
+
--form-group-gap: var(--gap-3);
|
|
2201
|
+
--form-padding: var(--space--3);
|
|
2202
|
+
}
|
|
2203
|
+
}
|
|
2204
|
+
@container left-panel (width<= 500px) {
|
|
2205
|
+
.new-form-layout {
|
|
2206
|
+
--form-group-gap: var(--gap-1-5);
|
|
2207
|
+
--form-padding: var(--space--2);
|
|
2208
|
+
--form-layout-gap: var(--gap-2);
|
|
2209
|
+
}
|
|
2210
|
+
}
|
|
2211
|
+
// ------------------------------------------------------------------------
|
|
2212
|
+
|
|
2213
|
+
.new-form-layout {
|
|
2214
|
+
--form-group-gap: var(--gap-5);
|
|
2215
|
+
--form-layout-gap: var(--gap-4);
|
|
2216
|
+
--form-padding: var(--space--5);
|
|
2217
|
+
--form-heading-font-size: clamp(1.8rem, 4cqi, 2.4rem);
|
|
2218
|
+
padding: var(--form-padding);
|
|
2219
|
+
display: flex;
|
|
2220
|
+
flex-direction: column;
|
|
2221
|
+
gap: var(--form-layout-gap);
|
|
2222
|
+
background-color: var(--color-surface-base);
|
|
2223
|
+
border-radius: var(--b-radius--large);
|
|
2224
|
+
border: 1px solid var(--color-line-light);
|
|
2225
|
+
.new-form-heading {
|
|
2226
|
+
font-family: $baseFontFamilySerif;
|
|
2227
|
+
font-weight: 900;
|
|
2228
|
+
font-size: var(--form-heading-font-size);
|
|
2229
|
+
line-height: 1.2;
|
|
2230
|
+
}
|
|
2231
|
+
legend {
|
|
2232
|
+
float: left;
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
.new-form-group {
|
|
2236
|
+
display: flex;
|
|
2237
|
+
gap: var(--form-group-gap);
|
|
2238
|
+
&.new-form-group--grid {
|
|
2239
|
+
display: grid;
|
|
2240
|
+
grid-template-columns: repeat(4, 1fr);
|
|
2241
|
+
gap: var(--form-group-gap);
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
2244
|
+
.new-form-group-item {
|
|
2245
|
+
display: flex;
|
|
2246
|
+
flex-direction: column;
|
|
2247
|
+
flex-grow: 1;
|
|
2248
|
+
&.new-form-group-item--span-2 {
|
|
2249
|
+
grid-column: span 2;
|
|
2250
|
+
}
|
|
2251
|
+
&.new-form-group-item--span-3 {
|
|
2252
|
+
grid-column: span 3;
|
|
2253
|
+
}
|
|
2254
|
+
&.new-form-group-item--span-4 {
|
|
2255
|
+
grid-column: span 4;
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2215
2259
|
|
|
@@ -8,7 +8,7 @@ $simple-list-border-color: $neutral-border-color;
|
|
|
8
8
|
align-self: stretch;
|
|
9
9
|
|
|
10
10
|
.simple-list__item {
|
|
11
|
-
padding:
|
|
11
|
+
padding: 0.5rem 0;
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: row;
|
|
14
14
|
align-items: center;
|
|
@@ -87,7 +87,7 @@ $simple-list-border-color: $neutral-border-color;
|
|
|
87
87
|
|
|
88
88
|
.simple-list--dotted {
|
|
89
89
|
.simple-list__item {
|
|
90
|
-
padding:
|
|
90
|
+
padding: 0.8rem 0;
|
|
91
91
|
border-block-end: 1px dotted $simple-list-border-color;
|
|
92
92
|
|
|
93
93
|
&:first-child {
|
|
@@ -111,25 +111,19 @@ $simple-list-border-color: $neutral-border-color;
|
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
.simple-list--comfortable {
|
|
115
|
-
.simple-list__item {
|
|
116
|
-
padding: 1.2rem 0;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
114
|
|
|
120
115
|
.simple-list--comfortable {
|
|
121
116
|
.simple-list__item {
|
|
122
|
-
padding:
|
|
117
|
+
padding: 1.2rem 0;
|
|
123
118
|
}
|
|
124
119
|
}
|
|
125
120
|
|
|
126
121
|
.simple-list--loose {
|
|
127
122
|
.simple-list__item {
|
|
128
|
-
padding:
|
|
123
|
+
padding: 2.4rem 0;
|
|
129
124
|
}
|
|
130
125
|
}
|
|
131
126
|
|
|
132
|
-
|
|
133
127
|
.simple-list--no-padding {
|
|
134
128
|
padding: 0 0 2rem 0;
|
|
135
129
|
}
|
|
@@ -299,7 +299,7 @@
|
|
|
299
299
|
|
|
300
300
|
|
|
301
301
|
|
|
302
|
-
/// ----------------------------
|
|
302
|
+
/// ---------------------------- NEW FORM LAYOUT TEST---------------------------- ///
|
|
303
303
|
|
|
304
304
|
.form__group-new {
|
|
305
305
|
display: flex;
|
|
@@ -388,152 +388,8 @@
|
|
|
388
388
|
margin-block-end: $sd-base-increment * 1.5;
|
|
389
389
|
line-height: 1;
|
|
390
390
|
color: var(--color-label-text);
|
|
391
|
+
//text-transform: uppercase;
|
|
391
392
|
font-weight: 500;
|
|
392
393
|
letter-spacing: 0.02em;
|
|
393
394
|
}
|
|
394
395
|
}
|
|
395
|
-
/// -------------------------- FORM LAYOUT (Do not use anymore) END ------------------------ ///
|
|
396
|
-
/// ----------------------------------------------------------------------------------------- ///
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
/// ---------------------------- NEW FORM LAYOUT !!! USE THIS ONE INSTEAD OF THE OLD ONE ---------------------------- ///
|
|
400
|
-
|
|
401
|
-
.form-layout {
|
|
402
|
-
container-type: inline-size;
|
|
403
|
-
container-name: form-container;
|
|
404
|
-
--form-layout-row-gap: var(--gap-4);
|
|
405
|
-
--form-padding: 0;
|
|
406
|
-
--form-heading-font-size: clamp(1.8rem, 4cqi, 2.1rem);
|
|
407
|
-
--form-heading-margin: 0;
|
|
408
|
-
padding: var(--form-padding);
|
|
409
|
-
display: flex;
|
|
410
|
-
flex-direction: column;
|
|
411
|
-
row-gap: var(--form-layout-row-gap);
|
|
412
|
-
width: 100%;
|
|
413
|
-
.form-heading-new {
|
|
414
|
-
font-family: $baseFontFamilySerif;
|
|
415
|
-
font-weight: 900;
|
|
416
|
-
font-size: var(--form-heading-font-size);
|
|
417
|
-
line-height: 1.1;
|
|
418
|
-
margin-block-end: var(--form-heading-margin);
|
|
419
|
-
}
|
|
420
|
-
legend {
|
|
421
|
-
float: left;
|
|
422
|
-
}
|
|
423
|
-
&.form-layout--compact {
|
|
424
|
-
--form-layout-row-gap: var(--gap-2);
|
|
425
|
-
}
|
|
426
|
-
&.form-layout--standard {
|
|
427
|
-
--form-layout-row-gap: var(--gap-4);
|
|
428
|
-
}
|
|
429
|
-
&.form-layout--relaxed {
|
|
430
|
-
--form-layout-row-gap: var(--gap-5);
|
|
431
|
-
}
|
|
432
|
-
&.form-layout--preserve-spaces {
|
|
433
|
-
--form-layout-row-gap: var(--gap-1-5);
|
|
434
|
-
--form-heading-margin: var(--space--2);
|
|
435
|
-
.sd-input .sd-input__message-box {
|
|
436
|
-
min-height: var(--space--3);
|
|
437
|
-
}
|
|
438
|
-
&.form-layout--compact {
|
|
439
|
-
--form-layout-row-gap: var(--gap-0-5);
|
|
440
|
-
--form-heading-margin: var(--space--2);
|
|
441
|
-
}
|
|
442
|
-
&.form-layout--standard {
|
|
443
|
-
--form-layout-row-gap: var(--gap-1-5);
|
|
444
|
-
--form-heading-margin: var(--space--2);
|
|
445
|
-
}
|
|
446
|
-
&.form-layout--relaxed {
|
|
447
|
-
--form-layout-row-gap: var(--gap-2);
|
|
448
|
-
--form-heading-margin: var(--space--1);
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
&.form-layout--mb-none {
|
|
452
|
-
margin-block-end: 0;
|
|
453
|
-
}
|
|
454
|
-
&.form-layout--mb-spaces {
|
|
455
|
-
margin-block-end: var(--form-layout-row-gap);
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
.form-group {
|
|
460
|
-
--form-group-col-gap: var(--gap-5);
|
|
461
|
-
display: flex;
|
|
462
|
-
row-gap: var(--form-layout-row-gap);
|
|
463
|
-
column-gap: var(--form-group-col-gap);
|
|
464
|
-
&.form-group--grid {
|
|
465
|
-
display: grid;
|
|
466
|
-
grid-template-columns: repeat(4, 1fr);
|
|
467
|
-
}
|
|
468
|
-
.form-group__text-block {
|
|
469
|
-
min-height: var(--form-element-height-default);
|
|
470
|
-
color: inherit;
|
|
471
|
-
font-size: 1.3rem;
|
|
472
|
-
display: inline-flex;
|
|
473
|
-
align-items: center;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
.form-group__wrapper {
|
|
478
|
-
display: flex;
|
|
479
|
-
flex-direction: column;
|
|
480
|
-
width: 100%;
|
|
481
|
-
row-gap: var(--form-layout-row-gap);
|
|
482
|
-
.form-group__label {
|
|
483
|
-
font-size: 1.6rem;
|
|
484
|
-
font-weight: 500;
|
|
485
|
-
color: var(--color-text);
|
|
486
|
-
line-height: 1;
|
|
487
|
-
margin-block-end: var(--space--0-5);
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
|
|
491
|
-
.form-group-item {
|
|
492
|
-
display: flex;
|
|
493
|
-
flex-direction: column;
|
|
494
|
-
flex-grow: 1;
|
|
495
|
-
min-height: var(--form-element-height-default);
|
|
496
|
-
&.form-group-item--span-2 {
|
|
497
|
-
grid-column: span 2;
|
|
498
|
-
}
|
|
499
|
-
&.form-group-item--span-3 {
|
|
500
|
-
grid-column: span 3;
|
|
501
|
-
}
|
|
502
|
-
&.form-group-item--span-4 {
|
|
503
|
-
grid-column: span 4;
|
|
504
|
-
}
|
|
505
|
-
&.form-group-item--auto-width {
|
|
506
|
-
flex-grow: 0;
|
|
507
|
-
min-width: 0;
|
|
508
|
-
flex-basis: auto;
|
|
509
|
-
}
|
|
510
|
-
> *:not(.sd-input):not(.form-group-item__inner):not(.sd-check__group-new) {
|
|
511
|
-
margin-block-start: 1.6rem;
|
|
512
|
-
}
|
|
513
|
-
.form-group-item__inner {
|
|
514
|
-
display: flex;
|
|
515
|
-
gap: var(--space--1);
|
|
516
|
-
align-items: flex-start;
|
|
517
|
-
> *:not(.sd-input) {
|
|
518
|
-
margin-block-start: 1.6rem;
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
|
|
523
|
-
.form-group-item--auto-width {
|
|
524
|
-
flex-grow: 0;
|
|
525
|
-
min-width: 0;
|
|
526
|
-
flex-basis: auto;
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
@container form-container (width <= 900px) {
|
|
530
|
-
.form-group {
|
|
531
|
-
--form-group-col-gap: var(--gap-3);
|
|
532
|
-
}
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
@container form-container (width<= 500px) {
|
|
536
|
-
.form-group {
|
|
537
|
-
--form-group-col-gap: var(--gap-1-5);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
@@ -7,6 +7,3 @@ export {InputWrapper} from './InputWrapper';
|
|
|
7
7
|
export {InputBase} from './InputBase';
|
|
8
8
|
export {InputNew} from './InputNew';
|
|
9
9
|
export {FormRowNew} from './FormRowNew';
|
|
10
|
-
export {FormLayout} from './FormLayout';
|
|
11
|
-
export {FormGroupV2} from './FormGroupV2';
|
|
12
|
-
export {FormGroupItem} from './FormGroupItem';
|
|
@@ -85,7 +85,6 @@ import {ObjectFitUtilitiesDoc} from './utilities/ObjectFitUtilities';
|
|
|
85
85
|
import {ObjectPositionUtilitiesDoc} from './utilities/ObjectPositionUtilities';
|
|
86
86
|
import LoaderDoc from './Loader';
|
|
87
87
|
import CardDoc from './Card';
|
|
88
|
-
import FormLayoutDoc from './FormLayout';
|
|
89
88
|
|
|
90
89
|
interface IPages {
|
|
91
90
|
[group: string]: {
|
|
@@ -305,10 +304,6 @@ const pages: IPages = {
|
|
|
305
304
|
formComponents: {
|
|
306
305
|
name: 'Form Components',
|
|
307
306
|
items: {
|
|
308
|
-
'form-layout': {
|
|
309
|
-
name: 'Form Layout',
|
|
310
|
-
component: FormLayoutDoc,
|
|
311
|
-
},
|
|
312
307
|
inputs: {
|
|
313
308
|
name: 'Inputs',
|
|
314
309
|
component: InputsDoc,
|
package/dist/examples.bundle.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,400italic,500italic,700italic,300,300italic);@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:200,300,400&subset=latin-ext)
|
|
1
|
+
@import url(https://fonts.googleapis.com/css?family=Roboto:400,500,700,400italic,500italic,700italic,300,300italic);@import url(https://fonts.googleapis.com/css?family=Source+Code+Pro:200,300,400&subset=latin-ext);/*
|
|
2
2
|
* Derived from einaros's Sons of Obsidian theme at
|
|
3
3
|
* http://studiostyl.es/schemes/son-of-obsidian by
|
|
4
4
|
* Alex Ford of CodeTunnel:
|