@balby/booking-search 1.0.2 → 1.0.4
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/README.md +24 -1
- package/dist/index.js +329 -1819
- package/package.json +11 -3
- package/src/demo.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@balby/booking-search",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,6 +9,15 @@
|
|
|
9
9
|
"module": "./dist/index.js",
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"type": "module",
|
|
12
|
+
"style": "./dist/index.css",
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles": "./dist/index.css"
|
|
20
|
+
},
|
|
12
21
|
"files": [
|
|
13
22
|
"dist",
|
|
14
23
|
"src",
|
|
@@ -43,7 +52,7 @@
|
|
|
43
52
|
"scripts": {
|
|
44
53
|
"dev": "bun run build:css && bun --watch index.ts",
|
|
45
54
|
"dev:css": "bun run build:css && bunx concurrently \"bun --watch index.ts\" \"bun run watch:css\"",
|
|
46
|
-
"build": "bun run build:css && bun build src/index.ts --outdir=dist --target=browser --format=esm",
|
|
55
|
+
"build": "bun run build:css && bun build src/index.ts --outdir=dist --target=browser --format=esm --external react --external react-dom --external react/jsx-runtime",
|
|
47
56
|
"build:css": "tailwindcss -i ./src/styles/globals.css -o ./src/styles/output.css --minify",
|
|
48
57
|
"build:types": "tsc -p tsconfig.build.json",
|
|
49
58
|
"watch:css": "tailwindcss -i ./src/styles/globals.css -o ./src/styles/output.css --watch",
|
|
@@ -70,7 +79,6 @@
|
|
|
70
79
|
"tailwindcss": ">=3.0.0"
|
|
71
80
|
},
|
|
72
81
|
"dependencies": {
|
|
73
|
-
"@balby/booking-search": "^1.0.1",
|
|
74
82
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
75
83
|
"@radix-ui/react-popover": "^1.1.15",
|
|
76
84
|
"@radix-ui/react-slot": "^1.2.4",
|
package/src/demo.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import { createRoot } from "react-dom/client"
|
|
3
|
-
import { BookingSearch } from "./components/booking-search"
|
|
3
|
+
import { BookingSearch } from "./components/booking-search";
|
|
4
4
|
import type { BookingSearchPayload, SearchLocation, AvailabilityDay } from "./types/booking"
|
|
5
5
|
import "./styles/output.css"
|
|
6
6
|
|