@react-fabric/superdate 1.0.0-beta.53 → 1.0.0-beta.55
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/cjs/superdate/QuickSelect.js +1 -0
- package/dist/cjs/superdate/RelativeInput.js +1 -0
- package/dist/cjs/superdate/RelativePanel.js +1 -0
- package/dist/esm/superdate/QuickSelect.js +1 -0
- package/dist/esm/superdate/RelativeInput.js +1 -0
- package/dist/esm/superdate/RelativePanel.js +1 -0
- package/package.json +5 -5
- package/src/superdate/QuickSelect.tsx +4 -1
- package/src/superdate/RelativeInput.tsx +1 -1
- package/src/superdate/RelativePanel.tsx +1 -1
|
@@ -115,6 +115,7 @@ var QuickSelect = function QuickSelect(_ref) {
|
|
|
115
115
|
}), /*#__PURE__*/jsxRuntime.jsx(core.Divider, {
|
|
116
116
|
children: t("superdate:label.preset")
|
|
117
117
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
118
|
+
"data-dropdown-dismiss": "true",
|
|
118
119
|
className: "grid grid-cols-3 flex-row text-sm gap-2",
|
|
119
120
|
children: presets.map(function (pr) {
|
|
120
121
|
return /*#__PURE__*/jsxRuntime.jsx("button", {
|
|
@@ -115,6 +115,7 @@ var QuickSelect = function QuickSelect(_ref) {
|
|
|
115
115
|
}), /*#__PURE__*/jsx(Divider, {
|
|
116
116
|
children: t("superdate:label.preset")
|
|
117
117
|
}), /*#__PURE__*/jsx("div", {
|
|
118
|
+
"data-dropdown-dismiss": "true",
|
|
118
119
|
className: "grid grid-cols-3 flex-row text-sm gap-2",
|
|
119
120
|
children: presets.map(function (pr) {
|
|
120
121
|
return /*#__PURE__*/jsx("button", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-fabric/superdate",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.55",
|
|
4
4
|
"description": "RUF: Superdate package for relative dates",
|
|
5
5
|
"author": "Adarsh Pastakia <adarshpastakia@outlook.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@floating-ui/react": "^0.27.9",
|
|
39
|
-
"@react-fabric/core": "^1.0.0-beta.
|
|
40
|
-
"@react-fabric/date": "^1.0.0-beta.
|
|
41
|
-
"@react-fabric/form": "^1.0.0-beta.
|
|
39
|
+
"@react-fabric/core": "^1.0.0-beta.55",
|
|
40
|
+
"@react-fabric/date": "^1.0.0-beta.55",
|
|
41
|
+
"@react-fabric/form": "^1.0.0-beta.55",
|
|
42
42
|
"@react-fabric/utilities": "^1.0.0-beta.52",
|
|
43
43
|
"classnames": "^2.5.1",
|
|
44
44
|
"date-fns": "^4.1.0",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"node": ">=18.12.0",
|
|
58
58
|
"npm": ">=8.19.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "c8454798fb7546174ee8c7ea10e491c5e903e789"
|
|
61
61
|
}
|
|
@@ -105,7 +105,10 @@ export const QuickSelect = ({
|
|
|
105
105
|
</Form>
|
|
106
106
|
</div>
|
|
107
107
|
<Divider>{t("superdate:label.preset")}</Divider>
|
|
108
|
-
<div
|
|
108
|
+
<div
|
|
109
|
+
data-dropdown-dismiss="true"
|
|
110
|
+
className="grid grid-cols-3 flex-row text-sm gap-2"
|
|
111
|
+
>
|
|
109
112
|
{presets.map((pr: KeyValue) => (
|
|
110
113
|
<button
|
|
111
114
|
key={pr.value}
|
|
@@ -55,7 +55,7 @@ export const RelativeInput = ({ label, prefix, showApply }: KeyValue) => {
|
|
|
55
55
|
/>
|
|
56
56
|
</Controller>
|
|
57
57
|
{showApply && (
|
|
58
|
-
<Button variant="solid" type="submit">
|
|
58
|
+
<Button variant="solid" type="submit" data-dropdown-dismiss="true">
|
|
59
59
|
{t("label.apply")}
|
|
60
60
|
</Button>
|
|
61
61
|
)}
|
|
@@ -92,7 +92,7 @@ export const RelativePanel = ({ value = "", onChange }: KeyValue) => {
|
|
|
92
92
|
<RelativeInput label={t("label.from")} prefix="from" />
|
|
93
93
|
<RelativeInput label={t("label.to")} prefix="to" />
|
|
94
94
|
<div className="flex justify-end">
|
|
95
|
-
<Button variant="solid" type="submit">
|
|
95
|
+
<Button variant="solid" type="submit" data-dropdown-dismiss="true">
|
|
96
96
|
{t("label.apply")}
|
|
97
97
|
</Button>
|
|
98
98
|
</div>
|