@bonprix-ds/react-side-sheet 1.0.0 → 1.0.1
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.ts +5 -5
- package/dist/index.js +1 -1
- package/dist/src/SideSheet.css +10 -0
- package/dist/src/{SideSheet2.js → SideSheet.js} +1 -1
- package/dist/src/SideSheet.js.map +1 -0
- package/dist/src/SideSheetRoot.js +1 -1
- package/package.json +9 -8
- package/dist/react-side-sheet.css +0 -2
- package/dist/src/SideSheet2.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { IconType } from '@bonprix-ds/react-icon';
|
|
|
5
5
|
import { ReactNode } from 'react';
|
|
6
6
|
import { TitleLevel } from '@bonprix-ds/utils';
|
|
7
7
|
|
|
8
|
-
declare interface SheetButtonBaseProps {
|
|
8
|
+
export declare interface SheetButtonBaseProps {
|
|
9
9
|
/** The label of the button. */
|
|
10
10
|
children: string;
|
|
11
11
|
/** If used, an icon will be additionally shown. The value is a name of one icon from our icon set. */
|
|
@@ -14,17 +14,17 @@ declare interface SheetButtonBaseProps {
|
|
|
14
14
|
iconPosition?: "start" | "end";
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
-
declare type SheetButtonProps<C extends ElementType> = SheetButtonBaseProps & {
|
|
17
|
+
export declare type SheetButtonProps<C extends ElementType> = SheetButtonBaseProps & {
|
|
18
18
|
/** The semantic component to render the Button. Preferrably `"button"`. Native props will be passed to this component. */
|
|
19
19
|
component?: C;
|
|
20
20
|
} & Omit<ComponentProps<C>, keyof SheetButtonBaseProps | "component">;
|
|
21
21
|
|
|
22
|
-
declare interface SheetButtonSectionProps {
|
|
22
|
+
export declare interface SheetButtonSectionProps {
|
|
23
23
|
/** Primary and secondary buttons should be placed inside this section. */
|
|
24
24
|
children: ReactNode;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
declare interface SheetContentProps {
|
|
27
|
+
export declare interface SheetContentProps {
|
|
28
28
|
/** The content of the content section. */
|
|
29
29
|
children: ReactNode;
|
|
30
30
|
/** If `true`, the horizontal padding around the content will be removed. */
|
|
@@ -52,7 +52,7 @@ declare interface SheetProps {
|
|
|
52
52
|
zIndex?: number;
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
declare interface SheetTitleProps {
|
|
55
|
+
export declare interface SheetTitleProps {
|
|
56
56
|
/** The text content. */
|
|
57
57
|
children: string;
|
|
58
58
|
/** An optional subline that is displayed right below the title. */
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from "./src/
|
|
1
|
+
import e from "./src/SideSheet.js";
|
|
2
2
|
export { e as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideSheet.js","names":[],"sources":["../../src/SideSheet.tsx"],"sourcesContent":["import React from \"react\";\n\nimport SideSheetRoot, { ButtonSection, Content, PrimaryButton, SecondaryButton, Title, type Props } from \"./SideSheetRoot\";\n\nexport type {\n Props,\n SheetButtonBaseProps,\n SheetButtonProps,\n SheetButtonSectionProps,\n SheetContentProps,\n SheetTitleProps,\n} from \"./SideSheetRoot\";\n\nconst SideSheet = (props: Props) => <SideSheetRoot {...props} />;\n\nSideSheet.displayName = \"SideSheet\";\n\nSideSheet.Title = Title;\nSideSheet.Content = Content;\nSideSheet.ButtonSection = ButtonSection;\nSideSheet.PrimaryButton = PrimaryButton;\nSideSheet.SecondaryButton = SecondaryButton;\n\nexport default SideSheet;\n"],"mappings":";;;;AAaA,IAAM,KAAa,MAAiB,kBAAC,GAAD,EAAe,GAAI,EAAQ,CAAA;AAE/D,EAAU,cAAc,aAExB,EAAU,QAAQ,GAClB,EAAU,UAAU,GACpB,EAAU,gBAAgB,GAC1B,EAAU,gBAAgB,GAC1B,EAAU,kBAAkB"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import e from "./SideSheetContext.js";
|
|
3
3
|
import t from "./useConsumeSideSheet.js";
|
|
4
|
-
/* empty css */
|
|
5
4
|
import "react";
|
|
6
5
|
import { backdrop as n, fadeAnimation as r, slideAnimation as i } from "@bonprix-ds/internal-components";
|
|
7
6
|
import a from "@bonprix-ds/react-button";
|
|
@@ -11,6 +10,7 @@ import { ZIndexContext as c, useBreakpointDown as l, useInnerOpen as u, usePrefe
|
|
|
11
10
|
import { twMerge as f } from "tailwind-merge";
|
|
12
11
|
import { tv as p } from "tailwind-variants";
|
|
13
12
|
import * as m from "@radix-ui/react-dialog";
|
|
13
|
+
import "./SideSheet.css";
|
|
14
14
|
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
15
15
|
//#region src/SideSheetRoot.tsx
|
|
16
16
|
var _ = p({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonprix-ds/react-side-sheet",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "SideSheet component, implemented in React, for the Bonprix Design System.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-dialog": "1.1.23",
|
|
35
35
|
"tailwind-merge": "2.6.1",
|
|
36
|
-
"@bonprix-ds/
|
|
37
|
-
"@bonprix-ds/
|
|
38
|
-
"@bonprix-ds/react-
|
|
39
|
-
"@bonprix-ds/
|
|
36
|
+
"@bonprix-ds/internal-components": "0.2.0",
|
|
37
|
+
"@bonprix-ds/react-button": "1.1.0",
|
|
38
|
+
"@bonprix-ds/react-icon": "1.2.0",
|
|
39
|
+
"@bonprix-ds/react-icon-button": "1.2.0",
|
|
40
40
|
"@bonprix-ds/react-typography": "1.0.4",
|
|
41
|
-
"@bonprix-ds/
|
|
41
|
+
"@bonprix-ds/utils": "0.2.2"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
44
|
"react": "^19.0.0",
|
|
@@ -50,8 +50,9 @@
|
|
|
50
50
|
"@types/react": "19.2.18",
|
|
51
51
|
"@vitejs/plugin-react": "6.1.1",
|
|
52
52
|
"rollup-preserve-directives": "1.1.3",
|
|
53
|
-
"unplugin-dts": "1.0
|
|
54
|
-
"@microsoft/api-extractor": "7.59.
|
|
53
|
+
"unplugin-dts": "1.1.0",
|
|
54
|
+
"@microsoft/api-extractor": "7.59.1",
|
|
55
|
+
"@bonprix-ds/vite-config": "0.0.0"
|
|
55
56
|
},
|
|
56
57
|
"scripts": {
|
|
57
58
|
"build": "vite build"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SideSheet2.js","names":[],"sources":["../../src/SideSheet.tsx"],"sourcesContent":["import React from \"react\";\n\nimport SideSheetRoot, { ButtonSection, Content, PrimaryButton, SecondaryButton, Title, type Props } from \"./SideSheetRoot\";\n\nexport type { Props, SheetButtonProps } from \"./SideSheetRoot\";\n\nconst SideSheet = (props: Props) => <SideSheetRoot {...props} />;\n\nSideSheet.displayName = \"SideSheet\";\n\nSideSheet.Title = Title;\nSideSheet.Content = Content;\nSideSheet.ButtonSection = ButtonSection;\nSideSheet.PrimaryButton = PrimaryButton;\nSideSheet.SecondaryButton = SecondaryButton;\n\nexport default SideSheet;\n"],"mappings":";;;;AAMA,IAAM,KAAa,MAAiB,kBAAC,GAAD,EAAe,GAAI,EAAQ,CAAA;AAE/D,EAAU,cAAc,aAExB,EAAU,QAAQ,GAClB,EAAU,UAAU,GACpB,EAAU,gBAAgB,GAC1B,EAAU,gBAAgB,GAC1B,EAAU,kBAAkB"}
|