@bikdotai/bik-component-library 0.0.298-4 → 0.0.298-5

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.
@@ -10,4 +10,5 @@ export declare const DashboardReviewPopUp: React.FC<{
10
10
  [key: number]: string;
11
11
  };
12
12
  fullStarSubmitText: string;
13
+ onRatingChange?: (stars: number) => void;
13
14
  }>;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../../assets/icons/cross.svg.js"),s=require("../dropShadow/DropShadow.js"),o=require("./components/FiveStar.js"),i=require("./components/Form.js"),n=require("./components/ZeroState.js"),a=require("./DashboardReviewPopUp.styled.js");exports.DashboardReviewPopUp=u=>{let{onClose:c,onSubmit:l,quickAnswerOptions:d,titleMap:p,feedbackMap:S,fullStarSubmitText:j}=u;const[h,b]=t.useState(0);function x(e){b(e)}return e.jsx(s.default,Object.assign({level:"z2",position:"down"},{children:e.jsxs(a.Container,{children:[e.jsx(a.CrossIconHolder,Object.assign({onClick:c},{children:e.jsx(r.default,{width:24,height:24})})),0===h?e.jsx(n.ZeroState,{handleStarSelection:x}):5===h?e.jsx(o.FiveStar,{fullStarSubmitText:j,onSubmit:l,handleStarSelection:x}):e.jsx(i.Form,{titleMap:p,feedbackMap:S,stars:h,onStarChange:x,onSubmit:l,quickAnswerOptions:d})]})}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),r=require("../../assets/icons/cross.svg.js"),s=require("../dropShadow/DropShadow.js"),o=require("./components/FiveStar.js"),i=require("./components/Form.js"),n=require("./components/ZeroState.js"),a=require("./DashboardReviewPopUp.styled.js");exports.DashboardReviewPopUp=u=>{let{onClose:l,onSubmit:c,quickAnswerOptions:d,titleMap:p,feedbackMap:S,fullStarSubmitText:j,onRatingChange:h}=u;const[b,x]=t.useState(0);function m(e){x(e),null==h||h(e)}return e.jsx(s.default,Object.assign({level:"z2",position:"down"},{children:e.jsxs(a.Container,{children:[e.jsx(a.CrossIconHolder,Object.assign({onClick:l},{children:e.jsx(r.default,{width:24,height:24})})),0===b?e.jsx(n.ZeroState,{handleStarSelection:m}):5===b?e.jsx(o.FiveStar,{fullStarSubmitText:j,onSubmit:c,handleStarSelection:m}):e.jsx(i.Form,{titleMap:p,feedbackMap:S,stars:b,onStarChange:m,onSubmit:c,quickAnswerOptions:d})]})}))};
@@ -10,4 +10,5 @@ export declare const DashboardReviewPopUp: React.FC<{
10
10
  [key: number]: string;
11
11
  };
12
12
  fullStarSubmitText: string;
13
+ onRatingChange?: (stars: number) => void;
13
14
  }>;
@@ -1 +1 @@
1
- import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"../../assets/icons/cross.svg.js";import i from"../dropShadow/DropShadow.js";import{FiveStar as n}from"./components/FiveStar.js";import{Form as s}from"./components/Form.js";import{ZeroState as a}from"./components/ZeroState.js";import{Container as m,CrossIconHolder as p}from"./DashboardReviewPopUp.styled.js";const c=c=>{let{onClose:l,onSubmit:S,quickAnswerOptions:d,titleMap:f,feedbackMap:h,fullStarSubmitText:u}=c;const[b,j]=e(0);function w(t){j(t)}return t(i,Object.assign({level:"z2",position:"down"},{children:o(m,{children:[t(p,Object.assign({onClick:l},{children:t(r,{width:24,height:24})})),0===b?t(a,{handleStarSelection:w}):5===b?t(n,{fullStarSubmitText:u,onSubmit:S,handleStarSelection:w}):t(s,{titleMap:f,feedbackMap:h,stars:b,onStarChange:w,onSubmit:S,quickAnswerOptions:d})]})}))};export{c as DashboardReviewPopUp};
1
+ import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as e}from"react";import r from"../../assets/icons/cross.svg.js";import n from"../dropShadow/DropShadow.js";import{FiveStar as i}from"./components/FiveStar.js";import{Form as s}from"./components/Form.js";import{ZeroState as a}from"./components/ZeroState.js";import{Container as m,CrossIconHolder as p}from"./DashboardReviewPopUp.styled.js";const c=c=>{let{onClose:l,onSubmit:S,quickAnswerOptions:d,titleMap:f,feedbackMap:h,fullStarSubmitText:u,onRatingChange:b}=c;const[j,g]=e(0);function w(t){g(t),null==b||b(t)}return t(n,Object.assign({level:"z2",position:"down"},{children:o(m,{children:[t(p,Object.assign({onClick:l},{children:t(r,{width:24,height:24})})),0===j?t(a,{handleStarSelection:w}):5===j?t(i,{fullStarSubmitText:u,onSubmit:S,handleStarSelection:w}):t(s,{titleMap:f,feedbackMap:h,stars:j,onStarChange:w,onSubmit:S,quickAnswerOptions:d})]})}))};export{c as DashboardReviewPopUp};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bikdotai/bik-component-library",
3
- "version": "0.0.298-4",
3
+ "version": "0.0.298-5",
4
4
  "description": "Bik Component Library",
5
5
  "repository": {
6
6
  "type": "git",