@hyphen/hyphen-components 6.4.0 → 6.5.0
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/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/css/utilities.css +1 -1
- package/dist/css/variables.css +2 -2
- package/dist/hyphen-components.cjs.development.js +16 -9
- package/dist/hyphen-components.cjs.development.js.map +1 -1
- package/dist/hyphen-components.cjs.production.min.js +1 -1
- package/dist/hyphen-components.cjs.production.min.js.map +1 -1
- package/dist/hyphen-components.esm.js +16 -9
- package/dist/hyphen-components.esm.js.map +1 -1
- package/dist/lib/tokens.d.ts +1 -1
- package/package.json +13 -13
- package/src/components/Drawer/Drawer.tsx +12 -2
|
@@ -1918,8 +1918,9 @@ var styles$l = {"drawer":"Drawer-module_drawer__IKoOm","hide-overlay-right":"Dra
|
|
|
1918
1918
|
var _excluded$v = ["defaultIsOpen", "open", "onOpenChange", "className", "children"],
|
|
1919
1919
|
_excluded2$3 = ["asChild", "onClick"],
|
|
1920
1920
|
_excluded3$2 = ["className"],
|
|
1921
|
-
_excluded4$2 = ["className"
|
|
1922
|
-
_excluded5$2 = ["className"]
|
|
1921
|
+
_excluded4$2 = ["className"],
|
|
1922
|
+
_excluded5$2 = ["className", "onClick", "onClose"],
|
|
1923
|
+
_excluded6$2 = ["className"];
|
|
1923
1924
|
var DrawerContext = /*#__PURE__*/createContext(null);
|
|
1924
1925
|
function useDrawer() {
|
|
1925
1926
|
var context = useContext(DrawerContext);
|
|
@@ -2091,7 +2092,8 @@ var Drawer = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
2091
2092
|
}, children)))));
|
|
2092
2093
|
});
|
|
2093
2094
|
var DrawerHeader = /*#__PURE__*/React__default.forwardRef(function (_ref4, ref) {
|
|
2094
|
-
var
|
|
2095
|
+
var className = _ref4.className,
|
|
2096
|
+
props = _objectWithoutPropertiesLoose(_ref4, _excluded3$2);
|
|
2095
2097
|
return React__default.createElement(Box, _extends({
|
|
2096
2098
|
ref: ref,
|
|
2097
2099
|
"data-drawer": "header",
|
|
@@ -2101,23 +2103,26 @@ var DrawerHeader = /*#__PURE__*/React__default.forwardRef(function (_ref4, ref)
|
|
|
2101
2103
|
padding: {
|
|
2102
2104
|
base: '2xl 2xl 0 2xl',
|
|
2103
2105
|
tablet: '3xl 3xl 0 3xl'
|
|
2104
|
-
}
|
|
2106
|
+
},
|
|
2107
|
+
className: className
|
|
2105
2108
|
}, props));
|
|
2106
2109
|
});
|
|
2107
2110
|
DrawerHeader.displayName = 'DrawerHeader';
|
|
2108
2111
|
var DrawerTitle = /*#__PURE__*/React__default.forwardRef(function (_ref5, ref) {
|
|
2109
|
-
var
|
|
2112
|
+
var className = _ref5.className,
|
|
2113
|
+
props = _objectWithoutPropertiesLoose(_ref5, _excluded4$2);
|
|
2110
2114
|
return React__default.createElement(Box, _extends({
|
|
2111
2115
|
ref: ref,
|
|
2112
2116
|
"data-drawer": "title",
|
|
2113
|
-
fontWeight: "bold"
|
|
2117
|
+
fontWeight: "bold",
|
|
2118
|
+
className: className
|
|
2114
2119
|
}, props));
|
|
2115
2120
|
});
|
|
2116
2121
|
var DrawerCloseButton = /*#__PURE__*/forwardRef(function (_ref6, ref) {
|
|
2117
2122
|
var className = _ref6.className,
|
|
2118
2123
|
onClick = _ref6.onClick,
|
|
2119
2124
|
onClose = _ref6.onClose,
|
|
2120
|
-
rest = _objectWithoutPropertiesLoose(_ref6,
|
|
2125
|
+
rest = _objectWithoutPropertiesLoose(_ref6, _excluded5$2);
|
|
2121
2126
|
var context = useContext(DrawerContext);
|
|
2122
2127
|
var isStandalone = !context;
|
|
2123
2128
|
var handleClick = function handleClick(event) {
|
|
@@ -2144,7 +2149,8 @@ var DrawerCloseButton = /*#__PURE__*/forwardRef(function (_ref6, ref) {
|
|
|
2144
2149
|
});
|
|
2145
2150
|
DrawerCloseButton.displayName = 'DrawerCloseButton';
|
|
2146
2151
|
var DrawerContent = /*#__PURE__*/React__default.forwardRef(function (_ref7, ref) {
|
|
2147
|
-
var
|
|
2152
|
+
var className = _ref7.className,
|
|
2153
|
+
props = _objectWithoutPropertiesLoose(_ref7, _excluded6$2);
|
|
2148
2154
|
return React__default.createElement(Box, _extends({
|
|
2149
2155
|
ref: ref,
|
|
2150
2156
|
"data-drawer": "content",
|
|
@@ -2155,7 +2161,8 @@ var DrawerContent = /*#__PURE__*/React__default.forwardRef(function (_ref7, ref)
|
|
|
2155
2161
|
base: '2xl',
|
|
2156
2162
|
tablet: '3xl'
|
|
2157
2163
|
},
|
|
2158
|
-
gap: "md"
|
|
2164
|
+
gap: "md",
|
|
2165
|
+
className: className
|
|
2159
2166
|
}, props));
|
|
2160
2167
|
});
|
|
2161
2168
|
|