@odx/websites-react 1.0.37 → 1.0.38
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/components/actions/filterPanel/FilterPanel.d.ts +18 -13
- package/dist/components/actions/filterPanel/FilterPanel.d.ts.map +1 -1
- package/dist/components/actions/filterPanel/FilterPanel.js +9 -7
- package/dist/components/actions/filterPanel/FilterPanel.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,25 +1,30 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { HeadlineProps } from '../../typography/headline';
|
|
3
|
+
import { ButtonProps } from '../button';
|
|
3
4
|
export interface FilterPanelProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
children
|
|
5
|
-
headline: string;
|
|
6
|
-
buttonLabel?: React.ReactNode;
|
|
7
|
-
headerClassName?: string;
|
|
8
|
-
className?: string;
|
|
9
|
-
clearButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
10
|
-
headlineActAs?: HeadlineProps['actAs'];
|
|
5
|
+
children?: React.ReactNode;
|
|
11
6
|
}
|
|
12
7
|
declare const FilterPanel: React.FC<FilterPanelProps>;
|
|
13
8
|
export interface FilterPanelHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
clearButtonProps?: React.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
9
|
+
headline?: string;
|
|
10
|
+
clearButtonLabel?: string;
|
|
11
|
+
clearButtonProps?: Omit<ButtonProps, 'icon'>;
|
|
18
12
|
headlineActAs?: HeadlineProps['actAs'];
|
|
19
13
|
}
|
|
14
|
+
declare const FilterPanelHeader: React.FC<FilterPanelHeaderProps>;
|
|
15
|
+
export interface FilterPanelFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
footerButtonLabel?: string;
|
|
17
|
+
footerButtonProps?: Omit<ButtonProps, 'icon'>;
|
|
18
|
+
footerButtonIcon?: React.ReactNode;
|
|
19
|
+
}
|
|
20
|
+
declare const FilterPanelFooter: React.FC<FilterPanelFooterProps>;
|
|
20
21
|
export interface FilterPanelCategoryProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
21
|
-
headline
|
|
22
|
+
headline?: string;
|
|
23
|
+
headlineActAs?: HeadlineProps['actAs'];
|
|
22
24
|
}
|
|
23
25
|
declare const FilterPanelCategory: React.FC<FilterPanelCategoryProps>;
|
|
24
|
-
export
|
|
26
|
+
export interface FilterPanelCategoryRowProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
27
|
+
}
|
|
28
|
+
declare const FilterPanelCategoryRow: React.FC<FilterPanelCategoryRowProps>;
|
|
29
|
+
export { FilterPanel, FilterPanelHeader, FilterPanelFooter, FilterPanelCategory, FilterPanelCategoryRow, };
|
|
25
30
|
//# sourceMappingURL=FilterPanel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/filterPanel/FilterPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAW,aAAa,EAAC,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"FilterPanel.d.ts","sourceRoot":"","sources":["../../../../src/components/actions/filterPanel/FilterPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAW,aAAa,EAAC,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAS,WAAW,EAAC,MAAM,WAAW,CAAC;AAG9C,MAAM,WAAW,gBAAiB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC5E,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAM3C,CAAC;AAEF,M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
|
import { Button } from '../button';
|
|
5
5
|
import { Icon } from '../../images-icons/icon';
|
|
6
|
-
const FilterPanel = ({ children,
|
|
7
|
-
return (
|
|
6
|
+
const FilterPanel = ({ children, ...props }) => {
|
|
7
|
+
return (_jsx("div", { className: "flex flex-col gap-6", ...props, children: children }));
|
|
8
8
|
};
|
|
9
|
-
const FilterPanelHeader = ({
|
|
10
|
-
|
|
9
|
+
const FilterPanelHeader = ({ headline, className, headlineActAs, clearButtonProps, clearButtonLabel, ...props }) => {
|
|
10
|
+
const hasContent = Boolean(headline || clearButtonLabel);
|
|
11
|
+
return (hasContent && (_jsxs("div", { className: cn('flex justify-between items-center', className), ...props, children: [headline && (_jsx(Headline, { headingLevel: 'h5', actAs: headlineActAs, children: headline })), _jsx(Button, { ...clearButtonProps, variant: "ghost", size: "sm", iconLeft: _jsx(Icon, { iconSet: "core", iconName: "reload" }), children: clearButtonLabel })] })));
|
|
11
12
|
};
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
const FilterPanelFooter = ({ footerButtonProps, footerButtonLabel, footerButtonIcon, }) => (footerButtonProps || footerButtonLabel) && (_jsx("div", { className: "flex justify-end", children: _jsx(Button, { ...footerButtonProps, iconLeft: footerButtonIcon, children: footerButtonLabel }) }));
|
|
14
|
+
const FilterPanelCategory = ({ headline, headlineActAs, children, ...props }) => (_jsxs("div", { ...props, children: [headline && (_jsx(Headline, { headingLevel: "h5", className: "mb-6", actAs: headlineActAs, children: headline })), _jsx("div", { className: cn('flex flex-col gap-6'), children: children })] }));
|
|
15
|
+
const FilterPanelCategoryRow = ({ children, ...props }) => (_jsx("div", { className: 'grid grid-cols-[repeat(auto-fit,minmax(16.875rem,1fr))] gap-6', ...props, children: children }));
|
|
16
|
+
export { FilterPanel, FilterPanelHeader, FilterPanelFooter, FilterPanelCategory, FilterPanelCategoryRow, };
|
|
15
17
|
//# sourceMappingURL=FilterPanel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterPanel.js","sourceRoot":"","sources":["../../../../src/components/actions/filterPanel/FilterPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"FilterPanel.js","sourceRoot":"","sources":["../../../../src/components/actions/filterPanel/FilterPanel.tsx"],"names":[],"mappings":";AACA,OAAO,EAAC,EAAE,EAAC,MAAM,gBAAgB,CAAC;AAClC,OAAO,EAAC,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAC,MAAM,EAAc,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAC,MAAM,yBAAyB,CAAC;AAM7C,MAAM,WAAW,GAA+B,CAAC,EAAC,QAAQ,EAAE,GAAG,KAAK,EAAC,EAAE,EAAE;IACvE,OAAO,CACL,cAAK,SAAS,EAAC,qBAAqB,KAAK,KAAK,YAC3C,QAAQ,GACL,CACP,CAAC;AACJ,CAAC,CAAC;AAUF,MAAM,iBAAiB,GAAqC,CAAC,EAC3D,QAAQ,EACR,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,OAAO,CAAC,QAAQ,IAAI,gBAAgB,CAAC,CAAC;IAEzD,OAAO,CACL,UAAU,IAAI,CACZ,eACE,SAAS,EAAE,EAAE,CAAC,mCAAmC,EAAE,SAAS,CAAC,KACzD,KAAK,aAER,QAAQ,IAAI,CACX,KAAC,QAAQ,IAAC,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,YAC/C,QAAQ,GACA,CACZ,EACD,KAAC,MAAM,OACD,gBAAgB,EACpB,OAAO,EAAC,OAAO,EACf,IAAI,EAAC,IAAI,EACT,QAAQ,EAAE,KAAC,IAAI,IAAC,OAAO,EAAC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