@bbodek/internal-ui 0.0.55 → 0.0.57
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-GPsy19-f.js → FilterCalendarPanel-C7KZ8Ku8.js} +2 -2
- package/dist/FilterCalendarPanel-C7KZ8Ku8.js.map +1 -0
- package/dist/{FilterMultiSelectPanel-DxKk5Jly.js → FilterMultiSelectPanel-B4ORAehT.js} +2 -2
- package/dist/FilterMultiSelectPanel-B4ORAehT.js.map +1 -0
- package/dist/{FilterSelectOptionPanel-A4yNvqC8.js → FilterSelectOptionPanel-BPCbe4-a.js} +2 -2
- package/dist/FilterSelectOptionPanel-BPCbe4-a.js.map +1 -0
- package/dist/components/FileUploader/FileUploader.d.ts +4 -0
- package/dist/components/FileUploader/FileUploader.d.ts.map +1 -0
- package/dist/components/FileUploader/FileUploaderDescription.d.ts +4 -0
- package/dist/components/FileUploader/FileUploaderDescription.d.ts.map +1 -0
- package/dist/components/FileUploader/FileUploaderTitle.d.ts +4 -0
- package/dist/components/FileUploader/FileUploaderTitle.d.ts.map +1 -0
- package/dist/components/FileUploader/constants.d.ts +7 -0
- package/dist/components/FileUploader/constants.d.ts.map +1 -0
- package/dist/components/FileUploader/index.d.ts +3 -0
- package/dist/components/FileUploader/index.d.ts.map +1 -0
- package/dist/components/FileUploader/types/index.d.ts +5 -0
- package/dist/components/FileUploader/types/index.d.ts.map +1 -0
- package/dist/components/Table/TableBody.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/index-Ckzqaf7w.js +2 -0
- package/dist/{index-ClmoNXoi.js.map → index-Ckzqaf7w.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{useFilterSelectOptionPanel-CvHptZ9a.js → useFilterSelectOptionPanel-DFwn0nnE.js} +2 -2
- package/dist/useFilterSelectOptionPanel-DFwn0nnE.js.map +1 -0
- package/package.json +6 -6
- package/dist/FilterCalendarPanel-GPsy19-f.js.map +0 -1
- package/dist/FilterMultiSelectPanel-DxKk5Jly.js.map +0 -1
- package/dist/FilterSelectOptionPanel-A4yNvqC8.js.map +0 -1
- package/dist/index-ClmoNXoi.js +0 -2
- package/dist/useFilterSelectOptionPanel-CvHptZ9a.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-Ckzqaf7w.js";import"@bbodek/utils";import{F as m,u}from"./useFilterSelectOptionPanel-DFwn0nnE.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-C7KZ8Ku8.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterCalendarPanel-C7KZ8Ku8.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-DFwn0nnE.js";import{a as n,M as s,b as i,c as r,e as m,f as c}from"./index-Ckzqaf7w.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-B4ORAehT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMultiSelectPanel-B4ORAehT.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-Ckzqaf7w.js";import"react";import"@bbodek/utils";import"react-dom";import"@bbodek/hooks";const a=o((()=>import("./FilterMultiSelectPanel-B4ORAehT.js")),{ssr:!1}),i=o((()=>import("./FilterCalendarPanel-C7KZ8Ku8.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-BPCbe4-a.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelectOptionPanel-BPCbe4-a.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FileUploaderProps } from '../../components/FileUploader/types';
|
|
2
|
+
declare const FileUploader: ({ accept, disabled, rejectedFiles, max, rootProps, inputProps, className, }: FileUploaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FileUploader;
|
|
4
|
+
//# sourceMappingURL=FileUploader.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploader.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/FileUploader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,QAAA,MAAM,YAAY,GAAI,6EAQnB,iBAAiB,4CA6BnB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FileUploaderProps } from '../../components/FileUploader/types';
|
|
2
|
+
declare const FileUploaderDescription: ({ accept, max, }: Required<Pick<FileUploaderProps, "accept" | "max">>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FileUploaderDescription;
|
|
4
|
+
//# sourceMappingURL=FileUploaderDescription.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploaderDescription.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/FileUploaderDescription.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAGpE,QAAA,MAAM,uBAAuB,GAAI,kBAG9B,QAAQ,CAAC,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,KAAK,CAAC,CAAC,4CAQrD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { FileUploaderProps } from '../../components/FileUploader/types';
|
|
2
|
+
declare const FileUploaderTitle: ({ disabled, }: Pick<FileUploaderProps, "disabled">) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default FileUploaderTitle;
|
|
4
|
+
//# sourceMappingURL=FileUploaderTitle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUploaderTitle.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/FileUploaderTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAIpE,QAAA,MAAM,iBAAiB,GAAI,eAExB,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,4CAWrC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const FILE_UPLOADER_STYLES: {
|
|
2
|
+
readonly DEFAULT: "border-in-gray-03 bg-white cursor-pointer in-tablet:cursor-pointer";
|
|
3
|
+
readonly HOVER: "in-tablet:hover:border-in-primary-07 in-tablet:hover:bg-in-primary-01";
|
|
4
|
+
readonly ERROR: "border-in-red-04 bg-in-red-01 cursor-pointer";
|
|
5
|
+
readonly DISABLED: "border-in-gray-03 bg-in-gray-02 cursor-not-allowed";
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB;;;;;CAMvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileUploader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DropzoneState, UseDropzone, UseDropzoneReturn } from '@bbodek/hooks';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
export interface FileUploaderProps extends Pick<UseDropzone, 'accept' | 'disabled' | 'max'>, Pick<UseDropzoneReturn, 'rootProps' | 'inputProps'>, Pick<DropzoneState, 'rejectedFiles'>, Pick<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
4
|
+
}
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/FileUploader/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,UAAU,GAAG,KAAK,CAAC,EACtD,IAAI,CAAC,iBAAiB,EAAE,WAAW,GAAG,YAAY,CAAC,EACnD,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC,EACpC,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC;CAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBody.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0B,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOlE,OAAO,EAAE,cAAc,EAAiB,MAAM,0BAA0B,CAAC;AAOzE,QAAA,MAAM,SAAS,GAAI,uEAMhB,iBAAiB,CAAC,cAAc,CAAC,
|
|
1
|
+
{"version":3,"file":"TableBody.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBody.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0B,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAOlE,OAAO,EAAE,cAAc,EAAiB,MAAM,0BAA0B,CAAC;AAOzE,QAAA,MAAM,SAAS,GAAI,uEAMhB,iBAAiB,CAAC,cAAc,CAAC,4CA6BnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cA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