@lssm/lib.ui-kit 0.0.0-canary-20251207012602 → 0.0.0-canary-20251207043720
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/README.md +1 -0
- package/dist/_virtual/rolldown_runtime.js +33 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +14 -0
- package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +35 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +24 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +19 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +19 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +32 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/filter.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/house.js +19 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/loader-circle.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +19 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-ccw.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +21 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +19 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +14 -0
- package/dist/node_modules/next/dist/client/add-base-path.js +30 -0
- package/dist/node_modules/next/dist/client/add-locale.js +29 -0
- package/dist/node_modules/next/dist/client/detect-domain-locale.js +26 -0
- package/dist/node_modules/next/dist/client/get-domain-locale.js +41 -0
- package/dist/node_modules/next/dist/client/has-base-path.js +28 -0
- package/dist/node_modules/next/dist/client/link.js +311 -0
- package/dist/node_modules/next/dist/client/normalize-locale-path.js +30 -0
- package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +34 -0
- package/dist/node_modules/next/dist/client/request-idle-callback.js +44 -0
- package/dist/node_modules/next/dist/client/resolve-href.js +86 -0
- package/dist/node_modules/next/dist/client/use-intersection.js +104 -0
- package/dist/node_modules/next/dist/client/use-merged-ref.js +56 -0
- package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +372 -0
- package/dist/node_modules/next/dist/lib/constants.js +316 -0
- package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +69 -0
- package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +22 -0
- package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +42 -0
- package/dist/node_modules/next/dist/shared/lib/invariant-error.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +23 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +30 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +78 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +151 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +77 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +32 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +92 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +41 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +31 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +33 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +36 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +24 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +56 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +26 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +94 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +46 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +203 -0
- package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +167 -0
- package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +20 -0
- package/dist/node_modules/next/dist/shared/lib/segment.js +80 -0
- package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +25 -0
- package/dist/node_modules/next/dist/shared/lib/utils.js +172 -0
- package/dist/node_modules/next/link.js +12 -0
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +2 -2
- package/dist/ui/atoms/Pagination/Pagination.js +4 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js +2 -1
- package/dist/ui/breadcrumb.js +3 -2
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +3 -1
- package/dist/ui/nativewind-env.d.js +0 -0
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +5 -3
- package/dist/ui/organisms/ListPage/ListPage.js +12 -7
- package/package.json +198 -108
- package/dist/index.d.ts +0 -4
- package/dist/ui/accordion.d.ts +0 -35
- package/dist/ui/alert-dialog.d.ts +0 -71
- package/dist/ui/alert.d.ts +0 -36
- package/dist/ui/aspect-ratio.d.ts +0 -11
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -7
- package/dist/ui/atoms/FilterSelect/index.d.ts +0 -3
- package/dist/ui/atoms/FilterSelect/types.d.ts +0 -18
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -22
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -7
- package/dist/ui/atoms/Pagination/index.d.ts +0 -3
- package/dist/ui/atoms/Pagination/types.d.ts +0 -15
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -7
- package/dist/ui/atoms/SearchInput/index.d.ts +0 -3
- package/dist/ui/atoms/SearchInput/types.d.ts +0 -12
- package/dist/ui/avatar.d.ts +0 -27
- package/dist/ui/badge.d.ts +0 -21
- package/dist/ui/breadcrumb.d.ts +0 -38
- package/dist/ui/button.d.ts +0 -25
- package/dist/ui/card.d.ts +0 -43
- package/dist/ui/carousel.d.ts +0 -4
- package/dist/ui/checkbox.d.ts +0 -16
- package/dist/ui/collapsible.d.ts +0 -24
- package/dist/ui/command.d.ts +0 -4
- package/dist/ui/context-menu.d.ts +0 -109
- package/dist/ui/date-picker.d.ts +0 -23
- package/dist/ui/date-range-picker.d.ts +0 -30
- package/dist/ui/datetime-picker.d.ts +0 -27
- package/dist/ui/dialog.d.ts +0 -68
- package/dist/ui/dropdown-menu.d.ts +0 -111
- package/dist/ui/empty-state.d.ts +0 -28
- package/dist/ui/empty.d.ts +0 -36
- package/dist/ui/fab.d.ts +0 -35
- package/dist/ui/field.d.ts +0 -66
- package/dist/ui/form.d.ts +0 -49
- package/dist/ui/hover-card.d.ts +0 -29
- package/dist/ui/icons/Check.d.ts +0 -2
- package/dist/ui/icons/ChevronDown.d.ts +0 -2
- package/dist/ui/icons/ChevronRight.d.ts +0 -2
- package/dist/ui/icons/ChevronUp.d.ts +0 -2
- package/dist/ui/icons/CircleUser.d.ts +0 -2
- package/dist/ui/icons/Info.d.ts +0 -2
- package/dist/ui/icons/Key.d.ts +0 -2
- package/dist/ui/icons/MoonStar.d.ts +0 -2
- package/dist/ui/icons/Sun.d.ts +0 -2
- package/dist/ui/icons/X.d.ts +0 -2
- package/dist/ui/icons/iconWithClassName.d.ts +0 -6
- package/dist/ui/input.d.ts +0 -14
- package/dist/ui/label.d.ts +0 -15
- package/dist/ui/link.d.ts +0 -13
- package/dist/ui/loading-button.d.ts +0 -19
- package/dist/ui/loading-overlay.d.ts +0 -15
- package/dist/ui/loading-screen.d.ts +0 -13
- package/dist/ui/marketing/FeatureGrid.d.ts +0 -20
- package/dist/ui/marketing/Hero.d.ts +0 -27
- package/dist/ui/marketing/PricingTable.d.ts +0 -24
- package/dist/ui/marketing/index.d.ts +0 -4
- package/dist/ui/menubar.d.ts +0 -114
- package/dist/ui/molecules/Autocomplete/index.d.ts +0 -4
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -7
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -3
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -24
- package/dist/ui/molecules/SkeletonList.d.ts +0 -15
- package/dist/ui/nativewind-env.d.ts +0 -1
- package/dist/ui/navigation-menu.d.ts +0 -67
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -29
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -28
- package/dist/ui/organisms/ListPage/index.d.ts +0 -3
- package/dist/ui/organisms/ListPage/types.d.ts +0 -41
- package/dist/ui/page-header.d.ts +0 -26
- package/dist/ui/password-strength.d.ts +0 -20
- package/dist/ui/popover.d.ts +0 -29
- package/dist/ui/progress.d.ts +0 -16
- package/dist/ui/radio-group.d.ts +0 -14
- package/dist/ui/select.d.ts +0 -83
- package/dist/ui/separator.d.ts +0 -15
- package/dist/ui/sheet.d.ts +0 -4
- package/dist/ui/sidebar.d.ts +0 -4
- package/dist/ui/skeleton.d.ts +0 -11
- package/dist/ui/stack.d.ts +0 -76
- package/dist/ui/stepper.d.ts +0 -22
- package/dist/ui/switch.d.ts +0 -14
- package/dist/ui/table.d.ts +0 -50
- package/dist/ui/tabs.d.ts +0 -32
- package/dist/ui/text.d.ts +0 -20
- package/dist/ui/textarea.d.ts +0 -9
- package/dist/ui/time-picker.d.ts +0 -21
- package/dist/ui/toggle-group.d.ts +0 -35
- package/dist/ui/toggle.d.ts +0 -33
- package/dist/ui/tooltip.d.ts +0 -31
- package/dist/ui/typography.d.ts +0 -64
- package/dist/ui/useColorScheme.d.ts +0 -11
- package/dist/ui/useListState.d.ts +0 -33
- package/dist/ui/usecases/UseCaseCard.d.ts +0 -18
- package/dist/ui/usecases/UserStoryCard.d.ts +0 -14
- package/dist/ui/usecases/index.d.ts +0 -3
- package/dist/ui/utils.d.ts +0 -6
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/segment.js
|
|
4
|
+
var require_segment = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
DEFAULT_SEGMENT_KEY: function() {
|
|
14
|
+
return DEFAULT_SEGMENT_KEY;
|
|
15
|
+
},
|
|
16
|
+
PAGE_SEGMENT_KEY: function() {
|
|
17
|
+
return PAGE_SEGMENT_KEY;
|
|
18
|
+
},
|
|
19
|
+
addSearchParamsIfPageSegment: function() {
|
|
20
|
+
return addSearchParamsIfPageSegment;
|
|
21
|
+
},
|
|
22
|
+
computeSelectedLayoutSegment: function() {
|
|
23
|
+
return computeSelectedLayoutSegment;
|
|
24
|
+
},
|
|
25
|
+
getSegmentValue: function() {
|
|
26
|
+
return getSegmentValue;
|
|
27
|
+
},
|
|
28
|
+
getSelectedLayoutSegmentPath: function() {
|
|
29
|
+
return getSelectedLayoutSegmentPath;
|
|
30
|
+
},
|
|
31
|
+
isGroupSegment: function() {
|
|
32
|
+
return isGroupSegment;
|
|
33
|
+
},
|
|
34
|
+
isParallelRouteSegment: function() {
|
|
35
|
+
return isParallelRouteSegment;
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
function getSegmentValue(segment) {
|
|
39
|
+
return Array.isArray(segment) ? segment[1] : segment;
|
|
40
|
+
}
|
|
41
|
+
function isGroupSegment(segment) {
|
|
42
|
+
return segment[0] === "(" && segment.endsWith(")");
|
|
43
|
+
}
|
|
44
|
+
function isParallelRouteSegment(segment) {
|
|
45
|
+
return segment.startsWith("@") && segment !== "@children";
|
|
46
|
+
}
|
|
47
|
+
function addSearchParamsIfPageSegment(segment, searchParams) {
|
|
48
|
+
if (segment.includes(PAGE_SEGMENT_KEY)) {
|
|
49
|
+
const stringifiedQuery = JSON.stringify(searchParams);
|
|
50
|
+
return stringifiedQuery !== "{}" ? PAGE_SEGMENT_KEY + "?" + stringifiedQuery : PAGE_SEGMENT_KEY;
|
|
51
|
+
}
|
|
52
|
+
return segment;
|
|
53
|
+
}
|
|
54
|
+
function computeSelectedLayoutSegment(segments, parallelRouteKey) {
|
|
55
|
+
if (!segments || segments.length === 0) return null;
|
|
56
|
+
const rawSegment = parallelRouteKey === "children" ? segments[0] : segments[segments.length - 1];
|
|
57
|
+
return rawSegment === DEFAULT_SEGMENT_KEY ? null : rawSegment;
|
|
58
|
+
}
|
|
59
|
+
function getSelectedLayoutSegmentPath(tree, parallelRouteKey, first = true, segmentPath = []) {
|
|
60
|
+
let node;
|
|
61
|
+
if (first) node = tree[1][parallelRouteKey];
|
|
62
|
+
else {
|
|
63
|
+
const parallelRoutes = tree[1];
|
|
64
|
+
node = parallelRoutes.children ?? Object.values(parallelRoutes)[0];
|
|
65
|
+
}
|
|
66
|
+
if (!node) return segmentPath;
|
|
67
|
+
const segment = node[0];
|
|
68
|
+
let segmentValue = getSegmentValue(segment);
|
|
69
|
+
if (!segmentValue || segmentValue.startsWith(PAGE_SEGMENT_KEY)) return segmentPath;
|
|
70
|
+
segmentPath.push(segmentValue);
|
|
71
|
+
return getSelectedLayoutSegmentPath(node, parallelRouteKey, false, segmentPath);
|
|
72
|
+
}
|
|
73
|
+
const PAGE_SEGMENT_KEY = "__PAGE__";
|
|
74
|
+
const DEFAULT_SEGMENT_KEY = "__DEFAULT__";
|
|
75
|
+
}));
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
export default require_segment();
|
|
79
|
+
|
|
80
|
+
export { require_segment };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/utils/error-once.js
|
|
4
|
+
var require_error_once = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
Object.defineProperty(exports, "errorOnce", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function() {
|
|
9
|
+
return errorOnce;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
12
|
+
let errorOnce = (_) => {};
|
|
13
|
+
{
|
|
14
|
+
const errors = /* @__PURE__ */ new Set();
|
|
15
|
+
errorOnce = (msg) => {
|
|
16
|
+
if (!errors.has(msg)) console.error(msg);
|
|
17
|
+
errors.add(msg);
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
//#endregion
|
|
23
|
+
export default require_error_once();
|
|
24
|
+
|
|
25
|
+
export { require_error_once };
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../../../../_virtual/rolldown_runtime.js";
|
|
2
|
+
|
|
3
|
+
//#region ../../../node_modules/next/dist/shared/lib/utils.js
|
|
4
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
function _export(target, all) {
|
|
7
|
+
for (var name in all) Object.defineProperty(target, name, {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: all[name]
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
_export(exports, {
|
|
13
|
+
DecodeError: function() {
|
|
14
|
+
return DecodeError;
|
|
15
|
+
},
|
|
16
|
+
MiddlewareNotFoundError: function() {
|
|
17
|
+
return MiddlewareNotFoundError;
|
|
18
|
+
},
|
|
19
|
+
MissingStaticPage: function() {
|
|
20
|
+
return MissingStaticPage;
|
|
21
|
+
},
|
|
22
|
+
NormalizeError: function() {
|
|
23
|
+
return NormalizeError;
|
|
24
|
+
},
|
|
25
|
+
PageNotFoundError: function() {
|
|
26
|
+
return PageNotFoundError;
|
|
27
|
+
},
|
|
28
|
+
SP: function() {
|
|
29
|
+
return SP;
|
|
30
|
+
},
|
|
31
|
+
ST: function() {
|
|
32
|
+
return ST;
|
|
33
|
+
},
|
|
34
|
+
WEB_VITALS: function() {
|
|
35
|
+
return WEB_VITALS;
|
|
36
|
+
},
|
|
37
|
+
execOnce: function() {
|
|
38
|
+
return execOnce;
|
|
39
|
+
},
|
|
40
|
+
getDisplayName: function() {
|
|
41
|
+
return getDisplayName;
|
|
42
|
+
},
|
|
43
|
+
getLocationOrigin: function() {
|
|
44
|
+
return getLocationOrigin;
|
|
45
|
+
},
|
|
46
|
+
getURL: function() {
|
|
47
|
+
return getURL;
|
|
48
|
+
},
|
|
49
|
+
isAbsoluteUrl: function() {
|
|
50
|
+
return isAbsoluteUrl;
|
|
51
|
+
},
|
|
52
|
+
isResSent: function() {
|
|
53
|
+
return isResSent;
|
|
54
|
+
},
|
|
55
|
+
loadGetInitialProps: function() {
|
|
56
|
+
return loadGetInitialProps;
|
|
57
|
+
},
|
|
58
|
+
normalizeRepeatedSlashes: function() {
|
|
59
|
+
return normalizeRepeatedSlashes;
|
|
60
|
+
},
|
|
61
|
+
stringifyError: function() {
|
|
62
|
+
return stringifyError;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
const WEB_VITALS = [
|
|
66
|
+
"CLS",
|
|
67
|
+
"FCP",
|
|
68
|
+
"FID",
|
|
69
|
+
"INP",
|
|
70
|
+
"LCP",
|
|
71
|
+
"TTFB"
|
|
72
|
+
];
|
|
73
|
+
function execOnce(fn) {
|
|
74
|
+
let used = false;
|
|
75
|
+
let result;
|
|
76
|
+
return (...args) => {
|
|
77
|
+
if (!used) {
|
|
78
|
+
used = true;
|
|
79
|
+
result = fn(...args);
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
const ABSOLUTE_URL_REGEX = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/;
|
|
85
|
+
const isAbsoluteUrl = (url) => ABSOLUTE_URL_REGEX.test(url);
|
|
86
|
+
function getLocationOrigin() {
|
|
87
|
+
const { protocol, hostname, port } = window.location;
|
|
88
|
+
return `${protocol}//${hostname}${port ? ":" + port : ""}`;
|
|
89
|
+
}
|
|
90
|
+
function getURL() {
|
|
91
|
+
const { href } = window.location;
|
|
92
|
+
const origin = getLocationOrigin();
|
|
93
|
+
return href.substring(origin.length);
|
|
94
|
+
}
|
|
95
|
+
function getDisplayName(Component) {
|
|
96
|
+
return typeof Component === "string" ? Component : Component.displayName || Component.name || "Unknown";
|
|
97
|
+
}
|
|
98
|
+
function isResSent(res) {
|
|
99
|
+
return res.finished || res.headersSent;
|
|
100
|
+
}
|
|
101
|
+
function normalizeRepeatedSlashes(url) {
|
|
102
|
+
const urlParts = url.split("?");
|
|
103
|
+
return urlParts[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + (urlParts[1] ? `?${urlParts.slice(1).join("?")}` : "");
|
|
104
|
+
}
|
|
105
|
+
async function loadGetInitialProps(App, ctx) {
|
|
106
|
+
if (App.prototype?.getInitialProps) {
|
|
107
|
+
const message = `"${getDisplayName(App)}.getInitialProps()" is defined as an instance method - visit https://nextjs.org/docs/messages/get-initial-props-as-an-instance-method for more information.`;
|
|
108
|
+
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
109
|
+
value: "E394",
|
|
110
|
+
enumerable: false,
|
|
111
|
+
configurable: true
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
const res = ctx.res || ctx.ctx && ctx.ctx.res;
|
|
115
|
+
if (!App.getInitialProps) {
|
|
116
|
+
if (ctx.ctx && ctx.Component) return { pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx) };
|
|
117
|
+
return {};
|
|
118
|
+
}
|
|
119
|
+
const props = await App.getInitialProps(ctx);
|
|
120
|
+
if (res && isResSent(res)) return props;
|
|
121
|
+
if (!props) {
|
|
122
|
+
const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
|
|
123
|
+
throw Object.defineProperty(new Error(message), "__NEXT_ERROR_CODE", {
|
|
124
|
+
value: "E394",
|
|
125
|
+
enumerable: false,
|
|
126
|
+
configurable: true
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
if (Object.keys(props).length === 0 && !ctx.ctx) console.warn(`${getDisplayName(App)} returned an empty object from \`getInitialProps\`. This de-optimizes and prevents automatic static optimization. https://nextjs.org/docs/messages/empty-object-getInitialProps`);
|
|
130
|
+
return props;
|
|
131
|
+
}
|
|
132
|
+
const SP = typeof performance !== "undefined";
|
|
133
|
+
const ST = SP && [
|
|
134
|
+
"mark",
|
|
135
|
+
"measure",
|
|
136
|
+
"getEntriesByName"
|
|
137
|
+
].every((method) => typeof performance[method] === "function");
|
|
138
|
+
var DecodeError = class extends Error {};
|
|
139
|
+
var NormalizeError = class extends Error {};
|
|
140
|
+
var PageNotFoundError = class extends Error {
|
|
141
|
+
constructor(page) {
|
|
142
|
+
super();
|
|
143
|
+
this.code = "ENOENT";
|
|
144
|
+
this.name = "PageNotFoundError";
|
|
145
|
+
this.message = `Cannot find module for page: ${page}`;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
var MissingStaticPage = class extends Error {
|
|
149
|
+
constructor(page, message) {
|
|
150
|
+
super();
|
|
151
|
+
this.message = `Failed to load static file for page: ${page} ${message}`;
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
var MiddlewareNotFoundError = class extends Error {
|
|
155
|
+
constructor() {
|
|
156
|
+
super();
|
|
157
|
+
this.code = "ENOENT";
|
|
158
|
+
this.message = `Cannot find the middleware module`;
|
|
159
|
+
}
|
|
160
|
+
};
|
|
161
|
+
function stringifyError(error) {
|
|
162
|
+
return JSON.stringify({
|
|
163
|
+
message: error.message,
|
|
164
|
+
stack: error.stack
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
}));
|
|
168
|
+
|
|
169
|
+
//#endregion
|
|
170
|
+
export default require_utils();
|
|
171
|
+
|
|
172
|
+
export { require_utils };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_link as require_link$1 } from "./dist/client/link.js";
|
|
3
|
+
|
|
4
|
+
//#region ../../../node_modules/next/link.js
|
|
5
|
+
var require_link = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
module.exports = require_link$1();
|
|
7
|
+
}));
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export default require_link();
|
|
11
|
+
|
|
12
|
+
export { require_link };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { cn } from "../../utils.js";
|
|
2
|
+
import { LoaderCircle } from "../../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
|
|
2
3
|
import { P } from "../../typography.js";
|
|
3
4
|
import React from "react";
|
|
4
5
|
import { View } from "react-native";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { Loader2 } from "lucide-react";
|
|
7
7
|
|
|
8
8
|
//#region ui/atoms/LoadingSpinner/LoadingSpinner.tsx
|
|
9
9
|
const sizeClasses = {
|
|
@@ -15,7 +15,7 @@ const sizeClasses = {
|
|
|
15
15
|
const LoadingSpinner = ({ size = "md", className, text, fullScreen = false }) => {
|
|
16
16
|
const spinner = /* @__PURE__ */ jsxs(View, {
|
|
17
17
|
className: cn("flex flex-col items-center justify-center gap-2", className),
|
|
18
|
-
children: [/* @__PURE__ */ jsx(
|
|
18
|
+
children: [/* @__PURE__ */ jsx(LoaderCircle, { className: cn("text-primary-600 animate-spin", sizeClasses[size]) }), text && /* @__PURE__ */ jsx(P, {
|
|
19
19
|
className: "animate-pulse text-base text-gray-600",
|
|
20
20
|
children: text
|
|
21
21
|
})]
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Text as Text$1 } from "../../text.js";
|
|
2
2
|
import { Button } from "../../button.js";
|
|
3
|
+
import { ChevronLeft } from "../../../node_modules/lucide-react/dist/esm/icons/chevron-left.js";
|
|
4
|
+
import { ChevronRight } from "../../../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
5
|
+
import { ChevronsLeft } from "../../../node_modules/lucide-react/dist/esm/icons/chevrons-left.js";
|
|
6
|
+
import { ChevronsRight } from "../../../node_modules/lucide-react/dist/esm/icons/chevrons-right.js";
|
|
3
7
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../../select.js";
|
|
4
8
|
import React from "react";
|
|
5
9
|
import { View } from "react-native";
|
|
6
10
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { ChevronLeft, ChevronRight, ChevronsLeft, ChevronsRight } from "lucide-react";
|
|
8
11
|
|
|
9
12
|
//#region ui/atoms/Pagination/Pagination.tsx
|
|
10
13
|
const Pagination = ({ currentPage, totalPages, totalItems, itemsPerPage, onPageChange, onItemsPerPageChange, disabled = false, className = "", showItemsPerPage = true, itemsPerPageOptions = [
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Text as Text$1 } from "../../text.js";
|
|
2
2
|
import { Button } from "../../button.js";
|
|
3
|
+
import { Search } from "../../../node_modules/lucide-react/dist/esm/icons/search.js";
|
|
4
|
+
import { X } from "../../../node_modules/lucide-react/dist/esm/icons/x.js";
|
|
3
5
|
import { Input } from "../../input.js";
|
|
4
6
|
import React from "react";
|
|
5
7
|
import { View } from "react-native";
|
|
6
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { Search, X } from "lucide-react";
|
|
8
9
|
|
|
9
10
|
//#region ui/atoms/SearchInput/SearchInput.tsx
|
|
10
11
|
const SearchInput = ({ value, onChange, placeholder = "Rechercher...", onClear, disabled = false, className = "", autoFocus = false }) => {
|
package/dist/ui/breadcrumb.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { cn } from "./utils.js";
|
|
2
|
+
import { ChevronRight } from "../node_modules/lucide-react/dist/esm/icons/chevron-right.js";
|
|
3
|
+
import { Ellipsis } from "../node_modules/lucide-react/dist/esm/icons/ellipsis.js";
|
|
2
4
|
import "react";
|
|
3
5
|
import { Text, View } from "react-native";
|
|
4
6
|
import "@rn-primitives/slot";
|
|
5
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
7
8
|
|
|
8
9
|
//#region ui/breadcrumb.tsx
|
|
9
10
|
function Breadcrumb({ ...props }) {
|
|
@@ -61,7 +62,7 @@ function BreadcrumbEllipsis({ className, ...props }) {
|
|
|
61
62
|
"aria-hidden": true,
|
|
62
63
|
className: cn("flex size-9 items-center justify-center", className),
|
|
63
64
|
...props,
|
|
64
|
-
children: [/* @__PURE__ */ jsx(
|
|
65
|
+
children: [/* @__PURE__ */ jsx(Ellipsis, { className: "size-4" }), /* @__PURE__ */ jsx(View, {
|
|
65
66
|
className: "sr-only",
|
|
66
67
|
children: /* @__PURE__ */ jsx(Text, { children: "More" })
|
|
67
68
|
})]
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Button } from "../../button.js";
|
|
2
|
+
import { ChevronDown } from "../../../node_modules/lucide-react/dist/esm/icons/chevron-down.js";
|
|
3
|
+
import { ChevronUp } from "../../../node_modules/lucide-react/dist/esm/icons/chevron-up.js";
|
|
4
|
+
import { Filter } from "../../../node_modules/lucide-react/dist/esm/icons/filter.js";
|
|
2
5
|
import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "../../collapsible.js";
|
|
3
6
|
import { FilterSelect } from "../../atoms/FilterSelect/FilterSelect.js";
|
|
4
7
|
import { SearchInput } from "../../atoms/SearchInput/SearchInput.js";
|
|
5
8
|
import React, { useState } from "react";
|
|
6
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import { ChevronDown, ChevronUp, Filter } from "lucide-react";
|
|
8
10
|
|
|
9
11
|
//#region ui/molecules/SearchAndFilter/SearchAndFilter.tsx
|
|
10
12
|
const SearchAndFilter = ({ searchValue, onSearchChange, searchPlaceholder, filters = [], isLoading = false, disabled = false, className = "", collapsible = true, defaultCollapsed = false }) => {
|
|
File without changes
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { Button } from "../../button.js";
|
|
4
|
+
import { House } from "../../../node_modules/lucide-react/dist/esm/icons/house.js";
|
|
5
|
+
import { RefreshCw } from "../../../node_modules/lucide-react/dist/esm/icons/refresh-cw.js";
|
|
6
|
+
import { TriangleAlert } from "../../../node_modules/lucide-react/dist/esm/icons/triangle-alert.js";
|
|
4
7
|
import React from "react";
|
|
5
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { AlertTriangle, Home, RefreshCw } from "lucide-react";
|
|
7
9
|
|
|
8
10
|
//#region ui/organisms/ErrorBoundary/ErrorBoundary.tsx
|
|
9
11
|
const DefaultErrorFallback = ({ error, errorId, resetError }) => {
|
|
@@ -14,7 +16,7 @@ const DefaultErrorFallback = ({ error, errorId, resetError }) => {
|
|
|
14
16
|
children: [
|
|
15
17
|
/* @__PURE__ */ jsx("div", {
|
|
16
18
|
className: "mb-4 flex justify-center",
|
|
17
|
-
children: /* @__PURE__ */ jsx(
|
|
19
|
+
children: /* @__PURE__ */ jsx(TriangleAlert, { className: "h-12 w-12 text-red-500" })
|
|
18
20
|
}),
|
|
19
21
|
/* @__PURE__ */ jsx("h1", {
|
|
20
22
|
className: "mb-2 text-2xl font-semibold text-gray-900",
|
|
@@ -51,7 +53,7 @@ const DefaultErrorFallback = ({ error, errorId, resetError }) => {
|
|
|
51
53
|
onPress: () => window.location.href = "/",
|
|
52
54
|
variant: "secondary",
|
|
53
55
|
className: "flex items-center gap-2",
|
|
54
|
-
children: [/* @__PURE__ */ jsx(
|
|
56
|
+
children: [/* @__PURE__ */ jsx(House, { className: "h-4 w-4" }), "Accueil"]
|
|
55
57
|
})]
|
|
56
58
|
}),
|
|
57
59
|
false
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
+
import { __toESM } from "../../../_virtual/rolldown_runtime.js";
|
|
1
2
|
import { Button } from "../../button.js";
|
|
3
|
+
import { LoaderCircle } from "../../../node_modules/lucide-react/dist/esm/icons/loader-circle.js";
|
|
4
|
+
import { Plus } from "../../../node_modules/lucide-react/dist/esm/icons/plus.js";
|
|
5
|
+
import { RefreshCcw } from "../../../node_modules/lucide-react/dist/esm/icons/refresh-ccw.js";
|
|
6
|
+
import { TriangleAlert } from "../../../node_modules/lucide-react/dist/esm/icons/triangle-alert.js";
|
|
2
7
|
import { Card, CardContent } from "../../card.js";
|
|
3
8
|
import { HStack, VStack } from "../../stack.js";
|
|
4
9
|
import { Separator } from "../../separator.js";
|
|
5
10
|
import { Pagination } from "../../atoms/Pagination/Pagination.js";
|
|
6
11
|
import { SearchAndFilter } from "../../molecules/SearchAndFilter/SearchAndFilter.js";
|
|
12
|
+
import { require_link } from "../../../node_modules/next/link.js";
|
|
7
13
|
import React from "react";
|
|
8
14
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { AlertTriangle, Loader2, Plus, RefreshCcw } from "lucide-react";
|
|
10
|
-
import Link from "next/link";
|
|
11
15
|
|
|
12
16
|
//#region ui/organisms/ListPage/ListPage.tsx
|
|
17
|
+
var import_link = /* @__PURE__ */ __toESM(require_link());
|
|
13
18
|
function ListPage({ title, description, header, items, totalItems, totalPages, isLoading, isFetching, error, listState, searchPlaceholder, filters = [], onRefresh, primaryAction, toolbar, renderItem, renderEmpty, renderStats, className = "", itemClassName = "" }) {
|
|
14
19
|
const { searchQuery, setSearchQuery, filters: filterValues, setFilter, currentPage, itemsPerPage, setCurrentPage, setItemsPerPage } = listState;
|
|
15
20
|
if (isLoading && !items.length) return /* @__PURE__ */ jsxs(VStack, {
|
|
@@ -27,7 +32,7 @@ function ListPage({ title, description, header, items, totalItems, totalPages, i
|
|
|
27
32
|
className: "flex min-h-[400px] items-center justify-center",
|
|
28
33
|
children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, {
|
|
29
34
|
className: "flex items-center gap-4 p-6",
|
|
30
|
-
children: [/* @__PURE__ */ jsx(
|
|
35
|
+
children: [/* @__PURE__ */ jsx(LoaderCircle, { className: "text-primary h-8 w-8 animate-spin" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
31
36
|
className: "font-medium",
|
|
32
37
|
children: "Chargement..."
|
|
33
38
|
}), /* @__PURE__ */ jsx("p", {
|
|
@@ -53,7 +58,7 @@ function ListPage({ title, description, header, items, totalItems, totalPages, i
|
|
|
53
58
|
children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, {
|
|
54
59
|
className: "flex flex-col items-center gap-4 p-6 text-center",
|
|
55
60
|
children: [
|
|
56
|
-
/* @__PURE__ */ jsx(
|
|
61
|
+
/* @__PURE__ */ jsx(TriangleAlert, { className: "text-destructive h-12 w-12" }),
|
|
57
62
|
/* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
58
63
|
className: "font-medium",
|
|
59
64
|
children: "Erreur de chargement"
|
|
@@ -101,7 +106,7 @@ function ListPage({ title, description, header, items, totalItems, totalPages, i
|
|
|
101
106
|
toolbar,
|
|
102
107
|
(isLoading || isFetching) && /* @__PURE__ */ jsxs("div", {
|
|
103
108
|
className: "text-muted-foreground flex items-center gap-2 text-base",
|
|
104
|
-
children: [/* @__PURE__ */ jsx(
|
|
109
|
+
children: [/* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }), /* @__PURE__ */ jsx("span", {
|
|
105
110
|
className: "hidden sm:inline",
|
|
106
111
|
children: "Mise à jour..."
|
|
107
112
|
})]
|
|
@@ -117,7 +122,7 @@ function ListPage({ title, description, header, items, totalItems, totalPages, i
|
|
|
117
122
|
children: "Rafraîchir"
|
|
118
123
|
})]
|
|
119
124
|
}),
|
|
120
|
-
primaryAction && /* @__PURE__ */ jsx(Fragment, { children: primaryAction.href ? /* @__PURE__ */ jsx(
|
|
125
|
+
primaryAction && /* @__PURE__ */ jsx(Fragment, { children: primaryAction.href ? /* @__PURE__ */ jsx(import_link.default, {
|
|
121
126
|
href: primaryAction.href,
|
|
122
127
|
children: /* @__PURE__ */ jsxs(Button, { children: [
|
|
123
128
|
primaryAction.icon || /* @__PURE__ */ jsx(Plus, { className: "mr-2 h-4 w-4" }),
|
|
@@ -169,7 +174,7 @@ function ListPage({ title, description, header, items, totalItems, totalPages, i
|
|
|
169
174
|
className: "text-muted-foreground text-base",
|
|
170
175
|
children: searchQuery || Object.values(filterValues).some((v) => v) ? "Essayez de modifier vos critères de recherche" : "Commencez par créer votre premier élément"
|
|
171
176
|
})] }),
|
|
172
|
-
primaryAction && !searchQuery && !Object.values(filterValues).some((v) => v) && /* @__PURE__ */ jsx(Fragment, { children: primaryAction.href ? /* @__PURE__ */ jsx(
|
|
177
|
+
primaryAction && !searchQuery && !Object.values(filterValues).some((v) => v) && /* @__PURE__ */ jsx(Fragment, { children: primaryAction.href ? /* @__PURE__ */ jsx(import_link.default, {
|
|
173
178
|
href: primaryAction.href,
|
|
174
179
|
children: /* @__PURE__ */ jsxs(Button, { children: [primaryAction.icon || /* @__PURE__ */ jsx(Plus, { className: "mr-2 h-4 w-4" }), primaryAction.label] })
|
|
175
180
|
}) : /* @__PURE__ */ jsxs(Button, {
|