dhanasekar-ui 1.2.0 → 1.4.0
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/chunk-2CO3UUBT.js +170 -0
- package/dist/chunk-2CO3UUBT.js.map +1 -0
- package/dist/chunk-3HGMPMXD.js +61 -0
- package/dist/chunk-3HGMPMXD.js.map +1 -0
- package/dist/chunk-46U234GX.mjs +42 -0
- package/dist/chunk-46U234GX.mjs.map +1 -0
- package/dist/chunk-5FU43BWK.mjs +121 -0
- package/dist/chunk-5FU43BWK.mjs.map +1 -0
- package/dist/chunk-7XVF6WPJ.js +108 -0
- package/dist/chunk-7XVF6WPJ.js.map +1 -0
- package/dist/{chunk-GNMGJBBO.mjs → chunk-AK3NQBYU.mjs} +3 -3
- package/dist/chunk-AK3NQBYU.mjs.map +1 -0
- package/dist/chunk-ALCHPZY6.js +149 -0
- package/dist/chunk-ALCHPZY6.js.map +1 -0
- package/dist/chunk-BNBEIMM2.mjs +61 -0
- package/dist/chunk-BNBEIMM2.mjs.map +1 -0
- package/dist/chunk-BQVXQWPS.mjs +129 -0
- package/dist/chunk-BQVXQWPS.mjs.map +1 -0
- package/dist/chunk-DBSBLGGH.js +40 -0
- package/dist/chunk-DBSBLGGH.js.map +1 -0
- package/dist/chunk-DVDVLGDJ.js +121 -0
- package/dist/chunk-DVDVLGDJ.js.map +1 -0
- package/dist/chunk-EN76JE3Y.js +64 -0
- package/dist/chunk-EN76JE3Y.js.map +1 -0
- package/dist/chunk-FLTDFXE3.mjs +170 -0
- package/dist/chunk-FLTDFXE3.mjs.map +1 -0
- package/dist/chunk-GSRVWW2G.mjs +177 -0
- package/dist/chunk-GSRVWW2G.mjs.map +1 -0
- package/dist/chunk-GZGTDLFV.js +72 -0
- package/dist/chunk-GZGTDLFV.js.map +1 -0
- package/dist/chunk-HGGQFNUJ.mjs +2 -0
- package/dist/chunk-HGGQFNUJ.mjs.map +1 -0
- package/dist/chunk-HWD2HCCH.js +129 -0
- package/dist/chunk-HWD2HCCH.js.map +1 -0
- package/dist/chunk-I6OJHQZX.mjs +2 -0
- package/dist/chunk-I6OJHQZX.mjs.map +1 -0
- package/dist/chunk-ISHUTZ36.js +42 -0
- package/dist/chunk-ISHUTZ36.js.map +1 -0
- package/dist/chunk-JC4TJWCY.mjs +97 -0
- package/dist/chunk-JC4TJWCY.mjs.map +1 -0
- package/dist/chunk-JM6DZDO3.js +87 -0
- package/dist/chunk-JM6DZDO3.js.map +1 -0
- package/dist/chunk-KUXDQANJ.mjs +72 -0
- package/dist/chunk-KUXDQANJ.mjs.map +1 -0
- package/dist/chunk-LIBHUJ27.js +2 -0
- package/dist/chunk-LIBHUJ27.js.map +1 -0
- package/dist/chunk-MALTBURB.mjs +64 -0
- package/dist/chunk-MALTBURB.mjs.map +1 -0
- package/dist/chunk-MLURKSJZ.js +2 -0
- package/dist/chunk-MLURKSJZ.js.map +1 -0
- package/dist/chunk-MOC6N23X.mjs +151 -0
- package/dist/chunk-MOC6N23X.mjs.map +1 -0
- package/dist/chunk-P5HHRCE5.js +198 -0
- package/dist/chunk-P5HHRCE5.js.map +1 -0
- package/dist/chunk-PL2R3LYL.mjs +198 -0
- package/dist/chunk-PL2R3LYL.mjs.map +1 -0
- package/dist/chunk-PPQ7NSV3.js +97 -0
- package/dist/chunk-PPQ7NSV3.js.map +1 -0
- package/dist/chunk-T3YOHFUU.js +177 -0
- package/dist/chunk-T3YOHFUU.js.map +1 -0
- package/dist/chunk-UCFS7EH2.mjs +40 -0
- package/dist/chunk-UCFS7EH2.mjs.map +1 -0
- package/dist/chunk-ULMQZANW.mjs +87 -0
- package/dist/chunk-ULMQZANW.mjs.map +1 -0
- package/dist/chunk-UYHBKE7G.mjs +108 -0
- package/dist/chunk-UYHBKE7G.mjs.map +1 -0
- package/dist/chunk-W5B5N6BW.mjs +149 -0
- package/dist/chunk-W5B5N6BW.mjs.map +1 -0
- package/dist/{chunk-6SVKDKK7.mjs → chunk-XWEEWNZK.mjs} +4 -4
- package/dist/chunk-XWEEWNZK.mjs.map +1 -0
- package/dist/{chunk-3RAQQWLW.js → chunk-YPMUFP2I.js} +4 -4
- package/dist/chunk-YPMUFP2I.js.map +1 -0
- package/dist/chunk-ZMB4U5RP.js +151 -0
- package/dist/chunk-ZMB4U5RP.js.map +1 -0
- package/dist/{chunk-2TXYJ7YE.js → chunk-ZPJSBORX.js} +3 -3
- package/dist/chunk-ZPJSBORX.js.map +1 -0
- package/dist/components/AppBar/index.d.mts +89 -0
- package/dist/components/AppBar/index.d.ts +89 -0
- package/dist/components/AppBar/index.js +2 -0
- package/dist/components/AppBar/index.js.map +1 -0
- package/dist/components/AppBar/index.mjs +2 -0
- package/dist/components/AppBar/index.mjs.map +1 -0
- package/dist/components/Box/index.d.mts +28 -0
- package/dist/components/Box/index.d.ts +28 -0
- package/dist/components/Box/index.js +2 -0
- package/dist/components/Box/index.js.map +1 -0
- package/dist/components/Box/index.mjs +2 -0
- package/dist/components/Box/index.mjs.map +1 -0
- package/dist/components/Container/index.d.mts +71 -0
- package/dist/components/Container/index.d.ts +71 -0
- package/dist/components/Container/index.js +2 -0
- package/dist/components/Container/index.js.map +1 -0
- package/dist/components/Container/index.mjs +2 -0
- package/dist/components/Container/index.mjs.map +1 -0
- package/dist/components/DateFilter/index.d.mts +8 -1
- package/dist/components/DateFilter/index.d.ts +8 -1
- package/dist/components/DateFilter/index.js +1 -1
- package/dist/components/DateFilter/index.mjs +1 -1
- package/dist/components/FileUploadField/index.d.mts +4 -2
- package/dist/components/FileUploadField/index.d.ts +4 -2
- package/dist/components/FileUploadField/index.js +1 -1
- package/dist/components/FileUploadField/index.mjs +1 -1
- package/dist/components/FormLayout/index.d.mts +8 -2
- package/dist/components/FormLayout/index.d.ts +8 -2
- package/dist/components/FormLayout/index.js +1 -1
- package/dist/components/FormLayout/index.mjs +1 -1
- package/dist/components/Grid/index.d.mts +48 -0
- package/dist/components/Grid/index.d.ts +48 -0
- package/dist/components/Grid/index.js +2 -0
- package/dist/components/Grid/index.js.map +1 -0
- package/dist/components/Grid/index.mjs +2 -0
- package/dist/components/Grid/index.mjs.map +1 -0
- package/dist/components/List/index.d.mts +98 -0
- package/dist/components/List/index.d.ts +98 -0
- package/dist/components/List/index.js +2 -0
- package/dist/components/List/index.js.map +1 -0
- package/dist/components/List/index.mjs +2 -0
- package/dist/components/List/index.mjs.map +1 -0
- package/dist/components/Navigator/index.d.mts +87 -0
- package/dist/components/Navigator/index.d.ts +87 -0
- package/dist/components/Navigator/index.js +2 -0
- package/dist/components/Navigator/index.js.map +1 -0
- package/dist/components/Navigator/index.mjs +2 -0
- package/dist/components/Navigator/index.mjs.map +1 -0
- package/dist/components/Pagination/index.d.mts +89 -0
- package/dist/components/Pagination/index.d.ts +89 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/Pagination/index.mjs +2 -0
- package/dist/components/Pagination/index.mjs.map +1 -0
- package/dist/components/PdfImageUpload/index.d.mts +30 -0
- package/dist/components/PdfImageUpload/index.d.ts +30 -0
- package/dist/components/PdfImageUpload/index.js +2 -0
- package/dist/components/PdfImageUpload/index.js.map +1 -0
- package/dist/components/PdfImageUpload/index.mjs +2 -0
- package/dist/components/PdfImageUpload/index.mjs.map +1 -0
- package/dist/components/Progress/index.d.mts +52 -0
- package/dist/components/Progress/index.d.ts +52 -0
- package/dist/components/Progress/index.js +2 -0
- package/dist/components/Progress/index.js.map +1 -0
- package/dist/components/Progress/index.mjs +2 -0
- package/dist/components/Progress/index.mjs.map +1 -0
- package/dist/components/RadioGroup/index.d.mts +99 -0
- package/dist/components/RadioGroup/index.d.ts +99 -0
- package/dist/components/RadioGroup/index.js +2 -0
- package/dist/components/RadioGroup/index.js.map +1 -0
- package/dist/components/RadioGroup/index.mjs +2 -0
- package/dist/components/RadioGroup/index.mjs.map +1 -0
- package/dist/components/Skeleton/index.d.mts +45 -0
- package/dist/components/Skeleton/index.d.ts +45 -0
- package/dist/components/Skeleton/index.js +2 -0
- package/dist/components/Skeleton/index.js.map +1 -0
- package/dist/components/Skeleton/index.mjs +2 -0
- package/dist/components/Skeleton/index.mjs.map +1 -0
- package/dist/components/Slider/index.d.mts +181 -0
- package/dist/components/Slider/index.d.ts +181 -0
- package/dist/components/Slider/index.js +2 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/Slider/index.mjs +2 -0
- package/dist/components/Slider/index.mjs.map +1 -0
- package/dist/components/Snackbar/index.d.mts +80 -0
- package/dist/components/Snackbar/index.d.ts +80 -0
- package/dist/components/Snackbar/index.js +2 -0
- package/dist/components/Snackbar/index.js.map +1 -0
- package/dist/components/Snackbar/index.mjs +2 -0
- package/dist/components/Snackbar/index.mjs.map +1 -0
- package/dist/components/Text/index.d.mts +2 -1
- package/dist/components/Text/index.d.ts +2 -1
- package/dist/components/ToolBar/index.d.mts +60 -0
- package/dist/components/ToolBar/index.d.ts +60 -0
- package/dist/components/ToolBar/index.js +2 -0
- package/dist/components/ToolBar/index.js.map +1 -0
- package/dist/components/ToolBar/index.mjs +2 -0
- package/dist/components/ToolBar/index.mjs.map +1 -0
- package/dist/components/Tray/index.d.mts +140 -0
- package/dist/components/Tray/index.d.ts +140 -0
- package/dist/components/Tray/index.js +2 -0
- package/dist/components/Tray/index.js.map +1 -0
- package/dist/components/Tray/index.mjs +2 -0
- package/dist/components/Tray/index.mjs.map +1 -0
- package/dist/index.d.mts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types-BJWJOB_w.d.mts +5 -0
- package/dist/types-BJWJOB_w.d.ts +5 -0
- package/package.json +84 -2
- package/dist/chunk-2TXYJ7YE.js.map +0 -1
- package/dist/chunk-3RAQQWLW.js.map +0 -1
- package/dist/chunk-6SVKDKK7.mjs.map +0 -1
- package/dist/chunk-GNMGJBBO.mjs.map +0 -1
- package/dist/chunk-ZEMR63S4.js +0 -198
- package/dist/chunk-ZEMR63S4.js.map +0 -1
- package/dist/chunk-ZY5AHZYZ.mjs +0 -198
- package/dist/chunk-ZY5AHZYZ.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
'use strict';var react=require('react'),jsxRuntime=require('react/jsx-runtime');var
|
|
1
|
+
'use strict';var chunkMLURKSJZ_js=require('./chunk-MLURKSJZ.js'),react=require('react'),jsxRuntime=require('react/jsx-runtime');var T=`
|
|
2
2
|
:root {
|
|
3
3
|
--df-primary: #3b82f6;
|
|
4
4
|
--df-primary-hover: #2563eb;
|
|
@@ -197,5 +197,5 @@
|
|
|
197
197
|
body.df-modal-open {
|
|
198
198
|
overflow: hidden;
|
|
199
199
|
}
|
|
200
|
-
`,
|
|
201
|
-
//# sourceMappingURL=chunk-
|
|
200
|
+
`,C=["Today","Yesterday","Last 7 Days","Last 30 Days","This Month","Last Month","Custom"],M=({open:r,title:g="Date Filter",options:u=C,initialValue:t,onClose:d,onApply:v,sx:y,style:h,className:w=""})=>{let[s,f]=react.useState(t?.option||"Today"),[n,p]=react.useState(t?.from||""),[c,b]=react.useState(t?.to||""),m=react.useRef(null);react.useEffect(()=>{r&&t&&(f(t.option),p(t.from||""),b(t.to||""));},[r,t]),react.useEffect(()=>(r?document.body.classList.add("df-modal-open"):document.body.classList.remove("df-modal-open"),()=>document.body.classList.remove("df-modal-open")),[r]);let k=e=>{e.target===m.current&&d();};react.useEffect(()=>{let e=S=>{S.key==="Escape"&&r&&d();};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[r,d]);let N=()=>{v({option:s,...s==="Custom"?{from:n,to:c}:{}});},D=new Date().toISOString().split("T")[0];return jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx("style",{dangerouslySetInnerHTML:{__html:T}}),jsxRuntime.jsx("div",{ref:m,className:`df-backdrop ${r?"df-open":""} ${w}`,onClick:k,role:"dialog","aria-modal":"true","aria-labelledby":"df-dialog-title",style:{...chunkMLURKSJZ_js.a(y),...h},children:jsxRuntime.jsxs("div",{className:"df-dialog",children:[jsxRuntime.jsx("div",{className:"df-header",children:jsxRuntime.jsx("h2",{id:"df-dialog-title",className:"df-title",children:g})}),jsxRuntime.jsxs("div",{className:"df-content",children:[jsxRuntime.jsxs("div",{className:"df-form-group",children:[jsxRuntime.jsx("label",{className:"df-label",children:"Select Range"}),jsxRuntime.jsx("div",{className:"df-select-wrapper",children:jsxRuntime.jsx("select",{className:"df-input df-select",value:s,onChange:e=>f(e.target.value),children:u.map(e=>jsxRuntime.jsx("option",{value:e,children:e},e))})})]}),s==="Custom"&&jsxRuntime.jsxs("div",{className:"df-custom-range",children:[jsxRuntime.jsxs("div",{className:"df-form-group",children:[jsxRuntime.jsx("label",{className:"df-label",children:"From Date"}),jsxRuntime.jsx("input",{type:"date",className:"df-input",value:n,onChange:e=>p(e.target.value),max:D})]}),jsxRuntime.jsxs("div",{className:"df-form-group",children:[jsxRuntime.jsx("label",{className:"df-label",children:"To Date"}),jsxRuntime.jsx("input",{type:"date",className:"df-input",value:c,onChange:e=>b(e.target.value),min:n||void 0})]})]})]}),jsxRuntime.jsxs("div",{className:"df-footer",children:[jsxRuntime.jsx("button",{className:"df-btn df-btn-cancel",onClick:d,children:"Cancel"}),jsxRuntime.jsx("button",{className:"df-btn df-btn-apply",onClick:N,children:"Apply"})]})]})})]})};exports.a=M;//# sourceMappingURL=chunk-ZPJSBORX.js.map
|
|
201
|
+
//# sourceMappingURL=chunk-ZPJSBORX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/DateFilter/DateFilter.tsx"],"names":["STYLES","DEFAULT_OPTIONS","DateFilter","open","title","options","initialValue","onClose","onApply","sx","style","className","option","setOption","useState","from","setFrom","to","setTo","backdropRef","useRef","useEffect","handleBackdropClick","handleKeyDown","e","handleApply","todayStr","jsxs","Fragment","jsx","handleSx","opt"],"mappings":"oIAMMA,CAAAA,CAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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,EAAQ,MAAA,CACf,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CAEJ,CAAA,CAEAY,gBAAC,KAAA,CAAA,CAAI,SAAA,CAAU,YACb,QAAA,CAAA,CAAAE,cAAAA,CAAC,UAAO,SAAA,CAAU,sBAAA,CAAuB,OAAA,CAAStB,CAAAA,CAAS,QAAA,CAAA,QAAA,CAE3D,CAAA,CACAsB,eAAC,QAAA,CAAA,CAAO,SAAA,CAAU,sBAAsB,OAAA,CAASJ,CAAAA,CAAa,iBAE9D,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CACF,CAAA,CAAA,CACF,CAEJ","file":"chunk-ZPJSBORX.js","sourcesContent":["'use client';\n\nimport React, { useState, useEffect, useRef } from 'react';\nimport { handleSx } from '../../utils/handleSx';\nimport { DateFilterProps, DateFilterValue } from './DateFilter.types';\n\nconst STYLES = `\n :root {\n --df-primary: #3b82f6;\n --df-primary-hover: #2563eb;\n --df-text-main: #1e293b;\n --df-text-secondary: #64748b;\n --df-bg-main: #ffffff;\n --df-bg-glass: rgba(255, 255, 255, 0.85);\n --df-border: #e2e8f0;\n --df-border-focus: #3b82f6;\n --df-radius-lg: 12px;\n --df-radius-md: 8px;\n --df-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);\n }\n\n .df-backdrop {\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background: rgba(15, 23, 42, 0.4);\n backdrop-filter: blur(4px);\n display: flex;\n align-items: center;\n justify-content: center;\n z-index: 1000;\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.3s ease, visibility 0.3s ease;\n }\n\n .df-backdrop.df-open {\n opacity: 1;\n visibility: visible;\n }\n\n .df-dialog {\n background: var(--df-bg-glass);\n backdrop-filter: blur(16px);\n width: 100%;\n max-width: 400px;\n border-radius: var(--df-radius-lg);\n box-shadow: var(--df-shadow);\n display: flex;\n flex-direction: column;\n transform: scale(0.95) translateY(10px);\n opacity: 0;\n transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;\n font-family: 'Inter', system-ui, -apple-system, sans-serif;\n border: 1px solid rgba(255, 255, 255, 0.5);\n margin: 16px;\n }\n\n .df-backdrop.df-open .df-dialog {\n transform: scale(1) translateY(0);\n opacity: 1;\n }\n\n .df-header {\n padding: 20px 24px 16px;\n border-bottom: 1px solid var(--df-border);\n }\n\n .df-title {\n margin: 0;\n font-size: 18px;\n font-weight: 600;\n color: var(--df-primary);\n }\n\n .df-content {\n padding: 24px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n }\n\n .df-form-group {\n display: flex;\n flex-direction: column;\n gap: 8px;\n position: relative;\n }\n\n .df-label {\n font-size: 13px;\n font-weight: 500;\n color: var(--df-text-secondary);\n }\n\n .df-input {\n width: 100%;\n padding: 10px 14px;\n font-size: 14px;\n color: var(--df-text-main);\n background: var(--df-bg-main);\n border: 1px solid var(--df-border);\n border-radius: var(--df-radius-md);\n outline: none;\n transition: all 0.2s ease;\n box-sizing: border-box;\n appearance: none;\n font-family: inherit;\n }\n\n .df-input:focus {\n border-color: var(--df-border-focus);\n box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);\n }\n\n /* Custom Select Wrapper for arrow */\n .df-select-wrapper {\n position: relative;\n width: 100%;\n }\n\n .df-select-wrapper::after {\n content: '';\n position: absolute;\n right: 14px;\n top: 50%;\n transform: translateY(-50%);\n width: 0;\n height: 0;\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: 5px solid var(--df-text-secondary);\n pointer-events: none;\n }\n\n .df-select {\n padding-right: 32px;\n cursor: pointer;\n }\n\n .df-custom-range {\n display: flex;\n gap: 16px;\n animation: dfSlideDown 0.3s ease-out;\n }\n\n .df-custom-range .df-form-group {\n flex: 1;\n }\n\n @keyframes dfSlideDown {\n from { opacity: 0; transform: translateY(-10px); }\n to { opacity: 1; transform: translateY(0); }\n }\n\n .df-footer {\n padding: 16px 24px 24px;\n display: flex;\n justify-content: flex-end;\n gap: 12px;\n }\n\n .df-btn {\n padding: 8px 16px;\n font-size: 14px;\n font-weight: 600;\n border-radius: var(--df-radius-md);\n cursor: pointer;\n transition: all 0.2s ease;\n border: 1px solid transparent;\n font-family: inherit;\n }\n\n .df-btn-cancel {\n background: transparent;\n color: var(--df-text-secondary);\n }\n\n .df-btn-cancel:hover {\n background: rgba(0, 0, 0, 0.04);\n color: var(--df-text-main);\n }\n\n .df-btn-apply {\n background: var(--df-primary);\n color: white;\n box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);\n }\n\n .df-btn-apply:hover {\n background: var(--df-primary-hover);\n transform: translateY(-1px);\n box-shadow: 0 4px 6px rgba(59, 130, 246, 0.4);\n }\n\n .df-btn-apply:active {\n transform: translateY(0);\n }\n \n /* Prevent background scrolling when modal is open */\n body.df-modal-open {\n overflow: hidden;\n }\n`;\n\nconst DEFAULT_OPTIONS = [\n 'Today',\n 'Yesterday',\n 'Last 7 Days',\n 'Last 30 Days',\n 'This Month',\n 'Last Month',\n 'Custom'\n];\n\nexport const DateFilter = ({\n open,\n title = 'Date Filter',\n options = DEFAULT_OPTIONS,\n initialValue,\n onClose,\n onApply,\n sx,\n style,\n className = '',\n}: DateFilterProps) => {\n const [option, setOption] = useState<string>(initialValue?.option || 'Today');\n const [from, setFrom] = useState<string>(initialValue?.from || '');\n const [to, setTo] = useState<string>(initialValue?.to || '');\n \n const backdropRef = useRef<HTMLDivElement>(null);\n\n // Sync state with prop if it changes\n useEffect(() => {\n if (open && initialValue) {\n setOption(initialValue.option);\n setFrom(initialValue.from || '');\n setTo(initialValue.to || '');\n }\n }, [open, initialValue]);\n\n // Handle body scroll locking\n useEffect(() => {\n if (open) {\n document.body.classList.add('df-modal-open');\n } else {\n document.body.classList.remove('df-modal-open');\n }\n return () => document.body.classList.remove('df-modal-open');\n }, [open]);\n\n // Handle click outside\n const handleBackdropClick = (e: React.MouseEvent) => {\n if (e.target === backdropRef.current) {\n onClose();\n }\n };\n\n // Handle Escape key\n useEffect(() => {\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Escape' && open) {\n onClose();\n }\n };\n window.addEventListener('keydown', handleKeyDown);\n return () => window.removeEventListener('keydown', handleKeyDown);\n }, [open, onClose]);\n\n const handleApply = () => {\n onApply({\n option,\n ...(option === 'Custom' ? { from, to } : {})\n });\n };\n\n const todayStr = new Date().toISOString().split('T')[0];\n\n return (\n <>\n <style dangerouslySetInnerHTML={{ __html: STYLES }} />\n <div \n ref={backdropRef}\n className={`df-backdrop ${open ? 'df-open' : ''} ${className}`}\n onClick={handleBackdropClick}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"df-dialog-title\"\n style={{ ...handleSx(sx), ...style }}\n >\n <div className=\"df-dialog\">\n <div className=\"df-header\">\n <h2 id=\"df-dialog-title\" className=\"df-title\">{title}</h2>\n </div>\n \n <div className=\"df-content\">\n <div className=\"df-form-group\">\n <label className=\"df-label\">Select Range</label>\n <div className=\"df-select-wrapper\">\n <select \n className=\"df-input df-select\"\n value={option}\n onChange={(e) => setOption(e.target.value)}\n >\n {options.map((opt) => (\n <option key={opt} value={opt}>{opt}</option>\n ))}\n </select>\n </div>\n </div>\n\n {option === 'Custom' && (\n <div className=\"df-custom-range\">\n <div className=\"df-form-group\">\n <label className=\"df-label\">From Date</label>\n <input \n type=\"date\"\n className=\"df-input\"\n value={from}\n onChange={(e) => setFrom(e.target.value)}\n max={todayStr}\n />\n </div>\n <div className=\"df-form-group\">\n <label className=\"df-label\">To Date</label>\n <input \n type=\"date\"\n className=\"df-input\"\n value={to}\n onChange={(e) => setTo(e.target.value)}\n min={from || undefined}\n />\n </div>\n </div>\n )}\n </div>\n\n <div className=\"df-footer\">\n <button className=\"df-btn df-btn-cancel\" onClick={onClose}>\n Cancel\n </button>\n <button className=\"df-btn df-btn-apply\" onClick={handleApply}>\n Apply\n </button>\n </div>\n </div>\n </div>\n </>\n );\n};\n"]}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { S as SxProp } from '../../types-BJWJOB_w.mjs';
|
|
4
|
+
|
|
5
|
+
interface AppBarClasses {
|
|
6
|
+
/** Styles applied to the root element. */
|
|
7
|
+
root?: string;
|
|
8
|
+
/** Styles applied to the root element if `position="fixed"`. */
|
|
9
|
+
positionFixed?: string;
|
|
10
|
+
/** Styles applied to the root element if `position="absolute"`. */
|
|
11
|
+
positionAbsolute?: string;
|
|
12
|
+
/** Styles applied to the root element if `position="sticky"`. */
|
|
13
|
+
positionSticky?: string;
|
|
14
|
+
/** Styles applied to the root element if `position="static"`. */
|
|
15
|
+
positionStatic?: string;
|
|
16
|
+
/** Styles applied to the root element if `position="relative"`. */
|
|
17
|
+
positionRelative?: string;
|
|
18
|
+
/** Styles applied to the root element if `color="default"`. */
|
|
19
|
+
colorDefault?: string;
|
|
20
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
21
|
+
colorPrimary?: string;
|
|
22
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
23
|
+
colorSecondary?: string;
|
|
24
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
25
|
+
colorInherit?: string;
|
|
26
|
+
/** Styles applied to the root element if `color="transparent"`. */
|
|
27
|
+
colorTransparent?: string;
|
|
28
|
+
/** Styles applied to the root element if `color="error"`. */
|
|
29
|
+
colorError?: string;
|
|
30
|
+
/** Styles applied to the root element if `color="info"`. */
|
|
31
|
+
colorInfo?: string;
|
|
32
|
+
/** Styles applied to the root element if `color="success"`. */
|
|
33
|
+
colorSuccess?: string;
|
|
34
|
+
/** Styles applied to the root element if `color="warning"`. */
|
|
35
|
+
colorWarning?: string;
|
|
36
|
+
}
|
|
37
|
+
interface AppBarBaseProps {
|
|
38
|
+
/**
|
|
39
|
+
* The content of the component.
|
|
40
|
+
*/
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Override or extend the styles applied to the component.
|
|
44
|
+
*/
|
|
45
|
+
classes?: AppBarClasses;
|
|
46
|
+
/**
|
|
47
|
+
* The color of the component. It supports both default and custom theme colors.
|
|
48
|
+
* @default 'primary'
|
|
49
|
+
*/
|
|
50
|
+
color?: 'default' | 'inherit' | 'primary' | 'secondary' | 'transparent' | 'error' | 'info' | 'success' | 'warning' | string;
|
|
51
|
+
/**
|
|
52
|
+
* Shadow depth, corresponds to dp in the spec. It accepts values between 0 and 24 inclusive.
|
|
53
|
+
* @default 4
|
|
54
|
+
*/
|
|
55
|
+
elevation?: number;
|
|
56
|
+
/**
|
|
57
|
+
* If true, the color prop is applied in dark mode.
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
enableColorOnDark?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The positioning type.
|
|
63
|
+
* @default 'fixed'
|
|
64
|
+
*/
|
|
65
|
+
position?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
66
|
+
/**
|
|
67
|
+
* If false, rounded corners are enabled.
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
square?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
73
|
+
*/
|
|
74
|
+
sx?: SxProp;
|
|
75
|
+
/**
|
|
76
|
+
* Additional CSS class names.
|
|
77
|
+
*/
|
|
78
|
+
className?: string;
|
|
79
|
+
}
|
|
80
|
+
type AppBarProps<T extends ElementType = 'header'> = AppBarBaseProps & Omit<ComponentPropsWithoutRef<T>, keyof AppBarBaseProps | 'component'> & {
|
|
81
|
+
component?: T;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The AppBar displays information and actions relating to the current screen.
|
|
86
|
+
*/
|
|
87
|
+
declare const AppBar: react.ForwardRefExoticComponent<Omit<AppBarProps<ElementType>, "ref"> & react.RefAttributes<unknown>>;
|
|
88
|
+
|
|
89
|
+
export { AppBar, type AppBarBaseProps, type AppBarClasses, type AppBarProps, SxProp };
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { S as SxProp } from '../../types-BJWJOB_w.js';
|
|
4
|
+
|
|
5
|
+
interface AppBarClasses {
|
|
6
|
+
/** Styles applied to the root element. */
|
|
7
|
+
root?: string;
|
|
8
|
+
/** Styles applied to the root element if `position="fixed"`. */
|
|
9
|
+
positionFixed?: string;
|
|
10
|
+
/** Styles applied to the root element if `position="absolute"`. */
|
|
11
|
+
positionAbsolute?: string;
|
|
12
|
+
/** Styles applied to the root element if `position="sticky"`. */
|
|
13
|
+
positionSticky?: string;
|
|
14
|
+
/** Styles applied to the root element if `position="static"`. */
|
|
15
|
+
positionStatic?: string;
|
|
16
|
+
/** Styles applied to the root element if `position="relative"`. */
|
|
17
|
+
positionRelative?: string;
|
|
18
|
+
/** Styles applied to the root element if `color="default"`. */
|
|
19
|
+
colorDefault?: string;
|
|
20
|
+
/** Styles applied to the root element if `color="primary"`. */
|
|
21
|
+
colorPrimary?: string;
|
|
22
|
+
/** Styles applied to the root element if `color="secondary"`. */
|
|
23
|
+
colorSecondary?: string;
|
|
24
|
+
/** Styles applied to the root element if `color="inherit"`. */
|
|
25
|
+
colorInherit?: string;
|
|
26
|
+
/** Styles applied to the root element if `color="transparent"`. */
|
|
27
|
+
colorTransparent?: string;
|
|
28
|
+
/** Styles applied to the root element if `color="error"`. */
|
|
29
|
+
colorError?: string;
|
|
30
|
+
/** Styles applied to the root element if `color="info"`. */
|
|
31
|
+
colorInfo?: string;
|
|
32
|
+
/** Styles applied to the root element if `color="success"`. */
|
|
33
|
+
colorSuccess?: string;
|
|
34
|
+
/** Styles applied to the root element if `color="warning"`. */
|
|
35
|
+
colorWarning?: string;
|
|
36
|
+
}
|
|
37
|
+
interface AppBarBaseProps {
|
|
38
|
+
/**
|
|
39
|
+
* The content of the component.
|
|
40
|
+
*/
|
|
41
|
+
children?: ReactNode;
|
|
42
|
+
/**
|
|
43
|
+
* Override or extend the styles applied to the component.
|
|
44
|
+
*/
|
|
45
|
+
classes?: AppBarClasses;
|
|
46
|
+
/**
|
|
47
|
+
* The color of the component. It supports both default and custom theme colors.
|
|
48
|
+
* @default 'primary'
|
|
49
|
+
*/
|
|
50
|
+
color?: 'default' | 'inherit' | 'primary' | 'secondary' | 'transparent' | 'error' | 'info' | 'success' | 'warning' | string;
|
|
51
|
+
/**
|
|
52
|
+
* Shadow depth, corresponds to dp in the spec. It accepts values between 0 and 24 inclusive.
|
|
53
|
+
* @default 4
|
|
54
|
+
*/
|
|
55
|
+
elevation?: number;
|
|
56
|
+
/**
|
|
57
|
+
* If true, the color prop is applied in dark mode.
|
|
58
|
+
* @default false
|
|
59
|
+
*/
|
|
60
|
+
enableColorOnDark?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The positioning type.
|
|
63
|
+
* @default 'fixed'
|
|
64
|
+
*/
|
|
65
|
+
position?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';
|
|
66
|
+
/**
|
|
67
|
+
* If false, rounded corners are enabled.
|
|
68
|
+
* @default true
|
|
69
|
+
*/
|
|
70
|
+
square?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
73
|
+
*/
|
|
74
|
+
sx?: SxProp;
|
|
75
|
+
/**
|
|
76
|
+
* Additional CSS class names.
|
|
77
|
+
*/
|
|
78
|
+
className?: string;
|
|
79
|
+
}
|
|
80
|
+
type AppBarProps<T extends ElementType = 'header'> = AppBarBaseProps & Omit<ComponentPropsWithoutRef<T>, keyof AppBarBaseProps | 'component'> & {
|
|
81
|
+
component?: T;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* The AppBar displays information and actions relating to the current screen.
|
|
86
|
+
*/
|
|
87
|
+
declare const AppBar: react.ForwardRefExoticComponent<Omit<AppBarProps<ElementType>, "ref"> & react.RefAttributes<unknown>>;
|
|
88
|
+
|
|
89
|
+
export { AppBar, type AppBarBaseProps, type AppBarClasses, type AppBarProps, SxProp };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { S as SxProp } from '../../types-BJWJOB_w.mjs';
|
|
4
|
+
|
|
5
|
+
interface BoxBaseProps<T extends ElementType = 'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
8
|
+
* @default 'div'
|
|
9
|
+
*/
|
|
10
|
+
component?: T;
|
|
11
|
+
/**
|
|
12
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
13
|
+
*/
|
|
14
|
+
sx?: SxProp;
|
|
15
|
+
/**
|
|
16
|
+
* Additional CSS class names.
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
type BoxProps<T extends ElementType = 'div'> = BoxBaseProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof BoxBaseProps<T>>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Box is a basic building block component that provides a way to render any HTML element
|
|
24
|
+
* and apply styles using the sx prop.
|
|
25
|
+
*/
|
|
26
|
+
declare const Box: react.ForwardRefExoticComponent<Omit<BoxProps<ElementType>, "ref"> & react.RefAttributes<unknown>>;
|
|
27
|
+
|
|
28
|
+
export { Box, type BoxBaseProps, type BoxProps, SxProp };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { S as SxProp } from '../../types-BJWJOB_w.js';
|
|
4
|
+
|
|
5
|
+
interface BoxBaseProps<T extends ElementType = 'div'> {
|
|
6
|
+
/**
|
|
7
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
8
|
+
* @default 'div'
|
|
9
|
+
*/
|
|
10
|
+
component?: T;
|
|
11
|
+
/**
|
|
12
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
13
|
+
*/
|
|
14
|
+
sx?: SxProp;
|
|
15
|
+
/**
|
|
16
|
+
* Additional CSS class names.
|
|
17
|
+
*/
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
type BoxProps<T extends ElementType = 'div'> = BoxBaseProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof BoxBaseProps<T>>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Box is a basic building block component that provides a way to render any HTML element
|
|
24
|
+
* and apply styles using the sx prop.
|
|
25
|
+
*/
|
|
26
|
+
declare const Box: react.ForwardRefExoticComponent<Omit<BoxProps<ElementType>, "ref"> & react.RefAttributes<unknown>>;
|
|
27
|
+
|
|
28
|
+
export { Box, type BoxBaseProps, type BoxProps, SxProp };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { S as SxProp } from '../../types-BJWJOB_w.mjs';
|
|
4
|
+
|
|
5
|
+
interface ContainerClasses {
|
|
6
|
+
/** Styles applied to the root element. */
|
|
7
|
+
root?: string;
|
|
8
|
+
/** Styles applied to the root element if `disableGutters={true}`. */
|
|
9
|
+
disableGutters?: string;
|
|
10
|
+
/** Styles applied to the root element if `fixed={true}`. */
|
|
11
|
+
fixed?: string;
|
|
12
|
+
/** Styles applied to the root element if `maxWidth="xs"`. */
|
|
13
|
+
maxWidthXs?: string;
|
|
14
|
+
/** Styles applied to the root element if `maxWidth="sm"`. */
|
|
15
|
+
maxWidthSm?: string;
|
|
16
|
+
/** Styles applied to the root element if `maxWidth="md"`. */
|
|
17
|
+
maxWidthMd?: string;
|
|
18
|
+
/** Styles applied to the root element if `maxWidth="lg"`. */
|
|
19
|
+
maxWidthLg?: string;
|
|
20
|
+
/** Styles applied to the root element if `maxWidth="xl"`. */
|
|
21
|
+
maxWidthXl?: string;
|
|
22
|
+
}
|
|
23
|
+
interface ContainerBaseProps<T extends ElementType = 'div'> {
|
|
24
|
+
/**
|
|
25
|
+
* The content of the component.
|
|
26
|
+
*/
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Override or extend the styles applied to the component.
|
|
30
|
+
*/
|
|
31
|
+
classes?: ContainerClasses;
|
|
32
|
+
/**
|
|
33
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
34
|
+
* @default 'div'
|
|
35
|
+
*/
|
|
36
|
+
component?: T;
|
|
37
|
+
/**
|
|
38
|
+
* If `true`, the left and right padding is removed.
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
disableGutters?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Set the max-width to match the min-width of the current breakpoint.
|
|
44
|
+
* This is useful if you'd prefer to design for a fixed set of sizes instead of trying to accommodate a fully fluid viewport.
|
|
45
|
+
* It's fluid by default.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
fixed?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Determine the max-width of the container. The container width grows with the size of the screen.
|
|
51
|
+
* Set to `false` to disable `maxWidth`.
|
|
52
|
+
* @default 'lg'
|
|
53
|
+
*/
|
|
54
|
+
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false | string;
|
|
55
|
+
/**
|
|
56
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
57
|
+
*/
|
|
58
|
+
sx?: SxProp;
|
|
59
|
+
/**
|
|
60
|
+
* Additional CSS class names.
|
|
61
|
+
*/
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
type ContainerProps<T extends ElementType = 'div'> = ContainerBaseProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof ContainerBaseProps<T>>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Container centers your content horizontally. It's the most basic layout element.
|
|
68
|
+
*/
|
|
69
|
+
declare const Container: react.ForwardRefExoticComponent<Omit<ContainerProps<ElementType>, "ref"> & react.RefAttributes<unknown>>;
|
|
70
|
+
|
|
71
|
+
export { Container, type ContainerBaseProps, type ContainerClasses, type ContainerProps, SxProp };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ElementType, ReactNode, ComponentPropsWithoutRef } from 'react';
|
|
3
|
+
import { S as SxProp } from '../../types-BJWJOB_w.js';
|
|
4
|
+
|
|
5
|
+
interface ContainerClasses {
|
|
6
|
+
/** Styles applied to the root element. */
|
|
7
|
+
root?: string;
|
|
8
|
+
/** Styles applied to the root element if `disableGutters={true}`. */
|
|
9
|
+
disableGutters?: string;
|
|
10
|
+
/** Styles applied to the root element if `fixed={true}`. */
|
|
11
|
+
fixed?: string;
|
|
12
|
+
/** Styles applied to the root element if `maxWidth="xs"`. */
|
|
13
|
+
maxWidthXs?: string;
|
|
14
|
+
/** Styles applied to the root element if `maxWidth="sm"`. */
|
|
15
|
+
maxWidthSm?: string;
|
|
16
|
+
/** Styles applied to the root element if `maxWidth="md"`. */
|
|
17
|
+
maxWidthMd?: string;
|
|
18
|
+
/** Styles applied to the root element if `maxWidth="lg"`. */
|
|
19
|
+
maxWidthLg?: string;
|
|
20
|
+
/** Styles applied to the root element if `maxWidth="xl"`. */
|
|
21
|
+
maxWidthXl?: string;
|
|
22
|
+
}
|
|
23
|
+
interface ContainerBaseProps<T extends ElementType = 'div'> {
|
|
24
|
+
/**
|
|
25
|
+
* The content of the component.
|
|
26
|
+
*/
|
|
27
|
+
children?: ReactNode;
|
|
28
|
+
/**
|
|
29
|
+
* Override or extend the styles applied to the component.
|
|
30
|
+
*/
|
|
31
|
+
classes?: ContainerClasses;
|
|
32
|
+
/**
|
|
33
|
+
* The component used for the root node. Either a string to use a HTML element or a component.
|
|
34
|
+
* @default 'div'
|
|
35
|
+
*/
|
|
36
|
+
component?: T;
|
|
37
|
+
/**
|
|
38
|
+
* If `true`, the left and right padding is removed.
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
|
+
disableGutters?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Set the max-width to match the min-width of the current breakpoint.
|
|
44
|
+
* This is useful if you'd prefer to design for a fixed set of sizes instead of trying to accommodate a fully fluid viewport.
|
|
45
|
+
* It's fluid by default.
|
|
46
|
+
* @default false
|
|
47
|
+
*/
|
|
48
|
+
fixed?: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Determine the max-width of the container. The container width grows with the size of the screen.
|
|
51
|
+
* Set to `false` to disable `maxWidth`.
|
|
52
|
+
* @default 'lg'
|
|
53
|
+
*/
|
|
54
|
+
maxWidth?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | false | string;
|
|
55
|
+
/**
|
|
56
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
57
|
+
*/
|
|
58
|
+
sx?: SxProp;
|
|
59
|
+
/**
|
|
60
|
+
* Additional CSS class names.
|
|
61
|
+
*/
|
|
62
|
+
className?: string;
|
|
63
|
+
}
|
|
64
|
+
type ContainerProps<T extends ElementType = 'div'> = ContainerBaseProps<T> & Omit<ComponentPropsWithoutRef<T>, keyof ContainerBaseProps<T>>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Container centers your content horizontally. It's the most basic layout element.
|
|
68
|
+
*/
|
|
69
|
+
declare const Container: react.ForwardRefExoticComponent<Omit<ContainerProps<ElementType>, "ref"> & react.RefAttributes<unknown>>;
|
|
70
|
+
|
|
71
|
+
export { Container, type ContainerBaseProps, type ContainerClasses, type ContainerProps, SxProp };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
2
3
|
|
|
3
4
|
type DateFilterOption = 'Today' | 'Yesterday' | 'Last 7 Days' | 'Last 30 Days' | 'This Month' | 'Last Month' | 'Custom';
|
|
4
5
|
interface DateFilterValue {
|
|
@@ -19,8 +20,14 @@ interface DateFilterProps {
|
|
|
19
20
|
onClose: () => void;
|
|
20
21
|
/** Callback fired when user clicks Apply */
|
|
21
22
|
onApply: (value: DateFilterValue) => void;
|
|
23
|
+
/** Custom styles using the sx prop pattern */
|
|
24
|
+
sx?: CSSProperties;
|
|
25
|
+
/** Custom style object */
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
/** Custom class name */
|
|
28
|
+
className?: string;
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
declare const DateFilter: ({ open, title, options, initialValue, onClose, onApply }: DateFilterProps) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare const DateFilter: ({ open, title, options, initialValue, onClose, onApply, sx, style, className, }: DateFilterProps) => react_jsx_runtime.JSX.Element;
|
|
25
32
|
|
|
26
33
|
export { DateFilter, type DateFilterOption, type DateFilterProps, type DateFilterValue };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { CSSProperties } from 'react';
|
|
2
3
|
|
|
3
4
|
type DateFilterOption = 'Today' | 'Yesterday' | 'Last 7 Days' | 'Last 30 Days' | 'This Month' | 'Last Month' | 'Custom';
|
|
4
5
|
interface DateFilterValue {
|
|
@@ -19,8 +20,14 @@ interface DateFilterProps {
|
|
|
19
20
|
onClose: () => void;
|
|
20
21
|
/** Callback fired when user clicks Apply */
|
|
21
22
|
onApply: (value: DateFilterValue) => void;
|
|
23
|
+
/** Custom styles using the sx prop pattern */
|
|
24
|
+
sx?: CSSProperties;
|
|
25
|
+
/** Custom style object */
|
|
26
|
+
style?: CSSProperties;
|
|
27
|
+
/** Custom class name */
|
|
28
|
+
className?: string;
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
declare const DateFilter: ({ open, title, options, initialValue, onClose, onApply }: DateFilterProps) => react_jsx_runtime.JSX.Element;
|
|
31
|
+
declare const DateFilter: ({ open, title, options, initialValue, onClose, onApply, sx, style, className, }: DateFilterProps) => react_jsx_runtime.JSX.Element;
|
|
25
32
|
|
|
26
33
|
export { DateFilter, type DateFilterOption, type DateFilterProps, type DateFilterValue };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkZPJSBORX_js=require('../../chunk-ZPJSBORX.js');require('../../chunk-MLURKSJZ.js');Object.defineProperty(exports,"DateFilter",{enumerable:true,get:function(){return chunkZPJSBORX_js.a}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as DateFilter}from'../../chunk-
|
|
1
|
+
export{a as DateFilter}from'../../chunk-AK3NQBYU.mjs';import'../../chunk-HGGQFNUJ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import react__default from 'react';
|
|
1
|
+
import react__default, { CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
type FileUploadType = 'image' | 'file';
|
|
4
4
|
interface FileUploadFieldBaseProps {
|
|
@@ -29,7 +29,9 @@ interface FileUploadFieldBaseProps {
|
|
|
29
29
|
/** Custom class name for the root element */
|
|
30
30
|
className?: string;
|
|
31
31
|
/** Inline styles for the root element */
|
|
32
|
-
style?:
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
/** Custom styles using the sx prop pattern */
|
|
34
|
+
sx?: CSSProperties;
|
|
33
35
|
/** Whether to allow multiple file selection */
|
|
34
36
|
multiple?: boolean;
|
|
35
37
|
/** Callback called when user removes a file. Index provided if multiple */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import react__default from 'react';
|
|
1
|
+
import react__default, { CSSProperties } from 'react';
|
|
2
2
|
|
|
3
3
|
type FileUploadType = 'image' | 'file';
|
|
4
4
|
interface FileUploadFieldBaseProps {
|
|
@@ -29,7 +29,9 @@ interface FileUploadFieldBaseProps {
|
|
|
29
29
|
/** Custom class name for the root element */
|
|
30
30
|
className?: string;
|
|
31
31
|
/** Inline styles for the root element */
|
|
32
|
-
style?:
|
|
32
|
+
style?: CSSProperties;
|
|
33
|
+
/** Custom styles using the sx prop pattern */
|
|
34
|
+
sx?: CSSProperties;
|
|
33
35
|
/** Whether to allow multiple file selection */
|
|
34
36
|
multiple?: boolean;
|
|
35
37
|
/** Callback called when user removes a file. Index provided if multiple */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunkP5HHRCE5_js=require('../../chunk-P5HHRCE5.js');require('../../chunk-MLURKSJZ.js');Object.defineProperty(exports,"FileUploadField",{enumerable:true,get:function(){return chunkP5HHRCE5_js.a}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{a as FileUploadField}from'../../chunk-
|
|
1
|
+
export{a as FileUploadField}from'../../chunk-PL2R3LYL.mjs';import'../../chunk-HGGQFNUJ.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
3
3
|
|
|
4
4
|
interface StepItem {
|
|
5
5
|
label: string;
|
|
@@ -43,8 +43,14 @@ interface FormLayoutProps {
|
|
|
43
43
|
extraHeaderActions?: ReactNode;
|
|
44
44
|
/** Custom back button action (defaults to onCancel) */
|
|
45
45
|
onBack?: () => void;
|
|
46
|
+
/** Inline styles for the root element */
|
|
47
|
+
style?: CSSProperties;
|
|
48
|
+
/** Custom styles using the sx prop pattern */
|
|
49
|
+
sx?: CSSProperties;
|
|
50
|
+
/** Custom class name */
|
|
51
|
+
className?: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
|
-
declare const FormLayout: ({ title, mode, onCancel, onSubmit, children, steps, validateStep, loading, layoutType, onSaveDraft, onApprove, hideSubmitButton, hideCancelButton, showbutton, errors, extraHeaderActions, onBack }: FormLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
54
|
+
declare const FormLayout: ({ title, mode, onCancel, onSubmit, children, steps, validateStep, loading, layoutType, onSaveDraft, onApprove, hideSubmitButton, hideCancelButton, showbutton, errors, extraHeaderActions, onBack, style, sx, className, }: FormLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
49
55
|
|
|
50
56
|
export { FormLayout, type FormLayoutProps, type StepItem };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, CSSProperties } from 'react';
|
|
3
3
|
|
|
4
4
|
interface StepItem {
|
|
5
5
|
label: string;
|
|
@@ -43,8 +43,14 @@ interface FormLayoutProps {
|
|
|
43
43
|
extraHeaderActions?: ReactNode;
|
|
44
44
|
/** Custom back button action (defaults to onCancel) */
|
|
45
45
|
onBack?: () => void;
|
|
46
|
+
/** Inline styles for the root element */
|
|
47
|
+
style?: CSSProperties;
|
|
48
|
+
/** Custom styles using the sx prop pattern */
|
|
49
|
+
sx?: CSSProperties;
|
|
50
|
+
/** Custom class name */
|
|
51
|
+
className?: string;
|
|
46
52
|
}
|
|
47
53
|
|
|
48
|
-
declare const FormLayout: ({ title, mode, onCancel, onSubmit, children, steps, validateStep, loading, layoutType, onSaveDraft, onApprove, hideSubmitButton, hideCancelButton, showbutton, errors, extraHeaderActions, onBack }: FormLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
54
|
+
declare const FormLayout: ({ title, mode, onCancel, onSubmit, children, steps, validateStep, loading, layoutType, onSaveDraft, onApprove, hideSubmitButton, hideCancelButton, showbutton, errors, extraHeaderActions, onBack, style, sx, className, }: FormLayoutProps) => react_jsx_runtime.JSX.Element;
|
|
49
55
|
|
|
50
56
|
export { FormLayout, type FormLayoutProps, type StepItem };
|