@tsiky/components-r19 1.6.165 → 1.6.166

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/index.cjs.js CHANGED
@@ -8606,4 +8606,4 @@
8606
8606
  ${X.patientCard}
8607
8607
  ${A?X.small:""}
8608
8608
  ${t}
8609
- `.trim();return o.jsx("div",{className:R,style:n,children:o.jsxs("div",{className:X.innerPadding,children:[o.jsxs("div",{className:`${X.topArea} ${x?"":X.noFooterMargin}`,style:c,children:[o.jsxs("div",{className:X.header,children:[o.jsx("div",{className:X.headerLeft,children:i&&o.jsx("span",{className:X.uf,children:i})}),o.jsx("div",{className:X.headerRight,children:r&&o.jsx("span",{className:X.roomBed,children:r})})]}),o.jsx("div",{className:X.content,children:o.jsxs("div",{className:X.body,children:[S==="default"&&o.jsxs(o.Fragment,{children:[s&&o.jsx("div",{className:`${X.centerLabelHuge} ${N?X.labelYellow:""}`,children:s}),o.jsxs("div",{className:X.upperBodyContent,children:[o.jsxs("div",{className:X.patientInfo,children:[d&&o.jsx("div",{className:X.iep,children:d}),l&&o.jsx("div",{className:X.name,children:l}),h&&o.jsxs("div",{className:X.birthName,children:["(",u?`${u} ${h}`:h,")"]}),p&&o.jsx("div",{className:X.firstNames,children:p}),y&&o.jsx("div",{className:X.dobAge,children:y})]}),m&&o.jsx("div",{className:X.duration,children:m}),v&&o.jsx("div",{className:X.comment,children:v})]}),f&&o.jsx("div",{className:X.expectedBottom,children:M?`${M} ${f}`:f})]}),S==="notes"&&o.jsxs("div",{className:X.notesView,children:[o.jsxs("div",{className:X.notesHeader,children:[q,o.jsx("span",{className:X.notesTitle,children:$})]}),o.jsx("div",{className:X.notesList,children:H.map((P,T)=>o.jsx("div",{className:X.noteItem,children:P},T))})]}),S==="reservation"&&o.jsxs("div",{className:X.reservationView,children:[o.jsx("div",{className:X.reservationName,children:D}),z&&o.jsx("div",{className:X.reservationNote,children:z})]})]})}),_&&o.jsxs("div",{className:X.timeline,children:[g&&S!=="reservation"&&o.jsxs("div",{className:X.destination,children:[o.jsx("span",{className:X.arrow,children:"→"}),o.jsx("span",{children:g.prefix}),o.jsx("strong",{children:g.name}),o.jsx("span",{children:g.suffix})]}),o.jsxs("div",{className:X.progressBar,style:w?{backgroundColor:w}:void 0,children:[o.jsx("div",{className:X.progressFill,style:{width:`${L}%`,backgroundColor:C}}),b&&o.jsx("span",{className:X.progressDate,children:b})]})]})]}),x&&o.jsxs("div",{className:X.footer,children:[o.jsx("div",{className:X.actionsLeft,children:I.map((P,T)=>o.jsx("div",{className:X.iconWrap,children:P},`left-${T}`))}),o.jsx("div",{className:X.actionsRight,children:j.map((P,T)=>o.jsx("div",{className:X.iconWrap,children:P},`right-${T}`))})]})]})})},xMe=({title:e,titleBold:t,titleKey:n,items:c,className:i="",width:r,style:s,labelStyle:d,valueStyle:l,headerStyle:h,a11yConfig:u,onItemClick:p})=>{const y={width:r||"100%",...s};return o.jsxs("div",{className:`data-list-v2-container ${i}`,style:y,children:[(e||t)&&o.jsx("div",{className:"data-list-v2-header",style:h,children:o.jsxs("h2",{className:"header-title",title:Z(u,n),children:[e&&o.jsx("span",{className:"title-regular",children:e}),t&&o.jsx("span",{className:"title-bold",children:t})]})}),o.jsx("div",{className:"data-list-v2-content",children:c.map(m=>o.jsxs("div",{className:`data-list-v2-item ${p?"interactive":""} ${m.showValueLine?"with-value-line":""}`,onClick:()=>p?.(m),children:[o.jsx("div",{className:"item-label-col",style:d,children:o.jsx("div",{className:"item-label",title:Z(m.a11yConfig,m.labelKey),children:m.label})}),o.jsx("div",{className:"item-value-col",style:l,children:o.jsx("div",{className:"item-value",title:Z(m.a11yConfig,m.valueKey),children:m.value})})]},m.id))})]})};exports.PeriodRange=a.PeriodRange;exports.SimpleBarChart=a.SimpleBarChart;exports.ActionCard=Ege;exports.AddItemModal=qc;exports.Alert=Kw;exports.AlertMessage=Mve;exports.AlertsProvider=Bke;exports.BadgeList=gj;exports.BadgeRenderer=Rq;exports.Button=tL;exports.ChartContainer=Hke;exports.CheckboxInput=vq;exports.CircularProgress=Vb;exports.ColorInput=Iq;exports.ComponentVisibilityManager=Hb;exports.ComponentVisibilityToggle=e6e;exports.ConfirmationModal=Tge;exports.ConfirmationPopup=O3e;exports.CounterListBox=N3e;exports.CurrencyRenderer=Oq;exports.DashboardSummary=qme;exports.DataBoard=St;exports.DataFourBoards=Yq;exports.DataListV2=xMe;exports.DateInput=xq;exports.DatePicker=sw;exports.DateRenderer=Fq;exports.DayStatCard=d2e;exports.DayStatCardV2=W6e;exports.DonutChartRatio=Vve;exports.DraggableProvider=p2e;exports.DraggableSwitcherButton=aL;exports.DynamicForm=n4e;exports.DynamicInput=bq;exports.EmailRenderer=Dq;exports.Encours=Ume;exports.EntryControl=w3e;exports.FileInput=_q;exports.FilterBar=t7e;exports.FiltreEtiquette=mve;exports.FlexRowContainer=j3e;exports.Grid=_j;exports.Header=v2e;exports.HorizontalBarChart=K6e;exports.IconText=qj;exports.ImageRenderer=Uq;exports.IndicatorItemV2=B7e;exports.InfoBanner=age;exports.InputWrapper=vL;exports.LegendFilterProvider=k2e;exports.LegendFilterSwitcherButton=nL;exports.LinkRenderer=Bq;exports.ListContentContainer=$3e;exports.Logo=uL;exports.MetricsPanel=Kq;exports.MobileMenuHeader=Wve;exports.MobileNavMenu=eA;exports.MobileTopBar=Fve;exports.ModuleHeader=d3e;exports.ModuleSideBar=l3e;exports.ModuleSideBarV2=Nge;exports.NavBar=xj;exports.NavBarV2=u8e;exports.NavItem=Pb;exports.NavItemV2=Zw;exports.NavProvider=l2e;exports.NumberRenderer=Eq;exports.PatientCard=_Me;exports.PatientDetailsPanel=x9e;exports.PatientInfoCard=I9e;exports.PeriodSelect=Wke;exports.PopUp=Lge;exports.RadioInput=Mq;exports.RangeInput=Lq;exports.ScrollableHorizontale=Aj;exports.SearchBar=Xq;exports.Select=aA;exports.SelectFilter=Ime;exports.SelectInput=Ow;exports.SettingNavBar=Cge;exports.ShowDataProvider=m2e;exports.ShowDataSwitcherButton=oL;exports.SideComponent=Kke;exports.SimpleListBox=C3e;exports.Slider=c9e;exports.SubHeaderContent=T8e;exports.SubHeaderNavItem=Qq;exports.SubHeaderTitle=g8e;exports.SubNavBar=M2e;exports.SummaryAvailable=vve;exports.SummaryCard=Gq;exports.Switcher=F1;exports.TableLayout=tA;exports.TableauDynamique=Wq;exports.TableauDynamiqueSafePagination=O5e;exports.TableauxComponent=tA;exports.TextInput=fq;exports.TextRenderer=Hq;exports.TextareaInput=gq;exports.ThemeProvider=h2e;exports.ThemeSwitcher=H8e;exports.ThemeSwitcherButton=Tb;exports.TimePicker=h9e;exports.Title=Jke;exports.TranslationKey=h3e;exports.TranslationKeyV2=Sge;exports.TrendItem=zj;exports.TrendList=kue;exports.TrendListBox=S3e;exports.UnitGrid=Gve;exports.UserInfo=Jq;exports.alertModels=Fke;exports.getA11yTooltip=Z;exports.getFormSchema=o4e;exports.hexToRgba=$t;exports.registerRenderer=z5e;exports.tableConfig=rw;exports.useAlerts=Rke;exports.useBodyScrollLock=Zke;exports.useConfirmationPopup=U3e;exports.useDraggableSwitcher=wj;exports.useFilters=Pq;exports.useLegendFilterSwitcher=Nj;exports.useNavigation=dt;exports.useShowDataSwitcher=jj;exports.useTableData=Tq;exports.useThemeContext=Ij;exports.useThemeSwitcher=pL;exports.validateField=hL;exports.validateForm=mq;
8609
+ `.trim();return o.jsx("div",{className:R,style:n,children:o.jsxs("div",{className:X.innerPadding,children:[o.jsxs("div",{className:`${X.topArea} ${x?"":X.noFooterMargin}`,style:c,children:[o.jsxs("div",{className:X.header,children:[o.jsx("div",{className:X.headerLeft,children:i&&o.jsx("span",{className:X.uf,children:i})}),o.jsx("div",{className:X.headerRight,children:r&&o.jsx("span",{className:X.roomBed,children:r})})]}),o.jsx("div",{className:X.content,children:o.jsxs("div",{className:X.body,children:[S==="default"&&o.jsxs(o.Fragment,{children:[s&&o.jsx("div",{className:`${X.centerLabelHuge} ${N?X.labelYellow:""}`,children:s}),o.jsxs("div",{className:X.upperBodyContent,children:[o.jsxs("div",{className:X.patientInfo,children:[d&&o.jsx("div",{className:X.iep,children:d}),l&&o.jsx("div",{className:X.name,children:l}),h&&o.jsxs("div",{className:X.birthName,children:["(",u?`${u} ${h}`:h,")"]}),p&&o.jsx("div",{className:X.firstNames,children:p}),y&&o.jsx("div",{className:X.dobAge,children:y})]}),m&&o.jsx("div",{className:X.duration,children:m}),v&&o.jsx("div",{className:X.comment,children:v})]}),f&&o.jsx("div",{className:X.expectedBottom,children:M?`${M} ${f}`:f})]}),S==="notes"&&o.jsxs("div",{className:X.notesView,children:[o.jsxs("div",{className:X.notesHeader,children:[q,o.jsx("span",{className:X.notesTitle,children:$})]}),o.jsx("div",{className:X.notesList,children:H.map((P,T)=>o.jsx("div",{className:X.noteItem,children:P},T))})]}),S==="reservation"&&o.jsxs("div",{className:X.reservationView,children:[o.jsx("div",{className:X.reservationName,children:D}),z&&o.jsx("div",{className:X.reservationNote,children:z})]})]})}),_&&o.jsxs("div",{className:X.timeline,children:[g&&S!=="reservation"&&o.jsxs("div",{className:X.destination,children:[o.jsx("span",{className:X.arrow,children:"→"}),o.jsx("span",{children:g.prefix}),o.jsx("strong",{children:g.name}),o.jsx("span",{children:g.suffix})]}),o.jsxs("div",{className:X.progressBar,style:w?{backgroundColor:w}:void 0,children:[o.jsx("div",{className:X.progressFill,style:{width:`${L}%`,backgroundColor:C}}),b&&o.jsx("span",{className:X.progressDate,children:b})]})]})]}),x&&o.jsxs("div",{className:X.footer,children:[o.jsx("div",{className:X.actionsLeft,children:I.map((P,T)=>o.jsx("div",{className:X.iconWrap,children:P},`left-${T}`))}),o.jsx("div",{className:X.actionsRight,children:j.map((P,T)=>o.jsx("div",{className:X.iconWrap,children:P},`right-${T}`))})]})]})})},xMe=({title:e,titleBold:t,titleKey:n,items:c,className:i="",width:r,style:s,labelStyle:d,valueStyle:l,headerStyle:h,a11yConfig:u,onItemClick:p})=>{const y={width:r||"100%",...s};return o.jsxs("div",{className:`data-list-v2-container ${i}`,style:y,children:[(e||t)&&o.jsx("div",{className:"data-list-v2-header",style:h,children:o.jsxs("h2",{className:"header-title",title:Z(u,n),children:[e&&o.jsx("span",{className:"title-regular",children:e}),t&&o.jsx("span",{className:"title-bold",children:t})]})}),o.jsx("div",{className:"data-list-v2-content",children:c.map(m=>o.jsxs("div",{className:`data-list-v2-item ${p?"interactive":""} ${m.showValueLine?"with-value-line":""}`,onClick:()=>p?.(m),children:[o.jsx("div",{className:"item-label-col",style:d,children:o.jsx("div",{className:"item-label",title:Z(m.a11yConfig,m.labelKey),children:m.label})}),o.jsx("div",{className:"item-value-col",style:l,children:o.jsx("div",{className:"item-value",title:Z(m.a11yConfig,m.valueKey),children:m.value})})]},m.id))})]})},LMe=({id:e,data:t,children:n,className:c,onDragStart:i,onDragEnd:r})=>{const s=l=>{l.dataTransfer.setData("text/plain",e),t&&l.dataTransfer.setData("application/json",JSON.stringify(t)),l.dataTransfer.effectAllowed="move",i&&i(l,t)},d=l=>{r&&r(l)};return o.jsx("div",{draggable:!0,onDragStart:s,onDragEnd:d,style:{cursor:"grab"},className:c,children:n})},IMe=({id:e,onDrop:t,children:n,className:c="",activeClassName:i="is-drag-over"})=>{const[r,s]=k.useState(!1),d=k.useRef(0),l=m=>{m.preventDefault(),d.current+=1,d.current>0&&s(!0)},h=m=>{m.preventDefault(),m.dataTransfer.dropEffect="move"},u=m=>{m.preventDefault(),d.current-=1,d.current===0&&s(!1)},p=m=>{m.preventDefault(),s(!1),d.current=0;const v=m.dataTransfer.getData("text/plain");let f;try{const M=m.dataTransfer.getData("application/json");M&&(f=JSON.parse(M))}catch(M){console.error("Failed to parse drag data",M)}v&&t(v,f)},y=`${c} ${r?i:""}`.trim();return o.jsx("div",{onDragEnter:l,onDragOver:h,onDragLeave:u,onDrop:p,className:y,"data-droppable-id":e,children:n})};exports.PeriodRange=a.PeriodRange;exports.SimpleBarChart=a.SimpleBarChart;exports.ActionCard=Ege;exports.AddItemModal=qc;exports.Alert=Kw;exports.AlertMessage=Mve;exports.AlertsProvider=Bke;exports.BadgeList=gj;exports.BadgeRenderer=Rq;exports.Button=tL;exports.ChartContainer=Hke;exports.CheckboxInput=vq;exports.CircularProgress=Vb;exports.ColorInput=Iq;exports.ComponentVisibilityManager=Hb;exports.ComponentVisibilityToggle=e6e;exports.ConfirmationModal=Tge;exports.ConfirmationPopup=O3e;exports.CounterListBox=N3e;exports.CurrencyRenderer=Oq;exports.DashboardSummary=qme;exports.DataBoard=St;exports.DataFourBoards=Yq;exports.DataListV2=xMe;exports.DateInput=xq;exports.DatePicker=sw;exports.DateRenderer=Fq;exports.DayStatCard=d2e;exports.DayStatCardV2=W6e;exports.DonutChartRatio=Vve;exports.Draggable=LMe;exports.DraggableProvider=p2e;exports.DraggableSwitcherButton=aL;exports.Droppable=IMe;exports.DynamicForm=n4e;exports.DynamicInput=bq;exports.EmailRenderer=Dq;exports.Encours=Ume;exports.EntryControl=w3e;exports.FileInput=_q;exports.FilterBar=t7e;exports.FiltreEtiquette=mve;exports.FlexRowContainer=j3e;exports.Grid=_j;exports.Header=v2e;exports.HorizontalBarChart=K6e;exports.IconText=qj;exports.ImageRenderer=Uq;exports.IndicatorItemV2=B7e;exports.InfoBanner=age;exports.InputWrapper=vL;exports.LegendFilterProvider=k2e;exports.LegendFilterSwitcherButton=nL;exports.LinkRenderer=Bq;exports.ListContentContainer=$3e;exports.Logo=uL;exports.MetricsPanel=Kq;exports.MobileMenuHeader=Wve;exports.MobileNavMenu=eA;exports.MobileTopBar=Fve;exports.ModuleHeader=d3e;exports.ModuleSideBar=l3e;exports.ModuleSideBarV2=Nge;exports.NavBar=xj;exports.NavBarV2=u8e;exports.NavItem=Pb;exports.NavItemV2=Zw;exports.NavProvider=l2e;exports.NumberRenderer=Eq;exports.PatientCard=_Me;exports.PatientDetailsPanel=x9e;exports.PatientInfoCard=I9e;exports.PeriodSelect=Wke;exports.PopUp=Lge;exports.RadioInput=Mq;exports.RangeInput=Lq;exports.ScrollableHorizontale=Aj;exports.SearchBar=Xq;exports.Select=aA;exports.SelectFilter=Ime;exports.SelectInput=Ow;exports.SettingNavBar=Cge;exports.ShowDataProvider=m2e;exports.ShowDataSwitcherButton=oL;exports.SideComponent=Kke;exports.SimpleListBox=C3e;exports.Slider=c9e;exports.SubHeaderContent=T8e;exports.SubHeaderNavItem=Qq;exports.SubHeaderTitle=g8e;exports.SubNavBar=M2e;exports.SummaryAvailable=vve;exports.SummaryCard=Gq;exports.Switcher=F1;exports.TableLayout=tA;exports.TableauDynamique=Wq;exports.TableauDynamiqueSafePagination=O5e;exports.TableauxComponent=tA;exports.TextInput=fq;exports.TextRenderer=Hq;exports.TextareaInput=gq;exports.ThemeProvider=h2e;exports.ThemeSwitcher=H8e;exports.ThemeSwitcherButton=Tb;exports.TimePicker=h9e;exports.Title=Jke;exports.TranslationKey=h3e;exports.TranslationKeyV2=Sge;exports.TrendItem=zj;exports.TrendList=kue;exports.TrendListBox=S3e;exports.UnitGrid=Gve;exports.UserInfo=Jq;exports.alertModels=Fke;exports.getA11yTooltip=Z;exports.getFormSchema=o4e;exports.hexToRgba=$t;exports.registerRenderer=z5e;exports.tableConfig=rw;exports.useAlerts=Rke;exports.useBodyScrollLock=Zke;exports.useConfirmationPopup=U3e;exports.useDraggableSwitcher=wj;exports.useFilters=Pq;exports.useLegendFilterSwitcher=Nj;exports.useNavigation=dt;exports.useShowDataSwitcher=jj;exports.useTableData=Tq;exports.useThemeContext=Ij;exports.useThemeSwitcher=pL;exports.validateField=hL;exports.validateForm=mq;
package/dist/index.d.ts CHANGED
@@ -84,4 +84,6 @@ export * from './src/components/PatientDetailsPanel';
84
84
  export * from './src/components/PatientInfoCard';
85
85
  export * from './src/components/PatientCard';
86
86
  export * from './src/components/DataListV2';
87
+ export * from './src/components/Draggable';
88
+ export * from './src/components/Droppable';
87
89
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"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je } from "react/jsx-runtime";
2
2
  import * as Y from "react";
3
3
  import ne, { useState as T, useRef as U, useEffect as O, createContext as Ze, useContext as fe, useCallback as Fe, memo as $e, useLayoutEffect as hz, useId as uC, useInsertionEffect as $$, useMemo as ve, Children as pz, isValidElement as uz, Fragment as q$, createElement as yz, forwardRef as Qi, Component as kz, useImperativeHandle as mz } from "react";
4
4
  import { c as a, M as jo, I as fz, a as cc, g as gz, R as A$, B as vz, C as Mz, X as _z, Y as xz, T as bz, b as wz, d as Lz, P as Cz, e as Nz, f as iN } from "./SimpleBarChart-Cc2mdbuB.js";
5
- import { h as h_e, S as p_e } from "./SimpleBarChart-Cc2mdbuB.js";
5
+ import { h as u_e, S as y_e } from "./SimpleBarChart-Cc2mdbuB.js";
6
6
  import { createPortal as yC } from "react-dom";
7
7
  import ae from "styled-components";
8
8
  const Iz = "_button_1kuwt_2", Sz = "_primary_1kuwt_21", $z = "_secondary_1kuwt_26", qz = "_accent_1kuwt_31", Az = "_outline_1kuwt_36", zz = "_success_1kuwt_41", Vz = "_danger_1kuwt_46", Pz = "_warning_1kuwt_51", Tz = "_info_1kuwt_56", Hz = "_sm_1kuwt_62", jz = "_md_1kuwt_67", Dz = "_lg_1kuwt_72", Xe = {
@@ -48209,6 +48209,64 @@ const Dme = (e) => /* @__PURE__ */ Y.createElement("svg", { xmlns: "http://www.w
48209
48209
  k.id
48210
48210
  )) })
48211
48211
  ] });
48212
+ }, d_e = ({
48213
+ id: e,
48214
+ data: t,
48215
+ children: n,
48216
+ className: o,
48217
+ onDragStart: i,
48218
+ onDragEnd: r
48219
+ }) => /* @__PURE__ */ c(
48220
+ "div",
48221
+ {
48222
+ draggable: !0,
48223
+ onDragStart: (l) => {
48224
+ l.dataTransfer.setData("text/plain", e), t && l.dataTransfer.setData("application/json", JSON.stringify(t)), l.dataTransfer.effectAllowed = "move", i && i(l, t);
48225
+ },
48226
+ onDragEnd: (l) => {
48227
+ r && r(l);
48228
+ },
48229
+ style: { cursor: "grab" },
48230
+ className: o,
48231
+ children: n
48232
+ }
48233
+ ), l_e = ({
48234
+ id: e,
48235
+ onDrop: t,
48236
+ children: n,
48237
+ className: o = "",
48238
+ activeClassName: i = "is-drag-over"
48239
+ }) => {
48240
+ const [r, s] = T(!1), d = U(0), l = (k) => {
48241
+ k.preventDefault(), d.current += 1, d.current > 0 && s(!0);
48242
+ }, h = (k) => {
48243
+ k.preventDefault(), k.dataTransfer.dropEffect = "move";
48244
+ }, p = (k) => {
48245
+ k.preventDefault(), d.current -= 1, d.current === 0 && s(!1);
48246
+ }, u = (k) => {
48247
+ k.preventDefault(), s(!1), d.current = 0;
48248
+ const v = k.dataTransfer.getData("text/plain");
48249
+ let f;
48250
+ try {
48251
+ const M = k.dataTransfer.getData("application/json");
48252
+ M && (f = JSON.parse(M));
48253
+ } catch (M) {
48254
+ console.error("Failed to parse drag data", M);
48255
+ }
48256
+ v && t(v, f);
48257
+ }, y = `${o} ${r ? i : ""}`.trim();
48258
+ return /* @__PURE__ */ c(
48259
+ "div",
48260
+ {
48261
+ onDragEnter: l,
48262
+ onDragOver: h,
48263
+ onDragLeave: p,
48264
+ onDrop: u,
48265
+ className: y,
48266
+ "data-droppable-id": e,
48267
+ children: n
48268
+ }
48269
+ );
48212
48270
  };
48213
48271
  export {
48214
48272
  ZMe as ActionCard,
@@ -48239,8 +48297,10 @@ export {
48239
48297
  Y9e as DayStatCard,
48240
48298
  VMe as DayStatCardV2,
48241
48299
  QMe as DonutChartRatio,
48300
+ d_e as Draggable,
48242
48301
  eMe as DraggableProvider,
48243
48302
  RL as DraggableSwitcherButton,
48303
+ l_e as Droppable,
48244
48304
  rMe as DynamicForm,
48245
48305
  Uue as DynamicInput,
48246
48306
  B5e as EmailRenderer,
@@ -48279,7 +48339,7 @@ export {
48279
48339
  r_e as PatientCard,
48280
48340
  i_e as PatientDetailsPanel,
48281
48341
  c_e as PatientInfoCard,
48282
- h_e as PeriodRange,
48342
+ u_e as PeriodRange,
48283
48343
  kMe as PeriodSelect,
48284
48344
  EMe as PopUp,
48285
48345
  yue as RadioInput,
@@ -48293,7 +48353,7 @@ export {
48293
48353
  aMe as ShowDataProvider,
48294
48354
  OL as ShowDataSwitcherButton,
48295
48355
  mMe as SideComponent,
48296
- p_e as SimpleBarChart,
48356
+ y_e as SimpleBarChart,
48297
48357
  bMe as SimpleListBox,
48298
48358
  n_e as Slider,
48299
48359
  jMe as SubHeaderContent,
@@ -0,0 +1,11 @@
1
+ import React, { DragEvent } from 'react';
2
+ export interface DraggableProps {
3
+ id: string;
4
+ data?: unknown;
5
+ children: React.ReactNode;
6
+ className?: string;
7
+ onDragStart?: (e: DragEvent<HTMLDivElement>, data?: unknown) => void;
8
+ onDragEnd?: (e: DragEvent<HTMLDivElement>) => void;
9
+ }
10
+ export declare const Draggable: React.FC<DraggableProps>;
11
+ //# sourceMappingURL=Draggable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Draggable.d.ts","sourceRoot":"","sources":["../../../../src/components/Draggable/Draggable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrE,SAAS,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACpD;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAuC9C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Draggable';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Draggable/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ export interface DroppableProps {
3
+ id: string;
4
+ onDrop: (draggedId: string, draggedData?: unknown) => void;
5
+ children: React.ReactNode;
6
+ className?: string;
7
+ activeClassName?: string;
8
+ }
9
+ export declare const Droppable: React.FC<DroppableProps>;
10
+ //# sourceMappingURL=Droppable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Droppable.d.ts","sourceRoot":"","sources":["../../../../src/components/Droppable/Droppable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAmE9C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './Droppable';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Droppable/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsiky/components-r19",
3
- "version": "1.6.165",
3
+ "version": "1.6.166",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite",