@ktnpm_devops/react-component 0.25.0 → 0.26.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/dist/composites/DayRangePicker/DayRangePicker.d.ts +4 -0
- package/dist/composites/DayRangePicker/DayRangePicker.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/DayRangePicker.types.d.ts +42 -0
- package/dist/composites/DayRangePicker/DayRangePicker.types.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/index.d.ts +3 -0
- package/dist/composites/DayRangePicker/index.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/rangeDays.d.ts +17 -0
- package/dist/composites/DayRangePicker/rangeDays.d.ts.map +1 -0
- package/dist/composites/DayRangePicker/rangeDays.test.d.ts +2 -0
- package/dist/composites/DayRangePicker/rangeDays.test.d.ts.map +1 -0
- package/dist/constants.d.ts +2 -0
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.cjs +33 -31
- 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 +33 -31
- package/dist/index.js.map +1 -1
- package/dist/index10.cjs +2 -2
- package/dist/index10.js +2 -2
- package/dist/index100.cjs +69 -6
- package/dist/index100.cjs.map +1 -1
- package/dist/index100.js +68 -5
- package/dist/index100.js.map +1 -1
- package/dist/index101.cjs +6 -24
- package/dist/index101.cjs.map +1 -1
- package/dist/index101.js +5 -23
- package/dist/index101.js.map +1 -1
- package/dist/index102.cjs +32 -32
- package/dist/index102.js +32 -32
- package/dist/index103.cjs +4 -25
- package/dist/index103.cjs.map +1 -1
- package/dist/index103.js +5 -26
- package/dist/index103.js.map +1 -1
- package/dist/index104.cjs +116 -7
- package/dist/index104.cjs.map +1 -1
- package/dist/index104.js +115 -6
- package/dist/index104.js.map +1 -1
- package/dist/index105.cjs +33 -15
- package/dist/index105.cjs.map +1 -1
- package/dist/index105.js +34 -16
- package/dist/index105.js.map +1 -1
- package/dist/index106.cjs +46 -16
- package/dist/index106.cjs.map +1 -1
- package/dist/index106.js +46 -16
- package/dist/index106.js.map +1 -1
- package/dist/index107.cjs +33 -35
- package/dist/index107.cjs.map +1 -1
- package/dist/index107.js +33 -35
- package/dist/index107.js.map +1 -1
- package/dist/index108.cjs +33 -43
- package/dist/index108.cjs.map +1 -1
- package/dist/index108.js +32 -42
- package/dist/index108.js.map +1 -1
- package/dist/index109.cjs +18 -24
- package/dist/index109.cjs.map +1 -1
- package/dist/index109.js +17 -23
- package/dist/index109.js.map +1 -1
- package/dist/index11.cjs +2 -2
- package/dist/index11.js +2 -2
- package/dist/index110.cjs +18 -39
- package/dist/index110.cjs.map +1 -1
- package/dist/index110.js +17 -38
- package/dist/index110.js.map +1 -1
- package/dist/index111.cjs +40 -9
- package/dist/index111.cjs.map +1 -1
- package/dist/index111.js +39 -8
- package/dist/index111.js.map +1 -1
- package/dist/index112.cjs +84 -10
- package/dist/index112.cjs.map +1 -1
- package/dist/index112.js +83 -9
- package/dist/index112.js.map +1 -1
- package/dist/index113.cjs +22 -20
- package/dist/index113.cjs.map +1 -1
- package/dist/index113.js +21 -19
- package/dist/index113.js.map +1 -1
- package/dist/index114.cjs +34 -14
- package/dist/index114.cjs.map +1 -1
- package/dist/index114.js +33 -13
- package/dist/index114.js.map +1 -1
- package/dist/index115.cjs +6 -10
- package/dist/index115.cjs.map +1 -1
- package/dist/index115.js +5 -9
- package/dist/index115.js.map +1 -1
- package/dist/index116.cjs +19 -64
- package/dist/index116.cjs.map +1 -1
- package/dist/index116.js +19 -64
- package/dist/index116.js.map +1 -1
- package/dist/index117.cjs +2 -20
- package/dist/index117.cjs.map +1 -1
- package/dist/index117.js +2 -20
- package/dist/index117.js.map +1 -1
- package/dist/index118.cjs +15 -70
- package/dist/index118.cjs.map +1 -1
- package/dist/index118.js +14 -69
- package/dist/index118.js.map +1 -1
- package/dist/index119.cjs +9 -50
- package/dist/index119.cjs.map +1 -1
- package/dist/index119.js +8 -49
- package/dist/index119.js.map +1 -1
- package/dist/index12.cjs +2 -2
- package/dist/index12.js +2 -2
- package/dist/index120.cjs +16 -6
- package/dist/index120.cjs.map +1 -1
- package/dist/index120.js +15 -5
- package/dist/index120.js.map +1 -1
- package/dist/index121.cjs +22 -28
- package/dist/index121.cjs.map +1 -1
- package/dist/index121.js +21 -27
- package/dist/index121.js.map +1 -1
- package/dist/index122.cjs +19 -82
- package/dist/index122.cjs.map +1 -1
- package/dist/index122.js +20 -83
- package/dist/index122.js.map +1 -1
- package/dist/index123.cjs +35 -2
- package/dist/index123.cjs.map +1 -1
- package/dist/index123.js +36 -3
- package/dist/index123.js.map +1 -1
- package/dist/index124.cjs +36 -18
- package/dist/index124.cjs.map +1 -1
- package/dist/index124.js +36 -18
- package/dist/index124.js.map +1 -1
- package/dist/index125.cjs +1 -1
- package/dist/index125.js +1 -1
- package/dist/index126.cjs +22 -19
- package/dist/index126.cjs.map +1 -1
- package/dist/index126.js +22 -19
- package/dist/index126.js.map +1 -1
- package/dist/index127.cjs +64 -28
- package/dist/index127.cjs.map +1 -1
- package/dist/index127.js +64 -28
- package/dist/index127.js.map +1 -1
- package/dist/index128.cjs +22 -13
- package/dist/index128.cjs.map +1 -1
- package/dist/index128.js +23 -14
- package/dist/index128.js.map +1 -1
- package/dist/index129.cjs +21 -30
- package/dist/index129.cjs.map +1 -1
- package/dist/index129.js +21 -30
- package/dist/index129.js.map +1 -1
- package/dist/index13.cjs +2 -2
- package/dist/index13.js +2 -2
- package/dist/index130.cjs +13 -34
- package/dist/index130.cjs.map +1 -1
- package/dist/index130.js +13 -34
- package/dist/index130.js.map +1 -1
- package/dist/index131.cjs +15 -15
- package/dist/index131.js +15 -15
- package/dist/index132.cjs +15 -36
- package/dist/index132.cjs.map +1 -1
- package/dist/index132.js +15 -36
- package/dist/index132.js.map +1 -1
- package/dist/index133.cjs +16 -16
- package/dist/index133.js +16 -16
- package/dist/index134.cjs +25 -16
- package/dist/index134.cjs.map +1 -1
- package/dist/index134.js +26 -17
- package/dist/index134.js.map +1 -1
- package/dist/index135.cjs +68 -37
- package/dist/index135.cjs.map +1 -1
- package/dist/index135.js +68 -37
- package/dist/index135.js.map +1 -1
- package/dist/index136.cjs +47 -89
- package/dist/index136.cjs.map +1 -1
- package/dist/index136.js +47 -89
- package/dist/index136.js.map +1 -1
- package/dist/index137.cjs +6 -40
- package/dist/index137.cjs.map +1 -1
- package/dist/index137.js +5 -39
- package/dist/index137.js.map +1 -1
- package/dist/index138.cjs +28 -16
- package/dist/index138.cjs.map +1 -1
- package/dist/index138.js +27 -15
- package/dist/index138.js.map +1 -1
- package/dist/index139.cjs +82 -79
- package/dist/index139.cjs.map +1 -1
- package/dist/index139.js +82 -79
- package/dist/index139.js.map +1 -1
- package/dist/index14.cjs +2 -2
- package/dist/index14.js +2 -2
- package/dist/index140.cjs +20 -2
- package/dist/index140.cjs.map +1 -1
- package/dist/index140.js +20 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.cjs +44 -45
- package/dist/index141.cjs.map +1 -1
- package/dist/index141.js +44 -45
- package/dist/index141.js.map +1 -1
- package/dist/index142.cjs +15 -73
- package/dist/index142.cjs.map +1 -1
- package/dist/index142.js +15 -73
- package/dist/index142.js.map +1 -1
- package/dist/index143.cjs +37 -1164
- package/dist/index143.cjs.map +1 -1
- package/dist/index143.js +35 -1163
- package/dist/index143.js.map +1 -1
- package/dist/index144.cjs +46 -1573
- package/dist/index144.cjs.map +1 -1
- package/dist/index144.js +45 -1573
- package/dist/index144.js.map +1 -1
- package/dist/index145.cjs +74 -6
- package/dist/index145.cjs.map +1 -1
- package/dist/index145.js +74 -6
- package/dist/index145.js.map +1 -1
- package/dist/index146.cjs +1163 -12
- package/dist/index146.cjs.map +1 -1
- package/dist/index146.js +1162 -10
- package/dist/index146.js.map +1 -1
- package/dist/index147.cjs +1576 -49
- package/dist/index147.cjs.map +1 -1
- package/dist/index147.js +1576 -48
- package/dist/index147.js.map +1 -1
- package/dist/index149.cjs +10 -0
- package/dist/index149.cjs.map +1 -0
- package/dist/index149.js +10 -0
- package/dist/index149.js.map +1 -0
- package/dist/index15.cjs +2 -2
- package/dist/index15.js +2 -2
- package/dist/index150.cjs +15 -0
- package/dist/index150.cjs.map +1 -0
- package/dist/index150.js +15 -0
- package/dist/index150.js.map +1 -0
- package/dist/index151.cjs +51 -0
- package/dist/index151.cjs.map +1 -0
- package/dist/index151.js +51 -0
- package/dist/index151.js.map +1 -0
- 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 +6 -0
- package/dist/index27.cjs.map +1 -1
- package/dist/index27.js +6 -0
- package/dist/index27.js.map +1 -1
- package/dist/index28.cjs +2 -2
- package/dist/index28.js +2 -2
- package/dist/index29.cjs +4 -4
- package/dist/index29.js +4 -4
- package/dist/index30.cjs +5 -5
- package/dist/index30.js +5 -5
- package/dist/index31.cjs +87 -19
- package/dist/index31.cjs.map +1 -1
- package/dist/index31.js +88 -20
- package/dist/index31.js.map +1 -1
- package/dist/index32.cjs +20 -143
- package/dist/index32.cjs.map +1 -1
- package/dist/index32.js +21 -144
- package/dist/index32.js.map +1 -1
- package/dist/index33.cjs +126 -136
- package/dist/index33.cjs.map +1 -1
- package/dist/index33.js +127 -137
- package/dist/index33.js.map +1 -1
- package/dist/index34.cjs +135 -67
- package/dist/index34.cjs.map +1 -1
- package/dist/index34.js +134 -66
- package/dist/index34.js.map +1 -1
- package/dist/index35.cjs +83 -98
- package/dist/index35.cjs.map +1 -1
- package/dist/index35.js +85 -100
- package/dist/index35.js.map +1 -1
- package/dist/index36.cjs +100 -6
- package/dist/index36.cjs.map +1 -1
- package/dist/index36.js +101 -7
- package/dist/index36.js.map +1 -1
- package/dist/index37.cjs +7 -109
- package/dist/index37.cjs.map +1 -1
- package/dist/index37.js +9 -111
- package/dist/index37.js.map +1 -1
- package/dist/index38.cjs +108 -54
- package/dist/index38.cjs.map +1 -1
- package/dist/index38.js +110 -56
- package/dist/index38.js.map +1 -1
- package/dist/index39.cjs +49 -13
- package/dist/index39.cjs.map +1 -1
- package/dist/index39.js +51 -15
- package/dist/index39.js.map +1 -1
- package/dist/index40.cjs +20 -43
- package/dist/index40.cjs.map +1 -1
- package/dist/index40.js +21 -44
- package/dist/index40.js.map +1 -1
- package/dist/index41.cjs +39 -304
- package/dist/index41.cjs.map +1 -1
- package/dist/index41.js +40 -305
- package/dist/index41.js.map +1 -1
- package/dist/index42.cjs +302 -28
- package/dist/index42.cjs.map +1 -1
- package/dist/index42.js +304 -30
- package/dist/index42.js.map +1 -1
- package/dist/index43.cjs +30 -113
- package/dist/index43.cjs.map +1 -1
- package/dist/index43.js +31 -114
- package/dist/index43.js.map +1 -1
- package/dist/index44.cjs +107 -58
- package/dist/index44.cjs.map +1 -1
- package/dist/index44.js +108 -59
- package/dist/index44.js.map +1 -1
- package/dist/index45.cjs +66 -76
- package/dist/index45.cjs.map +1 -1
- package/dist/index45.js +67 -77
- package/dist/index45.js.map +1 -1
- package/dist/index46.cjs +76 -57
- package/dist/index46.cjs.map +1 -1
- package/dist/index46.js +78 -59
- package/dist/index46.js.map +1 -1
- package/dist/index47.cjs +56 -150
- package/dist/index47.cjs.map +1 -1
- package/dist/index47.js +58 -152
- package/dist/index47.js.map +1 -1
- package/dist/index48.cjs +128 -73
- package/dist/index48.cjs.map +1 -1
- package/dist/index48.js +123 -68
- package/dist/index48.js.map +1 -1
- package/dist/index49.cjs +94 -68
- package/dist/index49.cjs.map +1 -1
- package/dist/index49.js +96 -70
- package/dist/index49.js.map +1 -1
- package/dist/index50.cjs +71 -7
- package/dist/index50.cjs.map +1 -1
- package/dist/index50.js +72 -8
- package/dist/index50.js.map +1 -1
- package/dist/index51.cjs +8 -17
- package/dist/index51.cjs.map +1 -1
- package/dist/index51.js +9 -18
- package/dist/index51.js.map +1 -1
- package/dist/index52.cjs +15 -75
- package/dist/index52.cjs.map +1 -1
- package/dist/index52.js +16 -76
- package/dist/index52.js.map +1 -1
- package/dist/index53.cjs +66 -181
- package/dist/index53.cjs.map +1 -1
- package/dist/index53.js +68 -183
- package/dist/index53.js.map +1 -1
- package/dist/index54.cjs +180 -52
- package/dist/index54.cjs.map +1 -1
- package/dist/index54.js +181 -53
- package/dist/index54.js.map +1 -1
- package/dist/index55.cjs +61 -111
- package/dist/index55.cjs.map +1 -1
- package/dist/index55.js +62 -112
- package/dist/index55.js.map +1 -1
- package/dist/index56.cjs +111 -44
- package/dist/index56.cjs.map +1 -1
- package/dist/index56.js +112 -45
- package/dist/index56.js.map +1 -1
- package/dist/index57.cjs +47 -6
- package/dist/index57.cjs.map +1 -1
- package/dist/index57.js +48 -7
- package/dist/index57.js.map +1 -1
- package/dist/index58.cjs +6 -145
- package/dist/index58.cjs.map +1 -1
- package/dist/index58.js +7 -146
- package/dist/index58.js.map +1 -1
- package/dist/index59.cjs +144 -7
- package/dist/index59.cjs.map +1 -1
- package/dist/index59.js +146 -9
- package/dist/index59.js.map +1 -1
- package/dist/index60.cjs +6 -15
- package/dist/index60.cjs.map +1 -1
- package/dist/index60.js +6 -15
- package/dist/index60.js.map +1 -1
- package/dist/index61.cjs +15 -64
- package/dist/index61.cjs.map +1 -1
- package/dist/index61.js +17 -66
- package/dist/index61.js.map +1 -1
- package/dist/index62.cjs +66 -2
- package/dist/index62.cjs.map +1 -1
- package/dist/index62.js +67 -3
- package/dist/index62.js.map +1 -1
- package/dist/index63.cjs +3 -10
- package/dist/index63.cjs.map +1 -1
- package/dist/index63.js +3 -10
- package/dist/index63.js.map +1 -1
- package/dist/index64.cjs +11 -16
- package/dist/index64.cjs.map +1 -1
- package/dist/index64.js +10 -15
- package/dist/index64.js.map +1 -1
- package/dist/index65.cjs +15 -27
- package/dist/index65.cjs.map +1 -1
- package/dist/index65.js +15 -27
- package/dist/index65.js.map +1 -1
- package/dist/index66.cjs +73 -18
- package/dist/index66.cjs.map +1 -1
- package/dist/index66.js +72 -17
- package/dist/index66.js.map +1 -1
- package/dist/index67.cjs +153 -19
- package/dist/index67.cjs.map +1 -1
- package/dist/index67.js +151 -17
- package/dist/index67.js.map +1 -1
- package/dist/index68.cjs +11 -150
- package/dist/index68.cjs.map +1 -1
- package/dist/index68.js +11 -150
- package/dist/index68.js.map +1 -1
- package/dist/index69.cjs +50 -14
- package/dist/index69.cjs.map +1 -1
- package/dist/index69.js +50 -14
- package/dist/index69.js.map +1 -1
- package/dist/index70.cjs +17 -18
- package/dist/index70.cjs.map +1 -1
- package/dist/index70.js +16 -17
- package/dist/index70.js.map +1 -1
- package/dist/index71.cjs +2 -23
- package/dist/index71.cjs.map +1 -1
- package/dist/index71.js +3 -24
- package/dist/index71.js.map +1 -1
- package/dist/index72.cjs +17 -14
- package/dist/index72.cjs.map +1 -1
- package/dist/index72.js +17 -14
- package/dist/index72.js.map +1 -1
- package/dist/index73.cjs +2 -20
- package/dist/index73.cjs.map +1 -1
- package/dist/index73.js +3 -21
- package/dist/index73.js.map +1 -1
- package/dist/index74.cjs +21 -42
- package/dist/index74.cjs.map +1 -1
- package/dist/index74.js +20 -41
- package/dist/index74.js.map +1 -1
- package/dist/index75.cjs +16 -12
- package/dist/index75.cjs.map +1 -1
- package/dist/index75.js +15 -11
- package/dist/index75.js.map +1 -1
- package/dist/index76.cjs +2 -53
- package/dist/index76.cjs.map +1 -1
- package/dist/index76.js +3 -54
- package/dist/index76.js.map +1 -1
- package/dist/index77.cjs +16 -116
- package/dist/index77.cjs.map +1 -1
- package/dist/index77.js +15 -115
- package/dist/index77.js.map +1 -1
- package/dist/index78.cjs +16 -37
- package/dist/index78.cjs.map +1 -1
- package/dist/index78.js +16 -37
- package/dist/index78.js.map +1 -1
- package/dist/index79.cjs +21 -73
- package/dist/index79.cjs.map +1 -1
- package/dist/index79.js +20 -72
- package/dist/index79.js.map +1 -1
- package/dist/index80.cjs +16 -52
- package/dist/index80.cjs.map +1 -1
- package/dist/index80.js +16 -52
- package/dist/index80.js.map +1 -1
- package/dist/index81.cjs +134 -16
- package/dist/index81.cjs.map +1 -1
- package/dist/index81.js +133 -15
- package/dist/index81.js.map +1 -1
- package/dist/index82.cjs +46 -134
- package/dist/index82.cjs.map +1 -1
- package/dist/index82.js +45 -133
- package/dist/index82.js.map +1 -1
- package/dist/index83.cjs +16 -28
- package/dist/index83.cjs.map +1 -1
- package/dist/index83.js +17 -29
- package/dist/index83.js.map +1 -1
- package/dist/index84.cjs +52 -4
- package/dist/index84.cjs.map +1 -1
- package/dist/index84.js +53 -5
- package/dist/index84.js.map +1 -1
- package/dist/index85.cjs +26 -17
- package/dist/index85.cjs.map +1 -1
- package/dist/index85.js +27 -18
- package/dist/index85.js.map +1 -1
- package/dist/index86.cjs +39 -51
- package/dist/index86.cjs.map +1 -1
- package/dist/index86.js +38 -50
- package/dist/index86.js.map +1 -1
- package/dist/index87.cjs +91 -32
- package/dist/index87.cjs.map +1 -1
- package/dist/index87.js +91 -32
- package/dist/index87.js.map +1 -1
- package/dist/index88.cjs +32 -8
- package/dist/index88.cjs.map +1 -1
- package/dist/index88.js +33 -9
- package/dist/index88.js.map +1 -1
- package/dist/index89.cjs +33 -20
- package/dist/index89.cjs.map +1 -1
- package/dist/index89.js +33 -20
- package/dist/index89.js.map +1 -1
- package/dist/index90.cjs +37 -63
- package/dist/index90.cjs.map +1 -1
- package/dist/index90.js +37 -63
- package/dist/index90.js.map +1 -1
- package/dist/index91.cjs +23 -5
- package/dist/index91.cjs.map +1 -1
- package/dist/index91.js +23 -5
- package/dist/index91.js.map +1 -1
- package/dist/index92.cjs +39 -39
- package/dist/index92.cjs.map +1 -1
- package/dist/index92.js +38 -38
- package/dist/index92.js.map +1 -1
- package/dist/index93.cjs +9 -10
- package/dist/index93.cjs.map +1 -1
- package/dist/index93.js +8 -9
- package/dist/index93.js.map +1 -1
- package/dist/index94.cjs +10 -47
- package/dist/index94.cjs.map +1 -1
- package/dist/index94.js +10 -47
- package/dist/index94.js.map +1 -1
- package/dist/index95.cjs +19 -17
- package/dist/index95.cjs.map +1 -1
- package/dist/index95.js +19 -17
- package/dist/index95.js.map +1 -1
- package/dist/index96.cjs +14 -37
- package/dist/index96.cjs.map +1 -1
- package/dist/index96.js +13 -36
- package/dist/index96.js.map +1 -1
- package/dist/index97.cjs +10 -6
- package/dist/index97.cjs.map +1 -1
- package/dist/index97.js +9 -5
- package/dist/index97.js.map +1 -1
- package/dist/index98.cjs +64 -64
- package/dist/index98.js +64 -64
- package/dist/index99.cjs +20 -15
- package/dist/index99.cjs.map +1 -1
- package/dist/index99.js +20 -15
- package/dist/index99.js.map +1 -1
- package/dist/labels/ComponentLabels.types.d.ts +12 -0
- package/dist/labels/ComponentLabels.types.d.ts.map +1 -1
- package/dist/labels/defaults.d.ts.map +1 -1
- package/dist/labels/index.d.ts +1 -1
- package/dist/labels/index.d.ts.map +1 -1
- package/dist/style.css +23 -0
- package/package.json +1 -1
package/dist/index37.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index37.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index37.cjs","sources":["../src/primitives/Input/Input.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport styles from './Input.module.css';\n\nexport interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(\n ({ className, type = 'text', ...props }, ref) => (\n <input ref={ref} type={type} className={clsx(styles.root, className)} {...props} />\n ),\n);\n\nInput.displayName = 'Input';\n"],"names":["forwardRef","jsx","clsx","styles"],"mappings":";;;;;;AAMO,MAAM,QAAQA,MAAAA;AAAAA,EACnB,CAAC,EAAE,WAAW,OAAO,QAAQ,GAAG,SAAS,QACvCC,2BAAAA,IAAC,WAAM,KAAU,MAAY,WAAWC,UAAKC,aAAAA,QAAO,MAAM,SAAS,GAAI,GAAG,MAAA,CAAO;AAErF;AAEA,MAAM,cAAc;;"}
|
package/dist/index37.js
CHANGED
|
@@ -1,114 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { clsx } from "./
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { useColumnResize } from "./index121.js";
|
|
10
|
-
import styles from "./index122.js";
|
|
11
|
-
const LABEL_GROUPS = ["liveExplorerTable"];
|
|
12
|
-
const NO_EXPANDED_ROWS = [];
|
|
13
|
-
const defaultRowId = (row) => row.id;
|
|
14
|
-
const LiveExplorerTable = (props) => {
|
|
15
|
-
const {
|
|
16
|
-
rows,
|
|
17
|
-
columns,
|
|
18
|
-
getRowId = defaultRowId,
|
|
19
|
-
sortState = null,
|
|
20
|
-
onSortChange,
|
|
21
|
-
isLoading = false,
|
|
22
|
-
hasMore = false,
|
|
23
|
-
isFetchingNext = false,
|
|
24
|
-
onLoadMore,
|
|
25
|
-
onColumnResize,
|
|
26
|
-
onRowClick,
|
|
27
|
-
selectedRowKey = null,
|
|
28
|
-
scrollToSelectedRow = false,
|
|
29
|
-
variant,
|
|
30
|
-
maxHeight,
|
|
31
|
-
rowClassName,
|
|
32
|
-
empty,
|
|
33
|
-
renderExpandedRow,
|
|
34
|
-
expandedRowKeys = NO_EXPANDED_ROWS,
|
|
35
|
-
groupBy,
|
|
36
|
-
renderGroupHeader,
|
|
37
|
-
className,
|
|
38
|
-
labels
|
|
39
|
-
} = props;
|
|
40
|
-
const texts = useComponentLabels(
|
|
41
|
-
DEFAULT_COMPONENT_LABELS.liveExplorerTable,
|
|
42
|
-
LABEL_GROUPS,
|
|
43
|
-
labels
|
|
44
|
-
);
|
|
45
|
-
const selectedRef = useRef(null);
|
|
46
|
-
const handleResizeStart = useColumnResize(columns, onColumnResize);
|
|
47
|
-
useEffect(() => {
|
|
48
|
-
if (scrollToSelectedRow && selectedRef.current) {
|
|
49
|
-
selectedRef.current.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
50
|
-
}
|
|
51
|
-
}, [scrollToSelectedRow, selectedRowKey]);
|
|
52
|
-
const handleSort = useCallback(
|
|
53
|
-
(column) => onSortChange == null ? void 0 : onSortChange(nextSortState(sortState, column)),
|
|
54
|
-
[onSortChange, sortState]
|
|
55
|
-
);
|
|
56
|
-
const rootStyle = maxHeight ? { maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight } : void 0;
|
|
57
|
-
return /* @__PURE__ */ jsxs(
|
|
58
|
-
"div",
|
|
59
|
-
{
|
|
60
|
-
className: clsx(styles.root, variant && styles[variant], className),
|
|
61
|
-
style: rootStyle,
|
|
62
|
-
"data-part": "root",
|
|
63
|
-
"data-variant": variant,
|
|
64
|
-
children: [
|
|
65
|
-
/* @__PURE__ */ jsx("div", { className: styles.tableContainer, "data-part": "scroll", children: /* @__PURE__ */ jsxs("table", { className: styles.table, children: [
|
|
66
|
-
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: columns.map((col) => /* @__PURE__ */ jsx(
|
|
67
|
-
LiveExplorerHeaderCell,
|
|
68
|
-
{
|
|
69
|
-
column: col,
|
|
70
|
-
sortState,
|
|
71
|
-
onSort: handleSort,
|
|
72
|
-
sortByLabel: texts.sortBy,
|
|
73
|
-
onResizeStart: onColumnResize ? handleResizeStart : void 0
|
|
74
|
-
},
|
|
75
|
-
col.key
|
|
76
|
-
)) }) }),
|
|
77
|
-
/* @__PURE__ */ jsx(
|
|
78
|
-
LiveExplorerBody,
|
|
79
|
-
{
|
|
80
|
-
rows,
|
|
81
|
-
columns,
|
|
82
|
-
getRowId,
|
|
83
|
-
isLoading,
|
|
84
|
-
empty: empty ?? texts.empty,
|
|
85
|
-
selectedRowKey,
|
|
86
|
-
selectedRef,
|
|
87
|
-
onRowClick,
|
|
88
|
-
rowClassName,
|
|
89
|
-
renderExpandedRow,
|
|
90
|
-
expandedRowKeys,
|
|
91
|
-
groupBy,
|
|
92
|
-
renderGroupHeader
|
|
93
|
-
}
|
|
94
|
-
)
|
|
95
|
-
] }) }),
|
|
96
|
-
hasMore && onLoadMore && /* @__PURE__ */ jsx("div", { className: styles.loadMore, children: /* @__PURE__ */ jsx(
|
|
97
|
-
"button",
|
|
98
|
-
{
|
|
99
|
-
type: "button",
|
|
100
|
-
className: styles.loadMoreButton,
|
|
101
|
-
onClick: onLoadMore,
|
|
102
|
-
disabled: isFetchingNext,
|
|
103
|
-
children: isFetchingNext ? texts.loadingMore : texts.loadMore
|
|
104
|
-
}
|
|
105
|
-
) })
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
);
|
|
109
|
-
};
|
|
110
|
-
LiveExplorerTable.displayName = "LiveExplorerTable";
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from "react";
|
|
3
|
+
import { clsx } from "./index65.js";
|
|
4
|
+
import styles from "./index125.js";
|
|
5
|
+
const Input = forwardRef(
|
|
6
|
+
({ className, type = "text", ...props }, ref) => /* @__PURE__ */ jsx("input", { ref, type, className: clsx(styles.root, className), ...props })
|
|
7
|
+
);
|
|
8
|
+
Input.displayName = "Input";
|
|
111
9
|
export {
|
|
112
|
-
|
|
10
|
+
Input
|
|
113
11
|
};
|
|
114
12
|
//# sourceMappingURL=index37.js.map
|
package/dist/index37.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index37.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index37.js","sources":["../src/primitives/Input/Input.tsx"],"sourcesContent":["import { forwardRef } from 'react';\nimport clsx from 'clsx';\nimport styles from './Input.module.css';\n\nexport interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {}\n\nexport const Input = forwardRef<HTMLInputElement, InputProps>(\n ({ className, type = 'text', ...props }, ref) => (\n <input ref={ref} type={type} className={clsx(styles.root, className)} {...props} />\n ),\n);\n\nInput.displayName = 'Input';\n"],"names":[],"mappings":";;;;AAMO,MAAM,QAAQ;AAAA,EACnB,CAAC,EAAE,WAAW,OAAO,QAAQ,GAAG,SAAS,QACvC,oBAAC,WAAM,KAAU,MAAY,WAAW,KAAK,OAAO,MAAM,SAAS,GAAI,GAAG,MAAA,CAAO;AAErF;AAEA,MAAM,cAAc;"}
|
package/dist/index38.cjs
CHANGED
|
@@ -2,59 +2,113 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const react = require("react");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
5
|
+
const clsx = require("./index65.cjs");
|
|
6
|
+
const defaults = require("./index27.cjs");
|
|
7
|
+
const useComponentLabels = require("./index68.cjs");
|
|
8
|
+
const LiveExplorerHeaderCell = require("./index135.cjs");
|
|
9
|
+
const LiveExplorerBody = require("./index136.cjs");
|
|
10
|
+
const nextSortState = require("./index137.cjs");
|
|
11
|
+
const useColumnResize = require("./index138.cjs");
|
|
12
|
+
const LiveExplorerTable_module = require("./index139.cjs");
|
|
13
|
+
const LABEL_GROUPS = ["liveExplorerTable"];
|
|
14
|
+
const NO_EXPANDED_ROWS = [];
|
|
15
|
+
const defaultRowId = (row) => row.id;
|
|
16
|
+
const LiveExplorerTable = (props) => {
|
|
17
|
+
const {
|
|
18
|
+
rows,
|
|
19
|
+
columns,
|
|
20
|
+
getRowId = defaultRowId,
|
|
21
|
+
sortState = null,
|
|
22
|
+
onSortChange,
|
|
23
|
+
isLoading = false,
|
|
24
|
+
hasMore = false,
|
|
25
|
+
isFetchingNext = false,
|
|
26
|
+
onLoadMore,
|
|
27
|
+
onColumnResize,
|
|
28
|
+
onRowClick,
|
|
29
|
+
selectedRowKey = null,
|
|
30
|
+
scrollToSelectedRow = false,
|
|
31
|
+
variant,
|
|
32
|
+
maxHeight,
|
|
33
|
+
rowClassName,
|
|
34
|
+
empty,
|
|
35
|
+
renderExpandedRow,
|
|
36
|
+
expandedRowKeys = NO_EXPANDED_ROWS,
|
|
37
|
+
groupBy,
|
|
38
|
+
renderGroupHeader,
|
|
39
|
+
className,
|
|
40
|
+
labels
|
|
41
|
+
} = props;
|
|
42
|
+
const texts = useComponentLabels.useComponentLabels(
|
|
43
|
+
defaults.DEFAULT_COMPONENT_LABELS.liveExplorerTable,
|
|
44
|
+
LABEL_GROUPS,
|
|
45
|
+
labels
|
|
46
|
+
);
|
|
47
|
+
const selectedRef = react.useRef(null);
|
|
48
|
+
const handleResizeStart = useColumnResize.useColumnResize(columns, onColumnResize);
|
|
49
|
+
react.useEffect(() => {
|
|
50
|
+
if (scrollToSelectedRow && selectedRef.current) {
|
|
51
|
+
selectedRef.current.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
52
|
+
}
|
|
53
|
+
}, [scrollToSelectedRow, selectedRowKey]);
|
|
54
|
+
const handleSort = react.useCallback(
|
|
55
|
+
(column) => onSortChange == null ? void 0 : onSortChange(nextSortState.nextSortState(sortState, column)),
|
|
56
|
+
[onSortChange, sortState]
|
|
57
|
+
);
|
|
58
|
+
const rootStyle = maxHeight ? { maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight } : void 0;
|
|
59
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
60
|
+
"div",
|
|
61
|
+
{
|
|
62
|
+
className: clsx.clsx(LiveExplorerTable_module.default.root, variant && LiveExplorerTable_module.default[variant], className),
|
|
63
|
+
style: rootStyle,
|
|
64
|
+
"data-part": "root",
|
|
65
|
+
"data-variant": variant,
|
|
66
|
+
children: [
|
|
67
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: LiveExplorerTable_module.default.tableContainer, "data-part": "scroll", children: /* @__PURE__ */ jsxRuntime.jsxs("table", { className: LiveExplorerTable_module.default.table, children: [
|
|
68
|
+
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsx("tr", { children: columns.map((col) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
69
|
+
LiveExplorerHeaderCell.LiveExplorerHeaderCell,
|
|
70
|
+
{
|
|
71
|
+
column: col,
|
|
72
|
+
sortState,
|
|
73
|
+
onSort: handleSort,
|
|
74
|
+
sortByLabel: texts.sortBy,
|
|
75
|
+
onResizeStart: onColumnResize ? handleResizeStart : void 0
|
|
76
|
+
},
|
|
77
|
+
col.key
|
|
78
|
+
)) }) }),
|
|
79
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
80
|
+
LiveExplorerBody.LiveExplorerBody,
|
|
81
|
+
{
|
|
82
|
+
rows,
|
|
83
|
+
columns,
|
|
84
|
+
getRowId,
|
|
85
|
+
isLoading,
|
|
86
|
+
empty: empty ?? texts.empty,
|
|
87
|
+
selectedRowKey,
|
|
88
|
+
selectedRef,
|
|
89
|
+
onRowClick,
|
|
90
|
+
rowClassName,
|
|
91
|
+
renderExpandedRow,
|
|
92
|
+
expandedRowKeys,
|
|
93
|
+
groupBy,
|
|
94
|
+
renderGroupHeader
|
|
95
|
+
}
|
|
96
|
+
)
|
|
97
|
+
] }) }),
|
|
98
|
+
hasMore && onLoadMore && /* @__PURE__ */ jsxRuntime.jsx("div", { className: LiveExplorerTable_module.default.loadMore, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
99
|
+
"button",
|
|
100
|
+
{
|
|
101
|
+
type: "button",
|
|
102
|
+
className: LiveExplorerTable_module.default.loadMoreButton,
|
|
103
|
+
onClick: onLoadMore,
|
|
104
|
+
disabled: isFetchingNext,
|
|
105
|
+
children: isFetchingNext ? texts.loadingMore : texts.loadMore
|
|
106
|
+
}
|
|
107
|
+
) })
|
|
108
|
+
]
|
|
32
109
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
onClose: closable ? onClose ?? noop : noop,
|
|
38
|
-
className: closable ? void 0 : Loading_module.default.nonClosable,
|
|
39
|
-
title: /* @__PURE__ */ jsxRuntime.jsxs("span", { className: Loading_module.default.titleRow, children: [
|
|
40
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: Loading_module.default.titleSpinner, "aria-hidden": "true" }),
|
|
41
|
-
title
|
|
42
|
-
] }),
|
|
43
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: Loading_module.default.steps, children: labels.map((label, index) => {
|
|
44
|
-
const status = index < activeIndex ? "done" : index === activeIndex ? "active" : "pending";
|
|
45
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("li", { className: clsx.clsx(Loading_module.default.step, Loading_module.default[status]), children: [
|
|
46
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: Loading_module.default.iconSlot, "aria-hidden": "true", children: [
|
|
47
|
-
status === "done" && /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { size: constants.ICON_SIZE.MD, className: Loading_module.default.checkIcon }),
|
|
48
|
-
status === "active" && /* @__PURE__ */ jsxRuntime.jsx("span", { className: Loading_module.default.stepSpinner })
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label })
|
|
51
|
-
] }, label);
|
|
52
|
-
}) })
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
}
|
|
56
|
-
);
|
|
57
|
-
LoadingBase.displayName = "Loading";
|
|
58
|
-
const Loading = react.memo(LoadingBase);
|
|
59
|
-
exports.Loading = Loading;
|
|
110
|
+
);
|
|
111
|
+
};
|
|
112
|
+
LiveExplorerTable.displayName = "LiveExplorerTable";
|
|
113
|
+
exports.LiveExplorerTable = LiveExplorerTable;
|
|
60
114
|
//# sourceMappingURL=index38.cjs.map
|
package/dist/index38.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.cjs","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index38.cjs","sources":["../src/data/LiveExplorerTable/LiveExplorerTable.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport type {\n LiveExplorerRow,\n LiveExplorerTableProps,\n LiveExplorerTableResolvedProps,\n} from './LiveExplorerTable.types';\nimport { DEFAULT_COMPONENT_LABELS } from '../../labels/defaults';\nimport { useComponentLabels } from '../../labels/useComponentLabels';\nimport { LiveExplorerHeaderCell } from './LiveExplorerHeaderCell';\nimport { LiveExplorerBody } from './LiveExplorerBody';\nimport { nextSortState } from './nextSortState';\nimport { useColumnResize } from './useColumnResize';\nimport styles from './LiveExplorerTable.module.css';\n\nconst LABEL_GROUPS = ['liveExplorerTable'] as const;\nconst NO_EXPANDED_ROWS: string[] = [];\n\nconst defaultRowId = (row: unknown) => (row as LiveExplorerRow).id;\n\nexport const LiveExplorerTable = <Row = LiveExplorerRow, K extends string = string>(\n props: LiveExplorerTableProps<Row, K>,\n) => {\n const {\n rows,\n columns,\n getRowId = defaultRowId,\n sortState = null,\n onSortChange,\n isLoading = false,\n hasMore = false,\n isFetchingNext = false,\n onLoadMore,\n onColumnResize,\n onRowClick,\n selectedRowKey = null,\n scrollToSelectedRow = false,\n variant,\n maxHeight,\n rowClassName,\n empty,\n renderExpandedRow,\n expandedRowKeys = NO_EXPANDED_ROWS,\n groupBy,\n renderGroupHeader,\n className,\n labels,\n } = props as LiveExplorerTableResolvedProps<Row, K>;\n\n const texts = useComponentLabels(\n DEFAULT_COMPONENT_LABELS.liveExplorerTable,\n LABEL_GROUPS,\n labels,\n );\n const selectedRef = useRef<HTMLTableRowElement>(null);\n const handleResizeStart = useColumnResize(columns, onColumnResize);\n\n useEffect(() => {\n if (scrollToSelectedRow && selectedRef.current) {\n selectedRef.current.scrollIntoView({ block: 'nearest', behavior: 'smooth' });\n }\n }, [scrollToSelectedRow, selectedRowKey]);\n\n const handleSort = useCallback(\n (column: K) => onSortChange?.(nextSortState(sortState, column)),\n [onSortChange, sortState],\n );\n\n const rootStyle = maxHeight\n ? { maxHeight: typeof maxHeight === 'number' ? `${maxHeight}px` : maxHeight }\n : undefined;\n\n return (\n <div\n className={clsx(styles.root, variant && styles[variant], className)}\n style={rootStyle}\n data-part=\"root\"\n data-variant={variant}\n >\n <div className={styles.tableContainer} data-part=\"scroll\">\n <table className={styles.table}>\n <thead>\n <tr>\n {columns.map((col) => (\n <LiveExplorerHeaderCell\n key={col.key}\n column={col}\n sortState={sortState}\n onSort={handleSort}\n sortByLabel={texts.sortBy}\n onResizeStart={onColumnResize ? handleResizeStart : undefined}\n />\n ))}\n </tr>\n </thead>\n <LiveExplorerBody\n rows={rows}\n columns={columns}\n getRowId={getRowId}\n isLoading={isLoading}\n empty={empty ?? texts.empty}\n selectedRowKey={selectedRowKey}\n selectedRef={selectedRef}\n onRowClick={onRowClick}\n rowClassName={rowClassName}\n renderExpandedRow={renderExpandedRow}\n expandedRowKeys={expandedRowKeys}\n groupBy={groupBy}\n renderGroupHeader={renderGroupHeader}\n />\n </table>\n </div>\n\n {hasMore && onLoadMore && (\n <div className={styles.loadMore}>\n <button\n type=\"button\"\n className={styles.loadMoreButton}\n onClick={onLoadMore}\n disabled={isFetchingNext}\n >\n {isFetchingNext ? texts.loadingMore : texts.loadMore}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nLiveExplorerTable.displayName = 'LiveExplorerTable';\n"],"names":["useComponentLabels","DEFAULT_COMPONENT_LABELS","useRef","useColumnResize","useEffect","useCallback","nextSortState","jsxs","clsx","styles","jsx","LiveExplorerHeaderCell","LiveExplorerBody"],"mappings":"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"}
|
package/dist/index38.js
CHANGED
|
@@ -1,60 +1,114 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useRef, useEffect, useCallback } from "react";
|
|
3
|
+
import { clsx } from "./index65.js";
|
|
4
|
+
import { DEFAULT_COMPONENT_LABELS } from "./index27.js";
|
|
5
|
+
import { useComponentLabels } from "./index68.js";
|
|
6
|
+
import { LiveExplorerHeaderCell } from "./index135.js";
|
|
7
|
+
import { LiveExplorerBody } from "./index136.js";
|
|
8
|
+
import { nextSortState } from "./index137.js";
|
|
9
|
+
import { useColumnResize } from "./index138.js";
|
|
10
|
+
import styles from "./index139.js";
|
|
11
|
+
const LABEL_GROUPS = ["liveExplorerTable"];
|
|
12
|
+
const NO_EXPANDED_ROWS = [];
|
|
13
|
+
const defaultRowId = (row) => row.id;
|
|
14
|
+
const LiveExplorerTable = (props) => {
|
|
15
|
+
const {
|
|
16
|
+
rows,
|
|
17
|
+
columns,
|
|
18
|
+
getRowId = defaultRowId,
|
|
19
|
+
sortState = null,
|
|
20
|
+
onSortChange,
|
|
21
|
+
isLoading = false,
|
|
22
|
+
hasMore = false,
|
|
23
|
+
isFetchingNext = false,
|
|
24
|
+
onLoadMore,
|
|
25
|
+
onColumnResize,
|
|
26
|
+
onRowClick,
|
|
27
|
+
selectedRowKey = null,
|
|
28
|
+
scrollToSelectedRow = false,
|
|
29
|
+
variant,
|
|
30
|
+
maxHeight,
|
|
31
|
+
rowClassName,
|
|
32
|
+
empty,
|
|
33
|
+
renderExpandedRow,
|
|
34
|
+
expandedRowKeys = NO_EXPANDED_ROWS,
|
|
35
|
+
groupBy,
|
|
36
|
+
renderGroupHeader,
|
|
37
|
+
className,
|
|
38
|
+
labels
|
|
39
|
+
} = props;
|
|
40
|
+
const texts = useComponentLabels(
|
|
41
|
+
DEFAULT_COMPONENT_LABELS.liveExplorerTable,
|
|
42
|
+
LABEL_GROUPS,
|
|
43
|
+
labels
|
|
44
|
+
);
|
|
45
|
+
const selectedRef = useRef(null);
|
|
46
|
+
const handleResizeStart = useColumnResize(columns, onColumnResize);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
if (scrollToSelectedRow && selectedRef.current) {
|
|
49
|
+
selectedRef.current.scrollIntoView({ block: "nearest", behavior: "smooth" });
|
|
50
|
+
}
|
|
51
|
+
}, [scrollToSelectedRow, selectedRowKey]);
|
|
52
|
+
const handleSort = useCallback(
|
|
53
|
+
(column) => onSortChange == null ? void 0 : onSortChange(nextSortState(sortState, column)),
|
|
54
|
+
[onSortChange, sortState]
|
|
55
|
+
);
|
|
56
|
+
const rootStyle = maxHeight ? { maxHeight: typeof maxHeight === "number" ? `${maxHeight}px` : maxHeight } : void 0;
|
|
57
|
+
return /* @__PURE__ */ jsxs(
|
|
58
|
+
"div",
|
|
59
|
+
{
|
|
60
|
+
className: clsx(styles.root, variant && styles[variant], className),
|
|
61
|
+
style: rootStyle,
|
|
62
|
+
"data-part": "root",
|
|
63
|
+
"data-variant": variant,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ jsx("div", { className: styles.tableContainer, "data-part": "scroll", children: /* @__PURE__ */ jsxs("table", { className: styles.table, children: [
|
|
66
|
+
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsx("tr", { children: columns.map((col) => /* @__PURE__ */ jsx(
|
|
67
|
+
LiveExplorerHeaderCell,
|
|
68
|
+
{
|
|
69
|
+
column: col,
|
|
70
|
+
sortState,
|
|
71
|
+
onSort: handleSort,
|
|
72
|
+
sortByLabel: texts.sortBy,
|
|
73
|
+
onResizeStart: onColumnResize ? handleResizeStart : void 0
|
|
74
|
+
},
|
|
75
|
+
col.key
|
|
76
|
+
)) }) }),
|
|
77
|
+
/* @__PURE__ */ jsx(
|
|
78
|
+
LiveExplorerBody,
|
|
79
|
+
{
|
|
80
|
+
rows,
|
|
81
|
+
columns,
|
|
82
|
+
getRowId,
|
|
83
|
+
isLoading,
|
|
84
|
+
empty: empty ?? texts.empty,
|
|
85
|
+
selectedRowKey,
|
|
86
|
+
selectedRef,
|
|
87
|
+
onRowClick,
|
|
88
|
+
rowClassName,
|
|
89
|
+
renderExpandedRow,
|
|
90
|
+
expandedRowKeys,
|
|
91
|
+
groupBy,
|
|
92
|
+
renderGroupHeader
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] }) }),
|
|
96
|
+
hasMore && onLoadMore && /* @__PURE__ */ jsx("div", { className: styles.loadMore, children: /* @__PURE__ */ jsx(
|
|
97
|
+
"button",
|
|
98
|
+
{
|
|
99
|
+
type: "button",
|
|
100
|
+
className: styles.loadMoreButton,
|
|
101
|
+
onClick: onLoadMore,
|
|
102
|
+
disabled: isFetchingNext,
|
|
103
|
+
children: isFetchingNext ? texts.loadingMore : texts.loadMore
|
|
104
|
+
}
|
|
105
|
+
) })
|
|
106
|
+
]
|
|
30
107
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
open,
|
|
35
|
-
onClose: closable ? onClose ?? noop : noop,
|
|
36
|
-
className: closable ? void 0 : styles.nonClosable,
|
|
37
|
-
title: /* @__PURE__ */ jsxs("span", { className: styles.titleRow, children: [
|
|
38
|
-
/* @__PURE__ */ jsx("span", { className: styles.titleSpinner, "aria-hidden": "true" }),
|
|
39
|
-
title
|
|
40
|
-
] }),
|
|
41
|
-
children: /* @__PURE__ */ jsx("ul", { className: styles.steps, children: labels.map((label, index) => {
|
|
42
|
-
const status = index < activeIndex ? "done" : index === activeIndex ? "active" : "pending";
|
|
43
|
-
return /* @__PURE__ */ jsxs("li", { className: clsx(styles.step, styles[status]), children: [
|
|
44
|
-
/* @__PURE__ */ jsxs("span", { className: styles.iconSlot, "aria-hidden": "true", children: [
|
|
45
|
-
status === "done" && /* @__PURE__ */ jsx(Check, { size: ICON_SIZE.MD, className: styles.checkIcon }),
|
|
46
|
-
status === "active" && /* @__PURE__ */ jsx("span", { className: styles.stepSpinner })
|
|
47
|
-
] }),
|
|
48
|
-
/* @__PURE__ */ jsx("span", { children: label })
|
|
49
|
-
] }, label);
|
|
50
|
-
}) })
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
LoadingBase.displayName = "Loading";
|
|
56
|
-
const Loading = memo(LoadingBase);
|
|
108
|
+
);
|
|
109
|
+
};
|
|
110
|
+
LiveExplorerTable.displayName = "LiveExplorerTable";
|
|
57
111
|
export {
|
|
58
|
-
|
|
112
|
+
LiveExplorerTable
|
|
59
113
|
};
|
|
60
114
|
//# sourceMappingURL=index38.js.map
|
package/dist/index38.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index38.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index38.js","sources":["../src/data/LiveExplorerTable/LiveExplorerTable.tsx"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\nimport clsx from 'clsx';\nimport type {\n LiveExplorerRow,\n LiveExplorerTableProps,\n LiveExplorerTableResolvedProps,\n} from './LiveExplorerTable.types';\nimport { DEFAULT_COMPONENT_LABELS } from '../../labels/defaults';\nimport { useComponentLabels } from '../../labels/useComponentLabels';\nimport { LiveExplorerHeaderCell } from './LiveExplorerHeaderCell';\nimport { LiveExplorerBody } from './LiveExplorerBody';\nimport { nextSortState } from './nextSortState';\nimport { useColumnResize } from './useColumnResize';\nimport styles from './LiveExplorerTable.module.css';\n\nconst LABEL_GROUPS = ['liveExplorerTable'] as const;\nconst NO_EXPANDED_ROWS: string[] = [];\n\nconst defaultRowId = (row: unknown) => (row as LiveExplorerRow).id;\n\nexport const LiveExplorerTable = <Row = LiveExplorerRow, K extends string = string>(\n props: LiveExplorerTableProps<Row, K>,\n) => {\n const {\n rows,\n columns,\n getRowId = defaultRowId,\n sortState = null,\n onSortChange,\n isLoading = false,\n hasMore = false,\n isFetchingNext = false,\n onLoadMore,\n onColumnResize,\n onRowClick,\n selectedRowKey = null,\n scrollToSelectedRow = false,\n variant,\n maxHeight,\n rowClassName,\n empty,\n renderExpandedRow,\n expandedRowKeys = NO_EXPANDED_ROWS,\n groupBy,\n renderGroupHeader,\n className,\n labels,\n } = props as LiveExplorerTableResolvedProps<Row, K>;\n\n const texts = useComponentLabels(\n DEFAULT_COMPONENT_LABELS.liveExplorerTable,\n LABEL_GROUPS,\n labels,\n );\n const selectedRef = useRef<HTMLTableRowElement>(null);\n const handleResizeStart = useColumnResize(columns, onColumnResize);\n\n useEffect(() => {\n if (scrollToSelectedRow && selectedRef.current) {\n selectedRef.current.scrollIntoView({ block: 'nearest', behavior: 'smooth' });\n }\n }, [scrollToSelectedRow, selectedRowKey]);\n\n const handleSort = useCallback(\n (column: K) => onSortChange?.(nextSortState(sortState, column)),\n [onSortChange, sortState],\n );\n\n const rootStyle = maxHeight\n ? { maxHeight: typeof maxHeight === 'number' ? `${maxHeight}px` : maxHeight }\n : undefined;\n\n return (\n <div\n className={clsx(styles.root, variant && styles[variant], className)}\n style={rootStyle}\n data-part=\"root\"\n data-variant={variant}\n >\n <div className={styles.tableContainer} data-part=\"scroll\">\n <table className={styles.table}>\n <thead>\n <tr>\n {columns.map((col) => (\n <LiveExplorerHeaderCell\n key={col.key}\n column={col}\n sortState={sortState}\n onSort={handleSort}\n sortByLabel={texts.sortBy}\n onResizeStart={onColumnResize ? handleResizeStart : undefined}\n />\n ))}\n </tr>\n </thead>\n <LiveExplorerBody\n rows={rows}\n columns={columns}\n getRowId={getRowId}\n isLoading={isLoading}\n empty={empty ?? texts.empty}\n selectedRowKey={selectedRowKey}\n selectedRef={selectedRef}\n onRowClick={onRowClick}\n rowClassName={rowClassName}\n renderExpandedRow={renderExpandedRow}\n expandedRowKeys={expandedRowKeys}\n groupBy={groupBy}\n renderGroupHeader={renderGroupHeader}\n />\n </table>\n </div>\n\n {hasMore && onLoadMore && (\n <div className={styles.loadMore}>\n <button\n type=\"button\"\n className={styles.loadMoreButton}\n onClick={onLoadMore}\n disabled={isFetchingNext}\n >\n {isFetchingNext ? texts.loadingMore : texts.loadMore}\n </button>\n </div>\n )}\n </div>\n );\n};\n\nLiveExplorerTable.displayName = 'LiveExplorerTable';\n"],"names":[],"mappings":";;;;;;;;;;AAeA,MAAM,eAAe,CAAC,mBAAmB;AACzC,MAAM,mBAA6B,CAAA;AAEnC,MAAM,eAAe,CAAC,QAAkB,IAAwB;AAEzD,MAAM,oBAAoB,CAC/B,UACG;AACH,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,WAAW;AAAA,IACX,YAAY;AAAA,IACZ;AAAA,IACA,YAAY;AAAA,IACZ,UAAU;AAAA,IACV,iBAAiB;AAAA,IACjB;AAAA,IACA;AAAA,IACA;AAAA,IACA,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,kBAAkB;AAAA,IAClB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,IACE;AAEJ,QAAM,QAAQ;AAAA,IACZ,yBAAyB;AAAA,IACzB;AAAA,IACA;AAAA,EAAA;AAEF,QAAM,cAAc,OAA4B,IAAI;AACpD,QAAM,oBAAoB,gBAAgB,SAAS,cAAc;AAEjE,YAAU,MAAM;AACd,QAAI,uBAAuB,YAAY,SAAS;AAC9C,kBAAY,QAAQ,eAAe,EAAE,OAAO,WAAW,UAAU,UAAU;AAAA,IAC7E;AAAA,EACF,GAAG,CAAC,qBAAqB,cAAc,CAAC;AAExC,QAAM,aAAa;AAAA,IACjB,CAAC,WAAc,6CAAe,cAAc,WAAW,MAAM;AAAA,IAC7D,CAAC,cAAc,SAAS;AAAA,EAAA;AAG1B,QAAM,YAAY,YACd,EAAE,WAAW,OAAO,cAAc,WAAW,GAAG,SAAS,OAAO,UAAA,IAChE;AAEJ,SACE;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,KAAK,OAAO,MAAM,WAAW,OAAO,OAAO,GAAG,SAAS;AAAA,MAClE,OAAO;AAAA,MACP,aAAU;AAAA,MACV,gBAAc;AAAA,MAEd,UAAA;AAAA,QAAA,oBAAC,OAAA,EAAI,WAAW,OAAO,gBAAgB,aAAU,UAC/C,UAAA,qBAAC,SAAA,EAAM,WAAW,OAAO,OACvB,UAAA;AAAA,UAAA,oBAAC,WACC,UAAA,oBAAC,MAAA,EACE,UAAA,QAAQ,IAAI,CAAC,QACZ;AAAA,YAAC;AAAA,YAAA;AAAA,cAEC,QAAQ;AAAA,cACR;AAAA,cACA,QAAQ;AAAA,cACR,aAAa,MAAM;AAAA,cACnB,eAAe,iBAAiB,oBAAoB;AAAA,YAAA;AAAA,YAL/C,IAAI;AAAA,UAAA,CAOZ,GACH,EAAA,CACF;AAAA,UACA;AAAA,YAAC;AAAA,YAAA;AAAA,cACC;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA,OAAO,SAAS,MAAM;AAAA,cACtB;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,cACA;AAAA,YAAA;AAAA,UAAA;AAAA,QACF,EAAA,CACF,EAAA,CACF;AAAA,QAEC,WAAW,cACV,oBAAC,OAAA,EAAI,WAAW,OAAO,UACrB,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,MAAK;AAAA,YACL,WAAW,OAAO;AAAA,YAClB,SAAS;AAAA,YACT,UAAU;AAAA,YAET,UAAA,iBAAiB,MAAM,cAAc,MAAM;AAAA,UAAA;AAAA,QAAA,EAC9C,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR;AAEA,kBAAkB,cAAc;"}
|