forstok-ui-lib 6.20.2 → 6.21.2

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.
Files changed (29) hide show
  1. package/dist/index.d.ts +10 -49
  2. package/dist/index.js +571 -1167
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +569 -1165
  5. package/dist/index.mjs.map +1 -1
  6. package/package.json +1 -1
  7. package/src/assets/javascripts/function.ts +21 -0
  8. package/src/assets/javascripts/helper.ts +11 -2
  9. package/src/components/index.ts +0 -1
  10. package/src/components/link/index.tsx +4 -1
  11. package/src/components/link/styles.ts +152 -144
  12. package/src/components/link/typed.ts +10 -0
  13. package/src/typeds/shares.typed.ts +26 -26
  14. package/src/components/masterTable/index.tsx +0 -649
  15. package/src/components/masterTable/partials/datas/confirm.tsx +0 -92
  16. package/src/components/masterTable/partials/datas/index.tsx +0 -81
  17. package/src/components/masterTable/partials/editors/date.bare.tsx +0 -39
  18. package/src/components/masterTable/partials/editors/date.tsx +0 -123
  19. package/src/components/masterTable/partials/editors/image.tsx +0 -61
  20. package/src/components/masterTable/partials/editors/input.bare.tsx +0 -127
  21. package/src/components/masterTable/partials/editors/input.tsx +0 -140
  22. package/src/components/masterTable/partials/editors/label.tsx +0 -128
  23. package/src/components/masterTable/partials/editors/select.bare.tsx +0 -104
  24. package/src/components/masterTable/partials/editors/select.tsx +0 -142
  25. package/src/components/masterTable/partials/editors/switch.tsx +0 -56
  26. package/src/components/masterTable/partials/editors/tag.tsx +0 -49
  27. package/src/components/masterTable/partials/editors/textarea.tsx +0 -7
  28. package/src/components/masterTable/styles.tsx +0 -1011
  29. package/src/components/masterTable/typed.ts +0 -87
@@ -1,1011 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import { formLabel, elipsis, thirdElipsis } from '../../assets/stylesheets/bases.styles';
3
-
4
- import IconEditWhite from '../../assets/images/icons/edit-white.svg'
5
- import IconLoadingRed from '../../assets/images/icons/loading-red.svg'
6
-
7
- const divHeaderCell = css`
8
- overflow: hidden;
9
- position: relative;
10
- top: 0;
11
- display: inline-block;
12
- height: 50px;
13
- padding: 10px 10px;
14
- border-right: 1px solid var(--tab-clr-ln);
15
- font-weight: 600;
16
- line-height: 15px;
17
- font-size: 1em
18
- color: var(--hd-clr);
19
- transition: width .25s ease-in-out;
20
- `
21
- const divCell = css`
22
- overflow: hidden;
23
- position: relative;
24
- top: 0;
25
- display: inline-block;
26
- min-height: 82px;
27
- padding: 16px 9px 10px 10px;
28
- border-right: 1px solid var(--tab-clr-ln);
29
- line-height: 1.2;
30
- transition: width .25s ease-in-out, height .25s ease-in-out;
31
- vertical-align: top;
32
- i {
33
- align-self: flex-start;
34
- cursor: pointer;
35
- }
36
- `
37
- const divCellReset = css`
38
- overflow: auto;
39
- top: auto;
40
- height: auto;
41
- padding: 0;
42
- border: 0;
43
- cursor: default;
44
- `
45
- const errrorLists = css`
46
- input, textarea, .table-image-figure.is-error, .rc-cascader-selector, ._refCascaderContainer > div {
47
- border: 1px solid var(--err-clr-ln) !important;
48
- }
49
- input.rc-cascader-selection-search-input {
50
- border: none !important;
51
- }
52
- ._refContainer > div > div {
53
- border-color: var(--err-clr-ln);
54
- input {
55
- border: none !important;
56
- }
57
- }
58
- `
59
- const commonCSSLists = css`
60
- .table-image-figure {
61
- display: block;
62
- overflow: hidden;
63
- width: 56px;
64
- height: 56px;
65
- margin: 0px;
66
- position: relative;
67
- border: 1px solid var(--pri-clr-ln);
68
- background-color: var(--pri-clr-bg);
69
- border-radius: var(--ter-rd);
70
- &.edit, &.add, &.loading {
71
- width: 70px;
72
- height: 70px;
73
- cursor: pointer;
74
- img {
75
- object-fit: contain;
76
- width: 100%;
77
- height: 100%;
78
- background-color: var(--pri-clr-bg);
79
- }
80
- }
81
- &.add {
82
- background-color: #fbfdff;
83
- border: 1px dashed #828ea3;
84
- span {
85
- color: #828ea3;
86
- font-size: 20px;
87
- position: absolute;
88
- top: 50%;
89
- left: 50%;
90
- transform: translate(-50%, -50%);
91
- }
92
- }
93
- &.edit {
94
- border: 1px solid rgba(0, 0, 0, .04);
95
- &:hover {
96
- position: relative;
97
- span {
98
- width: 100%;
99
- height: 100%;
100
- position: absolute;
101
- top: 0;
102
- left: 0;
103
- z-index: 1;
104
- background-color: var(--ov-clr-bg);
105
- }
106
- &::after {
107
- content: url(${IconEditWhite});
108
- height: 14px
109
- width: 14px;
110
- display: inline-block;
111
- pointer-events: none;
112
- position: absolute;
113
- top: 50%;
114
- left: 50%;
115
- transform: translate(-50%, -50%);
116
- z-index: 10;
117
- }
118
- }
119
- }
120
- &.loading {
121
- border: 1px solid rgba(0, 0, 0, .04);
122
- cursor: default;
123
- &::after {
124
- content: url(${IconLoadingRed});
125
- height: 14px;
126
- width: 14px;
127
- display: inline-block;
128
- pointer-events: none;
129
- position: absolute;
130
- top: 50%;
131
- left: 50%;
132
- transform: translate(-50%, -50%);
133
- z-index: 10;
134
- }
135
- }
136
- img {
137
- object-fit: contain;
138
- width: 100%;
139
- height: 100%;
140
- background-color: var(--pri-clr-bg);
141
- }
142
- }
143
- `
144
- const trancateCSS = css`
145
- .truncate-overflow {
146
- position: relative;
147
- max-height: calc(16 * 3)px;
148
- display: -webkit-box !important;
149
- -webkit-line-clamp: 3;
150
- -webkit-box-orient: vertical;
151
- overflow: hidden;
152
- white-space: pre-wrap;
153
- overflow-wrap: anywhere;
154
- word-break: break-all;
155
- line-height: 16px;
156
- p {
157
- line-height: 16px;
158
- }
159
- }
160
- `
161
-
162
- const getTablePopupWrapperModifiedStyled = ({ $mode }:{ $mode?: string }) => {
163
- let style = ``
164
- if ($mode === 'image-listing') {
165
- style += `
166
- padding: 12px 12px 12px 12px;
167
- overflow: visible;
168
- max-width: 452px;
169
- .table-image-figure {
170
- &.edit, &.add, &.loading {
171
- width: 46.5px;
172
- height: 46.5px;
173
- }
174
- }
175
- .image-list {
176
- max-width: 452px;
177
- grid-gap: 8px;
178
- grid-template-columns: repeat(3,46.5px);
179
- grid-template-rows: repeat(3,auto);
180
- }
181
- @media only screen and (min-width: 768px) {
182
- .image-list {
183
- grid-template-columns: repeat(8, 46.5px);
184
- grid-auto-flow: unset;
185
- grid-template-rows: auto;
186
- }
187
-
188
- }
189
- `
190
- }
191
- return style
192
- }
193
- const getCustomWrapperModifiedStyled = ({ $isExpand, $isEditable }:{ $isExpand?: boolean, $isEditable?: boolean }) => {
194
- let style = ``
195
- if ($isExpand) {
196
- style += `
197
- & ${CategoryByLabelContainer} {
198
- padding-bottom: 8px;
199
- }
200
- `
201
- }
202
- if ($isEditable === false) {
203
- style += `
204
- grid-gap: 4px;
205
- padding-left: 4px;
206
- padding-top: 6px;
207
- `
208
- }
209
- return style
210
- }
211
- const getFieldContainerModifiedStyled = ({ $isVariant, $isTotal }:{ $isVariant: boolean, $isTotal: number }) => {
212
- if ($isVariant) {
213
- return`
214
- padding: 12px !important;
215
- border-bottom: 1px solid #e3e3e3;
216
- & ${FieldWrapper} {
217
- grid-template-columns: 90px repeat(${$isTotal ? $isTotal : 4}, 114px);
218
- > aside {
219
- padding-left: 0;
220
- }
221
- }
222
- `
223
- }
224
- else {
225
- return `
226
- padding-bottom: 8px;
227
- ${FieldWrapper} {
228
- grid-template-columns: repeat(4,150px);
229
- }
230
- `
231
- }
232
- }
233
- const getMasterTableViewportModifiedStyled = ({ $mode }:{ $mode?: string }) => {
234
- let style = ``
235
- if ($mode === 'edit-master' || $mode === 'create-listing' || $mode==='edit-listing') {
236
- style += `
237
- height: calc(100vh - 120px);
238
- @media only screen and (min-width: 768px) {
239
- height: calc(100vh - 70px);
240
- }
241
- `
242
- if ($mode === 'create-listing' || $mode === 'edit-listing') {
243
- style += `
244
- ${MasterTableBodyContent} .cell-colGroup {
245
- &, > div {
246
- min-height: 122px;
247
- }
248
- .cell-uneditable {
249
- min-width: 449px;
250
- }
251
- }
252
- `
253
- }
254
- } else if($mode === 'create-inbound' || $mode === 'create-outbound' || $mode === 'create-adjustment') {
255
- style += `
256
- height: calc(100vh - 164px - 367px);
257
- @media only screen and (min-width: 768px) {
258
- height: calc(100vh - 70px - 239px);
259
- }
260
- @media only screen and (min-width: 1024px) {
261
- height: calc(100vh - 70px - 180px);
262
- }
263
- `
264
- } else if($mode === 'create-transfer') {
265
- style += `
266
- height: calc(100vh - 120px - 426px);
267
- @media only screen and (min-width: 768px) {
268
- height: calc(100vh - 76px - 249px);
269
- }
270
- @media only screen and (min-width: 1024px) {
271
- height: calc(100vh - 76px - 180px);
272
- }
273
- `
274
- }
275
- return style
276
- }
277
- const getMasterTableBodyContentModifiedStyled = ({ $mode }:{ $mode?: string}) => {
278
- let style = ``
279
- if($mode === 'create-transfer' || $mode === 'confirm-inbound' || $mode === 'confirm-outbound' || $mode === 'confirm-adjustment') {
280
- style +=`
281
- > div {
282
- min-height: 66px;
283
- &.cell-colGroup {
284
- > div {
285
- min-height: 66px;
286
- }
287
- }
288
- &.cell-rowGroup {
289
- .cell-row {
290
- &, > div {
291
- min-height: 66px;
292
- }
293
- }
294
- }
295
- .cell {
296
- &-label {
297
- &:not([data-key="item"]) {
298
- > span, .cell-wrapper {
299
- padding-top: 6px;
300
- }
301
- }
302
- }
303
- &-trash {
304
- > article, >div {
305
- padding-top: 6px;
306
- }
307
- }
308
- &-checkbox {
309
- padding-top: 22px;
310
- }
311
- }
312
- }
313
- `
314
- } else if($mode === 'create-return') {
315
- style +=`
316
- > div {
317
- .cell {
318
- &-label {
319
- &:not([data-key="item"]) {
320
- > span, .cell-wrapper {
321
- padding-top: 6px;
322
- }
323
- }
324
- }
325
- &-trash {
326
- > article, >div {
327
- padding-top: 6px;
328
- }
329
- }
330
- &-checkbox {
331
- padding-top: 22px;
332
- }
333
- }
334
- }
335
- `
336
- } else if($mode === 'create-price') {
337
- style +=`
338
- > div {
339
- min-height: 100px;
340
- &.cell-colGroup {
341
- > div {
342
- min-height: 100px;
343
- }
344
- }
345
- &.cell-rowGroup {
346
- .cell-row {
347
- &,
348
- > div {
349
- min-height: 100px;
350
- }
351
- }
352
- }
353
- }
354
- ._refErrorContainer {
355
- ${thirdElipsis}
356
- }
357
- `
358
- } else if($mode === 'create-adjustment' || $mode === 'create-outbound') {
359
- style +=`
360
- > div {
361
- min-height: 90px;
362
- &.cell-colGroup {
363
- > div {
364
- min-height: 90px;
365
- }
366
- }
367
- &.cell-rowGroup {
368
- .cell-row {
369
- &,
370
- > div {
371
- min-height: 90px;
372
- }
373
- }
374
- }
375
- }
376
- `
377
- }
378
- return style
379
- }
380
-
381
- export const MasterTable = styled.section`
382
- position: relative;
383
- `
384
- export const MasterTableWrapper = styled.article`
385
- display: inline-block;
386
- width: 100vw;
387
- height: 100vh;
388
- position: relative;
389
- `
390
- export const MasterTableViewport = styled.section<{ $mode?: string }>`
391
- display: inline-block;
392
- width: 100vw;
393
- height: calc(100vh - 220px);
394
- position: relative;
395
- overflow: auto;
396
- transition: all 1s ease;
397
- @media only screen and (min-width: 768px) {
398
- height: calc(100vh - 140px);
399
- }
400
- ${getMasterTableViewportModifiedStyled}
401
- `
402
- export const MasterTableCanvas = styled.article`
403
- display: inline-grid;
404
- grid-auto-flow: row;
405
- padding-bottom: 1px;
406
- min-width: 100vw;
407
- `
408
- export const MasterTableHeaderWrapper = styled.section`
409
- display: inline-block;
410
- width: 100%;
411
- position: relative;
412
- z-index: 99;
413
- line-height: 7px;
414
- transition: left 0s linear;
415
- visibility: hidden;
416
- > section > div {
417
- ${divHeaderCell}
418
- & >header {
419
- position: absolute;
420
- top: 50% !important;
421
- transform: translateY(-50%);
422
- left: 10px;
423
- & img, & .initial-wrapper {
424
- position: absolute;
425
- left: 0;
426
- top: -4px;
427
- }
428
- }
429
- }
430
- .headerCell-Checkbox > label{
431
- position: absolute;
432
- top: 50%;
433
- left: 20px;
434
- }
435
- .headerCell-img {
436
- & >header {
437
- padding-left: 30px;
438
- }
439
- }
440
- &._refMasterTableHeaderClone {
441
- position: fixed;
442
- z-index: 100;
443
- background-color: var(--pri-clr-bg);
444
- visibility: visible;
445
- min-width: 100%;
446
- overflow-y: hidden;
447
- }
448
- `
449
- export const MasterTableHeaderContainer = styled.section`
450
- display: inline-block;
451
- width: 100%;
452
- height: 50px;
453
- overflow-y: hidden;
454
- background-color: var(--ter-clr-bg);
455
- line-height: 50px;
456
- i[name='question'] {
457
- display: inline-block;
458
- margin-left: 2px;
459
- position: relative;
460
- top: 2px;
461
- }
462
- `
463
- export const MasterTableBodyWrapper = styled.section`
464
- display: inline-grid;
465
- grid-auto-flow: row;
466
- height: 100%;
467
- align-content: start;
468
- `
469
- export const MasterTableBodyContent = styled.article<{ $mode?: string }>`
470
- position: relative;
471
- border-bottom: 1px solid var(--tab-clr-ln);
472
- ${commonCSSLists}
473
- ${trancateCSS}
474
- &.is-highlighted, &.is-fullfilled {
475
- background-color: rgba(232, 255, 237, .7);
476
- .cell-rowGroup {
477
- .cell-row {
478
- .cell {
479
- &, &-disabled {
480
- background-color: transparent;
481
- }
482
- }
483
- }
484
- }
485
- .cell-colGroup {
486
- .cell {
487
- &, &-uneditable {
488
- background-color: transparent;
489
- }
490
- &-disabled {
491
- background-color: rgb(250, 250, 250);
492
- &, .cell-wrapper {
493
- cursor: default;
494
- }
495
- }
496
- &-label[data-key='promotionPrice'] {
497
- background-color: transparent;
498
- }
499
- }
500
- }
501
- }
502
- > div {
503
- ${divCell}
504
- }
505
- .custom-error {
506
- ${errrorLists}
507
- }
508
- .cell {
509
- > div:not(.truncate-overflow) {
510
- ${elipsis}
511
- height: 100%;
512
- &.master-editor {
513
- overflow: unset;
514
- }
515
- }
516
- &.cell-trash {
517
- > div {
518
- width: 100%;
519
- display: inline-grid;
520
- justify-content: center;
521
- }
522
- }
523
- &:not(.cell-checkbox) {
524
- > article, > section {
525
- overflow-y: hidden;
526
- }
527
- }
528
- > article, > section {
529
- height: 100%;
530
- position: relative;
531
- }
532
- > section {
533
- &.master-editor {
534
- overflow: unset;
535
- }
536
- > div {
537
- overflow-wrap: break-word;
538
- &:empty {
539
- position: absolute;
540
- top: 0;
541
- left: 0;
542
- height: 100%;
543
- width: 100%;
544
- }
545
- }
546
- }
547
- &-tag {
548
- span {
549
- background-color: hsl(0,0%,90%);
550
- border-radius: 2px;
551
- display: flex;
552
- margin: 2px;
553
- min-width: 0;
554
- padding: 3px 4px;
555
- padding-left: 6px;
556
- float: left;
557
- font-size: 12px;
558
- }
559
- }
560
- &-select {
561
- text-transform: capitalize;
562
- }
563
- &-editing {
564
- input, textarea, .table-image-figure {
565
- border: 1px solid var(--pri-clr-ln__fc) !important;
566
- }
567
- ._refContainer > div > div {
568
- border-color: var(--pri-clr-ln__fc);
569
- border-width: 1px;
570
- input { border: none !important; }
571
- }
572
- }
573
- &-error {
574
- &:not(.cell-custom_select):not(.cell-custom_input) {
575
- ${errrorLists}
576
- }
577
- }
578
- &-uneditable {
579
- background-color: rgb(250, 250, 250);
580
- }
581
- &-label {
582
- cursor: default !important;
583
- }
584
- &-switch {
585
- text-align: center;
586
- }
587
- .cell-wrapper {
588
- .is-less {
589
- display: none !important;
590
- width: 0 !important;
591
- height: 0 !important;
592
- }
593
- ._refCustomContainer {
594
- min-height: 32px;
595
- ._refLoadingfield {
596
- min-height: 32px;
597
- display: inline-block;
598
- width: 100%;
599
- }
600
- }
601
- }
602
- &:not(.cell-custom_select):not(.cell-custom_input):not(.cell-label):not(.cell-checkbox) {
603
- .cell-wrapper {
604
- cursor: pointer;
605
- position: absolute;
606
- top: 0;
607
- left: 0;
608
- width: 100%;
609
- height: 100%;
610
- padding: 16px 10px 10px;
611
- }
612
- }
613
- }
614
- .cell-colGroup {
615
- padding: 0;
616
- border-right: 0;
617
- line-height: 0;
618
- > div {
619
- ${divCell}
620
- &:first-child {
621
- > div {
622
- display: grid;
623
- justify-content: center;
624
- }
625
- }
626
- }
627
- }
628
- .cell-rowGroup {
629
- ${divCellReset}
630
- position: absolute;
631
- top: 0;
632
- display: inline-grid;
633
- grid-auto-flow: row;
634
- .cell-row {
635
- position: relative;
636
- border-bottom: 1px solid var(--tab-clr-ln);
637
- min-height: 82px;
638
- &:last-child {
639
- border-bottom: 0;
640
- }
641
- > div {
642
- ${divCell}
643
- }
644
- .cell-disabled {
645
- background-color: rgb(250, 250, 250);
646
- border-bottom: 1px solid var(--tab-clr-ln);
647
- &, .cell-wrapper {
648
- cursor: default;
649
- }
650
- }
651
- }
652
- }
653
- .cell-checkbox {
654
- &:not(.isChecked):hover , &.isChecked {
655
- article > div {
656
- &:first-child {
657
- display: none;
658
- }
659
- &:last-child {
660
- display: block !important;
661
- }
662
- }
663
- }
664
- > article {
665
- overflow-y: unset;
666
- }
667
- article > div {
668
- text-align: center;
669
- &:first-child {
670
- display: grid;
671
- z-index: 10;
672
- position: relative;
673
- }
674
- &:last-child {
675
- display: none !important;
676
- position: absolute;
677
- top: 0;
678
- left: 50%;
679
- margin-left: -7px;
680
- z-index: 1;
681
- span {
682
- top: 0;
683
- }
684
- }
685
- }
686
- }
687
- .cell-custom_select, .cell-custom_input {
688
- textarea {
689
- resize: none;
690
- min-height: 200px;
691
- max-height: 200px;
692
- }
693
- div[class*="-placeholder"] {
694
- font-size: 13px;
695
- }
696
- }
697
- textarea {
698
- resize: auto;
699
- min-height: 50px;
700
- }
701
- input, textarea {
702
- padding: 8px;
703
- }
704
- .popup-editor {
705
- position: fixed;
706
- z-index: 99;
707
- & , &-overlay {
708
- top: 0;
709
- left: 0;
710
- width: 100vw;
711
- height: 100vh;
712
- }
713
- &-overlay {
714
- position: absolute;
715
- z-index: 1;
716
- background-color: var(--ov-clr-bg);
717
- }
718
- &-content {
719
- background: #fff;
720
- top: 50%;
721
- left: 50%;
722
- position: relative;
723
- transform: translate(-50%, -50%);
724
- z-index: 1;
725
- &.ck-editor-wrapper {
726
- width: 500px;
727
- height: 400px;
728
- }
729
- }
730
- &-header {
731
- background-color: var(--pri-clr-bg);
732
- border-bottom: 1px solid var(--sec-clr-ln);
733
- h3 {
734
- padding: 11px 30px;
735
- color: var(---hd-clr);
736
- }
737
- button[mode="round-close"] {
738
- position: absolute;
739
- top: 16px;
740
- right: 20px;
741
- }
742
- }
743
- }
744
- ${getMasterTableBodyContentModifiedStyled}
745
- `
746
- export const TablePopupWrapper = styled.section<{ $mode?: string }>`
747
- overflow: hidden;
748
- ${commonCSSLists}
749
- .ck-editor__editable {
750
- min-height: 200px;
751
- max-height: 200px;
752
- }
753
- .image-list {
754
- list-style: none;
755
- margin: 0;
756
- padding: 0;
757
- display: inline-grid;
758
- width: 100%;
759
- grid-auto-flow: column;
760
- grid-gap: 12px;
761
- justify-content: left;
762
- grid-template-columns: repeat(3,70px);
763
- grid-template-rows: repeat(3,auto);
764
- li {
765
- position: relative;
766
- .remove {
767
- font-style: normal;
768
- position: absolute;
769
- top: -6px;
770
- right: -6px;
771
- background: #000;
772
- color: var(--sec-clr);
773
- border-radius: 50%;
774
- width: 14px;
775
- height: 14px;
776
- padding: 3px 5px;
777
- font-weight: 600;
778
- font-size: 7px;
779
- z-index: 1;
780
- cursor: pointer;
781
- }
782
- aside {
783
- font-size: 11px;
784
- line-height: 15px;
785
- padding-top: 6px;
786
- text-align: center;
787
- max-height: 36px;
788
- overflow: hidden;
789
- }
790
- > input {
791
- display: none;
792
- }
793
- }
794
- }
795
- @media only screen and (min-width: 768px) {
796
- .image-list {
797
- grid-template-rows: none;
798
- grid-template-columns: repeat(auto-fill, 70px);
799
- }
800
- }
801
- ${getTablePopupWrapperModifiedStyled}
802
- `
803
- export const BulkEditContainer = styled.section<{ $mode?: string }>`
804
- display: grid;
805
- grid-auto-flow: row;
806
- grid-gap: 10px;
807
- align-content: start;
808
- margin-bottom: 1em;
809
- ${({ $mode }:{ $mode?: string }) => {
810
- if ($mode === 'switch') {
811
- return css`
812
- grid-auto-flow: column;
813
- `
814
- }
815
- }}
816
- `
817
- export const LabelContainer = styled.article`
818
- display: inline-grid;
819
- width: 100%;
820
- grid-auto-flow: column;
821
- grid-template-columns: max-content auto;
822
- grid-gap: 10px;
823
- align-items: center;
824
- `
825
- export const ProductByLabelContainer = styled.div`
826
- display: inline-grid;
827
- width: 100%;
828
- grid-auto-flow: row;
829
- grid-gap: 6px;
830
- > section {
831
- display: grid;
832
- &:first-child {
833
- grid-auto-flow: column;
834
- grid-template-columns: 56px auto;
835
- grid-gap: 10px;
836
- }
837
- &:last-child {
838
- grid-auto-flow: row;
839
- grid-gap: 2px;
840
- font-size: 13px;
841
- }
842
- .counter-product-label {
843
- display: inline-block;
844
- width: auto;
845
- margin-top: 4px;
846
- background: #EBEBEB;
847
- border-radius: var(--sec-rd);
848
- padding: 2px 10px;
849
- color: var(--mt-clr);
850
- font-size: 12px;
851
- line-height: 13px;
852
- }
853
- }
854
- `
855
- export const ProductByLabelName = styled.div`
856
- height: auto;
857
- max-height: 34px;
858
- white-space: nowrap;
859
- text-overflow: ellipsis;
860
- overflow: hidden;
861
- @supports (-webkit-line-clamp: 2) {
862
- overflow: hidden;
863
- text-overflow: ellipsis;
864
- white-space: initial;
865
- display: -webkit-box;
866
- -webkit-line-clamp: 2;
867
- -webkit-box-orient: vertical;
868
- }
869
- `
870
- export const ActionByLabelContainer = styled.article<{ $mode?: string }>`
871
- ${({ $mode }:{ $mode?: string }) => {
872
- if ($mode === 'add') {
873
- return css`
874
- div {
875
- position: relative;
876
- cursor: pointer;
877
- text-align: center;
878
- }
879
- `
880
- }
881
- }}
882
- `
883
- export const CategoryByLabelContainer = styled.article<{ $mode?: string }>`
884
- display: inline-grid;
885
- position: relative;
886
- width: 100%;
887
- &, .ck.ck-editor, .rc-cascader, &._refCategoryContainer > div {
888
- &:not([mode="image"]) {
889
- width: 429px !important;
890
- }
891
- }
892
- .ck-editor__editable {
893
- min-height: 200px;
894
- max-height: 200px;
895
- }
896
- input + i {
897
- position: absolute;
898
- right: 9px;
899
- top: 29px;
900
- z-index: 1;
901
- ::before {
902
- fill: #c7c7cc;
903
- color: #c7c7cc;
904
- opacity: .5;
905
- }
906
- }
907
- ${({ $mode }:{ $mode?: string }) => {
908
- if ($mode === 'image') {
909
- return css`
910
- width: 100% !important;
911
- `
912
- }
913
- }}
914
- `
915
- export const CustomWrapper = styled.div<{ $isExpand?: boolean, $isEditable?: boolean }>`
916
- display: inline-grid;
917
- width: auto;
918
- grid-auto-flow: row;
919
- grid-gap: 10px;
920
- input, textarea { box-shadow: none; }
921
- ${getCustomWrapperModifiedStyled}
922
- `
923
- export const CustomBox = styled.div`
924
- width: 429px;
925
- display: block;
926
- `
927
- export const CustomWrapperTitle = styled.aside`
928
- margin-bottom: 6px;
929
- padding: 0 6px;
930
- position: relative;
931
- ${formLabel}
932
- &::first-letter {
933
- text-transform: uppercase;
934
- }
935
- `
936
- export const CustomWrapperTitleSub = styled.i`
937
- font-weight: 400;
938
- font-style: normal;
939
- `
940
- export const CustomRadioWrapper = styled.div`
941
- display: grid;
942
- grid-auto-flow: column;
943
- grid-template-columns: max-content;
944
- grid-gap: 15px;
945
- `
946
- export const FieldContainer = styled.section<{ $isVariant: boolean, $isTotal: number }>`
947
- display: inline-grid;
948
- width: 100%;
949
- grid-auto-flow: row;
950
- grid-gap:8px;
951
- font-size: 13px;
952
- ${getFieldContainerModifiedStyled}
953
- `
954
- export const FieldWrapper = styled.div`
955
- display: grid;
956
- grid-auto-flow: column;
957
- grid-template-columns: 110px auto;
958
- grid-gap:10px;
959
- align-items: baseline;
960
- justify-content: start;
961
- `
962
- export const IsMassContainer = styled.div`
963
- grid-gap: 12px !important;
964
- > a {
965
- position: relative;
966
- font-weight: 400;
967
- font-size: 13px;
968
- &:after {
969
- content: '|';
970
- right: -8px;
971
- position: absolute;
972
- }
973
- &:last-child {
974
- &:after {
975
- display: none;
976
- }
977
- }
978
- }
979
- `
980
- export const StoreContainer = styled.div`
981
- display: inline-grid;
982
- width: 100%;
983
- grid-auto-flow: row;
984
- grid-gap: 6px;
985
- > section {
986
- display: grid;
987
- &:first-child {
988
- grid-auto-flow: column;
989
- grid-template-columns: 30px auto;
990
- grid-gap: 10px;
991
- }
992
- &:last-child {
993
- grid-auto-flow: row;
994
- grid-gap: 10px;
995
- font-size: 13px;
996
- }
997
- }
998
- `
999
- export const AdjustedLabel = styled.span`
1000
- display: inline-block;
1001
- font-weight: 600;
1002
- margin-top: 5px;
1003
- width: 100%;
1004
- `
1005
- export const InfoLabel = styled.span`
1006
- display: flex;
1007
- margin-top: 5px;
1008
- font-size: 12px;
1009
- text-wrap: wrap;
1010
- word-wrap: break-word;
1011
- `