@react-fabric/superdate 1.0.0-beta.52 → 1.0.0-beta.54

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.
@@ -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", {
@@ -71,6 +71,7 @@ var RelativeInput = function RelativeInput(_ref) {
71
71
  }), showApply && /*#__PURE__*/jsxRuntime.jsx(core.Button, {
72
72
  variant: "solid",
73
73
  type: "submit",
74
+ "data-dropdown-dismiss": "true",
74
75
  children: t("label.apply")
75
76
  })]
76
77
  });
@@ -80,6 +80,7 @@ var RelativePanel = function RelativePanel(_ref) {
80
80
  children: /*#__PURE__*/jsxRuntime.jsx(core.Button, {
81
81
  variant: "solid",
82
82
  type: "submit",
83
+ "data-dropdown-dismiss": "true",
83
84
  children: t("label.apply")
84
85
  })
85
86
  })]
@@ -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", {
@@ -71,6 +71,7 @@ var RelativeInput = function RelativeInput(_ref) {
71
71
  }), showApply && /*#__PURE__*/jsx(Button, {
72
72
  variant: "solid",
73
73
  type: "submit",
74
+ "data-dropdown-dismiss": "true",
74
75
  children: t("label.apply")
75
76
  })]
76
77
  });
@@ -80,6 +80,7 @@ var RelativePanel = function RelativePanel(_ref) {
80
80
  children: /*#__PURE__*/jsx(Button, {
81
81
  variant: "solid",
82
82
  type: "submit",
83
+ "data-dropdown-dismiss": "true",
83
84
  children: t("label.apply")
84
85
  })
85
86
  })]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-fabric/superdate",
3
- "version": "1.0.0-beta.52",
3
+ "version": "1.0.0-beta.54",
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.52",
40
- "@react-fabric/date": "^1.0.0-beta.52",
41
- "@react-fabric/form": "^1.0.0-beta.52",
39
+ "@react-fabric/core": "^1.0.0-beta.54",
40
+ "@react-fabric/date": "^1.0.0-beta.54",
41
+ "@react-fabric/form": "^1.0.0-beta.54",
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": "0eabb9d88d91af93d657bcc209b226fd576e8260"
60
+ "gitHead": "242f15e3de29d365cce6f41f4ef99ab36bb6b995"
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 className="grid grid-cols-3 flex-row text-sm gap-2">
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>