@bbodek/internal-ui 0.0.53 → 0.0.54
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-QKMmeHy8.js → FilterCalendarPanel-0O0NEUC1.js} +2 -2
- package/dist/FilterCalendarPanel-0O0NEUC1.js.map +1 -0
- package/dist/{FilterMultiSelectPanel-Bg3cYP7z.js → FilterMultiSelectPanel-yaOVxr1d.js} +2 -2
- package/dist/FilterMultiSelectPanel-yaOVxr1d.js.map +1 -0
- package/dist/{FilterSelectOptionPanel-skgGF4rl.js → FilterSelectOptionPanel-CfAW6FYO.js} +2 -2
- package/dist/FilterSelectOptionPanel-CfAW6FYO.js.map +1 -0
- package/dist/components/Table/Table.d.ts +2 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/TableBody.d.ts +1 -1
- package/dist/components/Table/TableBody.d.ts.map +1 -1
- package/dist/components/Table/TableBodyLoading.d.ts +4 -0
- package/dist/components/Table/TableBodyLoading.d.ts.map +1 -0
- package/dist/components/Table/types/index.d.ts +6 -0
- package/dist/components/Table/types/index.d.ts.map +1 -1
- package/dist/{index-BjcUtA_8.js → index-CylP5mZr.js} +2 -2
- package/dist/{index-BjcUtA_8.js.map → index-CylP5mZr.js.map} +1 -1
- package/dist/index.es.js +1 -1
- package/dist/{useFilterSelectOptionPanel-D6qELHKg.js → useFilterSelectOptionPanel-C-zqp3DF.js} +2 -2
- package/dist/useFilterSelectOptionPanel-C-zqp3DF.js.map +1 -0
- package/package.json +5 -5
- package/dist/FilterCalendarPanel-QKMmeHy8.js.map +0 -1
- package/dist/FilterMultiSelectPanel-Bg3cYP7z.js.map +0 -1
- package/dist/FilterSelectOptionPanel-skgGF4rl.js.map +0 -1
- package/dist/useFilterSelectOptionPanel-D6qELHKg.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-CylP5mZr.js";import"@bbodek/utils";import{F as m,u}from"./useFilterSelectOptionPanel-C-zqp3DF.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-0O0NEUC1.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterCalendarPanel-0O0NEUC1.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-C-zqp3DF.js";import{a as n,M as s,b as i,c as r,e as m,f as c}from"./index-CylP5mZr.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-yaOVxr1d.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterMultiSelectPanel-yaOVxr1d.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-CylP5mZr.js";import"react";import"@bbodek/utils";import"react-dom";import"@bbodek/hooks";const a=o((()=>import("./FilterMultiSelectPanel-yaOVxr1d.js")),{ssr:!1}),i=o((()=>import("./FilterCalendarPanel-0O0NEUC1.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-CfAW6FYO.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterSelectOptionPanel-CfAW6FYO.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -4,7 +4,7 @@ declare const Table: {
|
|
|
4
4
|
({ caption, children, className, }: PropsWithChildren<TableProps>): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
displayName: string;
|
|
6
6
|
Head: ({ children, className, }: PropsWithChildren<import("../../components/Table/types").TableHeadProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
Body: ({ children, className, emptyComponent, }: PropsWithChildren<import("../../components/Table/types").TableBodyProps>) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
Body: ({ children, className, isLoading, loadingComponent, emptyComponent, }: PropsWithChildren<import("../../components/Table/types").TableBodyProps>) => import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
Row: ({ variant, className, children, }: import("../../components/Table/types").TableRowProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
9
|
Cell: {
|
|
10
10
|
({ role, isFixedLeft, children, className, }: import("../../components/Table/types").TableCellProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -18,6 +18,7 @@ declare const Table: {
|
|
|
18
18
|
InputCell: ({ value, name, type, isError, feedback, onChange, regCallback, className, maxLength, ...rest }: import("../../components/Table/types").TableInputCellProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
19
|
SearchEmpty: () => import("react/jsx-runtime").JSX.Element;
|
|
20
20
|
Empty: () => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
Loading: <T extends string>({ mapper, styles, }: import("../../components/Table/types").TableBodySkeletonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
21
22
|
};
|
|
22
23
|
export default Table;
|
|
23
24
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAe1C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,QAAA,MAAM,KAAK;wCAIR,iBAAiB,CAAC,UAAU,CAAC;;;;;;;;;;;;;;;;;;CAgB/B,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropsWithChildren } from 'react';
|
|
2
2
|
import { TableBodyProps } from '../../components/Table/types';
|
|
3
|
-
declare const TableBody: ({ children, className, emptyComponent, }: PropsWithChildren<TableBodyProps>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const TableBody: ({ children, className, isLoading, loadingComponent, emptyComponent, }: PropsWithChildren<TableBodyProps>) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default TableBody;
|
|
5
5
|
//# sourceMappingURL=TableBody.d.ts.map
|
|
@@ -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;
|
|
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,4CA+BnC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TableBodySkeletonProps } from '../../components/Table/types';
|
|
2
|
+
declare const TableBodyLoading: <T extends string>({ mapper, styles, }: TableBodySkeletonProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default TableBodyLoading;
|
|
4
|
+
//# sourceMappingURL=TableBodyLoading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableBodyLoading.d.ts","sourceRoot":"","sources":["../../../src/components/Table/TableBodyLoading.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAElE,QAAA,MAAM,gBAAgB,GAAI,CAAC,SAAS,MAAM,EAAE,qBAGzC,sBAAsB,CAAC,CAAC,CAAC,4CA4B3B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -11,6 +11,12 @@ export interface TableHeadProps extends Pick<HTMLAttributes<HTMLDivElement>, 'cl
|
|
|
11
11
|
}
|
|
12
12
|
export interface TableBodyProps extends Pick<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
13
13
|
emptyComponent?: ReactElement;
|
|
14
|
+
loadingComponent?: ReactElement;
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface TableBodySkeletonProps<T extends string> {
|
|
18
|
+
mapper: Record<string, T>;
|
|
19
|
+
styles: Record<T, string>;
|
|
14
20
|
}
|
|
15
21
|
export interface TableRowProps extends PropsWithChildren, Pick<HTMLAttributes<HTMLDivElement>, 'className'> {
|
|
16
22
|
variant?: TableRowVariant;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,aAAa,GACvB,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Table/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,aAAa,GACvB,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAE3D,MAAM,WAAW,UACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,CAAC;IACzD,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC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