@ktnpm_devops/react-component 0.23.0 → 0.25.0
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 +1 -1
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts +1 -1
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts.map +1 -1
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.types.d.ts +6 -0
- package/dist/composites/DatePickerDropdown/DatePickerDropdown.types.d.ts.map +1 -1
- package/dist/composites/DatePickerDropdown/calendarDates.d.ts +9 -0
- package/dist/composites/DatePickerDropdown/calendarDates.d.ts.map +1 -0
- package/dist/constants.d.ts +6 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/data/DataTableCard/DataTableCard.d.ts +13 -0
- package/dist/data/DataTableCard/DataTableCard.d.ts.map +1 -0
- package/dist/data/DataTableCard/DataTableCard.types.d.ts +41 -0
- package/dist/data/DataTableCard/DataTableCard.types.d.ts.map +1 -0
- package/dist/data/DataTableCard/index.d.ts +3 -0
- package/dist/data/DataTableCard/index.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerBody.d.ts +8 -0
- package/dist/data/LiveExplorerTable/LiveExplorerBody.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerDataRow.d.ts +5 -0
- package/dist/data/LiveExplorerTable/LiveExplorerDataRow.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerHeaderCell.d.ts +8 -0
- package/dist/data/LiveExplorerTable/LiveExplorerHeaderCell.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/LiveExplorerTable.d.ts +2 -2
- package/dist/data/LiveExplorerTable/LiveExplorerTable.d.ts.map +1 -1
- package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts +122 -25
- package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts.map +1 -1
- package/dist/data/LiveExplorerTable/columnClasses.d.ts +5 -0
- package/dist/data/LiveExplorerTable/columnClasses.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/groupRows.d.ts +8 -0
- package/dist/data/LiveExplorerTable/groupRows.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/groupRows.test.d.ts +2 -0
- package/dist/data/LiveExplorerTable/groupRows.test.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/index.d.ts +1 -1
- package/dist/data/LiveExplorerTable/index.d.ts.map +1 -1
- package/dist/data/LiveExplorerTable/nextSortState.d.ts +8 -0
- package/dist/data/LiveExplorerTable/nextSortState.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/nextSortState.test.d.ts +2 -0
- package/dist/data/LiveExplorerTable/nextSortState.test.d.ts.map +1 -0
- package/dist/data/LiveExplorerTable/useColumnResize.d.ts +8 -0
- package/dist/data/LiveExplorerTable/useColumnResize.d.ts.map +1 -0
- package/dist/index.cjs +34 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +34 -32
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +2 -11
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +2 -11
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +18 -18
- package/dist/index101.js +19 -19
- package/dist/index102.cjs +34 -10
- package/dist/index102.cjs.map +1 -1
- package/dist/index102.js +34 -10
- package/dist/index102.js.map +1 -1
- package/dist/index103.cjs +25 -64
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +25 -64
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +1 -4
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +1 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +19 -16
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +20 -17
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +17 -2
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +18 -3
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +34 -16
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +34 -16
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +43 -6
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +42 -5
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +24 -24
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +23 -23
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +34 -68
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +35 -69
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +9 -34
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +8 -33
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +10 -6
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +9 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +20 -40
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +19 -39
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +14 -85
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +13 -84
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +10 -51
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +9 -50
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +62 -14
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +63 -15
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +16 -13
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +17 -14
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +70 -6
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +69 -5
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +50 -24
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +49 -23
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +6 -19
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +5 -18
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +28 -7
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +27 -6
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +82 -4
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +83 -5
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +3 -30
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +3 -30
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +9 -9
- package/dist/index124.js +10 -10
- package/dist/index125.cjs +2 -11
- package/dist/index125.cjs.map +1 -1
- package/dist/index125.js +2 -11
- package/dist/index125.js.map +1 -1
- package/dist/index126.cjs +19 -52
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +19 -52
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +28 -16
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +28 -16
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +13 -19
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +14 -20
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +30 -15
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +30 -15
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index131.cjs +15 -36
- package/dist/index131.cjs.map +1 -1
- package/dist/index131.js +15 -36
- package/dist/index131.js.map +1 -1
- package/dist/index132.cjs +36 -51
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +36 -51
- package/dist/index132.js.map +1 -1
- package/dist/index133.cjs +14 -14
- package/dist/index133.js +15 -15
- package/dist/index134.cjs +21 -34
- package/dist/index134.cjs.map +1 -1
- package/dist/index134.js +20 -33
- package/dist/index134.js.map +1 -1
- package/dist/index135.cjs +38 -1162
- package/dist/index135.cjs.map +1 -1
- package/dist/index135.js +37 -1162
- package/dist/index135.js.map +1 -1
- package/dist/index136.cjs +85 -1568
- package/dist/index136.cjs.map +1 -1
- package/dist/index136.js +84 -1568
- package/dist/index136.js.map +1 -1
- package/dist/index137.cjs +40 -49
- package/dist/index137.cjs.map +1 -1
- package/dist/index137.js +39 -48
- package/dist/index137.js.map +1 -1
- package/dist/index138.cjs +15 -75
- package/dist/index138.cjs.map +1 -1
- package/dist/index138.js +14 -74
- package/dist/index138.js.map +1 -1
- package/dist/index139.cjs +87 -0
- package/dist/index139.cjs.map +1 -0
- package/dist/index139.js +87 -0
- package/dist/index139.js.map +1 -0
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +9 -0
- package/dist/index140.cjs.map +1 -0
- package/dist/index140.js +9 -0
- package/dist/index140.js.map +1 -0
- package/dist/index141.cjs +51 -0
- package/dist/index141.cjs.map +1 -0
- package/dist/index141.js +51 -0
- package/dist/index141.js.map +1 -0
- package/dist/index142.cjs +78 -0
- package/dist/index142.cjs.map +1 -0
- package/dist/index142.js +78 -0
- package/dist/index142.js.map +1 -0
- package/dist/index143.cjs +1166 -0
- package/dist/index143.cjs.map +1 -0
- package/dist/index143.js +1167 -0
- package/dist/index143.js.map +1 -0
- package/dist/index144.cjs +1578 -0
- package/dist/index144.cjs.map +1 -0
- package/dist/index144.js +1579 -0
- package/dist/index144.js.map +1 -0
- package/dist/index145.cjs +10 -0
- package/dist/index145.cjs.map +1 -0
- package/dist/index145.js +10 -0
- package/dist/index145.js.map +1 -0
- package/dist/index146.cjs +15 -0
- package/dist/index146.cjs.map +1 -0
- package/dist/index146.js +15 -0
- package/dist/index146.js.map +1 -0
- package/dist/index147.cjs +51 -0
- package/dist/index147.cjs.map +1 -0
- package/dist/index147.js +51 -0
- package/dist/index147.js.map +1 -0
- package/dist/index148.cjs +37 -0
- package/dist/index148.cjs.map +1 -0
- package/dist/index148.js +37 -0
- package/dist/index148.js.map +1 -0
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +3 -3
- package/dist/index16.js +3 -3
- package/dist/index17.cjs +2 -2
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +2 -2
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +2 -2
- package/dist/index19.js +2 -2
- package/dist/index20.cjs +2 -2
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +2 -2
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +2 -2
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +3 -3
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +4 -4
- package/dist/index24.js +4 -4
- package/dist/index25.cjs +4 -4
- package/dist/index25.js +4 -4
- package/dist/index26.cjs +4 -4
- package/dist/index26.js +4 -4
- package/dist/index27.cjs +2 -1
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +2 -1
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +58 -184
- package/dist/index29.cjs.map +1 -1
- package/dist/index29.js +58 -184
- package/dist/index29.js.map +1 -1
- package/dist/index30.cjs +161 -21
- package/dist/index30.cjs.map +1 -1
- package/dist/index30.js +162 -22
- package/dist/index30.js.map +1 -1
- package/dist/index31.cjs +20 -143
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +21 -144
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +126 -136
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +127 -137
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +135 -67
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +134 -66
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +83 -98
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +85 -100
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +100 -6
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +101 -7
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +7 -140
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +9 -142
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +108 -54
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +110 -56
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +49 -13
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +51 -15
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +20 -43
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +21 -44
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +39 -304
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +40 -305
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +302 -28
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +304 -30
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +30 -113
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +31 -114
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +107 -58
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +108 -59
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +66 -76
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +67 -77
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +76 -57
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +78 -59
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +56 -150
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +58 -152
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +128 -73
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +123 -68
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +94 -68
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +96 -70
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +71 -7
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +72 -8
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +8 -17
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +9 -18
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +15 -75
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +16 -76
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +66 -181
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +68 -183
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +180 -52
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +181 -53
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +61 -111
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +62 -112
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +111 -44
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +112 -45
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +47 -6
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +48 -7
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +6 -145
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +7 -146
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +144 -7
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +146 -9
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +6 -15
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +6 -15
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +15 -64
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +17 -66
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +67 -15
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +66 -14
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +4 -28
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +3 -27
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +10 -24
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +9 -23
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +15 -18
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +15 -18
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +22 -22
- package/dist/index65.js +22 -22
- package/dist/index66.cjs +19 -4
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +18 -3
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +18 -10
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +17 -9
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +151 -19
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +149 -17
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +18 -15
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +18 -15
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +19 -145
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +17 -143
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +22 -37
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +22 -37
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +22 -134
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +21 -133
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +25 -12
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +24 -11
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +22 -25
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +23 -26
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +9 -113
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +9 -113
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +40 -25
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +41 -26
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +116 -34
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +115 -33
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +25 -40
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +26 -41
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +70 -32
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +70 -32
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +57 -43
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +56 -42
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +15 -24
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +14 -23
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +132 -38
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +132 -38
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +46 -9
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +45 -8
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +9 -10
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +8 -9
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +34 -20
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +33 -19
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +52 -14
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +51 -13
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +33 -10
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +33 -10
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +8 -62
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +9 -63
- package/dist/index88.js.map +1 -1
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +1 -1
- package/dist/index93.cjs +10 -48
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +9 -47
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +45 -15
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +45 -15
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +18 -37
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +17 -36
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +36 -39
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +35 -38
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +6 -92
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +5 -91
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +64 -34
- package/dist/index98.cjs.map +1 -1
- package/dist/index98.js +64 -34
- package/dist/index98.js.map +1 -1
- package/dist/index99.cjs +17 -6
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +16 -5
- package/dist/index99.js.map +1 -1
- package/dist/labels/ComponentLabels.types.d.ts +2 -0
- package/dist/labels/ComponentLabels.types.d.ts.map +1 -1
- package/dist/labels/defaults.d.ts.map +1 -1
- package/dist/style.css +382 -214
- package/package.json +1 -1
package/dist/index79.js
CHANGED
|
@@ -1,38 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { useState, useRef, useLayoutEffect } from "react";
|
|
2
|
+
import { flushSync } from "react-dom";
|
|
3
|
+
import { getClippingRect } from "./index141.js";
|
|
4
|
+
import { DEFAULT_PLACEMENT, resolvePanelPlacement, samePlacement } from "./index142.js";
|
|
5
|
+
function restoreAttribute(el, name, value) {
|
|
6
|
+
if (value === null) el.removeAttribute(name);
|
|
7
|
+
else el.setAttribute(name, value);
|
|
8
|
+
}
|
|
9
|
+
function measurePanel(panel, anchor, side) {
|
|
10
|
+
const savedStyle = panel.getAttribute("style");
|
|
11
|
+
const savedSide = panel.getAttribute("data-side");
|
|
12
|
+
panel.removeAttribute("style");
|
|
13
|
+
panel.setAttribute("data-side", side);
|
|
14
|
+
const rect = panel.getBoundingClientRect();
|
|
15
|
+
restoreAttribute(panel, "style", savedStyle);
|
|
16
|
+
restoreAttribute(panel, "data-side", savedSide);
|
|
17
|
+
const gap = side === "top" ? anchor.top - rect.bottom : rect.top - anchor.bottom;
|
|
18
|
+
return { width: rect.width, height: rect.height, gap: Math.max(gap, 0) };
|
|
19
|
+
}
|
|
20
|
+
const isOutside = (placement) => {
|
|
21
|
+
var _a;
|
|
22
|
+
return ((_a = placement == null ? void 0 : placement.style) == null ? void 0 : _a.position) === "fixed";
|
|
8
23
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
[Math.min(...latitudes), Math.min(...longitudes)],
|
|
15
|
-
[Math.max(...latitudes), Math.max(...longitudes)]
|
|
16
|
-
];
|
|
17
|
-
};
|
|
18
|
-
const normalizePoints = (points, maxPoints) => {
|
|
19
|
-
const usable = [];
|
|
20
|
-
points.forEach((point, sourceIndex) => {
|
|
21
|
-
if (hasUsableCoordinates(point)) usable.push({ point, sourceIndex });
|
|
24
|
+
function usePanelPlacement(anchorRef, panelRef, isOpen, onAnchorHidden) {
|
|
25
|
+
const [placement, setPlacement] = useState(DEFAULT_PLACEMENT);
|
|
26
|
+
const onAnchorHiddenRef = useRef(onAnchorHidden);
|
|
27
|
+
useLayoutEffect(() => {
|
|
28
|
+
onAnchorHiddenRef.current = onAnchorHidden;
|
|
22
29
|
});
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
drawn: drawn.length,
|
|
30
|
-
skipped: points.length - usable.length,
|
|
31
|
-
dropped: usable.length - drawn.length
|
|
30
|
+
useLayoutEffect(() => {
|
|
31
|
+
const anchor = anchorRef.current;
|
|
32
|
+
const panel = panelRef.current;
|
|
33
|
+
if (!isOpen || !anchor || !panel) {
|
|
34
|
+
setPlacement(DEFAULT_PLACEMENT);
|
|
35
|
+
return;
|
|
32
36
|
}
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
let current = null;
|
|
38
|
+
const measure = () => {
|
|
39
|
+
const anchorRect = anchor.getBoundingClientRect();
|
|
40
|
+
const next = resolvePanelPlacement({
|
|
41
|
+
anchor: anchorRect,
|
|
42
|
+
panel: measurePanel(panel, anchorRect, (current == null ? void 0 : current.side) ?? "bottom"),
|
|
43
|
+
box: getClippingRect(anchor),
|
|
44
|
+
currentSide: (current == null ? void 0 : current.side) ?? null
|
|
45
|
+
});
|
|
46
|
+
current = next;
|
|
47
|
+
setPlacement((prev) => samePlacement(prev, next) ? prev : next);
|
|
48
|
+
};
|
|
49
|
+
const onScroll = (event) => {
|
|
50
|
+
var _a;
|
|
51
|
+
if (!isOutside(current) || panel.contains(event.target)) return;
|
|
52
|
+
const { vertical } = getClippingRect(anchor);
|
|
53
|
+
const rect = anchor.getBoundingClientRect();
|
|
54
|
+
if (rect.bottom <= vertical.top || rect.top >= vertical.bottom) {
|
|
55
|
+
(_a = onAnchorHiddenRef.current) == null ? void 0 : _a.call(onAnchorHiddenRef);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
flushSync(measure);
|
|
59
|
+
};
|
|
60
|
+
measure();
|
|
61
|
+
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(measure);
|
|
62
|
+
observer == null ? void 0 : observer.observe(panel);
|
|
63
|
+
window.addEventListener("resize", measure);
|
|
64
|
+
window.addEventListener("scroll", onScroll, { capture: true, passive: true });
|
|
65
|
+
return () => {
|
|
66
|
+
observer == null ? void 0 : observer.disconnect();
|
|
67
|
+
window.removeEventListener("resize", measure);
|
|
68
|
+
window.removeEventListener("scroll", onScroll, { capture: true });
|
|
69
|
+
};
|
|
70
|
+
}, [anchorRef, panelRef, isOpen]);
|
|
71
|
+
return placement;
|
|
72
|
+
}
|
|
35
73
|
export {
|
|
36
|
-
|
|
74
|
+
usePanelPlacement
|
|
37
75
|
};
|
|
38
76
|
//# sourceMappingURL=index79.js.map
|
package/dist/index79.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index79.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index79.js","sources":["../src/hooks/usePanelPlacement.ts"],"sourcesContent":["import { useLayoutEffect, useRef, useState, type RefObject } from 'react';\nimport { flushSync } from 'react-dom';\nimport { getClippingRect } from '../utils/clippingRect';\nimport { DEFAULT_PLACEMENT, resolvePanelPlacement, samePlacement } from '../utils/panelPlacement';\nimport type {\n AnchorRect,\n PanelPlacement,\n PanelSide,\n PanelSize,\n} from '../utils/panelPlacement.types';\n\nexport type { PanelAlign, PanelPlacement, PanelSide } from '../utils/panelPlacement.types';\n\n/**\n * Measures `panel` in its default layout, as if no placement style were applied: the\n * decision must not depend on the placement it produced (a height limit would make the\n * panel \"fit\", a fixed position would change its shrink-to-fit width). Synchronous, so\n * no frame is painted with the style cleared.\n */\nfunction restoreAttribute(el: HTMLElement, name: string, value: string | null) {\n if (value === null) el.removeAttribute(name);\n else el.setAttribute(name, value);\n}\n\nfunction measurePanel(panel: HTMLElement, anchor: AnchorRect, side: PanelSide): PanelSize {\n const savedStyle = panel.getAttribute('style');\n const savedSide = panel.getAttribute('data-side');\n panel.removeAttribute('style');\n panel.setAttribute('data-side', side);\n const rect = panel.getBoundingClientRect();\n restoreAttribute(panel, 'style', savedStyle);\n restoreAttribute(panel, 'data-side', savedSide);\n\n const gap = side === 'top' ? anchor.top - rect.bottom : rect.top - anchor.bottom;\n return { width: rect.width, height: rect.height, gap: Math.max(gap, 0) };\n}\n\nconst isOutside = (placement: PanelPlacement | null) => placement?.style?.position === 'fixed';\n\n/**\n * Chooses where a dropdown panel opens so the boxes that clip it never cut it off: the\n * horizontal edge it aligns to, the side of the trigger it opens towards, a height limit\n * when it fits nowhere, and a viewport position when it must leave its clipping box.\n *\n * Measures before paint on opening, again on window resize and panel resize while open,\n * and, while the panel is outside its clipping box, on any ancestor scroll. Calls\n * `onAnchorHidden` when the trigger scrolls out of view while the panel is outside the\n * box. Resets on close.\n */\nexport function usePanelPlacement(\n anchorRef: RefObject<HTMLElement | null>,\n panelRef: RefObject<HTMLElement | null>,\n isOpen: boolean,\n onAnchorHidden?: () => void,\n): PanelPlacement {\n const [placement, setPlacement] = useState<PanelPlacement>(DEFAULT_PLACEMENT);\n const onAnchorHiddenRef = useRef(onAnchorHidden);\n\n useLayoutEffect(() => {\n onAnchorHiddenRef.current = onAnchorHidden;\n });\n\n useLayoutEffect(() => {\n const anchor = anchorRef.current;\n const panel = panelRef.current;\n if (!isOpen || !anchor || !panel) {\n setPlacement(DEFAULT_PLACEMENT);\n return;\n }\n\n let current: PanelPlacement | null = null;\n\n const measure = () => {\n const anchorRect = anchor.getBoundingClientRect();\n const next = resolvePanelPlacement({\n anchor: anchorRect,\n panel: measurePanel(panel, anchorRect, current?.side ?? 'bottom'),\n box: getClippingRect(anchor),\n currentSide: current?.side ?? null,\n });\n current = next;\n setPlacement((prev) => (samePlacement(prev, next) ? prev : next));\n };\n\n // Inside its clipping box the panel moves with its trigger; outside, it is placed\n // against the viewport and must follow it, in the same frame as the scroll.\n const onScroll = (event: Event) => {\n if (!isOutside(current) || panel.contains(event.target as Node)) return;\n const { vertical } = getClippingRect(anchor);\n const rect = anchor.getBoundingClientRect();\n if (rect.bottom <= vertical.top || rect.top >= vertical.bottom) {\n onAnchorHiddenRef.current?.();\n return;\n }\n flushSync(measure);\n };\n\n measure();\n // jsdom, which consumers often test with, has no ResizeObserver.\n const observer = typeof ResizeObserver === 'undefined' ? null : new ResizeObserver(measure);\n observer?.observe(panel);\n window.addEventListener('resize', measure);\n window.addEventListener('scroll', onScroll, { capture: true, passive: true });\n return () => {\n observer?.disconnect();\n window.removeEventListener('resize', measure);\n window.removeEventListener('scroll', onScroll, { capture: true });\n };\n }, [anchorRef, panelRef, isOpen]);\n\n return placement;\n}\n"],"names":[],"mappings":";;;;AAmBA,SAAS,iBAAiB,IAAiB,MAAc,OAAsB;AAC7E,MAAI,UAAU,KAAM,IAAG,gBAAgB,IAAI;AAAA,MACtC,IAAG,aAAa,MAAM,KAAK;AAClC;AAEA,SAAS,aAAa,OAAoB,QAAoB,MAA4B;AACxF,QAAM,aAAa,MAAM,aAAa,OAAO;AAC7C,QAAM,YAAY,MAAM,aAAa,WAAW;AAChD,QAAM,gBAAgB,OAAO;AAC7B,QAAM,aAAa,aAAa,IAAI;AACpC,QAAM,OAAO,MAAM,sBAAA;AACnB,mBAAiB,OAAO,SAAS,UAAU;AAC3C,mBAAiB,OAAO,aAAa,SAAS;AAE9C,QAAM,MAAM,SAAS,QAAQ,OAAO,MAAM,KAAK,SAAS,KAAK,MAAM,OAAO;AAC1E,SAAO,EAAE,OAAO,KAAK,OAAO,QAAQ,KAAK,QAAQ,KAAK,KAAK,IAAI,KAAK,CAAC,EAAA;AACvE;AAEA,MAAM,YAAY,CAAC,cAAA;;AAAqC,uDAAW,UAAX,mBAAkB,cAAa;AAAA;AAYhF,SAAS,kBACd,WACA,UACA,QACA,gBACgB;AAChB,QAAM,CAAC,WAAW,YAAY,IAAI,SAAyB,iBAAiB;AAC5E,QAAM,oBAAoB,OAAO,cAAc;AAE/C,kBAAgB,MAAM;AACpB,sBAAkB,UAAU;AAAA,EAC9B,CAAC;AAED,kBAAgB,MAAM;AACpB,UAAM,SAAS,UAAU;AACzB,UAAM,QAAQ,SAAS;AACvB,QAAI,CAAC,UAAU,CAAC,UAAU,CAAC,OAAO;AAChC,mBAAa,iBAAiB;AAC9B;AAAA,IACF;AAEA,QAAI,UAAiC;AAErC,UAAM,UAAU,MAAM;AACpB,YAAM,aAAa,OAAO,sBAAA;AAC1B,YAAM,OAAO,sBAAsB;AAAA,QACjC,QAAQ;AAAA,QACR,OAAO,aAAa,OAAO,aAAY,mCAAS,SAAQ,QAAQ;AAAA,QAChE,KAAK,gBAAgB,MAAM;AAAA,QAC3B,cAAa,mCAAS,SAAQ;AAAA,MAAA,CAC/B;AACD,gBAAU;AACV,mBAAa,CAAC,SAAU,cAAc,MAAM,IAAI,IAAI,OAAO,IAAK;AAAA,IAClE;AAIA,UAAM,WAAW,CAAC,UAAiB;;AACjC,UAAI,CAAC,UAAU,OAAO,KAAK,MAAM,SAAS,MAAM,MAAc,EAAG;AACjE,YAAM,EAAE,SAAA,IAAa,gBAAgB,MAAM;AAC3C,YAAM,OAAO,OAAO,sBAAA;AACpB,UAAI,KAAK,UAAU,SAAS,OAAO,KAAK,OAAO,SAAS,QAAQ;AAC9D,gCAAkB,YAAlB;AACA;AAAA,MACF;AACA,gBAAU,OAAO;AAAA,IACnB;AAEA,YAAA;AAEA,UAAM,WAAW,OAAO,mBAAmB,cAAc,OAAO,IAAI,eAAe,OAAO;AAC1F,yCAAU,QAAQ;AAClB,WAAO,iBAAiB,UAAU,OAAO;AACzC,WAAO,iBAAiB,UAAU,UAAU,EAAE,SAAS,MAAM,SAAS,MAAM;AAC5E,WAAO,MAAM;AACX,2CAAU;AACV,aAAO,oBAAoB,UAAU,OAAO;AAC5C,aAAO,oBAAoB,UAAU,UAAU,EAAE,SAAS,MAAM;AAAA,IAClE;AAAA,EACF,GAAG,CAAC,WAAW,UAAU,MAAM,CAAC;AAEhC,SAAO;AACT;"}
|
package/dist/index80.cjs
CHANGED
|
@@ -1,46 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root--s1oD";
|
|
4
|
+
const trigger = "krc-trigger-WMlNa";
|
|
5
|
+
const active = "krc-active-O65lj";
|
|
6
|
+
const triggerContent = "krc-triggerContent-JipmE";
|
|
7
|
+
const chevron = "krc-chevron-J2Zsy";
|
|
8
|
+
const label = "krc-label-lZlV-";
|
|
9
|
+
const value = "krc-value-HsQrC";
|
|
10
|
+
const clear = "krc-clear-bsi5j";
|
|
11
|
+
const panel = "krc-panel--0odx";
|
|
12
|
+
const searchContainer = "krc-searchContainer-WRS-U";
|
|
13
|
+
const search = "krc-search-Dh3pY";
|
|
14
|
+
const list = "krc-list-1RUtr";
|
|
15
|
+
const noResults = "krc-noResults-Hin1U";
|
|
16
|
+
const option = "krc-option-0mFGi";
|
|
17
|
+
const focused = "krc-focused-0-7tE";
|
|
18
|
+
const selected = "krc-selected-1zIqI";
|
|
19
|
+
const optionLabel = "krc-optionLabel-pj-hL";
|
|
20
|
+
const optionCount = "krc-optionCount-rVlCP";
|
|
21
|
+
const styles = {
|
|
22
|
+
root,
|
|
23
|
+
trigger,
|
|
24
|
+
active,
|
|
25
|
+
triggerContent,
|
|
26
|
+
chevron,
|
|
27
|
+
label,
|
|
28
|
+
value,
|
|
29
|
+
clear,
|
|
30
|
+
panel,
|
|
31
|
+
searchContainer,
|
|
32
|
+
search,
|
|
33
|
+
list,
|
|
34
|
+
noResults,
|
|
35
|
+
option,
|
|
36
|
+
focused,
|
|
37
|
+
selected,
|
|
38
|
+
optionLabel,
|
|
39
|
+
optionCount
|
|
8
40
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
29
|
-
};
|
|
30
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
31
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
32
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
33
|
-
return {
|
|
34
|
-
radius: selected ? radius + constants.GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
35
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
36
|
-
weight: selected ? constants.GEO_MAP.SELECTED_STROKE_WIDTH : constants.GEO_MAP.MARKER_STROKE_WIDTH,
|
|
37
|
-
fillColor,
|
|
38
|
-
fillOpacity: selected ? 1 : constants.GEO_MAP.MARKER_FILL_OPACITY
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
42
|
-
exports.buildCategoryColors = buildCategoryColors;
|
|
43
|
-
exports.buildLegendItems = buildLegendItems;
|
|
44
|
-
exports.buildMarkerStyle = buildMarkerStyle;
|
|
45
|
-
exports.buildWeightScale = buildWeightScale;
|
|
41
|
+
exports.active = active;
|
|
42
|
+
exports.chevron = chevron;
|
|
43
|
+
exports.clear = clear;
|
|
44
|
+
exports.default = styles;
|
|
45
|
+
exports.focused = focused;
|
|
46
|
+
exports.label = label;
|
|
47
|
+
exports.list = list;
|
|
48
|
+
exports.noResults = noResults;
|
|
49
|
+
exports.option = option;
|
|
50
|
+
exports.optionCount = optionCount;
|
|
51
|
+
exports.optionLabel = optionLabel;
|
|
52
|
+
exports.panel = panel;
|
|
53
|
+
exports.root = root;
|
|
54
|
+
exports.search = search;
|
|
55
|
+
exports.searchContainer = searchContainer;
|
|
56
|
+
exports.selected = selected;
|
|
57
|
+
exports.trigger = trigger;
|
|
58
|
+
exports.triggerContent = triggerContent;
|
|
59
|
+
exports.value = value;
|
|
46
60
|
//# sourceMappingURL=index80.cjs.map
|
package/dist/index80.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index80.js
CHANGED
|
@@ -1,46 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const root = "krc-root--s1oD";
|
|
2
|
+
const trigger = "krc-trigger-WMlNa";
|
|
3
|
+
const active = "krc-active-O65lj";
|
|
4
|
+
const triggerContent = "krc-triggerContent-JipmE";
|
|
5
|
+
const chevron = "krc-chevron-J2Zsy";
|
|
6
|
+
const label = "krc-label-lZlV-";
|
|
7
|
+
const value = "krc-value-HsQrC";
|
|
8
|
+
const clear = "krc-clear-bsi5j";
|
|
9
|
+
const panel = "krc-panel--0odx";
|
|
10
|
+
const searchContainer = "krc-searchContainer-WRS-U";
|
|
11
|
+
const search = "krc-search-Dh3pY";
|
|
12
|
+
const list = "krc-list-1RUtr";
|
|
13
|
+
const noResults = "krc-noResults-Hin1U";
|
|
14
|
+
const option = "krc-option-0mFGi";
|
|
15
|
+
const focused = "krc-focused-0-7tE";
|
|
16
|
+
const selected = "krc-selected-1zIqI";
|
|
17
|
+
const optionLabel = "krc-optionLabel-pj-hL";
|
|
18
|
+
const optionCount = "krc-optionCount-rVlCP";
|
|
19
|
+
const styles = {
|
|
20
|
+
root,
|
|
21
|
+
trigger,
|
|
22
|
+
active,
|
|
23
|
+
triggerContent,
|
|
24
|
+
chevron,
|
|
25
|
+
label,
|
|
26
|
+
value,
|
|
27
|
+
clear,
|
|
28
|
+
panel,
|
|
29
|
+
searchContainer,
|
|
30
|
+
search,
|
|
31
|
+
list,
|
|
32
|
+
noResults,
|
|
33
|
+
option,
|
|
34
|
+
focused,
|
|
35
|
+
selected,
|
|
36
|
+
optionLabel,
|
|
37
|
+
optionCount
|
|
6
38
|
};
|
|
7
|
-
const UNCATEGORISED_COLOR = orbitTokens.brand.orange;
|
|
8
|
-
const buildCategoryColors = (points) => {
|
|
9
|
-
const categories = [...new Set(points.map((p) => p.category).filter((c) => c != null))];
|
|
10
|
-
categories.sort((a, b) => a.localeCompare(b));
|
|
11
|
-
return new Map(categories.map((category, i) => [category, CHART_COLORS[i % CHART_COLORS.length]]));
|
|
12
|
-
};
|
|
13
|
-
const buildWeightScale = (points) => {
|
|
14
|
-
const weights = points.map((p) => p.weight).filter((w) => w != null && Number.isFinite(w));
|
|
15
|
-
if (weights.length === 0) return null;
|
|
16
|
-
const min = Math.min(...weights);
|
|
17
|
-
const max = Math.max(...weights);
|
|
18
|
-
return min === max ? null : { min, max };
|
|
19
|
-
};
|
|
20
|
-
const radiusFor = (weight, scale) => {
|
|
21
|
-
if (scale == null || weight == null || !Number.isFinite(weight)) return GEO_MAP.BASE_MARKER_RADIUS;
|
|
22
|
-
const ratio = (weight - scale.min) / (scale.max - scale.min);
|
|
23
|
-
const clamped = Math.min(Math.max(ratio, 0), 1);
|
|
24
|
-
const minArea = GEO_MAP.MIN_MARKER_RADIUS ** 2;
|
|
25
|
-
const maxArea = GEO_MAP.MAX_MARKER_RADIUS ** 2;
|
|
26
|
-
return Math.sqrt(minArea + clamped * (maxArea - minArea));
|
|
27
|
-
};
|
|
28
|
-
const buildMarkerStyle = (point, { categoryColors, weightScale, selected, theme }) => {
|
|
29
|
-
const fillColor = (point.category != null ? categoryColors.get(point.category) : void 0) ?? UNCATEGORISED_COLOR;
|
|
30
|
-
const radius = radiusFor(point.weight, weightScale);
|
|
31
|
-
return {
|
|
32
|
-
radius: selected ? radius + GEO_MAP.SELECTED_RADIUS_BOOST : radius,
|
|
33
|
-
color: selected ? SELECTION_RING[theme] : fillColor,
|
|
34
|
-
weight: selected ? GEO_MAP.SELECTED_STROKE_WIDTH : GEO_MAP.MARKER_STROKE_WIDTH,
|
|
35
|
-
fillColor,
|
|
36
|
-
fillOpacity: selected ? 1 : GEO_MAP.MARKER_FILL_OPACITY
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
const buildLegendItems = (categoryColors) => [...categoryColors].map(([label, color]) => ({ label, color }));
|
|
40
39
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
40
|
+
active,
|
|
41
|
+
chevron,
|
|
42
|
+
clear,
|
|
43
|
+
styles as default,
|
|
44
|
+
focused,
|
|
45
|
+
label,
|
|
46
|
+
list,
|
|
47
|
+
noResults,
|
|
48
|
+
option,
|
|
49
|
+
optionCount,
|
|
50
|
+
optionLabel,
|
|
51
|
+
panel,
|
|
52
|
+
root,
|
|
53
|
+
search,
|
|
54
|
+
searchContainer,
|
|
55
|
+
selected,
|
|
56
|
+
trigger,
|
|
57
|
+
triggerContent,
|
|
58
|
+
value
|
|
45
59
|
};
|
|
46
60
|
//# sourceMappingURL=index80.js.map
|
package/dist/index80.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index80.js","sources":[
|
|
1
|
+
{"version":3,"file":"index80.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index81.cjs
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
react.useEffect(() => {
|
|
13
|
-
map.invalidateSize();
|
|
14
|
-
}, [map, width, height]);
|
|
15
|
-
react.useEffect(() => {
|
|
16
|
-
if (!fitBounds || bounds == null) return;
|
|
17
|
-
map.fitBounds(bounds, {
|
|
18
|
-
padding: [...constants.GEO_MAP.FIT_BOUNDS_PADDING],
|
|
19
|
-
// A single point makes `fitBounds` collapse to the maximum zoom level.
|
|
20
|
-
maxZoom: constants.GEO_MAP.SINGLE_POINT_ZOOM
|
|
21
|
-
});
|
|
22
|
-
}, [map, bounds, fitBounds]);
|
|
23
|
-
return null;
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const root = "krc-root-GPZXT";
|
|
4
|
+
const sm = "krc-sm-QGnvH";
|
|
5
|
+
const md = "krc-md-rQKlJ";
|
|
6
|
+
const lg = "krc-lg-eC2yT";
|
|
7
|
+
const styles = {
|
|
8
|
+
root,
|
|
9
|
+
sm,
|
|
10
|
+
md,
|
|
11
|
+
lg
|
|
24
12
|
};
|
|
25
|
-
|
|
26
|
-
exports.
|
|
13
|
+
exports.default = styles;
|
|
14
|
+
exports.lg = lg;
|
|
15
|
+
exports.md = md;
|
|
16
|
+
exports.root = root;
|
|
17
|
+
exports.sm = sm;
|
|
27
18
|
//# sourceMappingURL=index81.cjs.map
|
package/dist/index81.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index81.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"index81.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
package/dist/index81.js
CHANGED
|
@@ -1,27 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
useEffect(() => {
|
|
11
|
-
map.invalidateSize();
|
|
12
|
-
}, [map, width, height]);
|
|
13
|
-
useEffect(() => {
|
|
14
|
-
if (!fitBounds || bounds == null) return;
|
|
15
|
-
map.fitBounds(bounds, {
|
|
16
|
-
padding: [...GEO_MAP.FIT_BOUNDS_PADDING],
|
|
17
|
-
// A single point makes `fitBounds` collapse to the maximum zoom level.
|
|
18
|
-
maxZoom: GEO_MAP.SINGLE_POINT_ZOOM
|
|
19
|
-
});
|
|
20
|
-
}, [map, bounds, fitBounds]);
|
|
21
|
-
return null;
|
|
1
|
+
const root = "krc-root-GPZXT";
|
|
2
|
+
const sm = "krc-sm-QGnvH";
|
|
3
|
+
const md = "krc-md-rQKlJ";
|
|
4
|
+
const lg = "krc-lg-eC2yT";
|
|
5
|
+
const styles = {
|
|
6
|
+
root,
|
|
7
|
+
sm,
|
|
8
|
+
md,
|
|
9
|
+
lg
|
|
22
10
|
};
|
|
23
|
-
MapViewport.displayName = "MapViewport";
|
|
24
11
|
export {
|
|
25
|
-
|
|
12
|
+
styles as default,
|
|
13
|
+
lg,
|
|
14
|
+
md,
|
|
15
|
+
root,
|
|
16
|
+
sm
|
|
26
17
|
};
|
|
27
18
|
//# sourceMappingURL=index81.js.map
|
package/dist/index81.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index81.js","sources":[
|
|
1
|
+
{"version":3,"file":"index81.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|