@krak-stack/registry 0.10.10 → 0.10.11

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,5 +1,11 @@
1
1
  # @krak-stack/registry
2
2
 
3
+ ## 0.10.11
4
+
5
+ ### Patch Changes
6
+
7
+ - Use a compact square button for Data Table group actions and align it with the row action buttons, with a small inset from the right edge.
8
+
3
9
  ## 0.10.10
4
10
 
5
11
  ### Patch Changes
@@ -3118,7 +3118,7 @@ var TableDataRow = ({
3118
3118
  className: "bg-background group-data-[state=selected]/row:bg-muted sticky right-0 z-20 w-10 min-w-10 cursor-default p-0 transition-colors group-hover/row:bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))]",
3119
3119
  onClick: (event) => event.stopPropagation(),
3120
3120
  children: /* @__PURE__ */ jsx15("div", {
3121
- className: "flex h-16 items-center justify-center",
3121
+ className: "flex h-16 items-center justify-end pr-1",
3122
3122
  children: /* @__PURE__ */ jsx15(DataTableRowActionMenu, {
3123
3123
  tableAtom
3124
3124
  })
@@ -3130,8 +3130,7 @@ var TableDataRow = ({
3130
3130
  var GroupActions = ({
3131
3131
  actions,
3132
3132
  groupId,
3133
- title,
3134
- triggerClassName
3133
+ title
3135
3134
  }) => {
3136
3135
  const visible = actions?.filter((action) => !action.visible || action.visible(groupId));
3137
3136
  if (!visible?.length)
@@ -3141,8 +3140,7 @@ var GroupActions = ({
3141
3140
  /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
3142
3141
  onClick: (event) => event.stopPropagation(),
3143
3142
  render: /* @__PURE__ */ jsxs9(Button, {
3144
- className: triggerClassName,
3145
- size: "icon",
3143
+ size: "icon-sm",
3146
3144
  variant: "ghost",
3147
3145
  children: [
3148
3146
  /* @__PURE__ */ jsx15("span", {
@@ -3199,7 +3197,7 @@ var GroupedTable = ({
3199
3197
  className: "p-0",
3200
3198
  colSpan: model.visibleColumns.length + extra,
3201
3199
  children: /* @__PURE__ */ jsxs9("div", {
3202
- className: "sticky left-0 flex w-[100cqw] max-w-full items-center gap-2 py-2 pl-2",
3200
+ className: "sticky left-0 flex w-[100cqw] max-w-full items-center gap-2 py-2 pr-1 pl-2",
3203
3201
  children: [
3204
3202
  /* @__PURE__ */ jsxs9("button", {
3205
3203
  "aria-expanded": !collapsed,
@@ -3219,15 +3217,14 @@ var GroupedTable = ({
3219
3217
  ]
3220
3218
  }),
3221
3219
  /* @__PURE__ */ jsx15(Badge, {
3222
- className: "shrink-0 last:mr-2",
3220
+ className: "shrink-0",
3223
3221
  variant: "secondary",
3224
3222
  children: section.rows.length
3225
3223
  }),
3226
3224
  /* @__PURE__ */ jsx15(GroupActions, {
3227
3225
  actions: section.field.actions,
3228
3226
  groupId: section.groupId,
3229
- title: section.field.actionsLabel ?? store.config.labels.actions,
3230
- triggerClassName: "w-10 shrink-0"
3227
+ title: section.field.actionsLabel ?? store.config.labels.actions
3231
3228
  })
3232
3229
  ]
3233
3230
  })
@@ -3118,7 +3118,7 @@ var TableDataRow = ({
3118
3118
  className: "bg-background group-data-[state=selected]/row:bg-muted sticky right-0 z-20 w-10 min-w-10 cursor-default p-0 transition-colors group-hover/row:bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))]",
3119
3119
  onClick: (event) => event.stopPropagation(),
3120
3120
  children: /* @__PURE__ */ jsx15("div", {
3121
- className: "flex h-16 items-center justify-center",
3121
+ className: "flex h-16 items-center justify-end pr-1",
3122
3122
  children: /* @__PURE__ */ jsx15(DataTableRowActionMenu, {
3123
3123
  tableAtom
3124
3124
  })
@@ -3130,8 +3130,7 @@ var TableDataRow = ({
3130
3130
  var GroupActions = ({
3131
3131
  actions,
3132
3132
  groupId,
3133
- title,
3134
- triggerClassName
3133
+ title
3135
3134
  }) => {
3136
3135
  const visible = actions?.filter((action) => !action.visible || action.visible(groupId));
3137
3136
  if (!visible?.length)
@@ -3141,8 +3140,7 @@ var GroupActions = ({
3141
3140
  /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
3142
3141
  onClick: (event) => event.stopPropagation(),
3143
3142
  render: /* @__PURE__ */ jsxs9(Button, {
3144
- className: triggerClassName,
3145
- size: "icon",
3143
+ size: "icon-sm",
3146
3144
  variant: "ghost",
3147
3145
  children: [
3148
3146
  /* @__PURE__ */ jsx15("span", {
@@ -3199,7 +3197,7 @@ var GroupedTable = ({
3199
3197
  className: "p-0",
3200
3198
  colSpan: model.visibleColumns.length + extra,
3201
3199
  children: /* @__PURE__ */ jsxs9("div", {
3202
- className: "sticky left-0 flex w-[100cqw] max-w-full items-center gap-2 py-2 pl-2",
3200
+ className: "sticky left-0 flex w-[100cqw] max-w-full items-center gap-2 py-2 pr-1 pl-2",
3203
3201
  children: [
3204
3202
  /* @__PURE__ */ jsxs9("button", {
3205
3203
  "aria-expanded": !collapsed,
@@ -3219,15 +3217,14 @@ var GroupedTable = ({
3219
3217
  ]
3220
3218
  }),
3221
3219
  /* @__PURE__ */ jsx15(Badge, {
3222
- className: "shrink-0 last:mr-2",
3220
+ className: "shrink-0",
3223
3221
  variant: "secondary",
3224
3222
  children: section.rows.length
3225
3223
  }),
3226
3224
  /* @__PURE__ */ jsx15(GroupActions, {
3227
3225
  actions: section.field.actions,
3228
3226
  groupId: section.groupId,
3229
- title: section.field.actionsLabel ?? store.config.labels.actions,
3230
- triggerClassName: "w-10 shrink-0"
3227
+ title: section.field.actionsLabel ?? store.config.labels.actions
3231
3228
  })
3232
3229
  ]
3233
3230
  })
@@ -3122,7 +3122,7 @@ var TableDataRow = ({
3122
3122
  className: "bg-background group-data-[state=selected]/row:bg-muted sticky right-0 z-20 w-10 min-w-10 cursor-default p-0 transition-colors group-hover/row:bg-[color-mix(in_oklab,var(--muted)_50%,var(--background))]",
3123
3123
  onClick: (event) => event.stopPropagation(),
3124
3124
  children: /* @__PURE__ */ jsx15("div", {
3125
- className: "flex h-16 items-center justify-center",
3125
+ className: "flex h-16 items-center justify-end pr-1",
3126
3126
  children: /* @__PURE__ */ jsx15(DataTableRowActionMenu, {
3127
3127
  tableAtom
3128
3128
  })
@@ -3134,8 +3134,7 @@ var TableDataRow = ({
3134
3134
  var GroupActions = ({
3135
3135
  actions,
3136
3136
  groupId,
3137
- title,
3138
- triggerClassName
3137
+ title
3139
3138
  }) => {
3140
3139
  const visible = actions?.filter((action) => !action.visible || action.visible(groupId));
3141
3140
  if (!visible?.length)
@@ -3145,8 +3144,7 @@ var GroupActions = ({
3145
3144
  /* @__PURE__ */ jsx15(DropdownMenuTrigger2, {
3146
3145
  onClick: (event) => event.stopPropagation(),
3147
3146
  render: /* @__PURE__ */ jsxs9(Button, {
3148
- className: triggerClassName,
3149
- size: "icon",
3147
+ size: "icon-sm",
3150
3148
  variant: "ghost",
3151
3149
  children: [
3152
3150
  /* @__PURE__ */ jsx15("span", {
@@ -3203,7 +3201,7 @@ var GroupedTable = ({
3203
3201
  className: "p-0",
3204
3202
  colSpan: model.visibleColumns.length + extra,
3205
3203
  children: /* @__PURE__ */ jsxs9("div", {
3206
- className: "sticky left-0 flex w-[100cqw] max-w-full items-center gap-2 py-2 pl-2",
3204
+ className: "sticky left-0 flex w-[100cqw] max-w-full items-center gap-2 py-2 pr-1 pl-2",
3207
3205
  children: [
3208
3206
  /* @__PURE__ */ jsxs9("button", {
3209
3207
  "aria-expanded": !collapsed,
@@ -3223,15 +3221,14 @@ var GroupedTable = ({
3223
3221
  ]
3224
3222
  }),
3225
3223
  /* @__PURE__ */ jsx15(Badge, {
3226
- className: "shrink-0 last:mr-2",
3224
+ className: "shrink-0",
3227
3225
  variant: "secondary",
3228
3226
  children: section.rows.length
3229
3227
  }),
3230
3228
  /* @__PURE__ */ jsx15(GroupActions, {
3231
3229
  actions: section.field.actions,
3232
3230
  groupId: section.groupId,
3233
- title: section.field.actionsLabel ?? store.config.labels.actions,
3234
- triggerClassName: "w-10 shrink-0"
3231
+ title: section.field.actionsLabel ?? store.config.labels.actions
3235
3232
  })
3236
3233
  ]
3237
3234
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krak-stack/registry",
3
- "version": "0.10.10",
3
+ "version": "0.10.11",
4
4
  "description": "Tree-shakable KrakStack components and Effect services.",
5
5
  "license": "MIT",
6
6
  "repository": {