se-design 1.0.75 → 1.0.76-dev1
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/assets/style.css +1 -1
- package/dist/components/AccessibleDiv/index.d.ts +24 -0
- package/dist/components/Checkbox/index.d.ts +12 -0
- package/dist/components/CustomAccordion/index.d.ts +1 -0
- package/dist/components/CustomModal/index.d.ts +15 -12
- package/dist/components/DatePicker/useDatePickerA11y.d.ts +50 -0
- package/dist/components/Dropdown/index.d.ts +13 -0
- package/dist/components/Icon/index.d.ts +8 -2
- package/dist/components/InputWithIcon/index.d.ts +9 -1
- package/dist/components/LabelChip/index.d.ts +1 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/PhoneInput/index.d.ts +13 -5
- package/dist/components/Popover/index.d.ts +2 -0
- package/dist/components/SidebarOverlay/index.d.ts +8 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +144 -133
- package/dist/index.js.map +1 -1
- package/dist/index10.js +23 -59
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +1 -1
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +2 -2
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +2 -2
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +1 -1
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +2 -2
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +2 -2
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +2 -2
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +70 -63
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +2 -2
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +1 -1
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +1 -1
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +2 -2
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +2 -2
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +1 -1
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +1 -1
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +1 -1
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +2 -2
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +1 -1
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +71 -34
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +2 -2
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +2 -2
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +2 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +2 -2
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +1 -1
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +1 -1
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +1 -1
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +1 -1
- package/dist/index129.js.map +1 -1
- package/dist/index13.js +50 -14
- package/dist/index13.js.map +1 -1
- package/dist/index130.js +2 -2
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +1 -1
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +2 -2
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +1 -1
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +1 -1
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +1 -1
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +1 -1
- package/dist/index139.js.map +1 -1
- package/dist/index14.js +15 -9
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +1 -1
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +2 -2
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +1 -1
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +2 -2
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +2 -2
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +1 -1
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +2 -2
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +2 -2
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +1 -1
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +1 -1
- package/dist/index149.js.map +1 -1
- package/dist/index15.js +10 -218
- package/dist/index15.js.map +1 -1
- package/dist/index150.js +2 -2
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -2
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +1 -1
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +2 -2
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +2 -2
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +1 -1
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +1 -1
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +1 -1
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +1 -1
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +1 -1
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +220 -60
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +1 -1
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +1 -1
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +1 -1
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +1 -1
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +1 -1
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +1 -1
- package/dist/index169.js.map +1 -1
- package/dist/index17.js +60 -99
- package/dist/index17.js.map +1 -1
- package/dist/index170.js +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +1 -1
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +1 -1
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +2 -2
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +1 -1
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +2 -2
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +95 -282
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +2 -2
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +1 -1
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +1 -1
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +2 -2
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +1 -1
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +1 -1
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +2 -2
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +2 -2
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +317 -16
- package/dist/index19.js.map +1 -1
- package/dist/index190.js +2 -149
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +2 -9
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +2 -6
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +2 -5
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +2 -40
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +2 -59
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -23
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +152 -0
- package/dist/index197.js.map +1 -0
- package/dist/index198.js +12 -0
- package/dist/index198.js.map +1 -0
- package/dist/index199.js +5 -23
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +15 -31
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +8 -0
- package/dist/index200.js.map +1 -0
- package/dist/index201.js +36 -80
- package/dist/index201.js.map +1 -1
- package/dist/index206.js +26 -0
- package/dist/index206.js.map +1 -0
- package/dist/index207.js +71 -0
- package/dist/index207.js.map +1 -0
- package/dist/index21.js +33 -61
- package/dist/index21.js.map +1 -1
- package/dist/{index210.js → index215.js} +1 -1
- package/dist/{index210.js.map → index215.js.map} +1 -1
- package/dist/index22.js +57 -76
- package/dist/index22.js.map +1 -1
- package/dist/{index218.js → index223.js} +1 -1
- package/dist/{index218.js.map → index223.js.map} +1 -1
- package/dist/{index221.js → index226.js} +2 -2
- package/dist/{index221.js.map → index226.js.map} +1 -1
- package/dist/index23.js +83 -21
- package/dist/index23.js.map +1 -1
- package/dist/index235.js +171 -8
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +3 -9
- package/dist/index236.js.map +1 -1
- package/dist/index238.js +18 -169
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +10 -11
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +20 -222
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +8 -4
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +4 -5
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +168 -36
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +11 -2
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -7
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +5 -326
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +36 -48
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +2 -2
- package/dist/index248.js +7 -75
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +308 -74
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +289 -43
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +45 -47
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +2 -8
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +75 -4
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +89 -48
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +52 -2
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +8 -2
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +8 -0
- package/dist/index256.js.map +1 -0
- package/dist/index257.js +55 -0
- package/dist/index257.js.map +1 -0
- package/dist/index258.js +5 -0
- package/dist/index258.js.map +1 -0
- package/dist/index259.js +5 -0
- package/dist/index259.js.map +1 -0
- package/dist/index26.js +48 -23
- package/dist/index26.js.map +1 -1
- package/dist/index27.js +21 -81
- package/dist/index27.js.map +1 -1
- package/dist/index28.js +101 -138
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +139 -128
- package/dist/index29.js.map +1 -1
- package/dist/index3.js +57 -98
- package/dist/index3.js.map +1 -1
- package/dist/index30.js +133 -69
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +67 -96
- package/dist/index31.js.map +1 -1
- package/dist/index32.js +96 -71
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +70 -38
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +40 -71
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +67 -82
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +99 -54
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +53 -280
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +281 -70
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +69 -80
- package/dist/index39.js.map +1 -1
- package/dist/index4.js +102 -42
- package/dist/index4.js.map +1 -1
- package/dist/index40.js +82 -32
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +26 -44
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +45 -67
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +65 -49
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +53 -139
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +132 -179
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +194 -35
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +34 -29
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +31 -145
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +131 -70
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +40 -315
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +80 -371
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +451 -91
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +98 -38
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +35 -35
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +35 -90
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +89 -159
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +157 -143
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +149 -33
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +33 -86
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +80 -113
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +323 -43
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +114 -62
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +62 -147
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +146 -312
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +317 -44
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +44 -143
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +145 -12
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +10 -44
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +42 -15
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +76 -48
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +18 -58
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +44 -51
- package/dist/index7.js.map +1 -1
- package/dist/index70.js +66 -5
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +25 -7
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +105 -0
- package/dist/index72.js.map +1 -0
- package/dist/index73.js +62 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +21 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +5 -2
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +54 -2
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +24 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +9 -2
- package/dist/index78.js.map +1 -1
- package/dist/index8.js +48 -85
- package/dist/index8.js.map +1 -1
- package/dist/index80.js +2 -2
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -2
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +1 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +2 -2
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +1 -1
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +1 -1
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +1 -1
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +1 -1
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +1 -1
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +91 -27
- package/dist/index9.js.map +1 -1
- package/dist/index90.js +1 -1
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +1 -1
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +1 -1
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +1 -1
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +1 -1
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +1 -1
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +1 -1
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +1 -1
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +1 -1
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +1 -1
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/index230.js +0 -7
- package/dist/index230.js.map +0 -1
- package/dist/index232.js +0 -25
- package/dist/index232.js.map +0 -1
- package/dist/index233.js +0 -57
- package/dist/index233.js.map +0 -1
- package/dist/index234.js +0 -22
- package/dist/index234.js.map +0 -1
- package/dist/index237.js +0 -8
- package/dist/index237.js.map +0 -1
- package/dist/index79.js +0 -5
- package/dist/index79.js.map +0 -1
package/dist/index18.js
CHANGED
|
@@ -1,293 +1,106 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
for (var
|
|
8
|
-
var
|
|
9
|
-
for (var
|
|
1
|
+
import t, { forwardRef as k, useState as C, useMemo as g } from "react";
|
|
2
|
+
import { MenuItem as F } from "./index17.js";
|
|
3
|
+
import { InputWithIcon as P } from "./index52.js";
|
|
4
|
+
import { useRovingFocus as S } from "./index70.js";
|
|
5
|
+
function i() {
|
|
6
|
+
return i = Object.assign ? Object.assign.bind() : function(a) {
|
|
7
|
+
for (var o = 1; o < arguments.length; o++) {
|
|
8
|
+
var n = arguments[o];
|
|
9
|
+
for (var l in n) ({}).hasOwnProperty.call(n, l) && (a[l] = n[l]);
|
|
10
10
|
}
|
|
11
|
-
return
|
|
12
|
-
},
|
|
11
|
+
return a;
|
|
12
|
+
}, i.apply(null, arguments);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
borderColor: "var(--color-gray-200)",
|
|
32
|
-
color: "var(--color-gray-900)",
|
|
33
|
-
backgroundColor: "var(--color-white)"
|
|
34
|
-
},
|
|
35
|
-
disableClickToggle: b = !1,
|
|
36
|
-
noBorder: Z = !1,
|
|
37
|
-
disableAutoClose: m = !1,
|
|
38
|
-
...ee
|
|
39
|
-
}, te) => {
|
|
40
|
-
const [i, f] = F(!1), [g, $] = F(p), [oe, j] = F(!1), l = J(null), c = J(null), ne = ue({
|
|
41
|
-
ariaLabel: W,
|
|
42
|
-
ariaLabelledBy: Y,
|
|
43
|
-
ariaDescribedBy: void 0
|
|
44
|
-
// Popover doesn't support describedBy yet
|
|
45
|
-
}), {
|
|
46
|
-
onBlurCapture: re
|
|
47
|
-
} = pe({
|
|
48
|
-
disabled: !i || m || d,
|
|
49
|
-
onFocusOut: () => f(!1),
|
|
50
|
-
closeOnEscape: !1
|
|
51
|
-
}), [M, E] = F({
|
|
52
|
-
top: 0,
|
|
53
|
-
left: 0
|
|
54
|
-
}), x = (e = "bottom-center") => {
|
|
55
|
-
if (!l.current) return {
|
|
56
|
-
top: 0,
|
|
57
|
-
left: 0
|
|
58
|
-
};
|
|
59
|
-
let o = e;
|
|
60
|
-
const t = l.current.getBoundingClientRect(), n = window.innerWidth, a = window.innerHeight;
|
|
61
|
-
let r = 0, s = 0;
|
|
62
|
-
switch (o) {
|
|
63
|
-
case "bottom-left":
|
|
64
|
-
r = t.bottom, s = t.left;
|
|
65
|
-
break;
|
|
66
|
-
case "bottom-right":
|
|
67
|
-
r = t.bottom, s = t.right - t.width * 0.5;
|
|
68
|
-
break;
|
|
69
|
-
case "bottom-center":
|
|
70
|
-
r = t.bottom, s = t.left + t.width / 2;
|
|
71
|
-
break;
|
|
72
|
-
case "top-left":
|
|
73
|
-
r = t.top - t.height * 1.9, s = t.left;
|
|
74
|
-
break;
|
|
75
|
-
case "top-right":
|
|
76
|
-
r = t.top - t.height * 1.9, s = t.right - t.width * 0.5;
|
|
77
|
-
break;
|
|
78
|
-
case "top-center":
|
|
79
|
-
r = t.top - t.height * 1.9, s = t.left + t.width / 2;
|
|
80
|
-
break;
|
|
81
|
-
default:
|
|
82
|
-
r = t.bottom, s = t.left;
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
const u = c.current?.getBoundingClientRect(), w = u?.width || 0, v = u?.height || 0;
|
|
86
|
-
if ((o === "bottom-center" || o === "top-center") && (s = s - w / 2), s + w > n && (s = Math.max(0, n - w)), s < 0 && (s = 0), r + v > a) {
|
|
87
|
-
const D = t.top, ce = a - t.bottom;
|
|
88
|
-
D >= v || D > ce ? (r = t.top - v, r < 0 && (r = 0)) : r = Math.max(0, a - v);
|
|
89
|
-
}
|
|
90
|
-
return r < 0 && (r = t.bottom, r + v > a && (r = Math.max(0, a - v))), {
|
|
91
|
-
top: r,
|
|
92
|
-
left: s
|
|
93
|
-
};
|
|
94
|
-
};
|
|
95
|
-
H(() => {
|
|
96
|
-
if (q && q(i), i && !d)
|
|
97
|
-
return m || document.body.addEventListener("click", V, !0), se(), () => {
|
|
98
|
-
m || document.body.removeEventListener("click", V, !0);
|
|
99
|
-
};
|
|
100
|
-
if (i && d) {
|
|
101
|
-
m ? window.addEventListener("scroll", U) : (document.body.addEventListener("click", L, !0), window.addEventListener("scroll", L)), window.addEventListener("resize", T);
|
|
102
|
-
const e = setTimeout(() => {
|
|
103
|
-
const t = x(g);
|
|
104
|
-
S(), t && E(t);
|
|
105
|
-
}, 0), o = setTimeout(() => {
|
|
106
|
-
const t = x(g);
|
|
107
|
-
t && E(t);
|
|
108
|
-
}, 10);
|
|
109
|
-
return () => {
|
|
110
|
-
m ? window.removeEventListener("scroll", U) : (document.body.removeEventListener("click", L, !0), window.removeEventListener("scroll", L)), window.removeEventListener("resize", T), clearTimeout(e), clearTimeout(o);
|
|
111
|
-
};
|
|
112
|
-
}
|
|
113
|
-
}, [i, d, m]);
|
|
114
|
-
const S = () => {
|
|
115
|
-
if (!l.current) {
|
|
116
|
-
j(!1);
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
const e = l.current.getBoundingClientRect(), o = window.innerHeight, t = window.innerWidth, n = e.top < o && e.bottom > 0 && e.left < t && e.right > 0;
|
|
120
|
-
j(n);
|
|
121
|
-
};
|
|
122
|
-
H(() => {
|
|
123
|
-
f(K ?? !1);
|
|
124
|
-
}, [K]), H(() => {
|
|
125
|
-
i && c.current && setTimeout(() => {
|
|
126
|
-
const e = c.current?.querySelector(R);
|
|
127
|
-
e && document.activeElement === l.current && e.focus();
|
|
128
|
-
}, 0);
|
|
129
|
-
}, [i]);
|
|
130
|
-
const se = () => {
|
|
131
|
-
if (!c.current) return;
|
|
132
|
-
const e = c.current.getBoundingClientRect(), o = window.innerHeight;
|
|
133
|
-
e?.bottom > o ? $(p.includes("left") ? "top-left" : p.includes("right") ? "top-right" : "top-center") : e?.top < 0 && $(p.includes("left") ? "bottom-left" : p.includes("right") ? "bottom-right" : "bottom-center");
|
|
134
|
-
}, V = (e) => {
|
|
135
|
-
const o = l.current;
|
|
136
|
-
if (!o) return;
|
|
137
|
-
const t = e.target, n = o.contains(t), a = c.current?.contains(t), s = t.closest?.(".se-design-popover-wrapper"), u = s && s !== o, w = c.current?.contains(s);
|
|
138
|
-
m || (!n && !a || u && !w) && f(!1);
|
|
139
|
-
}, L = (e) => {
|
|
140
|
-
const o = l.current, t = c.current;
|
|
141
|
-
if (!o) return;
|
|
142
|
-
if (S(), e.type === "scroll" && i) {
|
|
143
|
-
const D = x(g);
|
|
144
|
-
D && E(D);
|
|
145
|
-
}
|
|
146
|
-
const n = e.target, a = o.contains(n), r = t?.contains(n), u = n.closest?.(".se-design-popover-wrapper"), w = u && u !== o, v = c.current?.contains(u);
|
|
147
|
-
m || (!a && !r || w && !v) && f(!1);
|
|
148
|
-
}, T = () => {
|
|
149
|
-
if (i && d && l.current) {
|
|
150
|
-
S();
|
|
151
|
-
const e = x(g);
|
|
152
|
-
e && E(e);
|
|
153
|
-
}
|
|
154
|
-
}, U = () => {
|
|
155
|
-
if (i && d && l.current) {
|
|
156
|
-
S();
|
|
157
|
-
const e = x(g);
|
|
158
|
-
e && E(e);
|
|
159
|
-
}
|
|
160
|
-
}, A = (e = !1) => {
|
|
161
|
-
const o = i;
|
|
162
|
-
f((t) => !t), !o && e && setTimeout(() => {
|
|
163
|
-
if (e === "last") {
|
|
164
|
-
const t = c.current?.querySelectorAll(R), n = t ? t[t.length - 1] : null;
|
|
165
|
-
n && n.focus();
|
|
166
|
-
} else {
|
|
167
|
-
const t = c.current?.querySelector(R);
|
|
168
|
-
t && t.focus();
|
|
14
|
+
const O = /* @__PURE__ */ k(({
|
|
15
|
+
items: a,
|
|
16
|
+
maxHeight: o,
|
|
17
|
+
shouldShowSearch: n = !1,
|
|
18
|
+
searchPlaceholder: l = "Search...",
|
|
19
|
+
searchBy: v = "label",
|
|
20
|
+
searchResultEmptyMessage: b = "No results found",
|
|
21
|
+
className: p = ""
|
|
22
|
+
}, I) => {
|
|
23
|
+
const [d, h] = C(""), x = () => d.trim() ? a.filter((e) => (e[v]?.toString().toLowerCase() || "").includes(d.toLowerCase())) : a, w = () => /* @__PURE__ */ t.createElement("div", {
|
|
24
|
+
className: "w-full relative flex items-center border-b border-[var(--color-gray-300)] px-1"
|
|
25
|
+
}, /* @__PURE__ */ t.createElement(P, {
|
|
26
|
+
leftIcon: {
|
|
27
|
+
name: "search",
|
|
28
|
+
position: "left",
|
|
29
|
+
style: {
|
|
30
|
+
color: "var(--color-gray-500)"
|
|
169
31
|
}
|
|
170
|
-
}, 50);
|
|
171
|
-
}, _ = (e, o) => {
|
|
172
|
-
if (!o) return;
|
|
173
|
-
const t = ['[role="menuitem"]', '[role="option"]', '[role="menuitemcheckbox"]', '[role="menuitemradio"]', "button:not([disabled])", "a[href]", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", '[tabindex]:not([tabindex="-1"])'].join(", "), n = Array.from(o.querySelectorAll(t)).filter((s) => {
|
|
174
|
-
const u = window.getComputedStyle(s);
|
|
175
|
-
return !s.hasAttribute("disabled") && !s.hasAttribute("aria-disabled") && u.display !== "none" && u.visibility !== "hidden" && (s.tabIndex >= 0 || s.hasAttribute("role"));
|
|
176
|
-
});
|
|
177
|
-
if (n.length === 0) return;
|
|
178
|
-
const a = n.findIndex((s) => s === document.activeElement);
|
|
179
|
-
let r = -1;
|
|
180
|
-
e.key === "ArrowDown" ? (e.preventDefault(), e.stopPropagation(), r = a < n.length - 1 ? a + 1 : 0) : e.key === "ArrowUp" ? (e.preventDefault(), e.stopPropagation(), r = a > 0 ? a - 1 : n.length - 1) : e.key === "Home" ? (e.preventDefault(), e.stopPropagation(), r = 0) : e.key === "End" && (e.preventDefault(), e.stopPropagation(), r = n.length - 1), r >= 0 && n[r] ? n[r].focus() : a === -1 && n.length > 0 && n[0].focus();
|
|
181
|
-
}, X = (e) => {
|
|
182
|
-
e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), f(!1), l.current?.focus()) : e.key === "Tab" ? (f(!1), e.shiftKey && (e.preventDefault(), l.current?.focus())) : e.key === "ArrowDown" || e.key === "ArrowUp" || e.key === "Home" || e.key === "End" ? _(e, c.current) : (e.key === "Enter" || e.key === " ") && e.stopPropagation();
|
|
183
|
-
};
|
|
184
|
-
le(te, () => ({
|
|
185
|
-
togglePopover: A
|
|
186
|
-
}), []);
|
|
187
|
-
const ie = {
|
|
188
|
-
"bottom-left": {
|
|
189
|
-
left: "0",
|
|
190
|
-
top: "100%"
|
|
191
|
-
},
|
|
192
|
-
"bottom-right": {
|
|
193
|
-
right: "0",
|
|
194
|
-
top: "100%"
|
|
195
32
|
},
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
top: "100%"
|
|
200
|
-
},
|
|
201
|
-
"top-left": {
|
|
202
|
-
left: "0",
|
|
203
|
-
bottom: "100%"
|
|
204
|
-
},
|
|
205
|
-
"top-right": {
|
|
206
|
-
right: "0",
|
|
207
|
-
bottom: "100%"
|
|
208
|
-
},
|
|
209
|
-
"top-center": {
|
|
210
|
-
left: "50%",
|
|
211
|
-
transform: "translateX(-50%)",
|
|
212
|
-
bottom: "100%"
|
|
213
|
-
}
|
|
214
|
-
}, G = Z ? "" : "shadow-md border rounded-md";
|
|
215
|
-
return /* @__PURE__ */ B.createElement("div", O({
|
|
216
|
-
className: "se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md" + (y.length > 0 ? ` ${y}` : "") + (i ? " open" : "") + (P ? " opacity-50 cursor-not-allowed pointer-events-none" : ""),
|
|
217
|
-
ref: l,
|
|
218
|
-
onClick: (e) => {
|
|
219
|
-
P || b || (e.stopPropagation(), A());
|
|
220
|
-
},
|
|
221
|
-
onKeyDown: (e) => {
|
|
222
|
-
if (!(P || b))
|
|
223
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
224
|
-
e.preventDefault(), e.stopPropagation();
|
|
225
|
-
const o = i;
|
|
226
|
-
A(), o || setTimeout(() => {
|
|
227
|
-
const t = c.current;
|
|
228
|
-
if (t) {
|
|
229
|
-
const n = t.querySelector(R);
|
|
230
|
-
n && n.focus();
|
|
231
|
-
}
|
|
232
|
-
}, 0);
|
|
233
|
-
} else if (e.key === "Escape" && i)
|
|
234
|
-
e.preventDefault(), e.stopPropagation(), f(!1);
|
|
235
|
-
else if ((e.key === "ArrowDown" || e.key === "ArrowUp") && i) {
|
|
236
|
-
const o = c.current;
|
|
237
|
-
o && _(e, o);
|
|
238
|
-
} else e.key === "ArrowDown" && !i && (e.preventDefault(), e.stopPropagation(), f(!0), setTimeout(() => {
|
|
239
|
-
const o = c.current;
|
|
240
|
-
if (o) {
|
|
241
|
-
const t = o.querySelector(R);
|
|
242
|
-
t && t.focus();
|
|
243
|
-
}
|
|
244
|
-
}, 0));
|
|
245
|
-
},
|
|
246
|
-
onBlurCapture: re,
|
|
247
|
-
onBlur: (e) => {
|
|
248
|
-
if (!i || m || !d) return;
|
|
249
|
-
const o = e.relatedTarget, t = !!(o && l.current?.contains(o)), n = !!(o && c.current?.contains(o));
|
|
250
|
-
!t && !n && f(!1);
|
|
251
|
-
},
|
|
252
|
-
role: b ? "none" : z,
|
|
253
|
-
"aria-expanded": b ? void 0 : i ? "true" : "false",
|
|
254
|
-
"aria-haspopup": b ? void 0 : z === "combobox" ? "listbox" : "true",
|
|
255
|
-
tabIndex: P || b ? -1 : 0,
|
|
256
|
-
"aria-disabled": b ? void 0 : P ? "true" : "false"
|
|
257
|
-
}, ne, {
|
|
258
|
-
"data-automation-id": k
|
|
259
|
-
}, ee), Q({
|
|
260
|
-
displayPopover: i,
|
|
261
|
-
togglePopover: A
|
|
262
|
-
}), i && !d && /* @__PURE__ */ B.createElement("div", {
|
|
263
|
-
className: `popover-content absolute ${G} z-[1000] ${I == "full" ? "w-full" : "w-max"}`,
|
|
33
|
+
value: d,
|
|
34
|
+
onChange: (e) => h(e),
|
|
35
|
+
placeholder: l,
|
|
264
36
|
style: {
|
|
265
|
-
|
|
266
|
-
|
|
37
|
+
margin: 0,
|
|
38
|
+
gap: 0
|
|
267
39
|
},
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}, N({
|
|
273
|
-
closePopoverCb: () => f(!1)
|
|
274
|
-
})), d && i && oe && /* @__PURE__ */ fe.createPortal(/* @__PURE__ */ B.createElement("div", {
|
|
275
|
-
className: `popover-content-with-portal ${G} ${I == "full" ? "w-full" : "w-max"}`,
|
|
276
|
-
style: {
|
|
277
|
-
position: "fixed",
|
|
278
|
-
top: M.top,
|
|
279
|
-
left: M.left,
|
|
280
|
-
...C
|
|
40
|
+
inputStyle: {
|
|
41
|
+
width: "100%",
|
|
42
|
+
border: "none",
|
|
43
|
+
outline: "none"
|
|
281
44
|
},
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
"
|
|
286
|
-
},
|
|
287
|
-
|
|
288
|
-
|
|
45
|
+
automationId: "se-design-menu-list-search"
|
|
46
|
+
})), c = x(), E = o ? {
|
|
47
|
+
maxHeight: o,
|
|
48
|
+
overflowY: "auto"
|
|
49
|
+
} : {}, m = g(() => {
|
|
50
|
+
const e = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new Set();
|
|
51
|
+
return a.forEach((s, f) => {
|
|
52
|
+
const y = s.id || s.automationId || `menu-item-${f}`;
|
|
53
|
+
let u = y;
|
|
54
|
+
r.has(u) && (u = `${y}-${f}`), r.add(u), e.set(s, u);
|
|
55
|
+
}), e;
|
|
56
|
+
}, [a]), N = g(() => c.filter((e) => e.type !== "header" && e.type !== "separator").map((e) => m.get(e)), [c, m]), {
|
|
57
|
+
getRovingItemProps: $,
|
|
58
|
+
handleKeyDown: M,
|
|
59
|
+
setFocusedId: L,
|
|
60
|
+
getContainerProps: R
|
|
61
|
+
} = S({
|
|
62
|
+
itemIds: N,
|
|
63
|
+
orientation: "vertical",
|
|
64
|
+
loop: !0,
|
|
65
|
+
role: "menu"
|
|
66
|
+
});
|
|
67
|
+
return /* @__PURE__ */ t.createElement("div", i({
|
|
68
|
+
ref: I,
|
|
69
|
+
className: `se-design-menu-list border border-[var(--color-gray-200)] rounded shadow-md ${n ? "" : "py-2"}${p ? ` ${p}` : ""}`
|
|
70
|
+
}, R({
|
|
71
|
+
ariaLabel: "Menu"
|
|
72
|
+
})), n && w(), /* @__PURE__ */ t.createElement("div", {
|
|
73
|
+
style: E,
|
|
74
|
+
className: `overflow-y-auto ${n ? "py-2" : ""}`
|
|
75
|
+
}, c.length > 0 ? c.map((e) => {
|
|
76
|
+
const r = m.get(e);
|
|
77
|
+
if (e.type === "separator")
|
|
78
|
+
return /* @__PURE__ */ t.createElement("hr", {
|
|
79
|
+
key: r,
|
|
80
|
+
className: "se-design-menu-separator cursor-default border-[var(--color-gray-200)]"
|
|
81
|
+
});
|
|
82
|
+
if (e.type === "header")
|
|
83
|
+
return /* @__PURE__ */ t.createElement("div", {
|
|
84
|
+
key: r,
|
|
85
|
+
className: "se-design-menu-header cursor-default px-2 mx-1 text-sm pt-2 text-[var(--color-gray-650)]",
|
|
86
|
+
role: "presentation"
|
|
87
|
+
}, e.label);
|
|
88
|
+
const s = $(r);
|
|
89
|
+
return /* @__PURE__ */ t.createElement(F, i({}, e, {
|
|
90
|
+
key: r,
|
|
91
|
+
ref: s.ref,
|
|
92
|
+
tabIndex: s.tabIndex,
|
|
93
|
+
onKeyDown: M,
|
|
94
|
+
onFocus: () => L(r)
|
|
95
|
+
}));
|
|
96
|
+
}) : /* @__PURE__ */ t.createElement("div", {
|
|
97
|
+
className: "px-3 py-4 text-center text-[var(--color-gray-700)] text-sm",
|
|
98
|
+
role: "status",
|
|
99
|
+
"aria-live": "polite"
|
|
100
|
+
}, b)));
|
|
289
101
|
});
|
|
102
|
+
O.displayName = "MenuList";
|
|
290
103
|
export {
|
|
291
|
-
|
|
104
|
+
O as MenuList
|
|
292
105
|
};
|
|
293
106
|
//# sourceMappingURL=index18.js.map
|
package/dist/index18.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index18.js","sources":["../src/components/Popover/index.tsx"],"sourcesContent":["import React, { useState, useRef, ReactNode, useEffect, forwardRef, ForwardedRef, useImperativeHandle } from 'react';\nimport ReactDOM from 'react-dom';\nimport { getA11yNameAttributes, useDismissOnFocusOut } from '../../utils/a11y';\n\nconst focusableSelectors = [\n '[role=\"menuitem\"]', '[role=\"option\"]', '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]', 'button:not([disabled])', 'a[href]',\n '[tabindex]:not([tabindex=\"-1\"])'\n].join(', ');\n\nexport interface PopoverHandle {\n togglePopover: (focusFirst?: boolean | 'last') => void;\n}\n\nexport interface PopoverProps {\n className?: string;\n automationId?: string;\n popoverContentAutomationId?: string;\n renderPopoverContents: (props: { closePopoverCb: () => void }) => ReactNode;\n renderPopoverSrcElement: (props: { displayPopover: boolean; togglePopover: (focusFirst?: boolean | 'last') => void }) => ReactNode;\n position?: 'bottom-center' | 'bottom-left' | 'bottom-right' | 'top-center' | 'top-left' | 'top-right';\n onPopoverToggle?: (displayPopover: boolean) => void;\n contentWidth?: 'full' | 'max';\n isPopoverOpen?: boolean;\n disabled?: boolean;\n isWithPortal?: boolean;\n noBorder?: boolean;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n sourceRole?: 'button' | 'combobox';\n popoverContentStyleProperty?: React.CSSProperties;\n disableClickToggle?: boolean;\n disableAutoClose?: boolean;\n}\n\nexport const Popover = forwardRef<PopoverHandle, PopoverProps>(\n (\n {\n className = '',\n automationId = '',\n position = 'bottom-center',\n popoverContentAutomationId = '',\n contentWidth = 'max',\n renderPopoverContents,\n renderPopoverSrcElement,\n onPopoverToggle,\n isPopoverOpen,\n disabled = false,\n isWithPortal = false,\n ariaLabel,\n ariaLabelledBy,\n sourceRole = 'button',\n popoverContentStyleProperty = {\n zIndex: 1000,\n borderColor: 'var(--color-gray-200)',\n color: 'var(--color-gray-900)',\n backgroundColor: 'var(--color-white)'\n },\n disableClickToggle = false,\n noBorder = false,\n disableAutoClose = false,\n ...props\n },\n ref: ForwardedRef<PopoverHandle>\n ) => {\n const [displayPopover, setDisplayPopover] = useState(false);\n const [popoverPosition, setPopoverPosition] = useState(position);\n const [isSrcElementVisible, setIsSrcElementVisible] = useState(false);\n const srcElementRef = useRef<HTMLDivElement>(null);\n const popoverContentRef = useRef<HTMLDivElement>(null);\n\n // Compute accessible name/description props with correct precedence\n const accessibleNameProps = getA11yNameAttributes({\n ariaLabel,\n ariaLabelledBy,\n ariaDescribedBy: undefined // Popover doesn't support describedBy yet\n });\n\n // Use shared focus-out dismissal for non-portal popovers.\n // Portal content lives outside the wrapper, so portal uses a dedicated onBlur fallback below.\n const { onBlurCapture: onDismissBlurCapture } = useDismissOnFocusOut<HTMLDivElement>({\n disabled: !displayPopover || disableAutoClose || isWithPortal,\n onFocusOut: () => setDisplayPopover(false),\n closeOnEscape: false\n });\n\n const [portalPosition, setPortalPosition] = useState({ top: 0, left: 0 });\n\n const calculatePositionOfPopover = (position: string = 'bottom-center') => {\n if (!srcElementRef.current) return { top: 0, left: 0 };\n\n let localPosition = position;\n\n const srcRect = srcElementRef.current.getBoundingClientRect();\n const viewportWidth = window.innerWidth;\n const viewportHeight = window.innerHeight;\n\n // Calculate position for portal\n let top = 0;\n let left = 0;\n\n switch (localPosition) {\n case 'bottom-left':\n top = srcRect.bottom;\n left = srcRect.left;\n break;\n case 'bottom-right':\n top = srcRect.bottom;\n left = srcRect.right - srcRect.width * 0.5;\n break;\n case 'bottom-center':\n top = srcRect.bottom;\n // Center the popover relative to the source element\n left = srcRect.left + srcRect.width / 2;\n break;\n case 'top-left':\n top = srcRect.top - srcRect.height * 1.9;\n left = srcRect.left;\n break;\n case 'top-right':\n top = srcRect.top - srcRect.height * 1.9;\n left = srcRect.right - srcRect.width * 0.5;\n break;\n case 'top-center':\n top = srcRect.top - srcRect.height * 1.9;\n // Center the popover relative to the source element\n left = srcRect.left + srcRect.width / 2;\n break;\n default:\n top = srcRect.bottom;\n left = srcRect.left;\n break;\n }\n\n // Get popover dimensions if available\n const popoverRect = popoverContentRef.current?.getBoundingClientRect();\n const popoverWidth = popoverRect?.width || 0;\n const popoverHeight = popoverRect?.height || 0;\n\n // Adjust center positions to account for popover width\n if (localPosition === 'bottom-center' || localPosition === 'top-center') {\n // Center the popover by subtracting half its width from the source center\n left = left - popoverWidth / 2;\n }\n\n // Adjust position to keep popover within viewport bounds\n // Horizontal adjustments\n if (left + popoverWidth > viewportWidth) {\n // Popover extends beyond right edge, shift it left\n left = Math.max(0, viewportWidth - popoverWidth);\n }\n if (left < 0) {\n // Popover extends beyond left edge, shift it right\n left = 0;\n }\n\n // Vertical adjustments\n if (top + popoverHeight > viewportHeight) {\n // Popover extends beyond bottom edge\n // Try to position it above the source element\n const spaceAbove = srcRect.top;\n const spaceBelow = viewportHeight - srcRect.bottom;\n\n if (spaceAbove >= popoverHeight || spaceAbove > spaceBelow) {\n // Position above if there's enough space or more space above\n top = srcRect.top - popoverHeight;\n // Ensure it doesn't go above viewport\n if (top < 0) {\n top = 0;\n }\n } else {\n // Keep at bottom but adjust to fit within viewport\n top = Math.max(0, viewportHeight - popoverHeight);\n }\n }\n if (top < 0) {\n // Popover extends beyond top edge, position it below the source element\n top = srcRect.bottom;\n // Ensure it doesn't go below viewport\n if (top + popoverHeight > viewportHeight) {\n top = Math.max(0, viewportHeight - popoverHeight);\n }\n }\n\n return { top, left };\n };\n\n useEffect(() => {\n if (onPopoverToggle) {\n onPopoverToggle(displayPopover);\n }\n\n if (displayPopover && !isWithPortal) {\n // Add click listener for auto-close behavior only if not disabled\n if (!disableAutoClose) {\n document.body.addEventListener('click', clickListener, true);\n }\n checkPopoverPosition();\n return () => {\n if (!disableAutoClose) {\n document.body.removeEventListener('click', clickListener, true);\n }\n };\n } else if (displayPopover && isWithPortal) {\n // Add click/scroll listeners for auto-close behavior only if not disabled\n if (!disableAutoClose) {\n document.body.addEventListener('click', clickAndScrollListenerWithPortal, true);\n window.addEventListener('scroll', clickAndScrollListenerWithPortal);\n } else {\n // When disableAutoClose is true, still listen to scroll for repositioning\n window.addEventListener('scroll', scrollListenerForRepositioning);\n }\n // Always add resize listener for repositioning\n window.addEventListener('resize', resizeListenerWithPortal);\n\n // Initial position calculation\n const timeout1 = setTimeout(() => {\n const position = calculatePositionOfPopover(popoverPosition);\n checkSourceVisibility();\n\n if (position) {\n setPortalPosition(position);\n }\n }, 0);\n\n // Recalculate after popover is rendered to get accurate dimensions\n const timeout2 = setTimeout(() => {\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }, 10);\n\n return () => {\n if (!disableAutoClose) {\n document.body.removeEventListener('click', clickAndScrollListenerWithPortal, true);\n window.removeEventListener('scroll', clickAndScrollListenerWithPortal);\n } else {\n window.removeEventListener('scroll', scrollListenerForRepositioning);\n }\n window.removeEventListener('resize', resizeListenerWithPortal);\n clearTimeout(timeout1);\n clearTimeout(timeout2);\n };\n }\n }, [displayPopover, isWithPortal, disableAutoClose]);\n\n const checkSourceVisibility = () => {\n if (!srcElementRef.current) {\n setIsSrcElementVisible(false);\n return;\n }\n\n const rec = srcElementRef.current.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n const viewportWidth = window.innerWidth;\n\n const isVisible = rec.top < viewportHeight && rec.bottom > 0 && rec.left < viewportWidth && rec.right > 0;\n\n setIsSrcElementVisible(isVisible);\n };\n\n useEffect(() => {\n setDisplayPopover(isPopoverOpen ?? false);\n }, [isPopoverOpen]);\n\n useEffect(() => {\n // Focus first focusable element when popover opens\n if (displayPopover && popoverContentRef.current) {\n setTimeout(() => {\n const firstFocusable = popoverContentRef.current?.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable && document.activeElement === srcElementRef.current) {\n firstFocusable.focus();\n }\n }, 0);\n }\n }, [displayPopover]);\n\n //Function to check popover position\n const checkPopoverPosition = () => {\n if (!popoverContentRef.current) return;\n\n const popoverRect = popoverContentRef.current.getBoundingClientRect();\n const viewportHeight = window.innerHeight;\n\n if (popoverRect?.bottom > viewportHeight) {\n setPopoverPosition(\n position.includes('left') ? 'top-left' : position.includes('right') ? 'top-right' : 'top-center'\n );\n } else if (popoverRect?.top < 0) {\n // If popover extends beyond top of viewport, switch to bottom position\n setPopoverPosition(\n position.includes('left') ? 'bottom-left' : position.includes('right') ? 'bottom-right' : 'bottom-center'\n );\n }\n };\n\n const clickListener = (event: MouseEvent) => {\n const currentDropRef = srcElementRef.current;\n if (!currentDropRef) return;\n\n const target = event.target as Node;\n const isSourcePopover = currentDropRef.contains(target);\n const isPopoverContent = popoverContentRef.current?.contains(target);\n\n // Check if click is on another popover's source element\n const clickedElement = target as HTMLElement;\n const closestPopoverWrapper = clickedElement.closest?.('.se-design-popover-wrapper');\n const isAnotherPopoverSource = closestPopoverWrapper && closestPopoverWrapper !== currentDropRef;\n\n // check if the clicked popover is a nesteded child of the current popover content\n const isNestedPopover = popoverContentRef.current?.contains(closestPopoverWrapper as Node);\n\n // if clicked source is parent or the popover-content, do not toggle dropdown.\n // Also close if clicking on another popover's source element\n if (disableAutoClose) return;\n if ((!isSourcePopover && !isPopoverContent) || (isAnotherPopoverSource && !isNestedPopover)) {\n setDisplayPopover(false);\n }\n };\n\n const clickAndScrollListenerWithPortal = (event: Event) => {\n const currentDropRef = srcElementRef.current;\n const currentPopoverRef = popoverContentRef.current;\n if (!currentDropRef) return;\n checkSourceVisibility();\n\n // Recalculate position on scroll\n if (event.type === 'scroll' && displayPopover) {\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n\n const target = event.target as Node;\n const isSourcePopover = currentDropRef.contains(target);\n const isPopoverContent = currentPopoverRef?.contains(target);\n\n // Check if click is on another popover's source element\n const clickedElement = target as HTMLElement;\n const closestPopoverWrapper = clickedElement.closest?.('.se-design-popover-wrapper');\n const isAnotherPopoverSource = closestPopoverWrapper && closestPopoverWrapper !== currentDropRef;\n\n // check if the clicked popover is a nesteded child of the current popover content\n const isNestedPopover = popoverContentRef.current?.contains(closestPopoverWrapper as Node);\n\n if (disableAutoClose) return;\n // if clicked source is parent or the popover-content, do not toggle dropdown.\n // Also close if clicking on another popover's source element\n if ((!isSourcePopover && !isPopoverContent) || (isAnotherPopoverSource && !isNestedPopover)) {\n setDisplayPopover(false);\n }\n };\n\n const resizeListenerWithPortal = () => {\n if (displayPopover && isWithPortal && srcElementRef.current) {\n checkSourceVisibility();\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n };\n\n const scrollListenerForRepositioning = () => {\n if (displayPopover && isWithPortal && srcElementRef.current) {\n checkSourceVisibility();\n const position = calculatePositionOfPopover(popoverPosition);\n if (position) {\n setPortalPosition(position);\n }\n }\n };\n\n const togglePopover = (focusFirst: boolean | 'last' = false) => {\n const wasOpen = displayPopover;\n setDisplayPopover((prev) => !prev);\n if (!wasOpen && focusFirst) {\n setTimeout(() => {\n if (focusFirst === 'last') {\n const allFocusable = popoverContentRef.current?.querySelectorAll<HTMLElement>(focusableSelectors);\n const lastFocusable = allFocusable ? allFocusable[allFocusable.length - 1] : null;\n if (lastFocusable) lastFocusable.focus();\n } else {\n const firstFocusable = popoverContentRef.current?.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) firstFocusable.focus();\n }\n }, 50);\n }\n };\n\n const handleArrowKeyNavigation = (e: React.KeyboardEvent, container: HTMLDivElement | null) => {\n if (!container) return;\n\n // Find all focusable elements within the popover content\n // This includes elements with role=\"menuitem\", role=\"option\", tabIndex >= 0, etc.\n const focusableSelectors = [\n '[role=\"menuitem\"]',\n '[role=\"option\"]',\n '[role=\"menuitemcheckbox\"]',\n '[role=\"menuitemradio\"]',\n 'button:not([disabled])',\n 'a[href]',\n 'input:not([disabled])',\n 'select:not([disabled])',\n 'textarea:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])'\n ].join(', ');\n\n const focusableElements = Array.from(container.querySelectorAll<HTMLElement>(focusableSelectors)).filter((el) => {\n // Filter out disabled and hidden elements\n const style = window.getComputedStyle(el);\n return (\n !el.hasAttribute('disabled') &&\n !el.hasAttribute('aria-disabled') &&\n style.display !== 'none' &&\n style.visibility !== 'hidden' &&\n (el.tabIndex >= 0 || el.hasAttribute('role'))\n );\n });\n\n if (focusableElements.length === 0) return;\n\n const currentIndex = focusableElements.findIndex((el) => el === document.activeElement);\n let nextIndex = -1;\n\n if (e.key === 'ArrowDown') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = currentIndex < focusableElements.length - 1 ? currentIndex + 1 : 0;\n } else if (e.key === 'ArrowUp') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = currentIndex > 0 ? currentIndex - 1 : focusableElements.length - 1;\n } else if (e.key === 'Home') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = 0;\n } else if (e.key === 'End') {\n e.preventDefault();\n e.stopPropagation();\n nextIndex = focusableElements.length - 1;\n }\n\n if (nextIndex >= 0 && focusableElements[nextIndex]) {\n focusableElements[nextIndex].focus();\n } else if (currentIndex === -1 && focusableElements.length > 0) {\n // If no element is currently focused, focus the first one\n focusableElements[0].focus();\n }\n };\n\n const handlePopoverContentKeyDown = (e: React.KeyboardEvent) => {\n // Allow Escape key to close popover when focus is on content\n if (e.key === 'Escape') {\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(false);\n srcElementRef.current?.focus();\n } else if (e.key === 'Tab') {\n // Close popover when Tab exits the menu\n setDisplayPopover(false);\n if (e.shiftKey) {\n // Shift+Tab: prevent default (would go to wrapper) and focus trigger instead\n e.preventDefault();\n srcElementRef.current?.focus();\n }\n // Forward Tab: do NOT preventDefault — browser moves focus to next element naturally\n } else if (e.key === 'ArrowDown' || e.key === 'ArrowUp' || e.key === 'Home' || e.key === 'End') {\n // Handle arrow key navigation for focusable elements inside popover\n handleArrowKeyNavigation(e, popoverContentRef.current);\n } else if (e.key === 'Enter' || e.key === ' ') {\n // Prevent Enter/Space from bubbling to wrapper (mirrors click stopPropagation)\n e.stopPropagation();\n }\n };\n\n useImperativeHandle(ref, () => ({ togglePopover }), []);\n\n const popoverContentStyle = {\n 'bottom-left': { left: '0', top: '100%' },\n 'bottom-right': { right: '0', top: '100%' },\n 'bottom-center': { left: '50%', transform: 'translateX(-50%)', top: '100%' },\n 'top-left': { left: '0', bottom: '100%' },\n 'top-right': { right: '0', bottom: '100%' },\n 'top-center': { left: '50%', transform: 'translateX(-50%)', bottom: '100%' }\n };\n const popoverContentClasses = noBorder ? '' : 'shadow-md border rounded-md';\n\n return (\n <div\n className={\n 'se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md' +\n (className.length > 0 ? ` ${className}` : '') +\n (displayPopover ? ' open' : '') +\n (disabled ? ' opacity-50 cursor-not-allowed pointer-events-none' : '')\n }\n ref={srcElementRef}\n onClick={(e) => {\n if (disabled || disableClickToggle) return;\n e.stopPropagation();\n togglePopover();\n }}\n onKeyDown={(e) => {\n if (disabled || disableClickToggle) return;\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n e.stopPropagation();\n const wasOpen = displayPopover;\n togglePopover();\n // Focus first focusable element when opening\n if (!wasOpen) {\n setTimeout(() => {\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n const firstFocusable = currentRef.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) {\n firstFocusable.focus();\n }\n }\n }, 0);\n }\n } else if (e.key === 'Escape' && displayPopover) {\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(false);\n } else if ((e.key === 'ArrowDown' || e.key === 'ArrowUp') && displayPopover) {\n // Handle arrow keys when popover is open\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n handleArrowKeyNavigation(e, currentRef);\n }\n } else if (e.key === 'ArrowDown' && !displayPopover) {\n // Open popover and focus first item when ArrowDown is pressed\n e.preventDefault();\n e.stopPropagation();\n setDisplayPopover(true);\n setTimeout(() => {\n const currentRef = popoverContentRef.current;\n if (currentRef) {\n const firstFocusable = currentRef.querySelector<HTMLElement>(focusableSelectors);\n if (firstFocusable) {\n firstFocusable.focus();\n }\n }\n }, 0);\n }\n }}\n onBlurCapture={onDismissBlurCapture}\n onBlur={(e) => {\n // Portal content is rendered outside wrapper, so keep explicit check for that case.\n if (!displayPopover || disableAutoClose || !isWithPortal) return;\n\n const nextFocused = e.relatedTarget as Node | null;\n const isFocusInSource = !!(nextFocused && srcElementRef.current?.contains(nextFocused));\n const isFocusInPopover = !!(nextFocused && popoverContentRef.current?.contains(nextFocused));\n\n // Close only when focus leaves both source and portal content.\n if (!isFocusInSource && !isFocusInPopover) {\n setDisplayPopover(false);\n }\n }}\n role={disableClickToggle ? 'none' : sourceRole}\n aria-expanded={disableClickToggle ? undefined : displayPopover ? 'true' : 'false'}\n aria-haspopup={disableClickToggle ? undefined : sourceRole === 'combobox' ? 'listbox' : 'true'}\n tabIndex={disabled || disableClickToggle ? -1 : 0}\n aria-disabled={disableClickToggle ? undefined : disabled ? 'true' : 'false'}\n {...accessibleNameProps}\n data-automation-id={automationId}\n {...props}\n >\n {renderPopoverSrcElement({ displayPopover, togglePopover })}\n\n {displayPopover && !isWithPortal && (\n <div\n className={`popover-content absolute ${popoverContentClasses} z-[1000] ${\n contentWidth == 'full' ? 'w-full' : 'w-max'\n }`}\n style={{\n ...popoverContentStyleProperty,\n ...popoverContentStyle[popoverPosition]\n }}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={handlePopoverContentKeyDown}\n ref={popoverContentRef}\n data-automation-id={popoverContentAutomationId}\n >\n {renderPopoverContents({ closePopoverCb: () => setDisplayPopover(false) })}\n </div>\n )}\n {isWithPortal &&\n displayPopover &&\n isSrcElementVisible &&\n ReactDOM.createPortal(\n <div\n className={`popover-content-with-portal ${popoverContentClasses} ${\n contentWidth == 'full' ? 'w-full' : 'w-max'\n }`}\n style={{\n position: 'fixed',\n top: portalPosition.top,\n left: portalPosition.left,\n ...popoverContentStyleProperty\n }}\n onClick={(e) => e.stopPropagation()}\n onKeyDown={handlePopoverContentKeyDown}\n ref={popoverContentRef}\n data-automation-id={popoverContentAutomationId}\n >\n {renderPopoverContents({ closePopoverCb: () => setDisplayPopover(false) })}\n </div>,\n document.body\n )}\n </div>\n );\n }\n);\n"],"names":["focusableSelectors","join","Popover","className","automationId","position","popoverContentAutomationId","contentWidth","renderPopoverContents","renderPopoverSrcElement","onPopoverToggle","isPopoverOpen","disabled","isWithPortal","ariaLabel","ariaLabelledBy","sourceRole","popoverContentStyleProperty","zIndex","borderColor","color","backgroundColor","disableClickToggle","noBorder","disableAutoClose","props","ref","displayPopover","setDisplayPopover","useState","popoverPosition","setPopoverPosition","isSrcElementVisible","setIsSrcElementVisible","srcElementRef","useRef","popoverContentRef","accessibleNameProps","getA11yNameAttributes","ariaDescribedBy","undefined","onBlurCapture","onDismissBlurCapture","useDismissOnFocusOut","onFocusOut","closeOnEscape","portalPosition","setPortalPosition","top","left","calculatePositionOfPopover","current","localPosition","srcRect","getBoundingClientRect","viewportWidth","window","innerWidth","viewportHeight","innerHeight","bottom","right","width","height","popoverRect","popoverWidth","popoverHeight","Math","max","spaceAbove","spaceBelow","useEffect","document","body","addEventListener","clickListener","checkPopoverPosition","removeEventListener","scrollListenerForRepositioning","clickAndScrollListenerWithPortal","resizeListenerWithPortal","timeout1","setTimeout","checkSourceVisibility","timeout2","clearTimeout","rec","isVisible","firstFocusable","querySelector","activeElement","focus","includes","event","currentDropRef","target","isSourcePopover","contains","isPopoverContent","closestPopoverWrapper","closest","isAnotherPopoverSource","isNestedPopover","currentPopoverRef","type","togglePopover","focusFirst","wasOpen","prev","allFocusable","querySelectorAll","lastFocusable","length","handleArrowKeyNavigation","e","container","focusableElements","Array","from","filter","el","style","getComputedStyle","hasAttribute","display","visibility","tabIndex","currentIndex","findIndex","nextIndex","key","preventDefault","stopPropagation","handlePopoverContentKeyDown","shiftKey","useImperativeHandle","popoverContentStyle","transform","popoverContentClasses","React","createElement","_extends","onClick","onKeyDown","currentRef","onBlur","nextFocused","relatedTarget","isFocusInSource","isFocusInPopover","role","closePopoverCb","createPortal"],"mappings":";;;;;;;;;;;;;AAIA,MAAMA,IAAqB,CACzB,qBAAqB,mBAAmB,6BACxC,0BAA0B,0BAA0B,WACpD,iCAAiC,EACjCC,KAAK,IAAI,GA2BEC,wBACX,CACE;AAAA,EACEC,WAAAA,IAAY;AAAA,EACZC,cAAAA,IAAe;AAAA,EACfC,UAAAA,IAAW;AAAA,EACXC,4BAAAA,IAA6B;AAAA,EAC7BC,cAAAA,IAAe;AAAA,EACfC,uBAAAA;AAAAA,EACAC,yBAAAA;AAAAA,EACAC,iBAAAA;AAAAA,EACAC,eAAAA;AAAAA,EACAC,UAAAA,IAAW;AAAA,EACXC,cAAAA,IAAe;AAAA,EACfC,WAAAA;AAAAA,EACAC,gBAAAA;AAAAA,EACAC,YAAAA,IAAa;AAAA,EACbC,6BAAAA,IAA8B;AAAA,IAC5BC,QAAQ;AAAA,IACRC,aAAa;AAAA,IACbC,OAAO;AAAA,IACPC,iBAAiB;AAAA,EACnB;AAAA,EACAC,oBAAAA,IAAqB;AAAA,EACrBC,UAAAA,IAAW;AAAA,EACXC,kBAAAA,IAAmB;AAAA,EACnB,GAAGC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uI,CAAqB,IAC7DnI,KAAgB,SAAS,WAAW,OAAO;AAAA,IAE7CkH,OAAO;AAAA,MACLpH,UAAU;AAAA,MACV2C,KAAKF,EAAeE;AAAAA,MACpBC,MAAMH,EAAeG;AAAAA,MACrB,GAAGhC;AAAAA,IACL;AAAA,IACA6H,SAAU5B,CAAMA,MAAAA,EAAEkB,gBAAgB;AAAA,IAClCW,WAAWV;AAAAA,IACX3G,KAAKU;AAAAA,IACL,sBAAoB9B;AAAAA,KAEnBE,EAAsB;AAAA,IAAE+I,gBAAgBA,MAAM3H,EAAkB,EAAK;AAAA,EAAG,CAAA,CACtE,GACL4C,SAASC,IACX,CACC;AAET,CACF;"}
|
|
1
|
+
{"version":3,"file":"index18.js","sources":["../src/components/MenuList/index.tsx"],"sourcesContent":["import React, { forwardRef, useState, useMemo } from 'react';\nimport { MenuItem, MenuItemProps } from 'src/components/MenuItem';\nimport { InputWithIcon } from '../InputWithIcon';\nimport { useRovingFocus } from 'src/utils/a11y/useRovingFocus';\n\nexport type MenuListProps = {\n items: MenuItemProps[];\n maxHeight?: string;\n shouldShowSearch?: boolean;\n searchPlaceholder?: string;\n searchBy?: string;\n searchResultEmptyMessage?: string;\n className?: string;\n};\n\nexport const MenuList = forwardRef<HTMLDivElement, MenuListProps>(({\n items,\n maxHeight,\n shouldShowSearch = false,\n searchPlaceholder = 'Search...',\n searchBy = 'label',\n searchResultEmptyMessage = 'No results found',\n className = ''\n}, ref) => {\n const [searchQuery, setSearchQuery] = useState('');\n\n const getFilteredItems = () => {\n if (!searchQuery.trim()) {\n return items;\n }\n return items.filter((item) => {\n const searchValue = item[searchBy as keyof MenuItemProps]?.toString().toLowerCase() || '';\n return searchValue.includes(searchQuery.toLowerCase());\n });\n };\n\n const renderSearchBar = () => {\n return (\n <div className=\"w-full relative flex items-center border-b border-[var(--color-gray-300)] px-1\">\n <InputWithIcon\n leftIcon={{ name: 'search', position: 'left', style: { color: 'var(--color-gray-500)' } }}\n value={searchQuery}\n onChange={(value) => setSearchQuery(value)}\n placeholder={searchPlaceholder}\n style={{ margin: 0, gap: 0 }}\n inputStyle={{ width: '100%', border: 'none', outline: 'none' }}\n automationId=\"se-design-menu-list-search\"\n />\n </div>\n );\n };\n\n const filteredItems = getFilteredItems();\n const containerStyle = maxHeight\n ? {\n maxHeight,\n overflowY: 'auto' as const\n }\n : {};\n\n \n const itemIdByRef = useMemo(() => {\n const map = new WeakMap<MenuItemProps, string>();\n const seen = new Set<string>();\n\n items.forEach((item, index) => {\n const baseId = item.id || item.automationId || `menu-item-${index}`;\n let uniqueId = baseId;\n\n if (seen.has(uniqueId)) {\n uniqueId = `${baseId}-${index}`;\n }\n\n seen.add(uniqueId);\n map.set(item, uniqueId);\n });\n\n return map;\n }, [items]);\n\n const itemIds = useMemo(() => {\n return filteredItems\n .filter((item) => item.type !== 'header' && item.type !== 'separator')\n .map((item) => itemIdByRef.get(item) as string);\n }, [filteredItems, itemIdByRef]);\n\n // Use roving focus for arrow key navigation\n const { getRovingItemProps, handleKeyDown, setFocusedId, getContainerProps } = useRovingFocus({\n itemIds,\n orientation: 'vertical',\n loop: true,\n role: 'menu'\n });\n\n return (\n <div\n ref={ref}\n className={`se-design-menu-list border border-[var(--color-gray-200)] rounded shadow-md ${\n shouldShowSearch ? '' : 'py-2'\n }${className ? ` ${className}` : ''}`}\n {...getContainerProps({ ariaLabel: 'Menu' })}\n >\n {shouldShowSearch && renderSearchBar()}\n <div style={containerStyle} className={`overflow-y-auto ${shouldShowSearch ? 'py-2' : ''}`}>\n {filteredItems.length > 0 ? (\n filteredItems.map((item) => {\n const stableId = itemIdByRef.get(item) as string;\n\n if (item.type === 'separator') {\n return (\n <hr key={stableId} className=\"se-design-menu-separator cursor-default border-[var(--color-gray-200)]\" />\n );\n }\n\n if (item.type === 'header') {\n return (\n <div\n key={stableId}\n className=\"se-design-menu-header cursor-default px-2 mx-1 text-sm pt-2 text-[var(--color-gray-650)]\"\n role=\"presentation\"\n >\n {item.label}\n </div>\n );\n }\n\n const rovingProps = getRovingItemProps(stableId);\n return (\n <MenuItem\n {...item}\n key={stableId}\n ref={rovingProps.ref}\n tabIndex={rovingProps.tabIndex}\n onKeyDown={handleKeyDown}\n onFocus={() => setFocusedId(stableId)}\n />\n );\n })\n ) : (\n <div className=\"px-3 py-4 text-center text-[var(--color-gray-700)] text-sm\" role=\"status\" aria-live=\"polite\">{searchResultEmptyMessage}</div>\n )}\n </div>\n </div>\n );\n});\n\nMenuList.displayName = 'MenuList';\n"],"names":["MenuList","items","maxHeight","shouldShowSearch","searchPlaceholder","searchBy","searchResultEmptyMessage","className","ref","searchQuery","setSearchQuery","useState","getFilteredItems","trim","filter","item","toString","toLowerCase","includes","renderSearchBar","React","createElement","InputWithIcon","leftIcon","name","position","style","color","value","onChange","placeholder","margin","gap","inputStyle","width","border","outline","automationId","filteredItems","containerStyle","overflowY","itemIdByRef","useMemo","map","WeakMap","seen","Set","forEach","index","baseId","id","uniqueId","has","add","set","itemIds","type","get","getRovingItemProps","handleKeyDown","setFocusedId","getContainerProps","useRovingFocus","orientation","loop","role","_extends","ariaLabel","length","stableId","key","label","rovingProps","MenuItem","tabIndex","onKeyDown","onFocus","displayName"],"mappings":";;;;;;;;;;;;;AAeO,MAAMA,sBAAqD,CAAC;AAAA,EACjEC,OAAAA;AAAAA,EACAC,WAAAA;AAAAA,EACAC,kBAAAA,IAAmB;AAAA,EACnBC,mBAAAA,IAAoB;AAAA,EACpBC,UAAAA,IAAW;AAAA,EACXC,0BAAAA,IAA2B;AAAA,EAC3BC,WAAAA,IAAY;AACd,GAAGC,MAAQ;AACT,QAAM,CAACC,GAAaC,CAAc,IAAIC,EAAS,EAAE,GAE3CC,IAAmBA,MAClBH,EAAYI,SAGVZ,EAAMa,OAAQC,CAAAA,OACCA,EAAKV,CAA+B,GAAGW,SAAAA,EAAWC,iBAAiB,IACpEC,SAAST,EAAYQ,YAAAA,CAAa,CACtD,IALQhB,GAQLkB,IAAkBA,MAEpBC,gBAAAA,EAAAC,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E,CACvC;AAAA,EAEL,CAAC,IAEDjD,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKd,WAAU;AAAA,IAA6D0D,MAAK;AAAA,IAAS,aAAU;AAAA,EAAA,GAAU3D,CAA8B,CAE3I,CACF;AAET,CAAC;AAEDN,EAAS6E,cAAc;"}
|
package/dist/index180.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='13'%20viewBox='0%200%2012%2013'%20fill='none'%3e%3cpath%20d='M10.5152%201H1.71523C1.11023%201%200.615234%201.495%200.615234%202.1V12L2.81523%209.8H10.5152C11.1202%209.8%2011.6152%209.305%2011.6152%208.7V2.1C11.6152%201.495%2011.1202%201%2010.5152%201ZM10.5152%208.7H2.81523L1.71523%209.8V2.1H10.5152V8.7ZM3.36523%204.85H4.46523V5.95H3.36523V4.85ZM5.56523%204.85H6.66523V5.95H5.56523V4.85ZM7.76523%204.85H8.86523V5.95H7.76523V4.85Z'%20fill='%23415575'%20stroke='%23F2F4F8'%20stroke-width='0.2'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
t as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index180.js.map
|
package/dist/index180.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index180.js","sources":["../src/assets/icons/
|
|
1
|
+
{"version":3,"file":"index180.js","sources":["../src/assets/icons/sms.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='13'%20viewBox='0%200%2012%2013'%20fill='none'%3e%3cpath%20d='M10.5152%201H1.71523C1.11023%201%200.615234%201.495%200.615234%202.1V12L2.81523%209.8H10.5152C11.1202%209.8%2011.6152%209.305%2011.6152%208.7V2.1C11.6152%201.495%2011.1202%201%2010.5152%201ZM10.5152%208.7H2.81523L1.71523%209.8V2.1H10.5152V8.7ZM3.36523%204.85H4.46523V5.95H3.36523V4.85ZM5.56523%204.85H6.66523V5.95H5.56523V4.85ZM7.76523%204.85H8.86523V5.95H7.76523V4.85Z'%20fill='%23415575'%20stroke='%23F2F4F8'%20stroke-width='0.2'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_100"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index181.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%3e%3cpath%20d='M6.09729%2012.6V0.599998M0.599976%206.13846L6.09998%200.599998L11.6%206.13846'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index181.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index181.js","sources":["../src/assets/icons/
|
|
1
|
+
{"version":3,"file":"index181.js","sources":["../src/assets/icons/sort-asc.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='13'%20height='14'%20viewBox='0%200%2013%2014'%20fill='none'%3e%3cpath%20d='M6.09729%2012.6V0.599998M0.599976%206.13846L6.09998%200.599998L11.6%206.13846'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_101"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index182.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M7.99731%202V14M2.5%208.46154L8%2014L13.5%208.46154'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index182.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index182.js","sources":["../src/assets/icons/
|
|
1
|
+
{"version":3,"file":"index182.js","sources":["../src/assets/icons/sort-desc.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20d='M7.99731%202V14M2.5%208.46154L8%2014L13.5%208.46154'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_102"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index183.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.705%2010.3125L12.001%2013.0166L9.29688%2010.3125'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.0039%202.95117V12.9512'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.70504%205.65234L4.00096%202.94826L1.29688%205.65234'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.00391%2013.0098V3.00977'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index183.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index183.js","sources":["../src/assets/icons/
|
|
1
|
+
{"version":3,"file":"index183.js","sources":["../src/assets/icons/sort.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M14.705%2010.3125L12.001%2013.0166L9.29688%2010.3125'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M12.0039%202.95117V12.9512'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M6.70504%205.65234L4.00096%202.94826L1.29688%205.65234'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M4.00391%2013.0098V3.00977'%20stroke='%23415575'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_103"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index184.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const
|
|
1
|
+
const C = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.31825%201.62467C7.24366%201.63988%201.22813%203.94961%201.07809%204.02065C0.98891%204.06287%200.850115%204.17259%200.784466%204.25277C0.710632%204.34293%200.635259%204.4953%200.603951%204.61773C0.574405%204.73328%200.574032%204.78117%200.574256%208.47036C0.574495%2012.5912%200.56728%2012.284%200.668987%2012.5022C0.76203%2012.7018%200.922963%2012.8736%201.10978%2012.9728C1.15606%2012.9974%202.54163%2013.5357%204.18882%2014.1691C5.83601%2014.8025%207.20724%2015.3315%207.23599%2015.3447C7.32984%2015.3876%207.4212%2015.4097%207.50486%2015.4097C7.58424%2015.4097%207.71566%2015.379%207.7497%2015.3525C7.75881%2015.3454%207.79651%2015.3294%207.83348%2015.317C8.03258%2015.2501%2013.8291%2013.0101%2013.9%2012.9726C14.0796%2012.8777%2014.2379%2012.7114%2014.3314%2012.5197C14.4449%2012.2869%2014.4364%2012.631%2014.4321%208.43142L14.4282%204.66273L14.3951%204.56542C14.3033%204.29565%2014.0769%204.04918%2013.8158%203.93474C13.7153%203.89068%207.92525%201.69931%207.78269%201.65138C7.67583%201.61545%207.43218%201.60143%207.31825%201.62467ZM5.05097%203.62847C3.69824%204.14987%202.61311%204.57599%202.62369%204.58166C2.63422%204.5873%203.73657%205.01286%205.07338%205.52734L7.50392%206.46276L9.97276%205.5126C11.3306%204.99002%2012.4432%204.56097%2012.4452%204.55915C12.4483%204.55638%207.55586%202.7024%207.51233%202.68985C7.50412%202.68749%206.39651%203.10987%205.05097%203.62847ZM1.63457%208.69313C1.63457%2011.3485%201.63839%2012.0348%201.65324%2012.044C1.66352%2012.0504%202.86165%2012.5136%204.31578%2013.0734L6.95966%2014.0912L6.96342%2010.752C6.9655%208.91538%206.96214%207.40806%206.95595%207.40237C6.945%207.39229%201.71269%205.37513%201.66071%205.36096C1.63587%205.35417%201.63457%205.52008%201.63457%208.69313ZM10.6939%206.37895L8.05007%207.3981L8.0463%2010.7466L8.04254%2014.0951L8.12075%2014.0643C8.16377%2014.0473%209.35184%2013.5896%2010.7609%2013.0472C12.17%2012.5047%2013.3346%2012.0546%2013.349%2012.047C13.3738%2012.0339%2013.3752%2011.859%2013.3752%208.69524C13.3752%206.03419%2013.3714%205.35756%2013.3565%205.35857C13.3462%205.35925%2012.1481%205.81844%2010.6939%206.37895Z'%20fill='%2356CF8A'/%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
|
-
|
|
3
|
+
C as default
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=index184.js.map
|
package/dist/index184.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index184.js","sources":["../src/assets/icons/
|
|
1
|
+
{"version":3,"file":"index184.js","sources":["../src/assets/icons/space.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M7.31825%201.62467C7.24366%201.63988%201.22813%203.94961%201.07809%204.02065C0.98891%204.06287%200.850115%204.17259%200.784466%204.25277C0.710632%204.34293%200.635259%204.4953%200.603951%204.61773C0.574405%204.73328%200.574032%204.78117%200.574256%208.47036C0.574495%2012.5912%200.56728%2012.284%200.668987%2012.5022C0.76203%2012.7018%200.922963%2012.8736%201.10978%2012.9728C1.15606%2012.9974%202.54163%2013.5357%204.18882%2014.1691C5.83601%2014.8025%207.20724%2015.3315%207.23599%2015.3447C7.32984%2015.3876%207.4212%2015.4097%207.50486%2015.4097C7.58424%2015.4097%207.71566%2015.379%207.7497%2015.3525C7.75881%2015.3454%207.79651%2015.3294%207.83348%2015.317C8.03258%2015.2501%2013.8291%2013.0101%2013.9%2012.9726C14.0796%2012.8777%2014.2379%2012.7114%2014.3314%2012.5197C14.4449%2012.2869%2014.4364%2012.631%2014.4321%208.43142L14.4282%204.66273L14.3951%204.56542C14.3033%204.29565%2014.0769%204.04918%2013.8158%203.93474C13.7153%203.89068%207.92525%201.69931%207.78269%201.65138C7.67583%201.61545%207.43218%201.60143%207.31825%201.62467ZM5.05097%203.62847C3.69824%204.14987%202.61311%204.57599%202.62369%204.58166C2.63422%204.5873%203.73657%205.01286%205.07338%205.52734L7.50392%206.46276L9.97276%205.5126C11.3306%204.99002%2012.4432%204.56097%2012.4452%204.55915C12.4483%204.55638%207.55586%202.7024%207.51233%202.68985C7.50412%202.68749%206.39651%203.10987%205.05097%203.62847ZM1.63457%208.69313C1.63457%2011.3485%201.63839%2012.0348%201.65324%2012.044C1.66352%2012.0504%202.86165%2012.5136%204.31578%2013.0734L6.95966%2014.0912L6.96342%2010.752C6.9655%208.91538%206.96214%207.40806%206.95595%207.40237C6.945%207.39229%201.71269%205.37513%201.66071%205.36096C1.63587%205.35417%201.63457%205.52008%201.63457%208.69313ZM10.6939%206.37895L8.05007%207.3981L8.0463%2010.7466L8.04254%2014.0951L8.12075%2014.0643C8.16377%2014.0473%209.35184%2013.5896%2010.7609%2013.0472C12.17%2012.5047%2013.3346%2012.0546%2013.349%2012.047C13.3738%2012.0339%2013.3752%2011.859%2013.3752%208.69524C13.3752%206.03419%2013.3714%205.35756%2013.3565%205.35857C13.3462%205.35925%2012.1481%205.81844%2010.6939%206.37895Z'%20fill='%2356CF8A'/%3e%3c/svg%3e\""],"names":["__vite_glob_0_104"],"mappings":"AAAA,MAAAA,IAAe;"}
|