@bwp-web/components 1.0.2 → 1.0.4

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/README.md CHANGED
@@ -10,8 +10,8 @@ npm install @bwp-web/components
10
10
 
11
11
  ### Peer Dependencies
12
12
 
13
- - `@bwp-web/styles` >= 1.0.1
14
- - `@bwp-web/assets` >= 1.0.0
13
+ - `@bwp-web/styles` >= 1.0.3
14
+ - `@bwp-web/assets` >= 1.0.1
15
15
  - `@mui/material` >= 7.0.0
16
16
  - `react` >= 18.0.0
17
17
  - `react-dom` >= 18.0.0
@@ -44,6 +44,9 @@ For `BiampTable` only:
44
44
  | `BiampBannerIcon` | Leading icon slot for `BiampBanner` |
45
45
  | `BiampBannerContent` | Center message slot for `BiampBanner` |
46
46
  | `BiampBannerActions` | Trailing actions slot for `BiampBanner` |
47
+ | `BiampGlobalSearch` | Searchable autocomplete with icons, subtitles, chips, and keyboard hints |
48
+ | `SegmentedButtonGroup` | Horizontal container for grouping segmented toggle buttons |
49
+ | `SegmentedButton` | Individual toggle button for use inside `SegmentedButtonGroup` |
47
50
  | `BiampTable` | Composable data table with sorting, selection, pagination, and more |
48
51
 
49
52
  ## Usage
@@ -223,11 +226,12 @@ Requires `@tanstack/react-table` >= 8.0.0 as a peer dependency.
223
226
 
224
227
  Detailed per-component docs are available in the repository's [`/docs`](../../docs) folder (GitHub links):
225
228
 
226
- | Document | Contents |
227
- | ----------------------------------------------- | ----------------------------------------------------------------------------------- |
228
- | [biamp-layout.md](../../docs/biamp-layout.md) | `BiampLayout` — props, examples, design details |
229
- | [biamp-wrapper.md](../../docs/biamp-wrapper.md) | `BiampWrapper` — props, examples, design details |
230
- | [biamp-sidebar.md](../../docs/biamp-sidebar.md) | `BiampSidebar`, `BiampSidebarIconList`, `BiampSidebarIcon`, `BiampSidebarComponent` |
231
- | [biamp-header.md](../../docs/biamp-header.md) | `BiampHeader` family + app-launcher components |
232
- | [biamp-banner.md](../../docs/biamp-banner.md) | `BiampBanner` family — props, examples, design details |
233
- | [biamp-table.md](../../docs/biamp-table.md) | `BiampTable` — columns, sorting, selection, pagination, filters, export |
229
+ | Document | Contents |
230
+ | ----------------------------------------------------------- | ----------------------------------------------------------------------------------- |
231
+ | [biamp-layout.md](../../docs/biamp-layout.md) | `BiampLayout` — props, examples, design details |
232
+ | [biamp-wrapper.md](../../docs/biamp-wrapper.md) | `BiampWrapper` — props, examples, design details |
233
+ | [biamp-sidebar.md](../../docs/biamp-sidebar.md) | `BiampSidebar`, `BiampSidebarIconList`, `BiampSidebarIcon`, `BiampSidebarComponent` |
234
+ | [biamp-header.md](../../docs/biamp-header.md) | `BiampHeader` family + app-launcher components |
235
+ | [biamp-banner.md](../../docs/biamp-banner.md) | `BiampBanner` family — props, examples, design details |
236
+ | [biamp-global-search.md](../../docs/biamp-global-search.md) | `BiampGlobalSearch` — options, filtering, async loading, navigation |
237
+ | [biamp-table.md](../../docs/biamp-table.md) | `BiampTable` — columns, sorting, selection, pagination, filters, export |
@@ -15,25 +15,13 @@ type RowClickProps<TData> = {
15
15
  };
16
16
  type SelectionExpandingProps = {
17
17
  /** When true, renders a checkbox column for row selection. */
18
- enableRowSelection: true;
18
+ enableRowSelection?: boolean;
19
19
  /** When true, renders an expand/collapse toggle column for rows that have sub-rows. */
20
- enableExpanding: true;
21
- /** When true, hides the "select all" header checkbox while keeping individual row checkboxes. */
20
+ enableExpanding?: boolean;
21
+ /** When true, hides the "select all" header checkbox while keeping individual row checkboxes. Only applies when `enableRowSelection` is true. */
22
22
  hideSelectAll?: boolean;
23
- /** When true, selecting a parent row also selects/deselects its children. @default false */
23
+ /** When true, selecting a parent row also selects/deselects its children. Only applies when both `enableRowSelection` and `enableExpanding` are true. @default false */
24
24
  selectChildrenWithParent?: boolean;
25
- } | {
26
- /** When true, renders a checkbox column for row selection. */
27
- enableRowSelection: true;
28
- enableExpanding?: false;
29
- /** When true, hides the "select all" header checkbox while keeping individual row checkboxes. */
30
- hideSelectAll?: boolean;
31
- selectChildrenWithParent?: never;
32
- } | {
33
- enableRowSelection?: false;
34
- enableExpanding?: boolean;
35
- hideSelectAll?: never;
36
- selectChildrenWithParent?: never;
37
25
  };
38
26
  export type BiampTableProps<TData> = BoxProps & RowClickProps<TData> & SelectionExpandingProps & {
39
27
  /** TanStack Table instance to connect to. */
@@ -1 +1 @@
1
- {"version":3,"file":"BiampTable.d.ts","sourceRoot":"","sources":["../../src/BiampTable/BiampTable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,QAAQ,EAWd,MAAM,eAAe,CAAC;AAOvB,OAAO,EAAwB,KAAK,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzE,OAAc,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAOtD,KAAK,aAAa,CAAC,KAAK,IACpB;IACE,qFAAqF;IACrF,UAAU,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC;;;OAGG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,OAAO,CAAC;CAC1C,GACD;IACE,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,cAAc,CAAC,EAAE,KAAK,CAAC;CACxB,CAAC;AAGN,KAAK,uBAAuB,GACxB;IACE,8DAA8D;IAC9D,kBAAkB,EAAE,IAAI,CAAC;IACzB,uFAAuF;IACvF,eAAe,EAAE,IAAI,CAAC;IACtB,iGAAiG;IACjG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,4FAA4F;IAC5F,wBAAwB,CAAC,EAAE,OAAO,CAAC;CACpC,GACD;IACE,8DAA8D;IAC9D,kBAAkB,EAAE,IAAI,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC;IACxB,iGAAiG;IACjG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,wBAAwB,CAAC,EAAE,KAAK,CAAC;CAClC,GACD;IACE,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,eAAe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