@livechat/platform-workflows 0.1.8 → 0.44.0-beta.v1

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/dist/index.css CHANGED
@@ -1,13 +1,10 @@
1
- /* src/views/Workflows/Creator/Builder/Forms/Schema/overrides/Fields/CustomTags/TagsInput/Input.css */
1
+ /* src/views/Workflows/Creator/Forms/Common/SchemaForm/overrides/Widgets/CustomInput/TagsInput/Tags/Tags.css */
2
2
  .tagify-tooltip-trigger {
3
3
  position: relative;
4
4
  width: 100%;
5
5
  }
6
- .tags-input {
7
- width: 100%;
8
- }
9
6
  .tagify.customLook {
10
- --tags-disabled-bg: var(--surface-primary-disabled);
7
+ --tags-disabled-bg: var(--surface-basic-disabled);
11
8
  --tags-border-color: var(--border-basic-primary);
12
9
  --tags-hover-border-color: var(--border-basic-hover);
13
10
  --tags-focus-border-color: var(--action-primary-default);
@@ -16,9 +13,10 @@
16
13
  --tag-hover: var(--surface-tertiary-hover);
17
14
  --tag-text-color: var(--content-basic-primary);
18
15
  --tag-text-color--edit: var(--content-basic-primary);
19
- --tag-pad: 0.2em 0.4em 0.2em 0.8em;
16
+ --tag-pad: 0.2em 0.4em 0.2em 0.4em;
20
17
  --tag-inset-shadow-size: 1.1em;
21
18
  --tag-invalid-color: var(--content-basic-negative);
19
+ --tag-warning-color: var(--content-basic-warning);
22
20
  --tag-invalid-bg: var(--surface-accent-emphasis-low-negative);
23
21
  --tag--min-width: 1ch;
24
22
  --tag--max-width: 100%;
@@ -29,11 +27,23 @@
29
27
  --tag-remove-btn-bg--hover: var(--action-negative-default);
30
28
  --input-color: inherit;
31
29
  --placeholder-color: var(--content-basic-disabled);
32
- --placeholder-color-focus: rgba(0, 0, 0, 0.25);
30
+ --placeholder-color-focus: var(--content-basic-disabled);
33
31
  --loader-size: 0.8em;
34
32
  --readonly-striped: 1;
35
33
  border-radius: var(--radius-3);
36
- min-height: 36px;
34
+ background: var(--surface-primary-default);
35
+ overflow: hidden;
36
+ }
37
+ .tagify.customLook[disabled] {
38
+ pointer-events: all;
39
+ opacity: 1 !important;
40
+ filter: none;
41
+ --tags-border-color: var(--border-basic-disabled) !important;
42
+ --input-color: var(--content-basic-disabled);
43
+ --tag-text-color: var(--content-basic-disabled);
44
+ tag {
45
+ filter: saturate(0);
46
+ }
37
47
  }
38
48
  .tagify--focus {
39
49
  --tags-border-color: var(--tags-focus-border-color) !important;
@@ -42,27 +52,45 @@
42
52
  --tags-border-color: var(--action-negative-default) !important;
43
53
  }
44
54
  .tagify__input {
45
- padding: 4px 12px !important;
46
- line-height: 26px !important;
55
+ min-height: 30px;
56
+ padding: var(--spacing-1) var(--spacing-8) var(--spacing-05) var(--spacing-3) !important;
57
+ line-height: 22px !important;
58
+ overflow: auto;
59
+ }
60
+ .tagify--multiline .tagify__input {
61
+ align-items: flex-start;
62
+ min-height: 100px !important;
63
+ max-height: 160px;
64
+ overflow-y: auto;
65
+ scrollbar-width: none;
47
66
  }
48
67
  .tagify__tag {
49
68
  margin: 2px 1px !important;
50
69
  }
51
- .tagify__tag__content {
70
+ .tagify.customLook .tagify__tag {
71
+ max-width: calc(100% - 40px);
72
+ }
73
+ .tagify.customLook .tagify__tag__content {
52
74
  display: flex;
53
75
  align-items: center;
54
76
  gap: 6px;
77
+ min-width: 0;
78
+ }
79
+ .tagify.customLook .tagify__tag-text {
80
+ min-width: 0;
81
+ overflow: hidden;
82
+ text-overflow: ellipsis;
83
+ white-space: nowrap;
55
84
  }
56
85
  .tagify__tag__content__icon {
57
- line-height: 0px;
58
- min-width: 0 !important;
59
- display: none !important;
86
+ line-height: 0;
87
+ width: 16px;
88
+ min-width: 16px;
89
+ flex: 0 0 16px;
90
+ visibility: hidden;
60
91
  }
61
92
  .tagify__tag__content__icon.visible {
62
- display: block !important;
63
- }
64
- .tagify.customLook[disabled] {
65
- opacity: 1 !important;
93
+ visibility: visible;
66
94
  }
67
95
  .tagify__tag.tagify--notAllowed div > span {
68
96
  --tag-text-color: var(--tag-invalid-color) !important;
@@ -70,68 +98,31 @@
70
98
  opacity: 1 !important;
71
99
  }
72
100
 
73
- /* src/views/Workflows/Creator/Builder/Forms/Schema/Form.css */
101
+ /* src/views/Workflows/Creator/Forms/Common/SchemaForm/Form.css */
74
102
  .rjsf #root {
75
- border: none;
76
- padding: 0;
103
+ padding: 0px;
77
104
  margin: 0;
78
- }
79
- .rjsf .field:not(:first-of-type) {
80
- margin-top: var(--spacing-5);
81
- }
82
- .rjsf .field.additional {
83
- display: flex;
84
- align-items: center;
85
- gap: var(--spacing-1);
105
+ border: none;
86
106
  }
87
107
  .rjsf fieldset {
88
- min-width: 0;
89
- }
90
- .rjsf fieldset fieldset {
91
- border: solid 0.5px var(--surface-tertiary-default);
92
- border-radius: var(--radius-3);
93
- background-color: var(--surface-secondary-default);
94
- }
95
- .rjsf fieldset fieldset fieldset {
96
- background-color: var(--surface-tertiary-default);
97
- }
98
- .rjsf .array-item-list {
99
- margin-bottom: var(--spacing-2);
108
+ border: 1px solid var(--border-basic-secondary);
109
+ border-radius: 8px;
110
+ min-width: auto;
111
+ max-width: 100%;
112
+ margin-inline: 0;
100
113
  }
101
114
  .rjsf .array-item {
102
- display: flex;
115
+ max-width: 100%;
116
+ & > div:has(+ div > button) {
117
+ max-width: calc(100% - 24px);
118
+ }
103
119
  }
104
- .rjsf .array-item > div {
105
- flex: 1;
106
- }
107
- .rjsf .array-item div.array-item-toolbox {
108
- flex: 0;
109
- align-self: flex-end;
110
- justify-self: flex-end;
111
- margin-bottom: var(--spacing-3);
112
- }
113
- .array-item:has(div > .field.has-error) .array-item-toolbox .btn-group {
114
- margin-bottom: var(--spacing-6);
115
- }
116
-
117
- /* src/views/Workflows/Creator/Builder/Handles/CustomAdd/Handle.css */
118
- .react-flow__handle {
119
- border-radius: 0;
120
- width: 14px !important;
121
- height: 14px !important;
122
- background: transparent !important;
120
+ .rjsf .no-fieldset-border > div > div > div > div > fieldset {
123
121
  border: none !important;
122
+ padding: 0 !important;
123
+ margin: 0 !important;
124
124
  }
125
- .react-flow__handle svg {
126
- opacity: 0;
127
- width: 12px;
128
- height: 12px;
129
- }
130
-
131
- /* src/views/Workflows/Creator/Builder/Diagram.css */
132
- .react-flow__edge-textbg {
133
- fill: var(--surface-tertiary-default) !important;
134
- }
135
- .react-flow__edge-text {
136
- fill: var(--content-basic-primary);
125
+ .rjsf .rjsf-field {
126
+ padding-top: var(--spacing-1);
127
+ padding-bottom: var(--spacing-1);
137
128
  }