@loykin/datetime-range 0.0.1 → 0.0.2

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/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default from 'react';
3
- import { D as DatetimeRangeUIAdapter } from './UIAdapterContext-Bm35TZtL.cjs';
4
- export { a as DatetimeRangeProvider, u as useDatetimeRangeUI } from './UIAdapterContext-Bm35TZtL.cjs';
3
+ import { D as DatetimeRangeUIAdapter } from './UIAdapterContext-By3WJ5Ep.cjs';
4
+ export { a as DatetimeRangeProvider, u as useDatetimeRangeUI } from './UIAdapterContext-By3WJ5Ep.cjs';
5
5
  import { DayPicker } from 'react-day-picker';
6
6
  import '@base-ui/react/button';
7
7
  import '@base-ui/react/popover';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import React__default from 'react';
3
- import { D as DatetimeRangeUIAdapter } from './UIAdapterContext-Bm35TZtL.js';
4
- export { a as DatetimeRangeProvider, u as useDatetimeRangeUI } from './UIAdapterContext-Bm35TZtL.js';
3
+ import { D as DatetimeRangeUIAdapter } from './UIAdapterContext-By3WJ5Ep.js';
4
+ export { a as DatetimeRangeProvider, u as useDatetimeRangeUI } from './UIAdapterContext-By3WJ5Ep.js';
5
5
  import { DayPicker } from 'react-day-picker';
6
6
  import '@base-ui/react/button';
7
7
  import '@base-ui/react/popover';
package/dist/index.js CHANGED
@@ -31,6 +31,11 @@ function Button({
31
31
  className,
32
32
  variant = "default",
33
33
  size = "default",
34
+ // @base-ui/react's own Button/useButton() already defaults type="button" internally on
35
+ // every path this wraps, so this default is redundant today — kept anyway as a fallback
36
+ // that doesn't depend on that undocumented (type isn't part of the public prop types)
37
+ // upstream behavior continuing to hold across base-ui versions.
38
+ type = "button",
34
39
  ...props
35
40
  }) {
36
41
  return /* @__PURE__ */ jsx(
@@ -39,6 +44,7 @@ function Button({
39
44
  "data-slot": "button",
40
45
  "data-variant": variant,
41
46
  "data-size": size,
47
+ type,
42
48
  className: buttonVariants({ variant, size, className: typeof className === "string" ? className : void 0 }),
43
49
  ...props
44
50
  }