@bridge-ui/vue 0.5.0 → 0.5.1

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.
@@ -264,6 +264,7 @@ var _e = { class: "min-w-0 flex-1" }, ve = { class: "flex shrink-0 items-center
264
264
  colspan: C(U)
265
265
  }, {
266
266
  default: T(() => [f("div", y(h(C(je))), [S(e.$slots, "empty", {}, () => [p(C(te), {
267
+ icon: "inbox",
267
268
  size: C(R).size,
268
269
  title: C(F)("No data")
269
270
  }, null, 8, ["size", "title"])])], 16)]),
@@ -1,33 +1,34 @@
1
1
  import e from "../Button/Button.js";
2
2
  import { useSidebarTrigger as t } from "./composables/useSidebarTrigger.js";
3
- import { createBlock as n, createCommentVNode as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, useSlots as l, withCtx as u } from "vue";
3
+ import { createBlock as n, createSlots as r, defineComponent as i, mergeProps as a, openBlock as o, renderSlot as s, unref as c, useSlots as l, withCtx as u } from "vue";
4
4
  //#region src/Components/Sidebar/SidebarTrigger.vue?vue&type=script&setup=true&lang.ts
5
5
  var d = /*@__PURE__*/ i({
6
6
  inheritAttrs: !1,
7
7
  __name: "SidebarTrigger",
8
8
  setup(i) {
9
- let d = l(), { attrs: f, panelId: p, expanded: m, iconClass: h, ariaLabel: g, handleClick: _, hasDefaultSlot: v } = t(d);
10
- return (t, i) => (o(), n(c(e), a(c(f), {
9
+ let d = l(), { icon: f, attrs: p, panelId: m, expanded: h, iconClass: g, ariaLabel: _, handleClick: v, hasDefaultSlot: y } = t(d);
10
+ return (t, i) => (o(), n(c(e), a(c(p), {
11
11
  color: "dark",
12
+ icon: c(f),
12
13
  type: "button",
13
14
  density: "mini",
14
15
  variant: "light",
15
- "aria-label": c(g),
16
- onClick: c(_),
17
- "aria-expanded": c(m),
18
- classes: { icon: c(h) },
19
- "aria-controls": c(p) || void 0,
20
- icon: c(v) ? void 0 : "panelLeft"
21
- }), {
22
- default: u(() => [c(v) ? s(t.$slots, "default", {}, void 0, void 0, 0) : r("", !0)]),
23
- _: 3
24
- }, 16, [
16
+ "aria-label": c(_),
17
+ onClick: c(v),
18
+ "aria-expanded": c(h),
19
+ classes: { icon: c(g) },
20
+ "aria-controls": c(m) || void 0
21
+ }), r({ _: 2 }, [c(y) ? {
22
+ name: "default",
23
+ fn: u(() => [s(t.$slots, "default")]),
24
+ key: "0"
25
+ } : void 0]), 1040, [
26
+ "icon",
25
27
  "aria-label",
26
28
  "onClick",
27
29
  "aria-expanded",
28
30
  "classes",
29
- "aria-controls",
30
- "icon"
31
+ "aria-controls"
31
32
  ]));
32
33
  }
33
34
  });
@@ -1,5 +1,7 @@
1
1
  import { useSlots } from 'vue';
2
+ import { IconSource } from '../../../Adapters/Icon';
2
3
  export declare function useSidebarTrigger(slots: ReturnType<typeof useSlots>): {
4
+ icon: import('vue').ComputedRef<IconSource | undefined>;
3
5
  expanded: import('vue').ComputedRef<boolean>;
4
6
  iconClass: import('vue').ComputedRef<"rotate-180 rtl:rotate-0" | "rtl:rotate-180">;
5
7
  ariaLabel: import('vue').ComputedRef<string>;
@@ -6,6 +6,9 @@ import { omit as i } from "es-toolkit/compat";
6
6
  function a(a) {
7
7
  let o = t(), s = r(), c = n(() => e(a, "default"));
8
8
  return {
9
+ icon: n(() => {
10
+ if (!c.value) return "panelLeft";
11
+ }),
9
12
  expanded: n(() => o.value.isMobile ? o.value.openMobile : o.value.open),
10
13
  iconClass: n(() => o.value.side === "right" ? "rotate-180 rtl:rotate-0" : "rtl:rotate-180"),
11
14
  ariaLabel: n(() => {
@@ -141,7 +141,7 @@ When `page` and `page-count` (or `total-count`) are set, DataTable does not sort
141
141
 
142
142
  ### Empty, loading, and footer
143
143
 
144
- Empty rows render `EmptyState` at the table `size`, with the i18n title `"No data"`. `#empty` replaces it. `loading` keeps the table visible. `loadingVariant="overlay"` (default) dims the table with a spin; `loadingVariant="bar"` dims the table and draws a progress line under the header. `#loading` replaces the indicator. `#footer` renders below the table, above pagination:
144
+ Empty rows render `EmptyState` at the table `size`, with the semantic `inbox` icon and the i18n title `"No data"`. `#empty` replaces it. `loading` keeps the table visible. `loadingVariant="overlay"` (default) dims the table with a spin; `loadingVariant="bar"` dims the table and draws a progress line under the header. `#loading` replaces the indicator. `#footer` renders below the table, above pagination:
145
145
 
146
146
  ```vue
147
147
  <DataTable :rows="[]" :columns="columns" :loading="isLoading">
@@ -26,6 +26,7 @@ import {
26
26
  faEye,
27
27
  faEyeSlash,
28
28
  faFilter,
29
+ faInbox,
29
30
  faMagnifyingGlass,
30
31
  faMinus,
31
32
  faPalette,
@@ -94,6 +95,7 @@ const icons = {
94
95
  bell: faBell,
95
96
  user: faUser,
96
97
  plus: faPlus,
98
+ inbox: faInbox,
97
99
  clear: faXmark,
98
100
  check: faCheck,
99
101
  clock: faClock,
@@ -24,6 +24,7 @@ import {
24
24
  EyeIcon,
25
25
  EyeSlashIcon,
26
26
  FunnelIcon,
27
+ InboxIcon,
27
28
  InformationCircleIcon,
28
29
  MagnifyingGlassIcon,
29
30
  MinusIcon,
@@ -44,6 +45,7 @@ const icons = {
44
45
  bell: BellIcon,
45
46
  user: UserIcon,
46
47
  plus: PlusIcon,
48
+ inbox: InboxIcon,
47
49
  clear: XMarkIcon,
48
50
  check: CheckIcon,
49
51
  clock: ClockIcon,
@@ -23,6 +23,7 @@ import {
23
23
  Eye,
24
24
  EyeOff,
25
25
  Filter,
26
+ Inbox,
26
27
  Info,
27
28
  Loader2,
28
29
  Minus,
@@ -48,6 +49,7 @@ const icons = {
48
49
  plus: Plus,
49
50
  check: Check,
50
51
  clock: Clock,
52
+ inbox: Inbox,
51
53
  minus: Minus,
52
54
  error: CircleX,
53
55
  eyeOff: EyeOff,
@@ -28,6 +28,7 @@ import {
28
28
  PhPlus,
29
29
  PhSidebar,
30
30
  PhSpinnerGap,
31
+ PhTray,
31
32
  PhUser,
32
33
  PhWarning,
33
34
  PhWarningCircle,
@@ -46,6 +47,7 @@ const icons = {
46
47
  info: PhInfo,
47
48
  user: PhUser,
48
49
  plus: PhPlus,
50
+ inbox: PhTray,
49
51
  check: PhCheck,
50
52
  clock: PhClock,
51
53
  minus: PhMinus,
@@ -23,6 +23,7 @@ import {
23
23
  IconEye,
24
24
  IconEyeOff,
25
25
  IconFilter,
26
+ IconInbox,
26
27
  IconInfoCircle,
27
28
  IconLayoutSidebar,
28
29
  IconLoader2,
@@ -45,6 +46,7 @@ const icons = {
45
46
  bell: IconBell,
46
47
  user: IconUser,
47
48
  plus: IconPlus,
49
+ inbox: IconInbox,
48
50
  check: IconCheck,
49
51
  clock: IconClock,
50
52
  minus: IconMinus,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "license": "MIT",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "author": "BridgeUI",
6
6
  "sideEffects": false,
7
7
  "name": "@bridge-ui/vue",
@@ -89,7 +89,7 @@
89
89
  }
90
90
  },
91
91
  "dependencies": {
92
- "@bridge-ui/core": "^0.5.0",
92
+ "@bridge-ui/core": "^0.5.1",
93
93
  "clsx": "^2.1.1",
94
94
  "es-toolkit": "^1.50.0",
95
95
  "tailwind-merge": "^3.6.0"