uiw 4.21.18 → 4.21.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/uiw.css CHANGED
@@ -123,16 +123,7 @@
123
123
  top: 0.125em;
124
124
  }
125
125
  .w-icon-spin svg {
126
- -webkit-animation: loading-circle 1s infinite linear;
127
- animation: loading-circle 1s infinite linear;
128
- }
129
- @-webkit-keyframes loading-circle {
130
- 0% {
131
- transform: rotate(0deg);
132
- }
133
- 100% {
134
- transform: rotate(360deg);
135
- }
126
+ animation: loading-circle 1s infinite linear;
136
127
  }
137
128
  @keyframes loading-circle {
138
129
  0% {
@@ -601,16 +592,7 @@
601
592
  margin: 0 3px 0 0;
602
593
  -webkit-clip-path: polygon(0% 0%, 100% 0, 100% 30%, 0% 30%);
603
594
  clip-path: polygon(0% 0%, 100% 0, 100% 30%, 0% 30%);
604
- -webkit-animation: rotate 0.5s linear infinite;
605
- animation: rotate 0.5s linear infinite;
606
- }
607
- @-webkit-keyframes rotate {
608
- from {
609
- transform: rotateZ(0deg);
610
- }
611
- to {
612
- transform: rotateZ(360deg);
613
- }
595
+ animation: rotate 0.5s linear infinite;
614
596
  }
615
597
  @keyframes rotate {
616
598
  from {
@@ -805,7 +787,7 @@
805
787
  line-height: 1;
806
788
  vertical-align: middle;
807
789
  }
808
- sup.w-badge-count {
790
+ .w-badge sup.w-badge-count {
809
791
  position: absolute;
810
792
  transform: translateX(-50%);
811
793
  top: -10px;
@@ -871,18 +853,7 @@ sup.w-badge-count {
871
853
  border-radius: 50%;
872
854
  background-color: inherit;
873
855
  content: '';
874
- -webkit-animation: wStatusProcessing 1.2s infinite ease-in-out;
875
- animation: wStatusProcessing 1.2s infinite ease-in-out;
876
- }
877
- @-webkit-keyframes wStatusProcessing {
878
- 0% {
879
- transform: scale(0.8);
880
- opacity: 0.5;
881
- }
882
- 100% {
883
- transform: scale(2.8);
884
- opacity: 0;
885
- }
856
+ animation: wStatusProcessing 1.2s infinite ease-in-out;
886
857
  }
887
858
  @keyframes wStatusProcessing {
888
859
  0% {
@@ -2229,7 +2200,7 @@ sup.w-badge-count {
2229
2200
  border-spacing: 0;
2230
2201
  border-collapse: collapse;
2231
2202
  table-layout: fixed;
2232
- width: 100%;
2203
+ width: 100% !important;
2233
2204
  }
2234
2205
  .w-descriptions {
2235
2206
  background: #fff;
@@ -2290,6 +2261,8 @@ sup.w-badge-count {
2290
2261
  .w-descriptions-bordered tbody tr td {
2291
2262
  border-top: 1px solid #dfe2e5;
2292
2263
  border-right: 1px solid #dfe2e5;
2264
+ border-left: 0;
2265
+ border-bottom: 0;
2293
2266
  }
2294
2267
  .w-descriptions-bordered tbody:first-child tr:first-child th,
2295
2268
  .w-descriptions-bordered tbody:first-child tr:first-child td {
@@ -3084,8 +3057,7 @@ a.w-list-item:hover:not(.w-disabled) {
3084
3057
  .w-loader-tips-nested svg {
3085
3058
  height: 100%;
3086
3059
  width: 100%;
3087
- -webkit-animation: loaderRotate 2s linear infinite;
3088
- animation: loaderRotate 2s linear infinite;
3060
+ animation: loaderRotate 2s linear infinite;
3089
3061
  transform-origin: center center;
3090
3062
  fill: currentcolor;
3091
3063
  vertical-align: middle;
@@ -3093,8 +3065,7 @@ a.w-list-item:hover:not(.w-disabled) {
3093
3065
  .w-loader-tips-nested svg circle {
3094
3066
  stroke-dasharray: 1, 200;
3095
3067
  stroke-dashoffset: 0;
3096
- -webkit-animation: loaderDash 1.5s ease-in-out infinite, loaderColor 6s ease-in-out infinite;
3097
- animation: loaderDash 1.5s ease-in-out infinite, loaderColor 6s ease-in-out infinite;
3068
+ animation: loaderDash 1.5s ease-in-out infinite, loaderColor 6s ease-in-out infinite;
3098
3069
  stroke-linecap: round;
3099
3070
  }
3100
3071
  .w-loader-large .w-loader-tips-nested svg {
@@ -3161,30 +3132,11 @@ a.w-list-item:hover:not(.w-disabled) {
3161
3132
  left: 0px;
3162
3133
  z-index: 99999;
3163
3134
  }
3164
- @-webkit-keyframes loaderRotate {
3165
- to {
3166
- transform: rotate(1turn);
3167
- }
3168
- }
3169
3135
  @keyframes loaderRotate {
3170
3136
  to {
3171
3137
  transform: rotate(1turn);
3172
3138
  }
3173
3139
  }
3174
- @-webkit-keyframes loaderDash {
3175
- 0% {
3176
- stroke-dasharray: 1, 200;
3177
- stroke-dashoffset: 0;
3178
- }
3179
- 50% {
3180
- stroke-dasharray: 89, 200;
3181
- stroke-dashoffset: -35;
3182
- }
3183
- to {
3184
- stroke-dasharray: 89, 200;
3185
- stroke-dashoffset: -124;
3186
- }
3187
- }
3188
3140
  @keyframes loaderDash {
3189
3141
  0% {
3190
3142
  stroke-dasharray: 1, 200;
@@ -3199,16 +3151,6 @@ a.w-list-item:hover:not(.w-disabled) {
3199
3151
  stroke-dashoffset: -124;
3200
3152
  }
3201
3153
  }
3202
- @-webkit-keyframes loaderColor {
3203
- 0%,
3204
- to {
3205
- stroke: currentColor;
3206
- }
3207
- 80%,
3208
- 90% {
3209
- stroke: currentColor;
3210
- }
3211
- }
3212
3154
  @keyframes loaderColor {
3213
3155
  0%,
3214
3156
  to {
@@ -3681,8 +3623,7 @@ a.w-list-item:hover:not(.w-disabled) {
3681
3623
  .w-progress-status-active .w-progress-bg {
3682
3624
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
3683
3625
  background-size: 12px 12px;
3684
- -webkit-animation: progress-bar-stripes 1s linear infinite;
3685
- animation: progress-bar-stripes 1s linear infinite;
3626
+ animation: progress-bar-stripes 1s linear infinite;
3686
3627
  }
3687
3628
  .w-progress-status-active .w-progress-bg:before {
3688
3629
  content: ' ';
@@ -3694,8 +3635,7 @@ a.w-list-item:hover:not(.w-disabled) {
3694
3635
  bottom: 0;
3695
3636
  background: #fff;
3696
3637
  border-radius: 10px;
3697
- -webkit-animation: w-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
3698
- animation: w-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
3638
+ animation: w-progress-active 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
3699
3639
  }
3700
3640
  .w-progress-status-exception .w-progress-bg {
3701
3641
  background-color: #dc3545;
@@ -3727,14 +3667,6 @@ a.w-list-item:hover:not(.w-disabled) {
3727
3667
  transition: all 0.4s cubic-bezier(0.08, 0.82, 0.17, 1) 0s;
3728
3668
  position: relative;
3729
3669
  }
3730
- @-webkit-keyframes progress-bar-stripes {
3731
- from {
3732
- background-position: 0 0;
3733
- }
3734
- to {
3735
- background-position: 24px 0;
3736
- }
3737
- }
3738
3670
  @keyframes progress-bar-stripes {
3739
3671
  from {
3740
3672
  background-position: 0 0;
@@ -3743,20 +3675,6 @@ a.w-list-item:hover:not(.w-disabled) {
3743
3675
  background-position: 24px 0;
3744
3676
  }
3745
3677
  }
3746
- @-webkit-keyframes w-progress-active {
3747
- 0% {
3748
- opacity: 0.1;
3749
- width: 0;
3750
- }
3751
- 20% {
3752
- opacity: 0.5;
3753
- width: 0;
3754
- }
3755
- 100% {
3756
- opacity: 0;
3757
- width: 100%;
3758
- }
3759
- }
3760
3678
  @keyframes w-progress-active {
3761
3679
  0% {
3762
3680
  opacity: 0.1;
package/dist/uiw.js CHANGED
@@ -4548,10 +4548,13 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4548
4548
  node.style.height = '0px';
4549
4549
  refNode.current = node;
4550
4550
  setIsOpen(true);
4551
- setContextHeight({
4552
- height: popupRef.current.overlayDom.current.getBoundingClientRect().height,
4553
- ele: elementSource.current
4554
- });
4551
+
4552
+ if (popupRef.current && popupRef.current.overlayDom.current) {
4553
+ setContextHeight({
4554
+ height: popupRef.current.overlayDom.current.getBoundingClientRect().height,
4555
+ ele: elementSource.current
4556
+ });
4557
+ }
4555
4558
  }
4556
4559
 
4557
4560
  function onEntering(node) {
@@ -4560,15 +4563,20 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4560
4563
 
4561
4564
  function onEntered(node) {
4562
4565
  // node.style.height = 'initial';
4563
- node.style.height = popupRef.current.overlayDom.current.getBoundingClientRect().height + 'px';
4566
+ if (popupRef.current && popupRef.current.overlayDom.current) {
4567
+ node.style.height = popupRef.current.overlayDom.current.getBoundingClientRect().height + 'px';
4568
+ }
4564
4569
  }
4565
4570
 
4566
4571
  function onExiting(node) {
4567
4572
  node.style.height = '0px';
4568
- setContextHeight({
4569
- height: -popupRef.current.overlayDom.current.getBoundingClientRect().height,
4570
- ele: elementSource.current
4571
- });
4573
+
4574
+ if (popupRef.current && popupRef.current.overlayDom.current) {
4575
+ setContextHeight({
4576
+ height: -popupRef.current.overlayDom.current.getBoundingClientRect().height,
4577
+ ele: elementSource.current
4578
+ });
4579
+ }
4572
4580
  }
4573
4581
 
4574
4582
  function onExit(node) {
@@ -4598,7 +4606,9 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4598
4606
  menuProps.onClick = onClick;
4599
4607
  }
4600
4608
 
4601
- return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
4609
+ return /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
4610
+ "data-menu": "subitem",
4611
+ ref: ref,
4602
4612
  onClick: e => {
4603
4613
  if (collapse) {
4604
4614
  e.stopPropagation();
@@ -4607,36 +4617,32 @@ var SubMenu = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_am
4607
4617
 
4608
4618
  elementSource.current = e.target;
4609
4619
  },
4610
- children: /*#__PURE__*/(0,jsx_runtime.jsx)("li", {
4611
- "data-menu": "subitem",
4612
- ref: ref,
4613
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
4614
- placement: "rightTop",
4615
- autoAdjustOverflow: true,
4620
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(react_overlay_trigger_esm, _extends({
4621
+ placement: "rightTop",
4622
+ autoAdjustOverflow: true,
4623
+ disabled: disabled,
4624
+ isOpen: isOpen,
4625
+ usePortal: false,
4626
+ isOutside: true
4627
+ }, overlayTriggerProps, overlayProps, {
4628
+ ref: popupRef,
4629
+ overlay: /*#__PURE__*/(0,jsx_runtime.jsx)(Menu, _extends({}, menuProps, {
4630
+ style: !collapse ? {
4631
+ paddingLeft: inlineIndent
4632
+ } : {}
4633
+ })),
4634
+ children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
4635
+ ref: null,
4616
4636
  disabled: disabled,
4617
- isOpen: isOpen,
4618
- usePortal: false,
4619
- isOutside: true
4620
- }, overlayTriggerProps, overlayProps, {
4621
- ref: popupRef,
4622
- overlay: /*#__PURE__*/(0,jsx_runtime.jsx)(Menu, _extends({}, menuProps, {
4623
- style: !collapse ? {
4624
- paddingLeft: inlineIndent
4625
- } : {}
4626
- })),
4627
- children: /*#__PURE__*/(0,jsx_runtime.jsx)(MenuItem, _extends({}, other, {
4628
- ref: null,
4629
- disabled: disabled,
4630
- isSubMenuItem: true,
4631
- addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)(IconView, {
4632
- collapse: collapse,
4633
- prefixCls: prefixCls,
4634
- isOpen: isOpen
4635
- }),
4636
- className: [prefixCls ? prefixCls + "-title" : null, !collapse ? prefixCls + "-collapse-title" : null, className].filter(Boolean).join(' ').trim()
4637
- }))
4637
+ isSubMenuItem: true,
4638
+ addonAfter: /*#__PURE__*/(0,jsx_runtime.jsx)(IconView, {
4639
+ collapse: collapse,
4640
+ prefixCls: prefixCls,
4641
+ isOpen: isOpen
4642
+ }),
4643
+ className: [prefixCls ? prefixCls + "-title" : null, !collapse ? prefixCls + "-collapse-title" : null, className].filter(Boolean).join(' ').trim()
4638
4644
  }))
4639
- })
4645
+ }))
4640
4646
  });
4641
4647
  });
4642
4648
  SubMenu.displayName = 'uiw.SubMenu';