MCPcopy Index your code
hub / github.com/proksh/atomize / computeButtonStyle

Function computeButtonStyle

src/atoms/button/Button.style.js:7–133  ·  view source on GitHub ↗
(props, context)

Source from the content-addressed store, hash-verified

5import findBorder from "../../style-functions/findBorder";
6
7const computeButtonStyle = (props, context) => {
8 const {
9 d,
10 pos,
11 top,
12 bottom,
13 left,
14 right,
15 justify,
16 align,
17 flexDir,
18 flexGrow,
19 flexWrap,
20 order,
21 m,
22 p,
23 rounded,
24 border,
25 borderColor,
26 h,
27 maxH,
28 minH,
29 w,
30 minW,
31 maxW,
32 cursor,
33 bg,
34 bgImg,
35 bgSize,
36 bgRepeat,
37 bgPos,
38 textSize,
39 textWeight,
40 textAlign,
41 textTransform,
42 fontFamily,
43 shadow,
44 transition,
45 transform,
46 transformOrigin,
47 zIndex,
48 overflow,
49 opacity,
50 hoverBg,
51 hoverTextColor,
52 hoverBorderColor,
53 hoverShadow,
54 focusBorderColor,
55 isOpen,
56 hover,
57 offset,
58 size,
59 targetHover,
60 disableColor,
61 disableBorderColor,
62 disableShadow,
63 disableBg,
64 ...rest

Callers 1

Button.jsFile · 0.85

Calls 5

findRoundedDirectionFunction · 0.85
findDirectionFunction · 0.85
makeResponsiveFunction · 0.85
findBorderFunction · 0.85
arrayKeyMapToObjectFunction · 0.85

Tested by

no test coverage detected