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/index25.js
CHANGED
|
@@ -1,52 +1,298 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Popover as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import n, { useState as I, useRef as L, useEffect as D } from "react";
|
|
2
|
+
import { Popover as Ie } from "./index19.js";
|
|
3
|
+
import { Icon as G } from "./index6.js";
|
|
4
|
+
import { Checkbox as De } from "./index23.js";
|
|
5
|
+
import { Button as Y } from "./index4.js";
|
|
6
|
+
import { InputWithIcon as ke } from "./index52.js";
|
|
7
|
+
import { useStableId as Z } from "./index199.js";
|
|
8
|
+
import { useCombobox as Ve } from "./index68.js";
|
|
9
|
+
function h() {
|
|
10
|
+
return h = Object.assign ? Object.assign.bind() : function(t) {
|
|
11
|
+
for (var m = 1; m < arguments.length; m++) {
|
|
12
|
+
var b = arguments[m];
|
|
13
|
+
for (var v in b) ({}).hasOwnProperty.call(b, v) && (t[v] = b[v]);
|
|
10
14
|
}
|
|
11
15
|
return t;
|
|
12
|
-
},
|
|
16
|
+
}, h.apply(null, arguments);
|
|
13
17
|
}
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
const Ke = (t) => {
|
|
19
|
+
const m = t.selectedValue !== void 0, b = t.isOpen !== void 0, [v, ee] = I(!1), [k, R] = I(""), [i, S] = I(-1), [te, K] = I(() => t?.defaultSelectedValue ? Array.isArray(t?.defaultSelectedValue) ? t?.defaultSelectedValue : [t.defaultSelectedValue] : []), M = L(null), V = L(null), N = L(null), T = Z(void 0, "dropdown-label"), g = Z(void 0, "dropdown-listbox"), d = b ? t.isOpen : v, r = m ? Array.isArray(t.selectedValue) ? t.selectedValue : t.selectedValue ? [t.selectedValue] : [] : te, $ = (e) => {
|
|
20
|
+
b || ee(e), t.onOpenChange?.(e);
|
|
21
|
+
}, P = (e) => {
|
|
22
|
+
m || K(e);
|
|
23
|
+
}, {
|
|
24
|
+
selectBy: x = "",
|
|
25
|
+
optionsUniqueBy: u = "",
|
|
26
|
+
displaySelected: oe = !1,
|
|
27
|
+
dropDownOptions: j,
|
|
28
|
+
defaultText: f = "Select",
|
|
29
|
+
iconColor: H = "var(--color-gray-700)",
|
|
30
|
+
disabled: E = !1,
|
|
31
|
+
dropdownClassName: ne = "",
|
|
32
|
+
hasError: q = !1,
|
|
33
|
+
errorMessage: ae = "",
|
|
34
|
+
customDropdownContent: F = null,
|
|
35
|
+
isBorderless: le = !1,
|
|
36
|
+
shouldShowSearch: y = !1,
|
|
37
|
+
showSearchIcon: re = !0,
|
|
38
|
+
searchPlaceholder: U = "Search...",
|
|
39
|
+
searchResultEmptyMessage: _ = "No results found",
|
|
40
|
+
ariaLabel: se = "",
|
|
41
|
+
customSelectedValue: z = ""
|
|
42
|
+
} = t;
|
|
43
|
+
D(() => {
|
|
44
|
+
if (!m) {
|
|
45
|
+
const e = t?.defaultSelectedValue ? Array.isArray(t?.defaultSelectedValue) ? t?.defaultSelectedValue : [t.defaultSelectedValue] : [];
|
|
46
|
+
K(e);
|
|
25
47
|
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
}, [t?.defaultSelectedValue, m]), D(() => {
|
|
49
|
+
d || (R(""), S(-1));
|
|
50
|
+
}, [d]), D(() => {
|
|
51
|
+
i >= 0 && document.getElementById(`${g}-option-${i}`)?.scrollIntoView({
|
|
52
|
+
block: "nearest"
|
|
53
|
+
});
|
|
54
|
+
}, [i]), D(() => {
|
|
55
|
+
d && y && N.current && requestAnimationFrame(() => N.current?.focus());
|
|
56
|
+
}, [d, y]);
|
|
57
|
+
const s = t?.type === "multi-select", A = () => k.trim() ? (j || []).filter((e) => (e?.[x]?.toString().toLowerCase() || "").includes(k.toLowerCase())) : j || [], O = (e) => {
|
|
58
|
+
P([e]), $(!1), t?.onOptionClick?.(e);
|
|
59
|
+
}, C = A(), {
|
|
60
|
+
listboxProps: ce,
|
|
61
|
+
getOptionProps: ie,
|
|
62
|
+
highlightedIndex: de,
|
|
63
|
+
containerProps: ue,
|
|
64
|
+
inputProps: c
|
|
65
|
+
} = Ve({
|
|
66
|
+
items: s ? [] : C,
|
|
67
|
+
// Only use for single-select
|
|
68
|
+
isOpen: d && !s,
|
|
69
|
+
onOpenChange: $,
|
|
70
|
+
onSelect: (e) => {
|
|
71
|
+
O(e);
|
|
72
|
+
},
|
|
73
|
+
listboxId: g,
|
|
74
|
+
disabled: s || E,
|
|
75
|
+
hasItems: C.length > 0
|
|
76
|
+
}), me = (e, a = !1) => s ? f : a && z ? z : e?.[x] || f, fe = () => {
|
|
77
|
+
P([]), t?.onClear?.();
|
|
78
|
+
}, J = (e, a = !1) => {
|
|
79
|
+
if (t?.renderOptionChip)
|
|
80
|
+
return t?.renderOptionChip(e, a);
|
|
81
|
+
if (s && r?.length > 0) {
|
|
82
|
+
const o = r[0]?.[x] || "", l = r.length - 1;
|
|
83
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
84
|
+
className: "option-chip flex items-center w-full"
|
|
85
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
86
|
+
className: `${l > 0 ? "w-full" : "flex-1"} truncate`
|
|
87
|
+
}, `${f}: ${o}`), l > 0 && /* @__PURE__ */ n.createElement("div", {
|
|
88
|
+
className: "flex-shrink-0"
|
|
89
|
+
}, "+", l));
|
|
90
|
+
}
|
|
91
|
+
return /* @__PURE__ */ n.createElement("p", {
|
|
92
|
+
className: "option-chip flex flex-1 items-center justify-between"
|
|
93
|
+
}, me(e, a));
|
|
94
|
+
}, Q = () => {
|
|
95
|
+
const e = y && !s ? {
|
|
96
|
+
role: c.role,
|
|
97
|
+
"aria-expanded": c["aria-expanded"],
|
|
98
|
+
"aria-haspopup": c["aria-haspopup"],
|
|
99
|
+
"aria-controls": c["aria-controls"],
|
|
100
|
+
"aria-autocomplete": c["aria-autocomplete"],
|
|
101
|
+
"aria-activedescendant": c["aria-activedescendant"],
|
|
102
|
+
onKeyDown: c.onKeyDown
|
|
103
|
+
} : {};
|
|
104
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
105
|
+
className: " w-full relative flex items-center border-b border-[var(--color-gray-300)]"
|
|
106
|
+
}, /* @__PURE__ */ n.createElement(ke, {
|
|
107
|
+
leftIcon: re ? {
|
|
108
|
+
name: "search",
|
|
109
|
+
position: "left",
|
|
110
|
+
style: {
|
|
111
|
+
color: "var(--color-gray-500)"
|
|
112
|
+
}
|
|
113
|
+
} : void 0,
|
|
114
|
+
value: k,
|
|
115
|
+
onChange: (a) => R(a),
|
|
116
|
+
placeholder: U,
|
|
117
|
+
style: {
|
|
118
|
+
margin: 0,
|
|
119
|
+
gap: 0
|
|
120
|
+
},
|
|
121
|
+
inputStyle: {
|
|
122
|
+
width: "100%",
|
|
123
|
+
border: "none",
|
|
124
|
+
outline: "none"
|
|
125
|
+
},
|
|
126
|
+
automationId: "se-design-dropdown-search",
|
|
127
|
+
ariaLabel: U,
|
|
128
|
+
inputRef: N,
|
|
129
|
+
inputProps: e
|
|
130
|
+
}));
|
|
131
|
+
}, pe = (e, a) => {
|
|
132
|
+
const o = e[x], l = r[0]?.[x] || f, w = u?.length ? e[u] == r[0]?.[u] : !0, p = oe && o === l && w, Ee = de === a, Ce = s ? {} : ie(a, p);
|
|
133
|
+
return /* @__PURE__ */ n.createElement("div", h({
|
|
134
|
+
key: e.id || e.value,
|
|
135
|
+
className: `option break-words px-3 py-2 hover:bg-gray-100 cursor-pointer select-none flex items-center justify-between ${p ? "selected" : ""} ${Ee ? "bg-gray-100" : ""}`,
|
|
136
|
+
onClick: () => O(e),
|
|
137
|
+
onKeyDown: (B) => {
|
|
138
|
+
(B.key === "Enter" || B.key === " ") && (B.preventDefault(), O(e));
|
|
139
|
+
},
|
|
140
|
+
tabIndex: -1,
|
|
141
|
+
"data-automation-id": `dropdown-option-${e?.automationId || a}`
|
|
142
|
+
}, Ce, {
|
|
143
|
+
"aria-selected": p ? "true" : "false"
|
|
144
|
+
}), J({
|
|
145
|
+
...e,
|
|
146
|
+
isOptionSelected: p
|
|
147
|
+
}, !1), p && /* @__PURE__ */ n.createElement(G, {
|
|
148
|
+
name: "checkmark",
|
|
149
|
+
stroke: H
|
|
150
|
+
}));
|
|
151
|
+
}, be = () => /* @__PURE__ */ n.createElement("div", h({
|
|
152
|
+
className: "dropdown-content dropdown-options",
|
|
153
|
+
"aria-label": `${f} options`
|
|
154
|
+
}, ce), y && Q(), /* @__PURE__ */ n.createElement("div", {
|
|
155
|
+
className: "flex flex-col max-h-80 overflow-y-auto"
|
|
156
|
+
}, C.length > 0 ? C.map((e, a) => pe(e, a)) : /* @__PURE__ */ n.createElement("div", {
|
|
157
|
+
className: "px-3 py-4 text-center text-[var(--color-gray-700)] text-sm",
|
|
158
|
+
role: "status",
|
|
159
|
+
"aria-live": "polite"
|
|
160
|
+
}, _))), W = (e, a) => {
|
|
161
|
+
let o = [];
|
|
162
|
+
e ? o = [...r, a] : o = r?.filter((l) => l[u] !== a[u]), P(o);
|
|
163
|
+
}, ge = () => {
|
|
164
|
+
M.current?.togglePopover(), t?.onApply?.(r);
|
|
165
|
+
}, ye = (e) => {
|
|
166
|
+
const a = A();
|
|
167
|
+
if (e.key === "ArrowDown")
|
|
168
|
+
e.preventDefault(), e.stopPropagation(), S((o) => o < a.length - 1 ? o + 1 : o);
|
|
169
|
+
else if (e.key === "ArrowUp")
|
|
170
|
+
e.preventDefault(), e.stopPropagation(), S((o) => o > 0 ? o - 1 : 0);
|
|
171
|
+
else if ((e.key === " " || e.key === "Enter") && (e.preventDefault(), i >= 0 && i < a.length)) {
|
|
172
|
+
const o = a[i], l = r.some((w) => w[u] === o[u]);
|
|
173
|
+
W(!l, o);
|
|
174
|
+
}
|
|
175
|
+
}, he = (e, a) => {
|
|
176
|
+
const o = r.some((p) => p[u] === e[u]), l = `${g}-option-${a}`, w = i === a;
|
|
177
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
178
|
+
key: e.id || e.value,
|
|
179
|
+
id: l,
|
|
180
|
+
role: "option",
|
|
181
|
+
"aria-selected": o,
|
|
182
|
+
className: `option px-3 py-2 cursor-pointer select-none flex items-center gap-2 ${w ? "bg-gray-100" : "hover:bg-gray-100"}`,
|
|
183
|
+
onClick: () => W(!o, e),
|
|
184
|
+
"data-automation-id": `dropdown-option-${e?.automationId || a}`
|
|
185
|
+
}, /* @__PURE__ */ n.createElement(De, {
|
|
186
|
+
tabIndex: -1,
|
|
187
|
+
ariaHidden: !0,
|
|
188
|
+
checked: o,
|
|
189
|
+
onChange: () => {
|
|
190
|
+
}
|
|
191
|
+
}), /* @__PURE__ */ n.createElement("span", {
|
|
192
|
+
className: "checkbox-label"
|
|
193
|
+
}, e?.label));
|
|
194
|
+
}, ve = () => {
|
|
195
|
+
const e = A(), a = i >= 0 ? `${g}-option-${i}` : void 0;
|
|
196
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
197
|
+
className: "dropdown-content dropdown-options",
|
|
198
|
+
onKeyDown: (o) => {
|
|
199
|
+
o.key === "Tab" && o.stopPropagation();
|
|
200
|
+
}
|
|
201
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
202
|
+
id: g,
|
|
203
|
+
ref: V,
|
|
204
|
+
role: "listbox",
|
|
205
|
+
"aria-label": `${f} options`,
|
|
206
|
+
"aria-multiselectable": "true",
|
|
207
|
+
tabIndex: -1,
|
|
208
|
+
style: {
|
|
209
|
+
outline: "none"
|
|
210
|
+
},
|
|
211
|
+
"aria-activedescendant": a,
|
|
212
|
+
onKeyDown: ye,
|
|
213
|
+
onFocus: () => {
|
|
214
|
+
i === -1 && e.length > 0 && S(0);
|
|
215
|
+
}
|
|
216
|
+
}, y && Q(), /* @__PURE__ */ n.createElement("div", {
|
|
217
|
+
className: "flex flex-col max-h-80 overflow-y-auto"
|
|
218
|
+
}, e.length > 0 ? e.map((o, l) => he(o, l)) : /* @__PURE__ */ n.createElement("div", {
|
|
219
|
+
className: "px-3 py-4 text-center text-[var(--color-gray-700)] text-sm",
|
|
220
|
+
role: "status",
|
|
221
|
+
"aria-live": "polite"
|
|
222
|
+
}, _))), /* @__PURE__ */ n.createElement("div", {
|
|
223
|
+
className: "flex items-center justify-end gap-4 p-3 border-t border-[var(--color-gray-200)]",
|
|
224
|
+
onKeyDown: (o) => {
|
|
225
|
+
o.key === "Tab" && o.shiftKey && (o.preventDefault(), o.stopPropagation(), V.current?.focus());
|
|
226
|
+
}
|
|
227
|
+
}, /* @__PURE__ */ n.createElement(Y, {
|
|
228
|
+
label: "Clear",
|
|
229
|
+
type: "link",
|
|
230
|
+
size: "sm",
|
|
231
|
+
onClick: fe,
|
|
232
|
+
automationId: "se-design-dropdown-clear-button",
|
|
233
|
+
ariaLabel: `Clear ${f} selection`
|
|
234
|
+
}), /* @__PURE__ */ n.createElement(Y, {
|
|
235
|
+
label: "Apply",
|
|
236
|
+
type: "primary",
|
|
237
|
+
size: "sm",
|
|
238
|
+
onClick: ge,
|
|
239
|
+
automationId: "se-design-dropdown-apply-button"
|
|
240
|
+
})));
|
|
241
|
+
}, xe = () => {
|
|
242
|
+
const e = d ? "border-[var(--color-blue-500)]" : E ? "border-[var(--color-gray-300)]" : "border-[var(--color-gray-600)]", a = q ? "border-[var(--color-red-500)]" : "", o = `dropdown-src-element bg-[var(--color-white)] flex px-3 py-2 ${le ? "border-0" : `border rounded-md ${a || e}`} flex items-center ${ne}`;
|
|
243
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
244
|
+
className: o
|
|
245
|
+
}, /* @__PURE__ */ n.createElement("div", {
|
|
246
|
+
className: "flex-1 min-w-0",
|
|
247
|
+
"data-automation-id": t?.dropDownSelectAutomationId || "selected-dropdown-value"
|
|
248
|
+
}, J(r[0], !0)), /* @__PURE__ */ n.createElement("div", {
|
|
249
|
+
className: "flex-shrink-0 ml-2",
|
|
250
|
+
"aria-hidden": "true"
|
|
251
|
+
}, /* @__PURE__ */ n.createElement(G, {
|
|
252
|
+
name: "chevron",
|
|
253
|
+
rotation: d ? "180" : "0",
|
|
254
|
+
className: "transition-transform",
|
|
255
|
+
stroke: H
|
|
256
|
+
})));
|
|
257
|
+
}, we = () => se || f || "Select option", X = y ? "button" : "combobox", Se = X === "combobox" && !s && c ? {
|
|
258
|
+
"aria-activedescendant": c["aria-activedescendant"],
|
|
259
|
+
"aria-controls": c["aria-controls"],
|
|
260
|
+
"aria-expanded": c["aria-expanded"]
|
|
29
261
|
} : {};
|
|
30
|
-
return /* @__PURE__ */
|
|
31
|
-
className:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
renderPopoverContents: (
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
262
|
+
return /* @__PURE__ */ n.createElement("div", {
|
|
263
|
+
className: `se-design-dropdown-container${t?.className ? ` ${t?.className}` : ""}`,
|
|
264
|
+
style: t?.style
|
|
265
|
+
}, t?.label && /* @__PURE__ */ n.createElement("div", {
|
|
266
|
+
id: T,
|
|
267
|
+
className: "se-design-dropdown-label mb-[3px] text-[var(--color-gray-700)] text-sm"
|
|
268
|
+
}, t?.label), /* @__PURE__ */ n.createElement("div", h({
|
|
269
|
+
style: t?.style,
|
|
270
|
+
className: `${E ? "bg-[var(--color-gray-50)] rounded-md cursor-not-allowed" : ""}`
|
|
271
|
+
}, s ? {} : ue), /* @__PURE__ */ n.createElement(Ie, h({
|
|
272
|
+
ref: M,
|
|
273
|
+
isPopoverOpen: d,
|
|
274
|
+
renderPopoverContents: F || (s ? ve : be),
|
|
275
|
+
contentWidth: "full",
|
|
276
|
+
renderPopoverSrcElement: t.renderSrcElement ? () => t.renderSrcElement({
|
|
277
|
+
isOpen: d,
|
|
278
|
+
selectedValue: r
|
|
279
|
+
}) : xe,
|
|
280
|
+
onPopoverToggle: (e) => {
|
|
281
|
+
$(e), e && s && setTimeout(() => V.current?.focus(), 50);
|
|
282
|
+
},
|
|
283
|
+
disabled: E,
|
|
284
|
+
automationId: t?.dropDownSrcAutomationId,
|
|
285
|
+
popoverContentAutomationId: t?.dropDownContentAutomationId,
|
|
286
|
+
ariaLabelledBy: t?.label ? T : t?.ariaLabelledBy,
|
|
287
|
+
ariaLabel: t?.label || t?.ariaLabelledBy ? void 0 : we(),
|
|
288
|
+
sourceRole: X
|
|
289
|
+
}, Se, s ? {
|
|
290
|
+
"aria-controls": g
|
|
291
|
+
} : {}))), q && /* @__PURE__ */ n.createElement("div", {
|
|
292
|
+
className: "text-[var(--color-red-500)] text-sm"
|
|
293
|
+
}, ae));
|
|
48
294
|
};
|
|
49
295
|
export {
|
|
50
|
-
|
|
296
|
+
Ke as Dropdown
|
|
51
297
|
};
|
|
52
298
|
//# sourceMappingURL=index25.js.map
|
package/dist/index25.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index25.js","sources":["../src/components/KebabMenu/index.tsx"],"sourcesContent":["import React, { FC } from 'react';\n\nimport { Popover } from 'components/Popover';\nimport { MenuItemProps } from 'components/MenuItem';\nimport { MenuList } from 'components/MenuList';\nimport { Icon } from 'components/Icon';\n\nexport interface KebabMenuProps {\n className?: string;\n automationId?: string;\n menuItems: MenuItemProps[];\n variant?: 'primary' | 'secondary' | '';\n ariaLabel?: string;\n}\n\nexport const KebabMenu: FC<KebabMenuProps> = ({ menuItems, variant = 'primary', className = '', automationId = '', ariaLabel }) => {\n const getUpdatedMenuItems = (closePopoverCb: () => void) => {\n return menuItems.map((item) => ({\n ...item,\n onClick: () => {\n item.onClick && item.onClick(item);\n closePopoverCb();\n }\n }))\n }\n\n const getKebabIconVariant = () => {\n if(variant === 'secondary') {\n return {fill: 'var(--color-blue-500)', stroke: 'var(--color-blue-500)'}\n }\n return {}\n }\n\n return <Popover\n className={className}\n position='bottom-left'\n automationId={automationId}\n ariaLabel={ariaLabel}\n renderPopoverSrcElement={({ displayPopover }) => (\n <div className={`se-design-kebab-menu ${displayPopover ? 'bg-[var(--color-blue-100)]' : ''} hover:bg-[var(--color-blue-100)] rounded-[4px] transition-all duration-300 w-max p-1`}>\n <Icon name=\"kebab-menu\" {...getKebabIconVariant()} />\n </div>\n )}\n renderPopoverContents={({ closePopoverCb }) => (\n <MenuList items={getUpdatedMenuItems(closePopoverCb)} />\n )}\n />\n };\n"],"names":["KebabMenu","menuItems","variant","className","automationId","ariaLabel","getUpdatedMenuItems","closePopoverCb","map","item","onClick","getKebabIconVariant","fill","stroke","React","createElement","Popover","position","renderPopoverSrcElement","displayPopover","Icon","_extends","name","renderPopoverContents","MenuList","items"],"mappings":";;;;;;;;;;;;;AAeO,MAAMA,IAAgCA,CAAC;AAAA,EAAEC,WAAAA;AAAAA,EAAWC,SAAAA,IAAU;AAAA,EAAWC,WAAAA,IAAY;AAAA,EAAIC,cAAAA,IAAe;AAAA,EAAIC,WAAAA;AAAU,MAAM;AAC3HC,QAAAA,IAAsBA,CAACC,MACpBN,EAAUO,IAAKC,CAAUA,OAAA;AAAA,IAC9B,GAAGA;AAAAA,IACHC,SAASA,MAAM;AACRA,MAAAA,EAAAA,WAAWD,EAAKC,QAAQD,CAAI,GAClBF;IACjB;AAAA,EACA,EAAA,GAGEI,IAAsBA,MACvBT,MAAY,cACN;AAAA,IAACU,MAAM;AAAA,IAAyBC,QAAQ;AAAA,EAAA,IAE1C;AAGFC,SAAAA,gBAAAA,EAAAC,cAACC,GAAO;AAAA,IACXb,WAAAA;AAAAA,IACAc,UAAS;AAAA,IACTb,cAAAA;AAAAA,IACAC,WAAAA;AAAAA,IACAa,yBAAyBA,CAAC;AAAA,MAAEC,gBAAAA;AAAAA,IAAAA,MAC1BJ,gBAAAA,EAAAA,cAAA,OAAA;AAAA,MAAKZ,WAAW,wBAAwBgB,IAAiB,+BAA+B,EAAE;AAAA,IACtFL,GAAAA,gBAAAA,EAAAC,cAACK,GAAIC,EAAA;AAAA,MAACC,MAAK;AAAA,IAAA,GAAiBX,EAAqB,CAAA,CAAG,CACnD;AAAA,IAEPY,uBAAuBA,CAAC;AAAA,MAAEhB,gBAAAA;AAAAA,IAAAA,MACxBQ,gBAAAA,EAAAA,cAACS,GAAQ;AAAA,MAACC,OAAOnB,EAAoBC,CAAc;AAAA,IAAA,CAAI;AAAA,EAAA,CAE1D;AACH;"}
|
|
1
|
+
{"version":3,"file":"index25.js","sources":["../src/components/Dropdown/index.tsx"],"sourcesContent":["import React, { FC, useState, useRef, useEffect } from 'react';\n\nimport { Popover, PopoverHandle } from 'src/components/Popover';\nimport { Icon } from 'components/Icon';\nimport { Checkbox } from '../Checkbox';\nimport { Button } from '../Button';\nimport { InputWithIcon } from '../InputWithIcon';\nimport { useStableId } from '../../utils/useStableId';\nimport { useCombobox } from '../../utils/a11y/useCombobox';\n\ntype DropdownValue = {\n [key: string]: any;\n};\n\ntype DropdownProps = {\n label?: string;\n ariaLabel?: string;\n ariaLabelledBy?: string;\n type: 'select' | 'multi-select';\n dropDownOptions?: DropdownValue[];\n defaultText?: string;\n selectBy?: string;\n optionsUniqueBy?: string;\n displaySelected?: boolean;\n defaultSelectedValue?: DropdownValue | DropdownValue[];\n customSelectedValue?: string;\n onOptionClick?: (selectedValue: DropdownValue) => void;\n style?: React.CSSProperties;\n renderOptionChip?: (option: DropdownValue, srcOption: boolean) => React.ReactNode;\n className?: string;\n iconColor?: string;\n disabled?: boolean;\n dropdownClassName?: string;\n hasError?: boolean;\n errorMessage?: string;\n onApply?: (selectedValue: DropdownValue[]) => void;\n onClear?: () => void;\n customDropdownContent?: () => React.ReactNode;\n isBorderless?: boolean;\n dropDownSrcAutomationId?: string;\n dropDownSelectAutomationId?: string;\n dropDownContentAutomationId?: string;\n shouldShowSearch?: boolean;\n showSearchIcon?: boolean;\n searchPlaceholder?: string;\n searchResultEmptyMessage?: string;\n /** Controlled selection — when provided, Dropdown won't manage internal selected state */\n selectedValue?: DropdownValue | DropdownValue[];\n /** Controlled open state — when provided, Dropdown won't manage internal open/close */\n isOpen?: boolean;\n /** Callback when open state changes (fires in both controlled and uncontrolled modes) */\n onOpenChange?: (isOpen: boolean) => void;\n /** Custom trigger element — replaces the default bordered div + chevron */\n renderSrcElement?: (props: { isOpen: boolean; selectedValue: DropdownValue[] }) => React.ReactNode;\n};\n\nexport const Dropdown: FC<DropdownProps> = (props) => {\n const isControlledSelection = props.selectedValue !== undefined;\n const isControlledOpen = props.isOpen !== undefined;\n\n const [internalIsOpen, setInternalIsOpen] = useState(false);\n const [searchQuery, setSearchQuery] = useState('');\n const [highlightedMultiSelectIndex, setHighlightedMultiSelectIndex] = useState(-1);\n const [internalSelectedValues, setInternalSelectedValues] = useState<DropdownValue[]>(() =>\n props?.defaultSelectedValue\n ? Array.isArray(props?.defaultSelectedValue)\n ? props?.defaultSelectedValue\n : [props.defaultSelectedValue]\n : []\n );\n const popoverRef = useRef<HTMLDivElement & PopoverHandle>(null);\n const listboxRef = useRef<HTMLDivElement>(null);\n const searchInputRef = useRef<HTMLInputElement>(null);\n const labelId = useStableId(undefined, 'dropdown-label');\n const listboxId = useStableId(undefined, 'dropdown-listbox');\n\n // Derived state: controlled props take precedence over internal state\n const isDropDownOpen = isControlledOpen ? props.isOpen! : internalIsOpen;\n const selectedDropDownValues = isControlledSelection\n ? (Array.isArray(props.selectedValue) ? props.selectedValue : props.selectedValue ? [props.selectedValue] : [])\n : internalSelectedValues;\n\n const setIsDropDownOpen = (value: boolean) => {\n if (!isControlledOpen) {\n setInternalIsOpen(value);\n }\n props.onOpenChange?.(value);\n };\n\n const setSelectedDropDownValues = (values: DropdownValue[]) => {\n if (!isControlledSelection) {\n setInternalSelectedValues(values);\n }\n };\n\n const {\n selectBy = '',\n optionsUniqueBy = '',\n displaySelected = false,\n dropDownOptions,\n defaultText = 'Select',\n iconColor = 'var(--color-gray-700)',\n disabled = false,\n dropdownClassName = '',\n hasError = false,\n errorMessage = '',\n customDropdownContent = null,\n isBorderless = false,\n shouldShowSearch = false,\n showSearchIcon = true,\n searchPlaceholder = 'Search...',\n searchResultEmptyMessage = 'No results found',\n ariaLabel = '',\n customSelectedValue = ''\n } = props;\n\n useEffect(() => {\n if (!isControlledSelection) {\n const newValues = props?.defaultSelectedValue\n ? Array.isArray(props?.defaultSelectedValue)\n ? props?.defaultSelectedValue\n : [props.defaultSelectedValue]\n : [];\n setInternalSelectedValues(newValues);\n }\n }, [props?.defaultSelectedValue, isControlledSelection]);\n\n useEffect(() => {\n if (!isDropDownOpen) {\n setSearchQuery('');\n setHighlightedMultiSelectIndex(-1);\n }\n }, [isDropDownOpen]);\n\n useEffect(() => {\n if (highlightedMultiSelectIndex >= 0) {\n const optionEl = document.getElementById(`${listboxId}-option-${highlightedMultiSelectIndex}`);\n optionEl?.scrollIntoView({ block: 'nearest' });\n }\n }, [highlightedMultiSelectIndex]);\n\n // Focus search input when dropdown opens with search enabled\n useEffect(() => {\n if (isDropDownOpen && shouldShowSearch && searchInputRef.current) {\n requestAnimationFrame(() => searchInputRef.current?.focus());\n }\n }, [isDropDownOpen, shouldShowSearch]);\n\n const isMultiSelect = props?.type === 'multi-select';\n\n const getFilteredOptions = () => {\n if (!searchQuery.trim()) {\n return dropDownOptions || [];\n }\n return (dropDownOptions || []).filter((option) => {\n const optionValue = option?.[selectBy]?.toString().toLowerCase() || '';\n return optionValue.includes(searchQuery.toLowerCase());\n });\n };\n\n const handleDropDownOptionClick = (dropDownOption: any) => {\n setSelectedDropDownValues([dropDownOption]);\n setIsDropDownOpen(false);\n props?.onOptionClick?.(dropDownOption);\n };\n\n // Use useCombobox hook for keyboard navigation (only for single-select)\n const filteredOptions = getFilteredOptions();\n const {\n listboxProps,\n getOptionProps,\n highlightedIndex,\n containerProps: comboboxContainerProps,\n inputProps: comboboxInputProps\n } = useCombobox({\n items: isMultiSelect ? [] : filteredOptions, // Only use for single-select\n isOpen: isDropDownOpen && !isMultiSelect,\n onOpenChange: setIsDropDownOpen,\n onSelect: (item: DropdownValue) => {\n handleDropDownOptionClick(item);\n },\n listboxId,\n disabled: isMultiSelect || disabled,\n hasItems: filteredOptions.length > 0\n });\n\n const getSelectedDropDownValue = (option: DropdownValue, isSrcOption: boolean = false) => {\n if (isMultiSelect) {\n return defaultText;\n }\n\n // if custom selected value is provided, use it instead of the option value\n if (isSrcOption && customSelectedValue) {\n return customSelectedValue;\n }\n\n return option?.[selectBy] || defaultText;\n };\n\n const clearSelectedDropDownValues = () => {\n setSelectedDropDownValues([]);\n props?.onClear?.();\n };\n\n const optionChip = (option: DropdownValue, srcOption: boolean = false) => {\n if (props?.renderOptionChip) {\n return props?.renderOptionChip(option, srcOption);\n }\n\n if (isMultiSelect && selectedDropDownValues?.length > 0) {\n const firstSelectedLabel = selectedDropDownValues[0]?.[selectBy] || '';\n const remainingCount = selectedDropDownValues.length - 1;\n\n // For multiple selections: text takes remaining space, count takes minimum space needed\n return (\n <div className={`option-chip flex items-center w-full`}>\n <div\n className={`${remainingCount > 0 ? 'w-full' : 'flex-1'} truncate`}\n >{`${defaultText}: ${firstSelectedLabel}`}</div>\n {remainingCount > 0 && <div className=\"flex-shrink-0\">+{remainingCount}</div>}\n </div>\n );\n }\n\n return (\n <p className={`option-chip flex flex-1 items-center justify-between`}>\n {getSelectedDropDownValue(option, srcOption)}\n </p>\n );\n };\n\n const renderSearchBar = () => {\n // When search is the combobox (shouldShowSearch + single-select), wire useCombobox ARIA onto the input\n const searchComboboxProps = shouldShowSearch && !isMultiSelect ? {\n role: comboboxInputProps.role,\n 'aria-expanded': comboboxInputProps['aria-expanded'],\n 'aria-haspopup': comboboxInputProps['aria-haspopup'],\n 'aria-controls': comboboxInputProps['aria-controls'],\n 'aria-autocomplete': comboboxInputProps['aria-autocomplete'],\n 'aria-activedescendant': comboboxInputProps['aria-activedescendant'],\n onKeyDown: comboboxInputProps.onKeyDown\n } : {};\n\n return (\n <div className=\" w-full relative flex items-center border-b border-[var(--color-gray-300)]\">\n <InputWithIcon\n leftIcon={showSearchIcon ? { name: 'search', position: 'left', style: { color: 'var(--color-gray-500)' } } : undefined}\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-dropdown-search\"\n ariaLabel={searchPlaceholder}\n inputRef={searchInputRef}\n inputProps={searchComboboxProps}\n />\n </div>\n );\n };\n\n const dropDownOptionJsx = (dropDownOption: DropdownValue, index: number) => {\n const optionTxt = dropDownOption[selectBy];\n const dropDownSelectedValue = selectedDropDownValues[0]?.[selectBy] || defaultText;\n const selectByUniqueId = optionsUniqueBy?.length\n ? dropDownOption[optionsUniqueBy] == selectedDropDownValues[0]?.[optionsUniqueBy]\n : true;\n const isOptionSelected = displaySelected && optionTxt === dropDownSelectedValue && selectByUniqueId;\n const isHighlighted = highlightedIndex === index;\n const optionProps = !isMultiSelect ? getOptionProps(index, isOptionSelected) : {};\n\n return (\n <div\n key={dropDownOption.id || dropDownOption.value}\n className={`option break-words px-3 py-2 hover:bg-gray-100 cursor-pointer select-none flex items-center justify-between ${\n isOptionSelected ? 'selected' : ''\n } ${isHighlighted ? 'bg-gray-100' : ''}`}\n onClick={() => handleDropDownOptionClick(dropDownOption)}\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ') {\n e.preventDefault();\n handleDropDownOptionClick(dropDownOption);\n }\n }}\n tabIndex={-1}\n data-automation-id={`dropdown-option-${dropDownOption?.automationId || index}`}\n {...optionProps}\n aria-selected={isOptionSelected ? 'true' : 'false'}\n >\n {optionChip({ ...dropDownOption, isOptionSelected }, false)}\n {isOptionSelected && <Icon name=\"checkmark\" stroke={iconColor} />}\n </div>\n );\n };\n\n const renderDropdownContents = () => {\n return (\n <div\n className=\"dropdown-content dropdown-options\"\n aria-label={`${defaultText} options`}\n {...listboxProps}\n >\n {shouldShowSearch && renderSearchBar()}\n <div className=\"flex flex-col max-h-80 overflow-y-auto\">\n {filteredOptions.length > 0 ? (\n filteredOptions.map((dropDownOption, index) => dropDownOptionJsx(dropDownOption, index))\n ) : (\n <div\n className=\"px-3 py-4 text-center text-[var(--color-gray-700)] text-sm\"\n role=\"status\"\n aria-live=\"polite\"\n >\n {searchResultEmptyMessage}\n </div>\n )}\n </div>\n </div>\n );\n };\n\n const handleMultiSelectDropdownOptionClick = (isSelected: boolean, dropDownOption: DropdownValue) => {\n let newSelectedDropDownValues: DropdownValue[] = [];\n if (isSelected) {\n newSelectedDropDownValues = [...selectedDropDownValues, dropDownOption];\n } else {\n newSelectedDropDownValues = selectedDropDownValues?.filter(\n (option) => option[optionsUniqueBy] !== dropDownOption[optionsUniqueBy]\n );\n }\n setSelectedDropDownValues(newSelectedDropDownValues);\n };\n\n const handleApplySelectedDropDownValues = () => {\n popoverRef.current?.togglePopover();\n props?.onApply?.(selectedDropDownValues);\n };\n\n const handleMultiSelectKeyDown = (e: React.KeyboardEvent<HTMLDivElement>) => {\n const options = getFilteredOptions();\n if (e.key === 'ArrowDown') {\n e.preventDefault();\n e.stopPropagation();\n setHighlightedMultiSelectIndex((prev) => (prev < options.length - 1 ? prev + 1 : prev));\n } else if (e.key === 'ArrowUp') {\n e.preventDefault();\n e.stopPropagation();\n setHighlightedMultiSelectIndex((prev) => (prev > 0 ? prev - 1 : 0));\n } else if (e.key === ' ' || e.key === 'Enter') {\n e.preventDefault();\n if (highlightedMultiSelectIndex >= 0 && highlightedMultiSelectIndex < options.length) {\n const option = options[highlightedMultiSelectIndex];\n const isSelected = selectedDropDownValues.some(\n (v) => v[optionsUniqueBy] === option[optionsUniqueBy]\n );\n handleMultiSelectDropdownOptionClick(!isSelected, option);\n }\n }\n };\n\n const multiSelectDropdownOptionJSX = (dropDownOption: DropdownValue, index: number) => {\n const isOptionSelected = selectedDropDownValues.some(\n (option) => option[optionsUniqueBy] === dropDownOption[optionsUniqueBy]\n );\n const optionId = `${listboxId}-option-${index}`;\n const isHighlighted = highlightedMultiSelectIndex === index;\n\n return (\n <div\n key={dropDownOption.id || dropDownOption.value}\n id={optionId}\n role=\"option\"\n aria-selected={isOptionSelected}\n className={`option px-3 py-2 cursor-pointer select-none flex items-center gap-2 ${\n isHighlighted ? 'bg-gray-100' : 'hover:bg-gray-100'\n }`}\n onClick={() => handleMultiSelectDropdownOptionClick(!isOptionSelected, dropDownOption)}\n data-automation-id={`dropdown-option-${dropDownOption?.automationId || index}`}\n >\n <Checkbox\n tabIndex={-1}\n ariaHidden\n checked={isOptionSelected}\n onChange={() => {}}\n />\n <span className=\"checkbox-label\">{dropDownOption?.label}</span>\n </div>\n );\n };\n\n const renderMultiSelectDropdownContents = () => {\n const filteredOptions = getFilteredOptions();\n const activeDescendantId =\n highlightedMultiSelectIndex >= 0\n ? `${listboxId}-option-${highlightedMultiSelectIndex}`\n : undefined;\n\n return (\n <div\n className=\"dropdown-content dropdown-options\"\n onKeyDown={(e) => {\n // Stop all Tab events from reaching Popover's handlePopoverContentKeyDown (which closes on Tab).\n // Forward Tab: listbox → Clear → Apply → focus exits → useDismissOnFocusOut closes.\n // Shift+Tab: Apply → Clear → listbox → trigger (dropdown stays open; next Shift+Tab exits).\n if (e.key === 'Tab') {\n e.stopPropagation();\n }\n }}\n >\n <div\n id={listboxId}\n ref={listboxRef}\n role=\"listbox\"\n aria-label={`${defaultText} options`}\n aria-multiselectable=\"true\"\n tabIndex={-1}\n style={{ outline: 'none' }}\n aria-activedescendant={activeDescendantId}\n onKeyDown={handleMultiSelectKeyDown}\n onFocus={() => {\n if (highlightedMultiSelectIndex === -1 && filteredOptions.length > 0) {\n setHighlightedMultiSelectIndex(0);\n }\n }}\n >\n {shouldShowSearch && renderSearchBar()}\n <div className=\"flex flex-col max-h-80 overflow-y-auto\">\n {filteredOptions.length > 0 ? (\n filteredOptions.map((dropDownOption, index) => multiSelectDropdownOptionJSX(dropDownOption, index))\n ) : (\n <div\n className=\"px-3 py-4 text-center text-[var(--color-gray-700)] text-sm\"\n role=\"status\"\n aria-live=\"polite\"\n >\n {searchResultEmptyMessage}\n </div>\n )}\n </div>\n </div>\n <div\n className=\"flex items-center justify-end gap-4 p-3 border-t border-[var(--color-gray-200)]\"\n onKeyDown={(e) => {\n if (e.key === 'Tab' && e.shiftKey) {\n e.preventDefault();\n e.stopPropagation();\n listboxRef.current?.focus();\n }\n }}\n >\n <Button label=\"Clear\" type=\"link\" size=\"sm\" onClick={clearSelectedDropDownValues} automationId=\"se-design-dropdown-clear-button\" ariaLabel={`Clear ${defaultText} selection`} />\n <Button label=\"Apply\" type=\"primary\" size=\"sm\" onClick={handleApplySelectedDropDownValues} automationId=\"se-design-dropdown-apply-button\" />\n </div>\n </div>\n );\n };\n\n const renderDropdownSelect = () => {\n const borderColor = isDropDownOpen\n ? 'border-[var(--color-blue-500)]'\n : disabled\n ? 'border-[var(--color-gray-300)]'\n : 'border-[var(--color-gray-600)]';\n const errorBorderColor = hasError ? 'border-[var(--color-red-500)]' : '';\n const dropDownSelectClass = `dropdown-src-element bg-[var(--color-white)] flex px-3 py-2 ${\n isBorderless ? 'border-0' : `border rounded-md ${errorBorderColor ? errorBorderColor : borderColor}`\n } flex items-center ${dropdownClassName}`;\n\n return (\n <div className={dropDownSelectClass}>\n <div\n className=\"flex-1 min-w-0\"\n data-automation-id={props?.dropDownSelectAutomationId || 'selected-dropdown-value'}\n >\n {optionChip(selectedDropDownValues[0], true)}\n </div>\n <div className=\"flex-shrink-0 ml-2\" aria-hidden=\"true\">\n <Icon\n name={'chevron'}\n rotation={isDropDownOpen ? '180' : '0'}\n className={`transition-transform`}\n stroke={iconColor}\n />\n </div>\n </div>\n );\n };\n\n const getDropdownAriaLabel = () => {\n return ariaLabel || defaultText || 'Select option';\n };\n\n // sourceRole: select-only keeps combobox on trigger (APG select-only combobox),\n // search-enabled moves combobox to the search input (trigger becomes a button)\n const triggerSourceRole = shouldShowSearch ? 'button' : 'combobox';\n\n // Combobox ARIA on trigger only for select-only (no search) single-select\n const triggerComboboxProps = triggerSourceRole === 'combobox' && !isMultiSelect && comboboxInputProps ? {\n 'aria-activedescendant': comboboxInputProps['aria-activedescendant'],\n 'aria-controls': comboboxInputProps['aria-controls'],\n 'aria-expanded': comboboxInputProps['aria-expanded']\n } : {};\n\n return (\n <div\n className={`se-design-dropdown-container${props?.className ? ` ${props?.className}` : ''}`}\n style={props?.style}\n >\n {props?.label && (\n <div id={labelId} className=\"se-design-dropdown-label mb-[3px] text-[var(--color-gray-700)] text-sm\">\n {props?.label}\n </div>\n )}\n <div\n style={props?.style}\n className={`${disabled ? 'bg-[var(--color-gray-50)] rounded-md cursor-not-allowed' : ''}`}\n {...(!isMultiSelect ? comboboxContainerProps : {})}\n >\n <Popover\n ref={popoverRef}\n isPopoverOpen={isDropDownOpen}\n renderPopoverContents={\n customDropdownContent\n ? customDropdownContent\n : isMultiSelect\n ? renderMultiSelectDropdownContents\n : renderDropdownContents\n }\n contentWidth={'full'}\n renderPopoverSrcElement={\n props.renderSrcElement\n ? () => props.renderSrcElement!({ isOpen: isDropDownOpen, selectedValue: selectedDropDownValues })\n : renderDropdownSelect\n }\n onPopoverToggle={(value) => {\n setIsDropDownOpen(value);\n if (value && isMultiSelect) {\n setTimeout(() => listboxRef.current?.focus(), 50);\n }\n }}\n disabled={disabled}\n automationId={props?.dropDownSrcAutomationId}\n popoverContentAutomationId={props?.dropDownContentAutomationId}\n ariaLabelledBy={props?.label ? labelId : props?.ariaLabelledBy}\n ariaLabel={props?.label || props?.ariaLabelledBy ? undefined : getDropdownAriaLabel()}\n sourceRole={triggerSourceRole}\n {...triggerComboboxProps}\n {...(isMultiSelect ? { 'aria-controls': listboxId } : {})}\n />\n </div>\n {hasError && <div className=\"text-[var(--color-red-500)] text-sm\">{errorMessage}</div>}\n </div>\n );\n};\n"],"names":["Dropdown","props","isControlledSelection","selectedValue","undefined","isControlledOpen","isOpen","internalIsOpen","setInternalIsOpen","useState","searchQuery","setSearchQuery","highlightedMultiSelectIndex","setHighlightedMultiSelectIndex","internalSelectedValues","setInternalSelectedValues","defaultSelectedValue","Array","isArray","popoverRef","useRef","listboxRef","searchInputRef","labelId","useStableId","listboxId","isDropDownOpen","selectedDropDownValues","setIsDropDownOpen","value","onOpenChange","setSelectedDropDownValues","values","selectBy","optionsUniqueBy","displaySelected","dropDownOptions","defaultText","iconColor","disabled","dropdownClassName","hasError","errorMessage","customDropdownContent","isBorderless","shouldShowSearch","showSearchIcon","searchPlaceholder","searchResultEmptyMessage","ariaLabel","customSelectedValue","useEffect","newValues","document","getElementById","scrollIntoView","block","current","requestAnimationFrame","focus","isMultiSelect","type","getFilteredOptions","trim","filter","option","toString","toLowerCase","includes","handleDropDownOptionClick","dropDownOption","onOptionClick","filteredOptions","listboxProps","getOptionProps","highlightedIndex","containerProps","comboboxContainerProps","inputProps","comboboxInputProps","useCombobox","items","onSelect","item","hasItems","length","getSelectedDropDownValue","isSrcOption","clearSelectedDropDownValues","onClear","optionChip","srcOption","renderOptionChip","firstSelectedLabel","remainingCount","React","createElement","className","renderSearchBar","searchComboboxProps","role","onKeyDown","InputWithIcon","leftIcon","name","position","style","color","onChange","placeholder","margin","gap","inputStyle","width","border","outline","automationId","inputRef","dropDownOptionJsx","index","optionTxt","dropDownSelectedValue","selectByUniqueId","isOptionSelected","isHighlighted","optionProps","_extends","key","id","onClick","e","preventDefault","tabIndex","Icon","stroke","renderDropdownContents","map","handleMultiSelectDropdownOptionClick","isSelected","newSelectedDropDownValues","handleApplySelectedDropDownValues","togglePopover","onApply","handleMultiSelectKeyDown","options","stopPropagation","prev","some","v","multiSelectDropdownOptionJSX","optionId","Checkbox","ariaHidden","checked","label","renderMultiSelectDropdownContents","activeDescendantId","ref","onFocus","shiftKey","Button","size","renderDropdownSelect","borderColor","errorBorderColor","dropDownSelectClass","dropDownSelectAutomationId","rotation","getDropdownAriaLabel","triggerSourceRole","triggerComboboxProps","Popover","isPopoverOpen","renderPopoverContents","contentWidth","renderPopoverSrcElement","renderSrcElement","onPopoverToggle","setTimeout","dropDownSrcAutomationId","popoverContentAutomationId","dropDownContentAutomationId","ariaLabelledBy","sourceRole"],"mappings":";;;;;;;;;;;;;;;;;AAwDO,MAAMA,KAA+BC,CAAAA,MAAU;AACpD,QAAMC,IAAwBD,EAAME,kBAAkBC,QAChDC,IAAmBJ,EAAMK,WAAWF,QAEpC,CAACG,GAAgBC,EAAiB,IAAIC,EAAS,EAAK,GACpD,CAACC,GAAaC,CAAc,IAAIF,EAAS,EAAE,GAC3C,CAACG,GAA6BC,CAA8B,IAAIJ,EAAS,EAAE,GAC3E,CAACK,IAAwBC,CAAyB,IAAIN,EAA0B,MACpFR,GAAOe,uBACHC,MAAMC,QAAQjB,GAAOe,oBAAoB,IACvCf,GAAOe,uBACP,CAACf,EAAMe,oBAAoB,IAC7B,EACN,GACMG,IAAaC,EAAuC,IAAI,GACxDC,IAAaD,EAAuB,IAAI,GACxCE,IAAiBF,EAAyB,IAAI,GAC9CG,IAAUC,EAAYpB,QAAW,gBAAgB,GACjDqB,IAAYD,EAAYpB,QAAW,kBAAkB,GAGrDsB,IAAiBrB,IAAmBJ,EAAMK,SAAUC,GACpDoB,IAAyBzB,IAC1Be,MAAMC,QAAQjB,EAAME,aAAa,IAAIF,EAAME,gBAAgBF,EAAME,gBAAgB,CAACF,EAAME,aAAa,IAAI,CAAA,IAC1GW,IAEEc,IAAoBA,CAACC,MAAmB;AAC5C,IAAKxB,KAC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OqL,iBAAiBlL,SAAYoK,GAAAA;AAAAA,IAC/De,YAAYd;AAAAA,EAAAA,GACRC,IACC9G,IAAgB;AAAA,IAAE,iBAAiBnC;AAAAA,EAAAA,IAAc,CAAA,CAAE,CACzD,CACE,GACJgB,KAAYsD,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKC,WAAU;AAAA,EAAA,GAAuCvD,EAAkB,CAClF;AAET;"}
|
package/dist/index250.js
CHANGED
|
@@ -1,55 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
(
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
function
|
|
8
|
-
if (i) return f;
|
|
9
|
-
i = 1;
|
|
10
|
-
var u = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
11
|
-
function O(n) {
|
|
12
|
-
if (n == null)
|
|
13
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
14
|
-
return Object(n);
|
|
1
|
+
import { __require as u } from "./index255.js";
|
|
2
|
+
var o, p;
|
|
3
|
+
function g() {
|
|
4
|
+
if (p) return o;
|
|
5
|
+
p = 1;
|
|
6
|
+
var c = u();
|
|
7
|
+
function n() {
|
|
15
8
|
}
|
|
16
|
-
function
|
|
17
|
-
try {
|
|
18
|
-
if (!Object.assign)
|
|
19
|
-
return !1;
|
|
20
|
-
var n = new String("abc");
|
|
21
|
-
if (n[5] = "de", Object.getOwnPropertyNames(n)[0] === "5")
|
|
22
|
-
return !1;
|
|
23
|
-
for (var s = {}, r = 0; r < 10; r++)
|
|
24
|
-
s["_" + String.fromCharCode(r)] = r;
|
|
25
|
-
var a = Object.getOwnPropertyNames(s).map(function(e) {
|
|
26
|
-
return s[e];
|
|
27
|
-
});
|
|
28
|
-
if (a.join("") !== "0123456789")
|
|
29
|
-
return !1;
|
|
30
|
-
var t = {};
|
|
31
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(e) {
|
|
32
|
-
t[e] = e;
|
|
33
|
-
}), Object.keys(Object.assign({}, t)).join("") === "abcdefghijklmnopqrst";
|
|
34
|
-
} catch {
|
|
35
|
-
return !1;
|
|
36
|
-
}
|
|
9
|
+
function i() {
|
|
37
10
|
}
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
for (var o = 0; o < t.length; o++)
|
|
46
|
-
l.call(r, t[o]) && (a[t[o]] = r[t[o]]);
|
|
11
|
+
return i.resetWarningCache = n, o = function() {
|
|
12
|
+
function e(h, y, m, f, l, s) {
|
|
13
|
+
if (s !== c) {
|
|
14
|
+
var a = new Error(
|
|
15
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
16
|
+
);
|
|
17
|
+
throw a.name = "Invariant Violation", a;
|
|
47
18
|
}
|
|
48
19
|
}
|
|
49
|
-
|
|
50
|
-
|
|
20
|
+
e.isRequired = e;
|
|
21
|
+
function r() {
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
var t = {
|
|
25
|
+
array: e,
|
|
26
|
+
bigint: e,
|
|
27
|
+
bool: e,
|
|
28
|
+
func: e,
|
|
29
|
+
number: e,
|
|
30
|
+
object: e,
|
|
31
|
+
string: e,
|
|
32
|
+
symbol: e,
|
|
33
|
+
any: e,
|
|
34
|
+
arrayOf: r,
|
|
35
|
+
element: e,
|
|
36
|
+
elementType: e,
|
|
37
|
+
instanceOf: r,
|
|
38
|
+
node: e,
|
|
39
|
+
objectOf: r,
|
|
40
|
+
oneOf: r,
|
|
41
|
+
oneOfType: r,
|
|
42
|
+
shape: r,
|
|
43
|
+
exact: r,
|
|
44
|
+
checkPropTypes: i,
|
|
45
|
+
resetWarningCache: n
|
|
46
|
+
};
|
|
47
|
+
return t.PropTypes = t, t;
|
|
48
|
+
}, o;
|
|
51
49
|
}
|
|
52
50
|
export {
|
|
53
|
-
|
|
51
|
+
g as __require
|
|
54
52
|
};
|
|
55
53
|
//# sourceMappingURL=index250.js.map
|
package/dist/index250.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index250.js","sources":["../node_modules/
|
|
1
|
+
{"version":3,"file":"index250.js","sources":["../node_modules/prop-types/factoryWithThrowingShims.js"],"sourcesContent":["/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n"],"names":["ReactPropTypesSecret","require$$0","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","props","propName","componentName","location","propFullName","secret","err","getShim","ReactPropTypes"],"mappings":";;;;;AASA,MAAIA,IAAuBC,EAAA;AAE3B,WAASC,IAAgB;AAAA,EAAA;AACzB,WAASC,IAAyB;AAAA,EAAA;AAClC,SAAAA,EAAuB,oBAAoBD,GAE3CE,IAAiB,WAAW;AAC1B,aAASC,EAAKC,GAAOC,GAAUC,GAAeC,GAAUC,GAAcC,GAAQ;AAC5E,UAAIA,MAAWX,GAIf;AAAA,YAAIY,IAAM,IAAI;AAAA,UACZ;AAAA,QAGN;AACI,cAAAA,EAAI,OAAO,uBACLA;AAAA;AAAA,IACV;AACE,IAAAP,EAAK,aAAaA;AAClB,aAASQ,IAAU;AACjB,aAAOR;AAAA,IACX;AAGE,QAAIS,IAAiB;AAAA,MACnB,OAAOT;AAAA,MACP,QAAQA;AAAA,MACR,MAAMA;AAAA,MACN,MAAMA;AAAA,MACN,QAAQA;AAAA,MACR,QAAQA;AAAA,MACR,QAAQA;AAAA,MACR,QAAQA;AAAA,MAER,KAAKA;AAAA,MACL,SAASQ;AAAA,MACT,SAASR;AAAA,MACT,aAAaA;AAAA,MACb,YAAYQ;AAAA,MACZ,MAAMR;AAAA,MACN,UAAUQ;AAAA,MACV,OAAOA;AAAA,MACP,WAAWA;AAAA,MACX,OAAOA;AAAA,MACP,OAAOA;AAAA,MAEP,gBAAgBV;AAAA,MAChB,mBAAmBD;AAAA,IACvB;AAEE,WAAAY,EAAe,YAAYA,GAEpBA;AAAA,EACT;;","x_google_ignoreList":[0]}
|
package/dist/index251.js
CHANGED
package/dist/index251.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index251.js","sources":[
|
|
1
|
+
{"version":3,"file":"index251.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|