@adcops/autocore-react 3.0.34 → 3.0.36

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 (173) hide show
  1. package/dist/assets/BlocklyLogo.js +1 -9
  2. package/dist/assets/Distance.js +1 -5
  3. package/dist/assets/JogLong.js +1 -3
  4. package/dist/assets/JogMedium.js +1 -3
  5. package/dist/assets/JogShort.js +1 -3
  6. package/dist/assets/PythonLogo.js +1 -21
  7. package/dist/assets/Rotation3D.js +1 -3
  8. package/dist/assets/RotationCcw.js +1 -10
  9. package/dist/assets/RotationCcwA.js +1 -16
  10. package/dist/assets/RotationCcwB.js +1 -16
  11. package/dist/assets/RotationCcwC.js +1 -16
  12. package/dist/assets/RotationCw.js +1 -10
  13. package/dist/assets/RotationCwA.js +1 -16
  14. package/dist/assets/RotationCwB.js +1 -16
  15. package/dist/assets/RotationCwC.js +1 -16
  16. package/dist/assets/Run.js +1 -3
  17. package/dist/assets/Speed.js +1 -5
  18. package/dist/assets/SpeedFast.js +1 -3
  19. package/dist/assets/SpeedMedium.js +1 -3
  20. package/dist/assets/SpeedNone.js +1 -3
  21. package/dist/assets/SpeedSlow.js +1 -3
  22. package/dist/assets/Walk.js +1 -3
  23. package/dist/assets/index.js +1 -22
  24. package/dist/components/BlocklyEditor.css +71 -2
  25. package/dist/components/BlocklyEditor.js +1 -508
  26. package/dist/components/CodeEditor.js +1 -108
  27. package/dist/components/FileList.js +1 -218
  28. package/dist/components/FileSelect.js +1 -63
  29. package/dist/components/FitText.js +1 -13
  30. package/dist/components/Indicator.js +1 -113
  31. package/dist/components/IndicatorButton.js +1 -187
  32. package/dist/components/IndicatorRect.js +1 -93
  33. package/dist/components/JogPanel.js +1 -295
  34. package/dist/components/Lamp.js +1 -161
  35. package/dist/components/Osk.js +1 -125
  36. package/dist/components/OskDialog.js +1 -128
  37. package/dist/components/ProgressBarWithValue.js +1 -18
  38. package/dist/components/TextInput.js +1 -139
  39. package/dist/components/ToggleGroup.js +1 -204
  40. package/dist/components/ValueDisplay.js +1 -160
  41. package/dist/components/ValueIndicator.js +1 -38
  42. package/dist/components/ValueInput.js +1 -158
  43. package/dist/core/ActionMode.js +1 -18
  44. package/dist/core/EventEmitterContext.js +1 -252
  45. package/dist/core/IndicatorButtonState.js +1 -9
  46. package/dist/core/IndicatorColor.js +1 -36
  47. package/dist/core/MaskPatterns.js +1 -80
  48. package/dist/core/NumerableTypes.js +1 -10
  49. package/dist/core/PositionContext.js +1 -24
  50. package/dist/core/UniqueId.js +1 -32
  51. package/dist/core/ValueSimulator.js +1 -233
  52. package/dist/core/hoc.js +1 -44
  53. package/dist/hooks/adsHooks.js +1 -253
  54. package/dist/hooks/commandHooks.js +1 -252
  55. package/dist/hooks/index.js +1 -10
  56. package/dist/hooks/useScaledValue.js +1 -86
  57. package/dist/hub/CommandMessage.js +1 -9
  58. package/dist/hub/HubBase.js +1 -310
  59. package/dist/hub/HubSimulate.js +1 -46
  60. package/dist/hub/HubTauri.js +1 -130
  61. package/dist/hub/HubWebSocket.js +1 -240
  62. package/dist/hub/index.js +1 -57
  63. package/dist/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleMono-Italic-VariableFont_wght.ttf +0 -0
  64. package/dist/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleMono-VariableFont_wght.ttf +0 -0
  65. package/dist/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.ttf +0 -0
  66. package/dist/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-Regular.woff2 +0 -0
  67. package/dist/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-RegularItalic.woff2 +0 -0
  68. package/dist/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf +0 -0
  69. package/dist/themes/adc-dark/blue/theme.css +7097 -0
  70. package/dist/themes/adc-dark/blue/theme.css.map +1 -0
  71. package/package.json +8 -2
  72. package/src/components/BlocklyEditor.css +71 -2
  73. package/src/themes/adc-dark/_extensions.scss +166 -0
  74. package/src/themes/adc-dark/_variables.scss +913 -0
  75. package/src/themes/adc-dark/blue/_fonts.scss +24 -0
  76. package/src/themes/adc-dark/blue/adc_theme.scss +31 -0
  77. package/src/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleMono-Italic-VariableFont_wght.ttf +0 -0
  78. package/src/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleMono-VariableFont_wght.ttf +0 -0
  79. package/src/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-Italic-VariableFont_wght.ttf +0 -0
  80. package/src/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-Regular.woff2 +0 -0
  81. package/src/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-RegularItalic.woff2 +0 -0
  82. package/src/themes/adc-dark/blue/fonts/AtkinsonHyperlegibleNext-VariableFont_wght.ttf +0 -0
  83. package/src/themes/adc-dark/blue/theme.scss +14 -0
  84. package/src/themes/theme-base/_colors.scss +18 -0
  85. package/src/themes/theme-base/_common.scss +75 -0
  86. package/src/themes/theme-base/_components.scss +111 -0
  87. package/src/themes/theme-base/_mixins.scss +243 -0
  88. package/src/themes/theme-base/components/button/_button.scss +644 -0
  89. package/src/themes/theme-base/components/button/_speeddial.scss +91 -0
  90. package/src/themes/theme-base/components/button/_splitbutton.scss +359 -0
  91. package/src/themes/theme-base/components/data/_carousel.scss +39 -0
  92. package/src/themes/theme-base/components/data/_datascroller.scss +47 -0
  93. package/src/themes/theme-base/components/data/_datatable.scss +389 -0
  94. package/src/themes/theme-base/components/data/_dataview.scss +47 -0
  95. package/src/themes/theme-base/components/data/_filter.scss +138 -0
  96. package/src/themes/theme-base/components/data/_orderlist.scss +86 -0
  97. package/src/themes/theme-base/components/data/_organizationchart.scss +50 -0
  98. package/src/themes/theme-base/components/data/_paginator.scss +91 -0
  99. package/src/themes/theme-base/components/data/_picklist.scss +74 -0
  100. package/src/themes/theme-base/components/data/_timeline.scss +38 -0
  101. package/src/themes/theme-base/components/data/_tree.scss +184 -0
  102. package/src/themes/theme-base/components/data/_treetable.scss +431 -0
  103. package/src/themes/theme-base/components/file/_fileupload.scss +41 -0
  104. package/src/themes/theme-base/components/input/_autocomplete.scss +95 -0
  105. package/src/themes/theme-base/components/input/_calendar.scss +251 -0
  106. package/src/themes/theme-base/components/input/_cascadeselect.scss +107 -0
  107. package/src/themes/theme-base/components/input/_checkbox.scss +181 -0
  108. package/src/themes/theme-base/components/input/_chips.scss +102 -0
  109. package/src/themes/theme-base/components/input/_colorpicker.scss +18 -0
  110. package/src/themes/theme-base/components/input/_dropdown.scss +252 -0
  111. package/src/themes/theme-base/components/input/_editor.scss +122 -0
  112. package/src/themes/theme-base/components/input/_iconfield.scss +10 -0
  113. package/src/themes/theme-base/components/input/_inputgroup.scss +74 -0
  114. package/src/themes/theme-base/components/input/_inputicon.scss +15 -0
  115. package/src/themes/theme-base/components/input/_inputnumber.scss +5 -0
  116. package/src/themes/theme-base/components/input/_inputotp.scss +10 -0
  117. package/src/themes/theme-base/components/input/_inputswitch.scss +100 -0
  118. package/src/themes/theme-base/components/input/_inputtext.scss +101 -0
  119. package/src/themes/theme-base/components/input/_listbox.scss +139 -0
  120. package/src/themes/theme-base/components/input/_mention.scss +31 -0
  121. package/src/themes/theme-base/components/input/_multiselect.scss +278 -0
  122. package/src/themes/theme-base/components/input/_password.scss +33 -0
  123. package/src/themes/theme-base/components/input/_radiobutton.scss +170 -0
  124. package/src/themes/theme-base/components/input/_rating.scss +81 -0
  125. package/src/themes/theme-base/components/input/_selectbutton.scss +50 -0
  126. package/src/themes/theme-base/components/input/_slider.scss +49 -0
  127. package/src/themes/theme-base/components/input/_togglebutton.scss +99 -0
  128. package/src/themes/theme-base/components/input/_treeselect.scss +151 -0
  129. package/src/themes/theme-base/components/input/_tristatecheckbox.scss +46 -0
  130. package/src/themes/theme-base/components/menu/_breadcrumb.scss +42 -0
  131. package/src/themes/theme-base/components/menu/_contextmenu.scss +39 -0
  132. package/src/themes/theme-base/components/menu/_dock.scss +109 -0
  133. package/src/themes/theme-base/components/menu/_megamenu.scss +141 -0
  134. package/src/themes/theme-base/components/menu/_menu.scss +33 -0
  135. package/src/themes/theme-base/components/menu/_menubar.scss +216 -0
  136. package/src/themes/theme-base/components/menu/_panelmenu.scss +153 -0
  137. package/src/themes/theme-base/components/menu/_slidemenu.scss +60 -0
  138. package/src/themes/theme-base/components/menu/_steps.scss +57 -0
  139. package/src/themes/theme-base/components/menu/_tabmenu.scss +50 -0
  140. package/src/themes/theme-base/components/menu/_tieredmenu.scss +43 -0
  141. package/src/themes/theme-base/components/messages/_inlinemessage.scss +69 -0
  142. package/src/themes/theme-base/components/messages/_message.scss +107 -0
  143. package/src/themes/theme-base/components/messages/_toast.scss +100 -0
  144. package/src/themes/theme-base/components/misc/_avatar.scss +34 -0
  145. package/src/themes/theme-base/components/misc/_badge.scss +77 -0
  146. package/src/themes/theme-base/components/misc/_blockui.scss +0 -0
  147. package/src/themes/theme-base/components/misc/_chip.scss +39 -0
  148. package/src/themes/theme-base/components/misc/_inplace.scss +17 -0
  149. package/src/themes/theme-base/components/misc/_metergroup.scss +81 -0
  150. package/src/themes/theme-base/components/misc/_progressbar.scss +17 -0
  151. package/src/themes/theme-base/components/misc/_scrolltop.scss +25 -0
  152. package/src/themes/theme-base/components/misc/_skeleton.scss +8 -0
  153. package/src/themes/theme-base/components/misc/_tag.scss +40 -0
  154. package/src/themes/theme-base/components/misc/_terminal.scss +12 -0
  155. package/src/themes/theme-base/components/multimedia/_galleria.scss +153 -0
  156. package/src/themes/theme-base/components/multimedia/_image.scss +54 -0
  157. package/src/themes/theme-base/components/overlay/_confirmpopup.scss +72 -0
  158. package/src/themes/theme-base/components/overlay/_dialog.scss +78 -0
  159. package/src/themes/theme-base/components/overlay/_overlaypanel.scss +64 -0
  160. package/src/themes/theme-base/components/overlay/_sidebar.scss +23 -0
  161. package/src/themes/theme-base/components/overlay/_tooltip.scss +33 -0
  162. package/src/themes/theme-base/components/panel/_accordion.scss +118 -0
  163. package/src/themes/theme-base/components/panel/_card.scss +30 -0
  164. package/src/themes/theme-base/components/panel/_divider.scss +31 -0
  165. package/src/themes/theme-base/components/panel/_fieldset.scss +47 -0
  166. package/src/themes/theme-base/components/panel/_panel.scss +47 -0
  167. package/src/themes/theme-base/components/panel/_scrollpanel.scss +10 -0
  168. package/src/themes/theme-base/components/panel/_splitter.scss +23 -0
  169. package/src/themes/theme-base/components/panel/_stepper.scss +136 -0
  170. package/src/themes/theme-base/components/panel/_tabview.scss +147 -0
  171. package/src/themes/theme-base/components/panel/_toolbar.scss +11 -0
  172. package/tools/build-themes.cjs +66 -0
  173. package/tools/copy-distribution-files.cjs +20 -16
@@ -0,0 +1,251 @@
1
+ .p-calendar {
2
+ &.p-invalid.p-component > .p-inputtext {
3
+ @include invalid-input();
4
+ }
5
+
6
+ &:not(.p-calendar-disabled).p-focus > .p-inputtext {
7
+ @include focused-input();
8
+ }
9
+ }
10
+
11
+ .p-datepicker {
12
+ padding: $calendarPadding;
13
+ background: $calendarInlineBg;
14
+ color: $calendarTextColor;
15
+ border: $calendarBorder;
16
+ border-radius: $borderRadius;
17
+
18
+ &:not(.p-datepicker-inline) {
19
+ background: $calendarBg;
20
+ border: $calendarOverlayBorder;
21
+ box-shadow: $inputOverlayShadow;
22
+
23
+ .p-datepicker-header {
24
+ background: $calendarHeaderBg;
25
+ }
26
+ }
27
+
28
+ .p-datepicker-header {
29
+ padding: $calendarHeaderPadding;
30
+ color: $calendarHeaderTextColor;
31
+ background: $calendarInlineHeaderBg;
32
+ font-weight: $calendarHeaderFontWeight;
33
+ margin: $inputListHeaderMargin;
34
+ border-bottom: $calendarHeaderBorder;
35
+ border-top-right-radius: $borderRadius;
36
+ border-top-left-radius: $borderRadius;
37
+
38
+ .p-datepicker-prev,
39
+ .p-datepicker-next {
40
+ @include action-icon();
41
+ }
42
+
43
+ .p-datepicker-title {
44
+ line-height: $actionIconHeight;
45
+
46
+ .p-datepicker-year,
47
+ .p-datepicker-month {
48
+ color: $calendarHeaderTextColor;
49
+ transition: $actionIconTransition;
50
+ font-weight: $calendarHeaderFontWeight;
51
+ padding: $calendarHeaderCellPadding;
52
+
53
+ &:enabled:hover {
54
+ color: $calendarMonthYearHeaderHoverTextColor;
55
+ }
56
+ }
57
+
58
+ .p-datepicker-month {
59
+ margin-right: $inlineSpacing;
60
+ }
61
+ }
62
+ }
63
+
64
+ table {
65
+ font-size: $fontSize;
66
+ margin: $calendarTableMargin;
67
+
68
+ th {
69
+ padding: $calendarHeaderCellPadding;
70
+
71
+ > span {
72
+ width: $calendarCellDateWidth;
73
+ height: $calendarCellDateHeight;
74
+ }
75
+ }
76
+
77
+ td {
78
+ padding: $calendarCellDatePadding;
79
+
80
+ > span {
81
+ width: $calendarCellDateWidth;
82
+ height: $calendarCellDateHeight;
83
+ border-radius: $calendarCellDateBorderRadius;
84
+ transition: $listItemTransition;
85
+ border: $calendarCellDateBorder;
86
+
87
+ &.p-highlight {
88
+ color: $highlightTextColor;
89
+ background: $highlightBg;
90
+ }
91
+
92
+ &:focus {
93
+ @include focused();
94
+ }
95
+ }
96
+
97
+ &.p-datepicker-today {
98
+ > span {
99
+ background: $calendarCellDateTodayBg;
100
+ color: $calendarCellDateTodayTextColor;
101
+ border-color: $calendarCellDateTodayBorderColor;
102
+
103
+ &.p-highlight {
104
+ color: $highlightTextColor;
105
+ background: $highlightBg;
106
+ }
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ .p-datepicker-buttonbar {
113
+ padding: $calendarButtonBarPadding;
114
+ border-top: $divider;
115
+
116
+ .p-button {
117
+ width: auto;
118
+ }
119
+ }
120
+
121
+ .p-timepicker {
122
+ border-top: $divider;
123
+ padding: $calendarTimePickerPadding;
124
+
125
+ button {
126
+ @include action-icon();
127
+
128
+ &:last-child {
129
+ margin-top: 0.2em;
130
+ }
131
+ }
132
+
133
+ span {
134
+ font-size: $calendarTimePickerTimeFontSize;
135
+ }
136
+
137
+ > div {
138
+ padding: $calendarTimePickerElementPadding;
139
+ }
140
+ }
141
+
142
+ &.p-datepicker-timeonly {
143
+ .p-timepicker {
144
+ border-top: 0 none;
145
+ }
146
+ }
147
+
148
+ .p-monthpicker {
149
+ margin: $calendarTableMargin;
150
+
151
+ .p-monthpicker-month {
152
+ padding: $calendarCellDatePadding;
153
+ transition: $listItemTransition;
154
+ border-radius: $borderRadius;
155
+
156
+ &.p-highlight {
157
+ color: $highlightTextColor;
158
+ background: $highlightBg;
159
+ }
160
+ }
161
+ }
162
+
163
+ .p-yearpicker {
164
+ margin: $calendarTableMargin;
165
+
166
+ .p-yearpicker-year {
167
+ padding: $calendarCellDatePadding;
168
+ transition: $listItemTransition;
169
+ border-radius: $borderRadius;
170
+
171
+ &.p-highlight {
172
+ color: $highlightTextColor;
173
+ background: $highlightBg;
174
+ }
175
+ }
176
+ }
177
+
178
+ &.p-datepicker-multiple-month {
179
+ .p-datepicker-group {
180
+ border-left: $divider;
181
+ padding-right: $calendarPadding;
182
+ padding-left: $calendarPadding;
183
+ padding-top: 0;
184
+ padding-bottom: 0;
185
+
186
+ &:first-child {
187
+ padding-left: 0;
188
+ border-left: 0 none;
189
+ }
190
+
191
+ &:last-child {
192
+ padding-right: 0;
193
+ }
194
+ }
195
+ }
196
+
197
+ &:not(.p-disabled) {
198
+ table {
199
+ td {
200
+ span:not(.p-highlight):not(.p-disabled) {
201
+ &:hover {
202
+ background: $calendarCellDateHoverBg;
203
+ }
204
+
205
+ &:focus {
206
+ @include focused();
207
+ }
208
+ }
209
+ }
210
+ }
211
+
212
+ .p-monthpicker {
213
+ .p-monthpicker-month {
214
+ &:not(.p-disabled) {
215
+ &:not(.p-highlight):hover {
216
+ background: $calendarCellDateHoverBg;
217
+ }
218
+
219
+ &:focus {
220
+ @include focused();
221
+ }
222
+ }
223
+ }
224
+ }
225
+
226
+ .p-yearpicker {
227
+ .p-yearpicker-year {
228
+ &:not(.p-disabled) {
229
+ &:not(.p-highlight):hover {
230
+ background: $calendarCellDateHoverBg;
231
+ }
232
+
233
+ &:focus {
234
+ @include focused();
235
+ }
236
+ }
237
+ }
238
+ }
239
+ }
240
+ }
241
+
242
+ @media screen and (max-width: $calendarBreakpoint) {
243
+ .p-datepicker {
244
+ table {
245
+ th,
246
+ td {
247
+ padding: $calendarCellDatePaddingSM;
248
+ }
249
+ }
250
+ }
251
+ }
@@ -0,0 +1,107 @@
1
+ .p-cascadeselect {
2
+ background: $inputBg;
3
+ border: $inputBorder;
4
+ transition: $formElementTransition;
5
+ border-radius: $borderRadius;
6
+ outline-color: transparent;
7
+
8
+ &:not(.p-disabled):hover {
9
+ border-color: $inputHoverBorderColor;
10
+ }
11
+
12
+ &:not(.p-disabled).p-focus {
13
+ @include focused-input();
14
+ }
15
+
16
+ &.p-variant-filled {
17
+ background-color: $inputFilledBg;
18
+
19
+ &:enabled:hover {
20
+ background-color: $inputFilledHoverBg;
21
+ }
22
+
23
+ &:enabled:focus {
24
+ background-color: $inputFilledFocusBg;
25
+ }
26
+ }
27
+
28
+ .p-cascadeselect-label {
29
+ background: transparent;
30
+ border: 0 none;
31
+ padding: $inputPadding;
32
+
33
+ &.p-placeholder {
34
+ color: $inputPlaceholderTextColor;
35
+ }
36
+
37
+ &:enabled:focus {
38
+ outline: 0 none;
39
+ box-shadow: none;
40
+ }
41
+ }
42
+
43
+ .p-cascadeselect-trigger {
44
+ background: transparent;
45
+ color: $inputIconColor;
46
+ width: $inputGroupAddOnMinWidth;
47
+ border-top-right-radius: $borderRadius;
48
+ border-bottom-right-radius: $borderRadius;
49
+ }
50
+
51
+ &.p-invalid.p-component {
52
+ @include invalid-input();
53
+ }
54
+ }
55
+
56
+ .p-cascadeselect-panel {
57
+ background: $inputOverlayBg;
58
+ color: $inputListTextColor;
59
+ border: $inputOverlayBorder;
60
+ border-radius: $borderRadius;
61
+ box-shadow: $inputOverlayShadow;
62
+
63
+ .p-cascadeselect-items {
64
+ padding: $inputListPadding;
65
+
66
+ .p-cascadeselect-item {
67
+ margin: $inputListItemMargin;
68
+ border: $inputListItemBorder;
69
+ color: $inputListItemTextColor;
70
+ background: $inputListItemBg;
71
+ transition: $listItemTransition;
72
+ border-radius: $inputListItemBorderRadius;
73
+
74
+ &:first-child {
75
+ margin-top: 0;
76
+ }
77
+
78
+ &:last-child {
79
+ margin-bottom: 0;
80
+ }
81
+
82
+ &.p-highlight {
83
+ color: $highlightTextColor;
84
+ background: $highlightBg;
85
+
86
+ &.p-focus {
87
+ background: $highlightFocusBg;
88
+ }
89
+ }
90
+
91
+ &:not(.p-highlight):not(.p-disabled) {
92
+ &.p-focus {
93
+ color: $inputListItemTextHoverColor;
94
+ background: $inputListItemHoverBg;
95
+ }
96
+ }
97
+
98
+ .p-cascadeselect-item-content {
99
+ padding: $inputListItemPadding;
100
+ }
101
+
102
+ .p-cascadeselect-group-icon {
103
+ font-size: $menuitemSubmenuIconFontSize;
104
+ }
105
+ }
106
+ }
107
+ }
@@ -0,0 +1,181 @@
1
+ //core
2
+ .p-checkbox {
3
+ position: relative;
4
+ display: inline-flex;
5
+ user-select: none;
6
+ vertical-align: bottom;
7
+ }
8
+
9
+ .p-checkbox-input {
10
+ appearance: none;
11
+ position: absolute;
12
+ top: 0;
13
+ left: 0;
14
+ width: 100%;
15
+ height: 100%;
16
+ padding: 0;
17
+ margin: 0;
18
+ opacity: 0;
19
+ z-index: 1;
20
+ outline: 0 none;
21
+ cursor: pointer;
22
+ }
23
+
24
+ .p-checkbox-box {
25
+ display: flex;
26
+ justify-content: center;
27
+ align-items: center;
28
+ }
29
+
30
+ // theme
31
+ .p-checkbox {
32
+ width: $checkboxWidth;
33
+ height: $checkboxHeight;
34
+
35
+ .p-checkbox-input {
36
+ border: $checkboxBorder;
37
+ border-radius: $borderRadius;
38
+ }
39
+
40
+ .p-checkbox-box {
41
+ border: $checkboxBorder;
42
+ background: $inputBg;
43
+ width: $checkboxWidth;
44
+ height: $checkboxHeight;
45
+ color: $textColor;
46
+ border-radius: $borderRadius;
47
+ transition: $formElementTransition;
48
+ outline-color: transparent;
49
+
50
+ .p-checkbox-icon {
51
+ transition-duration: $transitionDuration;
52
+ color: $checkboxIconActiveColor;
53
+ font-size: $checkboxIconFontSize;
54
+
55
+ &.p-icon {
56
+ width: $checkboxIconFontSize;
57
+ height: $checkboxIconFontSize;
58
+ }
59
+ }
60
+ }
61
+
62
+ .p-checkbox-box {
63
+ border: $checkboxBorder;
64
+ background: $inputBg;
65
+ width: $checkboxWidth;
66
+ height: $checkboxHeight;
67
+ color: $textColor;
68
+ border-radius: $borderRadius;
69
+ transition: $formElementTransition;
70
+ outline-color: transparent;
71
+
72
+ .p-checkbox-icon {
73
+ transition-duration: $transitionDuration;
74
+ color: $checkboxIconActiveColor;
75
+ font-size: $checkboxIconFontSize;
76
+
77
+ &.p-icon {
78
+ width: $checkboxIconFontSize;
79
+ height: $checkboxIconFontSize;
80
+ }
81
+ }
82
+ }
83
+
84
+
85
+ &.p-highlight {
86
+ .p-checkbox-box {
87
+ border-color: $checkboxActiveBorderColor;
88
+ background: $checkboxActiveBg;
89
+ }
90
+ }
91
+
92
+ &:not(.p-disabled) {
93
+ &:has(.p-checkbox-input:hover) {
94
+ .p-checkbox-box {
95
+ border-color: $inputHoverBorderColor;
96
+ }
97
+
98
+ &.p-highlight {
99
+ .p-checkbox-box {
100
+ border-color: $checkboxActiveHoverBorderColor;
101
+ background: $checkboxActiveHoverBg;
102
+ color: $checkboxIconActiveHoverColor;
103
+ }
104
+ }
105
+ }
106
+
107
+ &:has(.p-checkbox-input:focus-visible) {
108
+ .p-checkbox-box {
109
+ @include focused-input();
110
+ }
111
+ }
112
+ }
113
+
114
+ &.p-invalid > .p-checkbox-box {
115
+ @include invalid-input();
116
+ }
117
+
118
+ &.p-variant-filled {
119
+ .p-checkbox-box {
120
+ background-color: $inputFilledBg;
121
+ }
122
+
123
+ &.p-highlight {
124
+ .p-checkbox-box {
125
+ background: $checkboxActiveBg;
126
+ }
127
+ }
128
+
129
+ &:not(.p-disabled) {
130
+ &:has(.p-checkbox-input:hover) {
131
+ .p-checkbox-box {
132
+ background-color: $inputFilledHoverBg;
133
+ }
134
+
135
+ &.p-highlight {
136
+ .p-checkbox-box {
137
+ background: $checkboxActiveHoverBg;
138
+ }
139
+ }
140
+ }
141
+ }
142
+ }
143
+ }
144
+
145
+ .p-input-filled {
146
+ .p-checkbox {
147
+ .p-checkbox-box {
148
+ background-color: $inputFilledBg;
149
+ }
150
+
151
+ &.p-highlight {
152
+ .p-checkbox-box {
153
+ background: $checkboxActiveBg;
154
+ }
155
+ }
156
+
157
+ &:not(.p-disabled) {
158
+ &:has(.p-checkbox-input:hover) {
159
+ .p-checkbox-box {
160
+ background-color: $inputFilledHoverBg;
161
+ }
162
+
163
+ &.p-highlight {
164
+ .p-checkbox-box {
165
+ background: $checkboxActiveHoverBg;
166
+ }
167
+ }
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+ @if ($highlightBg == $checkboxActiveBg) {
174
+ .p-highlight {
175
+ .p-checkbox {
176
+ .p-checkbox-box {
177
+ border-color: $checkboxIconActiveColor;
178
+ }
179
+ }
180
+ }
181
+ }
@@ -0,0 +1,102 @@
1
+ @use "sass:math";
2
+
3
+ // core
4
+ .p-chips {
5
+ display: inline-flex;
6
+ }
7
+
8
+ .p-chips-multiple-container {
9
+ margin: 0;
10
+ padding: 0;
11
+ list-style-type: none;
12
+ cursor: text;
13
+ overflow: hidden;
14
+ display: flex;
15
+ align-items: center;
16
+ flex-wrap: wrap;
17
+ }
18
+
19
+ .p-chips-token {
20
+ cursor: default;
21
+ display: inline-flex;
22
+ align-items: center;
23
+ flex: 0 0 auto;
24
+ }
25
+
26
+ .p-chips-input-token {
27
+ flex: 1 1 auto;
28
+ display: inline-flex;
29
+ }
30
+
31
+ .p-chips-token-icon {
32
+ cursor: pointer;
33
+ }
34
+
35
+ .p-chips-input-token input {
36
+ border: 0 none;
37
+ outline: 0 none;
38
+ background-color: transparent;
39
+ margin: 0;
40
+ padding: 0;
41
+ box-shadow: none;
42
+ border-radius: 0;
43
+ width: 100%;
44
+ }
45
+
46
+ .p-fluid .p-chips {
47
+ display: flex;
48
+ }
49
+
50
+ // theme
51
+ .p-chips {
52
+ &:not(.p-disabled):hover {
53
+ .p-chips-multiple-container {
54
+ border-color: $inputHoverBorderColor;
55
+ }
56
+ }
57
+
58
+ &:not(.p-disabled).p-focus {
59
+ .p-chips-multiple-container {
60
+ @include focused-input();
61
+ }
62
+ }
63
+
64
+ .p-chips-multiple-container {
65
+ padding: math.div(nth($inputPadding, 1), 2) nth($inputPadding, 2);
66
+ outline-color: transparent;
67
+
68
+ .p-chips-token {
69
+ padding: math.div(nth($inputPadding, 1), 2) nth($inputPadding, 2);
70
+ margin-right: $inlineSpacing;
71
+ background: $chipBg;
72
+ color: $chipTextColor;
73
+ border-radius: $chipBorderRadius;
74
+
75
+ &.p-focus {
76
+ background: $chipFocusBg;
77
+ color: $chipFocusTextColor;
78
+ }
79
+
80
+ .p-chips-token-icon {
81
+ margin-left: $inlineSpacing;
82
+ }
83
+ }
84
+
85
+ .p-chips-input-token {
86
+ padding: math.div(nth($inputPadding, 1), 2) 0;
87
+
88
+ input {
89
+ font-family: var(--font-family);
90
+ font-feature-settings: var(--font-feature-settings, normal);
91
+ font-size: $inputTextFontSize;
92
+ color: $textColor;
93
+ padding: 0;
94
+ margin: 0;
95
+ }
96
+ }
97
+ }
98
+
99
+ &.p-invalid.p-component > .p-inputtext {
100
+ @include invalid-input();
101
+ }
102
+ }
@@ -0,0 +1,18 @@
1
+ .p-colorpicker-preview {
2
+ width: $colorPickerPreviewWidth;
3
+ height: $colorPickerPreviewHeight;
4
+ }
5
+
6
+ .p-colorpicker-panel {
7
+ background: $colorPickerBg;
8
+ border: $colorPickerBorder;
9
+
10
+ .p-colorpicker-color-handle,
11
+ .p-colorpicker-hue-handle {
12
+ border-color: $colorPickerHandleColor;
13
+ }
14
+ }
15
+
16
+ .p-colorpicker-overlay-panel {
17
+ box-shadow: $inputOverlayShadow;
18
+ }