@robert-stackflow/oneui 0.6.26 → 0.6.27

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.6.27
2
+
3
+ - Add Drawer headerDivider for tabbed panels that already own their navigation separator.
4
+
1
5
  ## 0.6.26
2
6
 
3
7
  - Add content-sized Popover width for compact contextual action bars, clamped to the viewport.
@@ -6,6 +6,8 @@ export type DrawerProps = {
6
6
  onAfterClose?(): void;
7
7
  title: ReactNode;
8
8
  description?: ReactNode;
9
+ /** Hide the header divider when embedded navigation already provides one. */
10
+ headerDivider?: boolean;
9
11
  children: ReactNode;
10
12
  footer?: ReactNode;
11
13
  placement?: DrawerPlacement;
@@ -20,4 +22,4 @@ export type DrawerProps = {
20
22
  portalContainer?: HTMLElement | null;
21
23
  className?: string;
22
24
  };
23
- export declare function Drawer({ open: requestedOpen, onClose, onAfterClose, title, description, children, footer, placement, size, closable, closeOnEscape, closeOnBackdrop, initialFocus, returnFocus, fallbackFocus, portalContainer, closeLabel, className, }: DrawerProps): import("react").ReactPortal | null;
25
+ export declare function Drawer({ open: requestedOpen, onClose, onAfterClose, title, description, headerDivider, children, footer, placement, size, closable, closeOnEscape, closeOnBackdrop, initialFocus, returnFocus, fallbackFocus, portalContainer, closeLabel, className, }: DrawerProps): import("react").ReactPortal | null;
@@ -33,6 +33,7 @@ function Drawer({
33
33
  onAfterClose,
34
34
  title,
35
35
  description,
36
+ headerDivider = true,
36
37
  children,
37
38
  footer,
38
39
  placement = "right",
@@ -141,7 +142,7 @@ function Drawer({
141
142
  backdropDown.current = false;
142
143
  },
143
144
  children: [
144
- /* @__PURE__ */ jsxs("header", { className: s.header, children: [
145
+ /* @__PURE__ */ jsxs("header", { className: s.header, "data-divider": headerDivider, children: [
145
146
  /* @__PURE__ */ jsxs("div", { className: s.heading, children: [
146
147
  /* @__PURE__ */ jsx("h2", { id: titleId, children: title }),
147
148
  description != null && /* @__PURE__ */ jsx("div", { id: descriptionId, className: s.description, children: description })
@@ -65,6 +65,9 @@
65
65
  min-width: 0;
66
66
  padding-top: 4px;
67
67
  }
68
+ .header[data-divider="false"] {
69
+ border-bottom: 0;
70
+ }
68
71
  .heading h2 {
69
72
  font-size: 16px;
70
73
  font-weight: 550;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@robert-stackflow/oneui",
3
- "version": "0.6.26",
3
+ "version": "0.6.27",
4
4
  "description": "OneUI React components, application shell and portable visual themes",
5
5
  "type": "module",
6
6
  "sideEffects": [