se-design 1.0.97 → 1.0.98-dev.1
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/icons/envelope.svg +2 -2
- package/dist/assets/icons/envelopes-outline.svg +3 -0
- package/dist/assets/icons/fill-and-sign.svg +1 -1
- package/dist/assets/icons/home-outline.svg +3 -0
- package/dist/assets/icons/library-outline.svg +3 -0
- package/dist/assets/icons/magicpen.svg +11 -0
- package/dist/assets/icons/move-folder.svg +1 -1
- package/dist/assets/icons/plus.svg +2 -2
- package/dist/assets/icons/reports-outline.svg +3 -0
- package/dist/assets/icons/repository-outline.svg +3 -0
- package/dist/assets/icons/sign-doc.svg +10 -0
- package/dist/assets/icons/template.svg +3 -0
- package/dist/assets/icons/upload.svg +5 -0
- package/dist/assets/icons/views-outline.svg +3 -0
- package/dist/assets/style.css +1 -1
- package/dist/components/GetStartedWidget/index.d.ts +28 -5
- package/dist/components/Tabs/index.d.ts +2 -1
- package/dist/components/UpgradeBanner/index.d.ts +31 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +94 -92
- package/dist/index.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 +1 -1
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +1 -1
- 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 +1 -1
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +1 -1
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +1 -1
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.js +1 -1
- 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 +1 -1
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- 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 +1 -1
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +2 -2
- package/dist/index119.js.map +1 -1
- package/dist/index12.js +3 -3
- package/dist/index120.js +1 -1
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +2 -2
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +1 -1
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +2 -2
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +1 -1
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +2 -2
- 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 +3 -3
- package/dist/index130.js +1 -1
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +2 -2
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +2 -2
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +2 -2
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +2 -2
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +2 -2
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +2 -2
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +1 -1
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +2 -2
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +1 -1
- package/dist/index139.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 +2 -2
- 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 +1 -1
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +1 -1
- 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/index150.js +1 -1
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +1 -1
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +2 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +1 -1
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +1 -1
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +2 -2
- 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 +3 -3
- package/dist/index160.js +1 -1
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +2 -2
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +1 -1
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +2 -2
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +2 -2
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +2 -2
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +2 -2
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +1 -1
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +2 -2
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +2 -2
- 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 +1 -1
- 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 +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +2 -2
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +3 -3
- package/dist/index180.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +1 -1
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +1 -1
- package/dist/index189.js.map +1 -1
- package/dist/index19.js +5 -5
- package/dist/index190.js +1 -1
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +1 -1
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +2 -2
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +1 -1
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +1 -1
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +1 -1
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +2 -2
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +1 -1
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +1 -1
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +1 -1
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +2 -2
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +1 -1
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +1 -1
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +1 -1
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +2 -2
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +1 -1
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +1 -1
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +2 -2
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +1 -1
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -2
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +2 -2
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +2 -2
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +2 -149
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +2 -9
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +2 -6
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +2 -43
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +2 -21
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +5 -0
- package/dist/index217.js.map +1 -0
- package/dist/index218.js +5 -0
- package/dist/index218.js.map +1 -0
- package/dist/index219.js +5 -0
- package/dist/index219.js.map +1 -0
- package/dist/index220.js +5 -0
- package/dist/index220.js.map +1 -0
- package/dist/index221.js +5 -0
- package/dist/index221.js.map +1 -0
- package/dist/index222.js +5 -0
- package/dist/index222.js.map +1 -0
- package/dist/index223.js +148 -27
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +8 -71
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +9 -0
- package/dist/index225.js.map +1 -0
- package/dist/index226.js +46 -0
- package/dist/index226.js.map +1 -0
- package/dist/index227.js +24 -0
- package/dist/index227.js.map +1 -0
- package/dist/index23.js +1 -1
- package/dist/index234.js +31 -0
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +75 -0
- package/dist/index235.js.map +1 -0
- package/dist/index24.js +3 -3
- package/dist/{index231.js → index242.js} +1 -1
- package/dist/{index231.js.map → index242.js.map} +1 -1
- package/dist/index244.js +11 -42
- package/dist/index244.js.map +1 -1
- package/dist/index253.js +1232 -169
- package/dist/index253.js.map +1 -1
- package/dist/index256.js +42 -18
- package/dist/index256.js.map +1 -1
- package/dist/index26.js +6 -6
- package/dist/index265.js +170 -2
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +3 -7
- package/dist/index266.js.map +1 -1
- package/dist/index268.js +18 -49
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +10 -2
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +8 -74
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +4 -92
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +166 -48
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +11 -8
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +5 -4
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +5 -51
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +38 -2
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +2 -2
- package/dist/index278.js +11 -0
- package/dist/index278.js.map +1 -0
- package/dist/{index267.js → index279.js} +6 -6
- package/dist/{index267.js.map → index279.js.map} +1 -1
- package/dist/index28.js +1 -1
- package/dist/index280.js +53 -0
- package/dist/index280.js.map +1 -0
- package/dist/index281.js +5 -0
- package/dist/index281.js.map +1 -0
- package/dist/index282.js +79 -0
- package/dist/index282.js.map +1 -0
- package/dist/index283.js +96 -0
- package/dist/index283.js.map +1 -0
- package/dist/index284.js +55 -0
- package/dist/index284.js.map +1 -0
- package/dist/index285.js +11 -0
- package/dist/index285.js.map +1 -0
- package/dist/index286.js +8 -0
- package/dist/index286.js.map +1 -0
- package/dist/index287.js +55 -0
- package/dist/index287.js.map +1 -0
- package/dist/index288.js +5 -0
- package/dist/index288.js.map +1 -0
- package/dist/index289.js +5 -0
- package/dist/index289.js.map +1 -0
- package/dist/index29.js +4 -4
- package/dist/index3.js +3 -3
- package/dist/index30.js +48 -46
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +4 -4
- package/dist/index32.js +1 -1
- package/dist/index33.js +11 -10
- package/dist/index34.js +1 -1
- package/dist/index36.js +4 -4
- package/dist/index37.js +5 -5
- package/dist/index38.js +3 -3
- package/dist/index39.js +5 -5
- package/dist/index4.js +4 -4
- package/dist/index40.js +4 -4
- package/dist/index41.js +1 -1
- package/dist/index43.js +125 -42
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +139 -101
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +105 -50
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +53 -142
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +140 -194
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +187 -26
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +30 -26
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +39 -0
- package/dist/index50.js.map +1 -0
- package/dist/index52.js +195 -35
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +34 -32
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +34 -151
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +140 -72
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +78 -453
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +459 -96
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +98 -43
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +40 -35
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +238 -218
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +33 -87
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +89 -159
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +157 -143
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +149 -33
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +33 -86
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +80 -113
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +114 -73
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +73 -158
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +157 -312
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +317 -46
- package/dist/index69.js.map +1 -1
- package/dist/index7.js +10 -9
- package/dist/index70.js +45 -142
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +145 -12
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +10 -53
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +52 -110
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +111 -17
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +17 -64
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +64 -25
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +24 -105
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +104 -58
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +60 -19
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +18 -168
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +171 -18
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +17 -10
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +11 -5
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +5 -62
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +58 -23
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +25 -9
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +14 -0
- package/dist/index87.js.map +1 -0
- package/dist/index89.js +2 -2
- package/dist/index89.js.map +1 -1
- package/dist/index9.js +4 -4
- package/dist/index90.js +2 -2
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +2 -2
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +2 -2
- 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/index233.js +0 -15
- package/dist/index233.js.map +0 -1
- package/dist/index241.js +0 -1236
- package/dist/index241.js.map +0 -1
- package/dist/index254.js +0 -7
- package/dist/index254.js.map +0 -1
- package/dist/index257.js +0 -13
- package/dist/index257.js.map +0 -1
- package/dist/index258.js +0 -13
- package/dist/index258.js.map +0 -1
- package/dist/index259.js +0 -8
- package/dist/index259.js.map +0 -1
- package/dist/index260.js +0 -173
- package/dist/index260.js.map +0 -1
- package/dist/index261.js +0 -14
- package/dist/index261.js.map +0 -1
- package/dist/index262.js +0 -9
- package/dist/index262.js.map +0 -1
- package/dist/index263.js +0 -9
- package/dist/index263.js.map +0 -1
- package/dist/index264.js +0 -41
- package/dist/index264.js.map +0 -1
- package/dist/index51.js +0 -201
- package/dist/index51.js.map +0 -1
- package/dist/index88.js +0 -5
- package/dist/index88.js.map +0 -1
package/dist/index284.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
object-assign
|
|
3
|
+
(c) Sindre Sorhus
|
|
4
|
+
@license MIT
|
|
5
|
+
*/
|
|
6
|
+
var f, i;
|
|
7
|
+
function p() {
|
|
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);
|
|
15
|
+
}
|
|
16
|
+
function j() {
|
|
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
|
+
}
|
|
37
|
+
}
|
|
38
|
+
return f = j() ? Object.assign : function(n, s) {
|
|
39
|
+
for (var r, a = O(n), t, e = 1; e < arguments.length; e++) {
|
|
40
|
+
r = Object(arguments[e]);
|
|
41
|
+
for (var c in r)
|
|
42
|
+
b.call(r, c) && (a[c] = r[c]);
|
|
43
|
+
if (u) {
|
|
44
|
+
t = u(r);
|
|
45
|
+
for (var o = 0; o < t.length; o++)
|
|
46
|
+
l.call(r, t[o]) && (a[t[o]] = r[t[o]]);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return a;
|
|
50
|
+
}, f;
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
p as __require
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=index284.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index284.js","sources":["../node_modules/object-assign/index.js"],"sourcesContent":["/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n"],"names":["getOwnPropertySymbols","hasOwnProperty","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","i","order2","n","test3","letter","objectAssign","target","source","from","to","symbols","s","key"],"mappings":";;;;;;;;;AAQA,MAAIA,IAAwB,OAAO,uBAC/BC,IAAiB,OAAO,UAAU,gBAClCC,IAAmB,OAAO,UAAU;AAExC,WAASC,EAASC,GAAK;AACtB,QAAIA,KAAQ;AACX,YAAM,IAAI,UAAU,uDAAuD;AAG5E,WAAO,OAAOA,CAAG;AAAA,EAClB;AAEA,WAASC,IAAkB;AAC1B,QAAI;AACH,UAAI,CAAC,OAAO;AACX,eAAO;AAMR,UAAIC,IAAQ,IAAI,OAAO,KAAK;AAE5B,UADAA,EAAM,CAAC,IAAI,MACP,OAAO,oBAAoBA,CAAK,EAAE,CAAC,MAAM;AAC5C,eAAO;AAKR,eADIC,IAAQ,CAAA,GACHC,IAAI,GAAGA,IAAI,IAAIA;AACvB,QAAAD,EAAM,MAAM,OAAO,aAAaC,CAAC,CAAC,IAAIA;AAEvC,UAAIC,IAAS,OAAO,oBAAoBF,CAAK,EAAE,IAAI,SAAUG,GAAG;AAC/D,eAAOH,EAAMG,CAAC;AAAA,MACjB,CAAG;AACD,UAAID,EAAO,KAAK,EAAE,MAAM;AACvB,eAAO;AAIR,UAAIE,IAAQ,CAAA;AAIZ,aAHA,uBAAuB,MAAM,EAAE,EAAE,QAAQ,SAAUC,GAAQ;AAC1D,QAAAD,EAAMC,CAAM,IAAIA;AAAA,MACnB,CAAG,GACG,OAAO,KAAK,OAAO,OAAO,CAAA,GAAID,CAAK,CAAC,EAAE,KAAK,EAAE,MAC/C;AAAA,IAKJ,QAAe;AAEb,aAAO;AAAA,IACT;AAAA,EACA;AAEA,SAAAE,IAAiBR,EAAe,IAAK,OAAO,SAAS,SAAUS,GAAQC,GAAQ;AAK9E,aAJIC,GACAC,IAAKd,EAASW,CAAM,GACpBI,GAEKC,IAAI,GAAGA,IAAI,UAAU,QAAQA,KAAK;AAC1C,MAAAH,IAAO,OAAO,UAAUG,CAAC,CAAC;AAE1B,eAASC,KAAOJ;AACf,QAAIf,EAAe,KAAKe,GAAMI,CAAG,MAChCH,EAAGG,CAAG,IAAIJ,EAAKI,CAAG;AAIpB,UAAIpB,GAAuB;AAC1B,QAAAkB,IAAUlB,EAAsBgB,CAAI;AACpC,iBAASR,IAAI,GAAGA,IAAIU,EAAQ,QAAQV;AACnC,UAAIN,EAAiB,KAAKc,GAAME,EAAQV,CAAC,CAAC,MACzCS,EAAGC,EAAQV,CAAC,CAAC,IAAIQ,EAAKE,EAAQV,CAAC,CAAC;AAAA,MAGrC;AAAA,IACA;AAEC,WAAOS;AAAA,EACR;;","x_google_ignoreList":[0]}
|
package/dist/index285.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index285.js","sources":["../node_modules/prop-types/lib/ReactPropTypesSecret.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 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n"],"names":["ReactPropTypesSecret","ReactPropTypesSecret_1"],"mappings":";;;;AASA,MAAIA,IAAuB;AAE3B,SAAAC,IAAiBD;;","x_google_ignoreList":[0]}
|
package/dist/index286.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index286.js","sources":["../node_modules/prop-types/lib/has.js"],"sourcesContent":["module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n"],"names":["has"],"mappings":";;sBAAAA,IAAiB,SAAS,KAAK,KAAK,OAAO,UAAU,cAAc;;","x_google_ignoreList":[0]}
|
package/dist/index287.js
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { __require as E } from "./index285.js";
|
|
2
|
+
import { __require as _ } from "./index286.js";
|
|
3
|
+
var f, v;
|
|
4
|
+
function P() {
|
|
5
|
+
if (v) return f;
|
|
6
|
+
v = 1;
|
|
7
|
+
var o = function() {
|
|
8
|
+
};
|
|
9
|
+
if (process.env.NODE_ENV !== "production") {
|
|
10
|
+
var y = E(), t = {}, d = _();
|
|
11
|
+
o = function(n) {
|
|
12
|
+
var a = "Warning: " + n;
|
|
13
|
+
typeof console < "u" && console.error(a);
|
|
14
|
+
try {
|
|
15
|
+
throw new Error(a);
|
|
16
|
+
} catch {
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function u(n, a, i, s, c) {
|
|
21
|
+
if (process.env.NODE_ENV !== "production") {
|
|
22
|
+
for (var e in n)
|
|
23
|
+
if (d(n, e)) {
|
|
24
|
+
var r;
|
|
25
|
+
try {
|
|
26
|
+
if (typeof n[e] != "function") {
|
|
27
|
+
var h = Error(
|
|
28
|
+
(s || "React class") + ": " + i + " type `" + e + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof n[e] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
29
|
+
);
|
|
30
|
+
throw h.name = "Invariant Violation", h;
|
|
31
|
+
}
|
|
32
|
+
r = n[e](a, e, s, i, null, y);
|
|
33
|
+
} catch (l) {
|
|
34
|
+
r = l;
|
|
35
|
+
}
|
|
36
|
+
if (r && !(r instanceof Error) && o(
|
|
37
|
+
(s || "React class") + ": type specification of " + i + " `" + e + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof r + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
38
|
+
), r instanceof Error && !(r.message in t)) {
|
|
39
|
+
t[r.message] = !0;
|
|
40
|
+
var p = c ? c() : "";
|
|
41
|
+
o(
|
|
42
|
+
"Failed " + i + " type: " + r.message + (p ?? "")
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
return u.resetWarningCache = function() {
|
|
49
|
+
process.env.NODE_ENV !== "production" && (t = {});
|
|
50
|
+
}, f = u, f;
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
P as __require
|
|
54
|
+
};
|
|
55
|
+
//# sourceMappingURL=index287.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index287.js","sources":["../node_modules/prop-types/checkPropTypes.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 printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n"],"names":["printWarning","ReactPropTypesSecret","require$$0","loggedTypeFailures","has","require$$1","text","message","checkPropTypes","typeSpecs","values","location","componentName","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1"],"mappings":";;;;;;AASA,MAAIA,IAAe,WAAW;AAAA,EAAA;AAE9B,MAAI,QAAQ,IAAI,aAAa,cAAc;AACzC,QAAIC,IAAuBC,EAAA,GACvBC,IAAqB,CAAA,GACrBC,IAAMC,EAAA;AAEV,IAAAL,IAAe,SAASM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reList":[0]}
|
package/dist/index288.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index288.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index289.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index289.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
package/dist/index29.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import m, { useMemo as ue, useRef as h, useEffect as f, useCallback as me, useState as $ } from "react";
|
|
2
2
|
import { Icon as fe } from "./index6.js";
|
|
3
|
-
import { getA11yNameAttributes as ye } from "./
|
|
4
|
-
import { useFocusTrap as be } from "./
|
|
5
|
-
import { useDismissOnEscape as pe } from "./
|
|
6
|
-
import { useFocusSentinel as he } from "./
|
|
3
|
+
import { getA11yNameAttributes as ye } from "./index87.js";
|
|
4
|
+
import { useFocusTrap as be } from "./index78.js";
|
|
5
|
+
import { useDismissOnEscape as pe } from "./index234.js";
|
|
6
|
+
import { useFocusSentinel as he } from "./index235.js";
|
|
7
7
|
/* empty css */
|
|
8
8
|
function E() {
|
|
9
9
|
return E = Object.assign ? Object.assign.bind() : function(g) {
|
package/dist/index3.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import K, { forwardRef as N } from "react";
|
|
2
|
-
import { getA11yNameAttributes as R } from "./
|
|
3
|
-
import { useAccessiblePress as _ } from "./
|
|
4
|
-
import "./
|
|
2
|
+
import { getA11yNameAttributes as R } from "./index87.js";
|
|
3
|
+
import { useAccessiblePress as _ } from "./index73.js";
|
|
4
|
+
import "./index78.js";
|
|
5
5
|
function a() {
|
|
6
6
|
return a = Object.assign ? Object.assign.bind() : function(t) {
|
|
7
7
|
for (var r = 1; r < arguments.length; r++) {
|
package/dist/index30.js
CHANGED
|
@@ -2,35 +2,35 @@ import t, { useState as L, useMemo as z, useRef as O, useEffect as H } from "rea
|
|
|
2
2
|
import { Icon as A } from "./index6.js";
|
|
3
3
|
import { Popover as U } from "./index19.js";
|
|
4
4
|
import { MenuList as V } from "./index18.js";
|
|
5
|
-
import { useStableId as q } from "./
|
|
6
|
-
import "./
|
|
7
|
-
import { useTabsA11y as G, getPanelId as J } from "./
|
|
5
|
+
import { useStableId as q } from "./index225.js";
|
|
6
|
+
import "./index78.js";
|
|
7
|
+
import { useTabsA11y as G, getPanelId as J } from "./index79.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
function d() {
|
|
10
10
|
return d = Object.assign ? Object.assign.bind() : function(i) {
|
|
11
|
-
for (var
|
|
12
|
-
var m = arguments[
|
|
11
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
12
|
+
var m = arguments[r];
|
|
13
13
|
for (var u in m) ({}).hasOwnProperty.call(m, u) && (i[u] = m[u]);
|
|
14
14
|
}
|
|
15
15
|
return i;
|
|
16
16
|
}, d.apply(null, arguments);
|
|
17
17
|
}
|
|
18
|
-
const
|
|
18
|
+
const re = ({
|
|
19
19
|
defaultActiveTab: i,
|
|
20
|
-
tabs:
|
|
20
|
+
tabs: r,
|
|
21
21
|
onTabChange: m,
|
|
22
22
|
primaryTabCount: u,
|
|
23
|
-
headingLevel:
|
|
23
|
+
headingLevel: p,
|
|
24
24
|
id: F,
|
|
25
25
|
ariaLabel: M = "Tabs",
|
|
26
26
|
ariaLabelledBy: K,
|
|
27
|
-
panelId:
|
|
28
|
-
appearance:
|
|
27
|
+
panelId: h,
|
|
28
|
+
appearance: b = "solid"
|
|
29
29
|
}) => {
|
|
30
|
-
const R = i || (
|
|
31
|
-
const e =
|
|
32
|
-
return
|
|
33
|
-
}, [
|
|
30
|
+
const R = i || (r[0] ? r[0].id : ""), S = b === "outline" || b === "pill" ? "se-design-tab-item-active font-medium hover:cursor-pointer" : "se-design-tab-item-active text-[var(--color-white)] bg-[var(--color-blue-500)] font-medium hover:cursor-pointer", [v, w] = L(R), [y, T] = L(!1), E = u ?? r?.length, g = r.slice(0, E), c = r.slice(E), l = c.find((e) => e.id === v), k = r.some((e) => e.renderTabContent), x = q(F, "tabs"), _ = z(() => {
|
|
31
|
+
const e = g.filter((s) => !s.disabled), o = c.filter((s) => !s.disabled), n = e.map((s) => s.id);
|
|
32
|
+
return o.length > 0 ? [...n, "overflow"] : n;
|
|
33
|
+
}, [g, c]), {
|
|
34
34
|
getTabProps: I,
|
|
35
35
|
getPanelProps: j,
|
|
36
36
|
getTabListProps: B,
|
|
@@ -38,21 +38,21 @@ const oe = ({
|
|
|
38
38
|
setFocusedTabId: N
|
|
39
39
|
} = G({
|
|
40
40
|
itemIds: _,
|
|
41
|
-
activeItem:
|
|
41
|
+
activeItem: v,
|
|
42
42
|
orientation: "horizontal",
|
|
43
43
|
idBase: x,
|
|
44
|
-
includePanelLinks: k || !!
|
|
45
|
-
externalPanelId:
|
|
46
|
-
}), P = O(null),
|
|
44
|
+
includePanelLinks: k || !!h,
|
|
45
|
+
externalPanelId: h
|
|
46
|
+
}), P = O(null), f = O(!1);
|
|
47
47
|
H(() => {
|
|
48
48
|
w(i || "");
|
|
49
49
|
}, [i]);
|
|
50
|
-
const
|
|
50
|
+
const $ = (e) => {
|
|
51
51
|
w(e?.id), m?.(e?.id);
|
|
52
|
-
},
|
|
53
|
-
if (
|
|
54
|
-
const e =
|
|
55
|
-
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(
|
|
52
|
+
}, D = (e, o) => e.id === o;
|
|
53
|
+
if (p && r.length === 1) {
|
|
54
|
+
const e = r[0];
|
|
55
|
+
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement(p, {
|
|
56
56
|
className: "se-design-tabs se-design-tabs-heading"
|
|
57
57
|
}, e.label), /* @__PURE__ */ t.createElement("div", {
|
|
58
58
|
className: "se-design-tabs-content"
|
|
@@ -61,13 +61,13 @@ const oe = ({
|
|
|
61
61
|
}, e?.renderTabContent && e?.renderTabContent(e))));
|
|
62
62
|
}
|
|
63
63
|
return /* @__PURE__ */ t.createElement(t.Fragment, null, /* @__PURE__ */ t.createElement("div", d({
|
|
64
|
-
className: `se-design-tabs flex items-stretch relative border rounded-md border-[var(--color-gray-400)] w-fit ${
|
|
64
|
+
className: `se-design-tabs flex items-stretch relative border rounded-md border-[var(--color-gray-400)] w-fit ${b === "outline" ? "se-design-tabs--outline" : ""} ${b === "pill" ? "se-design-tabs--pill" : ""}`,
|
|
65
65
|
"data-automation-id": "tabs-container"
|
|
66
66
|
}, B({
|
|
67
67
|
ariaLabel: M,
|
|
68
68
|
ariaLabelledBy: K
|
|
69
|
-
})),
|
|
70
|
-
const
|
|
69
|
+
})), g.map((e) => {
|
|
70
|
+
const o = v === e.id, n = !!e.disabled, s = I(e.id);
|
|
71
71
|
return /* @__PURE__ */ t.createElement("button", d({
|
|
72
72
|
type: "button",
|
|
73
73
|
key: e.id
|
|
@@ -76,21 +76,23 @@ const oe = ({
|
|
|
76
76
|
"aria-label": e.ariaLabel,
|
|
77
77
|
onFocus: () => !n && N(e.id),
|
|
78
78
|
onKeyDown: C,
|
|
79
|
-
onClick: () =>
|
|
80
|
-
className: `se-design-tab-item flex items-center text-base px-3 py-0.5 min-w-0 border-l first:border-l-0 first:rounded-l-[0.3rem] last:rounded-r-[0.3rem] border-[var(--color-gray-400)] ${n ? "" : "focus-outline"} ${n ? "text-[var(--color-gray-400)] cursor-not-allowed" :
|
|
79
|
+
onClick: () => $(e),
|
|
80
|
+
className: `se-design-tab-item flex items-center text-base px-3 py-0.5 min-w-0 border-l first:border-l-0 first:rounded-l-[0.3rem] last:rounded-r-[0.3rem] border-[var(--color-gray-400)] ${n ? "" : "focus-outline"} ${n ? "text-[var(--color-gray-400)] cursor-not-allowed" : o ? S : "text-[var(--color-gray-700)] font-normal hover:bg-[var(--color-gray-50)] hover:text-[var(--color-gray-900)] cursor-pointer transition-all duration-200 ease-in-out"}`,
|
|
81
81
|
"data-automation-id": `tab-item-${e.automationId || e.id || ""}`
|
|
82
|
-
}), e.label
|
|
82
|
+
}), e.label, b === "pill" && typeof e.count == "number" && /* @__PURE__ */ t.createElement("span", {
|
|
83
|
+
className: `se-design-tab-count ${o ? "se-design-tab-count-active" : ""}`
|
|
84
|
+
}, e.count));
|
|
83
85
|
}), c.length > 0 && /* @__PURE__ */ t.createElement(U, {
|
|
84
86
|
className: "se-design-overflow-tabs",
|
|
85
87
|
position: "bottom-left",
|
|
86
88
|
noBorder: !0,
|
|
87
89
|
disableClickToggle: !0,
|
|
88
90
|
onPopoverToggle: (e) => {
|
|
89
|
-
e || (
|
|
91
|
+
e || (f.current && P.current?.focus(), f.current = !1);
|
|
90
92
|
},
|
|
91
93
|
renderPopoverSrcElement: ({
|
|
92
94
|
displayPopover: e,
|
|
93
|
-
togglePopover:
|
|
95
|
+
togglePopover: o
|
|
94
96
|
}) => {
|
|
95
97
|
const n = I("overflow"), s = l ? J(l.id, x) : void 0;
|
|
96
98
|
return /* @__PURE__ */ t.createElement("div", d({}, n, {
|
|
@@ -103,16 +105,16 @@ const oe = ({
|
|
|
103
105
|
"aria-haspopup": "true",
|
|
104
106
|
"aria-expanded": e,
|
|
105
107
|
onClick: () => {
|
|
106
|
-
|
|
108
|
+
f.current = !1, o(!0);
|
|
107
109
|
},
|
|
108
110
|
onFocus: () => N("overflow"),
|
|
109
111
|
"data-automation-id": "tabs-kebab-menu",
|
|
110
112
|
onKeyDown: (a) => {
|
|
111
|
-
a.key === "Enter" || a.key === " " || a.key === "ArrowDown" ? (a.preventDefault(),
|
|
113
|
+
a.key === "Enter" || a.key === " " || a.key === "ArrowDown" ? (a.preventDefault(), f.current = !0, o(!0)) : a.key === "ArrowUp" ? (a.preventDefault(), f.current = !0, o("last")) : C(a);
|
|
112
114
|
},
|
|
113
115
|
className: `overflow-tabs-src-element focus-outline border-l px-3 py-0.5 rounded-r-md font-medium hover:cursor-pointer transition-all duration-200 ease-in-out ${e ? "bg-[var(--color-blue-100)]" : ""} ${l?.label ? "bg-[var(--color-blue-500)]" : "hover:bg-[var(--color-gray-50)]"}`,
|
|
114
|
-
onMouseEnter: () =>
|
|
115
|
-
onMouseLeave: () =>
|
|
116
|
+
onMouseEnter: () => T(!0),
|
|
117
|
+
onMouseLeave: () => T(!1)
|
|
116
118
|
}), l?.label ? /* @__PURE__ */ t.createElement("span", {
|
|
117
119
|
className: "pointer-events-none flex items-center gap-1"
|
|
118
120
|
}, /* @__PURE__ */ t.createElement("span", {
|
|
@@ -120,35 +122,35 @@ const oe = ({
|
|
|
120
122
|
}, l?.label), /* @__PURE__ */ t.createElement(A, {
|
|
121
123
|
name: "chevron",
|
|
122
124
|
rotation: e ? "180" : "0",
|
|
123
|
-
stroke:
|
|
125
|
+
stroke: y ? "var(--color-gray-100)" : "var(--color-white)"
|
|
124
126
|
})) : /* @__PURE__ */ t.createElement("span", {
|
|
125
127
|
className: "pointer-events-none"
|
|
126
128
|
}, /* @__PURE__ */ t.createElement(A, {
|
|
127
129
|
name: "kebab-menu",
|
|
128
|
-
fill:
|
|
130
|
+
fill: y ? "var(--color-gray-900)" : "var(--color-gray-700)"
|
|
129
131
|
})));
|
|
130
132
|
},
|
|
131
133
|
renderPopoverContents: ({
|
|
132
134
|
closePopoverCb: e
|
|
133
135
|
}) => /* @__PURE__ */ t.createElement(V, {
|
|
134
|
-
items: c.map((
|
|
135
|
-
id:
|
|
136
|
-
label:
|
|
137
|
-
automationId:
|
|
136
|
+
items: c.map((o) => ({
|
|
137
|
+
id: o?.id,
|
|
138
|
+
label: o?.label,
|
|
139
|
+
automationId: o?.automationId || o?.id,
|
|
138
140
|
onClick: () => {
|
|
139
|
-
|
|
141
|
+
$(o), e();
|
|
140
142
|
}
|
|
141
143
|
}))
|
|
142
144
|
})
|
|
143
145
|
})), k && /* @__PURE__ */ t.createElement("div", {
|
|
144
146
|
className: "se-design-tabs-content"
|
|
145
|
-
},
|
|
147
|
+
}, r.map((e) => /* @__PURE__ */ t.createElement("div", d({
|
|
146
148
|
key: e.id
|
|
147
149
|
}, j(e.id), {
|
|
148
|
-
className: `tab-content ${
|
|
149
|
-
}),
|
|
150
|
+
className: `tab-content ${D(e, v) ? "block" : "hidden"}`
|
|
151
|
+
}), D(e, v) && e.renderTabContent?.(e)))));
|
|
150
152
|
};
|
|
151
153
|
export {
|
|
152
|
-
|
|
154
|
+
re as Tabs
|
|
153
155
|
};
|
|
154
156
|
//# sourceMappingURL=index30.js.map
|
package/dist/index30.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index30.js","sources":["../src/components/Tabs/index.tsx"],"sourcesContent":["import React, { FC, ReactNode, useState, useEffect, useMemo, useRef } from 'react';\nimport { Icon } from '../Icon';\nimport { Popover } from '../Popover';\nimport { MenuList } from '../MenuList';\nimport { useStableId } from '../../utils/useStableId';\nimport { useTabsA11y, getPanelId } from '../../utils/a11y';\n\nimport './style.scss';\n\ninterface TabProps {\n label: string;\n id: string;\n disabled?: boolean;\n renderTabContent?: (tab: TabProps) => ReactNode;\n automationId?: string;\n ariaLabel?: string;\n}\ninterface TabsProps {\n defaultActiveTab?: string;\n tabs: TabProps[];\n onTabChange?: (tabId: string) => void;\n primaryTabCount?: number; // prop for controlling primary tabs\n headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span'; // heading tag to render single tab as a heading element when only one tab is present\n automationId?: string;\n id?: string; // custom ID for baseId (passed to useStableId)\n ariaLabel?: string; // Accessible name when no visible label exists\n ariaLabelledBy?: string; // ID of element that labels this tablist (preferred over ariaLabel)\n panelId?: string; // When consumer manages a single external panel, pass its id here\n // Active-tab treatment: 'solid' (default) fills with brand blue; 'outline' uses a white pill with a blue ring\n appearance?: 'solid' | 'outline';\n}\n\nexport const Tabs: FC<TabsProps> = ({\n defaultActiveTab,\n tabs,\n onTabChange,\n primaryTabCount,\n headingLevel: HeadingTag,\n id,\n ariaLabel = 'Tabs',\n ariaLabelledBy,\n panelId,\n appearance = 'solid'\n}) => {\n const defaultTabId = defaultActiveTab || (tabs[0] ? tabs[0].id : '');\n // 'outline' active styling lives in .se-design-tabs--outline (style.scss), so omit the solid fill/text utilities here\n const activeTabClassName =\n appearance === 'outline'\n ? 'se-design-tab-item-active font-medium hover:cursor-pointer'\n : 'se-design-tab-item-active text-[var(--color-white)] bg-[var(--color-blue-500)] font-medium hover:cursor-pointer';\n const [activeTab, setActiveTab] = useState(defaultTabId);\n const [isIconTabHover, setIsIconTabHover] = useState(false);\n\n const visibleTabCount = primaryTabCount ?? tabs?.length;\n const visibleTabs = tabs.slice(0, visibleTabCount);\n const overflowTabs = tabs.slice(visibleTabCount);\n const activeOverflowTab = overflowTabs.find((tab) => tab.id === activeTab);\n\n // Only render internal panels if at least one tab provides content via renderTabContent\n const hasPanelContent = tabs.some(t => t.renderTabContent);\n\n // A11y setup\n const baseId = useStableId(id, 'tabs');\n const itemIds = useMemo(() => {\n const enabledVisibleTabs = visibleTabs.filter(t => !t.disabled);\n const enabledOverflowTabs = overflowTabs.filter(t => !t.disabled);\n const visibleIds = enabledVisibleTabs.map(t => t.id);\n return enabledOverflowTabs.length > 0 ? [...visibleIds, 'overflow'] : visibleIds;\n }, [visibleTabs, overflowTabs]);\n\n const { getTabProps, getPanelProps, getTabListProps, handleKeyDown, setFocusedTabId } = useTabsA11y({\n itemIds,\n activeItem: activeTab,\n orientation: 'horizontal',\n idBase: baseId,\n includePanelLinks: hasPanelContent || !!panelId,\n externalPanelId: panelId\n });\n\n // Ref for the overflow button div — needed to return focus after menu closes\n const overflowDivRef = useRef<HTMLDivElement>(null);\n // Track whether the overflow popover was opened via keyboard — only return focus\n // programmatically in that case (mouse-opened popovers should not trigger :focus-visible on close)\n const wasKeyboardOpenedRef = useRef(false);\n\n useEffect(() => {\n setActiveTab(defaultActiveTab || '');\n }, [defaultActiveTab]);\n\n const handleTabClick = (tab: TabProps) => {\n setActiveTab(tab?.id);\n onTabChange?.(tab?.id);\n };\n\n const isTabActive = (tab: TabProps, activeTab: string) => {\n return tab.id === activeTab;\n };\n\n if (HeadingTag && tabs.length === 1) {\n const singleTab = tabs[0];\n return (\n <>\n <HeadingTag className=\"se-design-tabs se-design-tabs-heading\">\n {singleTab.label}\n </HeadingTag>\n <div className=\"se-design-tabs-content\">\n <div className=\"tab-content block\">\n {singleTab?.renderTabContent && singleTab?.renderTabContent(singleTab)}\n </div>\n </div>\n </>\n );\n }\n\n return (\n <>\n <div\n className={`se-design-tabs flex items-stretch relative border rounded-md border-[var(--color-gray-400)] w-fit ${\n appearance === 'outline' ? 'se-design-tabs--outline' : ''\n }`}\n data-automation-id=\"tabs-container\"\n {...getTabListProps({ ariaLabel, ariaLabelledBy })}\n >\n {visibleTabs.map((tab) => {\n const isActive = activeTab === tab.id;\n const isDisabled = !!tab.disabled;\n const tabProps = getTabProps(tab.id);\n return (\n <button\n type=\"button\"\n key={tab.id}\n {...tabProps}\n disabled={isDisabled}\n aria-label={tab.ariaLabel}\n onFocus={() => !isDisabled && setFocusedTabId(tab.id)}\n onKeyDown={handleKeyDown}\n onClick={() => handleTabClick(tab)}\n className={`se-design-tab-item flex items-center text-base px-3 py-0.5 min-w-0 border-l first:border-l-0 first:rounded-l-[0.3rem] last:rounded-r-[0.3rem] border-[var(--color-gray-400)] ${!isDisabled ? 'focus-outline' : ''} ${\n isDisabled\n ? 'text-[var(--color-gray-400)] cursor-not-allowed'\n : isActive\n ? activeTabClassName\n : 'text-[var(--color-gray-700)] font-normal hover:bg-[var(--color-gray-50)] hover:text-[var(--color-gray-900)] cursor-pointer transition-all duration-200 ease-in-out'\n }`}\n data-automation-id={`tab-item-${tab.automationId || tab.id || ''}`}\n >\n {tab.label}\n </button>\n );\n })}\n\n {overflowTabs.length > 0 && (\n <Popover\n className=\"se-design-overflow-tabs\"\n position=\"bottom-left\"\n noBorder\n disableClickToggle={true}\n onPopoverToggle={(isOpen) => {\n if (!isOpen) {\n if (wasKeyboardOpenedRef.current) overflowDivRef.current?.focus();\n wasKeyboardOpenedRef.current = false;\n }\n }}\n renderPopoverSrcElement={({ displayPopover, togglePopover }) => {\n const overflowTabProps = getTabProps('overflow');\n const overflowAriaControls = activeOverflowTab\n ? getPanelId(activeOverflowTab.id, baseId)\n : undefined;\n\n return (\n <div\n {...overflowTabProps}\n ref={(el) => { overflowDivRef.current = el; overflowTabProps.ref(el); }}\n aria-selected={!!activeOverflowTab}\n aria-label={activeOverflowTab?.label ? undefined : `More tabs (${overflowTabs.length})`}\n aria-controls={overflowAriaControls}\n aria-haspopup=\"true\"\n aria-expanded={displayPopover}\n onClick={() => { wasKeyboardOpenedRef.current = false; togglePopover(true); }}\n onFocus={() => setFocusedTabId('overflow')}\n data-automation-id=\"tabs-kebab-menu\"\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {\n e.preventDefault();\n wasKeyboardOpenedRef.current = true;\n togglePopover(true);\n } else if (e.key === 'ArrowUp') {\n e.preventDefault();\n wasKeyboardOpenedRef.current = true;\n togglePopover('last');\n } else {\n handleKeyDown(e);\n }\n }}\n className={`overflow-tabs-src-element focus-outline border-l px-3 py-0.5 rounded-r-md font-medium hover:cursor-pointer transition-all duration-200 ease-in-out ${\n displayPopover ? 'bg-[var(--color-blue-100)]' : ''\n } ${activeOverflowTab?.label ? 'bg-[var(--color-blue-500)]' : 'hover:bg-[var(--color-gray-50)]'}`}\n onMouseEnter={() => setIsIconTabHover(true)}\n onMouseLeave={() => setIsIconTabHover(false)}\n >\n {activeOverflowTab?.label ? (\n <span className=\"pointer-events-none flex items-center gap-1\">\n <span className=\"text-[var(--color-white)]\">{activeOverflowTab?.label}</span>\n <Icon\n name=\"chevron\"\n rotation={displayPopover ? '180' : '0'}\n stroke={isIconTabHover ? 'var(--color-gray-100)' : 'var(--color-white)'}\n />\n </span>\n ) : (\n <span className=\"pointer-events-none\">\n <Icon name=\"kebab-menu\" fill={isIconTabHover ? 'var(--color-gray-900)' : 'var(--color-gray-700)'} />\n </span>\n )}\n </div>\n );\n }}\n renderPopoverContents={({ closePopoverCb }) => (\n <MenuList\n items={overflowTabs.map((tab) => ({\n id: tab?.id,\n label: tab?.label,\n automationId: tab?.automationId || tab?.id,\n onClick: () => {\n handleTabClick(tab);\n closePopoverCb();\n }\n }))}\n />\n )}\n />\n )}\n </div>\n\n {hasPanelContent && (\n <div className=\"se-design-tabs-content\">\n {tabs.map((tab) => (\n <div\n key={tab.id}\n {...getPanelProps(tab.id)}\n className={`tab-content ${isTabActive(tab, activeTab) ? 'block' : 'hidden'}`}\n >\n {isTabActive(tab, activeTab) && tab.renderTabContent?.(tab)}\n </div>\n ))}\n </div>\n )}\n </>\n );\n};\n"],"names":["Tabs","defaultActiveTab","tabs","onTabChange","primaryTabCount","headingLevel","HeadingTag","id","ariaLabel","ariaLabelledBy","panelId","appearance","defaultTabId","activeTabClassName","activeTab","setActiveTab","useState","isIconTabHover","setIsIconTabHover","visibleTabCount","length","visibleTabs","slice","overflowTabs","activeOverflowTab","find","tab","hasPanelContent","some","t","renderTabContent","baseId","useStableId","itemIds","useMemo","enabledVisibleTabs","filter","disabled","enabledOverflowTabs","visibleIds","map","getTabProps","getPanelProps","getTabListProps","handleKeyDown","setFocusedTabId","useTabsA11y","activeItem","orientation","idBase","includePanelLinks","externalPanelId","overflowDivRef","useRef","wasKeyboardOpenedRef","useEffect","handleTabClick","isTabActive","singleTab","createElement","React","Fragment","className","label","_extends","isActive","isDisabled","tabProps","type","key","onFocus","onKeyDown","onClick","automationId","Popover","position","noBorder","disableClickToggle","onPopoverToggle","isOpen","current","focus","renderPopoverSrcElement","displayPopover","togglePopover","overflowTabProps","overflowAriaControls","getPanelId","undefined","ref","el","e","preventDefault","onMouseEnter","onMouseLeave","Icon","name","rotation","stroke","fill","renderPopoverContents","closePopoverCb","MenuList","items"],"mappings":";;;;;;;;;;;;;;;;;AAgCO,MAAMA,KAAsBA,CAAC;AAAA,EAClCC,kBAAAA;AAAAA,EACAC,MAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,iBAAAA;AAAAA,EACAC,cAAcC;AAAAA,EACdC,IAAAA;AAAAA,EACAC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ACxBzC,gBAAAA,EAAAD,cAAC2C,GAAQ;AAAA,MACPC,OAAOhF,EAAaiB,IAAKd,CAAAA,OAAS;AAAA,QAChCnB,IAAImB,GAAKnB;AAAAA,QACTwD,OAAOrC,GAAKqC;AAAAA,QACZU,cAAc/C,GAAK+C,gBAAgB/C,GAAKnB;AAAAA,QACxCiE,SAASA,MAAM;AACbhB,UAAAA,EAAe9B,CAAG,GAClB2E,EAAAA;AAAAA,QACF;AAAA,MAAA,EACA;AAAA,IAAA,CACH;AAAA,EAAA,CAEJ,CAEA,GAEJ1E,KACCiC,gBAAAA,EAAAD,cAAA,OAAA;AAAA,IAAKG,WAAU;AAAA,EAAA,GACZ5D,EAAKsC,IAAKd,OACTkC,gBAAAA,EAAAD,cAAA,OAAAK,EAAA;AAAA,IACEK,KAAK3C,EAAInB;AAAAA,EAAAA,GACLmC,EAAchB,EAAInB,EAAE,GAAC;AAAA,IACzBuD,WAAW,eAAeL,EAAY/B,GAAKZ,CAAS,IAAI,UAAU,QAAQ;AAAA,EAAA,CAAG,GAE5E2C,EAAY/B,GAAKZ,CAAS,KAAKY,EAAII,mBAAmBJ,CAAG,CACvD,CACN,CACE,CAEP;AAEN;"}
|
|
1
|
+
{"version":3,"file":"index30.js","sources":["../src/components/Tabs/index.tsx"],"sourcesContent":["import React, { FC, ReactNode, useState, useEffect, useMemo, useRef } from 'react';\nimport { Icon } from '../Icon';\nimport { Popover } from '../Popover';\nimport { MenuList } from '../MenuList';\nimport { useStableId } from '../../utils/useStableId';\nimport { useTabsA11y, getPanelId } from '../../utils/a11y';\n\nimport './style.scss';\n\ninterface TabProps {\n label: string;\n id: string;\n disabled?: boolean;\n renderTabContent?: (tab: TabProps) => ReactNode;\n automationId?: string;\n ariaLabel?: string;\n count?: number;\n}\ninterface TabsProps {\n defaultActiveTab?: string;\n tabs: TabProps[];\n onTabChange?: (tabId: string) => void;\n primaryTabCount?: number; // prop for controlling primary tabs\n headingLevel?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span'; // heading tag to render single tab as a heading element when only one tab is present\n automationId?: string;\n id?: string; // custom ID for baseId (passed to useStableId)\n ariaLabel?: string; // Accessible name when no visible label exists\n ariaLabelledBy?: string; // ID of element that labels this tablist (preferred over ariaLabel)\n panelId?: string; // When consumer manages a single external panel, pass its id here\n // Active-tab treatment: 'solid' (default) fills with brand blue; 'outline' uses a white pill with a blue ring;\n // 'pill' is a fully-rounded segmented control with no dividers between tabs (see Figma 427:16674)\n appearance?: 'solid' | 'outline' | 'pill';\n}\n\nexport const Tabs: FC<TabsProps> = ({\n defaultActiveTab,\n tabs,\n onTabChange,\n primaryTabCount,\n headingLevel: HeadingTag,\n id,\n ariaLabel = 'Tabs',\n ariaLabelledBy,\n panelId,\n appearance = 'solid'\n}) => {\n const defaultTabId = defaultActiveTab || (tabs[0] ? tabs[0].id : '');\n // 'outline'/'pill' active styling lives in their SCSS modifier classes\n const activeTabClassName =\n appearance === 'outline' || appearance === 'pill'\n ? 'se-design-tab-item-active font-medium hover:cursor-pointer'\n : 'se-design-tab-item-active text-[var(--color-white)] bg-[var(--color-blue-500)] font-medium hover:cursor-pointer';\n const [activeTab, setActiveTab] = useState(defaultTabId);\n const [isIconTabHover, setIsIconTabHover] = useState(false);\n\n const visibleTabCount = primaryTabCount ?? tabs?.length;\n const visibleTabs = tabs.slice(0, visibleTabCount);\n const overflowTabs = tabs.slice(visibleTabCount);\n const activeOverflowTab = overflowTabs.find((tab) => tab.id === activeTab);\n\n // Only render internal panels if at least one tab provides content via renderTabContent\n const hasPanelContent = tabs.some(t => t.renderTabContent);\n\n // A11y setup\n const baseId = useStableId(id, 'tabs');\n const itemIds = useMemo(() => {\n const enabledVisibleTabs = visibleTabs.filter(t => !t.disabled);\n const enabledOverflowTabs = overflowTabs.filter(t => !t.disabled);\n const visibleIds = enabledVisibleTabs.map(t => t.id);\n return enabledOverflowTabs.length > 0 ? [...visibleIds, 'overflow'] : visibleIds;\n }, [visibleTabs, overflowTabs]);\n\n const { getTabProps, getPanelProps, getTabListProps, handleKeyDown, setFocusedTabId } = useTabsA11y({\n itemIds,\n activeItem: activeTab,\n orientation: 'horizontal',\n idBase: baseId,\n includePanelLinks: hasPanelContent || !!panelId,\n externalPanelId: panelId\n });\n\n // Ref for the overflow button div — needed to return focus after menu closes\n const overflowDivRef = useRef<HTMLDivElement>(null);\n // Track whether the overflow popover was opened via keyboard — only return focus\n // programmatically in that case (mouse-opened popovers should not trigger :focus-visible on close)\n const wasKeyboardOpenedRef = useRef(false);\n\n useEffect(() => {\n setActiveTab(defaultActiveTab || '');\n }, [defaultActiveTab]);\n\n const handleTabClick = (tab: TabProps) => {\n setActiveTab(tab?.id);\n onTabChange?.(tab?.id);\n };\n\n const isTabActive = (tab: TabProps, activeTab: string) => {\n return tab.id === activeTab;\n };\n\n if (HeadingTag && tabs.length === 1) {\n const singleTab = tabs[0];\n return (\n <>\n <HeadingTag className=\"se-design-tabs se-design-tabs-heading\">\n {singleTab.label}\n </HeadingTag>\n <div className=\"se-design-tabs-content\">\n <div className=\"tab-content block\">\n {singleTab?.renderTabContent && singleTab?.renderTabContent(singleTab)}\n </div>\n </div>\n </>\n );\n }\n\n return (\n <>\n <div\n className={`se-design-tabs flex items-stretch relative border rounded-md border-[var(--color-gray-400)] w-fit ${\n appearance === 'outline' ? 'se-design-tabs--outline' : ''\n } ${appearance === 'pill' ? 'se-design-tabs--pill' : ''}`}\n data-automation-id=\"tabs-container\"\n {...getTabListProps({ ariaLabel, ariaLabelledBy })}\n >\n {visibleTabs.map((tab) => {\n const isActive = activeTab === tab.id;\n const isDisabled = !!tab.disabled;\n const tabProps = getTabProps(tab.id);\n return (\n <button\n type=\"button\"\n key={tab.id}\n {...tabProps}\n disabled={isDisabled}\n aria-label={tab.ariaLabel}\n onFocus={() => !isDisabled && setFocusedTabId(tab.id)}\n onKeyDown={handleKeyDown}\n onClick={() => handleTabClick(tab)}\n className={`se-design-tab-item flex items-center text-base px-3 py-0.5 min-w-0 border-l first:border-l-0 first:rounded-l-[0.3rem] last:rounded-r-[0.3rem] border-[var(--color-gray-400)] ${!isDisabled ? 'focus-outline' : ''} ${\n isDisabled\n ? 'text-[var(--color-gray-400)] cursor-not-allowed'\n : isActive\n ? activeTabClassName\n : 'text-[var(--color-gray-700)] font-normal hover:bg-[var(--color-gray-50)] hover:text-[var(--color-gray-900)] cursor-pointer transition-all duration-200 ease-in-out'\n }`}\n data-automation-id={`tab-item-${tab.automationId || tab.id || ''}`}\n >\n {tab.label}\n {appearance === 'pill' && typeof tab.count === 'number' && (\n <span className={`se-design-tab-count ${isActive ? 'se-design-tab-count-active' : ''}`}>\n {tab.count}\n </span>\n )}\n </button>\n );\n })}\n\n {overflowTabs.length > 0 && (\n <Popover\n className=\"se-design-overflow-tabs\"\n position=\"bottom-left\"\n noBorder\n disableClickToggle={true}\n onPopoverToggle={(isOpen) => {\n if (!isOpen) {\n if (wasKeyboardOpenedRef.current) overflowDivRef.current?.focus();\n wasKeyboardOpenedRef.current = false;\n }\n }}\n renderPopoverSrcElement={({ displayPopover, togglePopover }) => {\n const overflowTabProps = getTabProps('overflow');\n const overflowAriaControls = activeOverflowTab\n ? getPanelId(activeOverflowTab.id, baseId)\n : undefined;\n\n return (\n <div\n {...overflowTabProps}\n ref={(el) => { overflowDivRef.current = el; overflowTabProps.ref(el); }}\n aria-selected={!!activeOverflowTab}\n aria-label={activeOverflowTab?.label ? undefined : `More tabs (${overflowTabs.length})`}\n aria-controls={overflowAriaControls}\n aria-haspopup=\"true\"\n aria-expanded={displayPopover}\n onClick={() => { wasKeyboardOpenedRef.current = false; togglePopover(true); }}\n onFocus={() => setFocusedTabId('overflow')}\n data-automation-id=\"tabs-kebab-menu\"\n onKeyDown={(e) => {\n if (e.key === 'Enter' || e.key === ' ' || e.key === 'ArrowDown') {\n e.preventDefault();\n wasKeyboardOpenedRef.current = true;\n togglePopover(true);\n } else if (e.key === 'ArrowUp') {\n e.preventDefault();\n wasKeyboardOpenedRef.current = true;\n togglePopover('last');\n } else {\n handleKeyDown(e);\n }\n }}\n className={`overflow-tabs-src-element focus-outline border-l px-3 py-0.5 rounded-r-md font-medium hover:cursor-pointer transition-all duration-200 ease-in-out ${\n displayPopover ? 'bg-[var(--color-blue-100)]' : ''\n } ${activeOverflowTab?.label ? 'bg-[var(--color-blue-500)]' : 'hover:bg-[var(--color-gray-50)]'}`}\n onMouseEnter={() => setIsIconTabHover(true)}\n onMouseLeave={() => setIsIconTabHover(false)}\n >\n {activeOverflowTab?.label ? (\n <span className=\"pointer-events-none flex items-center gap-1\">\n <span className=\"text-[var(--color-white)]\">{activeOverflowTab?.label}</span>\n <Icon\n name=\"chevron\"\n rotation={displayPopover ? '180' : '0'}\n stroke={isIconTabHover ? 'var(--color-gray-100)' : 'var(--color-white)'}\n />\n </span>\n ) : (\n <span className=\"pointer-events-none\">\n <Icon name=\"kebab-menu\" fill={isIconTabHover ? 'var(--color-gray-900)' : 'var(--color-gray-700)'} />\n </span>\n )}\n </div>\n );\n }}\n renderPopoverContents={({ closePopoverCb }) => (\n <MenuList\n items={overflowTabs.map((tab) => ({\n id: tab?.id,\n label: tab?.label,\n automationId: tab?.automationId || tab?.id,\n onClick: () => {\n handleTabClick(tab);\n closePopoverCb();\n }\n }))}\n />\n )}\n />\n )}\n </div>\n\n {hasPanelContent && (\n <div className=\"se-design-tabs-content\">\n {tabs.map((tab) => (\n <div\n key={tab.id}\n {...getPanelProps(tab.id)}\n className={`tab-content ${isTabActive(tab, activeTab) ? 'block' : 'hidden'}`}\n >\n {isTabActive(tab, activeTab) && tab.renderTabContent?.(tab)}\n </div>\n ))}\n </div>\n )}\n </>\n );\n};\n"],"names":["Tabs","defaultActiveTab","tabs","onTabChange","primaryTabCount","headingLevel","HeadingTag","id","ariaLabel","ariaLabelledBy","panelId","appearance","defaultTabId","activeTabClassName","activeTab","setActiveTab","useState","isIconTabHover","setIsIconTabHover","visibleTabCount","length","visibleTabs","slice","overflowTabs","activeOverflowTab","find","tab","hasPanelContent","some","t","renderTabContent","baseId","useStableId","itemIds","useMemo","enabledVisibleTabs","filter","disabled","enabledOverflowTabs","visibleIds","map","getTabProps","getPanelProps","getTabListProps","handleKeyDown","setFocusedTabId","useTabsA11y","activeItem","orientation","idBase","includePanelLinks","externalPanelId","overflowDivRef","useRef","wasKeyboardOpenedRef","useEffect","handleTabClick","isTabActive","singleTab","createElement","React","Fragment","className","label","_extends","isActive","isDisabled","tabProps","type","key","onFocus","onKeyDown","onClick","automationId","count","Popover","position","noBorder","disableClickToggle","onPopoverToggle","isOpen","current","focus","renderPopoverSrcElement","displayPopover","togglePopover","overflowTabProps","overflowAriaControls","getPanelId","undefined","ref","el","e","preventDefault","onMouseEnter","onMouseLeave","Icon","name","rotation","stroke","fill","renderPopoverContents","closePopoverCb","MenuList","items"],"mappings":";;;;;;;;;;;;;;;;;AAkCO,MAAMA,KAAsBA,CAAC;AAAA,EAClCC,kBAAAA;AAAAA,EACAC,MAAAA;AAAAA,EACAC,aAAAA;AAAAA,EACAC,iBAAAA;AAAAA,EACAC,cAAcC;AAAAA,EACdC,IAAAA;AAAAA,EACAC,WAAAA,IAAY;AAAA,EACZC,gBAAAA;AAAAA,EACAC,SAAAA;AAAAA,EACAC,YAAAA,IAAa;AACf,MAAM;AACJ,QAAMC,IAAeX,MAAqBC,EAAK,CAAC,IAAIA,EAAK,CAAC,EAAEK,KAAK,KAE3DM,IACJF,MAAe,aAAaA,MAAe,SACvC,+DACA,mHACA,CAACG,GAAWC,CAAY,IAAIC,EAASJ,CAAY,GACjD,CAACK,GAAgBC,CAAiB,IAAIF,EAAS,EAAK,GAEpDG,IAAkBf,KAAmBF,GAAMkB,QAC3CC,IAAcnB,EAAKoB,MAAM,GAAGH,CAAe,GAC3CI,IAAerB,EAAKoB,MAAMH,CAAe,GACzCK,IAAoBD,EAAaE,KAAMC,CAAAA,MAAQA,EAAInB,OAAOO,CAAS,GAGnEa,IAAkBzB,EAAK0B,KAAKC,CAAAA,MAAKA,EAAEC,gBAAgB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AEA,GAEJ3E,KACCiC,gBAAAA,EAAAD,cAAA,OAAA;AAAA,IAAKG,WAAU;AAAA,EAAA,GACZ5D,EAAKsC,IAAKd,OACTkC,gBAAAA,EAAAD,cAAA,OAAAK,EAAA;AAAA,IACEK,KAAK3C,EAAInB;AAAAA,EAAAA,GACLmC,EAAchB,EAAInB,EAAE,GAAC;AAAA,IACzBuD,WAAW,eAAeL,EAAY/B,GAAKZ,CAAS,IAAI,UAAU,QAAQ;AAAA,EAAA,CAAG,GAE5E2C,EAAY/B,GAAKZ,CAAS,KAAKY,EAAII,mBAAmBJ,CAAG,CACvD,CACN,CACE,CAEP;AAEN;"}
|
package/dist/index31.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import e, { forwardRef as K } from "react";
|
|
2
2
|
import { Icon as M } from "./index6.js";
|
|
3
3
|
import { Button as d } from "./index4.js";
|
|
4
|
-
import { useStableId as B } from "./
|
|
5
|
-
import { getRegionAttributes as Q } from "./
|
|
6
|
-
import { useAccessiblePress as U } from "./
|
|
7
|
-
import "./
|
|
4
|
+
import { useStableId as B } from "./index225.js";
|
|
5
|
+
import { getRegionAttributes as Q } from "./index72.js";
|
|
6
|
+
import { useAccessiblePress as U } from "./index73.js";
|
|
7
|
+
import "./index78.js";
|
|
8
8
|
/* empty css */
|
|
9
9
|
function m() {
|
|
10
10
|
return m = Object.assign ? Object.assign.bind() : function(a) {
|
package/dist/index32.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import s, { useEffect as N } from "react";
|
|
2
2
|
import { Icon as g } from "./index6.js";
|
|
3
|
-
import { announce as k } from "./
|
|
3
|
+
import { announce as k } from "./index81.js";
|
|
4
4
|
const m = {
|
|
5
5
|
pageNavigation: "px-[6px] py-[6px] flex items-center justify-center",
|
|
6
6
|
pageItem: "px-[7px] py-[1px] min-w-[24px] text-sm flex items-center justify-center rounded border hover:cursor-pointer appearance-none focus-outline"
|
package/dist/index33.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import { Button as N } from "./index4.js";
|
|
3
3
|
import { Badge as I } from "./index10.js";
|
|
4
|
-
import { Icon as
|
|
4
|
+
import { Icon as d } from "./index6.js";
|
|
5
5
|
/* empty css */
|
|
6
6
|
const t = {
|
|
7
7
|
widgetCtn: "flex flex-col gap-[2px] align-center border border-[var(--color-gray-200)] rounded-[12px] w-[385px]",
|
|
@@ -21,16 +21,16 @@ const t = {
|
|
|
21
21
|
requestFeatureImageCtn: "w-[48px] h-[48px] border border-[var(--color-gray-200)] rounded-[50%] flex items-center flex-shrink-0 bg-[var(--color-red-50)]",
|
|
22
22
|
requestFeatureDescriptionCtn: "flex flex-col"
|
|
23
23
|
}, B = ({
|
|
24
|
-
widgetClassName:
|
|
24
|
+
widgetClassName: g = "",
|
|
25
25
|
widgetType: a = "general",
|
|
26
26
|
widgetTitle: r = "",
|
|
27
27
|
widgetDescription: l = "",
|
|
28
28
|
widgetImage: p,
|
|
29
|
-
hasImage:
|
|
29
|
+
hasImage: f = !1,
|
|
30
30
|
hasButtonCta: n = !1,
|
|
31
31
|
hasLinkCta: i = !1,
|
|
32
32
|
ctaText: o = "",
|
|
33
|
-
hasBadge:
|
|
33
|
+
hasBadge: x = !1,
|
|
34
34
|
badgeText: w = "",
|
|
35
35
|
buttonBgColor: u = "secondary",
|
|
36
36
|
onCtaClick: b,
|
|
@@ -38,7 +38,7 @@ const t = {
|
|
|
38
38
|
webinarDateInfo: c,
|
|
39
39
|
webinarSpeaker: s
|
|
40
40
|
}) => {
|
|
41
|
-
const E =
|
|
41
|
+
const E = x && /* @__PURE__ */ e.createElement(I, {
|
|
42
42
|
label: w,
|
|
43
43
|
className: t.widgetBadge,
|
|
44
44
|
bgColor: "var(--color-yellow-50)",
|
|
@@ -52,14 +52,14 @@ const t = {
|
|
|
52
52
|
label: o,
|
|
53
53
|
className: `${t.widgetButtonCta} mt-[4px]`,
|
|
54
54
|
onClick: b
|
|
55
|
-
})), C =
|
|
55
|
+
})), C = f && /* @__PURE__ */ e.createElement("div", {
|
|
56
56
|
className: `${t.widgetImageCtn} widget-image-ctn`
|
|
57
57
|
}, /* @__PURE__ */ e.createElement("img", {
|
|
58
58
|
src: p,
|
|
59
59
|
alt: "widget-image"
|
|
60
60
|
}));
|
|
61
61
|
return /* @__PURE__ */ e.createElement("div", {
|
|
62
|
-
className: `${t.widgetCtn} ${
|
|
62
|
+
className: `${t.widgetCtn} ${g} widget-ctn`,
|
|
63
63
|
onClick: v
|
|
64
64
|
}, a !== "general" && C, /* @__PURE__ */ e.createElement("div", {
|
|
65
65
|
className: t.descriptionCtn
|
|
@@ -71,14 +71,14 @@ const t = {
|
|
|
71
71
|
className: t.webinarInfoCtn
|
|
72
72
|
}, s && /* @__PURE__ */ e.createElement("div", {
|
|
73
73
|
className: `${t.webinarDescriptionInfo} align-baseline`
|
|
74
|
-
}, /* @__PURE__ */ e.createElement(
|
|
74
|
+
}, /* @__PURE__ */ e.createElement(d, {
|
|
75
75
|
name: "people",
|
|
76
76
|
className: "relative top-[2px]"
|
|
77
77
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
78
78
|
className: t.webinarSpeaker
|
|
79
79
|
}, s)), c && /* @__PURE__ */ e.createElement("div", {
|
|
80
80
|
className: `${t.webinarTimeInfo} align-baseline mb-[4px]`
|
|
81
|
-
}, /* @__PURE__ */ e.createElement(
|
|
81
|
+
}, /* @__PURE__ */ e.createElement(d, {
|
|
82
82
|
name: "clock",
|
|
83
83
|
className: "relative top-[2px]"
|
|
84
84
|
}), /* @__PURE__ */ e.createElement("span", {
|
|
@@ -96,6 +96,7 @@ const t = {
|
|
|
96
96
|
}, l), m)) : m));
|
|
97
97
|
};
|
|
98
98
|
export {
|
|
99
|
-
B as Widget
|
|
99
|
+
B as Widget,
|
|
100
|
+
B as default
|
|
100
101
|
};
|
|
101
102
|
//# sourceMappingURL=index33.js.map
|
package/dist/index34.js
CHANGED
package/dist/index36.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import e, { useState as h, useEffect as E } from "react";
|
|
2
2
|
import { Icon as N } from "./index6.js";
|
|
3
|
-
import { useStableId as $ } from "./
|
|
4
|
-
import { getRegionAttributes as I } from "./
|
|
5
|
-
import { useAccessiblePress as _ } from "./
|
|
6
|
-
import "./
|
|
3
|
+
import { useStableId as $ } from "./index225.js";
|
|
4
|
+
import { getRegionAttributes as I } from "./index72.js";
|
|
5
|
+
import { useAccessiblePress as _ } from "./index73.js";
|
|
6
|
+
import "./index78.js";
|
|
7
7
|
function r() {
|
|
8
8
|
return r = Object.assign ? Object.assign.bind() : function(n) {
|
|
9
9
|
for (var s = 1; s < arguments.length; s++) {
|