primereact 9.2.0 → 9.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.
- package/README.md +30 -39
- package/api/api.cjs.js +16 -0
- package/api/api.cjs.min.js +1 -1
- package/api/api.esm.js +16 -0
- package/api/api.esm.min.js +1 -1
- package/api/api.js +16 -0
- package/api/api.min.js +1 -1
- package/autocomplete/autocomplete.cjs.min.js +1 -1
- package/autocomplete/autocomplete.esm.min.js +1 -1
- package/autocomplete/autocomplete.min.js +1 -1
- package/button/button.cjs.js +6 -1
- package/button/button.cjs.min.js +1 -1
- package/button/button.d.ts +2 -2
- package/button/button.esm.js +6 -1
- package/button/button.esm.min.js +1 -1
- package/button/button.js +6 -1
- package/button/button.min.js +1 -1
- package/calendar/calendar.d.ts +1 -1
- package/colorpicker/colorpicker.min.css +1 -1
- package/confirmdialog/confirmdialog.cjs.min.js +1 -1
- package/confirmdialog/confirmdialog.esm.min.js +1 -1
- package/confirmdialog/confirmdialog.min.js +1 -1
- package/confirmpopup/confirmpopup.cjs.min.js +1 -1
- package/confirmpopup/confirmpopup.esm.min.js +1 -1
- package/confirmpopup/confirmpopup.min.js +1 -1
- package/core/core.js +38 -19
- package/core/core.min.js +9 -9
- package/datatable/datatable.cjs.js +11 -8
- package/datatable/datatable.cjs.min.js +1 -1
- package/datatable/datatable.esm.js +11 -8
- package/datatable/datatable.esm.min.js +1 -1
- package/datatable/datatable.js +11 -8
- package/datatable/datatable.min.js +1 -1
- package/dataview/dataview.d.ts +1 -1
- package/dialog/dialog.min.css +1 -1
- package/hooks/hooks.cjs.min.js +1 -1
- package/hooks/hooks.d.ts +19 -4
- package/hooks/hooks.esm.min.js +1 -1
- package/hooks/hooks.min.js +1 -1
- package/inputnumber/inputnumber.cjs.min.js +1 -1
- package/inputnumber/inputnumber.esm.min.js +1 -1
- package/inputnumber/inputnumber.min.js +1 -1
- package/inputtext/inputtext.min.css +1 -1
- package/listbox/listbox.cjs.min.js +1 -1
- package/listbox/listbox.esm.min.js +1 -1
- package/listbox/listbox.min.js +1 -1
- package/megamenu/megamenu.cjs.js +3 -0
- package/megamenu/megamenu.cjs.min.js +1 -1
- package/megamenu/megamenu.esm.js +3 -0
- package/megamenu/megamenu.esm.min.js +1 -1
- package/megamenu/megamenu.js +3 -0
- package/megamenu/megamenu.min.js +1 -1
- package/mention/mention.cjs.js +1 -7
- package/mention/mention.cjs.min.js +1 -1
- package/mention/mention.esm.js +1 -7
- package/mention/mention.esm.min.js +1 -1
- package/mention/mention.js +1 -7
- package/mention/mention.min.js +1 -1
- package/multiselect/multiselect.cjs.js +2 -1
- package/multiselect/multiselect.cjs.min.js +1 -1
- package/multiselect/multiselect.d.ts +27 -1
- package/multiselect/multiselect.esm.js +2 -1
- package/multiselect/multiselect.esm.min.js +1 -1
- package/multiselect/multiselect.js +2 -1
- package/multiselect/multiselect.min.js +1 -1
- package/package.json +1 -1
- package/paginator/paginator.cjs.js +0 -8
- package/paginator/paginator.cjs.min.js +1 -1
- package/paginator/paginator.esm.js +0 -8
- package/paginator/paginator.esm.min.js +1 -1
- package/paginator/paginator.js +0 -8
- package/paginator/paginator.min.js +1 -1
- package/picklist/picklist.cjs.min.js +1 -1
- package/picklist/picklist.esm.min.js +1 -1
- package/picklist/picklist.min.js +1 -1
- package/primereact.all.cjs.js +79 -44
- package/primereact.all.cjs.min.js +1 -1
- package/primereact.all.esm.js +79 -44
- package/primereact.all.esm.min.js +1 -1
- package/primereact.all.js +79 -44
- package/primereact.all.min.js +1 -1
- package/resources/images/color.png +0 -0
- package/resources/images/hue.png +0 -0
- package/resources/primereact.css +583 -592
- package/resources/primereact.min.css +1 -1
- package/resources/themes/arya-blue/theme.css +4 -4
- package/resources/themes/arya-green/theme.css +4 -4
- package/resources/themes/arya-orange/theme.css +4 -4
- package/resources/themes/arya-purple/theme.css +4 -4
- package/resources/themes/bootstrap4-dark-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-dark-purple/theme.css +6 -6
- package/resources/themes/bootstrap4-light-blue/theme.css +6 -6
- package/resources/themes/bootstrap4-light-purple/theme.css +6 -6
- package/resources/themes/fluent-light/theme.css +2 -2
- package/resources/themes/lara-dark-blue/theme.css +4 -4
- package/resources/themes/lara-dark-indigo/theme.css +4 -4
- package/resources/themes/lara-dark-purple/theme.css +4 -4
- package/resources/themes/lara-dark-teal/theme.css +4 -4
- package/resources/themes/lara-light-blue/theme.css +6 -6
- package/resources/themes/lara-light-indigo/theme.css +6 -6
- package/resources/themes/lara-light-purple/theme.css +6 -6
- package/resources/themes/lara-light-teal/theme.css +6 -6
- package/resources/themes/luna-amber/theme.css +6 -6
- package/resources/themes/luna-blue/theme.css +6 -6
- package/resources/themes/luna-green/theme.css +6 -6
- package/resources/themes/luna-pink/theme.css +6 -6
- package/resources/themes/md-dark-deeppurple/theme.css +6 -6
- package/resources/themes/md-dark-indigo/theme.css +6 -6
- package/resources/themes/md-light-deeppurple/theme.css +6 -6
- package/resources/themes/md-light-indigo/theme.css +6 -6
- package/resources/themes/mdc-dark-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-dark-indigo/theme.css +6 -6
- package/resources/themes/mdc-light-deeppurple/theme.css +6 -6
- package/resources/themes/mdc-light-indigo/theme.css +6 -6
- package/resources/themes/mira/theme.css +6 -6
- package/resources/themes/nano/theme.css +6 -6
- package/resources/themes/nova/theme.css +6 -6
- package/resources/themes/nova-accent/theme.css +6 -6
- package/resources/themes/nova-alt/theme.css +6 -6
- package/resources/themes/rhea/theme.css +6 -6
- package/resources/themes/saga-blue/theme.css +4 -4
- package/resources/themes/saga-green/theme.css +4 -4
- package/resources/themes/saga-orange/theme.css +4 -4
- package/resources/themes/saga-purple/theme.css +4 -4
- package/resources/themes/soho-dark/theme.css +6 -6
- package/resources/themes/soho-light/theme.css +6 -6
- package/resources/themes/tailwind-light/theme.css +6 -6
- package/resources/themes/vela-blue/theme.css +4 -4
- package/resources/themes/vela-green/theme.css +4 -4
- package/resources/themes/vela-orange/theme.css +4 -4
- package/resources/themes/vela-purple/theme.css +4 -4
- package/resources/themes/viva-dark/theme.css +6 -6
- package/resources/themes/viva-light/theme.css +6 -6
- package/ripple/ripple.cjs.js +10 -5
- package/ripple/ripple.cjs.min.js +1 -1
- package/ripple/ripple.esm.js +10 -5
- package/ripple/ripple.esm.min.js +1 -1
- package/ripple/ripple.js +10 -5
- package/ripple/ripple.min.js +1 -1
- package/sidebar/sidebar.min.css +1 -1
- package/slider/slider.cjs.js +8 -6
- package/slider/slider.cjs.min.js +1 -1
- package/slider/slider.esm.js +8 -6
- package/slider/slider.esm.min.js +1 -1
- package/slider/slider.js +8 -6
- package/slider/slider.min.js +1 -1
- package/splitbutton/splitbutton.cjs.js +57 -3
- package/splitbutton/splitbutton.cjs.min.js +1 -1
- package/splitbutton/splitbutton.d.ts +28 -0
- package/splitbutton/splitbutton.esm.js +57 -3
- package/splitbutton/splitbutton.esm.min.js +1 -1
- package/splitbutton/splitbutton.js +57 -3
- package/splitbutton/splitbutton.min.js +1 -1
- package/toast/toast.cjs.js +16 -0
- package/toast/toast.cjs.min.js +1 -1
- package/toast/toast.esm.js +16 -0
- package/toast/toast.esm.min.js +1 -1
- package/toast/toast.js +16 -0
- package/toast/toast.min.js +1 -1
- package/tooltip/tooltip.cjs.js +5 -4
- package/tooltip/tooltip.cjs.min.js +1 -1
- package/tooltip/tooltip.esm.js +5 -4
- package/tooltip/tooltip.esm.min.js +1 -1
- package/tooltip/tooltip.js +5 -4
- package/tooltip/tooltip.min.js +1 -1
- package/tree/tree.d.ts +4 -0
- package/utils/utils.cjs.js +1 -1
- package/utils/utils.cjs.min.js +1 -1
- package/utils/utils.esm.js +1 -1
- package/utils/utils.esm.min.js +1 -1
- package/utils/utils.js +1 -1
- package/utils/utils.min.js +1 -1
- package/virtualscroller/virtualscroller.cjs.min.js +1 -1
- package/virtualscroller/virtualscroller.esm.min.js +1 -1
- package/virtualscroller/virtualscroller.min.js +1 -1
- package/web-types.json +2 -2
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.125rem 0.25rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background: #
|
|
694
|
-
color: #
|
|
695
|
-
border-radius:
|
|
693
|
+
background: #dee2e6;
|
|
694
|
+
color: #343a3f;
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.125rem 0.25rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background: #
|
|
1291
|
-
color: #
|
|
1292
|
-
border-radius:
|
|
1290
|
+
background: #dee2e6;
|
|
1291
|
+
color: #343a3f;
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -694,9 +694,9 @@
|
|
|
694
694
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
695
695
|
padding: 0.2145rem 0.429rem;
|
|
696
696
|
margin-right: 0.5rem;
|
|
697
|
-
background: #
|
|
698
|
-
color: #
|
|
699
|
-
border-radius:
|
|
697
|
+
background: #c8c8c8;
|
|
698
|
+
color: #333333;
|
|
699
|
+
border-radius: 16px;
|
|
700
700
|
}
|
|
701
701
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
702
702
|
margin-left: 0.5rem;
|
|
@@ -1291,9 +1291,9 @@
|
|
|
1291
1291
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1292
1292
|
padding: 0.2145rem 0.429rem;
|
|
1293
1293
|
margin-right: 0.5rem;
|
|
1294
|
-
background: #
|
|
1295
|
-
color: #
|
|
1296
|
-
border-radius:
|
|
1294
|
+
background: #c8c8c8;
|
|
1295
|
+
color: #333333;
|
|
1296
|
+
border-radius: 16px;
|
|
1297
1297
|
}
|
|
1298
1298
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1299
1299
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.2145rem 0.429rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background: #
|
|
694
|
-
color: #
|
|
695
|
-
border-radius:
|
|
693
|
+
background: #c8c8c8;
|
|
694
|
+
color: #333333;
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.2145rem 0.429rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background: #
|
|
1291
|
-
color: #
|
|
1292
|
-
border-radius:
|
|
1290
|
+
background: #c8c8c8;
|
|
1291
|
+
color: #333333;
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -694,9 +694,9 @@
|
|
|
694
694
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
695
695
|
padding: 0.2145rem 0.429rem;
|
|
696
696
|
margin-right: 0.5rem;
|
|
697
|
-
background: #
|
|
698
|
-
color: #
|
|
699
|
-
border-radius:
|
|
697
|
+
background: #c8c8c8;
|
|
698
|
+
color: #333333;
|
|
699
|
+
border-radius: 16px;
|
|
700
700
|
}
|
|
701
701
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
702
702
|
margin-left: 0.5rem;
|
|
@@ -1291,9 +1291,9 @@
|
|
|
1291
1291
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1292
1292
|
padding: 0.2145rem 0.429rem;
|
|
1293
1293
|
margin-right: 0.5rem;
|
|
1294
|
-
background: #
|
|
1295
|
-
color: #
|
|
1296
|
-
border-radius:
|
|
1294
|
+
background: #c8c8c8;
|
|
1295
|
+
color: #333333;
|
|
1296
|
+
border-radius: 16px;
|
|
1297
1297
|
}
|
|
1298
1298
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1299
1299
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.2145rem 0.429rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background: #
|
|
694
|
-
color: #
|
|
695
|
-
border-radius:
|
|
693
|
+
background: #dadada;
|
|
694
|
+
color: #666666;
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.2145rem 0.429rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background: #
|
|
1291
|
-
color: #
|
|
1292
|
-
border-radius:
|
|
1290
|
+
background: #dadada;
|
|
1291
|
+
color: #666666;
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background: #
|
|
693
|
+
background: #dee2e6;
|
|
694
694
|
color: #495057;
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background: #
|
|
1290
|
+
background: #dee2e6;
|
|
1291
1291
|
color: #495057;
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background: #
|
|
693
|
+
background: #dee2e6;
|
|
694
694
|
color: #495057;
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background: #
|
|
1290
|
+
background: #dee2e6;
|
|
1291
1291
|
color: #495057;
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background: #
|
|
693
|
+
background: #dee2e6;
|
|
694
694
|
color: #495057;
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background: #
|
|
1290
|
+
background: #dee2e6;
|
|
1291
1291
|
color: #495057;
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background: #
|
|
693
|
+
background: #dee2e6;
|
|
694
694
|
color: #495057;
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background: #
|
|
1290
|
+
background: #dee2e6;
|
|
1291
1291
|
color: #495057;
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -714,9 +714,9 @@
|
|
|
714
714
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
715
715
|
padding: 0.375rem 0.75rem;
|
|
716
716
|
margin-right: 0.5rem;
|
|
717
|
-
background:
|
|
718
|
-
color:
|
|
719
|
-
border-radius:
|
|
717
|
+
background: #3e4053;
|
|
718
|
+
color: rgba(255, 255, 255, 0.87);
|
|
719
|
+
border-radius: 16px;
|
|
720
720
|
}
|
|
721
721
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
722
722
|
margin-left: 0.5rem;
|
|
@@ -1311,9 +1311,9 @@
|
|
|
1311
1311
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1312
1312
|
padding: 0.375rem 0.75rem;
|
|
1313
1313
|
margin-right: 0.5rem;
|
|
1314
|
-
background:
|
|
1315
|
-
color:
|
|
1316
|
-
border-radius:
|
|
1314
|
+
background: #3e4053;
|
|
1315
|
+
color: rgba(255, 255, 255, 0.87);
|
|
1316
|
+
border-radius: 16px;
|
|
1317
1317
|
}
|
|
1318
1318
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1319
1319
|
margin-left: 0.5rem;
|
|
@@ -714,9 +714,9 @@
|
|
|
714
714
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
715
715
|
padding: 0.375rem 0.75rem;
|
|
716
716
|
margin-right: 0.5rem;
|
|
717
|
-
background: #
|
|
718
|
-
color: #
|
|
719
|
-
border-radius:
|
|
717
|
+
background: #dfe7ef;
|
|
718
|
+
color: #043d75;
|
|
719
|
+
border-radius: 16px;
|
|
720
720
|
}
|
|
721
721
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
722
722
|
margin-left: 0.5rem;
|
|
@@ -1311,9 +1311,9 @@
|
|
|
1311
1311
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1312
1312
|
padding: 0.375rem 0.75rem;
|
|
1313
1313
|
margin-right: 0.5rem;
|
|
1314
|
-
background: #
|
|
1315
|
-
color: #
|
|
1316
|
-
border-radius:
|
|
1314
|
+
background: #dfe7ef;
|
|
1315
|
+
color: #043d75;
|
|
1316
|
+
border-radius: 16px;
|
|
1317
1317
|
}
|
|
1318
1318
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1319
1319
|
margin-left: 0.5rem;
|
|
@@ -725,9 +725,9 @@
|
|
|
725
725
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
726
726
|
padding: 0.375rem 0.75rem;
|
|
727
727
|
margin-right: 0.5rem;
|
|
728
|
-
background: #
|
|
729
|
-
color: #
|
|
730
|
-
border-radius:
|
|
728
|
+
background: #e5e7eb;
|
|
729
|
+
color: #3f3f46;
|
|
730
|
+
border-radius: 16px;
|
|
731
731
|
}
|
|
732
732
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
733
733
|
margin-left: 0.5rem;
|
|
@@ -1322,9 +1322,9 @@
|
|
|
1322
1322
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1323
1323
|
padding: 0.375rem 0.75rem;
|
|
1324
1324
|
margin-right: 0.5rem;
|
|
1325
|
-
background: #
|
|
1326
|
-
color: #
|
|
1327
|
-
border-radius:
|
|
1325
|
+
background: #e5e7eb;
|
|
1326
|
+
color: #3f3f46;
|
|
1327
|
+
border-radius: 16px;
|
|
1328
1328
|
}
|
|
1329
1329
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1330
1330
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background:
|
|
693
|
+
background: #304562;
|
|
694
694
|
color: rgba(255, 255, 255, 0.87);
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background:
|
|
1290
|
+
background: #304562;
|
|
1291
1291
|
color: rgba(255, 255, 255, 0.87);
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background:
|
|
693
|
+
background: #304562;
|
|
694
694
|
color: rgba(255, 255, 255, 0.87);
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background:
|
|
1290
|
+
background: #304562;
|
|
1291
1291
|
color: rgba(255, 255, 255, 0.87);
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background:
|
|
693
|
+
background: #304562;
|
|
694
694
|
color: rgba(255, 255, 255, 0.87);
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background:
|
|
1290
|
+
background: #304562;
|
|
1291
1291
|
color: rgba(255, 255, 255, 0.87);
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -690,9 +690,9 @@
|
|
|
690
690
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
691
691
|
padding: 0.25rem 0.5rem;
|
|
692
692
|
margin-right: 0.5rem;
|
|
693
|
-
background:
|
|
693
|
+
background: #304562;
|
|
694
694
|
color: rgba(255, 255, 255, 0.87);
|
|
695
|
-
border-radius:
|
|
695
|
+
border-radius: 16px;
|
|
696
696
|
}
|
|
697
697
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
698
698
|
margin-left: 0.5rem;
|
|
@@ -1287,9 +1287,9 @@
|
|
|
1287
1287
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1288
1288
|
padding: 0.25rem 0.5rem;
|
|
1289
1289
|
margin-right: 0.5rem;
|
|
1290
|
-
background:
|
|
1290
|
+
background: #304562;
|
|
1291
1291
|
color: rgba(255, 255, 255, 0.87);
|
|
1292
|
-
border-radius:
|
|
1292
|
+
border-radius: 16px;
|
|
1293
1293
|
}
|
|
1294
1294
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1295
1295
|
margin-left: 0.5rem;
|
|
@@ -722,9 +722,9 @@
|
|
|
722
722
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
723
723
|
padding: 0.25rem 0.75rem;
|
|
724
724
|
margin-right: 0.5rem;
|
|
725
|
-
background:
|
|
726
|
-
color:
|
|
727
|
-
border-radius:
|
|
725
|
+
background: #263238;
|
|
726
|
+
color: rgba(255, 255, 255, 0.87);
|
|
727
|
+
border-radius: 16px;
|
|
728
728
|
}
|
|
729
729
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
730
730
|
margin-left: 0.5rem;
|
|
@@ -1319,9 +1319,9 @@
|
|
|
1319
1319
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1320
1320
|
padding: 0.25rem 0.75rem;
|
|
1321
1321
|
margin-right: 0.5rem;
|
|
1322
|
-
background:
|
|
1323
|
-
color:
|
|
1324
|
-
border-radius:
|
|
1322
|
+
background: #263238;
|
|
1323
|
+
color: rgba(255, 255, 255, 0.87);
|
|
1324
|
+
border-radius: 16px;
|
|
1325
1325
|
}
|
|
1326
1326
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1327
1327
|
margin-left: 0.5rem;
|
|
@@ -722,9 +722,9 @@
|
|
|
722
722
|
.p-chips .p-chips-multiple-container .p-chips-token {
|
|
723
723
|
padding: 0.25rem 0.75rem;
|
|
724
724
|
margin-right: 0.5rem;
|
|
725
|
-
background: #
|
|
726
|
-
color: #
|
|
727
|
-
border-radius:
|
|
725
|
+
background: #ebebeb;
|
|
726
|
+
color: #6c6c6c;
|
|
727
|
+
border-radius: 16px;
|
|
728
728
|
}
|
|
729
729
|
.p-chips .p-chips-multiple-container .p-chips-token .p-chips-token-icon {
|
|
730
730
|
margin-left: 0.5rem;
|
|
@@ -1319,9 +1319,9 @@
|
|
|
1319
1319
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1320
1320
|
padding: 0.25rem 0.75rem;
|
|
1321
1321
|
margin-right: 0.5rem;
|
|
1322
|
-
background: #
|
|
1323
|
-
color: #
|
|
1324
|
-
border-radius:
|
|
1322
|
+
background: #ebebeb;
|
|
1323
|
+
color: #6c6c6c;
|
|
1324
|
+
border-radius: 16px;
|
|
1325
1325
|
}
|
|
1326
1326
|
.p-multiselect.p-multiselect-chip .p-multiselect-token .p-multiselect-token-icon {
|
|
1327
1327
|
margin-left: 0.5rem;
|
package/ripple/ripple.cjs.js
CHANGED
|
@@ -69,11 +69,7 @@ var Ripple = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
69
69
|
return;
|
|
70
70
|
}
|
|
71
71
|
utils.DomHandler.removeClass(inkRef.current, 'p-ink-active');
|
|
72
|
-
|
|
73
|
-
var d = Math.max(utils.DomHandler.getOuterWidth(targetRef.current), utils.DomHandler.getOuterHeight(targetRef.current));
|
|
74
|
-
inkRef.current.style.height = d + 'px';
|
|
75
|
-
inkRef.current.style.width = d + 'px';
|
|
76
|
-
}
|
|
72
|
+
setDimensions();
|
|
77
73
|
inkRef.current.style.top = offsetY + 'px';
|
|
78
74
|
inkRef.current.style.left = offsetX + 'px';
|
|
79
75
|
utils.DomHandler.addClass(inkRef.current, 'p-ink-active');
|
|
@@ -81,15 +77,24 @@ var Ripple = /*#__PURE__*/React__namespace.memo( /*#__PURE__*/React__namespace.f
|
|
|
81
77
|
var onAnimationEnd = function onAnimationEnd(event) {
|
|
82
78
|
utils.DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
83
79
|
};
|
|
80
|
+
var setDimensions = function setDimensions() {
|
|
81
|
+
if (inkRef.current && !utils.DomHandler.getHeight(inkRef.current) && !utils.DomHandler.getWidth(inkRef.current)) {
|
|
82
|
+
var d = Math.max(utils.DomHandler.getOuterWidth(targetRef.current), utils.DomHandler.getOuterHeight(targetRef.current));
|
|
83
|
+
inkRef.current.style.height = d + 'px';
|
|
84
|
+
inkRef.current.style.width = d + 'px';
|
|
85
|
+
}
|
|
86
|
+
};
|
|
84
87
|
hooks.useMountEffect(function () {
|
|
85
88
|
if (inkRef.current) {
|
|
86
89
|
targetRef.current = getTarget();
|
|
90
|
+
setDimensions();
|
|
87
91
|
bindEvents();
|
|
88
92
|
}
|
|
89
93
|
});
|
|
90
94
|
hooks.useUpdateEffect(function () {
|
|
91
95
|
if (inkRef.current && !targetRef.current) {
|
|
92
96
|
targetRef.current = getTarget();
|
|
97
|
+
setDimensions();
|
|
93
98
|
bindEvents();
|
|
94
99
|
}
|
|
95
100
|
});
|
package/ripple/ripple.cjs.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),r=require("primereact/hooks"),n=require("primereact/utils");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=c(e),a=u(t),i=o.memo(o.forwardRef((function(){var e=o.useRef(null),t=o.useRef(null),u=function(){return e.current&&e.current.parentElement},c=function(){t.current&&(t.current.addEventListener("mousedown",l),n.DomHandler.isTouchDevice()&&t.current.addEventListener("touchstart",i))},i=function(r){var u=n.DomHandler.getOffset(t.current),c=r.targetTouches[0].pageX-u.left+document.body.scrollTop-n.DomHandler.getWidth(e.current)/2,o=r.targetTouches[0].pageY-u.top+document.body.scrollLeft-n.DomHandler.getHeight(e.current)/2;d(c,o)},l=function(r){if(!n.DomHandler.isTouchDevice()){var u=n.DomHandler.getOffset(t.current),c=r.pageX-u.left+document.body.scrollTop-n.DomHandler.getWidth(e.current)/2,o=r.pageY-u.top+document.body.scrollLeft-n.DomHandler.getHeight(e.current)/2;d(c,o)}},d=function(r
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("primereact/api"),r=require("primereact/hooks"),n=require("primereact/utils");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=c(e),a=u(t),i=o.memo(o.forwardRef((function(){var e=o.useRef(null),t=o.useRef(null),u=function(){return e.current&&e.current.parentElement},c=function(){t.current&&(t.current.addEventListener("mousedown",l),n.DomHandler.isTouchDevice()&&t.current.addEventListener("touchstart",i))},i=function(r){var u=n.DomHandler.getOffset(t.current),c=r.targetTouches[0].pageX-u.left+document.body.scrollTop-n.DomHandler.getWidth(e.current)/2,o=r.targetTouches[0].pageY-u.top+document.body.scrollLeft-n.DomHandler.getHeight(e.current)/2;d(c,o)},l=function(r){if(!n.DomHandler.isTouchDevice()){var u=n.DomHandler.getOffset(t.current),c=r.pageX-u.left+document.body.scrollTop-n.DomHandler.getWidth(e.current)/2,o=r.pageY-u.top+document.body.scrollLeft-n.DomHandler.getHeight(e.current)/2;d(c,o)}},d=function(t,r){e.current&&"none"!==getComputedStyle(e.current,null).display&&(n.DomHandler.removeClass(e.current,"p-ink-active"),s(),e.current.style.top=r+"px",e.current.style.left=t+"px",n.DomHandler.addClass(e.current,"p-ink-active"))},s=function(){if(e.current&&!n.DomHandler.getHeight(e.current)&&!n.DomHandler.getWidth(e.current)){var r=Math.max(n.DomHandler.getOuterWidth(t.current),n.DomHandler.getOuterHeight(t.current));e.current.style.height=r+"px",e.current.style.width=r+"px"}};return r.useMountEffect((function(){e.current&&(t.current=u(),s(),c())})),r.useUpdateEffect((function(){e.current&&!t.current&&(t.current=u(),s(),c())})),r.useUnmountEffect((function(){e.current&&(t.current=null,t.current&&(t.current.removeEventListener("mousedown",l),n.DomHandler.isTouchDevice()&&t.current.removeEventListener("touchstart",i)))})),a.default.ripple?o.createElement("span",{role:"presentation",ref:e,className:"p-ink",onAnimationEnd:function(e){n.DomHandler.removeClass(e.currentTarget,"p-ink-active")}}):null})));i.displayName="Ripple",exports.Ripple=i;
|
package/ripple/ripple.esm.js
CHANGED
|
@@ -42,11 +42,7 @@ var Ripple = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function ()
|
|
|
42
42
|
return;
|
|
43
43
|
}
|
|
44
44
|
DomHandler.removeClass(inkRef.current, 'p-ink-active');
|
|
45
|
-
|
|
46
|
-
var d = Math.max(DomHandler.getOuterWidth(targetRef.current), DomHandler.getOuterHeight(targetRef.current));
|
|
47
|
-
inkRef.current.style.height = d + 'px';
|
|
48
|
-
inkRef.current.style.width = d + 'px';
|
|
49
|
-
}
|
|
45
|
+
setDimensions();
|
|
50
46
|
inkRef.current.style.top = offsetY + 'px';
|
|
51
47
|
inkRef.current.style.left = offsetX + 'px';
|
|
52
48
|
DomHandler.addClass(inkRef.current, 'p-ink-active');
|
|
@@ -54,15 +50,24 @@ var Ripple = /*#__PURE__*/React.memo( /*#__PURE__*/React.forwardRef(function ()
|
|
|
54
50
|
var onAnimationEnd = function onAnimationEnd(event) {
|
|
55
51
|
DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
56
52
|
};
|
|
53
|
+
var setDimensions = function setDimensions() {
|
|
54
|
+
if (inkRef.current && !DomHandler.getHeight(inkRef.current) && !DomHandler.getWidth(inkRef.current)) {
|
|
55
|
+
var d = Math.max(DomHandler.getOuterWidth(targetRef.current), DomHandler.getOuterHeight(targetRef.current));
|
|
56
|
+
inkRef.current.style.height = d + 'px';
|
|
57
|
+
inkRef.current.style.width = d + 'px';
|
|
58
|
+
}
|
|
59
|
+
};
|
|
57
60
|
useMountEffect(function () {
|
|
58
61
|
if (inkRef.current) {
|
|
59
62
|
targetRef.current = getTarget();
|
|
63
|
+
setDimensions();
|
|
60
64
|
bindEvents();
|
|
61
65
|
}
|
|
62
66
|
});
|
|
63
67
|
useUpdateEffect(function () {
|
|
64
68
|
if (inkRef.current && !targetRef.current) {
|
|
65
69
|
targetRef.current = getTarget();
|
|
70
|
+
setDimensions();
|
|
66
71
|
bindEvents();
|
|
67
72
|
}
|
|
68
73
|
});
|
package/ripple/ripple.esm.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"react";import t from"primereact/api";import{useMountEffect as r,useUpdateEffect as n,useUnmountEffect as c}from"primereact/hooks";import{DomHandler as u}from"primereact/utils";var o=e.memo(e.forwardRef((function(){var o=e.useRef(null),i=e.useRef(null),a=function(){return o.current&&o.current.parentElement},s=function(){i.current&&(i.current.addEventListener("mousedown",p),u.isTouchDevice()&&i.current.addEventListener("touchstart",l))},l=function(e){var t=u.getOffset(i.current),r=e.targetTouches[0].pageX-t.left+document.body.scrollTop-u.getWidth(o.current)/2,n=e.targetTouches[0].pageY-t.top+document.body.scrollLeft-u.getHeight(o.current)/2;f(r,n)},p=function(e){if(!u.isTouchDevice()){var t=u.getOffset(i.current),r=e.pageX-t.left+document.body.scrollTop-u.getWidth(o.current)/2,n=e.pageY-t.top+document.body.scrollLeft-u.getHeight(o.current)/2;f(r,n)}},f=function(e,t){
|
|
1
|
+
import*as e from"react";import t from"primereact/api";import{useMountEffect as r,useUpdateEffect as n,useUnmountEffect as c}from"primereact/hooks";import{DomHandler as u}from"primereact/utils";var o=e.memo(e.forwardRef((function(){var o=e.useRef(null),i=e.useRef(null),a=function(){return o.current&&o.current.parentElement},s=function(){i.current&&(i.current.addEventListener("mousedown",p),u.isTouchDevice()&&i.current.addEventListener("touchstart",l))},l=function(e){var t=u.getOffset(i.current),r=e.targetTouches[0].pageX-t.left+document.body.scrollTop-u.getWidth(o.current)/2,n=e.targetTouches[0].pageY-t.top+document.body.scrollLeft-u.getHeight(o.current)/2;f(r,n)},p=function(e){if(!u.isTouchDevice()){var t=u.getOffset(i.current),r=e.pageX-t.left+document.body.scrollTop-u.getWidth(o.current)/2,n=e.pageY-t.top+document.body.scrollLeft-u.getHeight(o.current)/2;f(r,n)}},f=function(e,t){o.current&&"none"!==getComputedStyle(o.current,null).display&&(u.removeClass(o.current,"p-ink-active"),m(),o.current.style.top=t+"px",o.current.style.left=e+"px",u.addClass(o.current,"p-ink-active"))},m=function(){if(o.current&&!u.getHeight(o.current)&&!u.getWidth(o.current)){var e=Math.max(u.getOuterWidth(i.current),u.getOuterHeight(i.current));o.current.style.height=e+"px",o.current.style.width=e+"px"}};return r((function(){o.current&&(i.current=a(),m(),s())})),n((function(){o.current&&!i.current&&(i.current=a(),m(),s())})),c((function(){o.current&&(i.current=null,i.current&&(i.current.removeEventListener("mousedown",p),u.isTouchDevice()&&i.current.removeEventListener("touchstart",l)))})),t.ripple?e.createElement("span",{role:"presentation",ref:o,className:"p-ink",onAnimationEnd:function(e){u.removeClass(e.currentTarget,"p-ink-active")}}):null})));o.displayName="Ripple";export{o as Ripple};
|
package/ripple/ripple.js
CHANGED
|
@@ -64,11 +64,7 @@ this.primereact.ripple = (function (exports, React, PrimeReact, hooks, utils) {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
utils.DomHandler.removeClass(inkRef.current, 'p-ink-active');
|
|
67
|
-
|
|
68
|
-
var d = Math.max(utils.DomHandler.getOuterWidth(targetRef.current), utils.DomHandler.getOuterHeight(targetRef.current));
|
|
69
|
-
inkRef.current.style.height = d + 'px';
|
|
70
|
-
inkRef.current.style.width = d + 'px';
|
|
71
|
-
}
|
|
67
|
+
setDimensions();
|
|
72
68
|
inkRef.current.style.top = offsetY + 'px';
|
|
73
69
|
inkRef.current.style.left = offsetX + 'px';
|
|
74
70
|
utils.DomHandler.addClass(inkRef.current, 'p-ink-active');
|
|
@@ -76,15 +72,24 @@ this.primereact.ripple = (function (exports, React, PrimeReact, hooks, utils) {
|
|
|
76
72
|
var onAnimationEnd = function onAnimationEnd(event) {
|
|
77
73
|
utils.DomHandler.removeClass(event.currentTarget, 'p-ink-active');
|
|
78
74
|
};
|
|
75
|
+
var setDimensions = function setDimensions() {
|
|
76
|
+
if (inkRef.current && !utils.DomHandler.getHeight(inkRef.current) && !utils.DomHandler.getWidth(inkRef.current)) {
|
|
77
|
+
var d = Math.max(utils.DomHandler.getOuterWidth(targetRef.current), utils.DomHandler.getOuterHeight(targetRef.current));
|
|
78
|
+
inkRef.current.style.height = d + 'px';
|
|
79
|
+
inkRef.current.style.width = d + 'px';
|
|
80
|
+
}
|
|
81
|
+
};
|
|
79
82
|
hooks.useMountEffect(function () {
|
|
80
83
|
if (inkRef.current) {
|
|
81
84
|
targetRef.current = getTarget();
|
|
85
|
+
setDimensions();
|
|
82
86
|
bindEvents();
|
|
83
87
|
}
|
|
84
88
|
});
|
|
85
89
|
hooks.useUpdateEffect(function () {
|
|
86
90
|
if (inkRef.current && !targetRef.current) {
|
|
87
91
|
targetRef.current = getTarget();
|
|
92
|
+
setDimensions();
|
|
88
93
|
bindEvents();
|
|
89
94
|
}
|
|
90
95
|
});
|
package/ripple/ripple.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
this.primereact=this.primereact||{},this.primereact.ripple=function(e,t,r,n,u){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=o(t),i=c(r),l=a.memo(a.forwardRef((function(){var e=a.useRef(null),t=a.useRef(null),r=function(){return e.current&&e.current.parentElement},c=function(){t.current&&(t.current.addEventListener("mousedown",l),u.DomHandler.isTouchDevice()&&t.current.addEventListener("touchstart",o))},o=function(r){var n=u.DomHandler.getOffset(t.current),c=r.targetTouches[0].pageX-n.left+document.body.scrollTop-u.DomHandler.getWidth(e.current)/2,o=r.targetTouches[0].pageY-n.top+document.body.scrollLeft-u.DomHandler.getHeight(e.current)/2;d(c,o)},l=function(r){if(!u.DomHandler.isTouchDevice()){var n=u.DomHandler.getOffset(t.current),c=r.pageX-n.left+document.body.scrollTop-u.DomHandler.getWidth(e.current)/2,o=r.pageY-n.top+document.body.scrollLeft-u.DomHandler.getHeight(e.current)/2;d(c,o)}},d=function(r
|
|
1
|
+
this.primereact=this.primereact||{},this.primereact.ripple=function(e,t,r,n,u){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var a=o(t),i=c(r),l=a.memo(a.forwardRef((function(){var e=a.useRef(null),t=a.useRef(null),r=function(){return e.current&&e.current.parentElement},c=function(){t.current&&(t.current.addEventListener("mousedown",l),u.DomHandler.isTouchDevice()&&t.current.addEventListener("touchstart",o))},o=function(r){var n=u.DomHandler.getOffset(t.current),c=r.targetTouches[0].pageX-n.left+document.body.scrollTop-u.DomHandler.getWidth(e.current)/2,o=r.targetTouches[0].pageY-n.top+document.body.scrollLeft-u.DomHandler.getHeight(e.current)/2;d(c,o)},l=function(r){if(!u.DomHandler.isTouchDevice()){var n=u.DomHandler.getOffset(t.current),c=r.pageX-n.left+document.body.scrollTop-u.DomHandler.getWidth(e.current)/2,o=r.pageY-n.top+document.body.scrollLeft-u.DomHandler.getHeight(e.current)/2;d(c,o)}},d=function(t,r){e.current&&"none"!==getComputedStyle(e.current,null).display&&(u.DomHandler.removeClass(e.current,"p-ink-active"),s(),e.current.style.top=r+"px",e.current.style.left=t+"px",u.DomHandler.addClass(e.current,"p-ink-active"))},s=function(){if(e.current&&!u.DomHandler.getHeight(e.current)&&!u.DomHandler.getWidth(e.current)){var r=Math.max(u.DomHandler.getOuterWidth(t.current),u.DomHandler.getOuterHeight(t.current));e.current.style.height=r+"px",e.current.style.width=r+"px"}};return n.useMountEffect((function(){e.current&&(t.current=r(),s(),c())})),n.useUpdateEffect((function(){e.current&&!t.current&&(t.current=r(),s(),c())})),n.useUnmountEffect((function(){e.current&&(t.current=null,t.current&&(t.current.removeEventListener("mousedown",l),u.DomHandler.isTouchDevice()&&t.current.removeEventListener("touchstart",o)))})),i.default.ripple?a.createElement("span",{role:"presentation",ref:e,className:"p-ink",onAnimationEnd:function(e){u.DomHandler.removeClass(e.currentTarget,"p-ink-active")}}):null})));return l.displayName="Ripple",e.Ripple=l,Object.defineProperty(e,"__esModule",{value:!0}),e}({},React,primereact.api,primereact.hooks,primereact.utils);
|
package/sidebar/sidebar.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.p-sidebar-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:none;justify-content:center;align-items:center;pointer-events:none;background-color:transparent;transition-property:background-color}.p-sidebar-visible{display:flex}.p-sidebar-mask.p-component-overlay{pointer-events:auto}.p-sidebar{display:flex;flex-direction:column;pointer-events:auto;transform:translate3d(0,0,0);position:relative}.p-sidebar
|
|
1
|
+
.p-sidebar-mask{position:fixed;top:0;left:0;width:100%;height:100%;display:none;justify-content:center;align-items:center;pointer-events:none;background-color:transparent;transition-property:background-color}.p-sidebar-visible{display:flex}.p-sidebar-mask.p-component-overlay{pointer-events:auto}.p-sidebar{display:flex;flex-direction:column;pointer-events:auto;transform:translate3d(0,0,0);position:relative}.p-sidebar-content{overflow-y:auto;flex-grow:1}.p-sidebar-header{display:flex;align-items:center;justify-content:flex-end;flex-shrink:0}.p-sidebar-icon{display:flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-sidebar-full .p-sidebar{transition:none;transform:none;width:100vw !important;height:100vh !important;max-height:100%;top:0 !important;left:0 !important}.p-sidebar-top .p-sidebar-enter,.p-sidebar-top .p-sidebar-exit-active{transform:translate3d(0,-100%,0)}.p-sidebar-bottom .p-sidebar-enter,.p-sidebar-bottom .p-sidebar-exit-active{transform:translate3d(0,100%,0)}.p-sidebar-left .p-sidebar-enter,.p-sidebar-left .p-sidebar-exit-active{transform:translate3d(-100%,0,0)}.p-sidebar-right .p-sidebar-enter,.p-sidebar-right .p-sidebar-exit-active{transform:translate3d(100%,0,0)}.p-sidebar-top .p-sidebar-enter-active,.p-sidebar-bottom .p-sidebar-enter-active,.p-sidebar-left .p-sidebar-enter-active,.p-sidebar-right .p-sidebar-enter-active{transform:translate3d(0,0,0);transition:all .3s}.p-sidebar-top .p-sidebar-enter-done,.p-sidebar-bottom .p-sidebar-enter-done,.p-sidebar-left .p-sidebar-enter-done,.p-sidebar-right .p-sidebar-enter-done{transform:none}.p-sidebar-top .p-sidebar-exit-active,.p-sidebar-bottom .p-sidebar-exit-active,.p-sidebar-left .p-sidebar-exit-active,.p-sidebar-right .p-sidebar-exit-active{transition:all .3s}.p-sidebar-full .p-sidebar-enter{opacity:0;transform:scale(0.5)}.p-sidebar-full .p-sidebar-enter-active{opacity:1;transform:scale(1);transition:all .15s cubic-bezier(0,0,0.2,1)}.p-sidebar-full .p-sidebar-enter-done{transform:none}.p-sidebar-full .p-sidebar-exit-active{opacity:0;transform:scale(0.5);transition:all .15s cubic-bezier(0.4,0,0.2,1)}.p-sidebar-left{justify-content:flex-start}.p-sidebar-right{justify-content:flex-end}.p-sidebar-top{align-items:flex-start}.p-sidebar-bottom{align-items:flex-end}.p-sidebar-left .p-sidebar{width:20rem;height:100%}.p-sidebar-right .p-sidebar{width:20rem;height:100%}.p-sidebar-top .p-sidebar{height:10rem;width:100%}.p-sidebar-bottom .p-sidebar{height:10rem;width:100%}.p-sidebar-left .p-sidebar-sm,.p-sidebar-right .p-sidebar-sm{width:20rem}.p-sidebar-left .p-sidebar-md,.p-sidebar-right .p-sidebar-md{width:40rem}.p-sidebar-left .p-sidebar-lg,.p-sidebar-right .p-sidebar-lg{width:60rem}.p-sidebar-top .p-sidebar-sm,.p-sidebar-bottom .p-sidebar-sm{height:10rem}.p-sidebar-top .p-sidebar-md,.p-sidebar-bottom .p-sidebar-md{height:20rem}.p-sidebar-top .p-sidebar-lg,.p-sidebar-bottom .p-sidebar-lg{height:30rem}.p-sidebar-left .p-sidebar-view,.p-sidebar-right .p-sidebar-view,.p-sidebar-top .p-sidebar-view,.p-sidebar-bottom .p-sidebar-view{width:100%;height:100%}.p-sidebar-left .p-sidebar-content,.p-sidebar-right .p-sidebar-content,.p-sidebar-top .p-sidebar-content,.p-sidebar-bottom .p-sidebar-content{width:100%;height:100%}@media screen and (max-width:64em){.p-sidebar-left .p-sidebar-lg,.p-sidebar-left .p-sidebar-md,.p-sidebar-right .p-sidebar-lg,.p-sidebar-right .p-sidebar-md{width:20rem}}
|