@smg-automotive/components 25.11.0-ST-1552-migrate-drawer.4 → 25.11.0-ST-1552-migrate-drawer.5
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/cjs/components/drawer/index.d.ts.map +1 -1
- package/dist/cjs/components/index.d.ts +3 -0
- package/dist/cjs/components/index.d.ts.map +1 -1
- package/dist/cjs/index.js +38 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/drawer/DrawerBody.js +11 -0
- package/dist/esm/components/drawer/DrawerBody.js.map +1 -0
- package/dist/esm/components/drawer/DrawerContent.js +181 -0
- package/dist/esm/components/drawer/DrawerContent.js.map +1 -0
- package/dist/esm/components/drawer/DrawerOverlay.js +10 -0
- package/dist/esm/components/drawer/DrawerOverlay.js.map +1 -0
- package/dist/esm/components/drawer/index.d.ts.map +1 -1
- package/dist/esm/components/drawer/index.js +1 -1
- package/dist/esm/components/drawer/index.js.map +1 -1
- package/dist/esm/components/index.d.ts +3 -0
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/index.js +3 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/themes/shared/slotRecipes/drawer.js +16 -16
- package/dist/esm/themes/shared/slotRecipes/drawer.js.map +1 -1
- package/dist/index.d.ts +11 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAEL,eAAe,IAAI,WAAW,EAE/B,MAAM,kBAAkB,CAAC;AAE1B,UAAU,oBACR,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/index.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAEL,eAAe,IAAI,WAAW,EAE/B,MAAM,kBAAkB,CAAC;AAE1B,UAAU,oBACR,SAAQ,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,cAAc,CAAC;IAClD,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAY9D,CAAC;AAEF,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
|
@@ -15,6 +15,9 @@ export * from './datePicker';
|
|
|
15
15
|
export * from './devOverlay';
|
|
16
16
|
export * from './dialog';
|
|
17
17
|
export * from './drawer';
|
|
18
|
+
export * from './drawer/DrawerBody';
|
|
19
|
+
export * from './drawer/DrawerContent';
|
|
20
|
+
export * from './drawer/DrawerOverlay';
|
|
18
21
|
export * from './energyLabel';
|
|
19
22
|
export * from './errorPage';
|
|
20
23
|
export * from './flex';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACx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AAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1898,11 +1898,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
1898
1898
|
width: 'full',
|
|
1899
1899
|
height: '2xl',
|
|
1900
1900
|
_open: {
|
|
1901
|
-
animationName:
|
|
1901
|
+
animationName: 'slide-in-from-top',
|
|
1902
1902
|
animationDuration: 'slow',
|
|
1903
1903
|
},
|
|
1904
1904
|
_closed: {
|
|
1905
|
-
animationName:
|
|
1905
|
+
animationName: 'slide-out-to-top',
|
|
1906
1906
|
animationDuration: 'fast',
|
|
1907
1907
|
},
|
|
1908
1908
|
},
|
|
@@ -1916,11 +1916,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
1916
1916
|
width: 'full',
|
|
1917
1917
|
height: 'half',
|
|
1918
1918
|
_open: {
|
|
1919
|
-
animationName:
|
|
1919
|
+
animationName: 'slide-in-from-top',
|
|
1920
1920
|
animationDuration: 'slow',
|
|
1921
1921
|
},
|
|
1922
1922
|
_closed: {
|
|
1923
|
-
animationName:
|
|
1923
|
+
animationName: 'slide-out-to-top',
|
|
1924
1924
|
animationDuration: 'fast',
|
|
1925
1925
|
},
|
|
1926
1926
|
},
|
|
@@ -1934,11 +1934,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
1934
1934
|
width: 'full',
|
|
1935
1935
|
height: 'full',
|
|
1936
1936
|
_open: {
|
|
1937
|
-
animationName:
|
|
1937
|
+
animationName: 'slide-in-from-top',
|
|
1938
1938
|
animationDuration: 'slow',
|
|
1939
1939
|
},
|
|
1940
1940
|
_closed: {
|
|
1941
|
-
animationName:
|
|
1941
|
+
animationName: 'slide-out-to-top',
|
|
1942
1942
|
animationDuration: 'fast',
|
|
1943
1943
|
},
|
|
1944
1944
|
},
|
|
@@ -1949,11 +1949,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
1949
1949
|
css: {
|
|
1950
1950
|
content: {
|
|
1951
1951
|
_open: {
|
|
1952
|
-
animationName:
|
|
1952
|
+
animationName: 'slide-in-from-right',
|
|
1953
1953
|
animationDuration: 'slow',
|
|
1954
1954
|
},
|
|
1955
1955
|
_closed: {
|
|
1956
|
-
animationName:
|
|
1956
|
+
animationName: 'slide-out-to-right',
|
|
1957
1957
|
animationDuration: 'fast',
|
|
1958
1958
|
},
|
|
1959
1959
|
},
|
|
@@ -1967,11 +1967,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
1967
1967
|
width: 'full',
|
|
1968
1968
|
height: '2xl',
|
|
1969
1969
|
_open: {
|
|
1970
|
-
animationName:
|
|
1970
|
+
animationName: 'slide-in-from-bottom',
|
|
1971
1971
|
animationDuration: 'slow',
|
|
1972
1972
|
},
|
|
1973
1973
|
_closed: {
|
|
1974
|
-
animationName:
|
|
1974
|
+
animationName: 'slide-out-to-bottom',
|
|
1975
1975
|
animationDuration: 'fast',
|
|
1976
1976
|
},
|
|
1977
1977
|
},
|
|
@@ -1985,11 +1985,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
1985
1985
|
width: 'full',
|
|
1986
1986
|
height: 'half',
|
|
1987
1987
|
_open: {
|
|
1988
|
-
animationName:
|
|
1988
|
+
animationName: 'slide-in-from-bottom',
|
|
1989
1989
|
animationDuration: 'slow',
|
|
1990
1990
|
},
|
|
1991
1991
|
_closed: {
|
|
1992
|
-
animationName:
|
|
1992
|
+
animationName: 'slide-out-to-bottom',
|
|
1993
1993
|
animationDuration: 'fast',
|
|
1994
1994
|
},
|
|
1995
1995
|
},
|
|
@@ -2003,11 +2003,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
2003
2003
|
width: 'full',
|
|
2004
2004
|
height: 'full',
|
|
2005
2005
|
_open: {
|
|
2006
|
-
animationName:
|
|
2006
|
+
animationName: 'slide-in-from-bottom',
|
|
2007
2007
|
animationDuration: 'slow',
|
|
2008
2008
|
},
|
|
2009
2009
|
_closed: {
|
|
2010
|
-
animationName:
|
|
2010
|
+
animationName: 'slide-out-to-bottom',
|
|
2011
2011
|
animationDuration: 'fast',
|
|
2012
2012
|
},
|
|
2013
2013
|
},
|
|
@@ -2018,11 +2018,11 @@ var drawerRecipe = react$1.defineSlotRecipe({
|
|
|
2018
2018
|
css: {
|
|
2019
2019
|
content: {
|
|
2020
2020
|
_open: {
|
|
2021
|
-
animationName:
|
|
2021
|
+
animationName: 'slide-in-from-left',
|
|
2022
2022
|
animationDuration: 'slow',
|
|
2023
2023
|
},
|
|
2024
2024
|
_closed: {
|
|
2025
|
-
animationName:
|
|
2025
|
+
animationName: 'slide-out-to-left',
|
|
2026
2026
|
animationDuration: 'fast',
|
|
2027
2027
|
},
|
|
2028
2028
|
},
|
|
@@ -5654,10 +5654,28 @@ var Dialog = function (_a) {
|
|
|
5654
5654
|
|
|
5655
5655
|
var Drawer = function (props) {
|
|
5656
5656
|
var children = props.children, isOpen = props.isOpen, onClose = props.onClose, drawerProps = __rest(props, ["children", "isOpen", "onClose"]);
|
|
5657
|
-
return (React.createElement(react$1.Drawer.Root, __assign({ open: isOpen, onOpenChange: onClose }, drawerProps),
|
|
5657
|
+
return (React.createElement(react$1.Drawer.Root, __assign({ open: isOpen, onOpenChange: function (e) { return !e.open && onClose(); } }, drawerProps),
|
|
5658
5658
|
React.createElement(react$1.Portal, null, children)));
|
|
5659
5659
|
};
|
|
5660
5660
|
|
|
5661
|
+
var DrawerBody = function (props) {
|
|
5662
|
+
var children = props.children, drawerBodyProps = __rest(props, ["children"]);
|
|
5663
|
+
return React.createElement(react$1.Drawer.Body, __assign({}, drawerBodyProps), children);
|
|
5664
|
+
};
|
|
5665
|
+
|
|
5666
|
+
var DrawerContent = function (props) {
|
|
5667
|
+
var children = props.children, withCloseButton = props.withCloseButton, drawerContentProps = __rest(props, ["children", "withCloseButton"]);
|
|
5668
|
+
return (React.createElement(react$1.Drawer.Positioner, null,
|
|
5669
|
+
React.createElement(react$1.Drawer.Content, __assign({}, drawerContentProps),
|
|
5670
|
+
withCloseButton ? (React.createElement(react$1.Drawer.CloseTrigger, { asChild: true, fontSize: "base" },
|
|
5671
|
+
React.createElement(CloseIcon, null))) : null,
|
|
5672
|
+
children)));
|
|
5673
|
+
};
|
|
5674
|
+
|
|
5675
|
+
var DrawerOverlay = function (props) {
|
|
5676
|
+
return React.createElement(react$1.Drawer.Backdrop, __assign({}, props));
|
|
5677
|
+
};
|
|
5678
|
+
|
|
5661
5679
|
var Text = react$1.Text;
|
|
5662
5680
|
Text.displayName = 'Text';
|
|
5663
5681
|
|
|
@@ -8470,6 +8488,9 @@ exports.DoubleLineIcon = DoubleLineIcon;
|
|
|
8470
8488
|
exports.DownloadIcon = DownloadIcon;
|
|
8471
8489
|
exports.DragIcon = DragIcon;
|
|
8472
8490
|
exports.Drawer = Drawer;
|
|
8491
|
+
exports.DrawerBody = DrawerBody;
|
|
8492
|
+
exports.DrawerContent = DrawerContent;
|
|
8493
|
+
exports.DrawerOverlay = DrawerOverlay;
|
|
8473
8494
|
exports.DriveSystemIcon = DriveSystemIcon;
|
|
8474
8495
|
exports.DriveSystemLargeIcon = DriveSystemLargeIcon;
|
|
8475
8496
|
exports.DriveTypeIcon = DriveTypeIcon;
|