@sproutsocial/seeds-react-peek-in 0.2.8 → 0.3.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/esm/index.js CHANGED
@@ -117,7 +117,8 @@ var PeekInPanel = ({
117
117
  onSnapPointChange,
118
118
  snapToSequentialPoints,
119
119
  disableCloseOnClickOutside,
120
- actionsInHeader
120
+ actionsInHeader,
121
+ headerless
121
122
  }) => {
122
123
  const { panelOpen, setPanelOpen, panelId } = usePeekInContext();
123
124
  const isMobile = useIsMobile();
@@ -142,7 +143,7 @@ var PeekInPanel = ({
142
143
  actionsInHeader,
143
144
  "aria-label": title ?? "Panel",
144
145
  children: [
145
- /* @__PURE__ */ jsx3(Drawer.Header, { title }),
146
+ !headerless && /* @__PURE__ */ jsx3(Drawer.Header, { title }),
146
147
  /* @__PURE__ */ jsx3(Drawer.Content, { children: /* @__PURE__ */ jsx3(
147
148
  Box3,
148
149
  {
@@ -167,6 +168,8 @@ var PeekInPanel = ({
167
168
  gap: RAIL_GAP,
168
169
  mobileBreakpoint: 0,
169
170
  title,
171
+ headerless,
172
+ "aria-label": title ?? "Panel",
170
173
  children: /* @__PURE__ */ jsx3(
171
174
  Box3,
172
175
  {