@pagamio/frontend-commons-lib 0.8.243 → 0.8.245
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.
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { TimeInput as MantineTimeInput } from '@mantine/dates';
|
|
3
|
+
import { IconClock } from '@tabler/icons-react';
|
|
2
4
|
import React from 'react';
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
+
const TimeInput = React.forwardRef(({ field, error, ...props }, ref) => {
|
|
6
|
+
const { value, onChange, onBlur, name } = props;
|
|
7
|
+
return (_jsxs(_Fragment, { children: [_jsx("label", { htmlFor: field.name, className: "mb-1 block text-sm font-medium text-gray-700", children: field.label }), _jsx(MantineTimeInput, { ref: ref, id: field.name, name: name || field.name, value: value ?? '', onChange: onChange, onBlur: onBlur, disabled: field.disabled, leftSection: _jsx(IconClock, { size: 16 }), error: error?.message, styles: {
|
|
8
|
+
input: {
|
|
9
|
+
height: '42px',
|
|
10
|
+
},
|
|
11
|
+
} })] }));
|
|
12
|
+
});
|
|
5
13
|
export default TimeInput;
|
package/lib/index.d.ts
CHANGED
|
@@ -20,4 +20,5 @@ export * from './translations';
|
|
|
20
20
|
export * from './rbac';
|
|
21
21
|
export { useImageUpload } from './shared/hooks/useImageUpload';
|
|
22
22
|
export type { UseImageUploadProps, UploadResponse } from './shared/hooks/useImageUpload';
|
|
23
|
+
export { useAnyDrawerOpen } from './shared/hooks/useAnyDrawerOpen';
|
|
23
24
|
export * from './feedback';
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pagamio/frontend-commons-lib",
|
|
3
3
|
"description": "Pagamio library for Frontend reusable components like the form engine and table container",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.245",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"provenance": false
|