diginet-core-ui 1.3.89 → 1.3.90-beta.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/assets/images/menu/dhr/MHRP51N0003.svg +13 -0
- package/assets/images/menu/dhr/MHRP51N0004.svg +14 -0
- package/components/avatar/index.js +56 -135
- package/components/breadcrumb/index.js +144 -0
- package/components/button/icon.js +1 -0
- package/components/form-control/attachment/index.js +2 -1
- package/components/form-control/calendar/function.js +87 -141
- package/components/form-control/date-range-picker/index.js +1 -1
- package/components/form-control/dropdown/index.js +50 -59
- package/components/grid/index.js +3 -1
- package/components/image/index.js +13 -15
- package/components/index.js +4 -1
- package/components/others/option-wrapper/index.js +3 -1
- package/components/popover/index.js +41 -31
- package/components/popup/v2/index.js +43 -38
- package/components/tab/tab-container.js +6 -5
- package/components/tab/tab-header.js +38 -45
- package/components/tab/tab-panel.js +9 -16
- package/components/tab/tab.js +66 -81
- package/components/tree-view/index.js +103 -107
- package/components/typography/index.js +6 -6
- package/global/index.js +2 -2
- package/icons/basic.js +108 -0
- package/package.json +62 -31
- package/readme.md +9 -0
- package/styles/colors.js +1 -0
- package/styles/general.js +70 -29
- package/styles/sx/index.js +23 -0
- package/styles/utils.js +1 -0
- package/utils/index.js +1 -0
- package/utils/intersectionObserver.js +3 -2
- package/components/popup/proposals_popup.js +0 -321
- package/components/tree-view/css.js +0 -107
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_847_46)">
|
|
3
|
+
<path d="M18.6998 0H15.7998C14.9998 0 14.2998 0.7 14.2998 1.5V5.9C14.2998 6.7 14.9998 7.4 15.7998 7.4H18.6998C19.4998 7.4 20.1998 6.7 20.1998 5.9V1.5C20.1998 0.7 19.4998 0 18.6998 0Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M27.5998 11.8C27.5998 7.7 25.1998 4.2 21.6998 2.5V5.9C21.6998 7.5 20.3998 8.8 18.7998 8.8H15.8998C14.2998 8.8 12.9998 7.5 12.9998 5.9V2.5C9.39982 4.1 6.99982 7.7 6.99982 11.8C6.19982 11.8 5.49982 12.5 5.49982 13.3V14.8C5.49982 15.6 6.19982 16.3 6.99982 16.3H27.5998C28.3998 16.3 29.0998 15.6 29.0998 14.8V13.3C28.9998 12.4 28.3998 11.8 27.5998 11.8Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M33.4998 21.4C33.2998 21 32.8998 20.8 32.4998 20.8C32.2998 20.8 31.8998 20.9 31.5998 21.2C31.3998 21.5 30.9998 21.9 30.6998 22.2C29.8998 23.1 28.8998 24.3 28.4998 24.6C28.3998 24.7 28.2998 24.7 28.1998 24.7C28.0998 24.7 27.9998 24.6 27.9998 24.5C27.9998 24.4 27.9998 24.3 28.0998 24.2C28.2998 24 28.8998 23.4 29.4998 22.7C30.2998 21.8 31.2998 20.7 31.6998 20.3C31.9998 20 32.0998 19.5 31.8998 19.1C31.6998 18.7 31.3998 18.4 30.8998 18.4C30.5998 18.4 30.2998 18.5 29.9998 18.8C28.8998 19.9 26.6998 22.2 26.3998 22.5C26.2998 22.6 26.1998 22.6 26.0998 22.6C25.9998 22.6 25.8998 22.6 25.8998 22.5C25.8998 22.5 25.8998 22.4 25.9998 22.2C26.2998 21.9 26.6998 21.4 27.2998 20.8C27.8998 20.2 28.4998 19.5 28.9998 18.9C29.3998 18.5 29.4998 18 29.2998 17.6C29.0998 17.2 28.6998 17 28.2998 17C27.8998 17 27.5998 17.2 27.2998 17.4C27.0998 17.6 26.6998 18.1 26.2998 18.6C25.2998 19.9 23.8998 21.6 22.7998 22.2C22.6998 22.2 22.4998 22.4 21.7998 22.3C20.9998 22.2 20.4998 20.8 20.3998 20C20.2998 19.6 20.2998 19.2 20.0998 19C19.8998 18.6 19.2998 18.3 18.6998 18.3C18.2998 18.3 17.9998 18.4 17.7998 18.7C17.6998 18.9 17.4998 19.2 17.5998 19.7C17.6998 20 17.7998 20.3 17.8998 20.7C18.1998 21.9 18.6998 23.8 18.4998 26C18.3998 26.7 18.0998 27.4 17.4998 28C16.4998 27.1 15.8998 26.2 15.7998 25.4C15.7998 23.5 16.0998 22.3 16.3998 21.3C16.4998 21 16.5998 20.7 16.5998 20.3C16.7998 19.6 16.4998 19.2 16.2998 18.9C15.9998 18.6 15.5998 18.4 15.0998 18.4C14.3998 18.4 13.6998 18.8 13.3998 19.3C13.1998 19.7 13.0998 20.1 13.0998 20.5C12.9998 21.2 12.8998 21.8 11.9998 22.3C11.9998 22.3 11.8998 22.3 11.7998 22.3C10.8998 21.8 9.29982 20.2 8.29982 18.9C7.89982 18.4 7.49982 17.9 7.29982 17.7C6.89982 17.3 6.49982 17.1 5.99982 17.1C5.39982 17.1 4.79982 17.4 4.59982 18C4.49982 18.2 4.49982 18.5 4.49982 18.7C4.19982 18.5 3.89982 18.4 3.59982 18.4C2.99982 18.4 2.49982 18.8 2.19982 19.3C1.99982 19.7 1.99982 20.1 2.19982 20.4H2.39982C1.79982 20.4 1.29982 20.7 0.999824 21.3C0.799824 21.7 0.799824 22.3 1.19982 22.7C0.799824 22.8 0.399824 23.1 0.199824 23.5C-0.100176 24 -0.000176042 24.6 0.399824 25.1C0.899824 26.1 12.9998 38.7 12.9998 38.7C13.0998 38.9 13.2998 39 13.4998 39H13.5998C13.7998 39 13.8998 38.9 13.9998 38.8L17.2998 35.8L19.0998 37.4C19.3998 31.8 23.5998 27.4 29.0998 26.8V26.1C29.0998 25.3 29.4998 24.7 30.1998 24.3C30.4998 24.1 30.7998 24.1 31.0998 24.1C31.2998 24.1 31.4998 24.1 31.6998 24.2C32.2998 23.6 32.8998 22.9 33.2998 22.4C33.5998 22 33.6998 21.7 33.4998 21.4ZM13.7998 32.5L16.4998 35.1L13.5998 37.8C12.9998 37 1.69982 25.5 1.09982 24.7C0.999824 24.6 0.899824 24.4 0.999824 24.2C0.999824 24 1.19982 23.9 1.39982 23.9C1.49982 23.9 1.59982 24 1.69982 24.1C2.39982 24.9 3.89982 26.5 4.19982 26.8C4.89982 27.5 5.69982 26.8 5.09982 26.1C4.59982 25.6 2.89982 23.7 1.99982 22.6C1.29982 21.7 2.29982 21.1 2.89982 22C3.09982 22.3 5.49982 25 5.89982 25.3C6.09982 25.5 6.29982 25.6 6.49982 25.6C6.79982 25.6 7.09982 25.4 7.19982 25.2C7.29982 24.9 7.19982 24.6 6.99982 24.4C6.89982 24.3 5.89982 23.3 4.89982 22.3C3.89982 21.1 3.29982 20.6 3.49982 20.2C3.59982 20 3.79982 19.9 3.99982 19.9C4.19982 19.9 4.39982 20.1 4.49982 20.2C5.49982 21.2 7.59982 23.4 7.89982 23.7C8.09982 23.8 8.29982 24 8.49982 24C8.79982 24 8.99982 23.8 9.09982 23.6C9.19982 23.4 9.19982 23.2 8.89982 22.8C8.59982 22.5 8.19982 22 7.69982 21.4C6.99982 20.6 6.39982 20 5.89982 19.4C5.79982 19.3 5.59982 18.9 5.69982 18.7C5.79982 18.5 5.99982 18.3 6.29982 18.3C6.49982 18.3 6.69982 18.4 6.89982 18.6C7.09982 18.8 7.49982 19.3 7.79982 19.7C8.59982 20.7 10.1998 22.5 11.3998 23.2C11.7998 23.4 12.2998 23.6 12.6998 23.3C13.9998 22.6 14.1998 21.6 14.2998 20.8C14.2998 20.5 14.3998 20.2 14.4998 20C14.6998 19.7 14.9998 19.5 15.3998 19.5C15.5998 19.5 15.7998 19.6 15.8998 19.8C15.9998 19.9 15.9998 20.1 15.9998 20.4C15.8998 20.7 15.7998 21 15.7998 21.3C15.4998 22.4 15.1998 23.6 15.1998 25.4C15.1998 26 15.2998 26.2 15.3998 26.6C15.6998 27.4 16.2998 28.2 17.0998 29C15.4998 30.7 13.8998 32.2 13.8998 32.3C13.7998 32.4 13.7998 32.5 13.7998 32.5ZM34.3998 23.7C34.1998 23.3 33.8998 23.1 33.4998 23.1C33.2998 23.1 33.0998 23.2 32.7998 23.4C32.5998 23.7 32.2998 24 31.8998 24.3C31.9998 24.3 31.9998 24.4 32.0998 24.4L33.5998 25.4C33.8998 25.1 34.0998 24.8 34.1998 24.8C34.5998 24.5 34.5998 24.1 34.3998 23.7Z" fill="#2680EB"/>
|
|
6
|
+
<path d="M30.1 35.5C30.1 35.9 30.3 36.2 30.7 36.4C30.8 36.5 31 36.5 31.2 36.5C31.4 36.5 31.6 36.4 31.8 36.3L38.7 31.5C38.9 31.3 39.1 31 39.1 30.7C39.1 30.4 38.9 30.1 38.7 29.9L31.8 25.2C31.6 25.1 31.4 25 31.2 25C31 25 30.9 25 30.7 25.1C30.4 25.3 30.2 25.6 30.1 26V27.6C24.5 27.9 20 32.4 20 38V38.1C20 38.5 20.3 38.8 20.6 38.9C20.7 38.9 20.8 38.9 20.8 38.9C21.1 38.9 21.4 38.7 21.5 38.5C23.3 35.6 26.5 33.8 30 33.7L30.1 35.5Z" fill="#FF8C00"/>
|
|
7
|
+
</g>
|
|
8
|
+
<defs>
|
|
9
|
+
<clipPath id="clip0_847_46">
|
|
10
|
+
<rect width="39" height="39" fill="white"/>
|
|
11
|
+
</clipPath>
|
|
12
|
+
</defs>
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<svg width="39" height="39" viewBox="0 0 39 39" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g clip-path="url(#clip0_847_51)">
|
|
3
|
+
<path d="M15.1002 6.8H17.9002C18.7002 6.8 19.3002 6.2 19.3002 5.4V1.4C19.3002 0.7 18.7002 0 17.9002 0H15.1002C14.3002 0 13.7002 0.6 13.7002 1.4V5.5C13.7002 6.2 14.3002 6.8 15.1002 6.8Z" fill="#2680EB"/>
|
|
4
|
+
<path d="M27.7002 12.2V13.6C27.7002 14.4 27.1002 15 26.3002 15H6.70022C5.90022 15 5.30022 14.4 5.30022 13.6V12.2C5.30022 11.4 5.90022 10.8 6.70022 10.8C6.70022 7 9.00022 3.8 12.3002 2.2V5.3C12.3002 6.8 13.6002 8 15.1002 8H17.9002C19.4002 8 20.7002 6.8 20.7002 5.3V2.3C22.5002 3.1 24.0002 4.5 25.0002 6.2C23.3002 7.7 22.3002 9.9 22.3002 12.4V12.5C22.3002 13.2 22.8002 13.9 23.5002 14.1C23.6002 14.1 23.8002 14.2 23.9002 14.2C24.5002 14.2 25.0002 13.9 25.3002 13.5C25.8002 12.7 26.5002 12 27.3002 11.5C27.6002 11.5 27.7002 11.8 27.7002 12.2Z" fill="#2680EB"/>
|
|
5
|
+
<path d="M30.5002 17.8C30.3002 17.4 30.0002 17.2 29.6002 17.2C29.3002 17.2 29.0002 17.3 28.7002 17.6C27.7002 18.6 25.5002 20.8 25.3002 21C25.2002 21.1 25.2002 21.1 25.0002 21.1C24.9002 21.1 24.8002 21.1 24.8002 21C24.8002 21 24.8002 20.9 24.9002 20.7C25.2002 20.4 25.6002 19.9 26.1002 19.4C26.6002 18.9 27.2002 18.2 27.7002 17.7C28.1002 17.3 28.2002 16.9 28.0002 16.5C27.8002 16.2 27.5002 15.9 27.0002 15.9C26.7002 15.9 26.3002 16.1 26.0002 16.3C25.8002 16.5 25.4002 17 25.0002 17.4C24.1002 18.6 22.7002 20.2 21.7002 20.7C21.6002 20.7 21.4002 20.9 20.7002 20.8C19.9002 20.7 19.5002 19.4 19.4002 18.7C19.3002 18.3 19.3002 18 19.1002 17.7C18.9002 17.3 18.3002 17.1 17.8002 17.1C17.4002 17.1 17.1002 17.2 16.9002 17.4C16.8002 17.6 16.6002 17.9 16.8002 18.4C16.9002 18.7 16.9002 19 17.0002 19.3C17.3002 20.4 17.7002 22.1 17.6002 24.2C17.5002 24.9 17.2002 25.5 16.7002 26.1C15.7002 25.2 15.2002 24.4 15.1002 23.7C15.1002 22 15.4002 20.8 15.6002 19.9C15.7002 19.6 15.8002 19.3 15.8002 19C16.0002 18.3 15.8002 17.9 15.6002 17.7C15.3002 17.4 14.9002 17.2 14.4002 17.2C13.7002 17.2 13.1002 17.5 12.8002 18C12.6002 18.3 12.5002 18.7 12.5002 19.1C12.4002 19.8 12.3002 20.3 11.5002 20.7C11.5002 20.7 11.4002 20.8 11.3002 20.7C10.4002 20.2 8.90022 18.7 8.00022 17.6C7.60022 17.1 7.30022 16.7 7.00022 16.5C6.70022 16.2 6.20022 16 5.70022 16C5.10022 16 4.60022 16.3 4.30022 16.8C4.20022 17 4.20022 17.2 4.20022 17.4C3.90022 17.2 3.70022 17.1 3.40022 17.1C2.80022 17.1 2.30022 17.4 2.10022 18C2.00022 18.3 2.00022 18.7 2.10022 19H2.30022C1.70022 19 1.20022 19.3 1.00022 19.8C0.800219 20.2 0.900219 20.7 1.20022 21.1C0.800219 21.2 0.400219 21.5 0.200219 21.9C0.000218511 22.4 0.000218511 22.9 0.400219 23.4C1.00022 24.1 12.5002 35.7 12.5002 35.7C12.6002 35.8 12.8002 35.9 12.9002 36H13.0002C13.2002 36 13.3002 35.9 13.4002 35.8L16.5002 33L19.6002 35.7H19.7002C19.8002 35.7 19.8002 35.7 19.8002 35.6C19.8002 35.6 20.3002 35.1 21.1002 34.4C20.9002 34 20.7002 33.6 20.6002 33.3C20.3002 32.5 20.1002 31.6 20.0002 30.8C20.0002 30.5 20.0002 30.3 20.0002 29.9C20.0002 28.8 20.2002 27.7 20.5002 26.7C20.5002 26.6 20.6002 26.5 20.6002 26.5C20.6002 26.4 20.6002 26.4 20.7002 26.3C21.0002 25.5 21.4002 24.8 21.8002 24.2C22.2002 23.6 22.6002 23.1 23.1002 22.7C23.7002 22.1 24.3002 21.6 25.1002 21.2H25.2002C25.3002 21.1 25.4002 21.1 25.5002 21C25.8002 20.9 26.1002 20.7 26.4002 20.6C26.8002 20.4 27.3002 20.3 27.6002 20.2C28.0002 20.1 28.4002 20 28.8002 20C29.0002 20 29.1002 20 29.3002 19.9C29.8002 19.4 30.2002 19 30.5002 18.7C30.6002 18.6 30.7002 18.2 30.5002 17.8ZM13.2002 30L15.8002 32.4L13.0002 35C12.4002 34.2 1.60022 23.5 1.00022 22.8C0.900219 22.7 0.800218 22.5 0.900218 22.3C1.00022 22.1 1.10022 22 1.30022 22C1.40022 22 1.50022 22 1.60022 22.1C2.20022 22.8 3.70022 24.3 4.00022 24.6C4.70022 25.2 5.40022 24.6 4.80022 24C4.30022 23.5 2.70022 21.8 1.80022 20.8C1.10022 20 2.10022 19.4 2.70022 20.2C2.90022 20.4 5.20022 23 5.50022 23.3C5.70022 23.5 5.90022 23.6 6.10022 23.6C6.40022 23.6 6.60022 23.4 6.70022 23.2C6.80022 22.9 6.70022 22.7 6.50022 22.5C6.40022 22.4 5.50022 21.5 4.50022 20.5C3.50022 19.4 3.00022 18.9 3.20022 18.5C3.30022 18.3 3.50022 18.2 3.60022 18.2C3.80022 18.2 4.00022 18.3 4.10022 18.5C5.10022 19.4 7.10022 21.5 7.30022 21.7C7.50022 21.8 7.70022 22 7.90022 22C8.20022 22 8.40022 21.8 8.50022 21.6C8.60022 21.4 8.60022 21.2 8.30022 20.9C8.00022 20.6 7.60022 20.2 7.10022 19.6C6.60022 19.1 6.10022 18.5 5.60022 18C5.50022 17.9 5.30022 17.6 5.40022 17.4C5.50022 17.2 5.70022 17.1 5.90022 17.1C6.10022 17.1 6.30022 17.2 6.50022 17.4C6.70022 17.6 7.00022 18 7.40022 18.4C8.20022 19.3 9.70022 21 10.8002 21.7C11.1002 21.9 11.6002 22 12.1002 21.8C13.3002 21.1 13.5002 20.2 13.6002 19.5C13.7002 19.2 13.7002 18.9 13.8002 18.8C14.0002 18.5 14.2002 18.3 14.6002 18.3C14.8002 18.3 15.0002 18.4 15.1002 18.5C15.2002 18.6 15.2002 18.8 15.2002 19C15.1002 19.3 15.1002 19.5 15.0002 19.8C14.7002 20.8 14.4002 21.9 14.4002 23.6C14.4002 24.1 14.5002 24.4 14.6002 24.7C14.9002 25.4 15.4002 26.2 16.3002 26.9C14.8002 28.5 13.3002 29.9 13.2002 29.9C13.1002 29.9 13.2002 30 13.2002 30ZM32.0002 19.7C31.8002 19.4 31.5002 19.2 31.1002 19.2C30.9002 19.2 30.6002 19.3 30.3002 19.6C30.2002 19.7 30.0002 19.9 29.9002 20.1C30.0002 20.1 30.0002 20.1 30.1002 20.1C30.8002 20.1 31.5002 20.2 32.2002 20.3C32.1002 20 32.1002 19.9 32.0002 19.7Z" fill="#2680EB"/>
|
|
6
|
+
<path d="M30.5999 10.5C30.5999 10.8 30.7999 11 30.9999 11.2C31.0999 11.3 31.1999 11.3 31.2999 11.3C31.3999 11.3 31.5999 11.3 31.6999 11.2L36.6999 7.7C36.8999 7.5 36.9999 7.3 36.9999 7.1C36.9999 6.9 36.8999 6.7 36.6999 6.6L31.6999 3.2C31.5999 3 31.4999 3 31.2999 3C31.1999 3 31.0999 3 30.9999 3.1C30.7999 3.2 30.5999 3.5 30.5999 3.7V4.9C26.5999 5 23.3999 8.3 23.3999 12.3V12.4C23.3999 12.7 23.5999 12.9 23.8999 13C23.9999 13 23.9999 13 24.0999 13C24.2999 13 24.4999 12.9 24.5999 12.7C25.8999 10.6 28.1999 9.3 30.6999 9.3L30.5999 10.5Z" fill="#FF8C00"/>
|
|
7
|
+
<path d="M36.3 23.6C35.8 23.2 35.4 22.8 34.8 22.4C33.4 21.5 31.8 21 30 21C29.6 21 29.2 21 28.8 21.1C28.4 21.1 28.1 21.2 27.7 21.3C27.3 21.4 27 21.5 26.6 21.7C26.3 21.8 26 21.9 25.8 22.1C25.7 22.1 25.6 22.2 25.5 22.3C24.9 22.7 24.3 23.1 23.8 23.6C23.4 24 23 24.4 22.7 24.9C22.3 25.5 22 26.1 21.7 26.8C21.7 26.9 21.6 27.1 21.6 27.2C21.2 28 21 29 21 30C21 30.3 21 30.5 21 30.8C21.1 31.6 21.2 32.3 21.5 33.1C21.9 34.1 22.4 35 23 35.8C24.7 37.8 27.1 39.1 29.9 39.1C33 39.1 35.7 37.6 37.3 35.2C38.3 33.7 38.9 32 38.9 30.1C39 27.5 38 25.2 36.3 23.6ZM35.6 27.1L31.2 33L30.2 34.3C30 34.8 29.5 35 29 35H28.9C28.4 35 27.9 34.8 27.6 34.4L26.3 33L24.5 31C24 30.5 24 29.6 24.6 29.1C24.9 28.9 25.2 28.7 25.5 28.7C25.9 28.7 26.2 28.9 26.5 29.2L28.7 31.6L28.8 31.7C28.9 31.7 28.9 31.7 28.9 31.6L33.4 25.5C33.7 25.1 34.1 25 34.5 25C34.8 25 35 25.1 35.3 25.3C35.9 25.7 36 26.5 35.6 27.1Z" fill="#1CA261"/>
|
|
8
|
+
</g>
|
|
9
|
+
<defs>
|
|
10
|
+
<clipPath id="clip0_847_51">
|
|
11
|
+
<rect width="39" height="39" fill="white"/>
|
|
12
|
+
</clipPath>
|
|
13
|
+
</defs>
|
|
14
|
+
</svg>
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
/** @jsxRuntime classic */
|
|
2
2
|
/** @jsx jsx */
|
|
3
|
-
import {
|
|
3
|
+
import { css, jsx } from '@emotion/core';
|
|
4
4
|
import AvatarDefault from "../../assets/avatar/default.svg";
|
|
5
|
-
import { ButtonIcon, ModalSample,
|
|
5
|
+
import { ButtonIcon, Image, ModalSample, Notify, Popover, Typography } from "./..";
|
|
6
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
6
7
|
import { getGlobal } from "../../global";
|
|
7
8
|
import PropTypes from 'prop-types';
|
|
8
9
|
import { forwardRef, Fragment, isValidElement, memo, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
9
|
-
import {
|
|
10
|
+
import { borderNone, borderRadius, boxContent, cursorInherit, cursorPointer, displayBlock, displayFlex, displayInlineFlex, displayNone, flexCol, itemsCenter, overflowHidden, parseMinWidth, parseWidthHeight, pd, positionAbsolute, positionRelative, userSelectNone, z } from "../../styles/general";
|
|
10
11
|
import { useTheme } from "../../theme";
|
|
11
|
-
import { classNames, isMobile
|
|
12
|
-
import { useIntersection } from "../../utils/intersectionObserver";
|
|
13
|
-
import OptionWrapper from "../others/option-wrapper";
|
|
12
|
+
import { classNames, isMobile } from "../../utils";
|
|
14
13
|
const {
|
|
15
14
|
colors: {
|
|
16
15
|
system: {
|
|
17
|
-
white
|
|
16
|
+
white: systemWhite
|
|
18
17
|
},
|
|
19
18
|
fill: {
|
|
20
19
|
tooltip: fillTooltip
|
|
@@ -22,19 +21,8 @@ const {
|
|
|
22
21
|
text: {
|
|
23
22
|
tooltip: textTooltip
|
|
24
23
|
}
|
|
25
|
-
}
|
|
26
|
-
spacing,
|
|
27
|
-
zIndex: zIndexCORE
|
|
24
|
+
}
|
|
28
25
|
} = useTheme();
|
|
29
|
-
const existed = {},
|
|
30
|
-
urlAvatar = {};
|
|
31
|
-
const blurKeyframe = keyframes`
|
|
32
|
-
0% { -webkit-filter: blur(4px);}
|
|
33
|
-
25% { -webkit-filter: blur(3px);}
|
|
34
|
-
50% { -webkit-filter: blur(2px);}
|
|
35
|
-
75% { -webkit-filter: blur(1px);}
|
|
36
|
-
100% { -webkit-filter: blur(0px);}
|
|
37
|
-
`;
|
|
38
26
|
const checkFileType = (type, matchType) => {
|
|
39
27
|
if (typeof matchType === 'object' && matchType instanceof RegExp) {
|
|
40
28
|
return matchType.test(type);
|
|
@@ -73,30 +61,22 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
73
61
|
width,
|
|
74
62
|
wrongTypeError
|
|
75
63
|
}, reference) => {
|
|
64
|
+
if (!reference) reference = useRef(null);
|
|
76
65
|
if (!defaultSrc) defaultSrc = AvatarDefault;
|
|
77
66
|
const ref = useRef(null);
|
|
78
67
|
const inputRef = useRef(null);
|
|
79
68
|
const avatarRef = useRef(null);
|
|
80
|
-
const
|
|
81
|
-
const [unique] = useState(randomString(6, {
|
|
82
|
-
allowNumber: false,
|
|
83
|
-
allowSymbol: false
|
|
84
|
-
}));
|
|
69
|
+
const notifyRef = useRef(null);
|
|
85
70
|
const [viewAvatar, setViewAvatar] = useState(false);
|
|
86
71
|
const [viewMoreInfo, setViewMoreInfo] = useState(false);
|
|
87
72
|
const [srcState, setSrcState] = useState(src);
|
|
88
|
-
const [isInView, setIsInView] = useState(false);
|
|
89
|
-
const [onLoaded, setOnLoaded] = useState(false);
|
|
90
|
-
useIntersection(ref, () => {
|
|
91
|
-
setIsInView(true);
|
|
92
|
-
});
|
|
93
73
|
const _ActionIconCSS = ActionIconCSS(actionIconWidth);
|
|
94
|
-
const _AvatarPreviewCSS = AvatarPreviewCSS(readOnly);
|
|
95
|
-
const _AvatarContainerCSS = AvatarContainerCSS(
|
|
74
|
+
const _AvatarPreviewCSS = AvatarPreviewCSS(readOnly || disabled);
|
|
75
|
+
const _AvatarContainerCSS = AvatarContainerCSS(_ActionIconCSS.name);
|
|
96
76
|
const _AvatarRootCSS = AvatarRootCSS(width, height, outlined);
|
|
97
77
|
const _isMobile = isMobile.any();
|
|
98
78
|
const triggerInput = e => {
|
|
99
|
-
if (e || !
|
|
79
|
+
if (e || !srcState) {
|
|
100
80
|
inputRef.current.click();
|
|
101
81
|
} else {
|
|
102
82
|
// on View
|
|
@@ -109,29 +89,22 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
109
89
|
const reader = new FileReader();
|
|
110
90
|
if (!checkFileType(file.type, matchType)) {
|
|
111
91
|
input.target.value = '';
|
|
112
|
-
|
|
113
|
-
description: wrongTypeError
|
|
114
|
-
});
|
|
92
|
+
notifyRef.current.instance.show(wrongTypeError);
|
|
115
93
|
return;
|
|
116
94
|
}
|
|
117
95
|
if (+maxSize && file.size > maxSize * 1024 ** 2) {
|
|
118
96
|
input.target.value = '';
|
|
119
|
-
|
|
120
|
-
description: maxSizeError
|
|
121
|
-
});
|
|
97
|
+
notifyRef.current.instance.show(maxSizeError);
|
|
122
98
|
return;
|
|
123
99
|
}
|
|
124
100
|
reader.onload = e => {
|
|
125
|
-
|
|
126
|
-
setSrcState(urlAvatar[unique]);
|
|
127
|
-
existed[unique] = true;
|
|
101
|
+
setSrcState(e.target.result);
|
|
128
102
|
};
|
|
129
103
|
reader.readAsDataURL(file);
|
|
130
104
|
!!onChange && onChange(input);
|
|
131
105
|
};
|
|
132
106
|
const onRemoveAvatar = () => {
|
|
133
107
|
setSrcState(null);
|
|
134
|
-
existed[unique] = false;
|
|
135
108
|
inputRef.current.value = '';
|
|
136
109
|
!!onRemove && onRemove();
|
|
137
110
|
};
|
|
@@ -152,32 +125,6 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
152
125
|
type: 'p1'
|
|
153
126
|
}, getGlobal('noDataText'));
|
|
154
127
|
};
|
|
155
|
-
const renderImage = () => {
|
|
156
|
-
const _image = jsx(Fragment, null, !onLoaded && jsx("img", {
|
|
157
|
-
src: defaultSrc,
|
|
158
|
-
alt: '',
|
|
159
|
-
style: {
|
|
160
|
-
objectFit: 'cover'
|
|
161
|
-
}
|
|
162
|
-
}), jsx("img", {
|
|
163
|
-
css: blurAnimationCSS,
|
|
164
|
-
src: srcState,
|
|
165
|
-
alt: srcState,
|
|
166
|
-
style: {
|
|
167
|
-
objectFit: 'cover'
|
|
168
|
-
},
|
|
169
|
-
onLoad: () => setOnLoaded(true)
|
|
170
|
-
}));
|
|
171
|
-
if (lazyLoading) {
|
|
172
|
-
return isInView ? _image : jsx("img", {
|
|
173
|
-
src: defaultSrc,
|
|
174
|
-
alt: '',
|
|
175
|
-
style: {
|
|
176
|
-
objectFit: 'cover'
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
} else return _image;
|
|
180
|
-
};
|
|
181
128
|
const showMoreInfo = () => {
|
|
182
129
|
if (hoverAble) setViewMoreInfo(true);
|
|
183
130
|
};
|
|
@@ -201,22 +148,11 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
201
148
|
};
|
|
202
149
|
useEffect(() => {
|
|
203
150
|
if (src) {
|
|
204
|
-
|
|
205
|
-
inputRef.current.value = '';
|
|
206
|
-
const img = document.createElement('img');
|
|
207
|
-
urlAvatar[unique] = src;
|
|
208
|
-
img.src = src;
|
|
209
|
-
img.alt = '';
|
|
210
|
-
img.onerror = () => {
|
|
211
|
-
setSrcState(defaultSrc);
|
|
212
|
-
existed[unique] = false;
|
|
213
|
-
};
|
|
214
|
-
img.onload = () => {
|
|
215
|
-
setSrcState(src);
|
|
216
|
-
existed[unique] = true;
|
|
217
|
-
};
|
|
218
|
-
}
|
|
151
|
+
setSrcState(src);
|
|
219
152
|
}
|
|
153
|
+
return () => {
|
|
154
|
+
setSrcState(defaultSrc);
|
|
155
|
+
};
|
|
220
156
|
}, [src]);
|
|
221
157
|
useImperativeHandle(reference, () => {
|
|
222
158
|
const currentRef = ref.current || {};
|
|
@@ -230,11 +166,9 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
230
166
|
});
|
|
231
167
|
return useMemo(() => {
|
|
232
168
|
return jsx(Fragment, null, jsx("div", {
|
|
233
|
-
css: _AvatarContainerCSS
|
|
234
|
-
ref: ref,
|
|
235
|
-
id: unique,
|
|
236
|
-
className: classNames(disabled && 'disabled')
|
|
169
|
+
css: _AvatarContainerCSS
|
|
237
170
|
}, jsx("div", {
|
|
171
|
+
ref: ref,
|
|
238
172
|
css: _AvatarRootCSS,
|
|
239
173
|
className: classNames('DGN-UI-Avatar', className),
|
|
240
174
|
style: style,
|
|
@@ -247,14 +181,21 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
247
181
|
onChange: onChangeAvatar,
|
|
248
182
|
disabled: disabled
|
|
249
183
|
}), jsx("div", {
|
|
184
|
+
ref: avatarRef,
|
|
250
185
|
css: _AvatarPreviewCSS,
|
|
251
186
|
onClick: _onClick,
|
|
252
|
-
ref: avatarRef,
|
|
253
187
|
onMouseEnter: _onMouseEnter,
|
|
254
188
|
onMouseLeave: _onMouseLeave,
|
|
255
189
|
tabIndex: "-1",
|
|
256
190
|
onBlur: closeMoreInfo
|
|
257
|
-
},
|
|
191
|
+
}, jsx(Image, {
|
|
192
|
+
circular: true,
|
|
193
|
+
defaultSrc: defaultSrc,
|
|
194
|
+
src: srcState,
|
|
195
|
+
width: '100%',
|
|
196
|
+
height: '100%',
|
|
197
|
+
lazyLoading: lazyLoading
|
|
198
|
+
}))), allowEdit && !readOnly && !disabled ? jsx("span", {
|
|
258
199
|
css: _ActionIconCSS
|
|
259
200
|
}, jsx(ButtonIcon, {
|
|
260
201
|
viewType: 'ghost',
|
|
@@ -263,7 +204,7 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
263
204
|
height: actionIconHeight,
|
|
264
205
|
className: 'icon-edit',
|
|
265
206
|
onClick: triggerInput
|
|
266
|
-
}), clearAble && srcState
|
|
207
|
+
}), clearAble && srcState ? jsx(ButtonIcon, {
|
|
267
208
|
viewType: 'ghost',
|
|
268
209
|
name: 'Delete',
|
|
269
210
|
width: actionIconWidth,
|
|
@@ -273,68 +214,55 @@ const Avatar = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
273
214
|
style: {
|
|
274
215
|
marginTop: '8px'
|
|
275
216
|
}
|
|
276
|
-
}))), jsx(ModalSample, {
|
|
217
|
+
}) : null) : null), jsx(ModalSample, {
|
|
277
218
|
open: viewAvatar,
|
|
278
219
|
onClose: () => setViewAvatar(false),
|
|
279
220
|
width: 'max-content'
|
|
280
|
-
}, jsx(
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
maxWidth: '100%',
|
|
287
|
-
margin: 'auto',
|
|
288
|
-
display: 'block'
|
|
289
|
-
}
|
|
290
|
-
})), hoverAble && jsx(Popover, {
|
|
221
|
+
}, jsx(Image, {
|
|
222
|
+
defaultSrc: defaultSrc,
|
|
223
|
+
src: srcState,
|
|
224
|
+
width: '100%',
|
|
225
|
+
height: '100%'
|
|
226
|
+
})), hoverAble ? jsx(Popover, {
|
|
291
227
|
arrow: true,
|
|
292
228
|
open: viewMoreInfo,
|
|
293
229
|
pressESCToClose: false,
|
|
294
230
|
bgColor: fillTooltip,
|
|
295
231
|
anchor: avatarRef,
|
|
296
232
|
fullScreen: false,
|
|
297
|
-
width: 'max-content',
|
|
298
233
|
direction: direction
|
|
299
234
|
}, jsx("div", {
|
|
300
235
|
css: MoreInfoCSS
|
|
301
|
-
}, typeof data === 'function' ? data() : renderData()))
|
|
302
|
-
ref:
|
|
303
|
-
|
|
236
|
+
}, typeof data === 'function' ? data() : renderData())) : null, jsx(Notify, {
|
|
237
|
+
ref: notifyRef,
|
|
238
|
+
progressing: true,
|
|
239
|
+
autoDisappear: true,
|
|
240
|
+
color: 'danger'
|
|
304
241
|
}));
|
|
305
|
-
}, [actionIconHeight, actionIconWidth, allowEdit, clearAble, data, defaultSrc, direction, disabled, height, hoverAble, lazyLoading, matchType, maxSize, maxSizeError, outlined, readOnly, width,
|
|
242
|
+
}, [actionIconHeight, actionIconWidth, allowEdit, clearAble, data, defaultSrc, direction, disabled, height, hoverAble, lazyLoading, matchType, maxSize, maxSizeError, outlined, readOnly, width, srcState, viewAvatar, viewMoreInfo]);
|
|
306
243
|
}));
|
|
307
244
|
const ActionIconCSS = actionIconWidth => css`
|
|
245
|
+
${displayFlex};
|
|
308
246
|
${flexCol};
|
|
309
247
|
${positionAbsolute};
|
|
248
|
+
${parseMinWidth(actionIconWidth)};
|
|
310
249
|
right: ${-actionIconWidth}px;
|
|
311
|
-
min-width: ${actionIconWidth}px;
|
|
312
250
|
transition: opacity 0.5s;
|
|
313
251
|
opacity: 0;
|
|
314
|
-
|
|
252
|
+
${z(2)};
|
|
315
253
|
`;
|
|
316
|
-
const AvatarPreviewCSS =
|
|
254
|
+
const AvatarPreviewCSS = isDisabled => css`
|
|
317
255
|
${displayBlock};
|
|
318
256
|
${positionRelative};
|
|
319
257
|
${overflowHidden};
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
cursor: ${readOnly ? 'initial' : 'pointer'};
|
|
258
|
+
${parseWidthHeight('100%')};
|
|
259
|
+
${borderRadius('50%')};
|
|
260
|
+
${isDisabled ? cursorInherit : cursorPointer};
|
|
324
261
|
`;
|
|
325
|
-
const AvatarContainerCSS =
|
|
262
|
+
const AvatarContainerCSS = ActionIconCSSName => css`
|
|
326
263
|
${displayInlineFlex};
|
|
327
264
|
${positionRelative};
|
|
328
265
|
${itemsCenter};
|
|
329
|
-
&.disabled {
|
|
330
|
-
.css-${AvatarPreviewCSSName} {
|
|
331
|
-
${pointerEventsNone}
|
|
332
|
-
cursor: inherit;
|
|
333
|
-
}
|
|
334
|
-
.css-${ActionIconCSSName} {
|
|
335
|
-
display: none !important;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
266
|
&:hover {
|
|
339
267
|
.css-${ActionIconCSSName} {
|
|
340
268
|
opacity: 1;
|
|
@@ -347,25 +275,18 @@ const AvatarRootCSS = (width, height, outlined) => css`
|
|
|
347
275
|
${overflowHidden};
|
|
348
276
|
${userSelectNone};
|
|
349
277
|
${borderNone};
|
|
278
|
+
${boxContent};
|
|
350
279
|
${parseWidthHeight(width, height)};
|
|
351
|
-
|
|
352
|
-
border
|
|
353
|
-
box-sizing: content-box;
|
|
280
|
+
${borderRadius('50%')};
|
|
281
|
+
border: ${typeof outlined === 'boolean' && outlined ? `1px solid ${systemWhite}` : outlined};
|
|
354
282
|
input {
|
|
355
283
|
${displayNone};
|
|
356
284
|
}
|
|
357
|
-
img {
|
|
358
|
-
width: 100%;
|
|
359
|
-
height: 100%;
|
|
360
|
-
}
|
|
361
285
|
`;
|
|
362
286
|
const MoreInfoCSS = css`
|
|
363
287
|
${displayBlock};
|
|
364
288
|
${positionRelative};
|
|
365
|
-
|
|
366
|
-
`;
|
|
367
|
-
const blurAnimationCSS = css`
|
|
368
|
-
animation: ${blurKeyframe} 1s ease;
|
|
289
|
+
${pd([2])};
|
|
369
290
|
`;
|
|
370
291
|
Avatar.defaultProps = {
|
|
371
292
|
actionIconHeight: 24,
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/** @jsxRuntime classic */
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { css, jsx } from '@emotion/core';
|
|
4
|
+
import { ButtonIcon, Typography } from "./..";
|
|
5
|
+
import { Icon } from "../../icons/effect";
|
|
6
|
+
import OptionWrapper from "../others/option-wrapper";
|
|
7
|
+
import PropTypes from 'prop-types';
|
|
8
|
+
import React, { forwardRef, memo, useImperativeHandle, useMemo, useRef } from 'react';
|
|
9
|
+
import { displayFlex, flexWrap, itemsCenter, mg, mgx, pd, userSelectNone } from "../../styles/general";
|
|
10
|
+
import { classNames } from "../../utils";
|
|
11
|
+
const insertSeparators = (items, separator) => {
|
|
12
|
+
return items.reduce((acc, current, index) => {
|
|
13
|
+
if (index < items.length - 1) {
|
|
14
|
+
acc = acc.concat(current, jsx("li", {
|
|
15
|
+
css: BreadcrumbSeparatorCSS,
|
|
16
|
+
"aria-hidden": true,
|
|
17
|
+
key: `separator-${index}`,
|
|
18
|
+
className: 'DGN-UI-Breadcrumb-separator'
|
|
19
|
+
}, separator));
|
|
20
|
+
} else {
|
|
21
|
+
acc.push(current);
|
|
22
|
+
}
|
|
23
|
+
return acc;
|
|
24
|
+
}, []);
|
|
25
|
+
};
|
|
26
|
+
const Breadcrumb = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
27
|
+
action = {},
|
|
28
|
+
children,
|
|
29
|
+
className,
|
|
30
|
+
data,
|
|
31
|
+
id,
|
|
32
|
+
itemsAfterCollapse,
|
|
33
|
+
itemsBeforeCollapse,
|
|
34
|
+
maxItems,
|
|
35
|
+
separator,
|
|
36
|
+
style
|
|
37
|
+
}, reference) => {
|
|
38
|
+
if (!reference) reference = useRef(null);
|
|
39
|
+
const ref = useRef(null);
|
|
40
|
+
const [expanded, setExpanded] = React.useState(false);
|
|
41
|
+
useImperativeHandle(reference, () => {
|
|
42
|
+
const currentRef = ref.current || {};
|
|
43
|
+
currentRef.element = ref.current;
|
|
44
|
+
const _instance = {
|
|
45
|
+
...action
|
|
46
|
+
}; // methods
|
|
47
|
+
_instance.__proto__ = {}; // hidden methods
|
|
48
|
+
currentRef.instance = _instance;
|
|
49
|
+
return currentRef;
|
|
50
|
+
});
|
|
51
|
+
const renderItemsBeforeAndAfter = allItems => {
|
|
52
|
+
const handleClickExpand = () => {
|
|
53
|
+
setExpanded(true);
|
|
54
|
+
};
|
|
55
|
+
if (itemsBeforeCollapse + itemsAfterCollapse >= allItems.length) {
|
|
56
|
+
return allItems;
|
|
57
|
+
}
|
|
58
|
+
return [...allItems.slice(0, itemsBeforeCollapse), jsx(ButtonIcon, {
|
|
59
|
+
key: "ellipsis",
|
|
60
|
+
name: 'MoreHoriz',
|
|
61
|
+
width: 24,
|
|
62
|
+
height: 16,
|
|
63
|
+
onClick: handleClickExpand
|
|
64
|
+
}), ...allItems.slice(allItems.length - itemsAfterCollapse, allItems.length)];
|
|
65
|
+
};
|
|
66
|
+
const allItems = data !== null && data !== void 0 && data.length ? data.map((item, idx) => {
|
|
67
|
+
var _data$onClick;
|
|
68
|
+
return jsx("li", {
|
|
69
|
+
className: 'DGN-UI-Breadcrumb-li',
|
|
70
|
+
key: `child-${idx}`
|
|
71
|
+
}, jsx(Typography, {
|
|
72
|
+
type: (data === null || data === void 0 ? void 0 : data.length) === idx + 1 ? 'h5' : 'p3',
|
|
73
|
+
mapping: 'a',
|
|
74
|
+
color: 'text.sub',
|
|
75
|
+
href: data === null || data === void 0 ? void 0 : data.href,
|
|
76
|
+
onClick: data === null || data === void 0 ? void 0 : (_data$onClick = data.onClick) === null || _data$onClick === void 0 ? void 0 : _data$onClick.call(data)
|
|
77
|
+
}, item === null || item === void 0 ? void 0 : item.name));
|
|
78
|
+
}) : React.Children.toArray(children).filter(child => {
|
|
79
|
+
return /*#__PURE__*/React.isValidElement(child);
|
|
80
|
+
}).map((child, idx) => jsx("li", {
|
|
81
|
+
className: 'DGN-UI-Breadcrumb-li',
|
|
82
|
+
key: `child-${idx}`
|
|
83
|
+
}, child));
|
|
84
|
+
return useMemo(() => {
|
|
85
|
+
return jsx("nav", {
|
|
86
|
+
ref: ref,
|
|
87
|
+
id: id,
|
|
88
|
+
style: style,
|
|
89
|
+
className: classNames('DGN-UI-Breadcrumb', className)
|
|
90
|
+
}, jsx("ol", {
|
|
91
|
+
css: BreadcrumbOlCSS,
|
|
92
|
+
className: 'DGN-UI-Breadcrumb-ol'
|
|
93
|
+
}, insertSeparators(expanded || maxItems && allItems.length <= maxItems ? allItems : renderItemsBeforeAndAfter(allItems), separator)));
|
|
94
|
+
}, [children, className, data, id, itemsAfterCollapse, itemsBeforeCollapse, maxItems, separator, style, expanded]);
|
|
95
|
+
}));
|
|
96
|
+
const BreadcrumbOlCSS = css`
|
|
97
|
+
${displayFlex};
|
|
98
|
+
${flexWrap};
|
|
99
|
+
${itemsCenter};
|
|
100
|
+
${pd(0)};
|
|
101
|
+
${mg(0)};
|
|
102
|
+
list-style: none;
|
|
103
|
+
`;
|
|
104
|
+
const BreadcrumbSeparatorCSS = css`
|
|
105
|
+
${displayFlex};
|
|
106
|
+
${userSelectNone};
|
|
107
|
+
${mgx([2])};
|
|
108
|
+
`;
|
|
109
|
+
Breadcrumb.defaultProps = {
|
|
110
|
+
className: '',
|
|
111
|
+
itemsBeforeCollapse: 1,
|
|
112
|
+
itemsAfterCollapse: 1,
|
|
113
|
+
maxItems: 8,
|
|
114
|
+
separator: jsx(Icon, {
|
|
115
|
+
name: 'ArrowRight',
|
|
116
|
+
width: 16,
|
|
117
|
+
height: 16
|
|
118
|
+
}),
|
|
119
|
+
style: {}
|
|
120
|
+
};
|
|
121
|
+
Breadcrumb.propTypes = {
|
|
122
|
+
/** The content of the component. */
|
|
123
|
+
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
|
|
124
|
+
/** Class for component. */
|
|
125
|
+
className: PropTypes.string,
|
|
126
|
+
/** Class for component. */
|
|
127
|
+
data: PropTypes.PropTypes.arrayOf(PropTypes.shape({
|
|
128
|
+
name: PropTypes.string,
|
|
129
|
+
href: PropTypes.string,
|
|
130
|
+
onClick: PropTypes.func
|
|
131
|
+
})),
|
|
132
|
+
/** Class for component. */
|
|
133
|
+
itemsBeforeCollapse: PropTypes.number,
|
|
134
|
+
/** Class for component. */
|
|
135
|
+
itemsAfterCollapse: PropTypes.number,
|
|
136
|
+
/** Class for component. */
|
|
137
|
+
maxItems: PropTypes.number,
|
|
138
|
+
/** Custom separator node. */
|
|
139
|
+
separator: PropTypes.node,
|
|
140
|
+
/** Style inline of component. */
|
|
141
|
+
style: PropTypes.object
|
|
142
|
+
};
|
|
143
|
+
export { Breadcrumb };
|
|
144
|
+
export default OptionWrapper(Breadcrumb);
|
|
@@ -124,6 +124,7 @@ const ButtonIcon = /*#__PURE__*/memo( /*#__PURE__*/forwardRef(({
|
|
|
124
124
|
css: [_ButtonRootCSS, _ButtonSizeCSS, disabled && ButtonDisabledCSS],
|
|
125
125
|
ref: ref,
|
|
126
126
|
id: id,
|
|
127
|
+
disabled: disabled,
|
|
127
128
|
style: style,
|
|
128
129
|
onClick: _onClick,
|
|
129
130
|
className: classNames('DGN-UI-ButtonIcon', viewType, getClassNameFromColor(colorProp), size, loading && 'button-icon--loading', className)
|
|
@@ -1301,7 +1301,8 @@ Attachment.defaultProps = {
|
|
|
1301
1301
|
maxSize: getGlobal(['errorDefault', 'maxSize']),
|
|
1302
1302
|
fileType: getGlobal(['errorDefault', 'fileType']),
|
|
1303
1303
|
existingFile: getGlobal(['errorDefault', 'existingFile'])
|
|
1304
|
-
}
|
|
1304
|
+
},
|
|
1305
|
+
viewType: 'detail'
|
|
1305
1306
|
};
|
|
1306
1307
|
Attachment.propTypes = {
|
|
1307
1308
|
/** File types that can be accepted. */
|