@burdenoff/fe-libs 2026.527.7 → 2026.528.2
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/dist/button/Button.d.ts +2 -2
- package/dist/chrome/AppShellLayout.d.ts +6 -0
- package/dist/chrome/AppShellLayout.d.ts.map +1 -1
- package/dist/chrome/AppShellLayout.js +9 -3
- package/dist/chrome/PageHeader.d.ts +17 -0
- package/dist/chrome/PageHeader.d.ts.map +1 -0
- package/dist/chrome/PageHeader.js +67 -0
- package/dist/chrome/index.d.ts +2 -0
- package/dist/chrome/index.d.ts.map +1 -1
- package/dist/chrome.js +33 -32
- package/dist/form/FormLabel.d.ts +4 -2
- package/dist/form/FormLabel.d.ts.map +1 -1
- package/dist/form/FormLabel.js +17 -10
- package/dist/form/FormSection.d.ts +18 -0
- package/dist/form/FormSection.d.ts.map +1 -0
- package/dist/form/FormSection.js +78 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.d.ts.map +1 -1
- package/dist/form.js +11 -10
- package/dist/shared/native/SafeAreaView.d.ts +15 -0
- package/dist/shared/native/SafeAreaView.d.ts.map +1 -0
- package/dist/shared/native/SafeAreaView.js +22 -0
- package/dist/shared/native/index.d.ts +1 -0
- package/dist/shared/native/index.d.ts.map +1 -1
- package/dist/shared-hooks.js +10 -10
- package/dist/shared-native.js +9 -8
- package/dist/shared.js +67 -66
- package/dist/storage/SaveToFilesDialog.js +7 -7
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/bottom-sheet.d.ts +16 -0
- package/dist/ui/bottom-sheet.d.ts.map +1 -0
- package/dist/ui/bottom-sheet.js +89 -0
- package/dist/ui/button.d.ts +2 -2
- package/dist/ui/empty-state.d.ts +13 -0
- package/dist/ui/empty-state.d.ts.map +1 -0
- package/dist/ui/empty-state.js +34 -0
- package/dist/ui/index.d.ts +7 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/optional-fields.d.ts +16 -0
- package/dist/ui/optional-fields.d.ts.map +1 -0
- package/dist/ui/optional-fields.js +55 -0
- package/dist/ui/responsive-dialog.d.ts +18 -0
- package/dist/ui/responsive-dialog.d.ts.map +1 -0
- package/dist/ui/responsive-dialog.js +38 -0
- package/dist/ui/responsive-stack.d.ts +15 -0
- package/dist/ui/responsive-stack.d.ts.map +1 -0
- package/dist/ui/responsive-stack.js +65 -0
- package/dist/ui/responsive-table.d.ts +24 -0
- package/dist/ui/responsive-table.d.ts.map +1 -0
- package/dist/ui/responsive-table.js +84 -0
- package/dist/ui/sheet.js +2 -2
- package/dist/ui/stepper.d.ts +16 -0
- package/dist/ui/stepper.d.ts.map +1 -0
- package/dist/ui/stepper.js +79 -0
- package/dist/ui.js +31 -24
- package/package.json +1 -1
- package/shared/config/eslint.config.mjs +39 -0
package/dist/shared.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
1
|
+
import { useMediaQuery as e } from "./shared/hooks/useMediaQuery.js";
|
|
2
|
+
import { createApolloClient as t } from "./shared/utils/apollo.js";
|
|
3
|
+
import { alertTokens as n, categoryTokens as r, getAlertTokens as i, getCategoryTokens as a, getProgressTokens as o, getStatusBadgeTokens as s, getStatusTokens as c, getTrendTokens as l, progressTokens as u, statusTokens as d, trendTokens as f } from "./shared/utils/tokens.js";
|
|
4
|
+
import { capitalizeFirst as p, capitalizeWords as m, formatBytes as h, formatCompactNumber as g, formatCurrency as _, formatCurrencyCompact as v, formatDate as y, formatDateTime as b, formatDuration as x, formatList as S, formatNumber as C, formatOrdinal as w, formatPercentage as T, formatRelativeTime as E, formatTime as D, pluralize as O, slugify as k, toCamelCase as A, toPascalCase as j, truncateText as M } from "./shared/utils/format.js";
|
|
5
|
+
import { isChunkLoadError as N, lazyWithRetry as P } from "./shared/utils/lazyWithRetry.js";
|
|
6
|
+
import { resolveGatewayUrls as F } from "./shared/config/gatewayUrls.js";
|
|
7
|
+
import { installGatewayFetchRewrite as I, resolveGatewayBases as L, suppressConsole as R } from "./shared/utils/gatewayFetchRewrite.js";
|
|
8
|
+
import { resolveAuthBridgeConfig as z } from "./shared/config/authBridgeUrls.js";
|
|
9
|
+
import { PRODUCTS as B, PRODUCT_URLS as V, getProductUrl as H, getProductsWithUrls as U } from "./shared/config/products.js";
|
|
10
|
+
import { COMMON_SHELL_LESS_ROUTES as W, DEFAULT_SHELL_CONFIG as G, getShellConfig as K, isShellLessRoute as q, shouldShowBreadcrumb as J, shouldShowSidebar as Y } from "./shared/config/shellRoutes.js";
|
|
11
|
+
import { DEFAULT_PAGE_SIZE as X, GATEWAYS as Z, getGatewayConfig as Q, getGatewayUrl as $, getGraphQLEndpoint as ee } from "./shared-config.js";
|
|
12
|
+
import { getWorkspaceTokenPayload as te, isWorkspaceTokenValidForContext as ne } from "./shared/graphql/workspaceToken.js";
|
|
13
|
+
import { getStoredAuthToken as re, getStoredLocale as ie, getStoredOrganizationId as ae, getStoredWorkspaceId as oe, getStoredWorkspaceToken as se, graphqlFetch as ce, resolveGatewayUrl as le } from "./shared/graphql/fetch.js";
|
|
14
|
+
import { SSELink as ue } from "./shared/graphql/links/sse-link.js";
|
|
15
|
+
import { createGraphQLClient as de, getGlobalClient as fe, getWorkspaceClient as pe, initializeAppClients as me, resetAppClients as he } from "./shared/graphql/client.js";
|
|
16
|
+
import { GatewayProvider as ge, useGateway as _e, useGatewayClient as ve, useSafeGateway as ye, useSafeGatewayClient as be } from "./shared/graphql/GatewayContext.js";
|
|
17
|
+
import { ApolloClient as xe, ApolloProvider as Se, InMemoryCache as Ce, gql as we, useApolloClient as Te, useLazyQuery as Ee, useMutation as De, useQuery as Oe, useSubscription as ke } from "./shared-graphql.js";
|
|
18
|
+
import { attemptTokenRefresh as Ae, clearAuthSessionStorage as je, hasAuthGraphQLErrors as Me, isAuthGraphQLError as Ne, isAuthNetworkError as Pe, redirectToLogin as Fe } from "./shared/utils/authErrorHandling.js";
|
|
19
|
+
import { clearSSoCookie as Ie, clearShellSsoCookies as Le, getSSoCookie as Re, isSharedSsoCookieDomain as ze, isTrustedSsoOrigin as Be, readShellSsoCookie as Ve, setSSoCookie as He, setShellSsoCookies as Ue } from "./shared/utils/authCookie.js";
|
|
20
|
+
import { SSORedirectSpinner as We, checkRemoteSLO as Ge, checkSLO as Ke, clearLocalAuthState as qe, getSSORedirectUrl as Je } from "./shared/components/SSORedirectGuard.js";
|
|
21
|
+
import { AppInitializer as Ye, useRegistryHelpers as Xe, useShellNavigate as Ze } from "./shared/utils/appHelpers.js";
|
|
22
|
+
import { LogLevel as Qe } from "./shared/logger/types.js";
|
|
23
|
+
import { Logger as $e } from "./shared/logger/Logger.js";
|
|
24
|
+
import { LogManager as et, logManager as tt } from "./shared/logger/LogManager.js";
|
|
25
|
+
import { ConsoleTransport as nt } from "./shared/logger/ConsoleTransport.js";
|
|
26
|
+
import { clearUserContext as rt, initializeLogger as it, setUserContext as at } from "./shared/utils/loggerInit.js";
|
|
27
|
+
import { createProfileScopedStorage as ot, getProfileScopedKey as st } from "./shared/utils/profileScopedStorage.js";
|
|
28
|
+
import { QUOTA_EXHAUSTED_CODE as ct, buildQuotaExhaustedMessage as lt, extractQuotaExhaustedExtensions as ut, isQuotaExhaustedError as dt } from "./shared/utils/quotaErrors.js";
|
|
29
|
+
import { cn as ft } from "./shared-utils.js";
|
|
30
|
+
import { ErrorBoundary as pt } from "./shared/components/ErrorBoundary.js";
|
|
31
|
+
import { RequireAuth as mt, RequireGuest as ht } from "./shared/components/RequireAuth.js";
|
|
32
|
+
import { PermissionButton as gt, PermissionGate as _t, PermissionLink as vt } from "./shared/components/PermissionGate.js";
|
|
33
|
+
import { AccessDenied as yt, PermissionDenied as bt } from "./shared/components/AccessDenied.js";
|
|
34
|
+
import { ErrorFallback as xt } from "./shared/components/ErrorFallback.js";
|
|
35
|
+
import { LoadingFallback as St, PageLoadingFallback as Ct, SectionLoadingFallback as wt } from "./shared/components/LoadingFallback.js";
|
|
36
|
+
import { MicrofrontendErrorBoundary as Tt } from "./shared/components/MicrofrontendErrorBoundary.js";
|
|
37
|
+
import { ConditionalShell as Et } from "./shared/components/ConditionalShell.js";
|
|
38
|
+
import { usePWA as Dt } from "./shared/hooks/usePWA.js";
|
|
39
|
+
import { PWAInstallBanner as Ot } from "./shared/components/PWAInstallBanner.js";
|
|
40
|
+
import { ErrorBoundary as kt } from "./shared/components/AppErrorBoundary.js";
|
|
41
|
+
import { FeatureFlagProvider as At, useFeatureFlags as jt } from "./shared/feature-flags/FeatureFlagProvider.js";
|
|
42
|
+
import { useFeatureFlag as Mt, useFeatureFlagDetails as Nt, useFeatureFlagValue as Pt } from "./shared/feature-flags/useFeatureFlag.js";
|
|
43
|
+
import { FeatureGate as Ft } from "./shared/feature-flags/FeatureGate.js";
|
|
43
44
|
import "./shared-feature-flags.js";
|
|
44
|
-
import { ContextConversationWidget as
|
|
45
|
-
import { detectPlatform as
|
|
46
|
-
import { KeyboardHelpDialogWrapper as
|
|
47
|
-
import { QuotaMeter as
|
|
48
|
-
import { UPGRADE_PROMPT_EVENT as
|
|
49
|
-
import { UpgradeInlineBanner as
|
|
45
|
+
import { ContextConversationWidget as It } from "./shared/components/ContextConversationWidget.js";
|
|
46
|
+
import { detectPlatform as Lt, formatKeyCombo as Rt, getDisplayKeysForPlatform as zt, getShortcutLabel as Bt, isMac as Vt, isMobileDevice as Ht, isTabletDevice as Ut, matchesKeyCombo as Wt, normalizeKey as Gt, normalizePlatformCombo as Kt, parseKeyCombo as qt, shouldEnableKeyboardShortcuts as Jt, shouldIgnoreShortcut as Yt } from "./shared/keyboard/utils.js";
|
|
47
|
+
import { KeyboardHelpDialogWrapper as Xt } from "./shared/components/KeyboardHelpDialogWrapper.js";
|
|
48
|
+
import { QuotaMeter as Zt } from "./shared/components/QuotaMeter.js";
|
|
49
|
+
import { UPGRADE_PROMPT_EVENT as Qt, UpgradePromptModal as $t, dispatchUpgradePrompt as en } from "./shared/components/UpgradePromptModal.js";
|
|
50
|
+
import { UpgradeInlineBanner as tn } from "./shared/components/UpgradeInlineBanner.js";
|
|
50
51
|
import "./shared-components.js";
|
|
51
|
-
import { DevtoolsSink as
|
|
52
|
-
import { BroadcastChannelSink as
|
|
53
|
-
import { BackendAuditSink as
|
|
54
|
-
import { RybbitSink as
|
|
55
|
-
import { OtelBrowserSink as
|
|
56
|
-
import { EventBusProvider as
|
|
57
|
-
import { useDebounce as
|
|
58
|
-
import { useThrottle as
|
|
59
|
-
import { useMediaQuery as mn } from "./shared/hooks/useMediaQuery.js";
|
|
52
|
+
import { DevtoolsSink as nn } from "./shared/events/sinks/DevtoolsSink.js";
|
|
53
|
+
import { BroadcastChannelSink as rn } from "./shared/events/sinks/BroadcastChannelSink.js";
|
|
54
|
+
import { BackendAuditSink as an } from "./shared/events/sinks/BackendAuditSink.js";
|
|
55
|
+
import { RybbitSink as on } from "./shared/events/sinks/RybbitSink.js";
|
|
56
|
+
import { OtelBrowserSink as sn } from "./shared/events/sinks/OtelBrowserSink.js";
|
|
57
|
+
import { EventBusProvider as cn, createEventBus as ln, useEvent as un, useEventBus as dn, useEventEmitter as fn } from "./shared-events.js";
|
|
58
|
+
import { useDebounce as pn } from "./shared/hooks/useDebounce.js";
|
|
59
|
+
import { useThrottle as mn } from "./shared/hooks/useThrottle.js";
|
|
60
60
|
import { BREAKPOINTS as hn, useBreakpoint as gn, useMobileBreakpoint as _n } from "./shared/hooks/useBreakpoint.js";
|
|
61
61
|
import { useOnClickOutside as vn, useOnClickOutsideWithRef as yn } from "./shared/hooks/useOnClickOutside.js";
|
|
62
62
|
import { useKeyPress as bn, useKeyboardShortcut as xn } from "./shared/hooks/useKeyPress.js";
|
|
@@ -95,15 +95,16 @@ import { MicrofrontendProvider as jr } from "./shared-providers.js";
|
|
|
95
95
|
import { getNativeBridge as Mr } from "./shared/native/bridge.js";
|
|
96
96
|
import { getPlatform as Nr, isAndroid as Pr, isIOS as Fr, isNative as Ir, isWeb as Lr } from "./shared/native/platform.js";
|
|
97
97
|
import { nativeConfirm as Rr, nativeCopyText as zr, nativeImpact as Br, nativeNotify as Vr, nativeOpenUrl as Hr, nativeShare as Ur, nativeToast as Wr } from "./shared/native/consumers.js";
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
98
|
+
import { SafeAreaView as Gr } from "./shared/native/SafeAreaView.js";
|
|
99
|
+
import { useNativePlatform as Kr } from "./shared/native/hooks/useNativePlatform.js";
|
|
100
|
+
import { useSafeArea as qr } from "./shared/native/hooks/useSafeArea.js";
|
|
101
|
+
import { useNativeKeyboard as Jr } from "./shared/native/hooks/useNativeKeyboard.js";
|
|
102
|
+
import { useAppState as Yr } from "./shared/native/hooks/useAppState.js";
|
|
103
|
+
import { useDeviceInfo as Xr } from "./shared/native/hooks/useDeviceInfo.js";
|
|
104
|
+
import { useHaptics as Zr } from "./shared/native/hooks/useHaptics.js";
|
|
105
|
+
import { useStatusBar as Qr } from "./shared/native/hooks/useStatusBar.js";
|
|
105
106
|
import "./shared-native.js";
|
|
106
107
|
//#region src/shared/index.ts
|
|
107
|
-
var
|
|
108
|
+
var $r = "1.0.0";
|
|
108
109
|
//#endregion
|
|
109
|
-
export {
|
|
110
|
+
export { yt as AccessDenied, xe as ApolloClient, Se as ApolloProvider, kt as AppErrorBoundary, Ye as AppInitializer, kr as AppShellProvider, hn as BREAKPOINTS, an as BackendAuditSink, rn as BroadcastChannelSink, W as COMMON_SHELL_LESS_ROUTES, Et as ConditionalShell, nt as ConsoleTransport, It as ContextConversationWidget, X as DEFAULT_PAGE_SIZE, G as DEFAULT_SHELL_CONFIG, nn as DevtoolsSink, pt as ErrorBoundary, xt as ErrorFallback, cn as EventBusProvider, $r as FE_SHARED_VERSION, At as FeatureFlagProvider, Ft as FeatureGate, Z as GATEWAYS, Rn as GLOBAL_SHORTCUT_CATEGORIES, ge as GatewayProvider, Ce as InMemoryCache, Xt as KeyboardHelpDialogWrapper, St as LoadingFallback, Qe as LogLevel, et as LogManager, $e as Logger, Nn as MODIFIER_KEYS, Qn as MicrofrontendContext, Tt as MicrofrontendErrorBoundary, jr as MicrofrontendProvider, sn as OtelBrowserSink, Yn as PLAN_USAGE_SNAPSHOT_EVENT, Pn as PLATFORM_TYPES, B as PRODUCTS, V as PRODUCT_URLS, Ot as PWAInstallBanner, Ct as PageLoadingFallback, gt as PermissionButton, bt as PermissionDenied, _t as PermissionGate, vt as PermissionLink, ct as QUOTA_EXHAUSTED_CODE, Kn as QUOTA_EXHAUSTED_EVENT, Zt as QuotaMeter, mt as RequireAuth, ht as RequireGuest, on as RybbitSink, ue as SSELink, We as SSORedirectSpinner, Gr as SafeAreaView, wt as SectionLoadingFallback, Or as TourInitializer, ur as TourPlayer, ar as TourPlayerProvider, rr as TourSpotlight, ir as TourTooltip, Dr as TourTrigger, dr as TourTriggerButton, Sr as ToursProvider, Qt as UPGRADE_PROMPT_EVENT, tn as UpgradeInlineBanner, $t as UpgradePromptModal, n as alertTokens, Ae as attemptTokenRefresh, lt as buildQuotaExhaustedMessage, p as capitalizeFirst, m as capitalizeWords, r as categoryTokens, Ge as checkRemoteSLO, Ke as checkSLO, je as clearAuthSessionStorage, qe as clearLocalAuthState, Ie as clearSSoCookie, Le as clearShellSsoCookies, rt as clearUserContext, ft as cn, t as createApolloClient, ln as createEventBus, zn as createGlobalShortcuts, de as createGraphQLClient, ot as createProfileScopedStorage, er as detectDeviceType, Lt as detectPlatform, qn as dispatchQuotaExhausted, en as dispatchUpgradePrompt, ut as extractQuotaExhaustedExtensions, h as formatBytes, g as formatCompactNumber, _ as formatCurrency, v as formatCurrencyCompact, y as formatDate, b as formatDateTime, x as formatDuration, Rt as formatKeyCombo, S as formatList, C as formatNumber, w as formatOrdinal, T as formatPercentage, E as formatRelativeTime, D as formatTime, i as getAlertTokens, a as getCategoryTokens, zt as getDisplayKeysForPlatform, Q as getGatewayConfig, $ as getGatewayUrl, fe as getGlobalClient, Bn as getGlobalShortcutsByCategory, ee as getGraphQLEndpoint, Mr as getNativeBridge, Nr as getPlatform, H as getProductUrl, U as getProductsWithUrls, st as getProfileScopedKey, o as getProgressTokens, tr as getResponsiveSelector, Je as getSSORedirectUrl, Re as getSSoCookie, K as getShellConfig, Bt as getShortcutLabel, s as getStatusBadgeTokens, c as getStatusTokens, re as getStoredAuthToken, ie as getStoredLocale, ae as getStoredOrganizationId, oe as getStoredWorkspaceId, se as getStoredWorkspaceToken, pr as getTourContextRank, mr as getTourRouteCatalog, hr as getTourRouteModules, gr as getTourRoutePages, l as getTrendTokens, pe as getWorkspaceClient, te as getWorkspaceTokenPayload, we as gql, ce as graphqlFetch, Me as hasAuthGraphQLErrors, me as initializeAppClients, it as initializeLogger, I as installGatewayFetchRewrite, Pr as isAndroid, Ne as isAuthGraphQLError, Pe as isAuthNetworkError, N as isChunkLoadError, Fr as isIOS, Vt as isMac, Ht as isMobileDevice, Ir as isNative, dt as isQuotaExhaustedError, ze as isSharedSsoCookieDomain, q as isShellLessRoute, Ut as isTabletDevice, _r as isTourVisibleForContext, Be as isTrustedSsoOrigin, Lr as isWeb, ne as isWorkspaceTokenValidForContext, P as lazyWithRetry, tt as logManager, Wt as matchesKeyCombo, Vn as mergeShortcuts, Rr as nativeConfirm, zr as nativeCopyText, Br as nativeImpact, Vr as nativeNotify, Hr as nativeOpenUrl, Ur as nativeShare, Wr as nativeToast, Gt as normalizeKey, Kt as normalizePlatformCombo, vr as normalizeTourPath, qt as parseKeyCombo, O as pluralize, u as progressTokens, Xn as publishPlanUsageSnapshot, Ve as readShellSsoCookie, Fe as redirectToLogin, yr as registerTourRouteCatalog, he as resetAppClients, Ar as resolveAppShellObservabilityConfig, z as resolveAuthBridgeConfig, L as resolveGatewayBases, le as resolveGatewayUrl, F as resolveGatewayUrls, br as resolveTourTargetPath, He as setSSoCookie, Ue as setShellSsoCookies, at as setUserContext, Jt as shouldEnableKeyboardShortcuts, Yt as shouldIgnoreShortcut, J as shouldShowBreadcrumb, Y as shouldShowSidebar, k as slugify, d as statusTokens, R as suppressConsole, A as toCamelCase, j as toPascalCase, f as trendTokens, M as truncateText, Te as useApolloClient, Yr as useAppState, jn as useAsync, Mn as useAsyncImmediate, Cr as useAutoStartTour, gn as useBreakpoint, On as useConditionalToggle, Sn as useCopyToClipboard, pn as useDebounce, Xr as useDeviceInfo, un as useEvent, dn as useEventBus, fn as useEventEmitter, Mt as useFeatureFlag, Nt as useFeatureFlagDetails, Pt as useFeatureFlagValue, jt as useFeatureFlags, _e as useGateway, ve as useGatewayClient, Zr as useHaptics, Un as useHasAnimated, In as useHotkeys, or as useIsTourPlaying, bn as useKeyPress, xn as useKeyboardShortcut, Fn as useKeyboardShortcuts, Ee as useLazyQuery, Cn as useLocalStorage, Hn as useLogger, e as useMediaQuery, $n as useMicrofrontendContext, _n as useMobileBreakpoint, De as useMutation, Jr as useNativeKeyboard, Kr as useNativePlatform, vn as useOnClickOutside, yn as useOnClickOutsideWithRef, Dt as usePWA, fr as usePlayTour, Tn as usePrevious, En as usePreviousDistinct, Dn as usePreviousHistory, Oe as useQuery, Jn as useQuotaErrorToast, Gn as useRecordProductVisit, Wn as useReferralAttribution, Xe as useRegistryHelpers, qr as useSafeArea, ye as useSafeGateway, be as useSafeGatewayClient, wr as useSafeToursContext, wn as useSessionStorage, Ze as useShellNavigate, Ln as useShortcutHelp, sr as useStartTour, Qr as useStatusBar, cr as useStopTour, ke as useSubscription, mn as useThrottle, kn as useToggle, An as useToggleObject, nr as useTourPlayer, lr as useTourPlayerContext, Tr as useTours, Er as useToursContext, Zn as useUpgradePrompt, xr as withTourProgressStatus };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Dialog as e, DialogContent as t, DialogDescription as n, DialogFooter as r, DialogHeader as i, DialogTitle as a } from "../ui/dialog.js";
|
|
2
|
+
import { Button as o } from "../ui/button.js";
|
|
3
3
|
import { Input as s } from "../ui/input.js";
|
|
4
4
|
import { Label as c } from "../ui/label.js";
|
|
5
5
|
import { Spinner as l } from "../ui/spinner.js";
|
|
@@ -11,11 +11,11 @@ function g({ open: g, onOpenChange: _, source: v, defaultFolderPath: y, filename
|
|
|
11
11
|
let [S, C] = f(y ?? "/Saved"), { save: w, isPending: T, error: E, progress: D } = u();
|
|
12
12
|
return d(() => {
|
|
13
13
|
g && C(y ?? "/Saved");
|
|
14
|
-
}, [g, y]), /* @__PURE__ */ m(
|
|
14
|
+
}, [g, y]), /* @__PURE__ */ m(e, {
|
|
15
15
|
open: g,
|
|
16
16
|
onOpenChange: _,
|
|
17
|
-
children: /* @__PURE__ */ h(
|
|
18
|
-
/* @__PURE__ */ h(
|
|
17
|
+
children: /* @__PURE__ */ h(t, { children: [
|
|
18
|
+
/* @__PURE__ */ h(i, { children: [/* @__PURE__ */ m(a, { children: "Save to Files" }), /* @__PURE__ */ h(n, { children: [
|
|
19
19
|
"Save ",
|
|
20
20
|
/* @__PURE__ */ m("span", {
|
|
21
21
|
className: "font-medium",
|
|
@@ -62,12 +62,12 @@ function g({ open: g, onOpenChange: _, source: v, defaultFolderPath: y, filename
|
|
|
62
62
|
})
|
|
63
63
|
]
|
|
64
64
|
}),
|
|
65
|
-
/* @__PURE__ */ h(
|
|
65
|
+
/* @__PURE__ */ h(r, { children: [/* @__PURE__ */ m(o, {
|
|
66
66
|
variant: "ghost",
|
|
67
67
|
disabled: T,
|
|
68
68
|
onClick: () => _(!1),
|
|
69
69
|
children: "Cancel"
|
|
70
|
-
}), /* @__PURE__ */ m(
|
|
70
|
+
}), /* @__PURE__ */ m(o, {
|
|
71
71
|
disabled: T || S.trim().length === 0,
|
|
72
72
|
onClick: async () => {
|
|
73
73
|
try {
|
package/dist/ui/badge.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "
|
|
4
|
+
variant?: "default" | "success" | "warning" | "info" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export interface BadgeProps extends HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
3
|
+
export type BottomSheetProps = React.ComponentProps<typeof DialogPrimitive.Root>;
|
|
4
|
+
export declare function BottomSheet({ ...props }: BottomSheetProps): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
export declare function BottomSheetTrigger(props: React.ComponentProps<typeof DialogPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function BottomSheetClose(props: React.ComponentProps<typeof DialogPrimitive.Close>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export interface BottomSheetContentProps extends React.ComponentProps<typeof DialogPrimitive.Content> {
|
|
8
|
+
showHandle?: boolean;
|
|
9
|
+
showCloseButton?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function BottomSheetContent({ className, children, showHandle, showCloseButton, ...props }: BottomSheetContentProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function BottomSheetHeader({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare function BottomSheetFooter({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function BottomSheetTitle({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Title>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function BottomSheetDescription({ className, ...props }: React.ComponentProps<typeof DialogPrimitive.Description>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=bottom-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bottom-sheet.d.ts","sourceRoot":"","sources":["../../src/ui/bottom-sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAK1D,MAAM,MAAM,gBAAgB,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,CAAC;AAEjF,wBAAgB,WAAW,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAEzD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,2CAE7F;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAEzF;AAoBD,MAAM,WAAW,uBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC;IAC5D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,QAAQ,EACR,UAAiB,EACjB,eAAsB,EACtB,GAAG,KAAK,EACT,EAAE,uBAAuB,2CAqCzB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQrF;AAED,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQrF;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQpD;AAED,wBAAgB,sBAAsB,CAAC,EACrC,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC,2CAQ1D"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { XIcon as t } from "lucide-react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
import * as i from "@radix-ui/react-dialog";
|
|
6
|
+
//#region src/ui/bottom-sheet.tsx
|
|
7
|
+
function a({ ...e }) {
|
|
8
|
+
return /* @__PURE__ */ n(i.Root, {
|
|
9
|
+
"data-slot": "bottom-sheet",
|
|
10
|
+
...e
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function o(e) {
|
|
14
|
+
return /* @__PURE__ */ n(i.Trigger, {
|
|
15
|
+
"data-slot": "bottom-sheet-trigger",
|
|
16
|
+
...e
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function s(e) {
|
|
20
|
+
return /* @__PURE__ */ n(i.Close, {
|
|
21
|
+
"data-slot": "bottom-sheet-close",
|
|
22
|
+
...e
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function c({ className: t, ...r }) {
|
|
26
|
+
return /* @__PURE__ */ n(i.Overlay, {
|
|
27
|
+
"data-slot": "bottom-sheet-overlay",
|
|
28
|
+
className: e("fixed inset-0 z-[110] bg-bg-overlay", "data-[state=open]:animate-in data-[state=open]:fade-in-0", "data-[state=closed]:animate-out data-[state=closed]:fade-out-0", t),
|
|
29
|
+
...r
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function l({ className: a, children: o, showHandle: s = !0, showCloseButton: l = !0, ...u }) {
|
|
33
|
+
return /* @__PURE__ */ r(i.Portal, {
|
|
34
|
+
"data-slot": "bottom-sheet-portal",
|
|
35
|
+
children: [/* @__PURE__ */ n(c, {}), /* @__PURE__ */ r(i.Content, {
|
|
36
|
+
"data-slot": "bottom-sheet-content",
|
|
37
|
+
className: e("fixed inset-x-0 bottom-0 z-[120] flex max-h-[90vh] flex-col gap-3", "bg-bg-canvas text-text-primary border-t border-border-default", "rounded-t-2xl shadow-lg", "pb-[max(env(safe-area-inset-bottom),1rem)]", "data-[state=open]:animate-in data-[state=open]:slide-in-from-bottom data-[state=open]:duration-300", "data-[state=closed]:animate-out data-[state=closed]:slide-out-to-bottom data-[state=closed]:duration-200", "focus:outline-none", a),
|
|
38
|
+
...u,
|
|
39
|
+
children: [
|
|
40
|
+
s ? /* @__PURE__ */ n("div", {
|
|
41
|
+
className: "mx-auto mt-2 h-1.5 w-12 shrink-0 rounded-full bg-border-default",
|
|
42
|
+
"aria-hidden": "true"
|
|
43
|
+
}) : null,
|
|
44
|
+
/* @__PURE__ */ n("div", {
|
|
45
|
+
className: "flex-1 overflow-y-auto overscroll-contain px-4 sm:px-6",
|
|
46
|
+
children: o
|
|
47
|
+
}),
|
|
48
|
+
l ? /* @__PURE__ */ r(i.Close, {
|
|
49
|
+
"data-slot": "bottom-sheet-close-x",
|
|
50
|
+
className: "absolute top-3 right-3 rounded-md p-2 text-text-secondary opacity-70 transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-action-primary-bg/40",
|
|
51
|
+
children: [/* @__PURE__ */ n(t, { className: "size-4" }), /* @__PURE__ */ n("span", {
|
|
52
|
+
className: "sr-only",
|
|
53
|
+
children: "Close"
|
|
54
|
+
})]
|
|
55
|
+
}) : null
|
|
56
|
+
]
|
|
57
|
+
})]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
function u({ className: t, ...r }) {
|
|
61
|
+
return /* @__PURE__ */ n("div", {
|
|
62
|
+
"data-slot": "bottom-sheet-header",
|
|
63
|
+
className: e("flex flex-col gap-1 pt-2 pb-1", t),
|
|
64
|
+
...r
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
function d({ className: t, ...r }) {
|
|
68
|
+
return /* @__PURE__ */ n("div", {
|
|
69
|
+
"data-slot": "bottom-sheet-footer",
|
|
70
|
+
className: e("mt-2 flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
|
|
71
|
+
...r
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function f({ className: t, ...r }) {
|
|
75
|
+
return /* @__PURE__ */ n(i.Title, {
|
|
76
|
+
"data-slot": "bottom-sheet-title",
|
|
77
|
+
className: e("text-lg font-semibold text-text-primary", t),
|
|
78
|
+
...r
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function p({ className: t, ...r }) {
|
|
82
|
+
return /* @__PURE__ */ n(i.Description, {
|
|
83
|
+
"data-slot": "bottom-sheet-description",
|
|
84
|
+
className: e("text-sm text-text-secondary", t),
|
|
85
|
+
...r
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
//#endregion
|
|
89
|
+
export { a as BottomSheet, s as BottomSheetClose, l as BottomSheetContent, p as BottomSheetDescription, d as BottomSheetFooter, u as BottomSheetHeader, f as BottomSheetTitle, o as BottomSheetTrigger };
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { VariantProps } from 'class-variance-authority';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "
|
|
5
|
-
size?: "default" | "
|
|
4
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "outline" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
6
6
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
7
|
export type ButtonProps = React.ComponentProps<'button'> & VariantProps<typeof buttonVariants> & {
|
|
8
8
|
asChild?: boolean;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface EmptyStateProps {
|
|
3
|
+
icon?: React.ReactNode | null;
|
|
4
|
+
title: React.ReactNode;
|
|
5
|
+
description?: React.ReactNode;
|
|
6
|
+
action?: React.ReactNode;
|
|
7
|
+
secondaryAction?: React.ReactNode;
|
|
8
|
+
compact?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Canonical empty-state layout: icon → title → description → action. */
|
|
12
|
+
export declare function EmptyState({ icon, title, description, action, secondaryAction, compact, className, }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=empty-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"empty-state.d.ts","sourceRoot":"","sources":["../../src/ui/empty-state.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAC9B,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,yEAAyE;AACzE,wBAAgB,UAAU,CAAC,EACzB,IAA8E,EAC9E,KAAK,EACL,WAAW,EACX,MAAM,EACN,eAAe,EACf,OAAe,EACf,SAAS,GACV,EAAE,eAAe,2CAgCjB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import { InboxIcon as t } from "lucide-react";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/ui/empty-state.tsx
|
|
6
|
+
function i({ icon: i = /* @__PURE__ */ n(t, {
|
|
7
|
+
className: "size-8 text-text-secondary",
|
|
8
|
+
"aria-hidden": "true"
|
|
9
|
+
}), title: a, description: o, action: s, secondaryAction: c, compact: l = !1, className: u }) {
|
|
10
|
+
return /* @__PURE__ */ r("div", {
|
|
11
|
+
"data-slot": "empty-state",
|
|
12
|
+
className: e("flex flex-col items-center justify-center text-center", l ? "py-6 px-4" : "py-12 px-4", u),
|
|
13
|
+
children: [
|
|
14
|
+
i === null ? null : /* @__PURE__ */ n("div", {
|
|
15
|
+
className: e("rounded-full bg-bg-sunken flex items-center justify-center", l ? "size-12 mb-3" : "size-16 mb-4"),
|
|
16
|
+
children: i
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ n("h3", {
|
|
19
|
+
className: "text-lg font-semibold text-text-primary mb-1",
|
|
20
|
+
children: a
|
|
21
|
+
}),
|
|
22
|
+
o ? /* @__PURE__ */ n("p", {
|
|
23
|
+
className: "text-sm text-text-secondary max-w-md mb-4",
|
|
24
|
+
children: o
|
|
25
|
+
}) : null,
|
|
26
|
+
s || c ? /* @__PURE__ */ r("div", {
|
|
27
|
+
className: "mt-1 flex flex-col-reverse gap-2 sm:flex-row sm:items-center sm:justify-center",
|
|
28
|
+
children: [c, s]
|
|
29
|
+
}) : null
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { i as EmptyState };
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from './accordion';
|
|
2
|
+
export { OptionalFields, type OptionalFieldsProps } from './optional-fields';
|
|
3
|
+
export { BottomSheet, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetTitle, BottomSheetTrigger, type BottomSheetContentProps, type BottomSheetProps, } from './bottom-sheet';
|
|
4
|
+
export { ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, type ResponsiveDialogContentProps, } from './responsive-dialog';
|
|
5
|
+
export { ResponsiveTable, type ResponsiveTableColumn, type ResponsiveTableColumnPriority, type ResponsiveTableProps, } from './responsive-table';
|
|
6
|
+
export { Stepper, type StepperProps, type StepperStep } from './stepper';
|
|
7
|
+
export { ResponsiveStack, type ResponsiveStackProps } from './responsive-stack';
|
|
8
|
+
export { EmptyState, type EmptyStateProps } from './empty-state';
|
|
2
9
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from './alert-dialog';
|
|
3
10
|
export { Badge, badgeVariants, type BadgeProps } from './badge';
|
|
4
11
|
export { Button, buttonVariants, type ButtonProps } from './button';
|
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file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UAAU,EACV,gBAAgB,GACjB,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGtC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAGnC,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAGvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EACL,KAAK,EACL,SAAS,EACT,YAAY,EACZ,SAAS,EACT,WAAW,EACX,SAAS,EACT,WAAW,EACX,QAAQ,GACT,MAAM,SAAS,CAAC;AAGjB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGlE,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export interface OptionalFieldsProps {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
description?: React.ReactNode;
|
|
5
|
+
defaultOpen?: boolean;
|
|
6
|
+
icon?: React.ReactNode | null;
|
|
7
|
+
className?: string;
|
|
8
|
+
contentClassName?: string;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Canonical progressive-disclosure container for *optional* / *advanced* fields.
|
|
13
|
+
* Children stay mounted at all times (only display collapses) — form state preserved.
|
|
14
|
+
*/
|
|
15
|
+
export declare function OptionalFields({ title, description, defaultOpen, icon, className, contentClassName, children, }: OptionalFieldsProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=optional-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional-fields.d.ts","sourceRoot":"","sources":["../../src/ui/optional-fields.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAC7B,KAA2B,EAC3B,WAAW,EACX,WAAmB,EACnB,IAAkF,EAClF,SAAS,EACT,gBAAgB,EAChB,QAAQ,GACT,EAAE,mBAAmB,2CA8CrB"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { cn as e } from "../lib/utils.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import * as t from "@radix-ui/react-accordion";
|
|
4
|
+
import { ChevronDownIcon as n, Settings2Icon as r } from "lucide-react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region src/ui/optional-fields.tsx
|
|
7
|
+
function o({ title: o = "Advanced settings", description: s, defaultOpen: c = !1, icon: l = /* @__PURE__ */ i(r, {
|
|
8
|
+
className: "size-4 text-text-secondary",
|
|
9
|
+
"aria-hidden": "true"
|
|
10
|
+
}), className: u, contentClassName: d, children: f }) {
|
|
11
|
+
let p = "optional-fields";
|
|
12
|
+
return /* @__PURE__ */ i(t.Root, {
|
|
13
|
+
type: "single",
|
|
14
|
+
collapsible: !0,
|
|
15
|
+
defaultValue: c ? p : void 0,
|
|
16
|
+
"data-slot": "optional-fields",
|
|
17
|
+
className: e("rounded-lg border border-border-default bg-bg-surface", u),
|
|
18
|
+
children: /* @__PURE__ */ a(t.Item, {
|
|
19
|
+
value: p,
|
|
20
|
+
className: "border-b-0",
|
|
21
|
+
children: [/* @__PURE__ */ i(t.Header, {
|
|
22
|
+
className: "flex",
|
|
23
|
+
children: /* @__PURE__ */ a(t.Trigger, {
|
|
24
|
+
"data-slot": "optional-fields-trigger",
|
|
25
|
+
className: e("group flex w-full items-center justify-between gap-3 rounded-lg px-4 py-3 text-left transition-colors", "hover:bg-bg-sunken focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-action-primary-bg/40", "min-h-11"),
|
|
26
|
+
children: [/* @__PURE__ */ a("div", {
|
|
27
|
+
className: "flex items-center gap-3 min-w-0",
|
|
28
|
+
children: [l, /* @__PURE__ */ a("div", {
|
|
29
|
+
className: "min-w-0",
|
|
30
|
+
children: [/* @__PURE__ */ i("div", {
|
|
31
|
+
className: "text-sm font-medium text-text-primary truncate",
|
|
32
|
+
children: o
|
|
33
|
+
}), s ? /* @__PURE__ */ i("div", {
|
|
34
|
+
className: "text-xs text-text-secondary truncate",
|
|
35
|
+
children: s
|
|
36
|
+
}) : null]
|
|
37
|
+
})]
|
|
38
|
+
}), /* @__PURE__ */ i(n, {
|
|
39
|
+
className: "size-4 shrink-0 text-text-secondary transition-transform duration-200 group-data-[state=open]:rotate-180",
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
})]
|
|
42
|
+
})
|
|
43
|
+
}), /* @__PURE__ */ i(t.Content, {
|
|
44
|
+
"data-slot": "optional-fields-content",
|
|
45
|
+
className: "overflow-hidden data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
46
|
+
children: /* @__PURE__ */ i("div", {
|
|
47
|
+
className: e("border-t border-border-subtle px-4 py-4 space-y-4", d),
|
|
48
|
+
children: f
|
|
49
|
+
})
|
|
50
|
+
})]
|
|
51
|
+
})
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
export { o as OptionalFields };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger } from './dialog';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Drop-in replacement for Dialog: centred modal on tablet/desktop,
|
|
5
|
+
* bottom-sheet on mobile (< md). Same API as Dialog.
|
|
6
|
+
*/
|
|
7
|
+
export declare function ResponsiveDialog(props: React.ComponentProps<typeof Dialog>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function ResponsiveDialogTrigger(props: React.ComponentProps<typeof DialogTrigger>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare function ResponsiveDialogClose(props: React.ComponentProps<typeof DialogClose>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export interface ResponsiveDialogContentProps extends React.ComponentProps<typeof DialogContent> {
|
|
11
|
+
showHandle?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function ResponsiveDialogContent({ showHandle, ...props }: ResponsiveDialogContentProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare function ResponsiveDialogHeader(props: React.ComponentProps<typeof DialogHeader>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export declare function ResponsiveDialogFooter(props: React.ComponentProps<typeof DialogFooter>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function ResponsiveDialogTitle(props: React.ComponentProps<typeof DialogTitle>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function ResponsiveDialogDescription(props: React.ComponentProps<typeof DialogDescription>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=responsive-dialog.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"responsive-dialog.d.ts","sourceRoot":"","sources":["../../src/ui/responsive-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACd,MAAM,UAAU,CAAC;AAgBlB;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,MAAM,CAAC,2CAG1E;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,2CAGxF;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,2CAGpF;AAED,MAAM,WAAW,4BAA6B,SAAQ,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC;IAC9F,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,uBAAuB,CAAC,EACtC,UAAiB,EACjB,GAAG,KAAK,EACT,EAAE,4BAA4B,2CAM9B;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,2CAGtF;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,2CAGtF;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,WAAW,CAAC,2CAGpF;AAED,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,iBAAiB,CAAC,2CAGhG"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { BottomSheet as e, BottomSheetClose as t, BottomSheetContent as n, BottomSheetDescription as r, BottomSheetFooter as i, BottomSheetHeader as a, BottomSheetTitle as o, BottomSheetTrigger as s } from "./bottom-sheet.js";
|
|
2
|
+
import { useMediaQuery as c } from "../shared/hooks/useMediaQuery.js";
|
|
3
|
+
import { Dialog as l, DialogClose as u, DialogContent as d, DialogDescription as f, DialogFooter as p, DialogHeader as m, DialogTitle as h, DialogTrigger as g } from "./dialog.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
6
|
+
//#region src/ui/responsive-dialog.tsx
|
|
7
|
+
function v() {
|
|
8
|
+
return c("(max-width: 767px)");
|
|
9
|
+
}
|
|
10
|
+
function y(t) {
|
|
11
|
+
return v() ? /* @__PURE__ */ _(e, { ...t }) : /* @__PURE__ */ _(l, { ...t });
|
|
12
|
+
}
|
|
13
|
+
function b(e) {
|
|
14
|
+
return v() ? /* @__PURE__ */ _(s, { ...e }) : /* @__PURE__ */ _(g, { ...e });
|
|
15
|
+
}
|
|
16
|
+
function x(e) {
|
|
17
|
+
return v() ? /* @__PURE__ */ _(t, { ...e }) : /* @__PURE__ */ _(u, { ...e });
|
|
18
|
+
}
|
|
19
|
+
function S({ showHandle: e = !0, ...t }) {
|
|
20
|
+
return v() ? /* @__PURE__ */ _(n, {
|
|
21
|
+
showHandle: e,
|
|
22
|
+
...t
|
|
23
|
+
}) : /* @__PURE__ */ _(d, { ...t });
|
|
24
|
+
}
|
|
25
|
+
function C(e) {
|
|
26
|
+
return v() ? /* @__PURE__ */ _(a, { ...e }) : /* @__PURE__ */ _(m, { ...e });
|
|
27
|
+
}
|
|
28
|
+
function w(e) {
|
|
29
|
+
return v() ? /* @__PURE__ */ _(i, { ...e }) : /* @__PURE__ */ _(p, { ...e });
|
|
30
|
+
}
|
|
31
|
+
function T(e) {
|
|
32
|
+
return v() ? /* @__PURE__ */ _(o, { ...e }) : /* @__PURE__ */ _(h, { ...e });
|
|
33
|
+
}
|
|
34
|
+
function E(e) {
|
|
35
|
+
return v() ? /* @__PURE__ */ _(r, { ...e }) : /* @__PURE__ */ _(f, { ...e });
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { y as ResponsiveDialog, x as ResponsiveDialogClose, S as ResponsiveDialogContent, E as ResponsiveDialogDescription, w as ResponsiveDialogFooter, C as ResponsiveDialogHeader, T as ResponsiveDialogTitle, b as ResponsiveDialogTrigger };
|