@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,252 @@
1
+ // core
2
+ .p-dropdown {
3
+ display: inline-flex;
4
+ cursor: pointer;
5
+ position: relative;
6
+ user-select: none;
7
+ }
8
+
9
+ .p-dropdown-clear-icon {
10
+ position: absolute;
11
+ top: 50%;
12
+ margin-top: -0.5rem;
13
+ }
14
+
15
+ .p-dropdown-trigger {
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ flex-shrink: 0;
20
+ }
21
+
22
+ .p-dropdown-label {
23
+ display: block;
24
+ white-space: nowrap;
25
+ overflow: hidden;
26
+ flex: 1 1 auto;
27
+ width: 1%;
28
+ text-overflow: ellipsis;
29
+ cursor: pointer;
30
+ }
31
+
32
+ .p-dropdown-label-empty {
33
+ overflow: hidden;
34
+ opacity: 0;
35
+ }
36
+
37
+ input.p-dropdown-label {
38
+ cursor: default;
39
+ }
40
+
41
+ .p-dropdown .p-dropdown-panel {
42
+ min-width: 100%;
43
+ }
44
+
45
+ .p-dropdown-panel {
46
+ position: absolute;
47
+ top: 0;
48
+ left: 0;
49
+ }
50
+
51
+ .p-dropdown-items-wrapper {
52
+ overflow: auto;
53
+ }
54
+
55
+ .p-dropdown-item {
56
+ cursor: pointer;
57
+ font-weight: normal;
58
+ white-space: nowrap;
59
+ position: relative;
60
+ overflow: hidden;
61
+ display: flex;
62
+ align-items: center;
63
+ }
64
+
65
+ .p-dropdown-item-group {
66
+ cursor: auto;
67
+ }
68
+
69
+ .p-dropdown-items {
70
+ margin: 0;
71
+ padding: 0;
72
+ list-style-type: none;
73
+ }
74
+
75
+ .p-dropdown-filter {
76
+ width: 100%;
77
+ }
78
+
79
+ .p-dropdown-filter-container {
80
+ position: relative;
81
+ }
82
+
83
+ .p-dropdown-filter-icon {
84
+ position: absolute;
85
+ top: 50%;
86
+ margin-top: -0.5rem;
87
+ }
88
+
89
+ .p-fluid .p-dropdown {
90
+ display: flex;
91
+ }
92
+
93
+ .p-fluid .p-dropdown .p-dropdown-label {
94
+ width: 1%;
95
+ }
96
+
97
+ // theme
98
+ .p-dropdown {
99
+ background: $inputBg;
100
+ border: $inputBorder;
101
+ transition: $formElementTransition;
102
+ border-radius: $borderRadius;
103
+ outline-color: transparent;
104
+
105
+ &:not(.p-disabled):hover {
106
+ border-color: $inputHoverBorderColor;
107
+ }
108
+
109
+ &:not(.p-disabled).p-focus {
110
+ @include focused-input();
111
+ }
112
+
113
+ &.p-variant-filled {
114
+ background: $inputFilledBg;
115
+
116
+ &:not(.p-disabled):hover {
117
+ background-color: $inputFilledHoverBg;
118
+ }
119
+
120
+ &:not(.p-disabled).p-focus {
121
+ background-color: $inputFilledFocusBg;
122
+
123
+ .p-inputtext {
124
+ background-color: transparent;
125
+ }
126
+ }
127
+ }
128
+
129
+ &.p-dropdown-clearable {
130
+ .p-dropdown-label {
131
+ padding-right: nth($inputPadding, 2) + $primeIconFontSize;
132
+ }
133
+ }
134
+
135
+ .p-dropdown-label {
136
+ background: transparent;
137
+ border: 0 none;
138
+
139
+ &.p-placeholder {
140
+ color: $inputPlaceholderTextColor;
141
+ }
142
+
143
+ &:focus,
144
+ &:enabled:focus {
145
+ outline: 0 none;
146
+ box-shadow: none;
147
+ }
148
+ }
149
+
150
+ .p-dropdown-trigger {
151
+ background: transparent;
152
+ color: $inputIconColor;
153
+ width: $inputGroupAddOnMinWidth;
154
+ border-top-right-radius: $borderRadius;
155
+ border-bottom-right-radius: $borderRadius;
156
+ }
157
+
158
+ .p-dropdown-clear-icon {
159
+ color: $inputIconColor;
160
+ right: $inputGroupAddOnMinWidth;
161
+ }
162
+
163
+ &.p-invalid.p-component {
164
+ @include invalid-input();
165
+ }
166
+ }
167
+
168
+ .p-dropdown-panel {
169
+ background: $inputOverlayBg;
170
+ color: $inputListTextColor;
171
+ border: $inputOverlayBorder;
172
+ border-radius: $borderRadius;
173
+ box-shadow: $inputOverlayShadow;
174
+
175
+ .p-dropdown-header {
176
+ padding: $inputListHeaderPadding;
177
+ border-bottom: $inputListHeaderBorder;
178
+ color: $inputListHeaderTextColor;
179
+ background: $inputOverlayHeaderBg;
180
+ margin: $inputListHeaderMargin;
181
+ border-top-right-radius: $borderRadius;
182
+ border-top-left-radius: $borderRadius;
183
+
184
+ .p-dropdown-filter {
185
+ padding-right: nth($inputPadding, 2) + $primeIconFontSize;
186
+ margin-right: -1 * (nth($inputPadding, 2) + $primeIconFontSize);
187
+ }
188
+
189
+ .p-dropdown-filter-icon {
190
+ right: nth($inputPadding, 2);
191
+ color: $inputIconColor;
192
+ }
193
+ }
194
+
195
+ .p-dropdown-items {
196
+ padding: $inputListPadding;
197
+
198
+ .p-dropdown-item {
199
+ margin: $inputListItemMargin;
200
+ padding: $inputListItemPadding;
201
+ border: $inputListItemBorder;
202
+ color: $inputListItemTextColor;
203
+ background: $inputListItemBg;
204
+ transition: $listItemTransition;
205
+ border-radius: $inputListItemBorderRadius;
206
+
207
+ &:first-child {
208
+ margin-top: 0;
209
+ }
210
+
211
+ &:last-child {
212
+ margin-bottom: 0;
213
+ }
214
+
215
+ &.p-highlight {
216
+ color: $highlightTextColor;
217
+ background: $highlightBg;
218
+
219
+ &.p-focus {
220
+ background: $highlightFocusBg;
221
+ }
222
+ }
223
+
224
+ &:not(.p-highlight):not(.p-disabled) {
225
+ &.p-focus {
226
+ color: $inputListItemTextHoverColor;
227
+ background: $inputListItemHoverBg;
228
+ }
229
+ }
230
+
231
+ .p-dropdown-check-icon {
232
+ position: relative;
233
+ margin-left: -1 * $inlineSpacing;
234
+ margin-right: $inlineSpacing;
235
+ }
236
+ }
237
+
238
+ .p-dropdown-item-group {
239
+ margin: $submenuHeaderMargin;
240
+ padding: $submenuHeaderPadding;
241
+ color: $submenuHeaderTextColor;
242
+ background: $submenuHeaderBg;
243
+ font-weight: $submenuHeaderFontWeight;
244
+ }
245
+
246
+ .p-dropdown-empty-message {
247
+ padding: $inputListItemPadding;
248
+ color: $inputListItemTextColor;
249
+ background: $inputListItemBg;
250
+ }
251
+ }
252
+ }
@@ -0,0 +1,122 @@
1
+ .p-editor-container {
2
+ .p-editor-toolbar {
3
+ background: $editorToolbarBg;
4
+ border-top-right-radius: $borderRadius;
5
+ border-top-left-radius: $borderRadius;
6
+
7
+ &.ql-snow {
8
+ border: $editorToolbarBorder;
9
+
10
+ .ql-stroke {
11
+ stroke: $editorToolbarIconColor;
12
+ }
13
+
14
+ .ql-fill {
15
+ fill: $editorToolbarIconColor;
16
+ }
17
+
18
+ .ql-picker {
19
+ .ql-picker-label {
20
+ border: 0 none;
21
+ color: $editorToolbarIconColor;
22
+
23
+ &:hover {
24
+ color: $editorToolbarIconHoverColor;
25
+
26
+ .ql-stroke {
27
+ stroke: $editorToolbarIconHoverColor;
28
+ }
29
+
30
+ .ql-fill {
31
+ fill: $editorToolbarIconHoverColor;
32
+ }
33
+ }
34
+ }
35
+
36
+ &.ql-expanded {
37
+ .ql-picker-label {
38
+ color: $editorToolbarIconHoverColor;
39
+
40
+ .ql-stroke {
41
+ stroke: $editorToolbarIconHoverColor;
42
+ }
43
+
44
+ .ql-fill {
45
+ fill: $editorToolbarIconHoverColor;
46
+ }
47
+ }
48
+
49
+ .ql-picker-options {
50
+ background: $inputOverlayBg;
51
+ border:$inputOverlayBorder;
52
+ box-shadow:$inputOverlayShadow;
53
+ border-radius: $borderRadius;
54
+ padding: $inputListPadding;
55
+
56
+ .ql-picker-item {
57
+ color: $inputListItemTextColor;
58
+
59
+ &:hover {
60
+ color: $inputListItemTextHoverColor;
61
+ background: $inputListItemHoverBg;
62
+ }
63
+ }
64
+ }
65
+
66
+ &:not(.ql-icon-picker) {
67
+ .ql-picker-item {
68
+ padding: $inputListItemPadding;
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+ }
75
+
76
+ .p-editor-content {
77
+ border-bottom-right-radius: $borderRadius;
78
+ border-bottom-left-radius: $borderRadius;
79
+
80
+ &.ql-snow {
81
+ border: $editorContentBorder;
82
+ }
83
+
84
+ .ql-editor {
85
+ background: $inputBg;
86
+ color: $inputTextColor;
87
+ border-bottom-right-radius: $borderRadius;
88
+ border-bottom-left-radius: $borderRadius;
89
+ }
90
+ }
91
+
92
+ .ql-snow.ql-toolbar button:hover,
93
+ .ql-snow.ql-toolbar button:focus {
94
+ color: $editorToolbarIconHoverColor;
95
+
96
+ .ql-stroke {
97
+ stroke: $editorToolbarIconHoverColor;
98
+ }
99
+
100
+ .ql-fill {
101
+ fill: $editorToolbarIconHoverColor;
102
+ }
103
+ }
104
+
105
+ .ql-snow.ql-toolbar button.ql-active,
106
+ .ql-snow.ql-toolbar .ql-picker-label.ql-active,
107
+ .ql-snow.ql-toolbar .ql-picker-item.ql-selected {
108
+ color: $editorIconActiveColor;
109
+
110
+ .ql-stroke {
111
+ stroke: $editorIconActiveColor;
112
+ }
113
+
114
+ .ql-fill {
115
+ fill: $editorIconActiveColor;
116
+ }
117
+
118
+ .ql-picker-label {
119
+ color: $editorIconActiveColor;
120
+ }
121
+ }
122
+ }
@@ -0,0 +1,10 @@
1
+ // core
2
+ .p-icon-field {
3
+ position: relative;
4
+ }
5
+
6
+ .p-icon-field > .p-input-icon {
7
+ position: absolute;
8
+ top: 50%;
9
+ margin-top: -.5rem;
10
+ }
@@ -0,0 +1,74 @@
1
+ .p-inputgroup-addon {
2
+ background: $inputGroupBg;
3
+ color: $inputGroupTextColor;
4
+ border-top: $inputBorder;
5
+ border-left: $inputBorder;
6
+ border-bottom: $inputBorder;
7
+ padding: $inputPadding;
8
+ min-width: $inputGroupAddOnMinWidth;
9
+
10
+ &:last-child {
11
+ border-right: $inputBorder;
12
+ }
13
+ }
14
+
15
+ .p-inputgroup {
16
+ > .p-component,
17
+ > .p-inputwrapper > .p-inputtext,
18
+ > .p-float-label > .p-component {
19
+ border-radius: 0;
20
+ margin: 0;
21
+
22
+ + .p-inputgroup-addon {
23
+ border-left: 0 none;
24
+ }
25
+
26
+ &:focus {
27
+ z-index: 1;
28
+
29
+ ~ label {
30
+ z-index: 1;
31
+ }
32
+ }
33
+ }
34
+ }
35
+
36
+ .p-inputgroup-addon:first-child,
37
+ .p-inputgroup button:first-child,
38
+ .p-inputgroup input:first-child,
39
+ .p-inputgroup > .p-inputwrapper:first-child,
40
+ .p-inputgroup > .p-inputwrapper:first-child > .p-inputtext {
41
+ border-top-left-radius: $borderRadius;
42
+ border-bottom-left-radius: $borderRadius;
43
+ }
44
+
45
+ .p-inputgroup .p-float-label:first-child input {
46
+ border-top-left-radius: $borderRadius;
47
+ border-bottom-left-radius: $borderRadius;
48
+ }
49
+
50
+ .p-inputgroup-addon:last-child,
51
+ .p-inputgroup button:last-child,
52
+ .p-inputgroup input:last-child,
53
+ .p-inputgroup > .p-inputwrapper:last-child,
54
+ .p-inputgroup > .p-inputwrapper:last-child > .p-inputtext {
55
+ border-top-right-radius: $borderRadius;
56
+ border-bottom-right-radius: $borderRadius;
57
+ }
58
+
59
+ .p-inputgroup .p-float-label:last-child input {
60
+ border-top-right-radius: $borderRadius;
61
+ border-bottom-right-radius: $borderRadius;
62
+ }
63
+
64
+ .p-fluid {
65
+ .p-inputgroup {
66
+ .p-button {
67
+ width: auto;
68
+
69
+ &.p-button-icon-only {
70
+ width: $buttonIconOnlyWidth;
71
+ }
72
+ }
73
+ }
74
+ }
@@ -0,0 +1,15 @@
1
+ // core
2
+ .p-fluid .p-icon-field-left,
3
+ .p-fluid .p-icon-field-right {
4
+ width: 100%;
5
+ }
6
+
7
+ .p-icon-field-left > .p-input-icon:first-of-type {
8
+ left: nth($inputPadding, 2);
9
+ color: $inputIconColor;
10
+ }
11
+
12
+ .p-icon-field-right > .p-input-icon:last-of-type {
13
+ right: nth($inputPadding, 2);
14
+ color: $inputIconColor;
15
+ }
@@ -0,0 +1,5 @@
1
+ .p-inputnumber {
2
+ &.p-invalid.p-component > .p-inputtext {
3
+ @include invalid-input();
4
+ }
5
+ }
@@ -0,0 +1,10 @@
1
+ .p-inputotp {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: $inlineSpacing;
5
+ }
6
+
7
+ .p-inputotp-input {
8
+ text-align: center;
9
+ width: 2 * nth($inputPadding, 2) + 1rem;
10
+ }
@@ -0,0 +1,100 @@
1
+ @use 'sass:math';
2
+
3
+ //core
4
+ .p-inputswitch {
5
+ position: relative;
6
+ display: inline-block;
7
+ }
8
+
9
+ .p-inputswitch-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-inputswitch-slider {
25
+ position: absolute;
26
+ cursor: pointer;
27
+ top: 0;
28
+ left: 0;
29
+ right: 0;
30
+ bottom: 0;
31
+ border: 1px solid transparent;
32
+ }
33
+
34
+ .p-inputswitch-slider:before {
35
+ position: absolute;
36
+ content: '';
37
+ top: 50%;
38
+ }
39
+
40
+ //theme
41
+ .p-inputswitch {
42
+ width: $inputSwitchWidth;
43
+ height: $inputSwitchHeight;
44
+
45
+ .p-inputswitch-input {
46
+ border-radius: $inputSwitchBorderRadius;
47
+ }
48
+
49
+ .p-inputswitch-slider {
50
+ background: $inputSwitchSliderOffBg;
51
+ transition: $formElementTransition;
52
+ border-radius: $inputSwitchBorderRadius;
53
+ outline-color: transparent;
54
+
55
+ &:before {
56
+ background: $inputSwitchHandleOffBg;
57
+ width: $inputSwitchHandleWidth;
58
+ height: $inputSwitchHandleHeight;
59
+ left: $inputSwitchSliderPadding;
60
+ margin-top: math.div(-1 * $inputSwitchHandleHeight, 2);
61
+ border-radius: $inputSwitchHandleBorderRadius;
62
+ transition-duration: $transitionDuration;
63
+ }
64
+ }
65
+
66
+ &.p-highlight {
67
+ .p-inputswitch-slider {
68
+ background: $inputSwitchSliderOnBg;
69
+
70
+ &:before {
71
+ background: $inputSwitchHandleOnBg;
72
+ transform: translateX($inputSwitchHandleWidth);
73
+ }
74
+ }
75
+ }
76
+
77
+ &:not(.p-disabled) {
78
+ &:has(.p-inputswitch-input:hover) {
79
+ .p-inputswitch-slider {
80
+ background: $inputSwitchSliderOffHoverBg;
81
+ }
82
+
83
+ &.p-highlight {
84
+ .p-inputswitch-slider {
85
+ background: $inputSwitchSliderOnHoverBg;
86
+ }
87
+ }
88
+ }
89
+
90
+ &:has(.p-inputswitch-input:focus-visible) {
91
+ .p-inputswitch-slider {
92
+ @include focused();
93
+ }
94
+ }
95
+ }
96
+
97
+ &.p-invalid > .p-inputswitch-slider {
98
+ @include invalid-input();
99
+ }
100
+ }
@@ -0,0 +1,101 @@
1
+ .p-inputtext {
2
+ font-family: var(--font-family);
3
+ font-feature-settings: var(--font-feature-settings, normal);
4
+ font-size: $inputTextFontSize;
5
+ color: $inputTextColor;
6
+ background: $inputBg;
7
+ padding: $inputPadding;
8
+ border: $inputBorder;
9
+ transition: $formElementTransition;
10
+ appearance: none;
11
+ border-radius: $borderRadius;
12
+ outline-color: transparent;
13
+
14
+ &:enabled:hover {
15
+ border-color: $inputHoverBorderColor;
16
+ }
17
+
18
+ &:enabled:focus {
19
+ @include focused-input();
20
+ }
21
+
22
+ &.p-invalid.p-component {
23
+ @include invalid-input();
24
+ }
25
+
26
+ &.p-variant-filled {
27
+ background-color: $inputFilledBg;
28
+
29
+ &:enabled:hover {
30
+ background-color: $inputFilledHoverBg;
31
+ }
32
+
33
+ &:enabled:focus {
34
+ background-color: $inputFilledFocusBg;
35
+ }
36
+ }
37
+
38
+ &.p-inputtext-sm {
39
+ @include scaledFontSize($inputTextFontSize, $scaleSM);
40
+ @include scaledPadding($inputPadding, $scaleSM);
41
+ }
42
+
43
+ &.p-inputtext-lg {
44
+ @include scaledFontSize($inputTextFontSize, $scaleLG);
45
+ @include scaledPadding($inputPadding, $scaleLG);
46
+ }
47
+ }
48
+
49
+ .p-float-label > label {
50
+ left: nth($inputPadding, 2);
51
+ color: $inputPlaceholderTextColor;
52
+ transition-duration: $transitionDuration;
53
+ }
54
+
55
+ .p-float-label > .p-invalid + label {
56
+ color: $inputErrorBorderColor;
57
+ }
58
+
59
+ .p-icon-field-left > .p-inputtext {
60
+ padding-left: nth($inputPadding, 2) * 2 + $primeIconFontSize;
61
+ }
62
+
63
+ .p-icon-field-left.p-float-label > label {
64
+ left: nth($inputPadding, 2) * 2 + $primeIconFontSize;
65
+ }
66
+
67
+ .p-icon-field-right > .p-inputtext {
68
+ padding-right: nth($inputPadding, 2) * 2 + $primeIconFontSize;
69
+ }
70
+
71
+ @include placeholder {
72
+ color: $inputPlaceholderTextColor;
73
+ }
74
+
75
+ .p-input-filled {
76
+ .p-inputtext {
77
+ background-color: $inputFilledBg;
78
+
79
+ &:enabled:hover {
80
+ background-color: $inputFilledHoverBg;
81
+ }
82
+
83
+ &:enabled:focus {
84
+ background-color: $inputFilledFocusBg;
85
+ }
86
+ }
87
+ }
88
+
89
+ .p-inputtext-sm {
90
+ .p-inputtext {
91
+ @include scaledFontSize($inputTextFontSize, $scaleSM);
92
+ @include scaledPadding($inputPadding, $scaleSM);
93
+ }
94
+ }
95
+
96
+ .p-inputtext-lg {
97
+ .p-inputtext {
98
+ @include scaledFontSize($inputTextFontSize, $scaleLG);
99
+ @include scaledPadding($inputPadding, $scaleLG);
100
+ }
101
+ }