@narmi/design_system 5.2.0 → 5.2.2
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tokens/css/rgbColors.css +1 -1
- package/dist/tokens/css/rgbColors.scss +1 -1
- package/dist/tokens/css/tokens.css +1 -1
- package/dist/tokens/css/tokens.scss +1 -1
- package/dist/tokens/js/colors.esm.js +1 -1
- package/dist/tokens/js/colors.js +1 -1
- package/dist/tokens/js/manifest.esm.js +1 -1
- package/dist/tokens/js/manifest.js +1 -1
- package/dist/tokens/js/reactNativeWeb.js +1 -1
- package/dist/types/hooks/useDropdownLayer/index.d.ts +7 -1
- package/dist/types/hooks/useDropdownLayer/index.d.ts.map +1 -1
- package/dist/types/hooks/useDropdownLayer/useAnchorPolyfill.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/tokens/js/colors.js
CHANGED
|
@@ -5,6 +5,8 @@ export type UseDropdownLayerResult = {
|
|
|
5
5
|
style: {
|
|
6
6
|
anchorName?: string;
|
|
7
7
|
};
|
|
8
|
+
"aria-haspopup": string;
|
|
9
|
+
"aria-expanded": string;
|
|
8
10
|
};
|
|
9
11
|
/** Props to spread onto the dropdown menu element */
|
|
10
12
|
layerProps: {
|
|
@@ -28,12 +30,16 @@ export interface UseDropdownLayerOptions {
|
|
|
28
30
|
* @default false
|
|
29
31
|
*/
|
|
30
32
|
isPortalled?: boolean;
|
|
33
|
+
/** Type of popup for aria-haspopup attribute
|
|
34
|
+
* @default "menu"
|
|
35
|
+
*/
|
|
36
|
+
ariaPopupType?: string;
|
|
31
37
|
}
|
|
32
38
|
/**
|
|
33
39
|
* Progressive enhancement driven layout helper for dropdowns/menus.
|
|
34
40
|
* Uses CSS anchor positioning if supported, otherwise falls back to
|
|
35
41
|
* a JS-supported fixed positioning strategy.
|
|
36
42
|
*/
|
|
37
|
-
declare const useDropdownLayer: ({ isOpen, setIsOpen, matchWidth, isPortalled, }: UseDropdownLayerOptions) => UseDropdownLayerResult;
|
|
43
|
+
declare const useDropdownLayer: ({ isOpen, setIsOpen, matchWidth, isPortalled, ariaPopupType, }: UseDropdownLayerOptions) => UseDropdownLayerResult;
|
|
38
44
|
export default useDropdownLayer;
|
|
39
45
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropdownLayer/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,sBAAsB,GAAG;IACnC,sDAAsD;IACtD,WAAW,EAAE;QACX,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC5B,KAAK,EAAE;YACL,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropdownLayer/index.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,sBAAsB,GAAG;IACnC,sDAAsD;IACtD,WAAW,EAAE;QACX,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC5B,KAAK,EAAE;YACL,UAAU,CAAC,EAAE,MAAM,CAAC;SACrB,CAAC;QACF,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,MAAM,CAAC;KACzB,CAAC;IACF,qDAAqD;IACrD,UAAU,EAAE;QACV,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC5B,KAAK,EACD;YACE,cAAc,CAAC,EAAE,MAAM,CAAC;YACxB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;SAC/B,GACD,KAAK,CAAC,aAAa,CAAC;KACzB,CAAC;CACH,CAAC;AAEF,MAAM,WAAW,uBAAuB;IACtC,wDAAwD;IACxD,MAAM,EAAE,OAAO,CAAC;IAChB,iDAAiD;IACjD,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,QAAA,MAAM,gBAAgB,GAAI,gEAMvB,uBAAuB,KAAG,sBAsE5B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAnchorPolyfill.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropdownLayer/useAnchorPolyfill.ts"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,uEAAuE;IACvE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,wEAAwE;IACxE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,MAAM,EAAE,OAAO,CAAC;IAChB,qCAAqC;IACrC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GAAI,sEAOxB,uBAAuB;;;
|
|
1
|
+
{"version":3,"file":"useAnchorPolyfill.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useDropdownLayer/useAnchorPolyfill.ts"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,uEAAuE;IACvE,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACxC,wEAAwE;IACxE,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;IACvC,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,6CAA6C;IAC7C,MAAM,EAAE,OAAO,CAAC;IAChB,qCAAqC;IACrC,SAAS,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACrC,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,QAAA,MAAM,iBAAiB,GAAI,sEAOxB,uBAAuB;;;CA8FzB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|