@pittorica/sheet-react 0.8.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/.turbo/turbo-build.log +18 -0
- package/LICENSE +21 -0
- package/dist/Sheet.d.ts +26 -0
- package/dist/Sheet.d.ts.map +1 -0
- package/dist/index.cjs +18716 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +18673 -0
- package/dist/index.js.map +1 -0
- package/dist/sheet.css.d.ts +22 -0
- package/dist/sheet.css.d.ts.map +1 -0
- package/package.json +46 -0
- package/src/Sheet.tsx +163 -0
- package/src/index.ts +2 -0
- package/src/sheet.css.ts +163 -0
- package/tsconfig.app.json +33 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +26 -0
- package/vite.config.ts +35 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
> @pittorica/sheet-react@0.8.2 build /home/runner/work/ui/ui/packages/sheet-react
|
|
3
|
+
> tsc -b && vite build
|
|
4
|
+
|
|
5
|
+
[36mrolldown-vite v7.3.1 [32mbuilding client environment for production...[36m[39m
|
|
6
|
+
[2K
|
|
7
|
+
rendering chunks...
|
|
8
|
+
[32m
|
|
9
|
+
[36m[vite:dts][32m Start generate declaration files...[39m
|
|
10
|
+
[32m[36m[vite:dts][32m Declaration files built in 8880ms.
|
|
11
|
+
[39m
|
|
12
|
+
computing gzip size...
|
|
13
|
+
dist/index.js 666.70 kB │ gzip: 155.90 kB │ map: 1,540.68 kB
|
|
14
|
+
[2K
|
|
15
|
+
rendering chunks...
|
|
16
|
+
computing gzip size...
|
|
17
|
+
dist/index.cjs 667.86 kB │ gzip: 156.12 kB │ map: 1,541.11 kB
|
|
18
|
+
[32m✓ built in 34.27s[39m
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Davide Di Criscito
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/dist/Sheet.d.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { RecipeVariants } from '@vanilla-extract/recipes';
|
|
3
|
+
import { sheetRecipe } from './sheet.css.js';
|
|
4
|
+
type SheetVariants = RecipeVariants<typeof sheetRecipe>;
|
|
5
|
+
export type SheetProps = {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
onClose: () => void;
|
|
8
|
+
side?: NonNullable<SheetVariants>['side'];
|
|
9
|
+
maxWidth?: NonNullable<SheetVariants>['width'];
|
|
10
|
+
/**
|
|
11
|
+
* Background color of the sheet.
|
|
12
|
+
*/
|
|
13
|
+
color?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Text color of the sheet content (including title and close button).
|
|
16
|
+
* Use this to ensure contrast when using a custom background color.
|
|
17
|
+
*/
|
|
18
|
+
textColor?: string;
|
|
19
|
+
title?: React.ReactNode;
|
|
20
|
+
showHandle?: boolean;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const Sheet: React.FC<SheetProps>;
|
|
25
|
+
export {};
|
|
26
|
+
//# sourceMappingURL=Sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sheet.d.ts","sourceRoot":"","sources":["../src/Sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AASzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAML,WAAW,EAEZ,MAAM,gBAAgB,CAAC;AAExB,KAAK,aAAa,GAAG,cAAc,CAAC,OAAO,WAAW,CAAC,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IAEpB,IAAI,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;IAE1C,QAAQ,CAAC,EAAE,WAAW,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC;IAE/C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAiBF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAmGtC,CAAC"}
|