@foxford/ui 2.74.0-beta-acc9967-20250428 → 2.75.0-beta-9c898b3-20250515
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/components/Accordion/Accordion.js +1 -1
- package/components/Accordion/Accordion.js.map +1 -1
- package/components/Accordion/Accordion.mjs +1 -1
- package/components/Accordion/Accordion.mjs.map +1 -1
- package/components/Accordion/AccordionDivider.js +2 -0
- package/components/Accordion/AccordionDivider.js.map +1 -0
- package/components/Accordion/AccordionDivider.mjs +2 -0
- package/components/Accordion/AccordionDivider.mjs.map +1 -0
- package/components/Accordion/hooks.js +2 -0
- package/components/Accordion/hooks.js.map +1 -0
- package/components/Accordion/hooks.mjs +2 -0
- package/components/Accordion/hooks.mjs.map +1 -0
- package/components/Accordion/sizes.js +2 -0
- package/components/Accordion/sizes.js.map +1 -0
- package/components/Accordion/sizes.mjs +2 -0
- package/components/Accordion/sizes.mjs.map +1 -0
- package/components/Accordion/style.js +1 -1
- package/components/Accordion/style.js.map +1 -1
- package/components/Accordion/style.mjs +1 -1
- package/components/Accordion/style.mjs.map +1 -1
- package/components/AccordionItem/AccordionItem.js +2 -0
- package/components/AccordionItem/AccordionItem.js.map +1 -0
- package/components/AccordionItem/AccordionItem.mjs +2 -0
- package/components/AccordionItem/AccordionItem.mjs.map +1 -0
- package/components/AccordionItem/hooks.js +2 -0
- package/components/AccordionItem/hooks.js.map +1 -0
- package/components/AccordionItem/hooks.mjs +2 -0
- package/components/AccordionItem/hooks.mjs.map +1 -0
- package/components/AccordionItem/sizes.js +2 -0
- package/components/AccordionItem/sizes.js.map +1 -0
- package/components/AccordionItem/sizes.mjs +2 -0
- package/components/AccordionItem/sizes.mjs.map +1 -0
- package/components/AccordionItem/style.js +2 -0
- package/components/AccordionItem/style.js.map +1 -0
- package/components/AccordionItem/style.mjs +2 -0
- package/components/AccordionItem/style.mjs.map +1 -0
- package/components/Button/Button.js +1 -1
- package/components/Button/Button.js.map +1 -1
- package/components/Button/Button.mjs +1 -1
- package/components/Button/Button.mjs.map +1 -1
- package/dts/index.d.ts +515 -129
- package/mixins/focus.js +1 -1
- package/mixins/focus.js.map +1 -1
- package/mixins/focus.mjs +1 -1
- package/mixins/focus.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/constants.js +1 -1
- package/shared/constants.js.map +1 -1
- package/shared/constants.mjs +1 -1
- package/shared/constants.mjs.map +1 -1
- package/shared/context/accordion.js +2 -0
- package/shared/context/accordion.js.map +1 -0
- package/shared/context/accordion.mjs +2 -0
- package/shared/context/accordion.mjs.map +1 -0
- package/shared/utils/dom.js +1 -1
- package/shared/utils/dom.js.map +1 -1
- package/shared/utils/dom.mjs +1 -1
- package/shared/utils/dom.mjs.map +1 -1
- package/components/Accordion/constants.js +0 -2
- package/components/Accordion/constants.js.map +0 -1
- package/components/Accordion/constants.mjs +0 -2
- package/components/Accordion/constants.mjs.map +0 -1
package/mixins/focus.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const focus=Object.assign((o=>`\n &:focus-visible {\n box-shadow: 0 0 0 2px ${o.theme.colors.white}, 0 0 0 4px ${o.theme.colors['border-focus']};\n outline: 2px solid transparent;\n outline-offset: 2px;\n }\n `),{padding:4});exports.focus=focus;
|
|
2
2
|
//# sourceMappingURL=focus.js.map
|
package/mixins/focus.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus.js","sources":["../../../src/mixins/focus.ts"],"sourcesContent":["import type { ThemeProps, DefaultTheme } from 'styled-components'\n\nconst focus = (props: ThemeProps<DefaultTheme>)
|
|
1
|
+
{"version":3,"file":"focus.js","sources":["../../../src/mixins/focus.ts"],"sourcesContent":["import type { ThemeProps, DefaultTheme } from 'styled-components'\n\nconst focus = Object.assign<\n (props: ThemeProps<DefaultTheme>) => string,\n {\n readonly padding: number\n }\n>(\n (props) => `\n &:focus-visible {\n box-shadow: 0 0 0 2px ${props.theme.colors.white}, 0 0 0 4px ${props.theme.colors['border-focus']};\n outline: 2px solid transparent;\n outline-offset: 2px;\n }\n `,\n { padding: 4 }\n)\n\nexport { focus }\n"],"names":["focus","Object","assign","props","theme","colors","white","padding"],"mappings":"aAEA,MAAMA,MAAQC,OAAOC,QAMlBC,GAAU,wDAEiBA,EAAMC,MAAMC,OAAOC,oBAAoBH,EAAMC,MAAMC,OAAO,kGAKtF,CAAEE,QAAS"}
|
package/mixins/focus.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const focus=o=>`\n &:focus-visible {\n box-shadow: 0 0 0 2px ${o.theme.colors.white}, 0 0 0 4px ${o.theme.colors['border-focus']};\n outline: 2px solid transparent;\n outline-offset: 2px;\n }\n
|
|
1
|
+
const focus=Object.assign((o=>`\n &:focus-visible {\n box-shadow: 0 0 0 2px ${o.theme.colors.white}, 0 0 0 4px ${o.theme.colors['border-focus']};\n outline: 2px solid transparent;\n outline-offset: 2px;\n }\n `),{padding:4});export{focus};
|
|
2
2
|
//# sourceMappingURL=focus.mjs.map
|
package/mixins/focus.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus.mjs","sources":["../../../src/mixins/focus.ts"],"sourcesContent":["import type { ThemeProps, DefaultTheme } from 'styled-components'\n\nconst focus = (props: ThemeProps<DefaultTheme>)
|
|
1
|
+
{"version":3,"file":"focus.mjs","sources":["../../../src/mixins/focus.ts"],"sourcesContent":["import type { ThemeProps, DefaultTheme } from 'styled-components'\n\nconst focus = Object.assign<\n (props: ThemeProps<DefaultTheme>) => string,\n {\n readonly padding: number\n }\n>(\n (props) => `\n &:focus-visible {\n box-shadow: 0 0 0 2px ${props.theme.colors.white}, 0 0 0 4px ${props.theme.colors['border-focus']};\n outline: 2px solid transparent;\n outline-offset: 2px;\n }\n `,\n { padding: 4 }\n)\n\nexport { focus }\n"],"names":["focus","Object","assign","props","theme","colors","white","padding"],"mappings":"AAEA,MAAMA,MAAQC,OAAOC,QAMlBC,GAAU,wDAEiBA,EAAMC,MAAMC,OAAOC,oBAAoBH,EAAMC,MAAMC,OAAO,kGAKtF,CAAEE,QAAS"}
|
package/package.json
CHANGED
package/shared/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';const keyboardKeys={ArrowDown:{key:['ArrowDown','Down'],validate(e){return this.key.includes(e)}},ArrowLeft:{key:['ArrowLeft','Left'],validate(e){return this.key.includes(e)}},ArrowRight:{key:['ArrowRight','Right'],validate(e){return this.key.includes(e)}},ArrowUp:{key:['ArrowUp','Up'],validate(e){return this.key.includes(e)}},Enter:{key:'Enter',validate(e){return this.key===e}},Esc:{key:['Escape','Esc'],validate(e){return this.key.includes(e)}},Space:{key:[' ','Spacebar'],validate(e){return this.key.includes(e)}},Tab:{key:'Tab',validate(e){return this.key===e}},Backspace:{key:'Backspace',validate(e){return this.key===e}}};exports.BREAKPOINTS={xl:1440,l:1280,m:1024,s:768,xs:374,xxs:320},exports.keyboardKeys=keyboardKeys;
|
|
1
|
+
'use strict';const keyboardKeys={ArrowDown:{key:['ArrowDown','Down'],validate(e){return this.key.includes(e)}},ArrowLeft:{key:['ArrowLeft','Left'],validate(e){return this.key.includes(e)}},ArrowRight:{key:['ArrowRight','Right'],validate(e){return this.key.includes(e)}},ArrowUp:{key:['ArrowUp','Up'],validate(e){return this.key.includes(e)}},Enter:{key:'Enter',validate(e){return this.key===e}},Esc:{key:['Escape','Esc'],validate(e){return this.key.includes(e)}},Space:{key:[' ','Spacebar'],validate(e){return this.key.includes(e)}},Tab:{key:'Tab',validate(e){return this.key===e}},Backspace:{key:'Backspace',validate(e){return this.key===e}},Home:{key:'Home',validate(e){return this.key===e}},End:{key:'End',validate(e){return this.key===e}}};exports.BREAKPOINTS={xl:1440,l:1280,m:1024,s:768,xs:374,xxs:320},exports.keyboardKeys=keyboardKeys;
|
|
2
2
|
//# sourceMappingURL=constants.js.map
|
package/shared/constants.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../src/shared/constants.ts"],"sourcesContent":["import type { Breakpoint } from 'shared/types'\n\nexport const BREAKPOINTS: Readonly<Record<Lowercase<Breakpoint>, number>> = {\n xl: 1440,\n l: 1280,\n m: 1024,\n s: 768,\n xs: 374,\n xxs: 320,\n}\n\nexport const keyboardKeys = {\n ArrowDown: {\n key: ['ArrowDown', 'Down'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowLeft: {\n key: ['ArrowLeft', 'Left'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowRight: {\n key: ['ArrowRight', 'Right'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowUp: {\n key: ['ArrowUp', 'Up'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Enter: {\n key: 'Enter',\n validate(key: string) {\n return this.key === key\n },\n },\n Esc: {\n key: ['Escape', 'Esc'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Space: {\n key: [' ', 'Spacebar'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Tab: {\n key: 'Tab',\n validate(key: string) {\n return this.key === key\n },\n },\n Backspace: {\n key: 'Backspace',\n validate(key: string) {\n return this.key === key\n },\n },\n}\n"],"names":["keyboardKeys","ArrowDown","key","validate","this","includes","ArrowLeft","ArrowRight","ArrowUp","Enter","Esc","Space","Tab","Backspace","xl","l","m","s","xs","xxs"],"mappings":"aAWO,MAAMA,aAAe,CAC1BC,UAAW,CACTC,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFI,UAAW,CACTJ,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFK,WAAY,CACVL,IAAK,CAAC,aAAc,SACpBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFM,QAAS,CACPN,IAAK,CAAC,UAAW,MACjBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFO,MAAO,CACLP,IAAK,QACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFQ,IAAK,CACHR,IAAK,CAAC,SAAU,OAChBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFS,MAAO,CACLT,IAAK,CAAC,IAAK,YACXC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFU,IAAK,CACHV,IAAK,MACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFW,UAAW,CACTX,IAAK,YACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../src/shared/constants.ts"],"sourcesContent":["import type { Breakpoint } from 'shared/types'\n\nexport const BREAKPOINTS: Readonly<Record<Lowercase<Breakpoint>, number>> = {\n xl: 1440,\n l: 1280,\n m: 1024,\n s: 768,\n xs: 374,\n xxs: 320,\n}\n\nexport const keyboardKeys = {\n ArrowDown: {\n key: ['ArrowDown', 'Down'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowLeft: {\n key: ['ArrowLeft', 'Left'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowRight: {\n key: ['ArrowRight', 'Right'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowUp: {\n key: ['ArrowUp', 'Up'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Enter: {\n key: 'Enter',\n validate(key: string) {\n return this.key === key\n },\n },\n Esc: {\n key: ['Escape', 'Esc'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Space: {\n key: [' ', 'Spacebar'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Tab: {\n key: 'Tab',\n validate(key: string) {\n return this.key === key\n },\n },\n Backspace: {\n key: 'Backspace',\n validate(key: string) {\n return this.key === key\n },\n },\n Home: {\n key: 'Home',\n validate(key: string) {\n return this.key === key\n },\n },\n End: {\n key: 'End',\n validate(key: string) {\n return this.key === key\n },\n },\n}\n"],"names":["keyboardKeys","ArrowDown","key","validate","this","includes","ArrowLeft","ArrowRight","ArrowUp","Enter","Esc","Space","Tab","Backspace","Home","End","xl","l","m","s","xs","xxs"],"mappings":"aAWO,MAAMA,aAAe,CAC1BC,UAAW,CACTC,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFI,UAAW,CACTJ,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFK,WAAY,CACVL,IAAK,CAAC,aAAc,SACpBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFM,QAAS,CACPN,IAAK,CAAC,UAAW,MACjBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFO,MAAO,CACLP,IAAK,QACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFQ,IAAK,CACHR,IAAK,CAAC,SAAU,OAChBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFS,MAAO,CACLT,IAAK,CAAC,IAAK,YACXC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFU,IAAK,CACHV,IAAK,MACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFW,UAAW,CACTX,IAAK,YACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFY,KAAM,CACJZ,IAAK,OACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFa,IAAK,CACHb,IAAK,MACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,wBA1EwE,CAC1Ec,GAAI,KACJC,EAAG,KACHC,EAAG,KACHC,EAAG,IACHC,GAAI,IACJC,IAAK"}
|
package/shared/constants.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const BREAKPOINTS={xl:1440,l:1280,m:1024,s:768,xs:374,xxs:320};const keyboardKeys={ArrowDown:{key:['ArrowDown','Down'],validate(e){return this.key.includes(e)}},ArrowLeft:{key:['ArrowLeft','Left'],validate(e){return this.key.includes(e)}},ArrowRight:{key:['ArrowRight','Right'],validate(e){return this.key.includes(e)}},ArrowUp:{key:['ArrowUp','Up'],validate(e){return this.key.includes(e)}},Enter:{key:'Enter',validate(e){return this.key===e}},Esc:{key:['Escape','Esc'],validate(e){return this.key.includes(e)}},Space:{key:[' ','Spacebar'],validate(e){return this.key.includes(e)}},Tab:{key:'Tab',validate(e){return this.key===e}},Backspace:{key:'Backspace',validate(e){return this.key===e}}};export{BREAKPOINTS,keyboardKeys};
|
|
1
|
+
const BREAKPOINTS={xl:1440,l:1280,m:1024,s:768,xs:374,xxs:320};const keyboardKeys={ArrowDown:{key:['ArrowDown','Down'],validate(e){return this.key.includes(e)}},ArrowLeft:{key:['ArrowLeft','Left'],validate(e){return this.key.includes(e)}},ArrowRight:{key:['ArrowRight','Right'],validate(e){return this.key.includes(e)}},ArrowUp:{key:['ArrowUp','Up'],validate(e){return this.key.includes(e)}},Enter:{key:'Enter',validate(e){return this.key===e}},Esc:{key:['Escape','Esc'],validate(e){return this.key.includes(e)}},Space:{key:[' ','Spacebar'],validate(e){return this.key.includes(e)}},Tab:{key:'Tab',validate(e){return this.key===e}},Backspace:{key:'Backspace',validate(e){return this.key===e}},Home:{key:'Home',validate(e){return this.key===e}},End:{key:'End',validate(e){return this.key===e}}};export{BREAKPOINTS,keyboardKeys};
|
|
2
2
|
//# sourceMappingURL=constants.mjs.map
|
package/shared/constants.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../src/shared/constants.ts"],"sourcesContent":["import type { Breakpoint } from 'shared/types'\n\nexport const BREAKPOINTS: Readonly<Record<Lowercase<Breakpoint>, number>> = {\n xl: 1440,\n l: 1280,\n m: 1024,\n s: 768,\n xs: 374,\n xxs: 320,\n}\n\nexport const keyboardKeys = {\n ArrowDown: {\n key: ['ArrowDown', 'Down'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowLeft: {\n key: ['ArrowLeft', 'Left'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowRight: {\n key: ['ArrowRight', 'Right'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowUp: {\n key: ['ArrowUp', 'Up'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Enter: {\n key: 'Enter',\n validate(key: string) {\n return this.key === key\n },\n },\n Esc: {\n key: ['Escape', 'Esc'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Space: {\n key: [' ', 'Spacebar'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Tab: {\n key: 'Tab',\n validate(key: string) {\n return this.key === key\n },\n },\n Backspace: {\n key: 'Backspace',\n validate(key: string) {\n return this.key === key\n },\n },\n}\n"],"names":["BREAKPOINTS","xl","l","m","s","xs","xxs","keyboardKeys","ArrowDown","key","validate","this","includes","ArrowLeft","ArrowRight","ArrowUp","Enter","Esc","Space","Tab","Backspace"],"mappings":"AAEO,MAAMA,YAA+D,CAC1EC,GAAI,KACJC,EAAG,KACHC,EAAG,KACHC,EAAG,IACHC,GAAI,IACJC,IAAK,KAGA,MAAMC,aAAe,CAC1BC,UAAW,CACTC,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFI,UAAW,CACTJ,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFK,WAAY,CACVL,IAAK,CAAC,aAAc,SACpBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFM,QAAS,CACPN,IAAK,CAAC,UAAW,MACjBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFO,MAAO,CACLP,IAAK,QACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFQ,IAAK,CACHR,IAAK,CAAC,SAAU,OAChBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFS,MAAO,CACLT,IAAK,CAAC,IAAK,YACXC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFU,IAAK,CACHV,IAAK,MACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFW,UAAW,CACTX,IAAK,YACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB"}
|
|
1
|
+
{"version":3,"file":"constants.mjs","sources":["../../../src/shared/constants.ts"],"sourcesContent":["import type { Breakpoint } from 'shared/types'\n\nexport const BREAKPOINTS: Readonly<Record<Lowercase<Breakpoint>, number>> = {\n xl: 1440,\n l: 1280,\n m: 1024,\n s: 768,\n xs: 374,\n xxs: 320,\n}\n\nexport const keyboardKeys = {\n ArrowDown: {\n key: ['ArrowDown', 'Down'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowLeft: {\n key: ['ArrowLeft', 'Left'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowRight: {\n key: ['ArrowRight', 'Right'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n ArrowUp: {\n key: ['ArrowUp', 'Up'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Enter: {\n key: 'Enter',\n validate(key: string) {\n return this.key === key\n },\n },\n Esc: {\n key: ['Escape', 'Esc'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Space: {\n key: [' ', 'Spacebar'],\n validate(key: string) {\n return this.key.includes(key)\n },\n },\n Tab: {\n key: 'Tab',\n validate(key: string) {\n return this.key === key\n },\n },\n Backspace: {\n key: 'Backspace',\n validate(key: string) {\n return this.key === key\n },\n },\n Home: {\n key: 'Home',\n validate(key: string) {\n return this.key === key\n },\n },\n End: {\n key: 'End',\n validate(key: string) {\n return this.key === key\n },\n },\n}\n"],"names":["BREAKPOINTS","xl","l","m","s","xs","xxs","keyboardKeys","ArrowDown","key","validate","this","includes","ArrowLeft","ArrowRight","ArrowUp","Enter","Esc","Space","Tab","Backspace","Home","End"],"mappings":"AAEO,MAAMA,YAA+D,CAC1EC,GAAI,KACJC,EAAG,KACHC,EAAG,KACHC,EAAG,IACHC,GAAI,IACJC,IAAK,KAGA,MAAMC,aAAe,CAC1BC,UAAW,CACTC,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFI,UAAW,CACTJ,IAAK,CAAC,YAAa,QACnBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFK,WAAY,CACVL,IAAK,CAAC,aAAc,SACpBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFM,QAAS,CACPN,IAAK,CAAC,UAAW,MACjBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFO,MAAO,CACLP,IAAK,QACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFQ,IAAK,CACHR,IAAK,CAAC,SAAU,OAChBC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFS,MAAO,CACLT,IAAK,CAAC,IAAK,YACXC,QAAAA,CAASD,GACP,OAAOE,KAAKF,IAAIG,SAASH,EAC3B,GAEFU,IAAK,CACHV,IAAK,MACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFW,UAAW,CACTX,IAAK,YACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFY,KAAM,CACJZ,IAAK,OACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB,GAEFa,IAAK,CACHb,IAAK,MACLC,QAAAA,CAASD,GACP,OAAOE,KAAKF,MAAQA,CACtB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var React=require('react');const AccordionPanelsContext=React.createContext(null);const AccordionPropsContext=React.createContext(null);exports.AccordionPanelsContext=AccordionPanelsContext,exports.AccordionPropsContext=AccordionPropsContext;
|
|
2
|
+
//# sourceMappingURL=accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.js","sources":["../../../../src/shared/context/accordion.ts"],"sourcesContent":["import { createContext } from 'react'\nimport type { ResponsiveSizeProps } from 'shared/interfaces'\nimport type { CSSColor } from 'shared/types'\n\ntype AccordionSize = 'l' | 'm' | 's' | 'xs'\n\ntype AccordionPanelsContext = {\n expandedPanels: string[]\n updatePanels: (panelId: string, panelExpanded: boolean) => void\n}\n\ninterface AccordionContextProps extends ResponsiveSizeProps<AccordionSize> {\n loading?: boolean\n disabled?: boolean\n embedded?: boolean\n borderRadius?: number\n primary?: boolean\n secondary?: boolean\n palette?: {\n headerColor?: CSSColor\n headerColorExpanded?: CSSColor\n headerColorDisabled?: CSSColor\n headerBackgroundColor?: CSSColor\n headerBackgroundColorDisabled?: CSSColor\n backgroundColor?: CSSColor\n backgroundColorDisabled?: CSSColor\n }\n}\n\nexport const AccordionPanelsContext = createContext<AccordionPanelsContext | null>(null)\n\nexport const AccordionPropsContext = createContext<AccordionContextProps | null>(null)\n"],"names":["AccordionPanelsContext","createContext","AccordionPropsContext"],"mappings":"8CA6BaA,uBAAyBC,MAAaA,cAAgC,YAEtEC,sBAAwBD,MAAaA,cAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accordion.mjs","sources":["../../../../src/shared/context/accordion.ts"],"sourcesContent":["import { createContext } from 'react'\nimport type { ResponsiveSizeProps } from 'shared/interfaces'\nimport type { CSSColor } from 'shared/types'\n\ntype AccordionSize = 'l' | 'm' | 's' | 'xs'\n\ntype AccordionPanelsContext = {\n expandedPanels: string[]\n updatePanels: (panelId: string, panelExpanded: boolean) => void\n}\n\ninterface AccordionContextProps extends ResponsiveSizeProps<AccordionSize> {\n loading?: boolean\n disabled?: boolean\n embedded?: boolean\n borderRadius?: number\n primary?: boolean\n secondary?: boolean\n palette?: {\n headerColor?: CSSColor\n headerColorExpanded?: CSSColor\n headerColorDisabled?: CSSColor\n headerBackgroundColor?: CSSColor\n headerBackgroundColorDisabled?: CSSColor\n backgroundColor?: CSSColor\n backgroundColorDisabled?: CSSColor\n }\n}\n\nexport const AccordionPanelsContext = createContext<AccordionPanelsContext | null>(null)\n\nexport const AccordionPropsContext = createContext<AccordionContextProps | null>(null)\n"],"names":["AccordionPanelsContext","createContext","AccordionPropsContext"],"mappings":"uCA6BaA,uBAAyBC,cAA6C,YAEtEC,sBAAwBD,cAA4C"}
|
package/shared/utils/dom.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';const SELECTORS_FOCUSABLE='a[href]:not([tabindex^="-"]), button:not(:disabled, [tabindex^="-"]), input:not(:disabled, [type="hidden"], [tabindex^="-"]), select:not(:disabled, [tabindex^="-"]), textarea:not(:disabled, [tabindex^="-"]), area[href]:not([tabindex^="-"]), iframe:not([tabindex^="-"]), object:not([tabindex^="-"]), summary:not([tabindex^="-"]), [tabindex]:not([tabindex^="-"]), [contenteditable]:not([contenteditable="false"], [tabindex^="-"])';
|
|
1
|
+
'use strict';var constants=require('../constants.js');const SELECTORS_FOCUSABLE='a[href]:not([tabindex^="-"]), button:not(:disabled, [tabindex^="-"]), input:not(:disabled, [type="hidden"], [tabindex^="-"]), select:not(:disabled, [tabindex^="-"]), textarea:not(:disabled, [tabindex^="-"]), area[href]:not([tabindex^="-"]), iframe:not([tabindex^="-"]), object:not([tabindex^="-"]), summary:not([tabindex^="-"]), [tabindex]:not([tabindex^="-"]), [contenteditable]:not([contenteditable="false"], [tabindex^="-"])';const focusFirstFocusable=(t,e)=>{if(t.matches(SELECTORS_FOCUSABLE)&&typeof t.focus=='function')return t.focus(e),!0;const n=t.querySelector(SELECTORS_FOCUSABLE);return n instanceof HTMLElement&&typeof n.focus=='function'&&(n.focus(e),!0)};exports.concatClassNames=(...t)=>t.reduce(((t,e)=>(typeof e=='string'&&(t=t?t+' '+e:e),t)),''),exports.focusFirstFocusable=focusFirstFocusable,exports.focusLastFocusable=(t,e)=>{const n=t.querySelectorAll(SELECTORS_FOCUSABLE);const o=n[n.length-1];return o instanceof HTMLElement&&typeof o.focus=='function'&&(o.focus(e),!0)},exports.navigateFocusableList=(t,e,n)=>{let o=n.indexOf(e);if(o!==-1&&n.length!==0)do{constants.keyboardKeys.ArrowUp.validate(t)?o--:constants.keyboardKeys.ArrowDown.validate(t)&&o++,o<0?o=n.length-1:o>n.length-1&&(o=0)}while(!focusFirstFocusable(n[o]))};
|
|
2
2
|
//# sourceMappingURL=dom.js.map
|
package/shared/utils/dom.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.js","sources":["../../../../src/shared/utils/dom.ts"],"sourcesContent":["import type { Nullable } from 'shared/types'\n\nconst SELECTORS_FOCUSABLE =\n 'a[href]:not([tabindex^=\"-\"]), button:not(:disabled, [tabindex^=\"-\"]), input:not(:disabled, [type=\"hidden\"], [tabindex^=\"-\"]), select:not(:disabled, [tabindex^=\"-\"]), textarea:not(:disabled, [tabindex^=\"-\"]), area[href]:not([tabindex^=\"-\"]), iframe:not([tabindex^=\"-\"]), object:not([tabindex^=\"-\"]), summary:not([tabindex^=\"-\"]), [tabindex]:not([tabindex^=\"-\"]), [contenteditable]:not([contenteditable=\"false\"], [tabindex^=\"-\"])'\n\nexport const focusFirstFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n if (element.matches(SELECTORS_FOCUSABLE) && typeof element.focus === 'function') {\n element.focus(options)\n\n return true\n }\n\n const descendent = element.querySelector(SELECTORS_FOCUSABLE)\n\n if (descendent instanceof HTMLElement && typeof descendent.focus === 'function') {\n descendent.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const focusLastFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n const descendants = element.querySelectorAll(SELECTORS_FOCUSABLE)\n const lastDescendant = descendants[descendants.length - 1]\n\n if (lastDescendant instanceof HTMLElement && typeof lastDescendant.focus === 'function') {\n lastDescendant.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const concatClassNames = (...classNames: Nullable<unknown>[]): string =>\n classNames.reduce<string>((acc, className) => {\n if (typeof className === 'string') {\n acc = acc ? acc + ' ' + className : className\n }\n\n return acc\n }, '')\n"],"names":["SELECTORS_FOCUSABLE","
|
|
1
|
+
{"version":3,"file":"dom.js","sources":["../../../../src/shared/utils/dom.ts"],"sourcesContent":["import { keyboardKeys } from 'shared/constants'\nimport type { Nullable } from 'shared/types'\n\nconst SELECTORS_FOCUSABLE =\n 'a[href]:not([tabindex^=\"-\"]), button:not(:disabled, [tabindex^=\"-\"]), input:not(:disabled, [type=\"hidden\"], [tabindex^=\"-\"]), select:not(:disabled, [tabindex^=\"-\"]), textarea:not(:disabled, [tabindex^=\"-\"]), area[href]:not([tabindex^=\"-\"]), iframe:not([tabindex^=\"-\"]), object:not([tabindex^=\"-\"]), summary:not([tabindex^=\"-\"]), [tabindex]:not([tabindex^=\"-\"]), [contenteditable]:not([contenteditable=\"false\"], [tabindex^=\"-\"])'\n\nexport const focusFirstFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n if (element.matches(SELECTORS_FOCUSABLE) && typeof element.focus === 'function') {\n element.focus(options)\n\n return true\n }\n\n const descendent = element.querySelector(SELECTORS_FOCUSABLE)\n\n if (descendent instanceof HTMLElement && typeof descendent.focus === 'function') {\n descendent.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const focusLastFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n const descendants = element.querySelectorAll(SELECTORS_FOCUSABLE)\n const lastDescendant = descendants[descendants.length - 1]\n\n if (lastDescendant instanceof HTMLElement && typeof lastDescendant.focus === 'function') {\n lastDescendant.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const concatClassNames = (...classNames: Nullable<unknown>[]): string =>\n classNames.reduce<string>((acc, className) => {\n if (typeof className === 'string') {\n acc = acc ? acc + ' ' + className : className\n }\n\n return acc\n }, '')\n\nexport const navigateFocusableList = (key: string, activeItem: HTMLElement, itemsList: HTMLElement[]) => {\n let idx = itemsList.indexOf(activeItem)\n\n if (idx === -1 || itemsList.length === 0) {\n return\n }\n\n do {\n if (keyboardKeys.ArrowUp.validate(key)) {\n idx--\n } else if (keyboardKeys.ArrowDown.validate(key)) {\n idx++\n }\n\n if (idx < 0) {\n idx = itemsList.length - 1\n } else if (idx > itemsList.length - 1) {\n idx = 0\n }\n } while (!focusFirstFocusable(itemsList[idx]))\n}\n"],"names":["SELECTORS_FOCUSABLE","focusFirstFocusable","element","options","matches","focus","descendent","querySelector","HTMLElement","concatClassNames","classNames","reduce","acc","className","focusLastFocusable","descendants","querySelectorAll","lastDescendant","length","navigateFocusableList","key","activeItem","itemsList","idx","indexOf","keyboardKeys","ArrowUp","validate","ArrowDown"],"mappings":"sDAGA,MAAMA,oBACJ,obAEWC,oBAAsBA,CACjCC,EACAC,KAIA,GAAID,EAAQE,QAAQJ,6BAA+BE,EAAQG,OAAU,WAGnE,OAFAH,EAAQG,MAAMF,IAEP,EAGT,MAAMG,EAAaJ,EAAQK,cAAcP,qBAEzC,OAAIM,aAAsBE,oBAAsBF,EAAWD,OAAU,aACnEC,EAAWD,MAAMF,IAEV,EAGG,2BAqBkBM,IAAIC,IAClCA,EAAWC,QAAe,CAACC,EAAKC,YACnBA,GAAc,WACvBD,EAAMA,EAAMA,EAAM,IAAMC,EAAYA,GAG/BD,IACN,+EAzB6BE,CAChCZ,EACAC,KAIA,MAAMY,EAAcb,EAAQc,iBAAiBhB,qBAC7C,MAAMiB,EAAiBF,EAAYA,EAAYG,OAAS,GAExD,OAAID,aAA0BT,oBAAsBS,EAAeZ,OAAU,aAC3EY,EAAeZ,MAAMF,IAEd,EAGG,gCAYuBgB,CAACC,EAAaC,EAAyBC,KAC1E,IAAIC,EAAMD,EAAUE,QAAQH,GAE5B,GAAIE,KAAS,GAAKD,EAAUJ,SAAW,EAIvC,GACMO,uBAAaC,QAAQC,SAASP,GAChCG,IACSE,UAAAA,aAAaG,UAAUD,SAASP,IACzCG,IAGEA,EAAM,EACRA,EAAMD,EAAUJ,OAAS,EAChBK,EAAMD,EAAUJ,OAAS,IAClCK,EAAM,UAEAtB,oBAAoBqB,EAAUC,IAAK"}
|
package/shared/utils/dom.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const SELECTORS_FOCUSABLE='a[href]:not([tabindex^="-"]), button:not(:disabled, [tabindex^="-"]), input:not(:disabled, [type="hidden"], [tabindex^="-"]), select:not(:disabled, [tabindex^="-"]), textarea:not(:disabled, [tabindex^="-"]), area[href]:not([tabindex^="-"]), iframe:not([tabindex^="-"]), object:not([tabindex^="-"]), summary:not([tabindex^="-"]), [tabindex]:not([tabindex^="-"]), [contenteditable]:not([contenteditable="false"], [tabindex^="-"])';const focusFirstFocusable=(t,e)=>{if(t.matches(SELECTORS_FOCUSABLE)&&typeof t.focus=='function')return t.focus(e),!0;const n=t.querySelector(SELECTORS_FOCUSABLE);return n instanceof HTMLElement&&typeof n.focus=='function'&&(n.focus(e),!0)};const focusLastFocusable=(t,e)=>{const n=t.querySelectorAll(SELECTORS_FOCUSABLE);const o=n[n.length-1];return o instanceof HTMLElement&&typeof o.focus=='function'&&(o.focus(e),!0)};const concatClassNames=(...t)=>t.reduce(((t,e)=>(typeof e=='string'&&(t=t?t+' '+e:e),t)),'');export{concatClassNames,focusFirstFocusable,focusLastFocusable};
|
|
1
|
+
import{keyboardKeys}from'../constants.mjs';const SELECTORS_FOCUSABLE='a[href]:not([tabindex^="-"]), button:not(:disabled, [tabindex^="-"]), input:not(:disabled, [type="hidden"], [tabindex^="-"]), select:not(:disabled, [tabindex^="-"]), textarea:not(:disabled, [tabindex^="-"]), area[href]:not([tabindex^="-"]), iframe:not([tabindex^="-"]), object:not([tabindex^="-"]), summary:not([tabindex^="-"]), [tabindex]:not([tabindex^="-"]), [contenteditable]:not([contenteditable="false"], [tabindex^="-"])';const focusFirstFocusable=(t,e)=>{if(t.matches(SELECTORS_FOCUSABLE)&&typeof t.focus=='function')return t.focus(e),!0;const n=t.querySelector(SELECTORS_FOCUSABLE);return n instanceof HTMLElement&&typeof n.focus=='function'&&(n.focus(e),!0)};const focusLastFocusable=(t,e)=>{const n=t.querySelectorAll(SELECTORS_FOCUSABLE);const o=n[n.length-1];return o instanceof HTMLElement&&typeof o.focus=='function'&&(o.focus(e),!0)};const concatClassNames=(...t)=>t.reduce(((t,e)=>(typeof e=='string'&&(t=t?t+' '+e:e),t)),'');const navigateFocusableList=(t,e,n)=>{let o=n.indexOf(e);if(o!==-1&&n.length!==0)do{keyboardKeys.ArrowUp.validate(t)?o--:keyboardKeys.ArrowDown.validate(t)&&o++,o<0?o=n.length-1:o>n.length-1&&(o=0)}while(!focusFirstFocusable(n[o]))};export{concatClassNames,focusFirstFocusable,focusLastFocusable,navigateFocusableList};
|
|
2
2
|
//# sourceMappingURL=dom.mjs.map
|
package/shared/utils/dom.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.mjs","sources":["../../../../src/shared/utils/dom.ts"],"sourcesContent":["import type { Nullable } from 'shared/types'\n\nconst SELECTORS_FOCUSABLE =\n 'a[href]:not([tabindex^=\"-\"]), button:not(:disabled, [tabindex^=\"-\"]), input:not(:disabled, [type=\"hidden\"], [tabindex^=\"-\"]), select:not(:disabled, [tabindex^=\"-\"]), textarea:not(:disabled, [tabindex^=\"-\"]), area[href]:not([tabindex^=\"-\"]), iframe:not([tabindex^=\"-\"]), object:not([tabindex^=\"-\"]), summary:not([tabindex^=\"-\"]), [tabindex]:not([tabindex^=\"-\"]), [contenteditable]:not([contenteditable=\"false\"], [tabindex^=\"-\"])'\n\nexport const focusFirstFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n if (element.matches(SELECTORS_FOCUSABLE) && typeof element.focus === 'function') {\n element.focus(options)\n\n return true\n }\n\n const descendent = element.querySelector(SELECTORS_FOCUSABLE)\n\n if (descendent instanceof HTMLElement && typeof descendent.focus === 'function') {\n descendent.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const focusLastFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n const descendants = element.querySelectorAll(SELECTORS_FOCUSABLE)\n const lastDescendant = descendants[descendants.length - 1]\n\n if (lastDescendant instanceof HTMLElement && typeof lastDescendant.focus === 'function') {\n lastDescendant.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const concatClassNames = (...classNames: Nullable<unknown>[]): string =>\n classNames.reduce<string>((acc, className) => {\n if (typeof className === 'string') {\n acc = acc ? acc + ' ' + className : className\n }\n\n return acc\n }, '')\n"],"names":["SELECTORS_FOCUSABLE","focusFirstFocusable","element","options","matches","focus","descendent","querySelector","HTMLElement","focusLastFocusable","descendants","querySelectorAll","lastDescendant","length","concatClassNames","classNames","reduce","acc","className"],"mappings":"
|
|
1
|
+
{"version":3,"file":"dom.mjs","sources":["../../../../src/shared/utils/dom.ts"],"sourcesContent":["import { keyboardKeys } from 'shared/constants'\nimport type { Nullable } from 'shared/types'\n\nconst SELECTORS_FOCUSABLE =\n 'a[href]:not([tabindex^=\"-\"]), button:not(:disabled, [tabindex^=\"-\"]), input:not(:disabled, [type=\"hidden\"], [tabindex^=\"-\"]), select:not(:disabled, [tabindex^=\"-\"]), textarea:not(:disabled, [tabindex^=\"-\"]), area[href]:not([tabindex^=\"-\"]), iframe:not([tabindex^=\"-\"]), object:not([tabindex^=\"-\"]), summary:not([tabindex^=\"-\"]), [tabindex]:not([tabindex^=\"-\"]), [contenteditable]:not([contenteditable=\"false\"], [tabindex^=\"-\"])'\n\nexport const focusFirstFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n if (element.matches(SELECTORS_FOCUSABLE) && typeof element.focus === 'function') {\n element.focus(options)\n\n return true\n }\n\n const descendent = element.querySelector(SELECTORS_FOCUSABLE)\n\n if (descendent instanceof HTMLElement && typeof descendent.focus === 'function') {\n descendent.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const focusLastFocusable = (\n element: HTMLElement,\n options?: {\n preventScroll?: boolean\n }\n): boolean => {\n const descendants = element.querySelectorAll(SELECTORS_FOCUSABLE)\n const lastDescendant = descendants[descendants.length - 1]\n\n if (lastDescendant instanceof HTMLElement && typeof lastDescendant.focus === 'function') {\n lastDescendant.focus(options)\n\n return true\n }\n\n return false\n}\n\nexport const concatClassNames = (...classNames: Nullable<unknown>[]): string =>\n classNames.reduce<string>((acc, className) => {\n if (typeof className === 'string') {\n acc = acc ? acc + ' ' + className : className\n }\n\n return acc\n }, '')\n\nexport const navigateFocusableList = (key: string, activeItem: HTMLElement, itemsList: HTMLElement[]) => {\n let idx = itemsList.indexOf(activeItem)\n\n if (idx === -1 || itemsList.length === 0) {\n return\n }\n\n do {\n if (keyboardKeys.ArrowUp.validate(key)) {\n idx--\n } else if (keyboardKeys.ArrowDown.validate(key)) {\n idx++\n }\n\n if (idx < 0) {\n idx = itemsList.length - 1\n } else if (idx > itemsList.length - 1) {\n idx = 0\n }\n } while (!focusFirstFocusable(itemsList[idx]))\n}\n"],"names":["SELECTORS_FOCUSABLE","focusFirstFocusable","element","options","matches","focus","descendent","querySelector","HTMLElement","focusLastFocusable","descendants","querySelectorAll","lastDescendant","length","concatClassNames","classNames","reduce","acc","className","navigateFocusableList","key","activeItem","itemsList","idx","indexOf","keyboardKeys","ArrowUp","validate","ArrowDown"],"mappings":"2CAGA,MAAMA,oBACJ,obAEWC,oBAAsBA,CACjCC,EACAC,KAIA,GAAID,EAAQE,QAAQJ,6BAA+BE,EAAQG,OAAU,WAGnE,OAFAH,EAAQG,MAAMF,IAEP,EAGT,MAAMG,EAAaJ,EAAQK,cAAcP,qBAEzC,OAAIM,aAAsBE,oBAAsBF,EAAWD,OAAU,aACnEC,EAAWD,MAAMF,IAEV,EAGG,QAGDM,mBAAqBA,CAChCP,EACAC,KAIA,MAAMO,EAAcR,EAAQS,iBAAiBX,qBAC7C,MAAMY,EAAiBF,EAAYA,EAAYG,OAAS,GAExD,OAAID,aAA0BJ,oBAAsBI,EAAeP,OAAU,aAC3EO,EAAeP,MAAMF,IAEd,EAGG,EAGDW,MAAAA,iBAAmBA,IAAIC,IAClCA,EAAWC,QAAe,CAACC,EAAKC,YACnBA,GAAc,WACvBD,EAAMA,EAAMA,EAAM,IAAMC,EAAYA,GAG/BD,IACN,IAEE,MAAME,sBAAwBA,CAACC,EAAaC,EAAyBC,KAC1E,IAAIC,EAAMD,EAAUE,QAAQH,GAE5B,GAAIE,KAAS,GAAKD,EAAUT,SAAW,EAIvC,GACMY,aAAaC,QAAQC,SAASP,GAChCG,IACSE,aAAaG,UAAUD,SAASP,IACzCG,IAGEA,EAAM,EACRA,EAAMD,EAAUT,OAAS,EAChBU,EAAMD,EAAUT,OAAS,IAClCU,EAAM,UAEAtB,oBAAoBqB,EAAUC,IAAK"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
'use strict';exports.SIZES={l:{fontSize:32,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'},m:{fontSize:20,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'},s:{fontSize:16,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'},xs:{fontSize:10,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'}},exports.SIZES_ICON={l:{fontSize:32},m:{fontSize:24},s:{fontSize:20},xs:{fontSize:20}},exports.SIZES_SUBTITLE={l:{fontSize:18},m:{fontSize:16},s:{fontSize:14},xs:{fontSize:14}},exports.SIZES_TITLE={l:{fontSize:24},m:{fontSize:20},s:{fontSize:16},xs:{fontSize:16}};
|
|
2
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../../../src/components/Accordion/constants.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { AccordionSize } from './types'\n\nexport const SIZES: Record<AccordionSize, CSSProperties> = {\n l: {\n fontSize: 32,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n m: {\n fontSize: 20,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n s: {\n fontSize: 16,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n xs: {\n fontSize: 10,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n}\n\nexport const SIZES_ICON: Record<AccordionSize, CSSProperties> = {\n l: { fontSize: 32 },\n m: { fontSize: 24 },\n s: { fontSize: 20 },\n xs: { fontSize: 20 },\n}\n\nexport const SIZES_TITLE: Record<AccordionSize, CSSProperties> = {\n l: { fontSize: 24 },\n m: { fontSize: 20 },\n s: { fontSize: 16 },\n xs: { fontSize: 16 },\n}\n\nexport const SIZES_SUBTITLE: Record<AccordionSize, CSSProperties> = {\n l: { fontSize: 18 },\n m: { fontSize: 16 },\n s: { fontSize: 14 },\n xs: { fontSize: 14 },\n}\n"],"names":["l","fontSize","paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","m","s","xs"],"mappings":"2BAG2D,CACzDA,EAAG,CACDC,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,eAEZC,EAAG,CACDN,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,eAEZE,EAAG,CACDP,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,eAEZG,GAAI,CACFR,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,mCAIkD,CAC9DN,EAAG,CAAEC,SAAU,IACfM,EAAG,CAAEN,SAAU,IACfO,EAAG,CAAEP,SAAU,IACfQ,GAAI,CAAER,SAAU,4BAUkD,CAClED,EAAG,CAAEC,SAAU,IACfM,EAAG,CAAEN,SAAU,IACfO,EAAG,CAAEP,SAAU,IACfQ,GAAI,CAAER,SAAU,yBAX+C,CAC/DD,EAAG,CAAEC,SAAU,IACfM,EAAG,CAAEN,SAAU,IACfO,EAAG,CAAEP,SAAU,IACfQ,GAAI,CAAER,SAAU"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const SIZES={l:{fontSize:32,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'},m:{fontSize:20,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'},s:{fontSize:16,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'},xs:{fontSize:10,paddingTop:'0.9em',paddingRight:'0.9em',paddingBottom:'0.9em',paddingLeft:'0.9em',minWidth:'min-content'}};const SIZES_ICON={l:{fontSize:32},m:{fontSize:24},s:{fontSize:20},xs:{fontSize:20}};const SIZES_TITLE={l:{fontSize:24},m:{fontSize:20},s:{fontSize:16},xs:{fontSize:16}};const SIZES_SUBTITLE={l:{fontSize:18},m:{fontSize:16},s:{fontSize:14},xs:{fontSize:14}};export{SIZES,SIZES_ICON,SIZES_SUBTITLE,SIZES_TITLE};
|
|
2
|
-
//# sourceMappingURL=constants.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.mjs","sources":["../../../../src/components/Accordion/constants.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\nimport type { AccordionSize } from './types'\n\nexport const SIZES: Record<AccordionSize, CSSProperties> = {\n l: {\n fontSize: 32,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n m: {\n fontSize: 20,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n s: {\n fontSize: 16,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n xs: {\n fontSize: 10,\n paddingTop: '0.9em',\n paddingRight: '0.9em',\n paddingBottom: '0.9em',\n paddingLeft: '0.9em',\n minWidth: 'min-content',\n },\n}\n\nexport const SIZES_ICON: Record<AccordionSize, CSSProperties> = {\n l: { fontSize: 32 },\n m: { fontSize: 24 },\n s: { fontSize: 20 },\n xs: { fontSize: 20 },\n}\n\nexport const SIZES_TITLE: Record<AccordionSize, CSSProperties> = {\n l: { fontSize: 24 },\n m: { fontSize: 20 },\n s: { fontSize: 16 },\n xs: { fontSize: 16 },\n}\n\nexport const SIZES_SUBTITLE: Record<AccordionSize, CSSProperties> = {\n l: { fontSize: 18 },\n m: { fontSize: 16 },\n s: { fontSize: 14 },\n xs: { fontSize: 14 },\n}\n"],"names":["SIZES","l","fontSize","paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","m","s","xs","SIZES_ICON","SIZES_TITLE","SIZES_SUBTITLE"],"mappings":"AAGO,MAAMA,MAA8C,CACzDC,EAAG,CACDC,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,eAEZC,EAAG,CACDN,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,eAEZE,EAAG,CACDP,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,eAEZG,GAAI,CACFR,SAAU,GACVC,WAAY,QACZC,aAAc,QACdC,cAAe,QACfC,YAAa,QACbC,SAAU,gBAIP,MAAMI,WAAmD,CAC9DV,EAAG,CAAEC,SAAU,IACfM,EAAG,CAAEN,SAAU,IACfO,EAAG,CAAEP,SAAU,IACfQ,GAAI,CAAER,SAAU,KAGX,MAAMU,YAAoD,CAC/DX,EAAG,CAAEC,SAAU,IACfM,EAAG,CAAEN,SAAU,IACfO,EAAG,CAAEP,SAAU,IACfQ,GAAI,CAAER,SAAU,KAGX,MAAMW,eAAuD,CAClEZ,EAAG,CAAEC,SAAU,IACfM,EAAG,CAAEN,SAAU,IACfO,EAAG,CAAEP,SAAU,IACfQ,GAAI,CAAER,SAAU"}
|