@lssm/lib.design-system 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 +8 -1
- package/dist/components/atoms/Button.js +4 -5
- package/dist/components/atoms/ButtonLink.js +2 -2
- package/dist/components/atoms/Cta.js +2 -2
- package/dist/components/atoms/EmptyState.js +4 -4
- package/dist/components/atoms/ErrorState.js +1 -2
- package/dist/components/atoms/Input.js +4 -5
- package/dist/components/atoms/Link.js +1 -2
- package/dist/components/atoms/Link.web.js +4 -2
- package/dist/components/atoms/LoaderCircular.js +1 -2
- package/dist/components/atoms/Stepper.js +4 -4
- package/dist/components/atoms/Textarea.js +7 -8
- package/dist/components/data-view/DataViewRenderer.js +2 -2
- package/dist/components/forms/FormOneByOneLayout.js +3 -3
- package/dist/components/forms/FormStepsLayout.js +3 -3
- package/dist/components/forms/ZodForm.js +1 -1
- package/dist/components/legal/atoms/LegalCallout.js +1 -1
- package/dist/components/legal/atoms/LegalHeading.js +1 -1
- package/dist/components/legal/atoms/LegalList.js +1 -1
- package/dist/components/legal/atoms/LegalSection.js +1 -1
- package/dist/components/legal/atoms/LegalText.js +1 -1
- package/dist/components/legal/molecules/LegalTOC.js +1 -1
- package/dist/components/legal/organisms/ContactForm.js +3 -3
- package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
- package/dist/components/legal/templates/ContactTemplate.js +3 -3
- package/dist/components/molecules/AiLinkButton.js +4 -4
- package/dist/components/molecules/Breadcrumbs.js +2 -2
- package/dist/components/molecules/CommandPalette.js +3 -3
- package/dist/components/molecules/CommandSearchTrigger.js +3 -3
- package/dist/components/molecules/FiltersToolbar.js +4 -4
- package/dist/components/molecules/LangSwitchDropdown.js +2 -2
- package/dist/components/molecules/LoaderBlock.js +1 -2
- package/dist/components/molecules/SkeletonBlock/index.web.js +1 -2
- package/dist/components/molecules/SkeletonCircle/index.web.js +1 -2
- package/dist/components/molecules/SkeletonList/index.web.js +4 -5
- package/dist/components/organisms/AcademyLayout.js +2 -2
- package/dist/components/organisms/AppLayout.js +2 -2
- package/dist/components/organisms/EmptySearchResult.js +2 -2
- package/dist/components/organisms/FAQSection.js +2 -2
- package/dist/components/organisms/MarketingHeader.js +2 -2
- package/dist/components/organisms/MarketingHeaderMobile.js +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.web.js +2 -2
- package/dist/hooks/useListUrlState.js +7 -7
- package/dist/lib/keyboard.js +1 -172
- 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/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/platform/useColorScheme.js +3 -3
- package/dist/platform/useReducedMotion.js +3 -3
- package/dist/platform/useResponsive.js +4 -4
- package/dist/renderers/form-contract.js +1 -1
- package/package.json +2 -294
- package/dist/components/agent/AgentMonitor.d.ts +0 -28
- package/dist/components/agent/ApprovalQueue.d.ts +0 -25
- package/dist/components/atoms/ActionButtons.d.ts +0 -25
- package/dist/components/atoms/Button.d.ts +0 -39
- package/dist/components/atoms/Button.mobile.d.ts +0 -21
- package/dist/components/atoms/Button.mobile.js +0 -34
- package/dist/components/atoms/ButtonLink.d.ts +0 -21
- package/dist/components/atoms/ButtonLink.mobile.d.ts +0 -19
- package/dist/components/atoms/ButtonLink.mobile.js +0 -41
- package/dist/components/atoms/Cta.d.ts +0 -20
- package/dist/components/atoms/Cta.mobile.d.ts +0 -14
- package/dist/components/atoms/Cta.mobile.js +0 -38
- package/dist/components/atoms/DataChips.d.ts +0 -37
- package/dist/components/atoms/EmptyState.d.ts +0 -7
- package/dist/components/atoms/ErrorState.d.ts +0 -28
- package/dist/components/atoms/ErrorState.mobile.d.ts +0 -28
- package/dist/components/atoms/ErrorState.mobile.js +0 -41
- package/dist/components/atoms/Input.d.ts +0 -39
- package/dist/components/atoms/Input.mobile.d.ts +0 -37
- package/dist/components/atoms/Input.mobile.js +0 -27
- package/dist/components/atoms/Link.d.ts +0 -11
- package/dist/components/atoms/Link.native.d.ts +0 -1
- package/dist/components/atoms/Link.native.js +0 -0
- package/dist/components/atoms/Link.web.d.ts +0 -23
- package/dist/components/atoms/LoaderCircular.d.ts +0 -22
- package/dist/components/atoms/LoaderCircular.mobile.d.ts +0 -17
- package/dist/components/atoms/LoaderCircular.mobile.js +0 -26
- package/dist/components/atoms/NavBrand.d.ts +0 -18
- package/dist/components/atoms/Stepper.d.ts +0 -7
- package/dist/components/atoms/Textarea.d.ts +0 -41
- package/dist/components/atoms/Textarea.mobile.d.ts +0 -37
- package/dist/components/atoms/Textarea.mobile.js +0 -27
- package/dist/components/data-view/DataViewDetail.d.ts +0 -21
- package/dist/components/data-view/DataViewList.d.ts +0 -23
- package/dist/components/data-view/DataViewRenderer.d.ts +0 -47
- package/dist/components/data-view/DataViewTable.d.ts +0 -25
- package/dist/components/data-view/utils.d.ts +0 -5
- package/dist/components/forms/FormCardLayout.d.ts +0 -22
- package/dist/components/forms/FormDialog.d.ts +0 -24
- package/dist/components/forms/FormLayout.d.ts +0 -29
- package/dist/components/forms/FormOneByOneLayout.d.ts +0 -25
- package/dist/components/forms/FormStepsLayout.d.ts +0 -26
- package/dist/components/forms/ZodForm.d.ts +0 -21
- package/dist/components/legal/atoms/DefinitionList.d.ts +0 -16
- package/dist/components/legal/atoms/KeyValueList.d.ts +0 -16
- package/dist/components/legal/atoms/LegalCallout.d.ts +0 -17
- package/dist/components/legal/atoms/LegalHeading.d.ts +0 -24
- package/dist/components/legal/atoms/LegalList.d.ts +0 -20
- package/dist/components/legal/atoms/LegalSection.d.ts +0 -21
- package/dist/components/legal/atoms/LegalText.d.ts +0 -24
- package/dist/components/legal/molecules/Consent.d.ts +0 -35
- package/dist/components/legal/molecules/ContactFields.d.ts +0 -24
- package/dist/components/legal/molecules/LegalMeta.d.ts +0 -14
- package/dist/components/legal/molecules/LegalTOC.d.ts +0 -30
- package/dist/components/legal/organisms/ContactForm.d.ts +0 -29
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +0 -18
- package/dist/components/legal/organisms/GDPRRights.d.ts +0 -13
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +0 -23
- package/dist/components/legal/templates/ContactTemplate.d.ts +0 -23
- package/dist/components/legal/templates/CookiesTemplate.d.ts +0 -32
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +0 -32
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +0 -27
- package/dist/components/legal/templates/TermsTemplate.d.ts +0 -27
- package/dist/components/molecules/AiLinkButton.d.ts +0 -15
- package/dist/components/molecules/Breadcrumbs.d.ts +0 -15
- package/dist/components/molecules/CommandPalette.d.ts +0 -26
- package/dist/components/molecules/CommandSearchTrigger.d.ts +0 -18
- package/dist/components/molecules/DropdownMenu.d.ts +0 -1
- package/dist/components/molecules/DropdownMenu.js +0 -0
- package/dist/components/molecules/EntityCard.d.ts +0 -37
- package/dist/components/molecules/FiltersToolbar.d.ts +0 -35
- package/dist/components/molecules/FiltersToolbar.mobile.d.ts +0 -18
- package/dist/components/molecules/FiltersToolbar.mobile.js +0 -48
- package/dist/components/molecules/HoverPreview.d.ts +0 -20
- package/dist/components/molecules/LangSwitch.d.ts +0 -22
- package/dist/components/molecules/LangSwitchDropdown.d.ts +0 -21
- package/dist/components/molecules/LoaderBlock.d.ts +0 -18
- package/dist/components/molecules/LoaderBlock.mobile.d.ts +0 -18
- package/dist/components/molecules/LoaderBlock.mobile.js +0 -25
- package/dist/components/molecules/MobileNavMenu.d.ts +0 -13
- package/dist/components/molecules/NavItemCard.d.ts +0 -14
- package/dist/components/molecules/NavMain.d.ts +0 -13
- package/dist/components/molecules/NavUser.d.ts +0 -17
- package/dist/components/molecules/OverviewCard.d.ts +0 -20
- package/dist/components/molecules/OverviewCard.js +0 -37
- package/dist/components/molecules/SkeletonBlock/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonBlock/index.js +0 -3
- package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +0 -12
- package/dist/components/molecules/SkeletonBlock/index.mobile.js +0 -18
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +0 -12
- package/dist/components/molecules/SkeletonBlock/types.d.ts +0 -9
- package/dist/components/molecules/SkeletonBlock/types.js +0 -0
- package/dist/components/molecules/SkeletonCircle/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonCircle/index.js +0 -3
- package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +0 -11
- package/dist/components/molecules/SkeletonCircle/index.mobile.js +0 -23
- package/dist/components/molecules/SkeletonCircle/index.web.d.ts +0 -11
- package/dist/components/molecules/SkeletonCircle/types.d.ts +0 -8
- package/dist/components/molecules/SkeletonCircle/types.js +0 -0
- package/dist/components/molecules/SkeletonList/index.d.ts +0 -3
- package/dist/components/molecules/SkeletonList/index.js +0 -3
- package/dist/components/molecules/SkeletonList/index.mobile.d.ts +0 -10
- package/dist/components/molecules/SkeletonList/index.mobile.js +0 -22
- package/dist/components/molecules/SkeletonList/index.web.d.ts +0 -10
- package/dist/components/molecules/SkeletonList/types.d.ts +0 -7
- package/dist/components/molecules/SkeletonList/types.js +0 -0
- package/dist/components/molecules/StatCard.d.ts +0 -36
- package/dist/components/molecules/StatusChip.d.ts +0 -26
- package/dist/components/molecules/hover-previews/Doc.d.ts +0 -27
- package/dist/components/molecules/hover-previews/Media.d.ts +0 -20
- package/dist/components/molecules/hover-previews/Simple.d.ts +0 -25
- package/dist/components/molecules/hover-previews/Stats.d.ts +0 -22
- package/dist/components/molecules/hover-previews/User.d.ts +0 -25
- package/dist/components/native/BottomTabs.mobile.d.ts +0 -20
- package/dist/components/native/BottomTabs.mobile.js +0 -27
- package/dist/components/native/FlatListScreen.mobile.d.ts +0 -43
- package/dist/components/native/FlatListScreen.mobile.js +0 -63
- package/dist/components/native/SheetMenu.mobile.d.ts +0 -17
- package/dist/components/native/SheetMenu.mobile.js +0 -21
- package/dist/components/organisms/AcademyLayout.d.ts +0 -29
- package/dist/components/organisms/AppHeader.d.ts +0 -18
- package/dist/components/organisms/AppHeader.mobile.d.ts +0 -21
- package/dist/components/organisms/AppHeader.mobile.js +0 -52
- package/dist/components/organisms/AppLayout.d.ts +0 -28
- package/dist/components/organisms/AppSidebar.d.ts +0 -23
- package/dist/components/organisms/AppSidebar.mobile.d.ts +0 -1
- package/dist/components/organisms/AppSidebar.mobile.js +0 -0
- package/dist/components/organisms/EmptyDataList.d.ts +0 -20
- package/dist/components/organisms/EmptyDataList.mobile.d.ts +0 -20
- package/dist/components/organisms/EmptyDataList.mobile.js +0 -27
- package/dist/components/organisms/EmptyDataList.types.d.ts +0 -19
- package/dist/components/organisms/EmptyDataList.types.js +0 -1
- package/dist/components/organisms/EmptySearchResult.d.ts +0 -24
- package/dist/components/organisms/FAQSection.d.ts +0 -31
- package/dist/components/organisms/FeatureCarousel.d.ts +0 -18
- package/dist/components/organisms/FeaturesSection.d.ts +0 -19
- package/dist/components/organisms/Footer.d.ts +0 -25
- package/dist/components/organisms/GridLayout.d.ts +0 -25
- package/dist/components/organisms/GridLayout.js +0 -28
- package/dist/components/organisms/Header.d.ts +0 -37
- package/dist/components/organisms/Header.mobile.d.ts +0 -24
- package/dist/components/organisms/Header.mobile.js +0 -18
- package/dist/components/organisms/HeroResponsive.d.ts +0 -14
- package/dist/components/organisms/HeroSection.d.ts +0 -29
- package/dist/components/organisms/ListCardPage.d.ts +0 -36
- package/dist/components/organisms/ListGridPage.d.ts +0 -36
- package/dist/components/organisms/ListPageResponsive.d.ts +0 -7
- package/dist/components/organisms/ListTablePage.d.ts +0 -33
- package/dist/components/organisms/MarketingHeader.d.ts +0 -36
- package/dist/components/organisms/MarketingHeaderDesktop.d.ts +0 -15
- package/dist/components/organisms/MarketingHeaderMobile.d.ts +0 -12
- package/dist/components/organisms/MarketingLayout.d.ts +0 -18
- package/dist/components/organisms/PageHeaderResponsive.d.ts +0 -8
- package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +0 -22
- package/dist/components/organisms/PageHeaderResponsive.mobile.js +0 -32
- package/dist/components/organisms/PricingCarousel.d.ts +0 -24
- package/dist/components/organisms/PricingSection.d.ts +0 -18
- package/dist/components/organisms/TestimonialCarousel.d.ts +0 -19
- package/dist/components/templates/lists/ListPageTemplate/index.d.ts +0 -3
- package/dist/components/templates/lists/ListPageTemplate/index.js +0 -3
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +0 -21
- package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +0 -32
- package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +0 -22
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts +0 -25
- package/dist/components/templates/lists/ListPageTemplate/types.js +0 -1
- package/dist/hooks/useListUrlState.d.ts +0 -30
- package/dist/index.d.ts +0 -108
- package/dist/lib/keyboard.d.ts +0 -14
- package/dist/lib/utils.d.ts +0 -6
- package/dist/platform/useColorScheme.d.ts +0 -5
- package/dist/platform/useColorScheme.mobile.d.ts +0 -5
- package/dist/platform/useColorScheme.mobile.js +0 -20
- package/dist/platform/useReducedMotion.d.ts +0 -4
- package/dist/platform/useReducedMotion.mobile.d.ts +0 -4
- package/dist/platform/useReducedMotion.mobile.js +0 -28
- package/dist/platform/useResponsive.d.ts +0 -23
- package/dist/platform/useResponsive.mobile.d.ts +0 -23
- package/dist/platform/useResponsive.mobile.js +0 -42
- package/dist/platform/withPlatformUI.d.ts +0 -28
- package/dist/renderers/form-contract.d.ts +0 -11
- package/dist/renderers/index.d.ts +0 -2
- package/dist/renderers/index.js +0 -3
- package/dist/theme/tokenBridge.d.ts +0 -19
- package/dist/theme/tokens.d.ts +0 -50
- package/dist/theme/variants.d.ts +0 -21
- package/dist/types/nativewind-env.d.ts +0 -1
- package/dist/types/navigation.d.ts +0 -44
- package/dist/types/navigation.js +0 -1
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
9
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
7
10
|
var __export = (all, symbols) => {
|
|
8
11
|
let target = {};
|
|
9
12
|
for (var name in all) {
|
|
@@ -31,6 +34,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
31
34
|
}
|
|
32
35
|
return to;
|
|
33
36
|
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
38
|
+
value: mod,
|
|
39
|
+
enumerable: true
|
|
40
|
+
}) : target, mod));
|
|
34
41
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
42
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
36
43
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
@@ -38,4 +45,4 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
38
45
|
});
|
|
39
46
|
|
|
40
47
|
//#endregion
|
|
41
|
-
export { __esmMin, __export, __require, __toCommonJS };
|
|
48
|
+
export { __commonJSMin, __esmMin, __export, __require, __toCommonJS, __toESM };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { Button
|
|
2
|
+
import { Button } from "@lssm/lib.ui-kit-web/ui/button";
|
|
3
3
|
import { Loader2 } from "lucide-react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Button.tsx
|
|
7
|
-
function Button({ children, loading, spinnerPlacement = "start", onPress, onPressIn, onPressOut, onLongPress, onTouchStart, onTouchEnd, onTouchCancel, onMouseDown, onMouseUp, onClick, className, disabled, ...rest }) {
|
|
7
|
+
function Button$1({ children, loading, spinnerPlacement = "start", onPress, onPressIn, onPressOut, onLongPress, onTouchStart, onTouchEnd, onTouchCancel, onMouseDown, onMouseUp, onClick, className, disabled, ...rest }) {
|
|
8
8
|
const isDisabled = Boolean(disabled || loading);
|
|
9
9
|
const content = !rest.asChild ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
10
10
|
loading && spinnerPlacement === "start" ? /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }) : null,
|
|
11
11
|
children,
|
|
12
12
|
loading && spinnerPlacement === "end" ? /* @__PURE__ */ jsx(Loader2, { className: "h-4 w-4 animate-spin" }) : null
|
|
13
13
|
] }) : children;
|
|
14
|
-
return /* @__PURE__ */ jsx(Button
|
|
14
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
15
15
|
...rest,
|
|
16
16
|
className,
|
|
17
17
|
disabled: isDisabled,
|
|
@@ -28,7 +28,6 @@ function Button({ children, loading, spinnerPlacement = "start", onPress, onPres
|
|
|
28
28
|
children: content
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
var Button_default = Button;
|
|
32
31
|
|
|
33
32
|
//#endregion
|
|
34
|
-
export { Button
|
|
33
|
+
export { Button$1 as Button };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { Link } from "./Link.web.js";
|
|
5
|
-
import * as React
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/atoms/ButtonLink.tsx
|
|
9
9
|
function ButtonLink({ href, target, rel, replace, loading, disabled, children, onClick, ...btn }) {
|
|
10
10
|
const blocked = Boolean(disabled || loading);
|
|
11
|
-
const handleClick = React
|
|
11
|
+
const handleClick = React.useCallback((e) => {
|
|
12
12
|
if (blocked) {
|
|
13
13
|
e.preventDefault();
|
|
14
14
|
e.stopPropagation();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "./Button.js";
|
|
2
2
|
import { ButtonLink } from "./ButtonLink.js";
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ cva("", {
|
|
|
24
24
|
emphasis: "default"
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
const Cta = React
|
|
27
|
+
const Cta = React.forwardRef(({ capture, ctaName, as = "button", href, onClick, size = "touch", emphasis = "default", children, ...props }, ref) => {
|
|
28
28
|
const handleClick = (e) => {
|
|
29
29
|
if (ctaName) try {
|
|
30
30
|
if (capture) capture(ctaName);
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { EmptyState
|
|
5
|
+
import { EmptyState } from "@lssm/lib.ui-kit-web/ui/empty-state";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/EmptyState.tsx
|
|
8
|
-
function EmptyState(props) {
|
|
9
|
-
return /* @__PURE__ */ jsx(EmptyState
|
|
8
|
+
function EmptyState$1(props) {
|
|
9
|
+
return /* @__PURE__ */ jsx(EmptyState, { ...props });
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
export { EmptyState };
|
|
13
|
+
export { EmptyState$1 as EmptyState };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { mapKeyboardToWeb } from "../../lib/keyboard.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Input
|
|
4
|
+
import { Input } from "@lssm/lib.ui-kit-web/ui/input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Input.tsx
|
|
7
|
-
function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, keyboard, ...rest }) {
|
|
7
|
+
function Input$1({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, keyboard, ...rest }) {
|
|
8
8
|
const webKeyboard = mapKeyboardToWeb(keyboard);
|
|
9
|
-
return /* @__PURE__ */ jsx(Input
|
|
9
|
+
return /* @__PURE__ */ jsx(Input, {
|
|
10
10
|
...rest,
|
|
11
11
|
className,
|
|
12
12
|
value,
|
|
@@ -22,7 +22,6 @@ function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, place
|
|
|
22
22
|
...webKeyboard
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
var Input_default = Input;
|
|
26
25
|
|
|
27
26
|
//#endregion
|
|
28
|
-
export { Input
|
|
27
|
+
export { Input$1 as Input };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { __toESM } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
+
import { require_link } from "../../node_modules/next/link.js";
|
|
1
3
|
import "react";
|
|
2
4
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import NextLink from "next/link";
|
|
4
5
|
|
|
5
6
|
//#region src/components/atoms/Link.web.tsx
|
|
7
|
+
var import_link = /* @__PURE__ */ __toESM(require_link());
|
|
6
8
|
function Link({ href, children, ...props }) {
|
|
7
|
-
return /* @__PURE__ */ jsx(
|
|
9
|
+
return /* @__PURE__ */ jsx(import_link.default, {
|
|
8
10
|
href,
|
|
9
11
|
...props,
|
|
10
12
|
children
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Stepper
|
|
5
|
+
import { Stepper } from "@lssm/lib.ui-kit-web/ui/stepper";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/Stepper.tsx
|
|
8
|
-
function Stepper(props) {
|
|
9
|
-
return /* @__PURE__ */ jsx(Stepper
|
|
8
|
+
function Stepper$1(props) {
|
|
9
|
+
return /* @__PURE__ */ jsx(Stepper, { ...props });
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
export { Stepper };
|
|
13
|
+
export { Stepper$1 as Stepper };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { mapKeyboardToWeb } from "../../lib/keyboard.js";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Textarea
|
|
4
|
+
import { Textarea } from "@lssm/lib.ui-kit-web/ui/textarea";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Textarea.tsx
|
|
7
|
-
function Textarea({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, rows, keyboard, ...rest }) {
|
|
7
|
+
function Textarea$1({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, rows, keyboard, ...rest }) {
|
|
8
8
|
const webKeyboard = mapKeyboardToWeb(keyboard);
|
|
9
|
-
const handleChange = React
|
|
10
|
-
const handleKeyDown = React
|
|
9
|
+
const handleChange = React.useCallback((e) => onChange?.(e.target.value), [onChange]);
|
|
10
|
+
const handleKeyDown = React.useCallback((e) => {
|
|
11
11
|
if (e.key === "Enter" && webKeyboard.type !== "search") {
|
|
12
12
|
if (e.metaKey || e.ctrlKey) onSubmit?.();
|
|
13
13
|
}
|
|
14
14
|
}, [onSubmit, webKeyboard.type]);
|
|
15
|
-
return /* @__PURE__ */ jsx(Textarea
|
|
15
|
+
return /* @__PURE__ */ jsx(Textarea, {
|
|
16
16
|
...rest,
|
|
17
17
|
className,
|
|
18
18
|
value,
|
|
@@ -30,7 +30,6 @@ function Textarea({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, pl
|
|
|
30
30
|
...webKeyboard
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
var Textarea_default = Textarea;
|
|
34
33
|
|
|
35
34
|
//#endregion
|
|
36
|
-
export { Textarea
|
|
35
|
+
export { Textarea$1 as Textarea };
|
|
@@ -4,13 +4,13 @@ import { FiltersToolbar } from "../molecules/FiltersToolbar.js";
|
|
|
4
4
|
import { DataViewList } from "./DataViewList.js";
|
|
5
5
|
import { DataViewTable } from "./DataViewTable.js";
|
|
6
6
|
import { DataViewDetail } from "./DataViewDetail.js";
|
|
7
|
-
import * as React
|
|
7
|
+
import * as React from "react";
|
|
8
8
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "@lssm/lib.ui-kit-web/ui/pagination";
|
|
10
10
|
|
|
11
11
|
//#region src/components/data-view/DataViewRenderer.tsx
|
|
12
12
|
function DataViewRenderer({ spec, items = [], item = null, className, renderActions, onSelect, onRowClick, headerActions, emptyState, footer, search, onSearchChange, filters, onFilterChange, pagination, onPageChange }) {
|
|
13
|
-
const viewContent = React
|
|
13
|
+
const viewContent = React.useMemo(() => {
|
|
14
14
|
switch (spec.view.kind) {
|
|
15
15
|
case "list": return /* @__PURE__ */ jsx(DataViewList, {
|
|
16
16
|
spec,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Button } from "../atoms/Button.js";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
|
|
6
6
|
//#region src/components/forms/FormOneByOneLayout.tsx
|
|
7
7
|
function FormOneByOneLayout({ fields, initialKey, onComplete, className }) {
|
|
8
|
-
const indexByKey = React
|
|
9
|
-
const [idx, setIdx] = React
|
|
8
|
+
const indexByKey = React.useMemo(() => Object.fromEntries(fields.map((f, i) => [f.key, i])), [fields]);
|
|
9
|
+
const [idx, setIdx] = React.useState(() => {
|
|
10
10
|
if (initialKey && initialKey in indexByKey) return indexByKey[initialKey] || 0;
|
|
11
11
|
return 0;
|
|
12
12
|
});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Button } from "../atoms/Button.js";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
5
5
|
import { Separator } from "@lssm/lib.ui-kit-web/ui/separator";
|
|
6
6
|
|
|
7
7
|
//#region src/components/forms/FormStepsLayout.tsx
|
|
8
8
|
function FormStepsLayout({ steps, initialStepKey, onFinish, canNext, className }) {
|
|
9
|
-
const indexByKey = React
|
|
10
|
-
const [idx, setIdx] = React
|
|
9
|
+
const indexByKey = React.useMemo(() => Object.fromEntries(steps.map((s, i) => [s.key, i])), [steps]);
|
|
10
|
+
const [idx, setIdx] = React.useState(() => {
|
|
11
11
|
if (initialStepKey && initialStepKey in indexByKey) return indexByKey[initialStepKey] || 0;
|
|
12
12
|
return 0;
|
|
13
13
|
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { Form, useForm, zodResolver } from "@lssm/lib.ui-kit-web/ui/form";
|
|
6
|
-
import
|
|
6
|
+
import "zod";
|
|
7
7
|
|
|
8
8
|
//#region src/components/forms/ZodForm.tsx
|
|
9
9
|
function ZodForm({ schema, defaultValues, onSubmit, children }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "../../atoms/Button.js";
|
|
2
2
|
import { ContactFields } from "../molecules/ContactFields.js";
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
6
6
|
//#region src/components/legal/organisms/ContactForm.tsx
|
|
@@ -10,8 +10,8 @@ function ContactForm({ labels = { submit: "Envoyer" }, initialValue = {
|
|
|
10
10
|
subject: "",
|
|
11
11
|
message: ""
|
|
12
12
|
}, disabled, onSubmit }) {
|
|
13
|
-
const [value, setValue] = React
|
|
14
|
-
const [loading, setLoading] = React
|
|
13
|
+
const [value, setValue] = React.useState(initialValue);
|
|
14
|
+
const [loading, setLoading] = React.useState(false);
|
|
15
15
|
const handleSubmit = async (e) => {
|
|
16
16
|
e.preventDefault();
|
|
17
17
|
if (!onSubmit) return;
|
|
@@ -2,7 +2,7 @@ import { Button } from "../../atoms/Button.js";
|
|
|
2
2
|
import { LegalHeading } from "../atoms/LegalHeading.js";
|
|
3
3
|
import { LegalText } from "../atoms/LegalText.js";
|
|
4
4
|
import { LegalSection } from "../atoms/LegalSection.js";
|
|
5
|
-
import * as React
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/legal/organisms/GDPRDataRequest.tsx
|
|
@@ -10,7 +10,7 @@ function GDPRDataRequest({ onExport, onDelete, labels = {
|
|
|
10
10
|
export: "Demander une copie",
|
|
11
11
|
delete: "Demander la suppression"
|
|
12
12
|
} }) {
|
|
13
|
-
const [loading, setLoading] = React
|
|
13
|
+
const [loading, setLoading] = React.useState(null);
|
|
14
14
|
const handle = async (kind) => {
|
|
15
15
|
const fn = kind === "export" ? onExport : onDelete;
|
|
16
16
|
if (!fn) return;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { Button } from "../../atoms/Button.js";
|
|
2
2
|
import { ContactFields } from "../molecules/ContactFields.js";
|
|
3
3
|
import { LegalPageLayout } from "../organisms/LegalPageLayout.js";
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
|
|
7
7
|
//#region src/components/legal/templates/ContactTemplate.tsx
|
|
8
8
|
function ContactTemplate({ title = "Contact", meta, onSubmit }) {
|
|
9
|
-
const [value, setValue] = React
|
|
9
|
+
const [value, setValue] = React.useState({
|
|
10
10
|
name: "",
|
|
11
11
|
email: "",
|
|
12
12
|
subject: "",
|
|
13
13
|
message: ""
|
|
14
14
|
});
|
|
15
|
-
const [loading, setLoading] = React
|
|
15
|
+
const [loading, setLoading] = React.useState(false);
|
|
16
16
|
const handleSubmit = async (e) => {
|
|
17
17
|
e.preventDefault();
|
|
18
18
|
if (!onSubmit) return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Button } from "../atoms/Button.js";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@lssm/lib.ui-kit-web/ui/dropdown-menu";
|
|
5
5
|
|
|
@@ -16,19 +16,19 @@ function buildProviderUrl(provider, href) {
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
function AiLinkButton({ href, className }) {
|
|
19
|
-
const copyLink = React
|
|
19
|
+
const copyLink = React.useCallback(() => {
|
|
20
20
|
try {
|
|
21
21
|
navigator.clipboard?.writeText(href).catch(() => {});
|
|
22
22
|
} catch {}
|
|
23
23
|
}, [href]);
|
|
24
|
-
const openChatGPT = React
|
|
24
|
+
const openChatGPT = React.useCallback(() => {
|
|
25
25
|
const url = buildProviderUrl("chatgpt", href);
|
|
26
26
|
try {
|
|
27
27
|
navigator.clipboard?.writeText(href).catch(() => {});
|
|
28
28
|
} catch {}
|
|
29
29
|
window.open(url, "_blank", "noopener,noreferrer");
|
|
30
30
|
}, [href]);
|
|
31
|
-
const openClaude = React
|
|
31
|
+
const openClaude = React.useCallback(() => {
|
|
32
32
|
const url = buildProviderUrl("claude", href);
|
|
33
33
|
try {
|
|
34
34
|
navigator.clipboard?.writeText(href).catch(() => {});
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@lssm/lib.ui-kit-web/ui/breadcrumb";
|
|
6
6
|
|
|
7
7
|
//#region src/components/molecules/Breadcrumbs.tsx
|
|
8
8
|
function Breadcrumbs({ items }) {
|
|
9
9
|
if (!items?.length) return null;
|
|
10
|
-
return /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, { children: items.map((it, idx) => /* @__PURE__ */ jsxs(React
|
|
10
|
+
return /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, { children: items.map((it, idx) => /* @__PURE__ */ jsxs(React.Fragment, { children: [/* @__PURE__ */ jsx(BreadcrumbItem, { children: it.href ? /* @__PURE__ */ jsx(BreadcrumbLink, {
|
|
11
11
|
href: it.href,
|
|
12
12
|
children: it.label
|
|
13
13
|
}) : /* @__PURE__ */ jsx(BreadcrumbPage, { children: it.label }) }), idx < items.length - 1 && /* @__PURE__ */ jsx(BreadcrumbSeparator, {})] }, idx)) }) });
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut } from "@lssm/lib.ui-kit-web/ui/command";
|
|
6
6
|
|
|
7
7
|
//#region src/components/molecules/CommandPalette.tsx
|
|
8
8
|
function CommandPalette({ open, onOpenChange, groups, placeholder = "Type a command or search…" }) {
|
|
9
|
-
const [internalOpen, setInternalOpen] = React
|
|
9
|
+
const [internalOpen, setInternalOpen] = React.useState(false);
|
|
10
10
|
const isControlled = typeof open === "boolean";
|
|
11
11
|
const visible = isControlled ? open : internalOpen;
|
|
12
12
|
const setVisible = isControlled ? onOpenChange : setInternalOpen;
|
|
13
|
-
React
|
|
13
|
+
React.useEffect(() => {
|
|
14
14
|
const handler = (e) => {
|
|
15
15
|
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {
|
|
16
16
|
e.preventDefault();
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import { Button } from "../atoms/Button.js";
|
|
4
4
|
import { CommandPalette } from "./CommandPalette.js";
|
|
5
|
-
import * as React
|
|
5
|
+
import * as React from "react";
|
|
6
6
|
import { SearchIcon } from "lucide-react";
|
|
7
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
8
8
|
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
9
9
|
|
|
10
10
|
//#region src/components/molecules/CommandSearchTrigger.tsx
|
|
11
11
|
function CommandSearchTrigger({ groups, className, placeholder = "Search…", compact = false }) {
|
|
12
|
-
const [open, setOpen] = React
|
|
13
|
-
React
|
|
12
|
+
const [open, setOpen] = React.useState(false);
|
|
13
|
+
React.useEffect(() => {
|
|
14
14
|
const handler = (e) => {
|
|
15
15
|
if ((e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k") {
|
|
16
16
|
e.preventDefault();
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Button } from "../atoms/Button.js";
|
|
2
2
|
import { Input } from "../atoms/Input.js";
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
6
6
|
import { Badge } from "@lssm/lib.ui-kit-web/ui/badge";
|
|
7
7
|
|
|
8
8
|
//#region src/components/molecules/FiltersToolbar.tsx
|
|
9
9
|
function FiltersToolbar({ className, children, right, searchPlaceholder, searchValue, onSearchChange, onSearchSubmit, debounceMs = 250, activeChips = [], onClearAll }) {
|
|
10
|
-
const [q, setQ] = React
|
|
11
|
-
React
|
|
10
|
+
const [q, setQ] = React.useState(searchValue ?? "");
|
|
11
|
+
React.useEffect(() => {
|
|
12
12
|
setQ(searchValue ?? "");
|
|
13
13
|
}, [searchValue]);
|
|
14
|
-
React
|
|
14
|
+
React.useEffect(() => {
|
|
15
15
|
if (!onSearchChange) return;
|
|
16
16
|
const id = setTimeout(() => onSearchChange(q), debounceMs);
|
|
17
17
|
return () => clearTimeout(id);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { Globe } from "lucide-react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from "@lssm/lib.ui-kit-web/ui/dropdown-menu";
|
|
5
5
|
|
|
6
6
|
//#region src/components/molecules/LangSwitchDropdown.tsx
|
|
7
7
|
function LangSwitchDropdown({ value, options, onChange, className }) {
|
|
8
|
-
const [open, setOpen] = React
|
|
8
|
+
const [open, setOpen] = React.useState(false);
|
|
9
9
|
const current = options.find((o) => o.code === value);
|
|
10
10
|
return /* @__PURE__ */ jsxs(DropdownMenu, {
|
|
11
11
|
open,
|
|
@@ -7,7 +7,6 @@ import { Skeleton } from "@lssm/lib.ui-kit-web/ui/skeleton";
|
|
|
7
7
|
function SkeletonBlock({ w = "w-full", h = "h-4", rounded = "md", className }) {
|
|
8
8
|
return /* @__PURE__ */ jsx(Skeleton, { className: cn(w, h, rounded === "full" ? "rounded-full" : rounded === "lg" ? "rounded-lg" : rounded === "sm" ? "rounded-xs" : "rounded-md", className) });
|
|
9
9
|
}
|
|
10
|
-
var index_web_default = SkeletonBlock;
|
|
11
10
|
|
|
12
11
|
//#endregion
|
|
13
|
-
export { SkeletonBlock
|
|
12
|
+
export { SkeletonBlock };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
-
import { SkeletonList
|
|
3
|
+
import { SkeletonList } from "@lssm/lib.ui-kit-web/ui/molecules/SkeletonList";
|
|
4
4
|
|
|
5
5
|
//#region src/components/molecules/SkeletonList/index.web.tsx
|
|
6
|
-
function SkeletonList({ count = 10, className }) {
|
|
7
|
-
return /* @__PURE__ */ jsx(SkeletonList
|
|
6
|
+
function SkeletonList$1({ count = 10, className }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(SkeletonList, {
|
|
8
8
|
count,
|
|
9
9
|
className
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
|
-
var index_web_default = SkeletonList;
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
15
|
-
export { SkeletonList
|
|
14
|
+
export { SkeletonList$1 as SkeletonList };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import * as React
|
|
3
|
+
import * as React from "react";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
6
6
|
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from "@lssm/lib.ui-kit-web/ui/breadcrumb";
|
|
@@ -22,7 +22,7 @@ function AcademyLayout({ header, toc, breadcrumb, children, rightPanel, footer,
|
|
|
22
22
|
className: "min-w-0",
|
|
23
23
|
children: [breadcrumb && breadcrumb.items?.length ? /* @__PURE__ */ jsx("div", {
|
|
24
24
|
className: "mb-4",
|
|
25
|
-
children: /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, { children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxs(React
|
|
25
|
+
children: /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, { children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxs(React.Fragment, { children: [/* @__PURE__ */ jsx(BreadcrumbItem, { children: it.href ? /* @__PURE__ */ jsx(BreadcrumbLink, {
|
|
26
26
|
href: it.href,
|
|
27
27
|
children: it.label
|
|
28
28
|
}) : /* @__PURE__ */ jsx(BreadcrumbPage, { children: it.label }) }), idx < breadcrumb.items.length - 1 && /* @__PURE__ */ jsx(BreadcrumbSeparator, {})] }, idx)) }) })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { AppSidebar } from "./AppSidebar.js";
|
|
4
|
-
import * as React
|
|
4
|
+
import * as React from "react";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
7
7
|
import { Separator } from "@lssm/lib.ui-kit-web/ui/separator";
|
|
@@ -28,7 +28,7 @@ function AppLayout({ header, sidebar, breadcrumb, children, footer, className })
|
|
|
28
28
|
className: "min-w-0",
|
|
29
29
|
children: [breadcrumb && breadcrumb.items?.length ? /* @__PURE__ */ jsx("div", {
|
|
30
30
|
className: "mb-2",
|
|
31
|
-
children: /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, { children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxs(React
|
|
31
|
+
children: /* @__PURE__ */ jsx(Breadcrumb, { children: /* @__PURE__ */ jsx(BreadcrumbList, { children: breadcrumb.items.map((it, idx) => /* @__PURE__ */ jsxs(React.Fragment, { children: [/* @__PURE__ */ jsx(BreadcrumbItem, { children: it.href ? /* @__PURE__ */ jsx(BreadcrumbLink, {
|
|
32
32
|
href: it.href,
|
|
33
33
|
children: it.label
|
|
34
34
|
}) : /* @__PURE__ */ jsx(BreadcrumbPage, { children: it.label }) }), idx < breadcrumb.items.length - 1 && /* @__PURE__ */ jsx(BreadcrumbSeparator, {})] }, idx)) }) })
|