@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/{UIAdapterContext-Bm35TZtL.d.cts → UIAdapterContext-By3WJ5Ep.d.cts} +1 -1
- package/dist/{UIAdapterContext-Bm35TZtL.d.ts → UIAdapterContext-By3WJ5Ep.d.ts} +1 -1
- package/dist/adapters/shadcn.cjs +4 -3
- package/dist/adapters/shadcn.cjs.map +1 -1
- package/dist/adapters/shadcn.d.cts +1 -1
- package/dist/adapters/shadcn.d.ts +1 -1
- package/dist/adapters/shadcn.js +4 -3
- package/dist/adapters/shadcn.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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-
|
|
4
|
-
export { a as DatetimeRangeProvider, u as useDatetimeRangeUI } from './UIAdapterContext-
|
|
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-
|
|
4
|
-
export { a as DatetimeRangeProvider, u as useDatetimeRangeUI } from './UIAdapterContext-
|
|
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
|
}
|