@bikdotai/bik-component-library 0.0.786-beta.6 → 0.0.786-beta.7
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/whats-new/WhatsNew.d.ts +1 -0
- package/dist/cjs/components/whats-new/WhatsNew.js +1 -1
- package/dist/cjs/components/whats-new/WhatsNew.types.d.ts +1 -0
- package/dist/cjs/components/whats-new/WhatsNewButton.js +1 -1
- package/dist/esm/components/whats-new/WhatsNew.d.ts +1 -0
- package/dist/esm/components/whats-new/WhatsNew.js +1 -1
- package/dist/esm/components/whats-new/WhatsNew.types.d.ts +1 -0
- package/dist/esm/components/whats-new/WhatsNewButton.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/assets/icons/Icons.stories.d.ts +0 -31
- package/dist/esm/assets/icons/Icons.stories.d.ts +0 -31
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("./WhatsNewButton.js"),o=require("./WhatsNewPanel.js"),s=require("./WhatsNewProvider.js");exports.WhatsNew=r=>{let{title:i="What's new",tooltip:a="What's new",searchPlaceholder:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),n=require("./WhatsNewButton.js"),o=require("./WhatsNewPanel.js"),s=require("./WhatsNewProvider.js");exports.WhatsNew=r=>{let{title:i="What's new",tooltip:a="What's new",searchPlaceholder:c="Search posts",emptyStateTitle:u="Nothing new!",emptyStateDescription:h="There are no new updates or features at the moment. Check back soon!",noResultsText:l="Sorry, no results found.",width:d="480px",onContentClick:w,renderCustomContent:C,buttonTestId:p="whats-new-button",iconWidth:m=24,iconHeight:W=24,iconColor:x,customIcon:N}=r;const[j,g]=t.useState(!1),{whatsNewContent:S,isLoading:y,newContentCount:P}=s.useWhatsNewContext();return e.jsxs(e.Fragment,{children:[e.jsx(n.WhatsNewButton,{onClick:()=>g(!0),newContentCount:P,isOpen:j,isLoading:y,tooltip:a,testId:p,iconWidth:m,iconHeight:W,iconColor:x,customIcon:N}),e.jsx(o.WhatsNewPanel,{isOpen:j,onClose:()=>g(!1),content:S,isLoading:y,title:i,searchPlaceholder:c,emptyStateTitle:u,emptyStateDescription:h,noResultsText:l,width:d,onContentClick:e=>{w&&w(e)},renderCustomContent:C})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../assets/icons/whatsNew.svg.js"),n=require("../../constants/Theme.js"),s=require("../icon-button/IconButton.js"),i=require("../tooltips/Tooltip.js"),o=require("./WhatsNew.styles.js");exports.WhatsNewButton=r=>{let{onClick:a,newContentCount:c=0,isOpen:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("react/jsx-runtime"),e=require("../../assets/icons/whatsNew.svg.js"),n=require("../../constants/Theme.js"),s=require("../icon-button/IconButton.js"),i=require("../tooltips/Tooltip.js"),o=require("./WhatsNew.styles.js");exports.WhatsNewButton=r=>{let{onClick:a,newContentCount:c=0,isOpen:l=!1,isLoading:d=!1,tooltip:u="What's new",testId:h="whats-new-button",iconWidth:j=24,iconHeight:p=24,iconColor:x,customIcon:b}=r;return d?t.jsxs("div",Object.assign({style:{margin:"0px 8px"}},{children:[t.jsx("div",{style:{width:16,height:16,border:"2px solid #f3f3f3",borderTop:"2px solid #731DCF",borderRadius:"50%",animation:"spin 1s linear infinite"}}),t.jsx("style",{children:"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t"})]})):t.jsxs(o.WhatsNewIconContainer,Object.assign({count:c},{children:[t.jsx(i.Tooltip,Object.assign({body:u,placement:"bottom"},{children:t.jsx(s.IconButton,{Icon:null!=b?b:e.default,width:j,height:p,isSelected:l,iconColor:null!=x?x:l?n.COLORS.content.brand:n.COLORS.content.primary,onClick:a,"data-testid":h})})),c>0&&t.jsx("div",Object.assign({className:"notification--count"},{children:t.jsx("div",Object.assign({className:"count--text"},{children:c}))}))]}))};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,Fragment as e,jsx as o}from"react/jsx-runtime";import{useState as n}from"react";import{WhatsNewButton as i}from"./WhatsNewButton.js";import{WhatsNewPanel as s}from"./WhatsNewPanel.js";import{useWhatsNewContext as r}from"./WhatsNewProvider.js";const
|
|
1
|
+
import{jsxs as t,Fragment as e,jsx as o}from"react/jsx-runtime";import{useState as n}from"react";import{WhatsNewButton as i}from"./WhatsNewButton.js";import{WhatsNewPanel as s}from"./WhatsNewPanel.js";import{useWhatsNewContext as r}from"./WhatsNewProvider.js";const c=c=>{let{title:a="What's new",tooltip:h="What's new",searchPlaceholder:l="Search posts",emptyStateTitle:m="Nothing new!",emptyStateDescription:p="There are no new updates or features at the moment. Check back soon!",noResultsText:C="Sorry, no results found.",width:d="480px",onContentClick:u,renderCustomContent:w,buttonTestId:f="whats-new-button",iconWidth:W=24,iconHeight:g=24,iconColor:S,customIcon:T}=c;const[k,x]=n(!1),{whatsNewContent:y,isLoading:N,newContentCount:j}=r();return t(e,{children:[o(i,{onClick:()=>x(!0),newContentCount:j,isOpen:k,isLoading:N,tooltip:h,testId:f,iconWidth:W,iconHeight:g,iconColor:S,customIcon:T}),o(s,{isOpen:k,onClose:()=>x(!1),content:y,isLoading:N,title:a,searchPlaceholder:l,emptyStateTitle:m,emptyStateDescription:p,noResultsText:C,width:d,onContentClick:t=>{u&&u(t)},renderCustomContent:w})]})};export{c as WhatsNew};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as n}from"react/jsx-runtime";import o from"../../assets/icons/whatsNew.svg.js";import{COLORS as i}from"../../constants/Theme.js";import{IconButton as e}from"../icon-button/IconButton.js";import{Tooltip as s}from"../tooltips/Tooltip.js";import{WhatsNewIconContainer as r}from"./WhatsNew.styles.js";const c=c=>{let{onClick:a,newContentCount:
|
|
1
|
+
import{jsxs as t,jsx as n}from"react/jsx-runtime";import o from"../../assets/icons/whatsNew.svg.js";import{COLORS as i}from"../../constants/Theme.js";import{IconButton as e}from"../icon-button/IconButton.js";import{Tooltip as s}from"../tooltips/Tooltip.js";import{WhatsNewIconContainer as r}from"./WhatsNew.styles.js";const c=c=>{let{onClick:a,newContentCount:l=0,isOpen:d=!1,isLoading:m=!1,tooltip:p="What's new",testId:h="whats-new-button",iconWidth:f=24,iconHeight:b=24,iconColor:g,customIcon:u}=c;return m?t("div",Object.assign({style:{margin:"0px 8px"}},{children:[n("div",{style:{width:16,height:16,border:"2px solid #f3f3f3",borderTop:"2px solid #731DCF",borderRadius:"50%",animation:"spin 1s linear infinite"}}),n("style",{children:"\n\t\t\t\t\t\t@keyframes spin {\n\t\t\t\t\t\t\t0% { transform: rotate(0deg); }\n\t\t\t\t\t\t\t100% { transform: rotate(360deg); }\n\t\t\t\t\t\t}\n\t\t\t\t\t"})]})):t(r,Object.assign({count:l},{children:[n(s,Object.assign({body:p,placement:"bottom"},{children:n(e,{Icon:null!=u?u:o,width:f,height:b,isSelected:d,iconColor:null!=g?g:d?i.content.brand:i.content.primary,onClick:a,"data-testid":h})})),l>0&&n("div",Object.assign({className:"notification--count"},{children:n("div",Object.assign({className:"count--text"},{children:l}))}))]}))};export{c as WhatsNewButton};
|
package/package.json
CHANGED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
-
declare const _default: ComponentMeta<({ color, size, }: {
|
|
3
|
-
color?: string | undefined;
|
|
4
|
-
size?: number | undefined;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const AllIcons: ComponentStory<({ color, size, }: {
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
size?: number | undefined;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
-
export declare const ActiveChecklist: ComponentStory<any>;
|
|
12
|
-
export declare const CheckIndicator: ComponentStory<any>;
|
|
13
|
-
export declare const CompletedChecklist: ComponentStory<any>;
|
|
14
|
-
export declare const InactiveChecklist: ComponentStory<any>;
|
|
15
|
-
export declare const ProgressBadge: ComponentStory<any>;
|
|
16
|
-
export declare const Redirect2: ComponentStory<any>;
|
|
17
|
-
export declare const SearchIconComponent: ComponentStory<any>;
|
|
18
|
-
export declare const SmallCheck: ComponentStory<any>;
|
|
19
|
-
export declare const Customise: ComponentStory<any>;
|
|
20
|
-
export declare const Enable: ComponentStory<any>;
|
|
21
|
-
export declare const GoLive: ComponentStory<any>;
|
|
22
|
-
export declare const Headset: ComponentStory<any>;
|
|
23
|
-
export declare const ListChecks: ComponentStory<any>;
|
|
24
|
-
export declare const Marketing: ComponentStory<any>;
|
|
25
|
-
export declare const Nudges: ComponentStory<any>;
|
|
26
|
-
export declare const OnboardingLogoStory: ComponentStory<any>;
|
|
27
|
-
export declare const OrderTracking: ComponentStory<any>;
|
|
28
|
-
export declare const PlusIconComponent: ComponentStory<any>;
|
|
29
|
-
export declare const Shopping: ComponentStory<any>;
|
|
30
|
-
export declare const Support: ComponentStory<any>;
|
|
31
|
-
export declare const Training: ComponentStory<any>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
2
|
-
declare const _default: ComponentMeta<({ color, size, }: {
|
|
3
|
-
color?: string | undefined;
|
|
4
|
-
size?: number | undefined;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
-
export default _default;
|
|
7
|
-
export declare const AllIcons: ComponentStory<({ color, size, }: {
|
|
8
|
-
color?: string | undefined;
|
|
9
|
-
size?: number | undefined;
|
|
10
|
-
}) => import("react/jsx-runtime").JSX.Element>;
|
|
11
|
-
export declare const ActiveChecklist: ComponentStory<any>;
|
|
12
|
-
export declare const CheckIndicator: ComponentStory<any>;
|
|
13
|
-
export declare const CompletedChecklist: ComponentStory<any>;
|
|
14
|
-
export declare const InactiveChecklist: ComponentStory<any>;
|
|
15
|
-
export declare const ProgressBadge: ComponentStory<any>;
|
|
16
|
-
export declare const Redirect2: ComponentStory<any>;
|
|
17
|
-
export declare const SearchIconComponent: ComponentStory<any>;
|
|
18
|
-
export declare const SmallCheck: ComponentStory<any>;
|
|
19
|
-
export declare const Customise: ComponentStory<any>;
|
|
20
|
-
export declare const Enable: ComponentStory<any>;
|
|
21
|
-
export declare const GoLive: ComponentStory<any>;
|
|
22
|
-
export declare const Headset: ComponentStory<any>;
|
|
23
|
-
export declare const ListChecks: ComponentStory<any>;
|
|
24
|
-
export declare const Marketing: ComponentStory<any>;
|
|
25
|
-
export declare const Nudges: ComponentStory<any>;
|
|
26
|
-
export declare const OnboardingLogoStory: ComponentStory<any>;
|
|
27
|
-
export declare const OrderTracking: ComponentStory<any>;
|
|
28
|
-
export declare const PlusIconComponent: ComponentStory<any>;
|
|
29
|
-
export declare const Shopping: ComponentStory<any>;
|
|
30
|
-
export declare const Support: ComponentStory<any>;
|
|
31
|
-
export declare const Training: ComponentStory<any>;
|