@udixio/ui-react 1.6.0 → 1.6.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/CHANGELOG.md +20 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +828 -826
- package/dist/lib/components/SideSheet.d.ts +9 -0
- package/dist/lib/components/SideSheet.d.ts.map +1 -0
- package/dist/lib/components/index.d.ts +1 -1
- package/dist/lib/components/index.d.ts.map +1 -1
- package/dist/lib/interfaces/index.d.ts +1 -1
- package/dist/lib/interfaces/index.d.ts.map +1 -1
- package/dist/lib/interfaces/{slide-sheet.interface.d.ts → side-sheet.interface.d.ts} +3 -2
- package/dist/lib/interfaces/side-sheet.interface.d.ts.map +1 -0
- package/dist/lib/styles/index.d.ts +1 -1
- package/dist/lib/styles/index.d.ts.map +1 -1
- package/dist/lib/styles/{slide-sheet.style.d.ts → side-sheet.style.d.ts} +6 -4
- package/dist/lib/styles/side-sheet.style.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/lib/components/{SlideSheet.tsx → SideSheet.tsx} +12 -6
- package/src/lib/components/index.ts +1 -1
- package/src/lib/interfaces/index.ts +1 -1
- package/src/lib/interfaces/{slide-sheet.interface.tsx → side-sheet.interface.tsx} +2 -1
- package/src/lib/styles/index.ts +1 -1
- package/src/lib/styles/{slide-sheet.style.ts → side-sheet.style.ts} +3 -3
- package/src/stories/containment/slide-sheet.stories.tsx +7 -12
- package/dist/lib/components/SlideSheet.d.ts +0 -9
- package/dist/lib/components/SlideSheet.d.ts.map +0 -1
- package/dist/lib/interfaces/slide-sheet.interface.d.ts.map +0 -1
- package/dist/lib/styles/slide-sheet.style.d.ts.map +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MotionProps } from '../utils';
|
|
2
|
+
import { SideSheetInterface } from '../interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Side sheets show secondary content anchored to the side of the screen
|
|
5
|
+
* @status beta
|
|
6
|
+
* @category Layout
|
|
7
|
+
*/
|
|
8
|
+
export declare const SideSheet: ({ variant, className, children, title, position, extended, divider, onExtendedChange, closeIcon, transition, ...rest }: MotionProps<SideSheetInterface>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=SideSheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SideSheet.d.ts","sourceRoot":"","sources":["../../../src/lib/components/SideSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAUnD;;;;GAIG;AACH,eAAO,MAAM,SAAS,GAAI,wHAYvB,WAAW,CAAC,kBAAkB,CAAC,4CAmGjC,CAAC"}
|
|
@@ -9,7 +9,7 @@ export * from './IconButton';
|
|
|
9
9
|
export * from './IconButton';
|
|
10
10
|
export * from './ProgressIndicator';
|
|
11
11
|
export * from './Slider';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './SideSheet';
|
|
13
13
|
export * from './Snackbar';
|
|
14
14
|
export * from './Switch';
|
|
15
15
|
export * from './Tab';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC"}
|
|
@@ -6,7 +6,7 @@ export * from './divider.interface';
|
|
|
6
6
|
export * from './fab.interface';
|
|
7
7
|
export * from './icon-button.interface';
|
|
8
8
|
export * from './progress-indicator.interface';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './side-sheet.interface';
|
|
10
10
|
export * from './slider.interface';
|
|
11
11
|
export * from './snackbar.interface';
|
|
12
12
|
export * from './switch.interface';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC;AACjD,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Transition } from 'motion';
|
|
2
2
|
import { Icon } from '../icon';
|
|
3
|
-
export interface
|
|
3
|
+
export interface SideSheetInterface {
|
|
4
4
|
type: 'div';
|
|
5
5
|
props: {
|
|
6
6
|
variant?: 'standard' | 'modal';
|
|
@@ -11,6 +11,7 @@ export interface SlideSheetInterface {
|
|
|
11
11
|
onExtendedChange?: (extended: boolean) => void;
|
|
12
12
|
transition?: Transition;
|
|
13
13
|
closeIcon?: Icon;
|
|
14
|
+
divider?: boolean;
|
|
14
15
|
};
|
|
15
16
|
states: {
|
|
16
17
|
isExtended: boolean;
|
|
@@ -26,4 +27,4 @@ export interface SlideSheetInterface {
|
|
|
26
27
|
'overlay'
|
|
27
28
|
];
|
|
28
29
|
}
|
|
29
|
-
//# sourceMappingURL=
|
|
30
|
+
//# sourceMappingURL=side-sheet.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side-sheet.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/side-sheet.interface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;QAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;QAC/C,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,CAAC,EAAE,IAAI,CAAC;QACjB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;IACF,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;IAChC,QAAQ,EAAE;QACR,YAAY;QACZ,WAAW;QACX,OAAO;QACP,SAAS;QACT,QAAQ;QACR,aAAa;QACb,SAAS;QACT,SAAS;KACV,CAAC;CACH"}
|
|
@@ -6,7 +6,7 @@ export * from './divider.style';
|
|
|
6
6
|
export * from './fab.style';
|
|
7
7
|
export * from './icon-button.style';
|
|
8
8
|
export * from './progress-indicator.style';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './side-sheet.style';
|
|
10
10
|
export * from './slider.style';
|
|
11
11
|
export * from './snackbar.style';
|
|
12
12
|
export * from './switch.style';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const
|
|
1
|
+
import { SideSheetInterface } from '../interfaces/side-sheet.interface';
|
|
2
|
+
export declare const sideSheetStyle: (states: {
|
|
3
3
|
variant: any;
|
|
4
4
|
children: any;
|
|
5
5
|
title: any;
|
|
@@ -8,6 +8,7 @@ export declare const slideSheetStyle: (states: {
|
|
|
8
8
|
onExtendedChange: any;
|
|
9
9
|
transition: any;
|
|
10
10
|
closeIcon: any;
|
|
11
|
+
divider: any;
|
|
11
12
|
} & {
|
|
12
13
|
variant?: "standard" | "modal";
|
|
13
14
|
children: React.ReactNode;
|
|
@@ -17,9 +18,10 @@ export declare const slideSheetStyle: (states: {
|
|
|
17
18
|
onExtendedChange?: (extended: boolean) => void;
|
|
18
19
|
transition?: import('motion').Transition;
|
|
19
20
|
closeIcon?: import('..').Icon;
|
|
21
|
+
divider?: boolean;
|
|
20
22
|
} & {
|
|
21
23
|
isExtended: boolean;
|
|
22
24
|
} & {
|
|
23
|
-
className: string | import('..').ClassNameComponent<
|
|
25
|
+
className: string | import('..').ClassNameComponent<SideSheetInterface> | undefined;
|
|
24
26
|
}) => Record<"container" | "content" | "header" | "title" | "overlay" | "divider" | "slideSheet" | "closeButton", string>;
|
|
25
|
-
//# sourceMappingURL=
|
|
27
|
+
//# sourceMappingURL=side-sheet.style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"side-sheet.style.d.ts","sourceRoot":"","sources":["../../../src/lib/styles/side-sheet.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AAExE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;yHA2B1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@udixio/ui-react",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react": "^19.1.1",
|
|
37
37
|
"react-dom": "^19.1.1",
|
|
38
38
|
"@udixio/theme": "1.2.0",
|
|
39
|
-
"@udixio/tailwind": "1.
|
|
39
|
+
"@udixio/tailwind": "1.7.1"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MotionProps } from '../utils';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { SideSheetInterface } from '../interfaces';
|
|
3
|
+
import { sideSheetStyle } from '../styles';
|
|
4
4
|
import { Divider } from './Divider';
|
|
5
5
|
|
|
6
6
|
import { faXmark } from '@fortawesome/free-solid-svg-icons';
|
|
@@ -14,23 +14,24 @@ import { AnimatePresence, motion } from 'motion/react';
|
|
|
14
14
|
* @status beta
|
|
15
15
|
* @category Layout
|
|
16
16
|
*/
|
|
17
|
-
export const
|
|
17
|
+
export const SideSheet = ({
|
|
18
18
|
variant = 'standard',
|
|
19
19
|
className,
|
|
20
20
|
children,
|
|
21
21
|
title,
|
|
22
22
|
position = 'right',
|
|
23
23
|
extended,
|
|
24
|
+
divider,
|
|
24
25
|
onExtendedChange,
|
|
25
26
|
closeIcon = faXmark,
|
|
26
27
|
transition,
|
|
27
28
|
...rest
|
|
28
|
-
}: MotionProps<
|
|
29
|
+
}: MotionProps<SideSheetInterface>) => {
|
|
29
30
|
transition = { duration: 0.3, ...transition };
|
|
30
31
|
|
|
31
32
|
const [isExtended, setIsExtended] = useState(extended ?? true);
|
|
32
33
|
|
|
33
|
-
const styles =
|
|
34
|
+
const styles = sideSheetStyle({
|
|
34
35
|
transition,
|
|
35
36
|
title,
|
|
36
37
|
position,
|
|
@@ -38,6 +39,7 @@ export const SlideSheet = ({
|
|
|
38
39
|
className,
|
|
39
40
|
children,
|
|
40
41
|
onExtendedChange,
|
|
42
|
+
divider,
|
|
41
43
|
isExtended,
|
|
42
44
|
extended: isExtended,
|
|
43
45
|
variant,
|
|
@@ -107,7 +109,11 @@ export const SlideSheet = ({
|
|
|
107
109
|
{children}
|
|
108
110
|
</div>
|
|
109
111
|
</motion.div>
|
|
110
|
-
|
|
112
|
+
{(divider == undefined && variant == 'standard'
|
|
113
|
+
? true
|
|
114
|
+
: divider) && (
|
|
115
|
+
<Divider className={styles.divider} orientation="vertical" />
|
|
116
|
+
)}
|
|
111
117
|
</div>
|
|
112
118
|
)}
|
|
113
119
|
</AnimatePresence>
|
|
@@ -9,7 +9,7 @@ export * from './IconButton';
|
|
|
9
9
|
export * from './IconButton';
|
|
10
10
|
export * from './ProgressIndicator';
|
|
11
11
|
export * from './Slider';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './SideSheet';
|
|
13
13
|
export * from './Snackbar';
|
|
14
14
|
export * from './Switch';
|
|
15
15
|
export * from './Tab';
|
|
@@ -6,7 +6,7 @@ export * from './divider.interface';
|
|
|
6
6
|
export * from './fab.interface';
|
|
7
7
|
export * from './icon-button.interface';
|
|
8
8
|
export * from './progress-indicator.interface';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './side-sheet.interface';
|
|
10
10
|
export * from './slider.interface';
|
|
11
11
|
export * from './snackbar.interface';
|
|
12
12
|
export * from './switch.interface';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transition } from 'motion';
|
|
2
2
|
import { Icon } from '../icon';
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface SideSheetInterface {
|
|
5
5
|
type: 'div';
|
|
6
6
|
props: {
|
|
7
7
|
variant?: 'standard' | 'modal';
|
|
@@ -12,6 +12,7 @@ export interface SlideSheetInterface {
|
|
|
12
12
|
onExtendedChange?: (extended: boolean) => void;
|
|
13
13
|
transition?: Transition;
|
|
14
14
|
closeIcon?: Icon;
|
|
15
|
+
divider?: boolean;
|
|
15
16
|
};
|
|
16
17
|
states: { isExtended: boolean };
|
|
17
18
|
elements: [
|
package/src/lib/styles/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ export * from './divider.style';
|
|
|
6
6
|
export * from './fab.style';
|
|
7
7
|
export * from './icon-button.style';
|
|
8
8
|
export * from './progress-indicator.style';
|
|
9
|
-
export * from './
|
|
9
|
+
export * from './side-sheet.style';
|
|
10
10
|
export * from './slider.style';
|
|
11
11
|
export * from './snackbar.style';
|
|
12
12
|
export * from './switch.style';
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { classNames, defaultClassNames } from '../utils';
|
|
2
|
-
import {
|
|
2
|
+
import { SideSheetInterface } from '../interfaces/side-sheet.interface';
|
|
3
3
|
|
|
4
|
-
export const
|
|
4
|
+
export const sideSheetStyle = defaultClassNames<SideSheetInterface>(
|
|
5
5
|
'slideSheet',
|
|
6
6
|
({ variant, position }) => ({
|
|
7
7
|
slideSheet: classNames(
|
|
8
8
|
'bg-surface flex justify-between max-w-xs z-10',
|
|
9
9
|
{
|
|
10
10
|
'flex-row-reverse': position == 'right',
|
|
11
|
-
'h-
|
|
11
|
+
'h-full': variant == 'standard',
|
|
12
12
|
},
|
|
13
13
|
variant == 'modal' && [
|
|
14
14
|
'rounded-2xl fixed top-0 m-[1rem] h-[calc(100dvh-2rem)]',
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import {
|
|
3
|
-
MotionProps,
|
|
4
|
-
ReactProps,
|
|
5
|
-
SlideSheet,
|
|
6
|
-
SlideSheetInterface,
|
|
7
|
-
} from '../../';
|
|
2
|
+
import { MotionProps, ReactProps, SideSheet, SideSheetInterface } from '../../';
|
|
8
3
|
|
|
9
4
|
// More on how to set up stories at: https://storybook.js.org/docs/react/writing-stories/introduction#default-export
|
|
10
5
|
const meta = {
|
|
11
6
|
title: 'containment/SlideSheet',
|
|
12
|
-
component:
|
|
7
|
+
component: SideSheet,
|
|
13
8
|
parameters: {
|
|
14
9
|
// Optional parameter to center the component in the Canvas. More info: https://storybook.js.org/docs/react/configure/story-layout
|
|
15
10
|
},
|
|
@@ -17,7 +12,7 @@ const meta = {
|
|
|
17
12
|
tags: ['autodocs'],
|
|
18
13
|
// More on argTypes: https://storybook.js.org/docs/react/api/argtypes
|
|
19
14
|
argTypes: {},
|
|
20
|
-
} satisfies Meta<typeof
|
|
15
|
+
} satisfies Meta<typeof SideSheet>;
|
|
21
16
|
|
|
22
17
|
export default meta;
|
|
23
18
|
type Story = StoryObj<typeof meta>;
|
|
@@ -25,17 +20,17 @@ type Story = StoryObj<typeof meta>;
|
|
|
25
20
|
// More on writing stories with args: https://storybook.js.org/docs/react/writing-stories/args
|
|
26
21
|
|
|
27
22
|
const createSlideSheetStory = (
|
|
28
|
-
variant: ReactProps<
|
|
23
|
+
variant: ReactProps<SideSheetInterface>['variant'],
|
|
29
24
|
) => {
|
|
30
|
-
const SlideSheetStory: Story = (args: MotionProps<
|
|
25
|
+
const SlideSheetStory: Story = (args: MotionProps<SideSheetInterface>) => (
|
|
31
26
|
<>
|
|
32
27
|
<div
|
|
33
28
|
className={
|
|
34
29
|
'bg-surface-container-highest h-screen w-full flex justify-between'
|
|
35
30
|
}
|
|
36
31
|
>
|
|
37
|
-
<
|
|
38
|
-
<
|
|
32
|
+
<SideSheet position={'left'} {...args}></SideSheet>
|
|
33
|
+
<SideSheet position={'right'} {...args}></SideSheet>
|
|
39
34
|
</div>
|
|
40
35
|
</>
|
|
41
36
|
);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { MotionProps } from '../utils';
|
|
2
|
-
import { SlideSheetInterface } from '../interfaces';
|
|
3
|
-
/**
|
|
4
|
-
* Side sheets show secondary content anchored to the side of the screen
|
|
5
|
-
* @status beta
|
|
6
|
-
* @category Layout
|
|
7
|
-
*/
|
|
8
|
-
export declare const SlideSheet: ({ variant, className, children, title, position, extended, onExtendedChange, closeIcon, transition, ...rest }: MotionProps<SlideSheetInterface>) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
//# sourceMappingURL=SlideSheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SlideSheet.d.ts","sourceRoot":"","sources":["../../../src/lib/components/SlideSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAUpD;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAI,+GAWxB,WAAW,CAAC,mBAAmB,CAAC,4CA8FlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slide-sheet.interface.d.ts","sourceRoot":"","sources":["../../../src/lib/interfaces/slide-sheet.interface.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE;QACL,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC;QAC/B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;QAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;QAC/C,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,CAAC,EAAE,IAAI,CAAC;KAClB,CAAC;IACF,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC;IAChC,QAAQ,EAAE;QACR,YAAY;QACZ,WAAW;QACX,OAAO;QACP,SAAS;QACT,QAAQ;QACR,aAAa;QACb,SAAS;QACT,SAAS;KACV,CAAC;CACH"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slide-sheet.style.d.ts","sourceRoot":"","sources":["../../../src/lib/styles/slide-sheet.style.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAE1E,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;yHA2B3B,CAAC"}
|