@orbe-agro/client-core-prod 5.5.52 → 5.5.53
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/@ecme/components/template/BottomStickyBar.js +3 -2
- package/dist/@ecme/components/template/BottomStickyBar.js.map +1 -1
- package/dist/@types/@ecme/components/template/BottomStickyBar.d.ts +1 -1
- package/dist/@types/@ecme/components/template/BottomStickyBar.d.ts.map +1 -1
- package/lib/@ecme/components/template/BottomStickyBar.tsx +2 -1
- package/package.json +1 -1
|
@@ -2,14 +2,15 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import classNames from "../../utils/classNames.js";
|
|
3
3
|
import useLayout from "../../utils/hooks/useLayout.js";
|
|
4
4
|
import { LAYOUT_CONTENT_OVERLAY } from "../../constants/theme.constant.js";
|
|
5
|
-
const BottomStickyBar = ({ children }) => {
|
|
5
|
+
const BottomStickyBar = ({ children, className }) => {
|
|
6
6
|
const { type } = useLayout();
|
|
7
7
|
return /* @__PURE__ */ jsx(
|
|
8
8
|
"div",
|
|
9
9
|
{
|
|
10
10
|
className: classNames(
|
|
11
11
|
"bottom-0 left-0 right-0 z-10 mt-8 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 py-4",
|
|
12
|
-
type === LAYOUT_CONTENT_OVERLAY ? "fixed" : "sticky"
|
|
12
|
+
type === LAYOUT_CONTENT_OVERLAY ? "fixed" : "sticky",
|
|
13
|
+
className
|
|
13
14
|
),
|
|
14
15
|
children
|
|
15
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomStickyBar.js","sources":["../../../../lib/@ecme/components/template/BottomStickyBar.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport useLayout from '@/utils/hooks/useLayout'\nimport type { CommonProps } from '@/@types/common'\nimport { LAYOUT_CONTENT_OVERLAY } from '@/constants/theme.constant'\n\nexport type BottomStickyBarProps = CommonProps\n\nconst BottomStickyBar = ({ children }: BottomStickyBarProps) => {\n const { type } = useLayout()\n\n return (\n <div\n className={classNames(\n 'bottom-0 left-0 right-0 z-10 mt-8 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 py-4',\n type === LAYOUT_CONTENT_OVERLAY ? 'fixed' : 'sticky',\n )}\n >\n {children}\n </div>\n )\n}\n\nexport default BottomStickyBar\n"],"names":[],"mappings":";;;;AAOA,MAAM,kBAAkB,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"BottomStickyBar.js","sources":["../../../../lib/@ecme/components/template/BottomStickyBar.tsx"],"sourcesContent":["import classNames from '@/utils/classNames'\nimport useLayout from '@/utils/hooks/useLayout'\nimport type { CommonProps } from '@/@types/common'\nimport { LAYOUT_CONTENT_OVERLAY } from '@/constants/theme.constant'\n\nexport type BottomStickyBarProps = CommonProps\n\nconst BottomStickyBar = ({ children, className }: BottomStickyBarProps) => {\n const { type } = useLayout()\n\n return (\n <div\n className={classNames(\n 'bottom-0 left-0 right-0 z-10 mt-8 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 py-4',\n type === LAYOUT_CONTENT_OVERLAY ? 'fixed' : 'sticky',\n className,\n )}\n >\n {children}\n </div>\n )\n}\n\nexport default BottomStickyBar\n"],"names":[],"mappings":";;;;AAOA,MAAM,kBAAkB,CAAC,EAAE,UAAU,gBAAsC;AACvE,QAAM,EAAE,KAAA,IAAS,UAAA;AAEjB,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACG,WAAW;AAAA,QACP;AAAA,QACA,SAAS,yBAAyB,UAAU;AAAA,QAC5C;AAAA,MAAA;AAAA,MAGH;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CommonProps } from '@/@types/common';
|
|
2
2
|
export type BottomStickyBarProps = CommonProps;
|
|
3
|
-
declare const BottomStickyBar: ({ children }: BottomStickyBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const BottomStickyBar: ({ children, className }: BottomStickyBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
export default BottomStickyBar;
|
|
5
5
|
//# sourceMappingURL=BottomStickyBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomStickyBar.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/template/BottomStickyBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGlD,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAA;AAE9C,QAAA,MAAM,eAAe,GAAI,
|
|
1
|
+
{"version":3,"file":"BottomStickyBar.d.ts","sourceRoot":"","sources":["../../../../../lib/@ecme/components/template/BottomStickyBar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGlD,MAAM,MAAM,oBAAoB,GAAG,WAAW,CAAA;AAE9C,QAAA,MAAM,eAAe,GAAI,yBAAyB,oBAAoB,4CAcrE,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -5,7 +5,7 @@ import { LAYOUT_CONTENT_OVERLAY } from '@/constants/theme.constant'
|
|
|
5
5
|
|
|
6
6
|
export type BottomStickyBarProps = CommonProps
|
|
7
7
|
|
|
8
|
-
const BottomStickyBar = ({ children }: BottomStickyBarProps) => {
|
|
8
|
+
const BottomStickyBar = ({ children, className }: BottomStickyBarProps) => {
|
|
9
9
|
const { type } = useLayout()
|
|
10
10
|
|
|
11
11
|
return (
|
|
@@ -13,6 +13,7 @@ const BottomStickyBar = ({ children }: BottomStickyBarProps) => {
|
|
|
13
13
|
className={classNames(
|
|
14
14
|
'bottom-0 left-0 right-0 z-10 mt-8 border-t border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 py-4',
|
|
15
15
|
type === LAYOUT_CONTENT_OVERLAY ? 'fixed' : 'sticky',
|
|
16
|
+
className,
|
|
16
17
|
)}
|
|
17
18
|
>
|
|
18
19
|
{children}
|
package/package.json
CHANGED