@nexub/patterns 9.6.0 → 9.8.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
|
|
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),
|
package/dist/index.js
CHANGED
|
@@ -1,93 +1,93 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
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
|
-
|
|
12
|
-
} from "./chunk-
|
|
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";
|
|
16
32
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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";
|
|
20
41
|
import {
|
|
21
42
|
SettingsPage
|
|
22
43
|
} from "./chunk-JXST66ON.js";
|
|
23
44
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./chunk-
|
|
45
|
+
PaywallPage
|
|
46
|
+
} from "./chunk-K2FAHLBJ.js";
|
|
26
47
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
48
|
+
SettingsLayout,
|
|
49
|
+
SettingsRow
|
|
50
|
+
} from "./chunk-KJ4QGNXD.js";
|
|
29
51
|
import {
|
|
30
52
|
CheckoutPage
|
|
31
53
|
} from "./chunk-LX6YY2KQ.js";
|
|
32
54
|
import {
|
|
33
|
-
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import {
|
|
36
|
-
StatCard
|
|
37
|
-
} from "./chunk-INKX2GYA.js";
|
|
55
|
+
TransactionDetailPage
|
|
56
|
+
} from "./chunk-PGGREX6G.js";
|
|
38
57
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./chunk-
|
|
58
|
+
NotificationItem
|
|
59
|
+
} from "./chunk-QC4TMG73.js";
|
|
60
|
+
import "./chunk-RFCPEZGF.js";
|
|
41
61
|
import {
|
|
42
62
|
ErrorSummary,
|
|
43
63
|
useFormErrors
|
|
44
64
|
} from "./chunk-RWPFCNMJ.js";
|
|
45
65
|
import {
|
|
46
|
-
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import {
|
|
49
|
-
ListDetail
|
|
50
|
-
} from "./chunk-5JU6HUVJ.js";
|
|
51
|
-
import {
|
|
52
|
-
NotificationCenter
|
|
53
|
-
} from "./chunk-4MD5VRPS.js";
|
|
54
|
-
import {
|
|
55
|
-
NotificationItem
|
|
56
|
-
} from "./chunk-QC4TMG73.js";
|
|
57
|
-
import {
|
|
58
|
-
ActivityFeed
|
|
59
|
-
} from "./chunk-GHOBXWUA.js";
|
|
60
|
-
import {
|
|
61
|
-
AppHeader
|
|
62
|
-
} from "./chunk-BDT2EEOK.js";
|
|
63
|
-
import "./chunk-CWFZA7ZQ.js";
|
|
66
|
+
SignInPage
|
|
67
|
+
} from "./chunk-RXT3LZQL.js";
|
|
64
68
|
import {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
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
|
-
|
|
74
|
-
} from "./chunk-
|
|
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
|
-
|
|
81
|
-
} from "./chunk-
|
|
82
|
+
InfoList
|
|
83
|
+
} from "./chunk-WPNT5JOU.js";
|
|
82
84
|
import {
|
|
83
85
|
Conversation
|
|
84
86
|
} from "./chunk-WRP73TXG.js";
|
|
85
87
|
import {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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.
|
|
3
|
+
"version": "9.8.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.8.0",
|
|
41
|
+
"@nexub/react": "^9.8.0",
|
|
42
|
+
"@nexub/tokens": "^9.8.0",
|
|
40
43
|
"react": ">=19 <20",
|
|
41
|
-
"react-dom": ">=19 <20"
|
|
42
|
-
"@nexub/icons": "^9.6.0",
|
|
43
|
-
"@nexub/react": "^9.6.0",
|
|
44
|
-
"@nexub/tokens": "^9.6.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.8.0",
|
|
56
|
+
"@nexub/react": "9.8.0",
|
|
57
|
+
"@nexub/tokens": "9.8.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.6.0",
|
|
69
|
-
"@nexub/react": "9.6.0",
|
|
70
|
-
"@nexub/tokens": "9.6.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
|
+
}
|