@ourtrip/ui 1.0.2 → 1.0.3
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.cjs.js +18366 -0
- package/dist/index.cjs.js.map +1 -0
- package/dist/index.esm.js +18312 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/types/components/button.d.ts +2 -2
- package/dist/types/components/sheet.d.ts +1 -1
- package/package.json +6 -2
- package/rollup.config.js +29 -0
- package/tsconfig.json +2 -3
|
@@ -2,10 +2,10 @@ import * as React from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
4
|
variant?: "fill" | "outline" | null | undefined;
|
|
5
|
-
color?: "
|
|
5
|
+
color?: "primary" | "secondary" | "danger" | "gray" | "white" | null | undefined;
|
|
6
6
|
size?: "small" | "normal" | "large" | "icon" | null | undefined;
|
|
7
7
|
shape?: "default" | "rounded" | null | undefined;
|
|
8
|
-
fontWeight?: "
|
|
8
|
+
fontWeight?: "normal" | "bold" | null | undefined;
|
|
9
9
|
fullWidth?: boolean | null | undefined;
|
|
10
10
|
fullHeight?: boolean | null | undefined;
|
|
11
11
|
disabled?: boolean | null | undefined;
|
|
@@ -7,7 +7,7 @@ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogC
|
|
|
7
7
|
declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
|
|
8
8
|
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
9
|
declare const sheetVariants: (props?: ({
|
|
10
|
-
side?: "
|
|
10
|
+
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
11
11
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
12
12
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ourtrip/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
8
|
+
"build": "rollup -c"
|
|
9
9
|
},
|
|
10
10
|
"keywords": [],
|
|
11
11
|
"author": "",
|
|
@@ -16,12 +16,16 @@
|
|
|
16
16
|
"@babel/preset-env": "^7.26.9",
|
|
17
17
|
"@babel/preset-react": "^7.26.3",
|
|
18
18
|
"@babel/preset-typescript": "^7.26.0",
|
|
19
|
+
"@rollup/plugin-commonjs": "^28.0.3",
|
|
20
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
19
21
|
"@types/react": "^19.0.10",
|
|
20
22
|
"@types/react-dom": "^19.0.4",
|
|
21
23
|
"@types/react-slider": "^1.3.6",
|
|
22
24
|
"microbundle": "^0.15.1",
|
|
23
25
|
"react": "^19.0.0",
|
|
24
26
|
"react-dom": "^19.0.0",
|
|
27
|
+
"rollup": "^2.79.2",
|
|
28
|
+
"rollup-plugin-typescript2": "^0.36.0",
|
|
25
29
|
"typescript": "^5.8.2"
|
|
26
30
|
},
|
|
27
31
|
"peerDependencies": {
|
package/rollup.config.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const resolve = require('@rollup/plugin-node-resolve');
|
|
2
|
+
const commonjs = require('@rollup/plugin-commonjs');
|
|
3
|
+
const typescript = require('rollup-plugin-typescript2');
|
|
4
|
+
|
|
5
|
+
module.exports = {
|
|
6
|
+
input: 'src/index.tsx',
|
|
7
|
+
output: [
|
|
8
|
+
{
|
|
9
|
+
file: 'dist/index.cjs.js',
|
|
10
|
+
format: 'cjs',
|
|
11
|
+
sourcemap: true,
|
|
12
|
+
exports: 'named'
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
file: 'dist/index.esm.js',
|
|
16
|
+
format: 'esm',
|
|
17
|
+
sourcemap: true
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
external: ['react', 'react-dom'],
|
|
21
|
+
plugins: [
|
|
22
|
+
resolve(),
|
|
23
|
+
commonjs(),
|
|
24
|
+
typescript({
|
|
25
|
+
useTsconfigDeclarationDir: true,
|
|
26
|
+
clean: true
|
|
27
|
+
})
|
|
28
|
+
]
|
|
29
|
+
};
|
package/tsconfig.json
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
"lib": ["dom", "es6", "es2017"],
|
|
6
6
|
"jsx": "react",
|
|
7
7
|
"declaration": true,
|
|
8
|
-
"declarationDir": "dist/types",
|
|
9
|
-
"outDir": "dist",
|
|
8
|
+
"declarationDir": "./dist/types",
|
|
9
|
+
"outDir": "./dist",
|
|
10
10
|
"strict": true,
|
|
11
11
|
"moduleResolution": "node",
|
|
12
12
|
"esModuleInterop": true,
|
|
@@ -15,5 +15,4 @@
|
|
|
15
15
|
"allowSyntheticDefaultImports": true
|
|
16
16
|
},
|
|
17
17
|
"include": ["src"],
|
|
18
|
-
"exclude": ["node_modules", "dist"]
|
|
19
18
|
}
|