@nexub/patterns 9.5.0 → 9.7.0

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.
@@ -4,6 +4,10 @@
4
4
  import * as React from "react";
5
5
  import { Button, cn, SearchInput, useNexubMessages } from "@nexub/react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
+ function stripEllipsis(text) {
8
+ const t = text.trimEnd();
9
+ return (t.endsWith("\u2026") ? t.slice(0, -1) : t.endsWith("...") ? t.slice(0, -3) : t).trimEnd();
10
+ }
7
11
  var FilterBar = React.forwardRef(
8
12
  ({ searchPlaceholder, searchLabel, onSearch, searchValue, filters, actions, activeCount = 0, onClearAll, className, ...props }, ref) => {
9
13
  const t = useNexubMessages();
@@ -11,7 +15,7 @@ var FilterBar = React.forwardRef(
11
15
  /* @__PURE__ */ jsx(
12
16
  SearchInput,
13
17
  {
14
- "aria-label": searchLabel ?? searchPlaceholder?.replace(/\s*(…|\.\.\.)$/, "") ?? t.search,
18
+ "aria-label": searchLabel ?? (searchPlaceholder && stripEllipsis(searchPlaceholder)) ?? t.search,
15
19
  placeholder: searchPlaceholder ?? t.searchPlaceholder,
16
20
  value: searchValue,
17
21
  onChange: (e) => onSearch?.(e.target.value),
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import {
3
3
  FilterBar
4
- } from "../../chunk-SNONOBAE.js";
4
+ } from "../../chunk-CINXWXKK.js";
5
5
  export {
6
6
  FilterBar
7
7
  };
package/dist/index.js CHANGED
@@ -1,93 +1,93 @@
1
1
  'use client';
2
2
  import {
3
- TransactionDetailPage
4
- } from "./chunk-PGGREX6G.js";
3
+ NotificationCenter
4
+ } from "./chunk-4MD5VRPS.js";
5
+ import {
6
+ ListDetail
7
+ } from "./chunk-5JU6HUVJ.js";
5
8
  import {
6
9
  UserCard
7
10
  } from "./chunk-7NYGYETG.js";
11
+ import {
12
+ ActivityPage,
13
+ TransactionRow
14
+ } from "./chunk-AUJER5GR.js";
15
+ import {
16
+ AppHeader
17
+ } from "./chunk-BDT2EEOK.js";
18
+ import {
19
+ FilterBar
20
+ } from "./chunk-CINXWXKK.js";
21
+ import "./chunk-CWFZA7ZQ.js";
8
22
  import "./chunk-EQQOVRRM.js";
9
- import "./chunk-RFCPEZGF.js";
10
23
  import {
11
- PaywallPage
12
- } from "./chunk-K2FAHLBJ.js";
24
+ ActivityFeed
25
+ } from "./chunk-GHOBXWUA.js";
26
+ import {
27
+ AuthCard
28
+ } from "./chunk-HMJRSNJD.js";
13
29
  import {
14
30
  PlanCard
15
31
  } from "./chunk-I5OGZW3U.js";
32
+ import {
33
+ ChatPage
34
+ } from "./chunk-IHUELKTD.js";
35
+ import {
36
+ StatCard
37
+ } from "./chunk-INKX2GYA.js";
38
+ import {
39
+ DashboardPage
40
+ } from "./chunk-JN5U727F.js";
16
41
  import {
17
42
  SettingsPage
18
43
  } from "./chunk-JXST66ON.js";
19
44
  import {
20
- SettingsSection
21
- } from "./chunk-U3FT7XAU.js";
45
+ PaywallPage
46
+ } from "./chunk-K2FAHLBJ.js";
22
47
  import {
23
48
  SettingsLayout,
24
49
  SettingsRow
25
50
  } from "./chunk-KJ4QGNXD.js";
26
- import {
27
- SignInPage
28
- } from "./chunk-RXT3LZQL.js";
29
51
  import {
30
52
  CheckoutPage
31
53
  } from "./chunk-LX6YY2KQ.js";
32
54
  import {
33
- DashboardPage
34
- } from "./chunk-JN5U727F.js";
55
+ TransactionDetailPage
56
+ } from "./chunk-PGGREX6G.js";
35
57
  import {
36
- StatCard
37
- } from "./chunk-INKX2GYA.js";
58
+ NotificationItem
59
+ } from "./chunk-QC4TMG73.js";
60
+ import "./chunk-RFCPEZGF.js";
38
61
  import {
39
62
  ErrorSummary,
40
63
  useFormErrors
41
64
  } from "./chunk-RWPFCNMJ.js";
42
65
  import {
43
- FilterBar
44
- } from "./chunk-SNONOBAE.js";
45
- import {
46
- InfoList
47
- } from "./chunk-WPNT5JOU.js";
48
- import {
49
- NotificationCenter
50
- } from "./chunk-4MD5VRPS.js";
51
- import {
52
- NotificationItem
53
- } from "./chunk-QC4TMG73.js";
54
- import {
55
- ListDetail
56
- } from "./chunk-5JU6HUVJ.js";
57
- import {
58
- ActivityFeed
59
- } from "./chunk-GHOBXWUA.js";
60
- import "./chunk-CWFZA7ZQ.js";
61
- import {
62
- ActivityPage,
63
- TransactionRow
64
- } from "./chunk-AUJER5GR.js";
66
+ SignInPage
67
+ } from "./chunk-RXT3LZQL.js";
65
68
  import {
66
- AppHeader
67
- } from "./chunk-BDT2EEOK.js";
68
- import "./chunk-VYMTTYPR.js";
69
+ PageFrame,
70
+ defaultPageTemplateMessages,
71
+ groupByDay,
72
+ usePageMessages
73
+ } from "./chunk-S63ZWOZB.js";
69
74
  import {
70
75
  AppLauncher
71
76
  } from "./chunk-TUJJWHQT.js";
72
77
  import {
73
- AuthCard
74
- } from "./chunk-HMJRSNJD.js";
75
- import {
76
- BentoGrid,
77
- BentoTile
78
- } from "./chunk-WZTDCJYP.js";
78
+ SettingsSection
79
+ } from "./chunk-U3FT7XAU.js";
80
+ import "./chunk-VYMTTYPR.js";
79
81
  import {
80
- ChatPage
81
- } from "./chunk-IHUELKTD.js";
82
+ InfoList
83
+ } from "./chunk-WPNT5JOU.js";
82
84
  import {
83
85
  Conversation
84
86
  } from "./chunk-WRP73TXG.js";
85
87
  import {
86
- PageFrame,
87
- defaultPageTemplateMessages,
88
- groupByDay,
89
- usePageMessages
90
- } from "./chunk-S63ZWOZB.js";
88
+ BentoGrid,
89
+ BentoTile
90
+ } from "./chunk-WZTDCJYP.js";
91
91
  export {
92
92
  ActivityFeed,
93
93
  ActivityPage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexub/patterns",
3
- "version": "9.5.0",
3
+ "version": "9.7.0",
4
4
  "description": "Composite UI patterns for Nexub Design System — pre-built, production-ready layouts and widgets built on @nexub/react.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -37,11 +37,11 @@
37
37
  "main": "./dist/index.js",
38
38
  "types": "./dist/index.d.ts",
39
39
  "peerDependencies": {
40
+ "@nexub/icons": "^9.7.0",
41
+ "@nexub/react": "^9.7.0",
42
+ "@nexub/tokens": "^9.7.0",
40
43
  "react": ">=19 <20",
41
- "react-dom": ">=19 <20",
42
- "@nexub/icons": "^9.5.0",
43
- "@nexub/react": "^9.5.0",
44
- "@nexub/tokens": "^9.5.0"
44
+ "react-dom": ">=19 <20"
45
45
  },
46
46
  "peerDependenciesMeta": {
47
47
  "@nexub/icons": {
@@ -52,6 +52,9 @@
52
52
  }
53
53
  },
54
54
  "devDependencies": {
55
+ "@nexub/icons": "9.7.0",
56
+ "@nexub/react": "9.7.0",
57
+ "@nexub/tokens": "9.7.0",
55
58
  "@tailwindcss/cli": "^4.3.3",
56
59
  "@testing-library/jest-dom": "^6.9.1",
57
60
  "@testing-library/react": "^16.3.3",
@@ -64,10 +67,7 @@
64
67
  "tsup": "^9.0.0",
65
68
  "typescript": "~6.0.3",
66
69
  "vite": "^8.3.5",
67
- "vitest": "^5.0.5",
68
- "@nexub/icons": "9.5.0",
69
- "@nexub/react": "9.5.0",
70
- "@nexub/tokens": "9.5.0"
70
+ "vitest": "^5.0.5"
71
71
  },
72
72
  "scripts": {
73
73
  "build": "tsup && tailwindcss -i src/styles.css -o dist/styles.css --minify",
@@ -77,4 +77,4 @@
77
77
  "test": "vitest run --coverage",
78
78
  "lint": "eslint src"
79
79
  }
80
- }
80
+ }