@talelk/newui-organisms 2.1.0 → 2.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@talelk/newui-organisms",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "description": "Application regions, sidebars, tables and widgets built from atoms and molecules.",
6
6
  "exports": {
@@ -15,8 +15,8 @@
15
15
  "skills/newui-organisms"
16
16
  ],
17
17
  "dependencies": {
18
- "@talelk/newui-atoms": "1.1.0",
19
- "@talelk/newui-molecules": "2.1.0",
18
+ "@talelk/newui-atoms": "1.2.0",
19
+ "@talelk/newui-molecules": "2.2.1",
20
20
  "@tanstack/solid-table": "^9.3.1",
21
21
  "@tanstack/solid-virtual": "^3.13.47"
22
22
  },
@@ -11,7 +11,7 @@ metadata:
11
11
  type: core
12
12
  domain: ui
13
13
  library: '@talelk/newui-organisms'
14
- library_version: '2.1.0'
14
+ library_version: '2.1.2'
15
15
  sources:
16
16
  - talelk/newui:packages/organisms/src/organisms/DataTable/DataTable.tsx
17
17
  - talelk/newui:packages/organisms/src/organisms/AppSidebar/AppSidebar.tsx
@@ -482,7 +482,10 @@ export function DataTable<T extends { id: string }>(
482
482
  data-slot="data-table-cards"
483
483
  class={`flex flex-col gap-2 p-card-pad-compact ${cardHiddenClass()}`}
484
484
  >
485
- <Show when={selectable()}>
485
+ {/* The bulk row earns its place only once a selection exists: at
486
+ zero it is a lone checkbox beside "0 selected", and the cards'
487
+ own checkboxes are how a selection starts. */}
488
+ <Show when={selectable() && selected().length > 0}>
486
489
  <div class="flex items-center justify-between gap-2 px-1">
487
490
  <Checkbox
488
491
  aria-label={`Select all ${props.title} on this page`}