@bikdotai/bik-component-library 0.0.5-beta.2 → 0.0.5-beta.3
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/cjs/components/fab-menu/FABMenu.d.ts +1 -0
- package/dist/cjs/components/fab-menu/FABMenu.js +1 -1
- package/dist/cjs/components/floating-action-button/FloatingActionButton.d.ts +1 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.js +1 -1
- package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.d.ts +1 -0
- package/dist/cjs/components/floating-action-button/FloatingActionButton.styles.js +4 -4
- package/dist/esm/components/fab-menu/FABMenu.d.ts +1 -0
- package/dist/esm/components/fab-menu/FABMenu.js +1 -1
- package/dist/esm/components/floating-action-button/FloatingActionButton.d.ts +1 -0
- package/dist/esm/components/floating-action-button/FloatingActionButton.js +1 -1
- package/dist/esm/components/floating-action-button/FloatingActionButton.styles.d.ts +1 -0
- package/dist/esm/components/floating-action-button/FloatingActionButton.styles.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),o=require("../dropdown/opennedDropdown/components/OpennedDropdown.js"),n=require("../floating-action-button/FloatingActionButton.js");require("../floating-action-button/FloatingActionButton.styles.js");exports.FABMenu=e=>{const{onSelect:i,menuOptions:r,buttonWidth:d,buttonHeight:u,buttonColor:l,buttonPosition:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),o=require("../dropdown/opennedDropdown/components/OpennedDropdown.js"),n=require("../floating-action-button/FloatingActionButton.js");require("../floating-action-button/FloatingActionButton.styles.js");exports.FABMenu=e=>{const{onSelect:i,menuOptions:r,buttonWidth:d,buttonHeight:u,buttonColor:l,buttonPosition:s,menuWidth:c,menuHeight:a,buttonIcon:p,buttonPaddingHorizontal:g,buttonPaddingVertical:b,tooltipPlacement:h,tooltipText:x,zIndex:j,isRound:P}=e;return t.jsx("div",{children:t.jsx(n.FloatingActionButton,Object.assign({icon:p,width:d,height:u,color:l,position:s,buttonPaddingHorizontal:g,buttonPaddingVertical:b,tooltipPlacement:h,tooltipText:x,zIndex:j,isRound:P},{children:t.jsx(o.OpennedDropdown,{options:r,height:a||90,width:c,onSelect:i})}))})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),o=require("react-bootstrap"),i=require("../../constants/Theme.js"),n=require("../tooltips/CustomisedTooltip.js"),e=require("../../assets/icons/question-mark.svg.js"),r=require("./FloatingActionButton.styles.js");const l=o=>{const{width:i,height:l,color:s,onClick:c,icon:d,tooltipPlacement:a,tooltipText:h}=o;return h?t.jsx(n.CustomisedTooltip,{tooltipContent:t.jsx(t.Fragment,{children:h}),tooltipTriggerContent:t.jsx(r.FloatingActionButtonContainer,Object.assign({width:i,height:l,color:s,onClick:c},{children:d||t.jsx(e.default,{width:22,height:22})})),tooltipPlacement:a,showOnHover:!0}):t.jsx(t.Fragment,{children:t.jsx(r.FloatingActionButtonContainer,Object.assign({width:i,height:l,color:s,onClick:c},{children:d||t.jsx(e.default,{width:22,height:22})}))})};exports.FloatingActionButton=e=>{const{icon:s,onClick:c,children:d,tooltipText:a}=e,h=e.width?e.width:48,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),o=require("react-bootstrap"),i=require("../../constants/Theme.js"),n=require("../tooltips/CustomisedTooltip.js"),e=require("../../assets/icons/question-mark.svg.js"),r=require("./FloatingActionButton.styles.js");const l=o=>{const{width:i,height:l,color:s,onClick:c,icon:d,tooltipPlacement:a,tooltipText:h,isRound:u}=o;return h?t.jsx(n.CustomisedTooltip,{tooltipContent:t.jsx(t.Fragment,{children:h}),tooltipTriggerContent:t.jsx(r.FloatingActionButtonContainer,Object.assign({width:i,height:l,color:s,onClick:c,isRound:u},{children:d||t.jsx(e.default,{width:22,height:22})})),tooltipPlacement:a,showOnHover:!0}):t.jsx(t.Fragment,{children:t.jsx(r.FloatingActionButtonContainer,Object.assign({width:i,height:l,color:s,onClick:c,isRound:u},{children:d||t.jsx(e.default,{width:22,height:22})}))})};exports.FloatingActionButton=e=>{const{icon:s,onClick:c,children:d,tooltipText:a}=e,h=e.width?e.width:48,u=e.height?e.height:48,g=e.color?e.color:i.COLORS.background.inverse,p=e.position?e.position:r.FAB_POSITION.TOP_LEFT,x=e.buttonPaddingHorizontal?e.buttonPaddingHorizontal:20,j=e.buttonPaddingVertical?e.buttonPaddingVertical:20,m=e.zIndex?e.zIndex:1,P=e.tooltipPlacement?e.tooltipPlacement:n.TooltipPlacement.Auto,C=!1!==e.isRound;return t.jsx(t.Fragment,{children:t.jsx(r.FloatingActionButtonOuterContainer,Object.assign({width:h,height:u,color:g,position:p,buttonPaddingHorizontal:x,buttonPaddingVertical:j,zIndex:m},{children:t.jsx(r.StyledDropdown,{children:d?t.jsxs(t.Fragment,{children:[t.jsx(r.DropdownToggleContainer,{children:t.jsx(l,{width:h,height:u,color:g,tooltipPlacement:P,onClick:c,tooltipText:a,icon:s,position:p,isRound:C})}),t.jsx(o.Dropdown.Menu,{children:d})]}):t.jsx(l,{width:h,height:u,color:g,tooltipPlacement:P,onClick:c,tooltipText:a,icon:s,position:p,isRound:C})})}))})};
|
|
@@ -9,6 +9,7 @@ export declare const FloatingActionButtonContainer: import("styled-components").
|
|
|
9
9
|
width: number;
|
|
10
10
|
height: number;
|
|
11
11
|
color: string;
|
|
12
|
+
isRound: boolean;
|
|
12
13
|
}, never>;
|
|
13
14
|
export declare const FloatingActionButtonOuterContainer: import("styled-components").StyledComponent<"div", any, {
|
|
14
15
|
width: number;
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
width: ${t=>t.width}px;
|
|
3
3
|
height: ${t=>t.height}px;
|
|
4
4
|
background: ${t=>t.color};
|
|
5
|
-
border-radius: 50%;
|
|
5
|
+
${t=>t.isRound?"border-radius: 50%;":"border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; border-top-left-radius:50%;"}
|
|
6
6
|
justify-content: center;
|
|
7
7
|
align-items: center;
|
|
8
8
|
cursor: pointer;
|
|
9
9
|
display: flex;
|
|
10
|
-
`,
|
|
10
|
+
`,a=n.default.div`
|
|
11
11
|
display: flex;
|
|
12
12
|
border-radius: 50%;
|
|
13
13
|
flex-direction: column;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
height: ${t=>t.height}px;
|
|
18
18
|
z-index: ${t=>t.zIndex};
|
|
19
19
|
${t=>t.position===exports.FAB_POSITION.BOTTOM_RIGHT?`right: ${t.buttonPaddingHorizontal}px; bottom: ${t.buttonPaddingVertical}px`:t.position===exports.FAB_POSITION.BOTTOM_LEFT?`left: ${t.buttonPaddingHorizontal}px; bottom: ${t.buttonPaddingVertical}px`:t.position===exports.FAB_POSITION.TOP_LEFT?`left: ${t.buttonPaddingHorizontal}px; top: ${t.buttonPaddingVertical}px`:t.position===exports.FAB_POSITION.TOP_RIGHT?`right: ${t.buttonPaddingHorizontal}px; top: ${t.buttonPaddingVertical}px`:""};
|
|
20
|
-
`,
|
|
20
|
+
`,p=n.default(t.Dropdown)`
|
|
21
21
|
.filter-container {
|
|
22
22
|
.single-row {
|
|
23
23
|
display: flex;
|
|
@@ -84,4 +84,4 @@
|
|
|
84
84
|
font-weight: 400;
|
|
85
85
|
font-size: 14px;
|
|
86
86
|
line-height: 20px;
|
|
87
|
-
`;exports.DropdownToggleContainer=s,exports.FloatingActionButtonContainer=d,exports.FloatingActionButtonOuterContainer=
|
|
87
|
+
`;exports.DropdownToggleContainer=s,exports.FloatingActionButtonContainer=d,exports.FloatingActionButtonOuterContainer=a,exports.StyledDropdown=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{OpennedDropdown as o}from"../dropdown/opennedDropdown/components/OpennedDropdown.js";import{FloatingActionButton as n}from"../floating-action-button/FloatingActionButton.js";import"../floating-action-button/FloatingActionButton.styles.js";const i=i=>{const{onSelect:e,menuOptions:d,buttonWidth:r,buttonHeight:l,buttonColor:c,buttonPosition:
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{OpennedDropdown as o}from"../dropdown/opennedDropdown/components/OpennedDropdown.js";import{FloatingActionButton as n}from"../floating-action-button/FloatingActionButton.js";import"../floating-action-button/FloatingActionButton.styles.js";const i=i=>{const{onSelect:e,menuOptions:d,buttonWidth:r,buttonHeight:l,buttonColor:c,buttonPosition:u,menuWidth:a,menuHeight:p,buttonIcon:s,buttonPaddingHorizontal:m,buttonPaddingVertical:g,tooltipPlacement:b,tooltipText:h,zIndex:P,isRound:x}=i;return t("div",{children:t(n,Object.assign({icon:s,width:r,height:l,color:c,position:u,buttonPaddingHorizontal:m,buttonPaddingVertical:g,tooltipPlacement:b,tooltipText:h,zIndex:P,isRound:x},{children:t(o,{options:d,height:p||90,width:a,onSelect:e})}))})};export{i as FABMenu};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as t,Fragment as o,jsxs as i}from"react/jsx-runtime";import{Dropdown as n}from"react-bootstrap";import{COLORS as e}from"../../constants/Theme.js";import{TooltipPlacement as l,CustomisedTooltip as r}from"../tooltips/CustomisedTooltip.js";import c from"../../assets/icons/question-mark.svg.js";import{FAB_POSITION as
|
|
1
|
+
import{jsx as t,Fragment as o,jsxs as i}from"react/jsx-runtime";import{Dropdown as n}from"react-bootstrap";import{COLORS as e}from"../../constants/Theme.js";import{TooltipPlacement as l,CustomisedTooltip as r}from"../tooltips/CustomisedTooltip.js";import c from"../../assets/icons/question-mark.svg.js";import{FAB_POSITION as d,FloatingActionButtonOuterContainer as h,StyledDropdown as s,DropdownToggleContainer as a,FloatingActionButtonContainer as p}from"./FloatingActionButton.styles.js";const g=i=>{const{width:n,height:e,color:l,onClick:d,icon:h,tooltipPlacement:s,tooltipText:a,isRound:g}=i;return a?t(r,{tooltipContent:t(o,{children:a}),tooltipTriggerContent:t(p,Object.assign({width:n,height:e,color:l,onClick:d,isRound:g},{children:h||t(c,{width:22,height:22})})),tooltipPlacement:s,showOnHover:!0}):t(o,{children:t(p,Object.assign({width:n,height:e,color:l,onClick:d,isRound:g},{children:h||t(c,{width:22,height:22})}))})},m=r=>{const{icon:c,onClick:p,children:m,tooltipText:u}=r,P=r.width?r.width:48,b=r.height?r.height:48,w=r.color?r.color:e.background.inverse,x=r.position?r.position:d.TOP_LEFT,C=r.buttonPaddingHorizontal?r.buttonPaddingHorizontal:20,T=r.buttonPaddingVertical?r.buttonPaddingVertical:20,j=r.zIndex?r.zIndex:1,k=r.tooltipPlacement?r.tooltipPlacement:l.Auto,f=!1!==r.isRound;return t(o,{children:t(h,Object.assign({width:P,height:b,color:w,position:x,buttonPaddingHorizontal:C,buttonPaddingVertical:T,zIndex:j},{children:t(s,{children:m?i(o,{children:[t(a,{children:t(g,{width:P,height:b,color:w,tooltipPlacement:k,onClick:p,tooltipText:u,icon:c,position:x,isRound:f})}),t(n.Menu,{children:m})]}):t(g,{width:P,height:b,color:w,tooltipPlacement:k,onClick:p,tooltipText:u,icon:c,position:x,isRound:f})})}))})};export{m as FloatingActionButton};
|
|
@@ -9,6 +9,7 @@ export declare const FloatingActionButtonContainer: import("styled-components").
|
|
|
9
9
|
width: number;
|
|
10
10
|
height: number;
|
|
11
11
|
color: string;
|
|
12
|
+
isRound: boolean;
|
|
12
13
|
}, never>;
|
|
13
14
|
export declare const FloatingActionButtonOuterContainer: import("styled-components").StyledComponent<"div", any, {
|
|
14
15
|
width: number;
|
|
@@ -2,7 +2,7 @@ import{Dropdown as t}from"react-bootstrap";import o from"styled-components";impo
|
|
|
2
2
|
width: ${t=>t.width}px;
|
|
3
3
|
height: ${t=>t.height}px;
|
|
4
4
|
background: ${t=>t.color};
|
|
5
|
-
border-radius: 50%;
|
|
5
|
+
${t=>t.isRound?"border-radius: 50%;":"border-bottom-left-radius: 50%; border-bottom-right-radius: 50%; border-top-left-radius:50%;"}
|
|
6
6
|
justify-content: center;
|
|
7
7
|
align-items: center;
|
|
8
8
|
cursor: pointer;
|