se-design 1.0.72 → 1.0.73-dev2
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/assets/typographyMixin.scss +8 -0
- package/dist/components/BreadCrumbs/index.d.ts +3 -1
- package/dist/components/CustomAccordion/index.d.ts +3 -0
- package/dist/components/Icon/index.d.ts +7 -7
- package/dist/components/NavigationBar/TabButton.d.ts +1 -1
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Popover/index.d.ts +2 -2
- package/dist/components/TableLayout/index.d.ts +4 -0
- package/dist/components/Tabs/index.d.ts +6 -1
- package/dist/index.js +132 -128
- package/dist/index.js.map +1 -1
- package/dist/index100.js +1 -1
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +2 -2
- 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 +2 -2
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +1 -1
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +2 -2
- 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/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 +2 -2
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +2 -2
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +1 -1
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +2 -2
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +2 -2
- 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 +1 -1
- package/dist/index119.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 +1 -1
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +1 -1
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +1 -1
- 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/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 +1 -1
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +1 -1
- 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/index140.js +2 -2
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +1 -1
- 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 +2 -2
- 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/index15.js +2 -2
- 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 +1 -1
- 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 +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/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/index170.js +2 -2
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +2 -2
- 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 +2 -2
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +2 -2
- 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 +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index18.js +160 -156
- package/dist/index18.js.map +1 -1
- 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 +2 -2
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +2 -2
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +2 -2
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +2 -149
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +149 -9
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +8 -5
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +5 -4
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +8 -0
- package/dist/index191.js.map +1 -0
- package/dist/{index193.js → index194.js} +1 -1
- package/dist/{index193.js.map → index194.js.map} +1 -1
- package/dist/{index195.js → index196.js} +3 -3
- package/dist/{index195.js.map → index196.js.map} +1 -1
- package/dist/{index197.js → index198.js} +1 -1
- package/dist/{index197.js.map → index198.js.map} +1 -1
- package/dist/{index205.js → index206.js} +1 -1
- package/dist/{index205.js.map → index206.js.map} +1 -1
- package/dist/index21.js +34 -30
- package/dist/index21.js.map +1 -1
- package/dist/{index213.js → index214.js} +1 -1
- package/dist/{index213.js.map → index214.js.map} +1 -1
- package/dist/index217.js +42 -42
- package/dist/index217.js.map +1 -1
- package/dist/index22.js +3 -3
- package/dist/index228.js +1 -1
- package/dist/index229.js +20 -52
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +52 -20
- package/dist/index230.js.map +1 -1
- package/dist/index24.js +2 -2
- package/dist/index27.js +2 -2
- package/dist/index28.js +119 -60
- package/dist/index28.js.map +1 -1
- package/dist/index29.js +1 -1
- package/dist/index3.js +1 -1
- package/dist/index30.js +56 -41
- package/dist/index30.js.map +1 -1
- package/dist/index31.js +11 -10
- package/dist/index32.js +59 -44
- package/dist/index32.js.map +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.js +56 -49
- package/dist/index35.js.map +1 -1
- package/dist/index37.js +2 -2
- package/dist/index38.js +3 -3
- package/dist/index39.js +1 -1
- package/dist/index40.js +1 -1
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +8 -7
- package/dist/index42.js +7 -6
- package/dist/index43.js +18 -18
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +3 -3
- package/dist/index45.js +4 -4
- package/dist/index48.js +53 -56
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +35 -25
- package/dist/index49.js.map +1 -1
- package/dist/index5.js +294 -307
- package/dist/index5.js.map +1 -1
- package/dist/index50.js +48 -48
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +2 -2
- package/dist/index54.js +20 -19
- package/dist/index54.js.map +1 -1
- package/dist/index56.js +1 -1
- package/dist/index57.js +13 -9
- package/dist/index57.js.map +1 -1
- package/dist/index6.js +8 -7
- package/dist/index62.js +1 -1
- package/dist/index63.js +1 -1
- package/dist/index64.js +3 -2
- package/dist/index66.js +1 -1
- package/dist/index69.js +59 -5
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +5 -9
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +12 -0
- package/dist/index71.js.map +1 -0
- package/dist/index73.js +2 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +2 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -2
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +1 -1
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +1 -1
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +1 -1
- package/dist/index79.js.map +1 -1
- package/dist/index8.js +3 -3
- package/dist/index80.js +1 -1
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +1 -1
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +1 -1
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +1 -1
- 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/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 +2 -2
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/NavigationBar/useTabsA11y.d.ts +0 -36
- package/dist/index216.js +0 -35
- package/dist/index216.js.map +0 -1
- package/dist/index72.js +0 -5
- package/dist/index72.js.map +0 -1
package/dist/index178.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20width='
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='32'%20cy='32'%20r='32'%20fill='%23CAF0DB'/%3e%3cellipse%20cx='30.9817'%20cy='31.3913'%20rx='15.5949'%20ry='18.4304'%20fill='white'/%3e%3cg%20clip-path='url(%23clip0_7795_59509)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M31.8059%2056.7085C45.5641%2056.7085%2056.7173%2045.5553%2056.7173%2031.7971C56.7173%2018.039%2045.5641%206.88574%2031.8059%206.88574C18.0478%206.88574%206.89453%2018.039%206.89453%2031.7971C6.89453%2045.5553%2018.0478%2056.7085%2031.8059%2056.7085ZM44.2716%2025.4573C45.1922%2024.3062%2045.0058%2022.6266%2043.8545%2021.7057C42.7036%2020.7848%2041.0239%2020.9715%2040.1031%2022.1225L27.484%2037.8963L22.4361%2034.1103C21.2568%2033.2259%2019.5838%2033.4649%2018.6994%2034.6442C17.8149%2035.8234%2018.0539%2037.4964%2019.2332%2038.3809L26.3507%2043.719C27.504%2044.5842%2029.1358%2044.3767%2030.0364%2043.251L44.2716%2025.4573Z'%20fill='%2356CF8A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7795_59509'%3e%3crect%20width='49.8228'%20height='49.8228'%20fill='white'%20transform='translate(6.88672%206.8877)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index178.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index178.js","sources":["../src/assets/icons/
|
|
1
|
+
{"version":3,"file":"index178.js","sources":["../src/assets/icons/success-check.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='32'%20cy='32'%20r='32'%20fill='%23CAF0DB'/%3e%3cellipse%20cx='30.9817'%20cy='31.3913'%20rx='15.5949'%20ry='18.4304'%20fill='white'/%3e%3cg%20clip-path='url(%23clip0_7795_59509)'%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M31.8059%2056.7085C45.5641%2056.7085%2056.7173%2045.5553%2056.7173%2031.7971C56.7173%2018.039%2045.5641%206.88574%2031.8059%206.88574C18.0478%206.88574%206.89453%2018.039%206.89453%2031.7971C6.89453%2045.5553%2018.0478%2056.7085%2031.8059%2056.7085ZM44.2716%2025.4573C45.1922%2024.3062%2045.0058%2022.6266%2043.8545%2021.7057C42.7036%2020.7848%2041.0239%2020.9715%2040.1031%2022.1225L27.484%2037.8963L22.4361%2034.1103C21.2568%2033.2259%2019.5838%2033.4649%2018.6994%2034.6442C17.8149%2035.8234%2018.0539%2037.4964%2019.2332%2038.3809L26.3507%2043.719C27.504%2044.5842%2029.1358%2044.3767%2030.0364%2043.251L44.2716%2025.4573Z'%20fill='%2356CF8A'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_7795_59509'%3e%3crect%20width='49.8228'%20height='49.8228'%20fill='white'%20transform='translate(6.88672%206.8877)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["__vite_glob_0_105"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index179.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const e = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%
|
|
1
|
+
const e = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_12351_122537)'%3e%3cpath%20d='M9.48623%201.19141H13.7666C14.3452%201.19141%2014.8142%201.66044%2014.8142%202.23903V6.51938C14.8142%206.79722%2014.7038%207.06369%2014.5074%207.26015L7.43594%2014.3316C7.02681%2014.7407%206.3635%2014.7407%205.95437%2014.3316L1.67403%2010.0512C1.26491%209.64211%201.26491%208.9788%201.67403%208.56967L8.74546%201.49825C8.94192%201.30178%209.20839%201.19141%209.48623%201.19141Z'%20stroke='%231088E7'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.4066%205.12184C11.1173%205.12184%2010.8828%204.88732%2010.8828%204.59803C10.8828%204.30874%2011.1173%204.07422%2011.4066%204.07422C11.6959%204.07422%2011.9304%204.30874%2011.9304%204.59803C11.9304%204.88732%2011.6959%205.12184%2011.4066%205.12184Z'%20stroke='%231088E7'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_12351_122537'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
2
2
|
export {
|
|
3
3
|
e as default
|
|
4
4
|
};
|
package/dist/index179.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index179.js","sources":["../src/assets/icons/
|
|
1
|
+
{"version":3,"file":"index179.js","sources":["../src/assets/icons/tag.svg?url"],"sourcesContent":["export default \"data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_12351_122537)'%3e%3cpath%20d='M9.48623%201.19141H13.7666C14.3452%201.19141%2014.8142%201.66044%2014.8142%202.23903V6.51938C14.8142%206.79722%2014.7038%207.06369%2014.5074%207.26015L7.43594%2014.3316C7.02681%2014.7407%206.3635%2014.7407%205.95437%2014.3316L1.67403%2010.0512C1.26491%209.64211%201.26491%208.9788%201.67403%208.56967L8.74546%201.49825C8.94192%201.30178%209.20839%201.19141%209.48623%201.19141Z'%20stroke='%231088E7'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M11.4066%205.12184C11.1173%205.12184%2010.8828%204.88732%2010.8828%204.59803C10.8828%204.30874%2011.1173%204.07422%2011.4066%204.07422C11.6959%204.07422%2011.9304%204.30874%2011.9304%204.59803C11.9304%204.88732%2011.6959%205.12184%2011.4066%205.12184Z'%20stroke='%231088E7'%20stroke-width='1.2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_12351_122537'%3e%3crect%20width='16'%20height='16'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e\""],"names":["__vite_glob_0_106"],"mappings":"AAAA,MAAAA,IAAe;"}
|
package/dist/index18.js
CHANGED
|
@@ -1,181 +1,185 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { getA11yNameAttributes as
|
|
4
|
-
import { useDismissOnFocusOut as
|
|
5
|
-
function
|
|
6
|
-
return
|
|
7
|
-
for (var
|
|
8
|
-
var p = arguments[
|
|
9
|
-
for (var h in p) ({}).hasOwnProperty.call(p, h) && (
|
|
1
|
+
import F, { forwardRef as at, useState as A, useRef as J, useEffect as H, useImperativeHandle as lt } from "react";
|
|
2
|
+
import ft from "react-dom";
|
|
3
|
+
import { getA11yNameAttributes as ut } from "./index71.js";
|
|
4
|
+
import { useDismissOnFocusOut as pt } from "./index194.js";
|
|
5
|
+
function O() {
|
|
6
|
+
return O = Object.assign ? Object.assign.bind() : function(y) {
|
|
7
|
+
for (var k = 1; k < arguments.length; k++) {
|
|
8
|
+
var p = arguments[k];
|
|
9
|
+
for (var h in p) ({}).hasOwnProperty.call(p, h) && (y[h] = p[h]);
|
|
10
10
|
}
|
|
11
|
-
return
|
|
12
|
-
},
|
|
11
|
+
return y;
|
|
12
|
+
}, O.apply(null, arguments);
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
className:
|
|
16
|
-
automationId:
|
|
14
|
+
const B = ['[role="menuitem"]', '[role="option"]', '[role="menuitemcheckbox"]', '[role="menuitemradio"]', "button:not([disabled])", "a[href]", '[tabindex]:not([tabindex="-1"])'].join(", "), wt = /* @__PURE__ */ at(({
|
|
15
|
+
className: y = "",
|
|
16
|
+
automationId: k = "",
|
|
17
17
|
position: p = "bottom-center",
|
|
18
18
|
popoverContentAutomationId: h = "",
|
|
19
19
|
contentWidth: I = "max",
|
|
20
|
-
renderPopoverContents:
|
|
21
|
-
renderPopoverSrcElement:
|
|
22
|
-
onPopoverToggle:
|
|
23
|
-
isPopoverOpen:
|
|
24
|
-
disabled:
|
|
20
|
+
renderPopoverContents: N,
|
|
21
|
+
renderPopoverSrcElement: Q,
|
|
22
|
+
onPopoverToggle: K,
|
|
23
|
+
isPopoverOpen: q,
|
|
24
|
+
disabled: P = !1,
|
|
25
25
|
isWithPortal: d = !1,
|
|
26
|
-
ariaLabel:
|
|
27
|
-
ariaLabelledBy:
|
|
28
|
-
sourceRole:
|
|
29
|
-
popoverContentStyleProperty:
|
|
26
|
+
ariaLabel: W,
|
|
27
|
+
ariaLabelledBy: Y,
|
|
28
|
+
sourceRole: z = "button",
|
|
29
|
+
popoverContentStyleProperty: C = {
|
|
30
30
|
zIndex: 1e3,
|
|
31
31
|
borderColor: "var(--color-gray-200)",
|
|
32
32
|
color: "var(--color-gray-900)",
|
|
33
33
|
backgroundColor: "var(--color-white)"
|
|
34
34
|
},
|
|
35
|
-
disableClickToggle:
|
|
36
|
-
noBorder:
|
|
35
|
+
disableClickToggle: b = !1,
|
|
36
|
+
noBorder: Z = !1,
|
|
37
37
|
disableAutoClose: m = !1,
|
|
38
|
-
...
|
|
39
|
-
},
|
|
40
|
-
const [s,
|
|
41
|
-
ariaLabel:
|
|
42
|
-
ariaLabelledBy:
|
|
38
|
+
...tt
|
|
39
|
+
}, et) => {
|
|
40
|
+
const [s, f] = A(!1), [g, $] = A(p), [ot, j] = A(!1), l = J(null), c = J(null), nt = ut({
|
|
41
|
+
ariaLabel: W,
|
|
42
|
+
ariaLabelledBy: Y,
|
|
43
43
|
ariaDescribedBy: void 0
|
|
44
44
|
// Popover doesn't support describedBy yet
|
|
45
45
|
}), {
|
|
46
|
-
onBlurCapture:
|
|
47
|
-
} =
|
|
46
|
+
onBlurCapture: rt
|
|
47
|
+
} = pt({
|
|
48
48
|
disabled: !s || m || d,
|
|
49
|
-
onFocusOut: () =>
|
|
49
|
+
onFocusOut: () => f(!1),
|
|
50
50
|
closeOnEscape: !1
|
|
51
|
-
}), [
|
|
51
|
+
}), [M, E] = A({
|
|
52
52
|
top: 0,
|
|
53
53
|
left: 0
|
|
54
|
-
}), x = (
|
|
54
|
+
}), x = (t = "bottom-center") => {
|
|
55
55
|
if (!l.current) return {
|
|
56
56
|
top: 0,
|
|
57
57
|
left: 0
|
|
58
58
|
};
|
|
59
|
-
let o =
|
|
60
|
-
const
|
|
61
|
-
let n = 0,
|
|
59
|
+
let o = t;
|
|
60
|
+
const e = l.current.getBoundingClientRect(), i = window.innerWidth, a = window.innerHeight;
|
|
61
|
+
let n = 0, r = 0;
|
|
62
62
|
switch (o) {
|
|
63
63
|
case "bottom-left":
|
|
64
|
-
n =
|
|
64
|
+
n = e.bottom, r = e.left;
|
|
65
65
|
break;
|
|
66
66
|
case "bottom-right":
|
|
67
|
-
n =
|
|
67
|
+
n = e.bottom, r = e.right - e.width * 0.5;
|
|
68
68
|
break;
|
|
69
69
|
case "bottom-center":
|
|
70
|
-
n =
|
|
70
|
+
n = e.bottom, r = e.left + e.width / 2;
|
|
71
71
|
break;
|
|
72
72
|
case "top-left":
|
|
73
|
-
n =
|
|
73
|
+
n = e.top - e.height * 1.9, r = e.left;
|
|
74
74
|
break;
|
|
75
75
|
case "top-right":
|
|
76
|
-
n =
|
|
76
|
+
n = e.top - e.height * 1.9, r = e.right - e.width * 0.5;
|
|
77
77
|
break;
|
|
78
78
|
case "top-center":
|
|
79
|
-
n =
|
|
79
|
+
n = e.top - e.height * 1.9, r = e.left + e.width / 2;
|
|
80
80
|
break;
|
|
81
81
|
default:
|
|
82
|
-
n =
|
|
82
|
+
n = e.bottom, r = e.left;
|
|
83
83
|
break;
|
|
84
84
|
}
|
|
85
|
-
const
|
|
86
|
-
if ((o === "bottom-center" || o === "top-center") && (
|
|
87
|
-
const
|
|
88
|
-
|
|
85
|
+
const u = c.current?.getBoundingClientRect(), w = u?.width || 0, v = u?.height || 0;
|
|
86
|
+
if ((o === "bottom-center" || o === "top-center") && (r = r - w / 2), r + w > i && (r = Math.max(0, i - w)), r < 0 && (r = 0), n + v > a) {
|
|
87
|
+
const D = e.top, ct = a - e.bottom;
|
|
88
|
+
D >= v || D > ct ? (n = e.top - v, n < 0 && (n = 0)) : n = Math.max(0, a - v);
|
|
89
89
|
}
|
|
90
|
-
return n < 0 && (n =
|
|
90
|
+
return n < 0 && (n = e.bottom, n + v > a && (n = Math.max(0, a - v))), {
|
|
91
91
|
top: n,
|
|
92
|
-
left:
|
|
92
|
+
left: r
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
H(() => {
|
|
96
|
-
if (
|
|
97
|
-
return m || document.body.addEventListener("click",
|
|
98
|
-
m || document.body.removeEventListener("click",
|
|
96
|
+
if (K && K(s), s && !d)
|
|
97
|
+
return m || document.body.addEventListener("click", V, !0), it(), () => {
|
|
98
|
+
m || document.body.removeEventListener("click", V, !0);
|
|
99
99
|
};
|
|
100
100
|
if (s && d) {
|
|
101
|
-
m ? window.addEventListener("scroll",
|
|
102
|
-
const
|
|
103
|
-
const
|
|
104
|
-
R(),
|
|
101
|
+
m ? window.addEventListener("scroll", U) : (document.body.addEventListener("click", S, !0), window.addEventListener("scroll", S)), window.addEventListener("resize", T);
|
|
102
|
+
const t = setTimeout(() => {
|
|
103
|
+
const e = x(g);
|
|
104
|
+
R(), e && E(e);
|
|
105
105
|
}, 0), o = setTimeout(() => {
|
|
106
|
-
const
|
|
107
|
-
|
|
106
|
+
const e = x(g);
|
|
107
|
+
e && E(e);
|
|
108
108
|
}, 10);
|
|
109
109
|
return () => {
|
|
110
|
-
m ? window.removeEventListener("scroll",
|
|
110
|
+
m ? window.removeEventListener("scroll", U) : (document.body.removeEventListener("click", S, !0), window.removeEventListener("scroll", S)), window.removeEventListener("resize", T), clearTimeout(t), clearTimeout(o);
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
}, [s, d, m]);
|
|
114
114
|
const R = () => {
|
|
115
115
|
if (!l.current) {
|
|
116
|
-
|
|
116
|
+
j(!1);
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
119
|
-
const
|
|
120
|
-
|
|
119
|
+
const t = l.current.getBoundingClientRect(), o = window.innerHeight, e = window.innerWidth, i = t.top < o && t.bottom > 0 && t.left < e && t.right > 0;
|
|
120
|
+
j(i);
|
|
121
121
|
};
|
|
122
122
|
H(() => {
|
|
123
|
-
|
|
124
|
-
}, [
|
|
125
|
-
s &&
|
|
126
|
-
const
|
|
127
|
-
|
|
123
|
+
f(q ?? !1);
|
|
124
|
+
}, [q]), H(() => {
|
|
125
|
+
s && c.current && setTimeout(() => {
|
|
126
|
+
const t = c.current?.querySelector(B);
|
|
127
|
+
t && document.activeElement === l.current && t.focus();
|
|
128
128
|
}, 0);
|
|
129
129
|
}, [s]);
|
|
130
|
-
const
|
|
131
|
-
if (!
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
},
|
|
130
|
+
const it = () => {
|
|
131
|
+
if (!c.current) return;
|
|
132
|
+
const t = c.current.getBoundingClientRect(), o = window.innerHeight;
|
|
133
|
+
t?.bottom > o ? $(p.includes("left") ? "top-left" : p.includes("right") ? "top-right" : "top-center") : t?.top < 0 && $(p.includes("left") ? "bottom-left" : p.includes("right") ? "bottom-right" : "bottom-center");
|
|
134
|
+
}, V = (t) => {
|
|
135
135
|
const o = l.current;
|
|
136
136
|
if (!o) return;
|
|
137
|
-
const
|
|
138
|
-
m || (!
|
|
139
|
-
}, S = (
|
|
140
|
-
const o = l.current,
|
|
137
|
+
const e = t.target, i = o.contains(e), a = c.current?.contains(e), r = e.closest?.(".se-design-popover-wrapper"), u = r && r !== o, w = c.current?.contains(r);
|
|
138
|
+
m || (!i && !a || u && !w) && f(!1);
|
|
139
|
+
}, S = (t) => {
|
|
140
|
+
const o = l.current, e = c.current;
|
|
141
141
|
if (!o) return;
|
|
142
|
-
if (R(),
|
|
143
|
-
const
|
|
144
|
-
|
|
142
|
+
if (R(), t.type === "scroll" && s) {
|
|
143
|
+
const D = x(g);
|
|
144
|
+
D && E(D);
|
|
145
145
|
}
|
|
146
|
-
const
|
|
147
|
-
m || (!
|
|
148
|
-
},
|
|
146
|
+
const i = t.target, a = o.contains(i), n = e?.contains(i), u = i.closest?.(".se-design-popover-wrapper"), w = u && u !== o, v = c.current?.contains(u);
|
|
147
|
+
m || (!a && !n || w && !v) && f(!1);
|
|
148
|
+
}, T = () => {
|
|
149
149
|
if (s && d && l.current) {
|
|
150
150
|
R();
|
|
151
|
-
const
|
|
152
|
-
|
|
151
|
+
const t = x(g);
|
|
152
|
+
t && E(t);
|
|
153
153
|
}
|
|
154
|
-
},
|
|
154
|
+
}, U = () => {
|
|
155
155
|
if (s && d && l.current) {
|
|
156
156
|
R();
|
|
157
|
-
const
|
|
158
|
-
|
|
157
|
+
const t = x(g);
|
|
158
|
+
t && E(t);
|
|
159
159
|
}
|
|
160
|
-
}, L = () => {
|
|
161
|
-
|
|
162
|
-
|
|
160
|
+
}, L = (t = !1) => {
|
|
161
|
+
const o = s;
|
|
162
|
+
f((e) => !e), !o && t && setTimeout(() => {
|
|
163
|
+
const e = c.current?.querySelector(B);
|
|
164
|
+
e && e.focus();
|
|
165
|
+
}, 50);
|
|
166
|
+
}, _ = (t, o) => {
|
|
163
167
|
if (!o) return;
|
|
164
|
-
const
|
|
165
|
-
const
|
|
166
|
-
return !
|
|
168
|
+
const e = ['[role="menuitem"]', '[role="option"]', '[role="menuitemcheckbox"]', '[role="menuitemradio"]', "button:not([disabled])", "a[href]", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])", '[tabindex]:not([tabindex="-1"])'].join(", "), i = Array.from(o.querySelectorAll(e)).filter((r) => {
|
|
169
|
+
const u = window.getComputedStyle(r);
|
|
170
|
+
return !r.hasAttribute("disabled") && !r.hasAttribute("aria-disabled") && u.display !== "none" && u.visibility !== "hidden" && (r.tabIndex >= 0 || r.hasAttribute("role"));
|
|
167
171
|
});
|
|
168
|
-
if (
|
|
169
|
-
const
|
|
172
|
+
if (i.length === 0) return;
|
|
173
|
+
const a = i.findIndex((r) => r === document.activeElement);
|
|
170
174
|
let n = -1;
|
|
171
|
-
|
|
172
|
-
},
|
|
173
|
-
|
|
175
|
+
t.key === "ArrowDown" ? (t.preventDefault(), t.stopPropagation(), n = a < i.length - 1 ? a + 1 : 0) : t.key === "ArrowUp" ? (t.preventDefault(), t.stopPropagation(), n = a > 0 ? a - 1 : i.length - 1) : t.key === "Home" ? (t.preventDefault(), t.stopPropagation(), n = 0) : t.key === "End" && (t.preventDefault(), t.stopPropagation(), n = i.length - 1), n >= 0 && i[n] ? i[n].focus() : a === -1 && i.length > 0 && i[0].focus();
|
|
176
|
+
}, X = (t) => {
|
|
177
|
+
t.key === "Escape" ? (t.preventDefault(), t.stopPropagation(), f(!1), l.current?.focus()) : t.key === "Tab" ? (f(!1), t.shiftKey && (t.preventDefault(), l.current?.focus())) : t.key === "ArrowDown" || t.key === "ArrowUp" || t.key === "Home" || t.key === "End" ? _(t, c.current) : (t.key === "Enter" || t.key === " ") && t.stopPropagation();
|
|
174
178
|
};
|
|
175
|
-
|
|
179
|
+
lt(et, () => ({
|
|
176
180
|
togglePopover: L
|
|
177
181
|
}), []);
|
|
178
|
-
const
|
|
182
|
+
const st = {
|
|
179
183
|
"bottom-left": {
|
|
180
184
|
left: "0",
|
|
181
185
|
top: "100%"
|
|
@@ -202,83 +206,83 @@ const ve = /* @__PURE__ */ ce(({
|
|
|
202
206
|
transform: "translateX(-50%)",
|
|
203
207
|
bottom: "100%"
|
|
204
208
|
}
|
|
205
|
-
},
|
|
206
|
-
return /* @__PURE__ */
|
|
207
|
-
className: "se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md" + (
|
|
209
|
+
}, G = Z ? "" : "shadow-md border rounded-md";
|
|
210
|
+
return /* @__PURE__ */ F.createElement("div", O({
|
|
211
|
+
className: "se-design-popover-wrapper cursor-pointer relative focus-outline rounded-md" + (y.length > 0 ? ` ${y}` : "") + (s ? " open" : "") + (P ? " opacity-50 cursor-not-allowed pointer-events-none" : ""),
|
|
208
212
|
ref: l,
|
|
209
|
-
onClick: (
|
|
210
|
-
|
|
213
|
+
onClick: (t) => {
|
|
214
|
+
P || b || (t.stopPropagation(), L());
|
|
211
215
|
},
|
|
212
|
-
onKeyDown: (
|
|
213
|
-
if (!
|
|
214
|
-
if (
|
|
215
|
-
|
|
216
|
+
onKeyDown: (t) => {
|
|
217
|
+
if (!(P || b))
|
|
218
|
+
if (t.key === "Enter" || t.key === " ") {
|
|
219
|
+
t.preventDefault(), t.stopPropagation();
|
|
216
220
|
const o = s;
|
|
217
221
|
L(), o || setTimeout(() => {
|
|
218
|
-
const
|
|
219
|
-
if (
|
|
220
|
-
const
|
|
221
|
-
|
|
222
|
+
const e = c.current;
|
|
223
|
+
if (e) {
|
|
224
|
+
const i = e.querySelector(B);
|
|
225
|
+
i && i.focus();
|
|
222
226
|
}
|
|
223
227
|
}, 0);
|
|
224
|
-
} else if (
|
|
225
|
-
|
|
226
|
-
else if ((
|
|
227
|
-
const o =
|
|
228
|
-
o &&
|
|
229
|
-
} else
|
|
230
|
-
const o =
|
|
228
|
+
} else if (t.key === "Escape" && s)
|
|
229
|
+
t.preventDefault(), t.stopPropagation(), f(!1);
|
|
230
|
+
else if ((t.key === "ArrowDown" || t.key === "ArrowUp") && s) {
|
|
231
|
+
const o = c.current;
|
|
232
|
+
o && _(t, o);
|
|
233
|
+
} else t.key === "ArrowDown" && !s && (t.preventDefault(), t.stopPropagation(), f(!0), setTimeout(() => {
|
|
234
|
+
const o = c.current;
|
|
231
235
|
if (o) {
|
|
232
|
-
const
|
|
233
|
-
|
|
236
|
+
const e = o.querySelector(B);
|
|
237
|
+
e && e.focus();
|
|
234
238
|
}
|
|
235
239
|
}, 0));
|
|
236
240
|
},
|
|
237
|
-
onBlurCapture:
|
|
238
|
-
onBlur: (
|
|
241
|
+
onBlurCapture: rt,
|
|
242
|
+
onBlur: (t) => {
|
|
239
243
|
if (!s || m || !d) return;
|
|
240
|
-
const o =
|
|
241
|
-
!
|
|
244
|
+
const o = t.relatedTarget, e = !!(o && l.current?.contains(o)), i = !!(o && c.current?.contains(o));
|
|
245
|
+
!e && !i && f(!1);
|
|
242
246
|
},
|
|
243
|
-
role:
|
|
244
|
-
"aria-expanded":
|
|
245
|
-
"aria-haspopup":
|
|
246
|
-
tabIndex:
|
|
247
|
-
"aria-disabled":
|
|
248
|
-
},
|
|
249
|
-
"data-automation-id":
|
|
250
|
-
},
|
|
247
|
+
role: b ? "none" : z,
|
|
248
|
+
"aria-expanded": b ? void 0 : s ? "true" : "false",
|
|
249
|
+
"aria-haspopup": b ? void 0 : z === "combobox" ? "listbox" : "true",
|
|
250
|
+
tabIndex: P || b ? -1 : 0,
|
|
251
|
+
"aria-disabled": b ? void 0 : P ? "true" : "false"
|
|
252
|
+
}, nt, {
|
|
253
|
+
"data-automation-id": k
|
|
254
|
+
}, tt), Q({
|
|
251
255
|
displayPopover: s,
|
|
252
256
|
togglePopover: L
|
|
253
|
-
}), s && !d && /* @__PURE__ */
|
|
254
|
-
className: `popover-content absolute ${
|
|
257
|
+
}), s && !d && /* @__PURE__ */ F.createElement("div", {
|
|
258
|
+
className: `popover-content absolute ${G} z-[1000] ${I == "full" ? "w-full" : "w-max"}`,
|
|
255
259
|
style: {
|
|
256
|
-
...
|
|
257
|
-
...
|
|
260
|
+
...C,
|
|
261
|
+
...st[g]
|
|
258
262
|
},
|
|
259
|
-
onClick: (
|
|
260
|
-
onKeyDown:
|
|
261
|
-
ref:
|
|
263
|
+
onClick: (t) => t.stopPropagation(),
|
|
264
|
+
onKeyDown: X,
|
|
265
|
+
ref: c,
|
|
262
266
|
"data-automation-id": h
|
|
263
|
-
},
|
|
264
|
-
closePopoverCb: () =>
|
|
265
|
-
})), d && s &&
|
|
266
|
-
className: `popover-content-with-portal ${
|
|
267
|
+
}, N({
|
|
268
|
+
closePopoverCb: () => f(!1)
|
|
269
|
+
})), d && s && ot && /* @__PURE__ */ ft.createPortal(/* @__PURE__ */ F.createElement("div", {
|
|
270
|
+
className: `popover-content-with-portal ${G} ${I == "full" ? "w-full" : "w-max"}`,
|
|
267
271
|
style: {
|
|
268
272
|
position: "fixed",
|
|
269
|
-
top:
|
|
270
|
-
left:
|
|
271
|
-
...
|
|
273
|
+
top: M.top,
|
|
274
|
+
left: M.left,
|
|
275
|
+
...C
|
|
272
276
|
},
|
|
273
|
-
onClick: (
|
|
274
|
-
onKeyDown:
|
|
275
|
-
ref:
|
|
277
|
+
onClick: (t) => t.stopPropagation(),
|
|
278
|
+
onKeyDown: X,
|
|
279
|
+
ref: c,
|
|
276
280
|
"data-automation-id": h
|
|
277
|
-
},
|
|
278
|
-
closePopoverCb: () =>
|
|
281
|
+
}, N({
|
|
282
|
+
closePopoverCb: () => f(!1)
|
|
279
283
|
})), document.body));
|
|
280
284
|
});
|
|
281
285
|
export {
|
|
282
|
-
|
|
286
|
+
wt as Popover
|
|
283
287
|
};
|
|
284
288
|
//# sourceMappingURL=index18.js.map
|