@pattern-stack/frontend-patterns 0.2.0-alpha.13 → 0.2.0-alpha.15

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
@@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.0-alpha.15]
11
+
12
+ ### Fixed
13
+ - **`Sidebar` respects hidden header**: when `<AppLayout header={false} />` skips the header, the sidebar no longer leaves a 64px empty strip at the top and chop the bottom of its content. Added a new `topOffset?: 'header' | 'none'` prop on `<Sidebar>` (default `'header'`); `<AppLayout>` now passes `topOffset="none"` whenever `header === false`, which renders the sidebar at `top:0` with `h-screen` instead of `top-16` / `h-[calc(100vh-4rem)]`. Default header behaviour is unchanged.
14
+
15
+ ## [0.2.0-alpha.14]
16
+
17
+ ### Fixed
18
+ - **`Button` no longer wraps `children` in a `<span>`** when `iconOnlyMobile` is false. The previous unconditional `<span>` (default `display: inline`) broke the parent `inline-flex` layout for any consumer passing multiple children — block-level children inside the inline span would stack vertically instead of sitting beside their siblings. Most visible victim: `SidebarButton`, whose expanded items rendered the icon centered ABOVE the label instead of horizontally next to it. The wrapper `<span>` is now only emitted when `iconOnlyMobile` is true (its sole purpose — applying `hidden sm:inline`); otherwise children are rendered directly so they participate in the button's flex layout.
19
+
10
20
  ## [0.2.0-alpha.13]
11
21
 
12
22
  ### Changed
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../src/atoms/components/core/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAEL,KAAK,WAAW,IAAI,aAAa,EAClC,MAAM,4BAA4B,CAAC;AAKpC,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC;IAClE,6DAA6D;IAC7D,OAAO,CAAC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