@smg-automotive/components 25.11.0-migrate-v3-header-full.1 → 25.11.0-migrate-v3-header-full.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.
Files changed (74) hide show
  1. package/dist/cjs/components/drawer/DrawerBody.d.ts +4 -0
  2. package/dist/cjs/components/drawer/DrawerBody.d.ts.map +1 -0
  3. package/dist/cjs/components/drawer/DrawerContent.d.ts +8 -0
  4. package/dist/cjs/components/drawer/DrawerContent.d.ts.map +1 -0
  5. package/dist/cjs/components/drawer/DrawerOverlay.d.ts +3 -0
  6. package/dist/cjs/components/drawer/DrawerOverlay.d.ts.map +1 -0
  7. package/dist/cjs/components/drawer/index.d.ts +13 -0
  8. package/dist/cjs/components/drawer/index.d.ts.map +1 -0
  9. package/dist/cjs/components/index.d.ts +1 -0
  10. package/dist/cjs/components/index.d.ts.map +1 -1
  11. package/dist/cjs/index.js +310 -1
  12. package/dist/cjs/index.js.map +1 -1
  13. package/dist/cjs/themes/shared/index.d.ts +54 -0
  14. package/dist/cjs/themes/shared/index.d.ts.map +1 -1
  15. package/dist/cjs/themes/shared/keyframes.d.ts.map +1 -1
  16. package/dist/cjs/themes/shared/slotRecipes/drawer.d.ts +46 -0
  17. package/dist/cjs/themes/shared/slotRecipes/drawer.d.ts.map +1 -0
  18. package/dist/cjs/themes/shared/slotRecipes/index.d.ts +45 -0
  19. package/dist/cjs/themes/shared/slotRecipes/index.d.ts.map +1 -1
  20. package/dist/cjs/themes/shared/tokens/animations.d.ts +3 -0
  21. package/dist/cjs/themes/shared/tokens/animations.d.ts.map +1 -1
  22. package/dist/cjs/themes/shared/tokens/durations.d.ts +3 -0
  23. package/dist/cjs/themes/shared/tokens/durations.d.ts.map +1 -1
  24. package/dist/cjs/themes/shared/tokens/sizes.d.ts +3 -0
  25. package/dist/cjs/themes/shared/tokens/sizes.d.ts.map +1 -1
  26. package/dist/esm/components/drawer/DrawerBody.d.ts +4 -0
  27. package/dist/esm/components/drawer/DrawerBody.d.ts.map +1 -0
  28. package/dist/esm/components/drawer/DrawerBody.js +11 -0
  29. package/dist/esm/components/drawer/DrawerBody.js.map +1 -0
  30. package/dist/esm/components/drawer/DrawerContent.d.ts +8 -0
  31. package/dist/esm/components/drawer/DrawerContent.d.ts.map +1 -0
  32. package/dist/esm/components/drawer/DrawerContent.js +181 -0
  33. package/dist/esm/components/drawer/DrawerContent.js.map +1 -0
  34. package/dist/esm/components/drawer/DrawerOverlay.d.ts +3 -0
  35. package/dist/esm/components/drawer/DrawerOverlay.d.ts.map +1 -0
  36. package/dist/esm/components/drawer/DrawerOverlay.js +10 -0
  37. package/dist/esm/components/drawer/DrawerOverlay.js.map +1 -0
  38. package/dist/esm/components/drawer/index.d.ts +13 -0
  39. package/dist/esm/components/drawer/index.d.ts.map +1 -0
  40. package/dist/esm/components/drawer/index.js +178 -0
  41. package/dist/esm/components/drawer/index.js.map +1 -0
  42. package/dist/esm/components/index.d.ts +1 -0
  43. package/dist/esm/components/index.d.ts.map +1 -1
  44. package/dist/esm/components/themeProvider/index.js +1 -0
  45. package/dist/esm/components/themeProvider/index.js.map +1 -1
  46. package/dist/esm/index.js +5 -0
  47. package/dist/esm/index.js.map +1 -1
  48. package/dist/esm/themes/shared/index.d.ts +54 -0
  49. package/dist/esm/themes/shared/index.d.ts.map +1 -1
  50. package/dist/esm/themes/shared/keyframes.d.ts.map +1 -1
  51. package/dist/esm/themes/shared/keyframes.js +32 -0
  52. package/dist/esm/themes/shared/keyframes.js.map +1 -1
  53. package/dist/esm/themes/shared/slotRecipes/drawer.d.ts +46 -0
  54. package/dist/esm/themes/shared/slotRecipes/drawer.d.ts.map +1 -0
  55. package/dist/esm/themes/shared/slotRecipes/drawer.js +247 -0
  56. package/dist/esm/themes/shared/slotRecipes/drawer.js.map +1 -0
  57. package/dist/esm/themes/shared/slotRecipes/index.d.ts +45 -0
  58. package/dist/esm/themes/shared/slotRecipes/index.d.ts.map +1 -1
  59. package/dist/esm/themes/shared/slotRecipes/index.js +2 -0
  60. package/dist/esm/themes/shared/slotRecipes/index.js.map +1 -1
  61. package/dist/esm/themes/shared/tokens/animations.d.ts +3 -0
  62. package/dist/esm/themes/shared/tokens/animations.d.ts.map +1 -1
  63. package/dist/esm/themes/shared/tokens/animations.js +2 -1
  64. package/dist/esm/themes/shared/tokens/animations.js.map +1 -1
  65. package/dist/esm/themes/shared/tokens/durations.d.ts +3 -0
  66. package/dist/esm/themes/shared/tokens/durations.d.ts.map +1 -1
  67. package/dist/esm/themes/shared/tokens/durations.js +3 -0
  68. package/dist/esm/themes/shared/tokens/durations.js.map +1 -1
  69. package/dist/esm/themes/shared/tokens/sizes.d.ts +3 -0
  70. package/dist/esm/themes/shared/tokens/sizes.d.ts.map +1 -1
  71. package/dist/esm/themes/shared/tokens/sizes.js +1 -0
  72. package/dist/esm/themes/shared/tokens/sizes.js.map +1 -1
  73. package/dist/index.d.ts +21 -3
  74. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { DrawerBodyProps } from '@chakra-ui/react';
3
+ export declare const DrawerBody: FC<PropsWithChildren<DrawerBodyProps>>;
4
+ //# sourceMappingURL=DrawerBody.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerBody.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/DrawerBody.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAA0B,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE3E,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAI7D,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { DrawerContentProps as ChakraDrawerContentProps } from '@chakra-ui/react';
3
+ interface Props extends ChakraDrawerContentProps {
4
+ withCloseButton?: boolean;
5
+ }
6
+ export declare const DrawerContent: FC<PropsWithChildren<Props>>;
7
+ export {};
8
+ //# sourceMappingURL=DrawerContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerContent.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/DrawerContent.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAErD,OAAO,EAEL,kBAAkB,IAAI,wBAAwB,EAC/C,MAAM,kBAAkB,CAAC;AAI1B,UAAU,KAAM,SAAQ,wBAAwB;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAetD,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ export declare const DrawerOverlay: FC<PropsWithChildren>;
3
+ //# sourceMappingURL=DrawerOverlay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/drawer/DrawerOverlay.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAIrD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,iBAAiB,CAE/C,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { DrawerRootProps } from '@chakra-ui/react';
3
+ import { DrawerOverlay } from './DrawerOverlay';
4
+ import { DrawerContent } from './DrawerContent';
5
+ import { DrawerBody } from './DrawerBody';
6
+ interface DrawerProps extends Omit<DrawerRootProps, 'open' | 'onOpenChange'> {
7
+ isOpen: boolean;
8
+ onClose: () => void;
9
+ }
10
+ export declare const Drawer: FC<PropsWithChildren<DrawerProps>>;
11
+ export type { DrawerProps };
12
+ export { DrawerOverlay, DrawerContent, DrawerBody };
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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,EAEhB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,UAAU,WAAY,SAAQ,IAAI,CAAC,eAAe,EAAE,MAAM,GAAG,cAAc,CAAC;IAC1E,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAYrD,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,CAAC;AAE5B,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,UAAU,EAAE,CAAC"}
@@ -14,6 +14,7 @@ export * from './count';
14
14
  export * from './datePicker';
15
15
  export * from './devOverlay';
16
16
  export * from './dialog';
17
+ export * from './drawer';
17
18
  export * from './energyLabel';
18
19
  export * from './errorPage';
19
20
  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,CAA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,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC"}
package/dist/cjs/index.js CHANGED
@@ -61,6 +61,7 @@ var sizes = react$1.defineTokens.sizes({
61
61
  '6xl': { value: '20rem' },
62
62
  '7xl': { value: '30rem' },
63
63
  '8xl': { value: '45rem' },
64
+ half: { value: '50%' },
64
65
  full: { value: '100%' },
65
66
  fit: { value: 'fit-content' },
66
67
  container: {
@@ -147,6 +148,9 @@ var durations = react$1.defineTokens.durations({
147
148
  normal: {
148
149
  value: '200ms',
149
150
  },
151
+ slow: {
152
+ value: '350ms',
153
+ },
150
154
  });
151
155
 
152
156
  var cursor = react$1.defineTokens.cursor({
@@ -328,7 +332,8 @@ var aspectRatios = react$1.defineTokens.aspectRatios({
328
332
  var animations = react$1.defineTokens.animations({
329
333
  skeletonPulse: { value: 'skeletonPulse 1.6s linear infinite' },
330
334
  spin: { value: 'spin 0.8s linear infinite' },
331
- 'fade-in': { value: 'fade-in var(--fade-in-duration, 0.1s) ease-out' },
335
+ 'fade-in': { value: 'fade-in var(--fade-in-duration, 0.1s) ease-in' },
336
+ 'fade-out': { value: 'fade-out var(--fade-out-duration, 0.1s) ease-out' },
332
337
  });
333
338
 
334
339
  var textStyles = react$1.defineTextStyles({
@@ -1961,6 +1966,249 @@ var energyLabelRecipe = react$1.defineSlotRecipe({
1961
1966
  },
1962
1967
  });
1963
1968
 
1969
+ var drawerRecipe = react$1.defineSlotRecipe({
1970
+ slots: ['root', 'backdrop', 'positioner', 'content', 'body', 'closeTrigger'],
1971
+ className: 'chakra-drawer',
1972
+ base: {
1973
+ root: {},
1974
+ backdrop: {
1975
+ position: 'fixed',
1976
+ insetInlineStart: '0',
1977
+ top: '0',
1978
+ width: 'full',
1979
+ height: 'full',
1980
+ zIndex: 'overlay',
1981
+ _open: {
1982
+ animation: 'fade-in',
1983
+ },
1984
+ _closed: {
1985
+ animation: 'fade-out',
1986
+ },
1987
+ },
1988
+ positioner: {
1989
+ display: 'flex',
1990
+ width: 'full',
1991
+ height: 'full',
1992
+ position: 'fixed',
1993
+ insetInlineStart: '0',
1994
+ top: '0',
1995
+ zIndex: 'modal',
1996
+ },
1997
+ content: {
1998
+ bg: 'white',
1999
+ boxShadow: 'xs',
2000
+ },
2001
+ body: {
2002
+ flex: 1,
2003
+ padding: 'lg',
2004
+ overflowY: 'auto',
2005
+ },
2006
+ closeTrigger: {
2007
+ display: 'flex',
2008
+ justifyContent: 'center',
2009
+ alignItems: 'center',
2010
+ width: 'xs',
2011
+ height: 'xs',
2012
+ borderRadius: 'sm',
2013
+ color: 'gray.800',
2014
+ fontSize: 'base',
2015
+ cursor: 'pointer',
2016
+ _hover: {
2017
+ bg: 'gray.100',
2018
+ },
2019
+ },
2020
+ },
2021
+ variants: {
2022
+ placement: {
2023
+ top: {
2024
+ positioner: {
2025
+ alignItems: 'flex-start',
2026
+ justifyContent: 'stretch',
2027
+ },
2028
+ },
2029
+ bottom: {
2030
+ positioner: {
2031
+ alignItems: 'flex-end',
2032
+ justifyContent: 'stretch',
2033
+ },
2034
+ },
2035
+ left: {
2036
+ positioner: {
2037
+ alignItems: 'stretch',
2038
+ justifyContent: 'flex-start',
2039
+ },
2040
+ },
2041
+ right: {
2042
+ positioner: {
2043
+ alignItems: 'stretch',
2044
+ justifyContent: 'flex-end',
2045
+ },
2046
+ },
2047
+ },
2048
+ size: {
2049
+ xl: {
2050
+ content: {
2051
+ width: '4xl',
2052
+ },
2053
+ },
2054
+ half: {
2055
+ content: {
2056
+ width: 'half',
2057
+ },
2058
+ },
2059
+ full: {
2060
+ content: {
2061
+ width: 'full',
2062
+ },
2063
+ },
2064
+ },
2065
+ },
2066
+ compoundVariants: [
2067
+ {
2068
+ placement: 'top',
2069
+ size: 'xl',
2070
+ css: {
2071
+ content: {
2072
+ width: 'full',
2073
+ height: '2xl',
2074
+ _open: {
2075
+ animationName: 'slide-in-from-top',
2076
+ animationDuration: 'slow',
2077
+ },
2078
+ _closed: {
2079
+ animationName: 'slide-out-to-top',
2080
+ animationDuration: 'fast',
2081
+ },
2082
+ },
2083
+ },
2084
+ },
2085
+ {
2086
+ placement: 'top',
2087
+ size: 'half',
2088
+ css: {
2089
+ content: {
2090
+ width: 'full',
2091
+ height: 'half',
2092
+ _open: {
2093
+ animationName: 'slide-in-from-top',
2094
+ animationDuration: 'slow',
2095
+ },
2096
+ _closed: {
2097
+ animationName: 'slide-out-to-top',
2098
+ animationDuration: 'fast',
2099
+ },
2100
+ },
2101
+ },
2102
+ },
2103
+ {
2104
+ placement: 'top',
2105
+ size: 'full',
2106
+ css: {
2107
+ content: {
2108
+ width: 'full',
2109
+ height: 'full',
2110
+ _open: {
2111
+ animationName: 'slide-in-from-top',
2112
+ animationDuration: 'slow',
2113
+ },
2114
+ _closed: {
2115
+ animationName: 'slide-out-to-top',
2116
+ animationDuration: 'fast',
2117
+ },
2118
+ },
2119
+ },
2120
+ },
2121
+ {
2122
+ placement: 'right',
2123
+ css: {
2124
+ content: {
2125
+ _open: {
2126
+ animationName: 'slide-in-from-right',
2127
+ animationDuration: 'slow',
2128
+ },
2129
+ _closed: {
2130
+ animationName: 'slide-out-to-right',
2131
+ animationDuration: 'fast',
2132
+ },
2133
+ },
2134
+ },
2135
+ },
2136
+ {
2137
+ placement: 'bottom',
2138
+ size: 'xl',
2139
+ css: {
2140
+ content: {
2141
+ width: 'full',
2142
+ height: '2xl',
2143
+ _open: {
2144
+ animationName: 'slide-in-from-bottom',
2145
+ animationDuration: 'slow',
2146
+ },
2147
+ _closed: {
2148
+ animationName: 'slide-out-to-bottom',
2149
+ animationDuration: 'fast',
2150
+ },
2151
+ },
2152
+ },
2153
+ },
2154
+ {
2155
+ placement: 'bottom',
2156
+ size: 'half',
2157
+ css: {
2158
+ content: {
2159
+ width: 'full',
2160
+ height: 'half',
2161
+ _open: {
2162
+ animationName: 'slide-in-from-bottom',
2163
+ animationDuration: 'slow',
2164
+ },
2165
+ _closed: {
2166
+ animationName: 'slide-out-to-bottom',
2167
+ animationDuration: 'fast',
2168
+ },
2169
+ },
2170
+ },
2171
+ },
2172
+ {
2173
+ placement: 'bottom',
2174
+ size: 'full',
2175
+ css: {
2176
+ content: {
2177
+ width: 'full',
2178
+ height: 'full',
2179
+ _open: {
2180
+ animationName: 'slide-in-from-bottom',
2181
+ animationDuration: 'slow',
2182
+ },
2183
+ _closed: {
2184
+ animationName: 'slide-out-to-bottom',
2185
+ animationDuration: 'fast',
2186
+ },
2187
+ },
2188
+ },
2189
+ },
2190
+ {
2191
+ placement: 'left',
2192
+ css: {
2193
+ content: {
2194
+ _open: {
2195
+ animationName: 'slide-in-from-left',
2196
+ animationDuration: 'slow',
2197
+ },
2198
+ _closed: {
2199
+ animationName: 'slide-out-to-left',
2200
+ animationDuration: 'fast',
2201
+ },
2202
+ },
2203
+ },
2204
+ },
2205
+ ],
2206
+ defaultVariants: {
2207
+ placement: 'right',
2208
+ size: 'half',
2209
+ },
2210
+ });
2211
+
1964
2212
  var baseStyleDialog$1 = react$1.defineStyle({
1965
2213
  _open: {
1966
2214
  animationName: 'fade-in',
@@ -2541,6 +2789,7 @@ var slotRecipes = {
2541
2789
  input: inputSlotRecipe,
2542
2790
  select: selectSlotRecipe,
2543
2791
  dialogFilter: dialogFilterRecipe,
2792
+ drawer: drawerRecipe,
2544
2793
  alert: alertRecipe,
2545
2794
  popoverFilter: popoverFilterRecipe,
2546
2795
  numberInput: numberInputRecipe,
@@ -2995,6 +3244,38 @@ var keyframes = react$1.defineKeyframes({
2995
3244
  scale: '0.95',
2996
3245
  },
2997
3246
  },
3247
+ 'slide-in-from-top': {
3248
+ from: { transform: 'translateY(-100%)' },
3249
+ to: { transform: 'translateY(0)' },
3250
+ },
3251
+ 'slide-in-from-right': {
3252
+ from: { transform: 'translateX(100%)' },
3253
+ to: { transform: 'translateX(0)' },
3254
+ },
3255
+ 'slide-in-from-bottom': {
3256
+ from: { transform: 'translateY(100%)' },
3257
+ to: { transform: 'translateY(0)' },
3258
+ },
3259
+ 'slide-in-from-left': {
3260
+ from: { transform: 'translateX(-100%)' },
3261
+ to: { transform: 'translateX(0)' },
3262
+ },
3263
+ 'slide-out-to-top': {
3264
+ from: { transform: 'translateY(0)' },
3265
+ to: { transform: 'translateY(-100%)' },
3266
+ },
3267
+ 'slide-out-to-right': {
3268
+ from: { transform: 'translateX(0)' },
3269
+ to: { transform: 'translateX(100%)' },
3270
+ },
3271
+ 'slide-out-to-bottom': {
3272
+ from: { transform: 'translateY(0)' },
3273
+ to: { transform: 'translateY(100%)' },
3274
+ },
3275
+ 'slide-out-to-left': {
3276
+ from: { transform: 'translateX(0)' },
3277
+ to: { transform: 'translateX(-100%)' },
3278
+ },
2998
3279
  });
2999
3280
 
3000
3281
  var globalCss = react$1.defineGlobalStyles({
@@ -5565,6 +5846,30 @@ var Dialog = function (_a) {
5565
5846
  primaryActionButton ? (React.createElement(Button, { variant: "primary", onClick: primaryActionButton.action, width: { base: 'full', sm: 'fit' } }, primaryActionButton.label)) : null))))))));
5566
5847
  };
5567
5848
 
5849
+ var DrawerOverlay = function (props) {
5850
+ return React.createElement(react$1.Drawer.Backdrop, __assign({}, props));
5851
+ };
5852
+
5853
+ var DrawerContent = function (props) {
5854
+ var children = props.children, withCloseButton = props.withCloseButton, drawerContentProps = __rest(props, ["children", "withCloseButton"]);
5855
+ return (React.createElement(react$1.Drawer.Positioner, null,
5856
+ React.createElement(react$1.Drawer.Content, __assign({}, drawerContentProps),
5857
+ withCloseButton ? (React.createElement(react$1.Drawer.CloseTrigger, { asChild: true, fontSize: "base" },
5858
+ React.createElement(CloseIcon, null))) : null,
5859
+ children)));
5860
+ };
5861
+
5862
+ var DrawerBody = function (props) {
5863
+ var children = props.children, drawerBodyProps = __rest(props, ["children"]);
5864
+ return React.createElement(react$1.Drawer.Body, __assign({}, drawerBodyProps), children);
5865
+ };
5866
+
5867
+ var Drawer = function (props) {
5868
+ var children = props.children, isOpen = props.isOpen, onClose = props.onClose, drawerProps = __rest(props, ["children", "isOpen", "onClose"]);
5869
+ return (React.createElement(react$1.Drawer.Root, __assign({ open: isOpen, onOpenChange: function (e) { return !e.open && onClose(); } }, drawerProps),
5870
+ React.createElement(react$1.Portal, null, children)));
5871
+ };
5872
+
5568
5873
  var Text = react$1.Text;
5569
5874
  Text.displayName = 'Text';
5570
5875
 
@@ -10704,6 +11009,10 @@ exports.DoubleChevronUpIcon = DoubleChevronUpIcon;
10704
11009
  exports.DoubleLineIcon = DoubleLineIcon;
10705
11010
  exports.DownloadIcon = DownloadIcon;
10706
11011
  exports.DragIcon = DragIcon;
11012
+ exports.Drawer = Drawer;
11013
+ exports.DrawerBody = DrawerBody;
11014
+ exports.DrawerContent = DrawerContent;
11015
+ exports.DrawerOverlay = DrawerOverlay;
10707
11016
  exports.DriveSystemIcon = DriveSystemIcon;
10708
11017
  exports.DriveSystemLargeIcon = DriveSystemLargeIcon;
10709
11018
  exports.DriveTypeIcon = DriveTypeIcon;