globalfy-design-system 1.30.0 → 1.32.0
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/molecules/DatePickerRangeInput/DatePickerRangeInput.d.ts +2 -1
- package/dist/components/molecules/DatePickerRangeInput/DatePickerRangeInput.stories.d.ts +1 -1
- package/dist/globalfy-design-system.js +22 -16
- package/dist/globalfy-design-system.umd.cjs +2 -2
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ export type DatePickerRangeInputProps = {
|
|
|
4
4
|
label: string;
|
|
5
5
|
onSelect: (date: DateRange | undefined) => void;
|
|
6
6
|
disabled?: boolean;
|
|
7
|
+
dateFormat?: string;
|
|
7
8
|
selected: DateRange | undefined;
|
|
8
9
|
};
|
|
9
|
-
export declare const DatePickerRangeInput: ({ label, onSelect, disabled, selected }: DatePickerRangeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export declare const DatePickerRangeInput: ({ label, onSelect, disabled, selected, dateFormat, }: DatePickerRangeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ label, onSelect, disabled, selected }: import('./DatePickerRangeInput').DatePickerRangeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: ({ label, onSelect, disabled, selected, dateFormat, }: import('./DatePickerRangeInput').DatePickerRangeInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
tags: string[];
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
@@ -44153,7 +44153,7 @@ const qe0 = ({ size: e = "md", className: r, border: t = !1, image: n, label: a,
|
|
|
44153
44153
|
}
|
|
44154
44154
|
);
|
|
44155
44155
|
}, Qe0 = L0({
|
|
44156
|
-
base: "bg-white font-satoshi font-bold
|
|
44156
|
+
base: "bg-white font-satoshi font-bold uppercase text-white",
|
|
44157
44157
|
variants: {
|
|
44158
44158
|
size: {
|
|
44159
44159
|
lg: "h-28 w-28 text-[48px]",
|
|
@@ -57838,7 +57838,7 @@ const w30 = Qc0, y30 = t30, b30 = r30, A30 = a30, x30 = i30, C30 = d30, Qz0 = ({
|
|
|
57838
57838
|
children: /* @__PURE__ */ M.jsx("div", { children: /* @__PURE__ */ M.jsx(
|
|
57839
57839
|
bB,
|
|
57840
57840
|
{
|
|
57841
|
-
value: u ? pt(u, n ?? "dd/
|
|
57841
|
+
value: u ? pt(u, n ?? "MM/dd/yyyy") : "",
|
|
57842
57842
|
onClick: p,
|
|
57843
57843
|
isDatePicker: !0,
|
|
57844
57844
|
label: e,
|
|
@@ -57848,19 +57848,25 @@ const w30 = Qc0, y30 = t30, b30 = r30, A30 = a30, x30 = i30, C30 = d30, Qz0 = ({
|
|
|
57848
57848
|
) })
|
|
57849
57849
|
}
|
|
57850
57850
|
);
|
|
57851
|
-
}, tU0 = ({
|
|
57852
|
-
|
|
57853
|
-
|
|
57854
|
-
|
|
57855
|
-
|
|
57856
|
-
|
|
57851
|
+
}, tU0 = ({
|
|
57852
|
+
label: e,
|
|
57853
|
+
onSelect: r,
|
|
57854
|
+
disabled: t,
|
|
57855
|
+
selected: n,
|
|
57856
|
+
dateFormat: a
|
|
57857
|
+
}) => {
|
|
57858
|
+
const [l, c] = V0(!1), u = n == null ? void 0 : n.from, h = n == null ? void 0 : n.to, p = () => {
|
|
57859
|
+
c(!0);
|
|
57860
|
+
}, f = (x) => r(x), g = () => {
|
|
57861
|
+
c(!1);
|
|
57862
|
+
}, v = L0({
|
|
57857
57863
|
base: "flex w-full max-w-[18.813rem] items-center justify-between gap-4 rounded-lg border border-primary-grey-700 px-4 py-[6px]",
|
|
57858
57864
|
variants: {
|
|
57859
57865
|
disabled: {
|
|
57860
57866
|
true: "cursor-not-allowed border-none bg-primary-grey-500"
|
|
57861
57867
|
}
|
|
57862
57868
|
}
|
|
57863
|
-
}),
|
|
57869
|
+
}), w = L0({
|
|
57864
57870
|
base: "font-satoshi text-sm font-normal leading-6 text-primary-grey-800",
|
|
57865
57871
|
variants: {
|
|
57866
57872
|
hasValue: {
|
|
@@ -57871,20 +57877,20 @@ const w30 = Qc0, y30 = t30, b30 = r30, A30 = a30, x30 = i30, C30 = d30, Qz0 = ({
|
|
|
57871
57877
|
return /* @__PURE__ */ M.jsx(
|
|
57872
57878
|
aT,
|
|
57873
57879
|
{
|
|
57874
|
-
isOpen:
|
|
57880
|
+
isOpen: l,
|
|
57875
57881
|
align: "start",
|
|
57876
|
-
onInteractOutside:
|
|
57882
|
+
onInteractOutside: g,
|
|
57877
57883
|
className: "z-50 mr-5",
|
|
57878
57884
|
side: "bottom",
|
|
57879
|
-
content: /* @__PURE__ */ M.jsx(jr0, { selected: n, onSelect:
|
|
57880
|
-
children: /* @__PURE__ */ M.jsxs("button", { type: "button", disabled: t, onClick:
|
|
57885
|
+
content: /* @__PURE__ */ M.jsx(jr0, { selected: n, onSelect: f }),
|
|
57886
|
+
children: /* @__PURE__ */ M.jsxs("button", { type: "button", disabled: t, onClick: p, className: v({ disabled: t }), children: [
|
|
57881
57887
|
/* @__PURE__ */ M.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
57882
57888
|
/* @__PURE__ */ M.jsx("span", { className: "text-start font-satoshi text-sm font-normal leading-normal text-primary-grey-800", children: e }),
|
|
57883
|
-
/* @__PURE__ */ M.jsxs("span", { className:
|
|
57884
|
-
|
|
57889
|
+
/* @__PURE__ */ M.jsxs("span", { className: w({ hasValue: n !== void 0 }), children: [
|
|
57890
|
+
u ? pt(u, a ?? "MM/dd/yyyy") : "DD/MM/YYYY",
|
|
57885
57891
|
" -",
|
|
57886
57892
|
" ",
|
|
57887
|
-
|
|
57893
|
+
h ? pt(h, a ?? "MM/dd/yyyy") : "DD/MM/YYYY"
|
|
57888
57894
|
] })
|
|
57889
57895
|
] }),
|
|
57890
57896
|
/* @__PURE__ */ M.jsx(We, { name: "calendar", className: "shrink-0" })
|