@viswa-test/creative-workspace-ui-component 0.0.60 → 0.0.62

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.
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("react"),i=require("../styles/AssignLevelsDatePickerStyles.js");exports.default=function(l){var n=l.value,s=l.onSet,a=l.maxDate,u=r.useRef(null);return t.jsxs("div",e.__assign({style:i.DATE_PICKER_STYLES.wrapper,onClick:function(){var e,t;return null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t?void 0:t.call(e)}},{children:[t.jsx("span",e.__assign({style:i.DATE_PICKER_STYLES.placeholder},{children:n?n.toLocaleDateString("en-GB"):"--/--/----"})),t.jsx("input",{ref:u,type:"date",max:a?a.toISOString().split("T")[0]:void 0,style:i.DATE_PICKER_STYLES.input,value:n?n.toISOString().split("T")[0]:"",onChange:function(e){var t=e.target.value;s(t?new Date(t):null)}})]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("react"),i=require("../styles/AssignLevelsDatePickerStyles.js");exports.default=function(n){var l=n.value,s=n.onSet,a=n.maxDate,u=r.useRef(null);return t.jsxs("div",e.__assign({style:i.DATE_PICKER_STYLES.wrapper,onClick:function(){var e,t;return null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t?void 0:t.call(e)}},{children:[t.jsx("span",e.__assign({style:i.DATE_PICKER_STYLES.placeholder},{children:l?l.toLocaleDateString("en-GB"):"--/--/----"})),t.jsx("input",{ref:u,type:"date",max:a?a.toISOString().split("T")[0]:void 0,min:(new Date).toISOString().split("T")[0],style:i.DATE_PICKER_STYLES.input,value:l?l.toISOString().split("T")[0]:"",onChange:function(e){var t=e.target.value;s(t?new Date(t):null)}})]}))};
2
2
  //# sourceMappingURL=AssignLevelsDatePicker.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),r=require("react"),i=require("lucide-react");exports.default=function(n){var a=n.value,l=n.onChange,o=n.placeholder,s=void 0===o?"dd/mm/yyyy":o,u=r.useRef(null);return t.jsxs("div",e.__assign({onClick:function(){var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[t.jsx("input",{ref:u,type:"date",value:a,onChange:function(e){return l(e.target.value?new Date(e.target.value):null)},style:{position:"absolute",opacity:0,pointerEvents:"none"}}),t.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:400,color:a?"#111827":"#667085"}},{children:a?new Date(a).toLocaleDateString("en-GB"):s})),t.jsx("div",e.__assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:t.jsx(i.Calendar,{size:18,color:"#667085",strokeWidth:2})}))]}))};
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),i=require("react"),r=require("lucide-react");exports.default=function(n){var a=n.value,l=n.onChange,o=n.placeholder,s=void 0===o?"dd/mm/yyyy":o,u=i.useRef(null);return t.jsxs("div",e.__assign({onClick:function(){var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[t.jsx("input",{ref:u,type:"date",value:a,onChange:function(e){return l(e.target.value?new Date(e.target.value):null)},min:(new Date).toISOString().split("T")[0],style:{position:"absolute",opacity:0,pointerEvents:"none"}}),t.jsx("span",e.__assign({style:{fontSize:"14px",fontWeight:400,color:a?"#111827":"#667085"}},{children:a?new Date(a).toLocaleDateString("en-GB"):s})),t.jsx("div",e.__assign({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:t.jsx(r.Calendar,{size:18,color:"#667085",strokeWidth:2})}))]}))};
2
2
  //# sourceMappingURL=CustomDatePicker.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as t}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useRef as l}from"react";import{DATE_PICKER_STYLES as i}from"../styles/AssignLevelsDatePickerStyles.js";function n(n){var o=n.value,a=n.onSet,s=n.maxDate,u=l(null);return e("div",t({style:i.wrapper,onClick:function(){var t,e;return null===(e=null===(t=u.current)||void 0===t?void 0:t.showPicker)||void 0===e?void 0:e.call(t)}},{children:[r("span",t({style:i.placeholder},{children:o?o.toLocaleDateString("en-GB"):"--/--/----"})),r("input",{ref:u,type:"date",max:s?s.toISOString().split("T")[0]:void 0,style:i.input,value:o?o.toISOString().split("T")[0]:"",onChange:function(t){var e=t.target.value;a(e?new Date(e):null)}})]}))}export{n as default};
1
+ import{__assign as t}from"../../../_virtual/_tslib.js";import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useRef as i}from"react";import{DATE_PICKER_STYLES as n}from"../styles/AssignLevelsDatePickerStyles.js";function l(l){var o=l.value,a=l.onSet,s=l.maxDate,u=i(null);return e("div",t({style:n.wrapper,onClick:function(){var t,e;return null===(e=null===(t=u.current)||void 0===t?void 0:t.showPicker)||void 0===e?void 0:e.call(t)}},{children:[r("span",t({style:n.placeholder},{children:o?o.toLocaleDateString("en-GB"):"--/--/----"})),r("input",{ref:u,type:"date",max:s?s.toISOString().split("T")[0]:void 0,min:(new Date).toISOString().split("T")[0],style:n.input,value:o?o.toISOString().split("T")[0]:"",onChange:function(t){var e=t.target.value;a(e?new Date(e):null)}})]}))}export{l as default};
2
2
  //# sourceMappingURL=AssignLevelsDatePicker.js.map
@@ -1,2 +1,2 @@
1
- import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useRef as i}from"react";import{Calendar as o}from"lucide-react";function n(n){var l=n.value,a=n.onChange,d=n.placeholder,p=void 0===d?"dd/mm/yyyy":d,u=i(null);return t("div",e({onClick:function(){var e,t;null===(t=null===(e=u.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[r("input",{ref:u,type:"date",value:l,onChange:function(e){return a(e.target.value?new Date(e.target.value):null)},style:{position:"absolute",opacity:0,pointerEvents:"none"}}),r("span",e({style:{fontSize:"14px",fontWeight:400,color:l?"#111827":"#667085"}},{children:l?new Date(l).toLocaleDateString("en-GB"):p})),r("div",e({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:r(o,{size:18,color:"#667085",strokeWidth:2})}))]}))}export{n as default};
1
+ import{__assign as e}from"../../../_virtual/_tslib.js";import{jsxs as t,jsx as i}from"react/jsx-runtime";import{useRef as r}from"react";import{Calendar as o}from"lucide-react";function n(n){var l=n.value,a=n.onChange,d=n.placeholder,p=void 0===d?"dd/mm/yyyy":d,s=r(null);return t("div",e({onClick:function(){var e,t;null===(t=null===(e=s.current)||void 0===e?void 0:e.showPicker)||void 0===t||t.call(e)},style:{position:"relative",width:"100%",height:"35px",padding:"0 12px",borderRadius:"12px",background:"#F3F4F6",border:"1px solid #C7CDD5",display:"flex",gap:60,alignItems:"center",cursor:"pointer",boxSizing:"border-box"}},{children:[i("input",{ref:s,type:"date",value:l,onChange:function(e){return a(e.target.value?new Date(e.target.value):null)},min:(new Date).toISOString().split("T")[0],style:{position:"absolute",opacity:0,pointerEvents:"none"}}),i("span",e({style:{fontSize:"14px",fontWeight:400,color:l?"#111827":"#667085"}},{children:l?new Date(l).toLocaleDateString("en-GB"):p})),i("div",e({style:{marginLeft:"auto",display:"flex",alignItems:"center",gap:"6px"}},{children:i(o,{size:18,color:"#667085",strokeWidth:2})}))]}))}export{n as default};
2
2
  //# sourceMappingURL=CustomDatePicker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AssignLevelsDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AssignLevelsDatePicker.tsx"],"names":[],"mappings":";AAIA,iBAAS,qBAAqB,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,OAAO,EACR,EAAE;IACD,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,+BA2BA;AAED,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"AssignLevelsDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/AssignLevelsDatePicker.tsx"],"names":[],"mappings":";AAIA,iBAAS,qBAAqB,CAAC,EAC7B,KAAK,EACL,KAAK,EACL,OAAO,EACR,EAAE;IACD,KAAK,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,CAAC,GAAG,EAAE,IAAI,GAAG,IAAI,KAAK,IAAI,CAAC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;CACtB,+BA4BA;AAED,eAAe,qBAAqB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/CustomDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,UAAU,qBAAqB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,WAA0B,GAC7B,EAAE,qBAAqB,qBAsEvB"}
1
+ {"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../../../../src/components/AssignReminders/components/CustomDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAGtC,UAAU,qBAAqB;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC,CAAC,CAAC;IAC5D,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAMD,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACrC,KAAK,EACL,QAAQ,EACR,WAA0B,GAC7B,EAAE,qBAAqB,qBAwEvB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viswa-test/creative-workspace-ui-component",
3
- "version": "0.0.60",
3
+ "version": "0.0.62",
4
4
  "author": "Viswa Koduru",
5
5
  "description": "",
6
6
  "license": "MIT",