@bbodek/internal-ui 0.0.51 → 0.0.52
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/{FilterCalendarPanel-4xl_OsWr.js → FilterCalendarPanel-DCbayeAQ.js} +2 -2
- package/dist/FilterCalendarPanel-DCbayeAQ.js.map +1 -0
- package/dist/{FilterMultiSelectPanel--nim2T0p.js → FilterMultiSelectPanel-Cvd9lPbH.js} +2 -2
- package/dist/FilterMultiSelectPanel-Cvd9lPbH.js.map +1 -0
- package/dist/{FilterSelectOptionPanel-DzKuVOSi.js → FilterSelectOptionPanel-I72i1SwM.js} +2 -2
- package/dist/FilterSelectOptionPanel-I72i1SwM.js.map +1 -0
- package/dist/index-DrincOrP.js +2 -0
- package/dist/index-DrincOrP.js.map +1 -0
- package/dist/index.es.js +1 -1
- package/dist/{useFilterSelectOptionPanel-Di10G2ZS.js → useFilterSelectOptionPanel-4IolTWpf.js} +2 -2
- package/dist/useFilterSelectOptionPanel-4IolTWpf.js.map +1 -0
- package/package.json +12 -12
- package/dist/FilterCalendarPanel-4xl_OsWr.js.map +0 -1
- package/dist/FilterMultiSelectPanel--nim2T0p.js.map +0 -1
- package/dist/FilterSelectOptionPanel-DzKuVOSi.js.map +0 -1
- package/dist/index-BkLNoBKU.js +0 -2
- package/dist/index-BkLNoBKU.js.map +0 -1
- package/dist/useFilterSelectOptionPanel-Di10G2ZS.js.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as t}from"react";import{g as n,i as l,h as r,j as o,b as s,k as i}from"./index-
|
|
2
|
-
//# sourceMappingURL=FilterCalendarPanel-
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as t}from"react";import{g as n,i as l,h as r,j as o,b as s,k as i}from"./index-DrincOrP.js";import"@bbodek/utils";import{F as m,u}from"./useFilterSelectOptionPanel-4IolTWpf.js";import"react-dom";import"@bbodek/hooks";const d=()=>{const{variant:a,internalValue:t,handleChange:r}=n(),o=!l({value:t,variant:a});return e(m,{disabled:o,onClick:r})},c=({variant:n})=>{const l=t(),m=t(),{models:{calendarValue:c},operations:{onChange:h}}=(()=>{const{models:{value:e},operations:{handleChange:a}}=u(),{startDate:t,endDate:n}=null!==e?r({value:e}):{startDate:null,endDate:null};return{models:{calendarValue:null!==e?{startDate:t,endDate:n}:null},operations:{onChange:e=>{const t=e?[`${e.startDate}~${e.endDate}`]:null;a({value:t})}}}})();return e(o,{value:c,variant:n,onChange:h,children:a(s,{className:"in-tablet:min-w-[23.75rem] mx-auto w-[22.5rem] justify-between overflow-hidden",direction:"column",children:[e(i,{className:"in-tablet:min-h-[34svh-3.75rem] in-tablet:max-h-[46svh-3.75rem] mx-auto h-[100svh-4rem]",id:m,labelId:l}),e(d,{})]})})};export{c as default};
|
|
2
|
+
//# sourceMappingURL=FilterCalendarPanel-DCbayeAQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterCalendarPanel-DCbayeAQ.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as l}from"react";import{F as o,u as t}from"./useFilterSelectOptionPanel-
|
|
2
|
-
//# sourceMappingURL=FilterMultiSelectPanel
|
|
1
|
+
import{jsx as e,jsxs as a}from"react/jsx-runtime";import{useId as l}from"react";import{F as o,u as t}from"./useFilterSelectOptionPanel-4IolTWpf.js";import{a as n,M as s,b as i,c as r,e as m,f as c}from"./index-DrincOrP.js";import"react-dom";import"@bbodek/hooks";import"@bbodek/utils";const u=()=>{const{onChange:a,onSearch:l,internalOptions:t}=n();return e(o,{disabled:0===t.length||void 0===t.find((({isSelected:e})=>e)),onClick:()=>{l({value:null}),a()}})},d=()=>{const o=l(),n=l(),d=l(),{models:{value:p,options:h},operations:{onChange:v}}=(()=>{const{models:{options:e,value:a},operations:{handleChange:l}}=t(),o=e.options.map((({value:e,displayValue:a})=>({value:e,label:a})));return{models:{value:(a??[]).map((e=>({value:e,label:o.find((a=>a.value===e))?.label??""}))),options:o},operations:{onChange:e=>{const a=e?e.map((({value:e})=>e)):null;l({value:a})}}}})();return e(s,{options:h,selectListResultId:n,selectedListResultId:d,value:p,onChange:v,children:a(i,{className:"in-tablet:min-w-[36.25rem] mx-auto w-[22.5rem] flex-1 justify-between overflow-hidden",direction:"column",children:[e(r,{className:"in-tablet:min-h-[calc(34svh-3.75rem)] in-tablet:max-h-[calc(46svh-3.75rem)] h-[100svh-4rem]",labelId:o,searchPanel:e(c,{}),selectedPanel:e(m,{})}),e(u,{})]})})};export{d as default};
|
|
2
|
+
//# sourceMappingURL=FilterMultiSelectPanel-Cvd9lPbH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMultiSelectPanel-Cvd9lPbH.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{u as r,F as e,d as o,C as s}from"./index-
|
|
2
|
-
//# sourceMappingURL=FilterSelectOptionPanel-
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{u as r,F as e,d as o,C as s}from"./index-DrincOrP.js";import"react";import"@bbodek/utils";import"react-dom";import"@bbodek/hooks";const a=o((()=>import("./FilterMultiSelectPanel-Cvd9lPbH.js")),{ssr:!1}),i=o((()=>import("./FilterCalendarPanel-DCbayeAQ.js")),{ssr:!1}),m=()=>{const{currentOptions:o}=r(),{type:m}=o;return{[e.MULTI_SELECT]:t(a,{}),[e.DATE_SINGLE]:t(i,{variant:s.SINGLE}),[e.DATE_RANGE]:t(i,{variant:s.RANGE})}[m]};export{m as default};
|
|
2
|
+
//# sourceMappingURL=FilterSelectOptionPanel-I72i1SwM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelectOptionPanel-I72i1SwM.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|