pixelize-design-library 2.4.1-beta.1 → 2.4.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.
Files changed (157) hide show
  1. package/package.json +2 -2
  2. package/dist/App.d.ts +0 -4
  3. package/dist/App.js +0 -95
  4. package/dist/Layout.d.ts +0 -3
  5. package/dist/Layout.js +0 -286
  6. package/dist/Pages/TInput.d.ts +0 -3
  7. package/dist/Pages/TInput.d.ts.map +0 -1
  8. package/dist/Pages/TInput.js +0 -20
  9. package/dist/Pages/accordion.d.ts +0 -3
  10. package/dist/Pages/accordion.d.ts.map +0 -1
  11. package/dist/Pages/accordion.js +0 -21
  12. package/dist/Pages/alertdialog.d.ts +0 -3
  13. package/dist/Pages/alertdialog.d.ts.map +0 -1
  14. package/dist/Pages/alertdialog.js +0 -53
  15. package/dist/Pages/button.d.ts +0 -3
  16. package/dist/Pages/button.d.ts.map +0 -1
  17. package/dist/Pages/button.js +0 -32
  18. package/dist/Pages/card.d.ts +0 -3
  19. package/dist/Pages/card.d.ts.map +0 -1
  20. package/dist/Pages/card.js +0 -102
  21. package/dist/Pages/chart.d.ts +0 -4
  22. package/dist/Pages/chart.d.ts.map +0 -1
  23. package/dist/Pages/chart.js +0 -25
  24. package/dist/Pages/checkbox.d.ts +0 -3
  25. package/dist/Pages/checkbox.d.ts.map +0 -1
  26. package/dist/Pages/checkbox.js +0 -11
  27. package/dist/Pages/contactForm.d.ts +0 -3
  28. package/dist/Pages/contactForm.d.ts.map +0 -1
  29. package/dist/Pages/contactForm.js +0 -15
  30. package/dist/Pages/customModulesTable.d.ts +0 -4
  31. package/dist/Pages/customModulesTable.d.ts.map +0 -1
  32. package/dist/Pages/customModulesTable.js +0 -25
  33. package/dist/Pages/datePick.d.ts +0 -3
  34. package/dist/Pages/datePick.d.ts.map +0 -1
  35. package/dist/Pages/datePick.js +0 -49
  36. package/dist/Pages/drawer.d.ts +0 -3
  37. package/dist/Pages/drawer.d.ts.map +0 -1
  38. package/dist/Pages/drawer.js +0 -53
  39. package/dist/Pages/dropdown.d.ts +0 -3
  40. package/dist/Pages/dropdown.d.ts.map +0 -1
  41. package/dist/Pages/dropdown.js +0 -21
  42. package/dist/Pages/editor.d.ts +0 -3
  43. package/dist/Pages/editor.d.ts.map +0 -1
  44. package/dist/Pages/editor.js +0 -13
  45. package/dist/Pages/feedback.d.ts +0 -2
  46. package/dist/Pages/feedback.d.ts.map +0 -1
  47. package/dist/Pages/feedback.js +0 -12
  48. package/dist/Pages/fileUpload.d.ts +0 -2
  49. package/dist/Pages/fileUpload.d.ts.map +0 -1
  50. package/dist/Pages/fileUpload.js +0 -36
  51. package/dist/Pages/input.d.ts +0 -3
  52. package/dist/Pages/input.d.ts.map +0 -1
  53. package/dist/Pages/input.js +0 -48
  54. package/dist/Pages/kanbanboard.d.ts +0 -3
  55. package/dist/Pages/kanbanboard.d.ts.map +0 -1
  56. package/dist/Pages/kanbanboard.js +0 -182
  57. package/dist/Pages/modal.d.ts +0 -3
  58. package/dist/Pages/modal.d.ts.map +0 -1
  59. package/dist/Pages/modal.js +0 -61
  60. package/dist/Pages/multiSelect.d.ts +0 -3
  61. package/dist/Pages/multiSelect.d.ts.map +0 -1
  62. package/dist/Pages/multiSelect.js +0 -22
  63. package/dist/Pages/noteArea.d.ts +0 -3
  64. package/dist/Pages/noteArea.d.ts.map +0 -1
  65. package/dist/Pages/noteArea.js +0 -26
  66. package/dist/Pages/notification.d.ts +0 -3
  67. package/dist/Pages/notification.d.ts.map +0 -1
  68. package/dist/Pages/notification.js +0 -37
  69. package/dist/Pages/numberInput.d.ts +0 -3
  70. package/dist/Pages/numberInput.d.ts.map +0 -1
  71. package/dist/Pages/numberInput.js +0 -16
  72. package/dist/Pages/orgSwitcher.d.ts +0 -4
  73. package/dist/Pages/orgSwitcher.d.ts.map +0 -1
  74. package/dist/Pages/orgSwitcher.js +0 -36
  75. package/dist/Pages/organizationDetails.d.ts +0 -4
  76. package/dist/Pages/organizationDetails.d.ts.map +0 -1
  77. package/dist/Pages/organizationDetails.js +0 -64
  78. package/dist/Pages/photoViewer.d.ts +0 -3
  79. package/dist/Pages/photoViewer.d.ts.map +0 -1
  80. package/dist/Pages/photoViewer.js +0 -12
  81. package/dist/Pages/pinInputs.d.ts +0 -3
  82. package/dist/Pages/pinInputs.d.ts.map +0 -1
  83. package/dist/Pages/pinInputs.js +0 -11
  84. package/dist/Pages/productCaard.d.ts +0 -3
  85. package/dist/Pages/productCaard.d.ts.map +0 -1
  86. package/dist/Pages/productCaard.js +0 -311
  87. package/dist/Pages/productDetailCard.d.ts +0 -3
  88. package/dist/Pages/productDetailCard.d.ts.map +0 -1
  89. package/dist/Pages/productDetailCard.js +0 -78
  90. package/dist/Pages/productFilter.d.ts +0 -3
  91. package/dist/Pages/productFilter.d.ts.map +0 -1
  92. package/dist/Pages/productFilter.js +0 -148
  93. package/dist/Pages/progressbar.d.ts +0 -3
  94. package/dist/Pages/progressbar.d.ts.map +0 -1
  95. package/dist/Pages/progressbar.js +0 -11
  96. package/dist/Pages/radioButton.d.ts +0 -3
  97. package/dist/Pages/radioButton.d.ts.map +0 -1
  98. package/dist/Pages/radioButton.js +0 -18
  99. package/dist/Pages/rolesPermission.d.ts +0 -4
  100. package/dist/Pages/rolesPermission.d.ts.map +0 -1
  101. package/dist/Pages/rolesPermission.js +0 -144
  102. package/dist/Pages/search.d.ts +0 -3
  103. package/dist/Pages/search.d.ts.map +0 -1
  104. package/dist/Pages/search.js +0 -21
  105. package/dist/Pages/searchSelect.d.ts +0 -3
  106. package/dist/Pages/searchSelect.d.ts.map +0 -1
  107. package/dist/Pages/searchSelect.js +0 -97
  108. package/dist/Pages/select.d.ts +0 -3
  109. package/dist/Pages/select.d.ts.map +0 -1
  110. package/dist/Pages/select.js +0 -20
  111. package/dist/Pages/selectSearch.d.ts +0 -3
  112. package/dist/Pages/selectSearch.d.ts.map +0 -1
  113. package/dist/Pages/selectSearch.js +0 -58
  114. package/dist/Pages/signInActivityTable.d.ts +0 -4
  115. package/dist/Pages/signInActivityTable.d.ts.map +0 -1
  116. package/dist/Pages/signInActivityTable.js +0 -17
  117. package/dist/Pages/skeleton.d.ts +0 -3
  118. package/dist/Pages/skeleton.d.ts.map +0 -1
  119. package/dist/Pages/skeleton.js +0 -12
  120. package/dist/Pages/stageProgress.d.ts +0 -4
  121. package/dist/Pages/stageProgress.d.ts.map +0 -1
  122. package/dist/Pages/stageProgress.js +0 -31
  123. package/dist/Pages/switch.d.ts +0 -3
  124. package/dist/Pages/switch.d.ts.map +0 -1
  125. package/dist/Pages/switch.js +0 -17
  126. package/dist/Pages/table.d.ts +0 -3
  127. package/dist/Pages/table.d.ts.map +0 -1
  128. package/dist/Pages/table.js +0 -182
  129. package/dist/Pages/tag.d.ts +0 -3
  130. package/dist/Pages/tag.d.ts.map +0 -1
  131. package/dist/Pages/tag.js +0 -27
  132. package/dist/Pages/textArea.d.ts +0 -3
  133. package/dist/Pages/textArea.d.ts.map +0 -1
  134. package/dist/Pages/textArea.js +0 -14
  135. package/dist/Pages/tier1.d.ts +0 -4
  136. package/dist/Pages/tier1.d.ts.map +0 -1
  137. package/dist/Pages/tier1.js +0 -86
  138. package/dist/Pages/timeline.d.ts +0 -3
  139. package/dist/Pages/timeline.d.ts.map +0 -1
  140. package/dist/Pages/timeline.js +0 -73
  141. package/dist/Pages/tooltip.d.ts +0 -3
  142. package/dist/Pages/tooltip.d.ts.map +0 -1
  143. package/dist/Pages/tooltip.js +0 -11
  144. package/dist/Pages/toster.d.ts +0 -3
  145. package/dist/Pages/toster.d.ts.map +0 -1
  146. package/dist/Pages/toster.js +0 -53
  147. package/dist/Pages/upgradeButton.d.ts +0 -4
  148. package/dist/Pages/upgradeButton.d.ts.map +0 -1
  149. package/dist/Pages/upgradeButton.js +0 -17
  150. package/dist/Pages/userDetails.d.ts +0 -4
  151. package/dist/Pages/userDetails.d.ts.map +0 -1
  152. package/dist/Pages/userDetails.js +0 -79
  153. package/dist/Pages/verifyEmail.d.ts +0 -3
  154. package/dist/Pages/verifyEmail.d.ts.map +0 -1
  155. package/dist/Pages/verifyEmail.js +0 -17
  156. package/dist/bootstrap.d.ts +0 -2
  157. package/dist/bootstrap.js +0 -16
@@ -1,182 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.TableExample = void 0;
7
- const jsx_runtime_1 = require("react/jsx-runtime");
8
- const react_1 = require("react");
9
- const react_2 = require("@chakra-ui/react");
10
- const Table_1 = __importDefault(require("../Components/Table/Table"));
11
- const Button_1 = __importDefault(require("../Components/Button/Button"));
12
- // ---------------------------------------------------------------------------
13
- // Demo data
14
- // ---------------------------------------------------------------------------
15
- const STATUSES = ["Working on it", "Done", "Stuck", "Not started"];
16
- const PRIORITIES = ["High", "Medium", "Low"];
17
- const OWNERS = ["Alex Rowe", "Jamie Soto", "Priya Nair", "Chen Wei"];
18
- const STATUS_COLORS = {
19
- Done: "#23b85c",
20
- "Working on it": "#f59e0b",
21
- Stuck: "#e2483d",
22
- "Not started": "#7d6ea0",
23
- };
24
- const PRIORITY_COLORS = {
25
- High: "#e2483d",
26
- Medium: "#f59e0b",
27
- Low: "#23b85c",
28
- };
29
- const initials = (name) => name.split(" ").map((p) => p[0]).slice(0, 2).join("").toUpperCase();
30
- // ~600 rows so grouped virtualization is exercised. NOTE: expandable `content`
31
- // is intentionally omitted here — expandable rows have variable height and
32
- // disable virtualization (use a smaller dataset if you want expandable rows).
33
- const makeData = () => Array.from({ length: 600 }, (_, i) => ({
34
- id: i + 1,
35
- name: `Deal ${i + 1}`,
36
- status: STATUSES[i % STATUSES.length],
37
- priority: PRIORITIES[i % PRIORITIES.length],
38
- owner: OWNERS[i % OWNERS.length],
39
- amount: 500 + ((i * 137) % 9500),
40
- date: new Date(2026, i % 12, ((i * 7) % 27) + 1).toISOString().slice(0, 10),
41
- // Row actions (auto-renders the kebab action column)
42
- onLink: (row) => console.log("view", row.id),
43
- onEdit: (row) => console.log("edit", row.id),
44
- onDelete: (row) => console.log("delete", row.id),
45
- // content: () => <>Hello</>
46
- }));
47
- const columns = [
48
- { label: "Name", id: "name", isFreeze: true, isSort: true, isSearch: true },
49
- { label: "Status", id: "status", type: "status", statusColors: STATUS_COLORS, columnType: 'date' },
50
- { label: "Priority", id: "priority", type: "status", statusColors: PRIORITY_COLORS },
51
- {
52
- label: "Owner",
53
- id: "owner",
54
- node: (row) => {
55
- var _a, _b;
56
- return ((0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 2, children: [(0, jsx_runtime_1.jsx)(react_2.Box, { boxSize: "1.5rem", borderRadius: "full", bg: "primary.opacity.16", color: "primary.600", display: "flex", alignItems: "center", justifyContent: "center", fontSize: "0.625rem", fontWeight: 700, children: initials(String((_a = row.owner) !== null && _a !== void 0 ? _a : "")) }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "0.8125rem", children: String((_b = row.owner) !== null && _b !== void 0 ? _b : "") })] }));
57
- },
58
- },
59
- { label: "Amount", id: "amount", isSort: true, node: (row) => { var _a; return `$${Number((_a = row.amount) !== null && _a !== void 0 ? _a : 0).toLocaleString()}`; } },
60
- { label: "Date", id: "date", isSort: true },
61
- { label: "Date 2", id: "date2", isSort: true },
62
- { label: "Date 3", id: "date3", isSort: true },
63
- { label: "Date 4", id: "date4", isSort: true },
64
- { label: "Date 5", id: "date5", isSort: true },
65
- { label: "Date 6", id: "date6", isSort: true },
66
- ];
67
- const users = [
68
- { id: "1", label: "User 1" },
69
- { id: "2", label: "User 2" },
70
- { id: "3", label: "User 3" },
71
- ];
72
- const defaultSections = [
73
- {
74
- id: "system",
75
- label: "System Defined Filters",
76
- initiallyExpanded: true,
77
- items: [
78
- { id: "touched", label: "Touched Records", type: "text" },
79
- { id: "untouched", label: "Untouched Records", type: "select", option: users },
80
- { id: "record_action", label: "Record Action", type: "user", option: users },
81
- { id: "latest_email", label: "Latest Email Status", type: "date" },
82
- ],
83
- },
84
- {
85
- id: "fields",
86
- label: "Filter By Fields",
87
- radio: true,
88
- items: [
89
- { id: "status", label: "Status", type: "select", option: STATUSES.map((s) => ({ id: s, label: s })) },
90
- { id: "owner", label: "Owner" },
91
- ],
92
- },
93
- ];
94
- const TableExample = () => {
95
- const [data] = (0, react_1.useState)(makeData);
96
- const [page, setPage] = (0, react_1.useState)(1);
97
- const [pageSize, setPageSize] = (0, react_1.useState)(20);
98
- const [reqToken, setReqToken] = (0, react_1.useState)(0); // mimics LeadTable's payload churn
99
- const [isLoadingMore, setIsLoadingMore] = (0, react_1.useState)(false);
100
- const [isLoading, setIsLoading] = (0, react_1.useState)(false);
101
- const [isFilterSidebar, setIsFilterSidebar] = (0, react_1.useState)(false);
102
- const [selected, setSelected] = (0, react_1.useState)({});
103
- const reload = () => {
104
- setIsLoading(true);
105
- setTimeout(() => setIsLoading(false), 600);
106
- };
107
- const handleRefresh = () => {
108
- console.log("Refreshing table data...");
109
- setIsLoading(true);
110
- return new Promise((resolve) => {
111
- setTimeout(() => {
112
- setIsLoading(false);
113
- console.log("Table data refreshed!");
114
- resolve(true);
115
- }, 1000);
116
- });
117
- };
118
- // Server-style pagination: each fetch returns ONLY the requested page and
119
- // REPLACES `data` (like a real API / LeadTable). `reqToken` re-creates the array
120
- // reference the instant a request starts (before the next page arrives) to mimic
121
- // LeadTable's payload/refetch churn — exercising the accumulation timing.
122
- // PINNED rows repeat on EVERY page (like pinned leads) so pages overlap —
123
- // this is what made the page index get stuck.
124
- const PINNED = 8;
125
- const displayData = (0, react_1.useMemo)(() => {
126
- const perPage = pageSize - PINNED;
127
- const start = PINNED + (page - 1) * perPage;
128
- const slice = data.slice(start, start + perPage);
129
- if (slice.length === 0)
130
- return []; // past the end → empty page (no more)
131
- return [...data.slice(0, PINNED), ...slice];
132
- // eslint-disable-next-line react-hooks/exhaustive-deps
133
- }, [data, page, pageSize, reqToken]);
134
- // Mirror LeadTable: signal end-of-data from the response (empty page = no more).
135
- const hasMore = displayData.length > 0;
136
- const handlePagination = (p, size) => {
137
- if (isLoadingMore)
138
- return;
139
- setReqToken((t) => t + 1); // new `data` reference now, before the page changes
140
- setIsLoadingMore(true);
141
- setTimeout(() => {
142
- if (size !== pageSize) {
143
- setPageSize(size);
144
- setPage(1);
145
- }
146
- else {
147
- setPage(p);
148
- }
149
- setIsLoadingMore(false);
150
- // Simulate LeadTable re-emitting the current page reference after the fetch
151
- // settles (a non-load-more re-render) — must NOT collapse the accumulation.
152
- setTimeout(() => setReqToken((t) => t + 1), 500);
153
- }, 600);
154
- };
155
- const groupColors = (0, react_1.useMemo)(() => STATUS_COLORS, []);
156
- return ((0, jsx_runtime_1.jsxs)(react_2.Box, { children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 3, mb: 3, flexWrap: "wrap", children: [(0, jsx_runtime_1.jsxs)(react_2.Text, { fontSize: "sm", color: "gray.600", children: ["Open ", (0, jsx_runtime_1.jsx)("b", { children: "Settings \u2699 \u2192 Group" }), " to group by a column. Grouped \u2192 \u201CLoad more\u201D (accumulates pages); ungrouped \u2192 pager."] }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: "xs", variant: "outline", colorScheme: "gray", onClick: () => {
157
- setPageSize((s) => (s === 20 ? 100 : 20));
158
- setPage(1);
159
- setReqToken((t) => t + 1);
160
- }, label: `Page size: ${pageSize}` }), (0, jsx_runtime_1.jsx)(Button_1.default, { size: "xs", variant: "outline", colorScheme: "gray", onClick: reload, label: "Reload" })] }), (0, jsx_runtime_1.jsx)(Table_1.default, { columns: columns, data: displayData, isCheckbox: true, density: "compact", groupColors: groupColors, onAddItem: (group) => console.log("add item to", group), groupLoadMore: true, loadMorePosition: "top", loadMoreText: "Load more", isLoading: isLoading, loadingSkeletonRows: 6, isPagination: true, paginationMode: "server",
161
- // Intentionally larger than what's actually loadable (like Leads' totalRecords
162
- // vs. untouched) so the button must rely on `hasMore`, not the total.
163
- totalRecords: 99999, hasMore: hasMore, onPagination: handlePagination, isLoadingMore: isLoadingMore, noOfRowsPerPage: pageSize, onSelection: (sel) => console.log("selection", sel), onRowClick: (row, header) => console.log("row click", row, header), onGlobalSearch: (v) => console.log("search", v), isTableSettings: true, onRefresh: handleRefresh,
164
- // emptyState={{ title: "No deals yet", description: "Create your first deal to get started." }}
165
- headerActions: {
166
- isDelete: { enabled: true, onClick: (s) => console.log("delete", s) },
167
- isUpdate: { enabled: true, onClick: (s) => console.log("update", s) },
168
- }, filterSidebar: {
169
- isFilterSidebar,
170
- filterSidebarToggle: () => setIsFilterSidebar((v) => !v),
171
- sidebarOptions: defaultSections,
172
- onApply: (filters) => { console.log("apply", filters); setSelected(filters); },
173
- onClearAllHandler: () => setSelected({}),
174
- selected,
175
- }, tableSettings: {
176
- filters: ["status", "priority", "owner"],
177
- filterSelected: ["status"],
178
- onFilterSelection: (f) => console.log("settings filters", f),
179
- } })] }));
180
- };
181
- exports.TableExample = TableExample;
182
- exports.default = exports.TableExample;
@@ -1,3 +0,0 @@
1
- declare const TagPage: () => import("react/jsx-runtime").JSX.Element;
2
- export default TagPage;
3
- //# sourceMappingURL=tag.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../src/Pages/tag.tsx"],"names":[],"mappings":"AA4BA,QAAA,MAAM,OAAO,+CAqDZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
package/dist/Pages/tag.js DELETED
@@ -1,27 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_1 = require("@chakra-ui/react");
8
- const lucide_react_1 = require("lucide-react");
9
- const Tag_1 = __importDefault(require("../Components/Tag/Tag"));
10
- const sizes = ["xs", "sm", "md", "lg"];
11
- const variants = ["solid", "subtle", "outline"];
12
- const colorSchemes = [
13
- "primary",
14
- "secondary",
15
- "gray",
16
- "green",
17
- "red",
18
- "orange",
19
- "blue",
20
- "purple",
21
- ];
22
- const Section = ({ title, children }) => ((0, jsx_runtime_1.jsxs)(react_1.Box, { mb: 8, children: [(0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "sm", fontWeight: 600, color: "gray.500", mb: 3, children: title }), children] }));
23
- const TagPage = () => {
24
- const onSelect = (msg) => () => console.log(msg);
25
- return ((0, jsx_runtime_1.jsxs)(react_1.Stack, { spacing: 2, children: [(0, jsx_runtime_1.jsx)(Section, { title: "Variants (md)", children: (0, jsx_runtime_1.jsx)(react_1.Flex, { align: "center", gap: 3, flexWrap: "wrap", children: variants.map((variant) => ((0, jsx_runtime_1.jsx)(Tag_1.default, { label: variant, variant: variant, onTagClick: onSelect(`tag ${variant}`) }, variant))) }) }), (0, jsx_runtime_1.jsx)(Section, { title: "Sizes (subtle)", children: (0, jsx_runtime_1.jsx)(react_1.Flex, { align: "center", gap: 3, flexWrap: "wrap", children: sizes.map((size) => ((0, jsx_runtime_1.jsx)(Tag_1.default, { label: `Size ${size}`, size: size, variant: "subtle" }, size))) }) }), (0, jsx_runtime_1.jsx)(Section, { title: "Color schemes", children: variants.map((variant) => ((0, jsx_runtime_1.jsx)(react_1.Flex, { align: "center", gap: 3, flexWrap: "wrap", mb: 3, children: colorSchemes.map((colorScheme) => ((0, jsx_runtime_1.jsx)(Tag_1.default, { label: colorScheme, variant: variant, colorScheme: colorScheme }, `${variant}-${colorScheme}`))) }, variant))) }), (0, jsx_runtime_1.jsx)(Section, { title: "With removable icon", children: (0, jsx_runtime_1.jsx)(react_1.Flex, { align: "center", gap: 3, flexWrap: "wrap", children: colorSchemes.slice(0, 5).map((colorScheme) => ((0, jsx_runtime_1.jsx)(Tag_1.default, { label: colorScheme, variant: "subtle", colorScheme: colorScheme, icon: lucide_react_1.X, onIconClick: onSelect(`remove ${colorScheme}`), onTagClick: onSelect(`tag ${colorScheme}`) }, colorScheme))) }) })] }));
26
- };
27
- exports.default = TagPage;
@@ -1,3 +0,0 @@
1
- declare const TextAreaPage: () => import("react/jsx-runtime").JSX.Element;
2
- export default TextAreaPage;
3
- //# sourceMappingURL=textArea.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"textArea.d.ts","sourceRoot":"","sources":["../../src/Pages/textArea.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,+CAYjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1,14 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const InputTextArea_1 = __importDefault(require("../Components/InputTextArea/InputTextArea"));
8
- const TextAreaPage = () => {
9
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(InputTextArea_1.default, { label: "hello", helperText: "Hello",
10
- // errorMessage="Required"
11
- // error={true}
12
- rows: 5 }) }));
13
- };
14
- exports.default = TextAreaPage;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const Tier1Page: React.FC;
3
- export default Tier1Page;
4
- //# sourceMappingURL=tier1.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tier1.d.ts","sourceRoot":"","sources":["../../src/Pages/tier1.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AA6DlD,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EA2HtB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- var __importDefault = (this && this.__importDefault) || function (mod) {
36
- return (mod && mod.__esModule) ? mod : { "default": mod };
37
- };
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- const jsx_runtime_1 = require("react/jsx-runtime");
40
- const react_1 = require("react");
41
- const react_2 = require("@chakra-ui/react");
42
- const lucide_react_1 = require("lucide-react");
43
- const EmptyState_1 = __importDefault(require("../Components/EmptyState/EmptyState"));
44
- const MoreItems_1 = __importDefault(require("../Components/MoreItems/MoreItems"));
45
- const ScrollToTop_1 = __importDefault(require("../Components/ScrollToTop/ScrollToTop"));
46
- const CopyButton_1 = __importDefault(require("../Components/CopyButton/CopyButton"));
47
- const FieldSelectModal_1 = __importDefault(require("../Components/FieldSelectModal/FieldSelectModal"));
48
- const PdfViewer_1 = __importDefault(require("../Components/PdfViewer/PdfViewer"));
49
- const LazyWrapper_1 = __importDefault(require("../Components/LazyWrapper/LazyWrapper"));
50
- const FilePreview_1 = __importStar(require("../Components/FilePreview/FilePreview"));
51
- const useCustomTheme_1 = require("../Theme/useCustomTheme");
52
- const Section = ({ title, children, }) => {
53
- var _a, _b, _c, _d;
54
- const theme = (0, useCustomTheme_1.useCustomTheme)();
55
- return ((0, jsx_runtime_1.jsxs)(react_2.Box, { mb: 10, p: 6, borderRadius: "16px", border: "1px solid", borderColor: (_b = (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[300]) !== null && _b !== void 0 ? _b : "#E2E8F0", bg: theme.colors.background[50], children: [(0, jsx_runtime_1.jsx)(react_2.Heading, { size: "sm", mb: 4, color: (_d = (_c = theme.colors.text) === null || _c === void 0 ? void 0 : _c[900]) !== null && _d !== void 0 ? _d : "gray.700", children: title }), children] }));
56
- };
57
- const SAMPLE_IMAGE = "https://res.cloudinary.com/dcpnzaqtu/image/upload/v1766229935/main_sweets/1766229934288-Winter_Delghts.webp";
58
- const FIELDS = [
59
- { field_name: "name", field_label: "Full Name" },
60
- { field_name: "email", field_label: "Email Address" },
61
- { field_name: "phone", field_label: "Phone Number" },
62
- { field_name: "company", field_label: "Company" },
63
- { field_name: "title", field_label: "Job Title" },
64
- { field_name: "source", field_label: "Lead Source" },
65
- { field_name: "stage", field_label: "Stage" },
66
- { field_name: "owner", field_label: "Owner" },
67
- { field_name: "created", field_label: "Created Date" },
68
- { field_name: "updated", field_label: "Updated Date" },
69
- ];
70
- const TAGS = [
71
- { id: 1, label: "Enterprise", color: "#6366F1" },
72
- { id: 2, label: "High Priority", color: "#EF4444" },
73
- { id: 3, label: "Renewal", color: "#10B981" },
74
- { id: 4, label: "Newsletter", color: "#F59E0B" },
75
- { id: 5, label: "Partner", color: "#06B6D4" },
76
- ];
77
- const Tier1Page = () => {
78
- const theme = (0, useCustomTheme_1.useCustomTheme)();
79
- const [previewOpen, setPreviewOpen] = (0, react_1.useState)(false);
80
- const [fieldModalOpen, setFieldModalOpen] = (0, react_1.useState)(false);
81
- return ((0, jsx_runtime_1.jsx)(ScrollToTop_1.default, { children: (0, jsx_runtime_1.jsxs)(react_2.Box, { maxW: "1000px", mx: "auto", py: 4, children: [(0, jsx_runtime_1.jsx)(react_2.Heading, { size: "lg", mb: 6, children: "Tier 1 Components" }), (0, jsx_runtime_1.jsx)(Section, { title: "EmptyState \u2014 variants, sizes & actions", children: (0, jsx_runtime_1.jsxs)(react_2.SimpleGrid, { columns: { base: 1, md: 3 }, spacing: 4, children: [(0, jsx_runtime_1.jsx)(react_2.Box, { border: "1px dashed #E2E8F0", borderRadius: "12px", children: (0, jsx_runtime_1.jsx)(EmptyState_1.default, { size: "sm" }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { border: "1px dashed #E2E8F0", borderRadius: "12px", children: (0, jsx_runtime_1.jsx)(EmptyState_1.default, { variant: "subtle", icon: lucide_react_1.FolderSearch, title: "No results", description: "Try adjusting your filters or search terms.", animate: true }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { border: "1px dashed #E2E8F0", borderRadius: "12px", children: (0, jsx_runtime_1.jsx)(EmptyState_1.default, { variant: "dashed", colorScheme: "success", icon: lucide_react_1.Users, title: "No team members yet", description: "Invite people to start collaborating.", action: (0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", colorScheme: "primary", children: "Invite member" }) }) })] }) }), (0, jsx_runtime_1.jsx)(Section, { title: "MoreItems \u2014 overflow popover", children: (0, jsx_runtime_1.jsxs)(react_2.Flex, { direction: "column", gap: 4, children: [(0, jsx_runtime_1.jsx)(MoreItems_1.default, { triggerText: "Enterprise", items: TAGS, moreCount: TAGS.length - 1 }), (0, jsx_runtime_1.jsx)(MoreItems_1.default, { triggerText: "Owners", items: TAGS, hideDots: true, trigger: "click" })] }) }), (0, jsx_runtime_1.jsx)(Section, { title: "CopyButton \u2014 icon / button / menu-item", children: (0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 6, wrap: "wrap", children: [(0, jsx_runtime_1.jsx)(CopyButton_1.default, { value: "https://app.example.com/leads/123" }), (0, jsx_runtime_1.jsx)(CopyButton_1.default, { value: "hello@example.com", variant: "button", label: "Copy email" }), (0, jsx_runtime_1.jsx)(react_2.Box, { w: "220px", border: "1px solid #E2E8F0", borderRadius: "8px", p: 1, children: (0, jsx_runtime_1.jsx)(CopyButton_1.default, { value: "https://app.example.com", variant: "menu-item", label: "Copy URL" }) })] }) }), (0, jsx_runtime_1.jsxs)(Section, { title: "FilePreview \u2014 modal + thumbnail trigger", children: [(0, jsx_runtime_1.jsxs)(react_2.Flex, { align: "center", gap: 6, wrap: "wrap", children: [(0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", onClick: () => setPreviewOpen(true), children: "Open image preview" }), (0, jsx_runtime_1.jsx)(FilePreview_1.FilePreviewTrigger, { fileUrl: SAMPLE_IMAGE, fileName: "winter-delights.webp" }), (0, jsx_runtime_1.jsx)(react_2.Text, { fontSize: "sm", color: "gray.500", children: "\u2190 hover the thumbnail" })] }), (0, jsx_runtime_1.jsx)(FilePreview_1.default, { isOpen: previewOpen, onClose: () => setPreviewOpen(false), fileUrl: SAMPLE_IMAGE, fileName: "winter-delights.webp" })] }), (0, jsx_runtime_1.jsxs)(Section, { title: "FieldSelectModal \u2014 searchable multi-select", children: [(0, jsx_runtime_1.jsx)(react_2.Button, { size: "sm", colorScheme: "primary", onClick: () => setFieldModalOpen(true), children: "Choose fields to export" }), (0, jsx_runtime_1.jsx)(FieldSelectModal_1.default, { isOpen: fieldModalOpen, onClose: () => setFieldModalOpen(false), fields: FIELDS, title: "Select Fields to Export", confirmText: "Download", onConfirm: (selected) => {
82
- console.log("selected", selected);
83
- setFieldModalOpen(false);
84
- } })] }), (0, jsx_runtime_1.jsx)(Section, { title: "LazyWrapper \u2014 Suspense fallback", children: (0, jsx_runtime_1.jsx)(react_2.Box, { border: "1px solid #E2E8F0", borderRadius: "12px", children: (0, jsx_runtime_1.jsx)(LazyWrapper_1.default, { minHeight: "160px", children: (0, jsx_runtime_1.jsx)(react_1.Suspense, { fallback: null, children: (0, jsx_runtime_1.jsx)(react_2.Box, { p: 6, children: "Lazy content loaded." }) }) }) }) }), (0, jsx_runtime_1.jsx)(Section, { title: "PdfViewer", children: (0, jsx_runtime_1.jsx)(PdfViewer_1.default, { pdfUrl: "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", fileName: "dummy.pdf", height: "360px" }) }), (0, jsx_runtime_1.jsx)(react_2.Box, { h: "600px" }), (0, jsx_runtime_1.jsx)(react_2.Text, { textAlign: "center", color: theme.colors.gray[500], fontSize: "sm", children: "Scroll up to see the ScrollToTop button \u2192" })] }) }));
85
- };
86
- exports.default = Tier1Page;
@@ -1,3 +0,0 @@
1
- declare const TimelinePage: () => import("react/jsx-runtime").JSX.Element;
2
- export default TimelinePage;
3
- //# sourceMappingURL=timeline.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../src/Pages/timeline.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,+CAyEjB,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -1,73 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const Timeline_1 = __importDefault(require("../Components/Timeline/Timeline"));
8
- const TimelinePage = () => {
9
- const timeline = [
10
- {
11
- logs_id: 1,
12
- title: "Created",
13
- primary_id: 66,
14
- is_from: "Accounts",
15
- action_from: "Accounts",
16
- action_by: "pixelize technology",
17
- created_at: 1723104998797,
18
- changes: null,
19
- },
20
- {
21
- logs_id: 2,
22
- title: "Updated",
23
- primary_id: 66,
24
- is_from: "Accounts",
25
- action_from: "Accounts",
26
- action_by: "pixelize technology",
27
- created_at: 1723105040247,
28
- changes: null,
29
- },
30
- {
31
- logs_id: 10,
32
- title: "Created",
33
- primary_id: 66,
34
- is_from: "Accounts",
35
- action_from: "Notes",
36
- action_by: "pixelize technology",
37
- created_at: 1723202829694,
38
- changes: null,
39
- },
40
- {
41
- logs_id: 3,
42
- title: "Created",
43
- primary_id: 66,
44
- is_from: "Accounts",
45
- action_from: "Notes",
46
- action_by: "pixelize technology",
47
- created_at: 1723105099207,
48
- changes: null,
49
- },
50
- {
51
- logs_id: 7,
52
- title: "Created",
53
- primary_id: 66,
54
- is_from: "Accounts",
55
- action_from: "Notes",
56
- action_by: "pixelize technology",
57
- created_at: 1723105603033,
58
- changes: null,
59
- },
60
- {
61
- logs_id: 8,
62
- title: "Delete",
63
- primary_id: 66,
64
- is_from: "Accounts",
65
- action_from: "Notes",
66
- action_by: "pixelize technology",
67
- created_at: 1723202829694,
68
- changes: '{"shipping_code":{"original":null,"updated":"aaa"},"shipping_country":{"original":null,"updated":"QQdd"},"description":{"original":null,"updated":"ssAA"},"profile":{"updated":"profile updated"}}',
69
- },
70
- ];
71
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(Timeline_1.default, { timelineEvents: timeline }) }));
72
- };
73
- exports.default = TimelinePage;
@@ -1,3 +0,0 @@
1
- declare const TooltipPage: () => import("react/jsx-runtime").JSX.Element;
2
- export default TooltipPage;
3
- //# sourceMappingURL=tooltip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/Pages/tooltip.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,WAAW,+CAgBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const ToolTip_1 = __importDefault(require("../Components/ToolTip/ToolTip"));
8
- const TooltipPage = () => {
9
- return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(ToolTip_1.default, { label: "Hello", placement: "top", hasArrow: true, children: "hai" }) }));
10
- };
11
- exports.default = TooltipPage;
@@ -1,3 +0,0 @@
1
- declare const TosterPage: () => import("react/jsx-runtime").JSX.Element;
2
- export default TosterPage;
3
- //# sourceMappingURL=toster.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"toster.d.ts","sourceRoot":"","sources":["../../src/Pages/toster.tsx"],"names":[],"mappings":"AAGA,QAAA,MAAM,UAAU,+CA+Ff,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,53 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const Button_1 = __importDefault(require("../Components/Button/Button"));
8
- const Toaster_1 = require("../Components/Toaster/Toaster");
9
- const TosterPage = () => {
10
- const { showToast } = (0, Toaster_1.useToaster)();
11
- const handleOnclick = () => {
12
- showToast({
13
- title: "Hello",
14
- duration: 3000,
15
- status: "success",
16
- });
17
- //setIsOpen(true);
18
- };
19
- const handleOnclick1 = () => {
20
- showToast({
21
- title: "Hello",
22
- duration: 3000,
23
- status: "error",
24
- });
25
- //setIsOpen(true);
26
- };
27
- const handleOnclick2 = () => {
28
- showToast({
29
- title: "Hello",
30
- duration: 3000,
31
- status: "warning",
32
- });
33
- //setIsOpen(true);
34
- };
35
- const handleOnclick3 = () => {
36
- showToast({
37
- title: "Hello",
38
- duration: 3000,
39
- status: "info",
40
- });
41
- //setIsOpen(true);
42
- };
43
- const handleOnclick4 = () => {
44
- showToast({
45
- title: "Hello",
46
- duration: 3000,
47
- status: "loading",
48
- });
49
- //setIsOpen(true);
50
- };
51
- return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(Button_1.default, { label: "Success", onClick: handleOnclick, variant: "solid", size: "md", width: 100 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(Button_1.default, { label: "Success", onClick: handleOnclick1, variant: "solid", size: "md", width: 100 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(Button_1.default, { label: "Success", onClick: handleOnclick2, variant: "solid", size: "md", width: 100 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(Button_1.default, { label: "Success", onClick: handleOnclick3, variant: "solid", size: "md", width: 100 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)(Button_1.default, { label: "Success", onClick: handleOnclick4, variant: "solid", size: "md", width: 100 }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("br", {}), " ", (0, jsx_runtime_1.jsx)("br", {}), " ", (0, jsx_runtime_1.jsx)("br", {})] }));
52
- };
53
- exports.default = TosterPage;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const UpgradeButtonPage: React.FC;
3
- export default UpgradeButtonPage;
4
- //# sourceMappingURL=upgradeButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"upgradeButton.d.ts","sourceRoot":"","sources":["../../src/Pages/upgradeButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AA4B1B,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAqE9B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const jsx_runtime_1 = require("react/jsx-runtime");
7
- const react_1 = require("@chakra-ui/react");
8
- const lucide_react_1 = require("lucide-react");
9
- const UpgradeButton_1 = __importDefault(require("../Components/UpgradeButton/UpgradeButton"));
10
- const useCustomTheme_1 = require("../Theme/useCustomTheme");
11
- const Section = ({ title, children, }) => {
12
- var _a, _b, _c, _d;
13
- const theme = (0, useCustomTheme_1.useCustomTheme)();
14
- return ((0, jsx_runtime_1.jsxs)(react_1.Box, { mb: 8, p: 6, borderRadius: "16px", border: "1px solid", borderColor: (_b = (_a = theme.colors.boxborder) === null || _a === void 0 ? void 0 : _a[300]) !== null && _b !== void 0 ? _b : "#E2E8F0", bg: theme.colors.background[50], children: [(0, jsx_runtime_1.jsx)(react_1.Heading, { size: "sm", mb: 4, color: (_d = (_c = theme.colors.text) === null || _c === void 0 ? void 0 : _c[900]) !== null && _d !== void 0 ? _d : "gray.700", children: title }), children] }));
15
- };
16
- const UpgradeButtonPage = () => ((0, jsx_runtime_1.jsxs)(react_1.Box, { maxW: "900px", mx: "auto", py: 4, children: [(0, jsx_runtime_1.jsx)(react_1.Heading, { size: "lg", mb: 6, children: "Upgrade Button" }), (0, jsx_runtime_1.jsx)(Section, { title: "Plan states (label + subtitle, sparkle, hover sheen)", children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { gap: 5, align: "center", wrap: "wrap", children: [(0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Free Trial", mobileLabel: "Free Trial", subtitle: "12 days left", onClick: () => console.log("trial") }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Choose Your Plan", mobileLabel: "Choose", subtitle: "No active plan", onClick: () => console.log("choose") }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Upgrade Your Plan", mobileLabel: "Upgrade", subtitle: "Expires on 30 Jun", onClick: () => console.log("upgrade") })] }) }), (0, jsx_runtime_1.jsx)(Section, { title: "Sizes", children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { gap: 5, align: "center", wrap: "wrap", children: [(0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Upgrade", size: "sm" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Upgrade", size: "md" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Upgrade", size: "lg" })] }) }), (0, jsx_runtime_1.jsx)(Section, { title: "Theme variants (blend with the active theme)", children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { gap: 5, align: "center", wrap: "wrap", children: [(0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Brand", variant: "brand" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Primary", variant: "primary" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Secondary", variant: "secondary" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Success", variant: "success" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Warning", variant: "warning" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Danger", variant: "danger" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Info", variant: "info" })] }) }), (0, jsx_runtime_1.jsx)(Section, { title: "Custom gradients & icons (explicit gradient overrides variant)", children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { gap: 5, align: "center", wrap: "wrap", children: [(0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Go Pro", icon: lucide_react_1.Crown, gradient: { from: "#f7971e", to: "#ffd200" }, iconColor: "#7a4f01" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Boost", icon: lucide_react_1.Rocket, gradient: { from: "#11998e", to: "#38ef7d" }, iconColor: "#ffffff" }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Premium", icon: lucide_react_1.Sparkles, gradient: { from: "#ee0979", to: "#ff6a00" } })] }) }), (0, jsx_runtime_1.jsx)(Section, { title: "Loading / disabled / no shimmer", children: (0, jsx_runtime_1.jsxs)(react_1.Flex, { gap: 5, align: "center", wrap: "wrap", children: [(0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Upgrading\u2026", isLoading: true }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "Unavailable", isDisabled: true }), (0, jsx_runtime_1.jsx)(UpgradeButton_1.default, { label: "No shimmer", shimmer: false })] }) }), (0, jsx_runtime_1.jsx)(react_1.Text, { fontSize: "sm", color: "gray.500", children: "Hover any enabled button to see the light sweep." })] }));
17
- exports.default = UpgradeButtonPage;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- declare const UserDetailsPage: React.FC;
3
- export default UserDetailsPage;
4
- //# sourceMappingURL=userDetails.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"userDetails.d.ts","sourceRoot":"","sources":["../../src/Pages/userDetails.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA0EjD,QAAA,MAAM,eAAe,EAAE,KAAK,CAAC,EA+B5B,CAAC;AAEF,eAAe,eAAe,CAAC"}