@para-ui/core 3.0.70 → 3.0.72-rc

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 (186) hide show
  1. package/AutoBox/index.js +5 -9
  2. package/AutoTips/index.js +4 -11
  3. package/Breadcrumbs/index.js +7 -11
  4. package/Button/index.js +8 -12
  5. package/ButtonGroup/index.js +8 -12
  6. package/Carousel/index.js +4 -8
  7. package/Cascader/index.js +7 -11
  8. package/Checkbox/index.js +4 -8
  9. package/CheckboxGroup/index.js +4 -8
  10. package/Collapse/index.js +1 -5
  11. package/CollapseBox/index.js +4 -8
  12. package/CollapseLayout/index.js +6 -10
  13. package/ColorPicker/index.js +0 -2
  14. package/ComboSelect/index.js +14 -17
  15. package/Container/index.js +1 -5
  16. package/DatePicker/index.js +13 -15
  17. package/DatePicker/lang/index.d.ts +2 -0
  18. package/Desktop/index.js +10 -14
  19. package/DragVerify/index.js +6 -10
  20. package/Drawer/index.js +8 -12
  21. package/Dropdown/index.js +3 -4
  22. package/DynamicMultiBox/index.js +15 -18
  23. package/Empty/index.js +3 -7
  24. package/Form/index.js +15 -15
  25. package/FormItem/index.js +15 -15
  26. package/FunctionModal/index.js +14 -15
  27. package/GlobalContext/index.js +3 -3
  28. package/Help/index.js +4 -8
  29. package/HelperText/index.js +1 -5
  30. package/InputLang/index.js +11 -15
  31. package/InputNumber/index.js +4 -8
  32. package/Label/index.js +4 -8
  33. package/Loading/index.js +1 -5
  34. package/Menu/index.js +5 -9
  35. package/Message/index.js +4 -8
  36. package/Modal/index.js +10 -17
  37. package/MultiBox/index.js +10 -14
  38. package/Notification/index.js +3 -7
  39. package/OperateBtn/index.js +9 -13
  40. package/PageHeader/index.js +9 -13
  41. package/Pagination/index.js +11 -15
  42. package/ParauiProvider/index.js +3 -7
  43. package/PasswordRules/index.js +3 -7
  44. package/PopConfirm/index.js +8 -12
  45. package/Popover/index.js +5 -9
  46. package/Progress/index.js +2 -6
  47. package/Querying/index.js +3 -7
  48. package/README.md +12 -0
  49. package/Radio/index.js +4 -8
  50. package/RadioGroup/index.js +4 -8
  51. package/Search/index.js +9 -13
  52. package/Select/index.js +11 -15
  53. package/SelectInput/index.js +11 -12
  54. package/Selector/index.js +11 -24
  55. package/SelectorPicker/index.js +12 -16
  56. package/SingleBox/index.js +10 -14
  57. package/Slider/index.js +6 -10
  58. package/Split/index.js +4 -8
  59. package/Status/index.js +1 -5
  60. package/Stepper/index.js +3 -7
  61. package/Styles/theme/theme-api.scss +75 -0
  62. package/Styles/theme/theme-default.scss +74 -0
  63. package/Styles/theme/theme-shrcb.scss +80 -0
  64. package/Styles/theme.scss +1 -69
  65. package/Switch/index.js +6 -10
  66. package/Table/index.js +131 -47
  67. package/Table/interface.d.ts +5 -1
  68. package/Table/lang/en_US.d.ts +2 -0
  69. package/Table/lang/index.d.ts +4 -0
  70. package/Table/lang/zh_CN.d.ts +2 -0
  71. package/Table/tablePaginationInterface.d.ts +18 -4
  72. package/Tabs/index.js +9 -13
  73. package/Tag/index.js +7 -11
  74. package/TextEditor/index.js +4 -11
  75. package/TextField/index.js +9 -13
  76. package/TimePicker/index.js +10 -11
  77. package/Timeline/index.js +4 -8
  78. package/Title/index.js +1 -5
  79. package/ToggleButton/index.js +9 -13
  80. package/Tooltip/index.js +4 -8
  81. package/Transfer/index.js +11 -15
  82. package/Tree/index.js +12 -13
  83. package/Upload/index.js +12 -28
  84. package/_verture/closestPolyfill-0dd70e2e.js +1354 -0
  85. package/_verture/{index-50cefeaf.js → closestPolyfill-ff50844a.js} +8 -15
  86. package/_verture/constant-85ee4f45.js +10 -0
  87. package/_verture/{defineProperty-62acccfc.js → defineProperty-2f1bfe7d.js} +1 -1
  88. package/_verture/defineProperty-93ea0466.js +34 -0
  89. package/_verture/{index-0e4acd9d.js → index-21824ddf.js} +3 -10
  90. package/_verture/{index-77f9e0fb.js → index-4564c0c7.js} +2 -6
  91. package/_verture/index-591c3a22.js +232 -0
  92. package/_verture/index-5b263b69.js +704 -0
  93. package/_verture/index-5f07188e.js +16 -0
  94. package/_verture/index-b8e101aa.js +340 -0
  95. package/_verture/{intl-4a9f1b44.js → intl-4d7ac94e.js} +1 -1
  96. package/_verture/intl-87e31346.js +81 -0
  97. package/_verture/{modalContext-626629cf.js → modalContext-0ec028ad.js} +4 -8
  98. package/_verture/modalContext-431cede2.js +197 -0
  99. package/_verture/{slicedToArray-76060636.js → slicedToArray-027c5b89.js} +1 -1
  100. package/_verture/slicedToArray-9945769e.js +43 -0
  101. package/_verture/sortable.esm-3fc13bda.js +3791 -0
  102. package/_verture/{toConsumableArray-81040c9e.js → toConsumableArray-12ff604e.js} +1 -1
  103. package/_verture/toConsumableArray-7a5c2339.js +19 -0
  104. package/_verture/tslib.es6-d8895ced.js +38 -0
  105. package/_verture/typeof-b5a7cf93.js +11 -0
  106. package/_verture/unsupportedIterableToArray-44d023ab.js +16 -0
  107. package/_verture/useFormatMessage-f4ee3aac.js +20 -0
  108. package/_verture/useGlobalProps-3f837a7e.js +11 -0
  109. package/_verture/usePopupContainer-a76ba26f.js +68 -0
  110. package/_verture/util-a7033b75.js +18 -0
  111. package/index.d.ts +2 -0
  112. package/index.js +20 -21
  113. package/locale/en-US.d.ts +165 -0
  114. package/locale/index.d.ts +331 -0
  115. package/locale/index.js +336 -0
  116. package/locale/zh-CN.d.ts +165 -0
  117. package/package.json +2 -1
  118. package/theme/theme-shrcb.css +14566 -0
  119. package/theme/theme.css +14962 -0
  120. package/umd/Breadcrumbs.js +1 -1
  121. package/umd/Button.js +1 -1
  122. package/umd/ButtonGroup.js +1 -1
  123. package/umd/Checkbox.js +1 -1
  124. package/umd/CheckboxGroup.js +1 -1
  125. package/umd/CollapseLayout.js +3 -3
  126. package/umd/ComboSelect.js +4 -4
  127. package/umd/DatePicker.js +2 -2
  128. package/umd/Desktop.js +2 -2
  129. package/umd/DragVerify.js +1 -1
  130. package/umd/Drawer.js +1 -1
  131. package/umd/DynamicMultiBox.js +5 -5
  132. package/umd/Empty.js +1 -1
  133. package/umd/Form.js +4 -4
  134. package/umd/FormItem.js +4 -4
  135. package/umd/FunctionModal.js +1 -1
  136. package/umd/Help.js +1 -1
  137. package/umd/InputLang.js +2 -2
  138. package/umd/InputNumber.js +1 -1
  139. package/umd/Label.js +1 -1
  140. package/umd/Menu.js +3 -3
  141. package/umd/Message.js +1 -1
  142. package/umd/Modal.js +1 -1
  143. package/umd/MultiBox.js +2 -2
  144. package/umd/Notification.js +1 -1
  145. package/umd/OperateBtn.js +1 -1
  146. package/umd/PageHeader.js +7 -7
  147. package/umd/Pagination.js +2 -2
  148. package/umd/PopConfirm.js +1 -1
  149. package/umd/Progress.js +1 -1
  150. package/umd/Radio.js +1 -1
  151. package/umd/RadioGroup.js +1 -1
  152. package/umd/Search.js +2 -2
  153. package/umd/Select.js +1 -1
  154. package/umd/SelectInput.js +1 -1
  155. package/umd/Selector.js +2 -2
  156. package/umd/SelectorPicker.js +2 -2
  157. package/umd/SingleBox.js +2 -2
  158. package/umd/Slider.js +1 -1
  159. package/umd/Stepper.js +4 -4
  160. package/umd/Switch.js +4 -4
  161. package/umd/Table.js +4 -4
  162. package/umd/Tabs.js +1 -1
  163. package/umd/Tag.js +1 -1
  164. package/umd/TextEditor.js +1 -1
  165. package/umd/TextField.js +2 -2
  166. package/umd/TimePicker.js +2 -2
  167. package/umd/Timeline.js +1 -1
  168. package/umd/Title.js +1 -1
  169. package/umd/ToggleButton.js +1 -1
  170. package/umd/Transfer.js +2 -2
  171. package/umd/Tree.js +1 -1
  172. package/umd/Upload.js +1 -1
  173. package/umd/locale.js +1 -0
  174. package/_verture/index-a369ca3f.js +0 -4
  175. package/_verture/style-inject.es-300983ab.js +0 -28
  176. /package/_verture/{constant-66aa48a1.js → constant-229e471b.js} +0 -0
  177. /package/_verture/{index-beef914f.js → index-0cfdb984.js} +0 -0
  178. /package/_verture/{index-e2881a53.js → index-43739f6a.js} +0 -0
  179. /package/_verture/{sortable.esm-49896035.js → sortable.esm-3c131c88.js} +0 -0
  180. /package/_verture/{tslib.es6-55ed4bd2.js → tslib.es6-1df6c864.js} +0 -0
  181. /package/_verture/{typeof-498dd2b1.js → typeof-15d17668.js} +0 -0
  182. /package/_verture/{unsupportedIterableToArray-cb478f24.js → unsupportedIterableToArray-167a0b24.js} +0 -0
  183. /package/_verture/{useFormatMessage-703f8b20.js → useFormatMessage-3ee722eb.js} +0 -0
  184. /package/_verture/{useGlobalProps-1b846a65.js → useGlobalProps-3ebaed11.js} +0 -0
  185. /package/_verture/{usePopupContainer-87febeb9.js → usePopupContainer-5c7f0ec0.js} +0 -0
  186. /package/_verture/{util-7e1fb1e2.js → util-79d9bee2.js} +0 -0
package/Stepper/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { _ as _typeof } from '../_verture/typeof-498dd2b1.js';
2
- import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
1
+ import { _ as _typeof } from '../_verture/typeof-15d17668.js';
2
+ import { _ as __rest } from '../_verture/tslib.es6-1df6c864.js';
3
3
  import { jsx } from 'react/jsx-runtime';
4
4
  import React__default from 'react';
5
5
  import RcSteps from 'rc-steps';
@@ -13,9 +13,8 @@ import Seven from '@para-ui/icons/Seven';
13
13
  import Eight from '@para-ui/icons/Eight';
14
14
  import Nine from '@para-ui/icons/Nine';
15
15
  import Check from '@para-ui/icons/Check';
16
- import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-66aa48a1.js';
16
+ import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-85ee4f45.js';
17
17
  import clsx from 'clsx';
18
- import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
19
18
 
20
19
  //默认图标
21
20
  var Icons = {
@@ -31,9 +30,6 @@ var Icons = {
31
30
  'done': jsx(Check, {})
32
31
  };
33
32
 
34
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/26 下午2:57\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-stepper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: flex;\n width: 100%;\n text-align: initial;\n}\n.paraui-v3-stepper .component-stepper-item {\n position: relative;\n display: inline-block;\n flex: 1;\n vertical-align: top;\n}\n.paraui-v3-stepper .component-stepper-item-container {\n display: flex;\n flex-direction: column;\n align-items: center;\n outline: none;\n}\n.paraui-v3-stepper .component-stepper-item:last-child > .component-stepper-item-container > .component-stepper-item-tail,\n.paraui-v3-stepper .component-stepper-item:last-child > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title::after {\n display: none;\n}\n.paraui-v3-stepper .component-stepper-item-icon,\n.paraui-v3-stepper .component-stepper-item-content {\n display: block;\n vertical-align: top;\n}\n.paraui-v3-stepper .component-stepper-item-icon {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n width: 30px;\n height: 30px;\n font-size: 16px;\n line-height: 30px;\n text-align: center;\n border-radius: 50%;\n background-color: rgba(171, 176, 185, 0.12);\n transition: background-color 0.3s, border-color 0.3s;\n}\n.paraui-v3-stepper .component-stepper-item-icon .component-stepper-icon {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n color: rgba(46, 55, 67, 0.7);\n vertical-align: middle;\n}\n.paraui-v3-stepper .component-stepper-item-icon .component-stepper-icon svg {\n color: inherit;\n}\n.paraui-v3-stepper .component-stepper-item-tail {\n position: absolute;\n top: 12px;\n left: 0;\n width: 100%;\n padding: 0 10px;\n}\n.paraui-v3-stepper .component-stepper-item-tail::after {\n display: inline-block;\n width: 100%;\n height: 1px;\n border-radius: 1px;\n transition: background 0.3s;\n content: \"\";\n}\n.paraui-v3-stepper .component-stepper-item-title {\n display: inline-block;\n color: rgba(46, 55, 67, 0.7);\n font-size: 14px;\n font-weight: 400;\n line-height: 30px;\n}\n.paraui-v3-stepper .component-stepper-item-title::after {\n position: absolute;\n display: block;\n height: 1px;\n content: \"\";\n top: 15px;\n left: calc(50% + 30px);\n right: calc(-50% + 30px);\n}\n.paraui-v3-stepper .component-stepper-item-subtitle {\n display: inline;\n margin-left: 8px;\n color: rgb(46, 55, 67);\n font-weight: normal;\n font-size: 14px;\n}\n.paraui-v3-stepper .component-stepper-item-description {\n color: rgb(46, 55, 67);\n font-size: 14px;\n}\n.paraui-v3-stepper .component-stepper-item-wait .component-stepper-item-icon {\n background-color: rgba(171, 176, 185, 0.12);\n}\n.paraui-v3-stepper .component-stepper-item-wait .component-stepper-item-icon > .component-stepper-icon {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-stepper .component-stepper-item-wait .component-stepper-item-icon > .component-stepper-icon .component-stepper-icon-dot {\n background: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-stepper .component-stepper-item-wait > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title {\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-stepper .component-stepper-item-wait > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title::after {\n border-top: 1px dashed rgba(171, 176, 185, 0.4);\n height: 0;\n background: transparent;\n}\n.paraui-v3-stepper .component-stepper-item-wait > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-description {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-stepper .component-stepper-item-wait > .component-stepper-item-container > .component-stepper-item-tail::after {\n border-left: 1px dashed rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-stepper .component-stepper-item-process .component-stepper-item-icon {\n background-color: rgb(255, 255, 255);\n}\n.paraui-v3-stepper .component-stepper-item-process .component-stepper-item-icon > .component-stepper-icon {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper-item-process .component-stepper-item-icon > .component-stepper-icon .component-stepper-icon-dot {\n background: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper-item-process > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper-item-process > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title::after {\n background: linear-gradient(90deg, rgb(61, 102, 248), rgb(119, 147, 249) 74%, rgb(216, 223, 250));\n}\n.paraui-v3-stepper .component-stepper-item-process > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-description {\n color: rgb(46, 55, 67);\n}\n.paraui-v3-stepper .component-stepper-item-process > .component-stepper-item-container > .component-stepper-item-tail::after {\n background: linear-gradient(180deg, rgb(61, 102, 248), rgb(119, 147, 249) 74%, rgb(216, 223, 250));\n}\n.paraui-v3-stepper .component-stepper-item-process > .component-stepper-item-container > .component-stepper-item-icon {\n background: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper-item-process > .component-stepper-item-container > .component-stepper-item-icon .component-stepper-icon {\n color: rgb(255, 255, 255);\n}\n.paraui-v3-stepper .component-stepper-item-process > .component-stepper-item-container > .component-stepper-item-title {\n font-weight: 400;\n}\n.paraui-v3-stepper .component-stepper-item-finish .component-stepper-item-icon {\n background-color: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-stepper .component-stepper-item-finish .component-stepper-item-icon > .component-stepper-icon {\n color: rgb(255, 255, 255);\n}\n.paraui-v3-stepper .component-stepper-item-finish .component-stepper-item-icon > .component-stepper-icon .component-stepper-icon-dot {\n background: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper-item-finish > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title {\n color: rgb(46, 55, 67);\n}\n.paraui-v3-stepper .component-stepper-item-finish > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title::after {\n background-color: rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-stepper .component-stepper-item-finish > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-description {\n color: rgb(46, 55, 67);\n}\n.paraui-v3-stepper .component-stepper-item-finish > .component-stepper-item-container > .component-stepper-item-tail::after {\n border-left: 1px solid rgba(171, 176, 185, 0.4);\n}\n.paraui-v3-stepper .component-stepper-item-error .component-stepper-item-icon {\n background-color: rgb(255, 255, 255);\n border-color: rgb(235, 96, 84);\n}\n.paraui-v3-stepper .component-stepper-item-error .component-stepper-item-icon > .component-stepper-icon {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-stepper .component-stepper-item-error .component-stepper-item-icon > .component-stepper-icon .component-stepper-icon-dot {\n background: rgb(235, 96, 84);\n}\n.paraui-v3-stepper .component-stepper-item-error > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-stepper .component-stepper-item-error > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title::after {\n background-color: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-stepper .component-stepper-item-error > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-description {\n color: rgb(235, 96, 84);\n}\n.paraui-v3-stepper .component-stepper-item-error > .component-stepper-item-container > .component-stepper-item-tail::after {\n background-color: rgba(248, 249, 251, 0.8);\n}\n.paraui-v3-stepper .component-stepper-item.component-stepper-next-error .component-stepper-item-title::after {\n background: rgb(235, 96, 84);\n}\n.paraui-v3-stepper .component-stepper-item-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button] {\n cursor: pointer;\n}\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button] .component-stepper-item-title,\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button] .component-stepper-item-subtitle,\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button] .component-stepper-item-description,\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button] .component-stepper-item-icon .component-stepper-icon {\n transition: color 0.3s;\n}\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button]:hover .component-stepper-item-title,\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button]:hover .component-stepper-item-subtitle,\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active) > .component-stepper-item-container[role=button]:hover .component-stepper-item-description {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active):not(.component-stepper-item-process) > .component-stepper-item-container[role=button]:hover .component-stepper-item-icon {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper .component-stepper-item:not(.component-stepper-item-active):not(.component-stepper-item-process) > .component-stepper-item-container[role=button]:hover .component-stepper-item-icon .component-stepper-icon {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-stepper .component-stepper-item-custom > .component-stepper-item-container > .component-stepper-item-icon {\n height: auto;\n border: 0;\n}\n.paraui-v3-stepper .component-stepper-item-custom > .component-stepper-item-container > .component-stepper-item-icon > .component-stepper-icon {\n top: 0;\n left: 0;\n width: 30px;\n height: 30px;\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 50%;\n}\n.paraui-v3-stepper .component-stepper-item-custom.component-stepper-item-process .component-stepper-item-icon > .component-stepper-icon {\n background: rgb(54, 102, 214);\n}\n.paraui-v3-stepper.component-stepper-horizontal:not(.component-stepper-label-vertical) .component-stepper-item {\n white-space: nowrap;\n}\n.paraui-v3-stepper.component-stepper-horizontal:not(.component-stepper-label-vertical) .component-stepper-item:first-child {\n padding-left: 0;\n}\n.paraui-v3-stepper.component-stepper-horizontal:not(.component-stepper-label-vertical) .component-stepper-item:last-child .component-stepper-item-title {\n padding-right: 0;\n}\n.paraui-v3-stepper.component-stepper-horizontal:not(.component-stepper-label-vertical) .component-stepper-item-tail {\n display: none;\n}\n.paraui-v3-stepper.component-stepper-horizontal:not(.component-stepper-label-vertical) .component-stepper-item-description {\n max-width: 140px;\n white-space: normal;\n}\n.paraui-v3-stepper.component-stepper:not(.component-stepper-vertical) .component-stepper-item-custom .component-stepper-item-icon {\n width: auto;\n background: none;\n}\n.paraui-v3-stepper.component-stepper:not(.component-stepper-vertical) .component-stepper-item-custom.component-stepper-item-process .component-stepper-item-icon {\n background: rgb(54, 102, 214);\n}\n.paraui-v3-stepper.component-stepper:not(.component-stepper-vertical) .component-stepper-item-custom.component-stepper-item-finish .component-stepper-item-icon {\n background: rgba(54, 102, 214, 0.8);\n}\n.paraui-v3-stepper.component-stepper-small.component-stepper-horizontal:not(.component-stepper-label-vertical) .component-stepper-item {\n padding-left: 12px;\n}\n.paraui-v3-stepper.component-stepper-small.component-stepper-horizontal:not(.component-stepper-label-vertical) .component-stepper-item:first-child {\n padding-left: 0;\n}\n.paraui-v3-stepper.component-stepper-small .component-stepper-item-icon {\n width: 24px;\n height: 24px;\n margin: 0 8px 0 0;\n font-size: 12px;\n line-height: 24px;\n text-align: center;\n border-radius: 24px;\n}\n.paraui-v3-stepper.component-stepper-small .component-stepper-item-title {\n padding-right: 12px;\n font-size: 14px;\n line-height: 24px;\n}\n.paraui-v3-stepper.component-stepper-small .component-stepper-item-title::after {\n top: 12px;\n}\n.paraui-v3-stepper.component-stepper-small .component-stepper-item-description {\n color: rgb(46, 55, 67);\n font-size: 14px;\n}\n.paraui-v3-stepper.component-stepper-small .component-stepper-item-tail {\n top: 8px;\n}\n.paraui-v3-stepper.component-stepper-small .component-stepper-item-custom .component-stepper-item-icon {\n width: inherit;\n height: inherit;\n line-height: inherit;\n background: none;\n border: 0;\n border-radius: 0;\n}\n.paraui-v3-stepper.component-stepper-small .component-stepper-item-custom .component-stepper-item-icon > .component-stepper-icon {\n font-size: 24px;\n line-height: 24px;\n transform: none;\n}\n.paraui-v3-stepper.component-stepper-vertical {\n display: flex;\n flex-direction: column;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item {\n display: block;\n flex: 1 0 auto;\n padding-left: 0;\n overflow: visible;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item .component-stepper-item-icon {\n float: left;\n margin-right: 16px;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item .component-stepper-item-content {\n display: block;\n min-height: 68px;\n overflow: hidden;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item .component-stepper-item-title {\n line-height: 32px;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item .component-stepper-item-description {\n padding-bottom: 12px;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item > .component-stepper-item-container {\n flex-direction: row;\n align-items: flex-start;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item > .component-stepper-item-container > .component-stepper-item-tail {\n position: absolute;\n top: 0;\n left: 15px;\n width: 1px;\n height: 100%;\n padding: 36px 0 6px;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item > .component-stepper-item-container > .component-stepper-item-tail::after {\n width: 1px;\n height: 100%;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item:not(:last-child) > .component-stepper-item-container > .component-stepper-item-tail {\n display: block;\n}\n.paraui-v3-stepper.component-stepper-vertical > .component-stepper-item > .component-stepper-item-container > .component-stepper-item-content > .component-stepper-item-title::after {\n display: none;\n}\n.paraui-v3-stepper.component-stepper-vertical.component-stepper-small .component-stepper-item-container .component-stepper-item-tail {\n position: absolute;\n top: 0;\n left: 12px;\n padding: 30px 0 6px;\n}\n.paraui-v3-stepper.component-stepper-vertical.component-stepper-small .component-stepper-item-container .component-stepper-item-title {\n line-height: 24px;\n}\n.paraui-v3-stepper.component-stepper-label-vertical .component-stepper-item {\n overflow: visible;\n}\n.paraui-v3-stepper.component-stepper-label-vertical .component-stepper-item-tail {\n margin-left: 58px;\n padding: 3.5px 24px;\n}\n.paraui-v3-stepper.component-stepper-label-vertical .component-stepper-item-content {\n display: block;\n width: 116px;\n margin-top: 8px;\n text-align: center;\n}\n.paraui-v3-stepper.component-stepper-label-vertical .component-stepper-item-icon {\n display: inline-block;\n margin-left: 42px;\n}\n.paraui-v3-stepper.component-stepper-label-vertical .component-stepper-item-title {\n padding-right: 0;\n padding-left: 0;\n}\n.paraui-v3-stepper.component-stepper-label-vertical .component-stepper-item-title::after {\n display: none;\n}\n.paraui-v3-stepper.component-stepper-label-vertical .component-stepper-item-subtitle {\n display: block;\n margin-bottom: 4px;\n margin-left: 0;\n line-height: 1.5715;\n}\n.paraui-v3-stepper.component-stepper-label-vertical.component-stepper-small:not(.component-stepper-dot) .component-stepper-item-icon {\n margin-left: 46px;\n}";
35
- styleInject(css_248z);
36
-
37
33
  //steps
38
34
  var Stepper = function Stepper(props) {
39
35
  var _props$current = props.current,
@@ -0,0 +1,75 @@
1
+ /**
2
+ * @author Hanz
3
+ * @date 2021/10/20 下午2:08
4
+ * @description color
5
+ */
6
+ // 组件库前缀
7
+ $prefixCls: 'paraui-v3';
8
+ // rc组件前缀
9
+ $rcPrefixCls: 'component';
10
+
11
+ //导航&主题色
12
+ $A1: rgba(0, 70, 102, 1);
13
+ $A2: rgba(0, 99, 132, 1);
14
+ $A3: rgba(198, 223, 231, 1);
15
+ $A4: rgba(128, 176, 200, 1);
16
+ $A5: rgba(0, 70, 102, 1);
17
+ //辅助色
18
+ $B1: linear-gradient(90deg, #004666 0.11%, #99B5C2 73.89%, #CCDAE0 99.81%);
19
+ $B2: rgba(0, 70, 102, 0.8);
20
+ $B3: rgba(0, 70, 102, 0.4);
21
+ $B4: rgba(0, 70, 102, 0.2);
22
+ $B5: rgba(0, 70, 102, 0.05);
23
+ $B6: rgba(168, 173, 179, 0.4);
24
+ $B7: rgba(168, 173, 179, 0.2);
25
+ $B8: rgba(168, 173, 179, 0.12);
26
+ $B9: rgba(248, 249, 251, 0.8);
27
+ $B10: rgba(255, 255, 255, 1);
28
+ $B11: rgba(243, 246, 252, 1);
29
+ $B12: rgba(253, 251, 242, 1);
30
+ $B13: rgba(250, 244, 246, 1);
31
+ $B14: rgba(250, 251, 246, 1);
32
+ //状态色
33
+ $C1: rgba(162, 30, 77, 1);
34
+ $C2: rgba(162, 30, 77, 0.05);
35
+ $C3: rgba(149, 168, 68, 1);
36
+ $C4: rgba(149, 168, 68, 0.05);
37
+ $C5: rgba(216, 170, 0, 1);
38
+ $C6: rgba(216, 170, 0, 0.05);
39
+ $C7: rgba(162, 30, 77, 0.4);
40
+
41
+ //文字色
42
+ $D1: rgba(76, 83, 86, 1);
43
+ $D2: rgba(76, 83, 86, 0.7);
44
+ $D3: rgba(76, 83, 86, 0.4);
45
+ //字体
46
+ $font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
47
+ $large: 18px;
48
+ $medium: 16px;
49
+ $small: 14px;
50
+ $smallest: 12px;
51
+ $normal: 400;
52
+ $bold: 700;
53
+ $light: 300;
54
+ // 实色
55
+ $Z1: rgba(248, 249, 251, 1);
56
+ $Z2: rgba(237, 241, 249, 1);
57
+ $Z3: rgba(227, 234, 247, 1);
58
+ $Z4: rgba(245, 246, 247, 1);
59
+ $Z5: rgba(243, 246, 252, 1);
60
+ $Z6: rgba(253, 246, 245, 1);
61
+ $Z7: rgba(245, 251, 242, 1);
62
+ $Z8: rgba(254, 249, 245, 1);
63
+ $Z9: rgba(236, 238, 240, 1);
64
+ $Z10: rgba(79, 89, 105, 1);
65
+ $Z11: rgba(249, 250, 251, 1);
66
+
67
+ //阴影
68
+ $boxShadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.40);
69
+ $boxShadowLeft: inset -10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
70
+ $boxShadowRight: inset 10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
71
+ $radius: 4px;
72
+
73
+ //全局弹窗index,往body里面插入的,比如toolTip,popover这类
74
+ $ZIndexBody: 1500;
75
+
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @author Hanz
3
+ * @date 2021/10/20 下午2:08
4
+ * @description color
5
+ */
6
+ // 组件库前缀
7
+ $prefixCls: 'paraui-v3';
8
+ // rc组件前缀
9
+ $rcPrefixCls: 'component';
10
+
11
+ //导航&主题色
12
+ $A1: rgba(28, 41, 60, 1);
13
+ $A2: rgba(34, 62, 103, 1);
14
+ $A3: linear-gradient(180deg, rgba(241, 241, 244, 1), rgba(243, 243, 243, 1));
15
+ $A4: rgba(255, 255, 255, 0.6);
16
+ $A5: rgba(54, 102, 214, 1);
17
+ //辅助色
18
+ $B1: linear-gradient(90deg, rgba(61, 102, 248, 1), rgba(119, 147, 249, 1) 74%, rgba(216, 223, 250, 1));
19
+ $B2: rgba(54, 102, 214, 0.8);
20
+ $B3: rgba(54, 102, 214, 0.4);
21
+ $B4: rgba(54, 102, 214, 0.2);
22
+ $B5: rgba(54, 102, 214, 0.05);
23
+ $B6: rgba(171, 176, 185, 0.4);
24
+ $B7: rgba(171, 176, 185, 0.2);
25
+ $B8: rgba(171, 176, 185, 0.12);
26
+ $B9: rgba(248, 249, 251, 0.8);
27
+ $B10: rgba(255, 255, 255, 1);
28
+ $B11: rgba(243, 246, 252, 1);
29
+ $B12: rgba(254, 249, 245, 1);
30
+ $B13: rgba(253, 246, 245, 1);
31
+ $B14: rgba(245, 251, 242, 1);
32
+ //状态色
33
+ $C1: rgba(235, 96, 84, 1);
34
+ $C2: rgba(235, 96, 84, 0.05);
35
+ $C3: rgba(83, 195, 27, 1);
36
+ $C4: rgba(83, 195, 27, 0.05);
37
+ $C5: rgba(255, 161, 80, 1);
38
+ $C6: rgba(255, 161, 80, 0.05);
39
+ $C7: rgba(235, 96, 84, 0.8);
40
+ //文字色
41
+ $D1: rgba(46, 55, 67, 1);
42
+ $D2: rgba(46, 55, 67, 0.7);
43
+ $D3: rgba(46, 55, 67, 0.4);
44
+ //字体
45
+ $font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
46
+ $large: 18px;
47
+ $medium: 16px;
48
+ $small: 14px;
49
+ $smallest: 12px;
50
+ $normal: 400;
51
+ $bold: 700;
52
+ $light: 300;
53
+ // 实色
54
+ $Z1: rgba(248, 249, 251, 1);
55
+ $Z2: rgba(237, 241, 249, 1);
56
+ $Z3: rgba(227, 234, 247, 1);
57
+ $Z4: rgba(245, 246, 247, 1);
58
+ $Z5: rgba(243, 246, 252, 1);
59
+ $Z6: rgba(253, 246, 245, 1);
60
+ $Z7: rgba(245, 251, 242, 1);
61
+ $Z8: rgba(254, 249, 245, 1);
62
+ $Z9: rgba(236, 238, 240, 1);
63
+ $Z10: rgba(79, 89, 105, 1);
64
+ $Z11: rgba(249, 250, 251, 1);
65
+
66
+ //阴影
67
+ $boxShadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.40);
68
+ $boxShadowLeft: inset -10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
69
+ $boxShadowRight: inset 10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
70
+ $radius: 4px;
71
+
72
+ //全局弹窗index,往body里面插入的,比如toolTip,popover这类
73
+ $ZIndexBody: 1500;
74
+
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @author lisq
3
+ * @date 20214/05/28
4
+ * @description 上海农商行背景色
5
+ */
6
+ /**
7
+ * @author Hanz
8
+ * @date 2021/10/20 下午2:08
9
+ * @description color
10
+ */
11
+
12
+ // 组件库前缀
13
+ $prefixCls: 'paraui-v3';
14
+ // rc组件前缀
15
+ $rcPrefixCls: 'component';
16
+
17
+ //导航&主题色
18
+ $A1: rgba(28, 41, 60, 1);
19
+ $A2: rgba(34, 62, 103, 1);
20
+ $A3: linear-gradient(180deg, rgba(241, 241, 244, 1), rgba(243, 243, 243, 1));
21
+ $A4: rgba(255, 255, 255, 0.6);
22
+ $A5: rgba(14,30,182, 1);
23
+ //辅助色
24
+ $B1: linear-gradient(90deg, rgba(61, 102, 248, 1), rgba(119, 147, 249, 1) 74%, rgba(216, 223, 250, 1));
25
+ $B2: rgba(14,30,182, 0.8);
26
+ $B3: rgba(14,30,182, 0.4);
27
+ $B4: rgba(14,30,182, 0.2);
28
+ $B5: rgba(14,30,182, 0.05);
29
+ $B6: rgba(171, 176, 185, 0.4);
30
+ $B7: rgba(171, 176, 185, 0.2);
31
+ $B8: rgba(171, 176, 185, 0.12);
32
+ $B9: rgba(248, 249, 251, 0.8);
33
+ $B10: rgba(255, 255, 255, 1);
34
+ $B11: rgba(243, 246, 252, 1);
35
+ $B12: rgba(254, 249, 245, 1);
36
+ $B13: rgba(253, 246, 245, 1);
37
+ $B14: rgba(245, 251, 242, 1);
38
+ //状态色
39
+ $C1: rgba(235, 96, 84, 1);
40
+ $C2: rgba(235, 96, 84, 0.05);
41
+ $C3: rgba(83, 195, 27, 1);
42
+ $C4: rgba(83, 195, 27, 0.05);
43
+ $C5: rgba(255, 161, 80, 1);
44
+ $C6: rgba(255, 161, 80, 0.05);
45
+ $C7: rgba(235, 96, 84, 0.8);
46
+ //文字色
47
+ $D1: rgba(46, 55, 67, 1);
48
+ $D2: rgba(46, 55, 67, 0.7);
49
+ $D3: rgba(46, 55, 67, 0.4);
50
+ //字体
51
+ $font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
52
+ $large: 18px;
53
+ $medium: 16px;
54
+ $small: 14px;
55
+ $smallest: 12px;
56
+ $normal: 400;
57
+ $bold: 700;
58
+ $light: 300;
59
+ // 实色
60
+ $Z1: rgba(248, 249, 251, 1);
61
+ $Z2: rgba(237, 241, 249, 1);
62
+ $Z3: rgba(227, 234, 247, 1);
63
+ $Z4: rgba(245, 246, 247, 1);
64
+ $Z5: rgba(243, 246, 252, 1);
65
+ $Z6: rgba(253, 246, 245, 1);
66
+ $Z7: rgba(245, 251, 242, 1);
67
+ $Z8: rgba(254, 249, 245, 1);
68
+ $Z9: rgba(236, 238, 240, 1);
69
+ $Z10: rgba(79, 89, 105, 1);
70
+ $Z11: rgba(249, 250, 251, 1);
71
+
72
+ //阴影
73
+ $boxShadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.40);
74
+ $boxShadowLeft: inset -10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
75
+ $boxShadowRight: inset 10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
76
+ $radius: 4px;
77
+
78
+ //全局弹窗index,往body里面插入的,比如toolTip,popover这类
79
+ $ZIndexBody: 1500;
80
+
package/Styles/theme.scss CHANGED
@@ -3,72 +3,4 @@
3
3
  * @date 2021/10/20 下午2:08
4
4
  * @description color
5
5
  */
6
- // 组件库前缀
7
- $prefixCls: 'paraui-v3';
8
- // rc组件前缀
9
- $rcPrefixCls: 'component';
10
-
11
- //导航&主题色
12
- $A1: rgba(28, 41, 60, 1);
13
- $A2: rgba(34, 62, 103, 1);
14
- $A3: linear-gradient(180deg, rgba(241, 241, 244, 1), rgba(243, 243, 243, 1));
15
- $A4: rgba(255, 255, 255, 0.6);
16
- $A5: rgba(54, 102, 214, 1);
17
- //辅助色
18
- $B1: linear-gradient(90deg, rgba(61, 102, 248, 1), rgba(119, 147, 249, 1) 74%, rgba(216, 223, 250, 1));
19
- $B2: rgba(54, 102, 214, 0.8);
20
- $B3: rgba(54, 102, 214, 0.4);
21
- $B4: rgba(54, 102, 214, 0.2);
22
- $B5: rgba(54, 102, 214, 0.05);
23
- $B6: rgba(171, 176, 185, 0.4);
24
- $B7: rgba(171, 176, 185, 0.2);
25
- $B8: rgba(171, 176, 185, 0.12);
26
- $B9: rgba(248, 249, 251, 0.8);
27
- $B10: rgba(255, 255, 255, 1);
28
- $B11: rgba(243, 246, 252, 1);
29
- $B12: rgba(254, 249, 245, 1);
30
- $B13: rgba(253, 246, 245, 1);
31
- $B14: rgba(245, 251, 242, 1);
32
- //状态色
33
- $C1: rgba(235, 96, 84, 1);
34
- $C2: rgba(235, 96, 84, 0.05);
35
- $C3: rgba(83, 195, 27, 1);
36
- $C4: rgba(83, 195, 27, 0.05);
37
- $C5: rgba(255, 161, 80, 1);
38
- $C6: rgba(255, 161, 80, 0.05);
39
- $C7: rgba(235, 96, 84, 0.8);
40
- //文字色
41
- $D1: rgba(46, 55, 67, 1);
42
- $D2: rgba(46, 55, 67, 0.7);
43
- $D3: rgba(46, 55, 67, 0.4);
44
- //字体
45
- $font-family: -apple-system, BlinkMacSystemFont, Helvetica Neue, PingFang SC, Microsoft YaHei, Source Han Sans SC, Noto Sans CJK SC, WenQuanYi Micro Hei, sans-serif;
46
- $large: 18px;
47
- $medium: 16px;
48
- $small: 14px;
49
- $smallest: 12px;
50
- $normal: 400;
51
- $bold: 700;
52
- $light: 300;
53
- // 实色
54
- $Z1: rgba(248, 249, 251, 1);
55
- $Z2: rgba(237, 241, 249, 1);
56
- $Z3: rgba(227, 234, 247, 1);
57
- $Z4: rgba(245, 246, 247, 1);
58
- $Z5: rgba(243, 246, 252, 1);
59
- $Z6: rgba(253, 246, 245, 1);
60
- $Z7: rgba(245, 251, 242, 1);
61
- $Z8: rgba(254, 249, 245, 1);
62
- $Z9: rgba(236, 238, 240, 1);
63
- $Z10: rgba(79, 89, 105, 1);
64
- $Z11: rgba(249, 250, 251, 1);
65
-
66
- //阴影
67
- $boxShadow: 0px 2px 8px 0px rgba(171, 176, 185, 0.40);
68
- $boxShadowLeft: inset -10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
69
- $boxShadowRight: inset 10px 0 10px -8px rgba(0, 0, 0, 0.1); // 表格固定列
70
- $radius: 4px;
71
-
72
- //全局弹窗index,往body里面插入的,比如toolTip,popover这类
73
- $ZIndexBody: 1500;
74
-
6
+ @import "./theme/theme-shrcb";
package/Switch/index.js CHANGED
@@ -1,25 +1,21 @@
1
- import { _ as _defineProperty } from '../_verture/defineProperty-62acccfc.js';
2
- import { _ as __rest } from '../_verture/tslib.es6-55ed4bd2.js';
1
+ import { _ as _defineProperty } from '../_verture/defineProperty-93ea0466.js';
2
+ import { _ as __rest } from '../_verture/tslib.es6-1df6c864.js';
3
3
  import { jsx, jsxs } from 'react/jsx-runtime';
4
4
  import RcSwitch from 'rc-switch';
5
5
  import clsx from 'clsx';
6
6
  import LoadingOutlined from '@para-ui/icons/LoadingF';
7
7
  import Label from '../Label/index.js';
8
- import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-66aa48a1.js';
9
- import { s as styleInject } from '../_verture/style-inject.es-300983ab.js';
10
- import '../_verture/typeof-498dd2b1.js';
8
+ import { $ as $prefixCls, a as $rcPrefixCls } from '../_verture/constant-85ee4f45.js';
9
+ import '../_verture/typeof-15d17668.js';
11
10
  import '../Help/index.js';
12
11
  import '../Tooltip/index.js';
13
- import '../_verture/slicedToArray-76060636.js';
14
- import '../_verture/unsupportedIterableToArray-cb478f24.js';
12
+ import '../_verture/slicedToArray-027c5b89.js';
13
+ import '../_verture/unsupportedIterableToArray-167a0b24.js';
15
14
  import 'react';
16
15
  import 'rc-tooltip';
17
16
  import 'rc-tooltip/lib/placements';
18
17
  import '@para-ui/icons/Help';
19
18
 
20
- var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/3 下午5:58\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-switch {\n position: relative;\n display: inline-block;\n min-width: 32px;\n height: 18px;\n vertical-align: middle;\n background-color: transparent;\n border: 0;\n border-radius: 100px;\n cursor: pointer;\n transition: all 0.2s;\n user-select: none;\n}\n.paraui-v3-switch:before {\n position: absolute;\n top: 2px;\n left: 0;\n width: 100%;\n height: 14px;\n border-radius: 100px;\n background-color: rgba(171, 176, 185, 0.4);\n content: \"\";\n transition: all 0.2s;\n}\n.paraui-v3-switch:focus {\n outline: 0;\n box-shadow: none;\n}\n.paraui-v3-switch.component-switch-checked:focus {\n box-shadow: none;\n}\n.paraui-v3-switch:focus:hover {\n box-shadow: none;\n}\n.paraui-v3-switch.component-switch-checked:before {\n background-color: rgba(54, 102, 214, 0.2);\n}\n.paraui-v3-switch-loading, .paraui-v3-switch.component-switch-disabled {\n cursor: not-allowed;\n opacity: 0.4;\n}\n.paraui-v3-switch-loading *, .paraui-v3-switch.component-switch-disabled * {\n box-shadow: none;\n cursor: not-allowed;\n}\n.paraui-v3-switch .component-switch-inner {\n display: block;\n margin: 0 7px 0 25px;\n color: rgb(255, 255, 255);\n font-size: 14px;\n transition: margin 0.2s;\n}\n.paraui-v3-switch.component-switch-checked .component-switch-inner {\n margin: 0 25px 0 7px;\n}\n.paraui-v3-switch .component-switch-handle {\n position: absolute;\n top: 0;\n left: 0;\n width: 18px;\n height: 18px;\n transition: all 0.2s ease-in-out;\n}\n.paraui-v3-switch .component-switch-handle::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: #8996AA;\n border-radius: 9px;\n box-shadow: none;\n transition: all 0.2s ease-in-out;\n content: \"\";\n}\n.paraui-v3-switch.component-switch-checked .component-switch-handle {\n left: calc(100% - 18px);\n}\n.paraui-v3-switch.component-switch-checked .component-switch-handle::before {\n background-color: rgb(54, 102, 214);\n}\n.paraui-v3-switch:not(.paraui-v3-switch-disabled):active .component-switch-handle::before {\n right: -30%;\n left: 0;\n}\n.paraui-v3-switch:not(.paraui-v3-switch-disabled):active.component-switch-checked .component-switch-handle::before {\n right: 0;\n left: -30%;\n}\n.paraui-v3-switch .component-switch-loading-icon {\n position: relative;\n top: 1px;\n color: rgb(54, 102, 214);\n vertical-align: top;\n animation: switchLoadingCircle 1s infinite linear;\n}\n.paraui-v3-switch.component-switch-checked .component-switch-loading-icon {\n color: rgb(255, 255, 255);\n}\n.paraui-v3-switch-small {\n min-width: 28px;\n height: 14px;\n line-height: 14px;\n}\n.paraui-v3-switch-small .component-switch-inner {\n margin: 0 5px 0 18px;\n font-size: 14px;\n}\n.paraui-v3-switch-small .component-switch-handle {\n width: 12px;\n height: 12px;\n top: 3px;\n left: 2px;\n}\n.paraui-v3-switch-small .component-switch-loading-icon {\n top: 1.5px;\n font-size: 9px;\n}\n.paraui-v3-switch-small.component-switch-checked .component-switch-inner {\n margin: 0 18px 0 5px;\n}\n.paraui-v3-switch-small.component-switch-checked .component-switch-handle {\n left: calc(100% - 12px - 2px);\n}\n@keyframes switchLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.paraui-v3-switch-label {\n display: inline-flex;\n}\n.paraui-v3-switch-label .component-switch-text {\n color: rgba(46, 55, 67, 0.7);\n font-size: 14px;\n font-weight: 400;\n}\n.paraui-v3-switch-label-top {\n flex-direction: column-reverse;\n align-items: flex-start;\n}\n.paraui-v3-switch-label-top .component-switch-text {\n margin-bottom: 8px;\n}\n.paraui-v3-switch-label-bottom {\n flex-direction: column;\n align-items: flex-start;\n}\n.paraui-v3-switch-label-bottom .component-switch-text {\n margin-top: 8px;\n margin-bottom: 0;\n}\n.paraui-v3-switch-label-start {\n flex-direction: row-reverse;\n align-items: center;\n}\n.paraui-v3-switch-label-start .component-switch-text {\n margin-right: 8px;\n margin-bottom: 0;\n}\n.paraui-v3-switch-label-end {\n flex-direction: row;\n align-items: center;\n}\n.paraui-v3-switch-label-end .component-switch-text {\n margin-left: 8px;\n margin-bottom: 0;\n}";
21
- styleInject(css_248z);
22
-
23
19
  //Switch 开关
24
20
  var Switch = function Switch(props) {
25
21
  props.compact;