@atom-learning/components 3.30.1 → 3.31.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/CHANGELOG.md +3 -3
- package/dist/components/input/Input.js +1 -1
- package/dist/components/input/Input.js.map +1 -1
- package/dist/components/search-input/SearchInput.js +1 -1
- package/dist/components/search-input/SearchInput.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/utilities/style/focus-visible-style-block.d.ts +2 -1
- package/dist/utilities/style/focus-visible-style-block.js +1 -1
- package/dist/utilities/style/focus-visible-style-block.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type focusVisibleStyleBlockPropsType = {
|
|
2
2
|
position?: 'relative' | 'absolute' | 'fixed' | 'sticky';
|
|
3
3
|
zIndex?: number;
|
|
4
|
+
boxShadow?: string;
|
|
4
5
|
};
|
|
5
6
|
type focusVisibleStyleBlockReturnType = {
|
|
6
7
|
outline: 'none';
|
|
@@ -8,5 +9,5 @@ type focusVisibleStyleBlockReturnType = {
|
|
|
8
9
|
zIndex: number;
|
|
9
10
|
boxShadow: string;
|
|
10
11
|
};
|
|
11
|
-
export declare const focusVisibleStyleBlock: ({ position, zIndex }?: focusVisibleStyleBlockPropsType) => focusVisibleStyleBlockReturnType;
|
|
12
|
+
export declare const focusVisibleStyleBlock: ({ position, zIndex, boxShadow }?: focusVisibleStyleBlockPropsType) => focusVisibleStyleBlockReturnType;
|
|
12
13
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const
|
|
1
|
+
const x=({position:e="relative",zIndex:o=1,boxShadow:i=""}={})=>({outline:"none",position:["relative","absolute","fixed","sticky"].includes(e)?e:"relative",zIndex:o>1?o:1,boxShadow:`white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px${i?`, ${i}`:""}`});export{x as focusVisibleStyleBlock};
|
|
2
2
|
//# sourceMappingURL=focus-visible-style-block.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focus-visible-style-block.js","sources":["../../../src/utilities/style/focus-visible-style-block.ts"],"sourcesContent":["/*\n Focus styling for block element.\n*/\n\ntype focusVisibleStyleBlockPropsType = {\n position?: 'relative' | 'absolute' | 'fixed' | 'sticky'\n zIndex?: number\n}\n\ntype focusVisibleStyleBlockReturnType = {\n outline: 'none'\n position: string\n zIndex: number\n boxShadow: string\n}\n\nexport const focusVisibleStyleBlock = ({\n position = 'relative',\n zIndex = 1\n}: focusVisibleStyleBlockPropsType = {}): focusVisibleStyleBlockReturnType => {\n return {\n outline: 'none',\n position: ['relative', 'absolute', 'fixed', 'sticky'].includes(position)\n ? position\n : 'relative',\n zIndex: zIndex > 1 ? zIndex : 1,\n boxShadow:
|
|
1
|
+
{"version":3,"file":"focus-visible-style-block.js","sources":["../../../src/utilities/style/focus-visible-style-block.ts"],"sourcesContent":["/*\n Focus styling for block element.\n*/\n\ntype focusVisibleStyleBlockPropsType = {\n position?: 'relative' | 'absolute' | 'fixed' | 'sticky'\n zIndex?: number\n boxShadow?: string\n}\n\ntype focusVisibleStyleBlockReturnType = {\n outline: 'none'\n position: string\n zIndex: number\n boxShadow: string\n}\n\nexport const focusVisibleStyleBlock = ({\n position = 'relative',\n zIndex = 1,\n boxShadow = ''\n}: focusVisibleStyleBlockPropsType = {}): focusVisibleStyleBlockReturnType => {\n return {\n outline: 'none',\n position: ['relative', 'absolute', 'fixed', 'sticky'].includes(position)\n ? position\n : 'relative',\n zIndex: zIndex > 1 ? zIndex : 1,\n boxShadow: `white 0px 0px 0px 2px, $colors$primary800 0px 0px 0px 4px${\n boxShadow ? `, ${boxShadow}` : ''\n }`\n }\n}\n"],"names":["focusVisibleStyleBlock","position","zIndex","boxShadow"],"mappings":"AAiBO,MAAMA,EAAyB,CAAC,CACrC,SAAAC,EAAW,WACX,OAAAC,EAAS,EACT,UAAAC,EAAY,EACd,EAAqC,MAC5B,CACL,QAAS,OACT,SAAU,CAAC,WAAY,WAAY,QAAS,QAAQ,EAAE,SAASF,CAAQ,EACnEA,EACA,WACJ,OAAQC,EAAS,EAAIA,EAAS,EAC9B,UAAW,4DACTC,EAAY,KAAKA,IAAc,IAEnC"}
|