@orangesix/react 1.1.0 → 1.2.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 (81) hide show
  1. package/api/index.cjs.js +1 -1
  2. package/api/index.cjs.js.map +1 -1
  3. package/api/index.d.ts +100 -3
  4. package/api/index.esm.js +1 -1
  5. package/api/index.esm.js.map +1 -1
  6. package/autocomplete/index.cjs.js.map +1 -1
  7. package/autocomplete/index.d.ts +17 -1
  8. package/autocomplete/index.esm.js.map +1 -1
  9. package/editor/index.cjs.js +1 -1
  10. package/editor/index.cjs.js.map +1 -1
  11. package/editor/index.d.ts +17 -1
  12. package/editor/index.esm.js +1 -1
  13. package/editor/index.esm.js.map +1 -1
  14. package/input/index.cjs.js +2 -0
  15. package/input/index.cjs.js.map +1 -0
  16. package/input/index.d.ts +210 -0
  17. package/input/index.esm.js +2 -0
  18. package/input/index.esm.js.map +1 -0
  19. package/input/package.json +5 -0
  20. package/inputfilter/index.cjs.js.map +1 -1
  21. package/inputfilter/index.d.ts +17 -1
  22. package/inputfilter/index.esm.js.map +1 -1
  23. package/loading/_loading.scss +10 -0
  24. package/loading/index.cjs.js +2 -0
  25. package/loading/index.cjs.js.map +1 -0
  26. package/loading/index.d.ts +172 -0
  27. package/loading/index.esm.js +2 -0
  28. package/loading/index.esm.js.map +1 -0
  29. package/loading/package.json +5 -0
  30. package/modal/index.cjs.js +2 -0
  31. package/modal/index.cjs.js.map +1 -0
  32. package/modal/index.d.ts +68 -0
  33. package/modal/index.esm.js +2 -0
  34. package/modal/index.esm.js.map +1 -0
  35. package/modal/package.json +5 -0
  36. package/package.json +24 -13
  37. package/picklist/index.cjs.js +2 -0
  38. package/picklist/index.cjs.js.map +1 -0
  39. package/picklist/index.d.ts +73 -0
  40. package/picklist/index.esm.js +2 -0
  41. package/picklist/index.esm.js.map +1 -0
  42. package/picklist/package.json +5 -0
  43. package/radio/index.cjs.js +2 -0
  44. package/radio/index.cjs.js.map +1 -0
  45. package/radio/index.d.ts +188 -0
  46. package/radio/index.esm.js +2 -0
  47. package/radio/index.esm.js.map +1 -0
  48. package/radio/package.json +5 -0
  49. package/select/index.cjs.js +2 -0
  50. package/select/index.cjs.js.map +1 -0
  51. package/select/index.d.ts +195 -0
  52. package/select/index.esm.js +2 -0
  53. package/select/index.esm.js.map +1 -0
  54. package/select/package.json +5 -0
  55. package/style/scss/_variables.scss +4 -0
  56. package/style/scss/bootstrap.scss +1 -0
  57. package/style/scss/components/button/_button.scss +494 -494
  58. package/style/scss/components/data/_datatable.scss +1 -0
  59. package/style/scss/components/data/_picklist.scss +61 -61
  60. package/style/scss/components/input/_iconfield.scss +5 -4
  61. package/style/scss/components/input/_inputswitch.scss +80 -70
  62. package/style/scss/core/_mixins.scss +195 -195
  63. package/style/scss/core/_reset.scss +75 -74
  64. package/switch/index.cjs.js +2 -0
  65. package/switch/index.cjs.js.map +1 -0
  66. package/switch/index.d.ts +169 -0
  67. package/switch/index.esm.js +2 -0
  68. package/switch/index.esm.js.map +1 -0
  69. package/switch/package.json +5 -0
  70. package/table/index.cjs.js +1 -1
  71. package/table/index.cjs.js.map +1 -1
  72. package/table/index.d.ts +14 -1
  73. package/table/index.esm.js +1 -1
  74. package/table/index.esm.js.map +1 -1
  75. package/tabview/index.d.ts +17 -1
  76. package/textarea/index.cjs.js +2 -0
  77. package/textarea/index.cjs.js.map +1 -0
  78. package/textarea/index.d.ts +165 -0
  79. package/textarea/index.esm.js +2 -0
  80. package/textarea/index.esm.js.map +1 -0
  81. package/textarea/package.json +5 -0
@@ -1,644 +1,644 @@
1
1
  .p-button {
2
- color: $buttonTextColor;
3
- background: $buttonBg;
4
- border: $buttonBorder;
5
- padding: $buttonPadding;
6
- font-size: $fontSize;
7
- transition: $formElementTransition;
8
- border-radius: $borderRadius;
2
+ color: $buttonTextColor;
3
+ background: $buttonBg;
4
+ border: $buttonBorder;
5
+ padding: $buttonPadding !important;
6
+ font-size: $fontSize;
7
+ transition: $formElementTransition;
8
+ border-radius: $borderRadius !important;
9
+
10
+ &:not(:disabled):hover {
11
+ background: $buttonHoverBg;
12
+ color: $buttonTextHoverColor;
13
+ border-color: $buttonHoverBorderColor;
14
+ }
15
+
16
+ &:not(:disabled):active {
17
+ background: $buttonActiveBg;
18
+ color: $buttonTextActiveColor;
19
+ border-color: $buttonActiveBorderColor;
20
+ }
21
+
22
+ &.p-button-outlined {
23
+ background-color: transparent;
24
+ color: $buttonBg;
25
+ border: $outlinedButtonBorder;
9
26
 
10
27
  &:not(:disabled):hover {
11
- background: $buttonHoverBg;
12
- color: $buttonTextHoverColor;
13
- border-color: $buttonHoverBorderColor;
28
+ background: rgba($buttonBg, $textButtonHoverBgOpacity);
29
+ color: $buttonBg;
30
+ border: $outlinedButtonBorder;
14
31
  }
15
32
 
16
33
  &:not(:disabled):active {
17
- background: $buttonActiveBg;
18
- color: $buttonTextActiveColor;
19
- border-color: $buttonActiveBorderColor;
34
+ background: rgba($buttonBg, $textButtonActiveBgOpacity);
35
+ color: $buttonBg;
36
+ border: $outlinedButtonBorder;
20
37
  }
21
38
 
22
- &.p-button-outlined {
23
- background-color: transparent;
24
- color: $buttonBg;
25
- border: $outlinedButtonBorder;
39
+ &.p-button-plain {
40
+ color: $plainButtonTextColor;
41
+ border-color: $plainButtonTextColor;
42
+
43
+ &:not(:disabled):hover {
44
+ background: $plainButtonHoverBgColor;
45
+ color: $plainButtonTextColor;
46
+ }
26
47
 
27
- &:not(:disabled):hover {
28
- background: rgba($buttonBg, $textButtonHoverBgOpacity);
29
- color: $buttonBg;
30
- border: $outlinedButtonBorder;
31
- }
32
-
33
- &:not(:disabled):active {
34
- background: rgba($buttonBg, $textButtonActiveBgOpacity);
35
- color: $buttonBg;
36
- border: $outlinedButtonBorder;
37
- }
38
-
39
- &.p-button-plain {
40
- color: $plainButtonTextColor;
41
- border-color: $plainButtonTextColor;
42
-
43
- &:not(:disabled):hover {
44
- background: $plainButtonHoverBgColor;
45
- color: $plainButtonTextColor;
46
- }
47
-
48
- &:not(:disabled):active {
49
- background: $plainButtonActiveBgColor;
50
- color: $plainButtonTextColor;
51
- }
52
- }
48
+ &:not(:disabled):active {
49
+ background: $plainButtonActiveBgColor;
50
+ color: $plainButtonTextColor;
51
+ }
53
52
  }
53
+ }
54
54
 
55
- &.p-button-text {
56
- background-color: transparent;
57
- color: $buttonBg;
58
- border-color: transparent;
55
+ &.p-button-text {
56
+ background-color: transparent;
57
+ color: $buttonBg;
58
+ border-color: transparent;
59
59
 
60
- &:not(:disabled):hover {
61
- background: rgba($buttonBg, $textButtonHoverBgOpacity);
62
- color: $buttonBg;
63
- border-color: transparent;
64
- }
60
+ &:not(:disabled):hover {
61
+ background: rgba($buttonBg, $textButtonHoverBgOpacity);
62
+ color: $buttonBg;
63
+ border-color: transparent;
64
+ }
65
65
 
66
- &:not(:disabled):active {
67
- background: rgba($buttonBg, $textButtonActiveBgOpacity);
68
- color: $buttonBg;
69
- border-color: transparent;
70
- }
66
+ &:not(:disabled):active {
67
+ background: rgba($buttonBg, $textButtonActiveBgOpacity);
68
+ color: $buttonBg;
69
+ border-color: transparent;
70
+ }
71
71
 
72
- &.p-button-plain {
73
- color: $plainButtonTextColor;
72
+ &.p-button-plain {
73
+ color: $plainButtonTextColor;
74
74
 
75
- &:not(:disabled):hover {
76
- background: $plainButtonHoverBgColor;
77
- color: $plainButtonTextColor;
78
- }
79
-
80
- &:not(:disabled):active {
81
- background: $plainButtonActiveBgColor;
82
- color: $plainButtonTextColor;
83
- }
84
- }
85
- }
75
+ &:not(:disabled):hover {
76
+ background: $plainButtonHoverBgColor;
77
+ color: $plainButtonTextColor;
78
+ }
86
79
 
87
- &:focus {
88
- @include focused();
80
+ &:not(:disabled):active {
81
+ background: $plainButtonActiveBgColor;
82
+ color: $plainButtonTextColor;
83
+ }
89
84
  }
85
+ }
90
86
 
91
- .p-button-label {
92
- transition-duration: $transitionDuration;
93
- }
87
+ &:focus {
88
+ @include focused();
89
+ }
94
90
 
95
- .p-button-icon-left {
96
- margin-right: $inlineSpacing;
97
- }
91
+ .p-button-label {
92
+ transition-duration: $transitionDuration;
93
+ }
98
94
 
99
- .p-button-icon-right {
100
- margin-left: $inlineSpacing;
101
- }
95
+ .p-button-icon-left {
96
+ margin-right: $inlineSpacing;
97
+ }
102
98
 
103
- .p-button-icon-bottom {
104
- margin-top: $inlineSpacing;
105
- }
99
+ .p-button-icon-right {
100
+ margin-left: $inlineSpacing;
101
+ }
106
102
 
107
- .p-button-icon-top {
108
- margin-bottom: $inlineSpacing;
109
- }
103
+ .p-button-icon-bottom {
104
+ margin-top: $inlineSpacing;
105
+ }
110
106
 
111
- .p-badge {
112
- margin-left: $inlineSpacing;
113
- min-width: $fontSize;
114
- height: $fontSize;
115
- line-height: $fontSize;
116
- color: $buttonBg;
117
- background-color: $buttonTextColor;
118
- }
107
+ .p-button-icon-top {
108
+ margin-bottom: $inlineSpacing;
109
+ }
110
+
111
+ .p-badge {
112
+ margin-left: $inlineSpacing;
113
+ min-width: $fontSize;
114
+ height: $fontSize;
115
+ line-height: $fontSize;
116
+ color: $buttonBg;
117
+ background-color: $buttonTextColor;
118
+ }
119
+
120
+ &.p-button-raised {
121
+ box-shadow: $raisedButtonShadow;
122
+ }
123
+
124
+ &.p-button-rounded {
125
+ border-radius: $roundedButtonBorderRadius;
126
+ }
127
+
128
+ &.p-button-icon-only {
129
+ width: $buttonIconOnlyWidth;
130
+ padding: $buttonIconOnlyPadding;
119
131
 
120
- &.p-button-raised {
121
- box-shadow: $raisedButtonShadow;
132
+ .p-button-icon-left,
133
+ .p-button-icon-right {
134
+ margin: 0;
122
135
  }
123
136
 
124
137
  &.p-button-rounded {
125
- border-radius: $roundedButtonBorderRadius;
138
+ border-radius: 50%;
139
+ height: $buttonIconOnlyWidth;
126
140
  }
141
+ }
127
142
 
128
- &.p-button-icon-only {
129
- width: $buttonIconOnlyWidth;
130
- padding: $buttonIconOnlyPadding;
131
-
132
- .p-button-icon-left,
133
- .p-button-icon-right {
134
- margin: 0;
135
- }
143
+ &.p-button-sm {
144
+ @include scaledFontSize($fontSize, $scaleSM);
145
+ @include scaledPadding($buttonPadding, $scaleSM);
136
146
 
137
- &.p-button-rounded {
138
- border-radius: 50%;
139
- height: $buttonIconOnlyWidth;
140
- }
147
+ .p-button-icon {
148
+ @include scaledFontSize($primeIconFontSize, $scaleSM);
141
149
  }
150
+ }
142
151
 
143
- &.p-button-sm {
144
- @include scaledFontSize($fontSize, $scaleSM);
145
- @include scaledPadding($buttonPadding, $scaleSM);
152
+ &.p-button-lg {
153
+ @include scaledFontSize($fontSize, $scaleLG);
154
+ @include scaledPadding($buttonPadding, $scaleLG);
146
155
 
147
- .p-button-icon {
148
- @include scaledFontSize($primeIconFontSize, $scaleSM);
149
- }
156
+ .p-button-icon {
157
+ @include scaledFontSize($primeIconFontSize, $scaleLG);
150
158
  }
159
+ }
151
160
 
152
- &.p-button-lg {
153
- @include scaledFontSize($fontSize, $scaleLG);
154
- @include scaledPadding($buttonPadding, $scaleLG);
155
-
156
- .p-button-icon {
157
- @include scaledFontSize($primeIconFontSize, $scaleLG);
158
- }
161
+ &.p-button-loading-label-only {
162
+ &.p-button-loading-left {
163
+ .p-button-label {
164
+ margin-left: $inlineSpacing;
165
+ }
159
166
  }
160
167
 
161
- &.p-button-loading-label-only {
162
- &.p-button-loading-left {
163
- .p-button-label {
164
- margin-left: $inlineSpacing;
165
- }
166
- }
167
-
168
- &.p-button-loading-right {
169
- .p-button-label {
170
- margin-right: $inlineSpacing;
171
- }
172
- }
168
+ &.p-button-loading-right {
169
+ .p-button-label {
170
+ margin-right: $inlineSpacing;
171
+ }
172
+ }
173
173
 
174
- &.p-button-loading-top {
175
- .p-button-label {
176
- margin-top: $inlineSpacing;
177
- }
178
- }
174
+ &.p-button-loading-top {
175
+ .p-button-label {
176
+ margin-top: $inlineSpacing;
177
+ }
178
+ }
179
179
 
180
- &.p-button-loading-bottom {
181
- .p-button-label {
182
- margin-bottom: $inlineSpacing;
183
- }
184
- }
180
+ &.p-button-loading-bottom {
181
+ .p-button-label {
182
+ margin-bottom: $inlineSpacing;
183
+ }
184
+ }
185
185
 
186
- .p-button-loading-icon {
187
- margin: 0;
188
- }
186
+ .p-button-loading-icon {
187
+ margin: 0;
189
188
  }
189
+ }
190
190
  }
191
191
 
192
192
  .p-fluid {
193
- .p-button {
194
- width: 100%;
195
- }
196
-
197
- .p-button-icon-only {
198
- width: $buttonIconOnlyWidth;
199
- }
193
+ .p-button {
194
+ width: 100%;
195
+ }
196
+
197
+ .p-button-icon-only {
198
+ width: $buttonIconOnlyWidth;
199
+ }
200
200
 
201
- .p-button-group {
202
- display: flex;
203
-
204
- .p-button {
205
- flex: 1;
206
- }
201
+ .p-button-group {
202
+ display: flex;
203
+
204
+ .p-button {
205
+ flex: 1;
207
206
  }
207
+ }
208
208
  }
209
209
 
210
210
  .p-button.p-button-secondary, .p-button-group.p-button-secondary > .p-button, .p-splitbutton.p-button-secondary > .p-button, .p-fileupload-choose.p-button-secondary {
211
- color: $secondaryButtonTextColor;
212
- background: $secondaryButtonBg;
213
- border: $secondaryButtonBorder;
211
+ color: $secondaryButtonTextColor;
212
+ background: $secondaryButtonBg;
213
+ border: $secondaryButtonBorder;
214
+
215
+ &:not(:disabled):hover {
216
+ background: $secondaryButtonHoverBg;
217
+ color: $secondaryButtonTextHoverColor;
218
+ border-color: $secondaryButtonHoverBorderColor;
219
+ }
220
+
221
+ &:not(:disabled):focus {
222
+ box-shadow: $secondaryButtonFocusShadow;
223
+ }
224
+
225
+ &:not(:disabled):active {
226
+ background: $secondaryButtonActiveBg;
227
+ color: $secondaryButtonTextActiveColor;
228
+ border-color: $secondaryButtonActiveBorderColor;
229
+ }
230
+
231
+ &.p-button-outlined {
232
+ background-color: transparent;
233
+ color: $secondaryButtonBg;
234
+ border: $outlinedButtonBorder;
214
235
 
215
236
  &:not(:disabled):hover {
216
- background: $secondaryButtonHoverBg;
217
- color: $secondaryButtonTextHoverColor;
218
- border-color: $secondaryButtonHoverBorderColor;
219
- }
220
-
221
- &:not(:disabled):focus {
222
- box-shadow: $secondaryButtonFocusShadow;
237
+ background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
238
+ color: $secondaryButtonBg;
239
+ border: $outlinedButtonBorder;
223
240
  }
224
241
 
225
242
  &:not(:disabled):active {
226
- background: $secondaryButtonActiveBg;
227
- color: $secondaryButtonTextActiveColor;
228
- border-color: $secondaryButtonActiveBorderColor;
243
+ background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
244
+ color: $secondaryButtonBg;
245
+ border: $outlinedButtonBorder;
229
246
  }
230
-
231
- &.p-button-outlined {
232
- background-color: transparent;
233
- color: $secondaryButtonBg;
234
- border: $outlinedButtonBorder;
247
+ }
235
248
 
236
- &:not(:disabled):hover {
237
- background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
238
- color: $secondaryButtonBg;
239
- border: $outlinedButtonBorder;
240
- }
249
+ &.p-button-text {
250
+ background-color: transparent;
251
+ color: $secondaryButtonBg;
252
+ border-color: transparent;
241
253
 
242
- &:not(:disabled):active {
243
- background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
244
- color: $secondaryButtonBg;
245
- border: $outlinedButtonBorder;
246
- }
254
+ &:not(:disabled):hover {
255
+ background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
256
+ border-color: transparent;
257
+ color: $secondaryButtonBg;
247
258
  }
248
259
 
249
- &.p-button-text {
250
- background-color: transparent;
251
- color: $secondaryButtonBg;
252
- border-color: transparent;
253
-
254
- &:not(:disabled):hover {
255
- background: rgba($secondaryButtonBg, $textButtonHoverBgOpacity);
256
- border-color: transparent;
257
- color: $secondaryButtonBg;
258
- }
259
-
260
- &:not(:disabled):active {
261
- background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
262
- border-color: transparent;
263
- color: $secondaryButtonBg;
264
- }
260
+ &:not(:disabled):active {
261
+ background: rgba($secondaryButtonBg, $textButtonActiveBgOpacity);
262
+ border-color: transparent;
263
+ color: $secondaryButtonBg;
265
264
  }
265
+ }
266
266
  }
267
267
 
268
268
  .p-button.p-button-info, .p-button-group.p-button-info > .p-button, .p-splitbutton.p-button-info > .p-button, .p-fileupload-choose.p-button-info {
269
- color: $infoButtonTextColor;
270
- background: $infoButtonBg;
271
- border: $infoButtonBorder;
269
+ color: $infoButtonTextColor;
270
+ background: $infoButtonBg;
271
+ border: $infoButtonBorder;
272
+
273
+ &:not(:disabled):hover {
274
+ background: $infoButtonHoverBg;
275
+ color: $infoButtonTextHoverColor;
276
+ border-color: $infoButtonHoverBorderColor;
277
+ }
278
+
279
+ &:not(:disabled):focus {
280
+ box-shadow: $infoButtonFocusShadow;
281
+ }
282
+
283
+ &:not(:disabled):active {
284
+ background: $infoButtonActiveBg;
285
+ color: $infoButtonTextActiveColor;
286
+ border-color: $infoButtonActiveBorderColor;
287
+ }
288
+
289
+ &.p-button-outlined {
290
+ background-color: transparent;
291
+ color: $infoButtonBg;
292
+ border: $outlinedButtonBorder;
272
293
 
273
294
  &:not(:disabled):hover {
274
- background: $infoButtonHoverBg;
275
- color: $infoButtonTextHoverColor;
276
- border-color: $infoButtonHoverBorderColor;
277
- }
278
-
279
- &:not(:disabled):focus {
280
- box-shadow: $infoButtonFocusShadow;
295
+ background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
296
+ color: $infoButtonBg;
297
+ border: $outlinedButtonBorder;
281
298
  }
282
299
 
283
300
  &:not(:disabled):active {
284
- background: $infoButtonActiveBg;
285
- color: $infoButtonTextActiveColor;
286
- border-color: $infoButtonActiveBorderColor;
301
+ background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
302
+ color: $infoButtonBg;
303
+ border: $outlinedButtonBorder;
287
304
  }
305
+ }
288
306
 
289
- &.p-button-outlined {
290
- background-color: transparent;
291
- color: $infoButtonBg;
292
- border: $outlinedButtonBorder;
307
+ &.p-button-text {
308
+ background-color: transparent;
309
+ color: $infoButtonBg;
310
+ border-color: transparent;
293
311
 
294
- &:not(:disabled):hover {
295
- background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
296
- color: $infoButtonBg;
297
- border: $outlinedButtonBorder;
298
- }
299
-
300
- &:not(:disabled):active {
301
- background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
302
- color: $infoButtonBg;
303
- border: $outlinedButtonBorder;
304
- }
312
+ &:not(:disabled):hover {
313
+ background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
314
+ border-color: transparent;
315
+ color: $infoButtonBg;
305
316
  }
306
317
 
307
- &.p-button-text {
308
- background-color: transparent;
309
- color: $infoButtonBg;
310
- border-color: transparent;
311
-
312
- &:not(:disabled):hover {
313
- background: rgba($infoButtonBg, $textButtonHoverBgOpacity);
314
- border-color: transparent;
315
- color: $infoButtonBg;
316
- }
317
-
318
- &:not(:disabled):active {
319
- background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
320
- border-color: transparent;
321
- color: $infoButtonBg;
322
- }
318
+ &:not(:disabled):active {
319
+ background: rgba($infoButtonBg, $textButtonActiveBgOpacity);
320
+ border-color: transparent;
321
+ color: $infoButtonBg;
323
322
  }
323
+ }
324
324
  }
325
325
 
326
326
  .p-button.p-button-success, .p-button-group.p-button-success > .p-button, .p-splitbutton.p-button-success > .p-button, .p-fileupload-choose.p-button-success {
327
- color: $successButtonTextColor;
328
- background: $successButtonBg;
329
- border: $successButtonBorder;
327
+ color: $successButtonTextColor;
328
+ background: $successButtonBg;
329
+ border: $successButtonBorder;
330
+
331
+ &:not(:disabled):hover {
332
+ background: $successButtonHoverBg;
333
+ color: $successButtonTextHoverColor;
334
+ border-color: $successButtonHoverBorderColor;
335
+ }
336
+
337
+ &:not(:disabled):focus {
338
+ box-shadow: $successButtonFocusShadow;
339
+ }
340
+
341
+ &:not(:disabled):active {
342
+ background: $successButtonActiveBg;
343
+ color: $successButtonTextActiveColor;
344
+ border-color: $successButtonActiveBorderColor;
345
+ }
346
+
347
+ &.p-button-outlined {
348
+ background-color: transparent;
349
+ color: $successButtonBg;
350
+ border: $outlinedButtonBorder;
330
351
 
331
352
  &:not(:disabled):hover {
332
- background: $successButtonHoverBg;
333
- color: $successButtonTextHoverColor;
334
- border-color: $successButtonHoverBorderColor;
335
- }
336
-
337
- &:not(:disabled):focus {
338
- box-shadow: $successButtonFocusShadow;
353
+ background: rgba($successButtonBg, $textButtonHoverBgOpacity);
354
+ color: $successButtonBg;
355
+ border: $outlinedButtonBorder;
339
356
  }
340
357
 
341
358
  &:not(:disabled):active {
342
- background: $successButtonActiveBg;
343
- color: $successButtonTextActiveColor;
344
- border-color: $successButtonActiveBorderColor;
359
+ background: rgba($successButtonBg, $textButtonActiveBgOpacity);
360
+ color: $successButtonBg;
361
+ border: $outlinedButtonBorder;
345
362
  }
363
+ }
346
364
 
347
- &.p-button-outlined {
348
- background-color: transparent;
349
- color: $successButtonBg;
350
- border: $outlinedButtonBorder;
365
+ &.p-button-text {
366
+ background-color: transparent;
367
+ color: $successButtonBg;
368
+ border-color: transparent;
351
369
 
352
- &:not(:disabled):hover {
353
- background: rgba($successButtonBg, $textButtonHoverBgOpacity);
354
- color: $successButtonBg;
355
- border: $outlinedButtonBorder;
356
- }
357
-
358
- &:not(:disabled):active {
359
- background: rgba($successButtonBg, $textButtonActiveBgOpacity);
360
- color: $successButtonBg;
361
- border: $outlinedButtonBorder;
362
- }
370
+ &:not(:disabled):hover {
371
+ background: rgba($successButtonBg, $textButtonHoverBgOpacity);
372
+ border-color: transparent;
373
+ color: $successButtonBg;
363
374
  }
364
375
 
365
- &.p-button-text {
366
- background-color: transparent;
367
- color: $successButtonBg;
368
- border-color: transparent;
369
-
370
- &:not(:disabled):hover {
371
- background: rgba($successButtonBg, $textButtonHoverBgOpacity);
372
- border-color: transparent;
373
- color: $successButtonBg;
374
- }
375
-
376
- &:not(:disabled):active {
377
- background: rgba($successButtonBg, $textButtonActiveBgOpacity);
378
- border-color: transparent;
379
- color: $successButtonBg;
380
- }
376
+ &:not(:disabled):active {
377
+ background: rgba($successButtonBg, $textButtonActiveBgOpacity);
378
+ border-color: transparent;
379
+ color: $successButtonBg;
381
380
  }
381
+ }
382
382
  }
383
383
 
384
384
  .p-button.p-button-warning, .p-button-group.p-button-warning > .p-button, .p-splitbutton.p-button-warning > .p-button, .p-fileupload-choose.p-button-warning {
385
- color: $warningButtonTextColor;
386
- background: $warningButtonBg;
387
- border: $warningButtonBorder;
388
-
389
- &:not(:disabled):hover {
390
- background: $warningButtonHoverBg;
391
- color: $warningButtonTextHoverColor;
392
- border-color: $warningButtonHoverBorderColor;
393
- }
385
+ color: $warningButtonTextColor;
386
+ background: $warningButtonBg;
387
+ border: $warningButtonBorder;
388
+
389
+ &:not(:disabled):hover {
390
+ background: $warningButtonHoverBg;
391
+ color: $warningButtonTextHoverColor;
392
+ border-color: $warningButtonHoverBorderColor;
393
+ }
394
+
395
+ &:not(:disabled):focus {
396
+ box-shadow: $warningButtonFocusShadow;
397
+ }
398
+
399
+ &:not(:disabled):active {
400
+ background: $warningButtonActiveBg;
401
+ color: $warningButtonTextActiveColor;
402
+ border-color: $warningButtonActiveBorderColor;
403
+ }
404
+
405
+ &.p-button-outlined {
406
+ background-color: transparent;
407
+ color: $warningButtonBg;
408
+ border: $outlinedButtonBorder;
394
409
 
395
- &:not(:disabled):focus {
396
- box-shadow: $warningButtonFocusShadow;
410
+ &:not(:disabled):hover {
411
+ background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
412
+ color: $warningButtonBg;
413
+ border: $outlinedButtonBorder;
397
414
  }
398
415
 
399
416
  &:not(:disabled):active {
400
- background: $warningButtonActiveBg;
401
- color: $warningButtonTextActiveColor;
402
- border-color: $warningButtonActiveBorderColor;
417
+ background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
418
+ color: $warningButtonBg;
419
+ border: $outlinedButtonBorder;
403
420
  }
421
+ }
404
422
 
405
- &.p-button-outlined {
406
- background-color: transparent;
407
- color: $warningButtonBg;
408
- border: $outlinedButtonBorder;
409
-
410
- &:not(:disabled):hover {
411
- background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
412
- color: $warningButtonBg;
413
- border: $outlinedButtonBorder;
414
- }
423
+ &.p-button-text {
424
+ background-color: transparent;
425
+ color: $warningButtonBg;
426
+ border-color: transparent;
415
427
 
416
- &:not(:disabled):active {
417
- background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
418
- color: $warningButtonBg;
419
- border: $outlinedButtonBorder;
420
- }
428
+ &:not(:disabled):hover {
429
+ background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
430
+ border-color: transparent;
431
+ color: $warningButtonBg;
421
432
  }
422
433
 
423
- &.p-button-text {
424
- background-color: transparent;
425
- color: $warningButtonBg;
426
- border-color: transparent;
427
-
428
- &:not(:disabled):hover {
429
- background: rgba($warningButtonBg, $textButtonHoverBgOpacity);
430
- border-color: transparent;
431
- color: $warningButtonBg;
432
- }
433
-
434
- &:not(:disabled):active {
435
- background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
436
- border-color: transparent;
437
- color: $warningButtonBg;
438
- }
434
+ &:not(:disabled):active {
435
+ background: rgba($warningButtonBg, $textButtonActiveBgOpacity);
436
+ border-color: transparent;
437
+ color: $warningButtonBg;
439
438
  }
439
+ }
440
440
  }
441
441
 
442
442
  .p-button.p-button-help, .p-button-group.p-button-help > .p-button, .p-splitbutton.p-button-help > .p-button, .p-fileupload-choose.p-button-help {
443
- color: $helpButtonTextColor;
444
- background: $helpButtonBg;
445
- border: $helpButtonBorder;
443
+ color: $helpButtonTextColor;
444
+ background: $helpButtonBg;
445
+ border: $helpButtonBorder;
446
+
447
+ &:not(:disabled):hover {
448
+ background: $helpButtonHoverBg;
449
+ color: $helpButtonTextHoverColor;
450
+ border-color: $helpButtonHoverBorderColor;
451
+ }
452
+
453
+ &:not(:disabled):focus {
454
+ box-shadow: $helpButtonFocusShadow;
455
+ }
456
+
457
+ &:not(:disabled):active {
458
+ background: $helpButtonActiveBg;
459
+ color: $helpButtonTextActiveColor;
460
+ border-color: $helpButtonActiveBorderColor;
461
+ }
462
+
463
+ &.p-button-outlined {
464
+ background-color: transparent;
465
+ color: $helpButtonBg;
466
+ border: $outlinedButtonBorder;
446
467
 
447
468
  &:not(:disabled):hover {
448
- background: $helpButtonHoverBg;
449
- color: $helpButtonTextHoverColor;
450
- border-color: $helpButtonHoverBorderColor;
469
+ background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
470
+ color: $helpButtonBg;
471
+ border: $outlinedButtonBorder;
451
472
  }
452
473
 
453
- &:not(:disabled):focus {
454
- box-shadow: $helpButtonFocusShadow;
474
+ &:not(:disabled):active {
475
+ background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
476
+ color: $helpButtonBg;
477
+ border: $outlinedButtonBorder;
478
+ }
479
+ }
480
+
481
+ &.p-button-text {
482
+ background-color: transparent;
483
+ color: $helpButtonBg;
484
+ border-color: transparent;
485
+
486
+ &:not(:disabled):hover {
487
+ background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
488
+ border-color: transparent;
489
+ color: $helpButtonBg;
455
490
  }
456
491
 
457
492
  &:not(:disabled):active {
458
- background: $helpButtonActiveBg;
459
- color: $helpButtonTextActiveColor;
460
- border-color: $helpButtonActiveBorderColor;
493
+ background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
494
+ border-color: transparent;
495
+ color: $helpButtonBg;
461
496
  }
497
+ }
498
+ }
462
499
 
463
- &.p-button-outlined {
464
- background-color: transparent;
465
- color: $helpButtonBg;
466
- border: $outlinedButtonBorder;
500
+ .p-button.p-button-danger, .p-button-group.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button, .p-fileupload-choose.p-button-danger {
501
+ color: $dangerButtonTextColor;
502
+ background: $dangerButtonBg;
503
+ border: $dangerButtonBorder;
504
+
505
+ &:not(:disabled):hover {
506
+ background: $dangerButtonHoverBg;
507
+ color: $dangerButtonTextHoverColor;
508
+ border-color: $dangerButtonHoverBorderColor;
509
+ }
510
+
511
+ &:not(:disabled):focus {
512
+ box-shadow: $dangerButtonFocusShadow;
513
+ }
514
+
515
+ &:not(:disabled):active {
516
+ background: $dangerButtonActiveBg;
517
+ color: $dangerButtonTextActiveColor;
518
+ border-color: $dangerButtonActiveBorderColor;
519
+ }
520
+
521
+ &.p-button-outlined {
522
+ background-color: transparent;
523
+ color: $dangerButtonBg;
524
+ border: $outlinedButtonBorder;
467
525
 
468
- &:not(:disabled):hover {
469
- background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
470
- color: $helpButtonBg;
471
- border: $outlinedButtonBorder;
472
- }
526
+ &:not(:disabled):hover {
527
+ background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
528
+ color: $dangerButtonBg;
529
+ border: $outlinedButtonBorder;
530
+ }
473
531
 
474
- &:not(:disabled):active {
475
- background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
476
- color: $helpButtonBg;
477
- border: $outlinedButtonBorder;
478
- }
532
+ &:not(:disabled):active {
533
+ background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
534
+ color: $dangerButtonBg;
535
+ border: $outlinedButtonBorder;
479
536
  }
537
+ }
480
538
 
481
- &.p-button-text {
482
- background-color: transparent;
483
- color: $helpButtonBg;
484
- border-color: transparent;
539
+ &.p-button-text {
540
+ background-color: transparent;
541
+ color: $dangerButtonBg;
542
+ border-color: transparent;
485
543
 
486
- &:not(:disabled):hover {
487
- background: rgba($helpButtonBg, $textButtonHoverBgOpacity);
488
- border-color: transparent;
489
- color: $helpButtonBg;
490
- }
544
+ &:not(:disabled):hover {
545
+ background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
546
+ border-color: transparent;
547
+ color: $dangerButtonBg;
548
+ }
491
549
 
492
- &:not(:disabled):active {
493
- background: rgba($helpButtonBg, $textButtonActiveBgOpacity);
494
- border-color: transparent;
495
- color: $helpButtonBg;
496
- }
550
+ &:not(:disabled):active {
551
+ background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
552
+ border-color: transparent;
553
+ color: $dangerButtonBg;
497
554
  }
555
+ }
498
556
  }
499
557
 
500
- .p-button.p-button-danger, .p-button-group.p-button-danger > .p-button, .p-splitbutton.p-button-danger > .p-button, .p-fileupload-choose.p-button-danger {
501
- color: $dangerButtonTextColor;
502
- background: $dangerButtonBg;
503
- border: $dangerButtonBorder;
558
+ @if variable-exists(contrastButtonTextColor) {
559
+ .p-button.p-button-contrast, .p-button-group.p-button-contrast > .p-button, .p-splitbutton.p-button-contrast > .p-button {
560
+ color: $contrastButtonTextColor;
561
+ background: $contrastButtonBg;
562
+ border: $contrastButtonBorder;
504
563
 
505
564
  &:not(:disabled):hover {
506
- background: $dangerButtonHoverBg;
507
- color: $dangerButtonTextHoverColor;
508
- border-color: $dangerButtonHoverBorderColor;
565
+ background: $contrastButtonHoverBg;
566
+ color: $contrastButtonTextHoverColor;
567
+ border-color: $contrastButtonHoverBorderColor;
509
568
  }
510
569
 
511
570
  &:not(:disabled):focus {
512
- box-shadow: $dangerButtonFocusShadow;
571
+ box-shadow: $contrastButtonFocusShadow;
513
572
  }
514
573
 
515
574
  &:not(:disabled):active {
516
- background: $dangerButtonActiveBg;
517
- color: $dangerButtonTextActiveColor;
518
- border-color: $dangerButtonActiveBorderColor;
575
+ background: $contrastButtonActiveBg;
576
+ color: $contrastButtonTextActiveColor;
577
+ border-color: $contrastButtonActiveBorderColor;
519
578
  }
520
579
 
521
580
  &.p-button-outlined {
522
- background-color: transparent;
523
- color: $dangerButtonBg;
524
- border: $outlinedButtonBorder;
581
+ background-color: transparent;
582
+ color: $contrastButtonBg;
583
+ border: $outlinedButtonBorder;
525
584
 
526
- &:not(:disabled):hover {
527
- background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
528
- color: $dangerButtonBg;
529
- border: $outlinedButtonBorder;
530
- }
585
+ &:not(:disabled):hover {
586
+ background: rgba($contrastButtonBg, $textButtonHoverBgOpacity);
587
+ color: $contrastButtonBg;
588
+ border: $outlinedButtonBorder;
589
+ }
531
590
 
532
- &:not(:disabled):active {
533
- background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
534
- color: $dangerButtonBg;
535
- border: $outlinedButtonBorder;
536
- }
591
+ &:not(:disabled):active {
592
+ background: rgba($contrastButtonBg, $textButtonActiveBgOpacity);
593
+ color: $contrastButtonBg;
594
+ border: $outlinedButtonBorder;
595
+ }
537
596
  }
538
597
 
539
598
  &.p-button-text {
540
- background-color: transparent;
541
- color: $dangerButtonBg;
542
- border-color: transparent;
599
+ background-color: transparent;
600
+ color: $contrastButtonBg;
601
+ border-color: transparent;
543
602
 
544
- &:not(:disabled):hover {
545
- background: rgba($dangerButtonBg, $textButtonHoverBgOpacity);
546
- border-color: transparent;
547
- color: $dangerButtonBg;
548
- }
549
-
550
- &:not(:disabled):active {
551
- background: rgba($dangerButtonBg, $textButtonActiveBgOpacity);
552
- border-color: transparent;
553
- color: $dangerButtonBg;
554
- }
555
- }
556
- }
603
+ &:not(:disabled):hover {
604
+ background: rgba($contrastButtonBg, $textButtonHoverBgOpacity);
605
+ border-color: transparent;
606
+ color: $contrastButtonBg;
607
+ }
557
608
 
558
- @if variable-exists(contrastButtonTextColor) {
559
- .p-button.p-button-contrast, .p-button-group.p-button-contrast > .p-button, .p-splitbutton.p-button-contrast > .p-button {
560
- color: $contrastButtonTextColor;
561
- background: $contrastButtonBg;
562
- border: $contrastButtonBorder;
563
-
564
- &:not(:disabled):hover {
565
- background: $contrastButtonHoverBg;
566
- color: $contrastButtonTextHoverColor;
567
- border-color: $contrastButtonHoverBorderColor;
568
- }
569
-
570
- &:not(:disabled):focus {
571
- box-shadow: $contrastButtonFocusShadow;
572
- }
573
-
574
- &:not(:disabled):active {
575
- background: $contrastButtonActiveBg;
576
- color: $contrastButtonTextActiveColor;
577
- border-color: $contrastButtonActiveBorderColor;
578
- }
579
-
580
- &.p-button-outlined {
581
- background-color: transparent;
582
- color: $contrastButtonBg;
583
- border: $outlinedButtonBorder;
584
-
585
- &:not(:disabled):hover {
586
- background: rgba($contrastButtonBg, $textButtonHoverBgOpacity);
587
- color: $contrastButtonBg;
588
- border: $outlinedButtonBorder;
589
- }
590
-
591
- &:not(:disabled):active {
592
- background: rgba($contrastButtonBg, $textButtonActiveBgOpacity);
593
- color: $contrastButtonBg;
594
- border: $outlinedButtonBorder;
595
- }
596
- }
597
-
598
- &.p-button-text {
599
- background-color: transparent;
600
- color: $contrastButtonBg;
601
- border-color: transparent;
602
-
603
- &:not(:disabled):hover {
604
- background: rgba($contrastButtonBg, $textButtonHoverBgOpacity);
605
- border-color: transparent;
606
- color: $contrastButtonBg;
607
- }
608
-
609
- &:not(:disabled):active {
610
- background: rgba($contrastButtonBg, $textButtonActiveBgOpacity);
611
- border-color: transparent;
612
- color: $contrastButtonBg;
613
- }
614
- }
609
+ &:not(:disabled):active {
610
+ background: rgba($contrastButtonBg, $textButtonActiveBgOpacity);
611
+ border-color: transparent;
612
+ color: $contrastButtonBg;
613
+ }
615
614
  }
615
+ }
616
616
  }
617
617
 
618
618
  .p-button.p-button-link {
619
- color: $linkButtonColor;
620
- background: transparent;
621
- border: transparent;
619
+ color: $linkButtonColor;
620
+ background: transparent;
621
+ border: transparent;
622
622
 
623
- &:not(:disabled):hover {
624
- background: transparent;
625
- color: $linkButtonHoverColor;
626
- border-color: transparent;
623
+ &:not(:disabled):hover {
624
+ background: transparent;
625
+ color: $linkButtonHoverColor;
626
+ border-color: transparent;
627
627
 
628
- .p-button-label {
629
- text-decoration: $linkButtonTextHoverDecoration;
630
- }
628
+ .p-button-label {
629
+ text-decoration: $linkButtonTextHoverDecoration;
631
630
  }
631
+ }
632
632
 
633
- &:not(:disabled):focus {
634
- background: transparent;
635
- box-shadow: $linkButtonFocusShadow;
636
- border-color: transparent;
637
- }
633
+ &:not(:disabled):focus {
634
+ background: transparent;
635
+ box-shadow: $linkButtonFocusShadow;
636
+ border-color: transparent;
637
+ }
638
638
 
639
- &:not(:disabled):active {
640
- background: transparent;
641
- color: $linkButtonColor;
642
- border-color: transparent;
643
- }
639
+ &:not(:disabled):active {
640
+ background: transparent;
641
+ color: $linkButtonColor;
642
+ border-color: transparent;
643
+ }
644
644
  }