@flamingo-stack/openframe-frontend-core 0.0.201 → 0.0.202-snapshot.20260521221224
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/{chunk-OII2IERE.cjs → chunk-25LVV26X.cjs} +4 -4
- package/dist/chunk-25LVV26X.cjs.map +1 -0
- package/dist/{chunk-UCY537V4.cjs → chunk-3YH2M76N.cjs} +1565 -1146
- package/dist/chunk-3YH2M76N.cjs.map +1 -0
- package/dist/{chunk-55HF462A.js → chunk-CPXLQ57U.js} +6 -7
- package/dist/chunk-CPXLQ57U.js.map +1 -0
- package/dist/{chunk-CSW5GYBU.js → chunk-E6Q6UGDK.js} +4603 -4184
- package/dist/chunk-E6Q6UGDK.js.map +1 -0
- package/dist/{chunk-3B43AHYE.cjs → chunk-RMB5DVED.cjs} +6 -7
- package/dist/chunk-RMB5DVED.cjs.map +1 -0
- package/dist/{chunk-4ML3NA2L.js → chunk-XGL5FKIK.js} +4 -4
- package/dist/chunk-XGL5FKIK.js.map +1 -0
- package/dist/components/chat/approval-request-message.d.ts.map +1 -1
- package/dist/components/chat/chat-container.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/chat-message-list.d.ts.map +1 -1
- package/dist/components/chat/chat-ticket-item.d.ts.map +1 -1
- package/dist/components/chat/types/message.types.d.ts +34 -0
- package/dist/components/chat/types/message.types.d.ts.map +1 -1
- package/dist/components/features/index.cjs +16 -4
- package/dist/components/features/index.cjs.map +1 -1
- package/dist/components/features/index.d.ts +1 -0
- package/dist/components/features/index.d.ts.map +1 -1
- package/dist/components/features/index.js +17 -5
- package/dist/components/features/select-button.d.ts.map +1 -1
- package/dist/components/index.cjs +18 -4
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.js +17 -3
- package/dist/components/navigation/index.cjs +4 -4
- package/dist/components/navigation/index.js +3 -3
- package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
- package/dist/components/providers/theme-provider.d.ts +69 -0
- package/dist/components/providers/theme-provider.d.ts.map +1 -0
- package/dist/components/resizable.d.ts +1 -1
- package/dist/components/ui/button/split-button.d.ts.map +1 -1
- package/dist/components/ui/data-table/data-table-row.d.ts +16 -4
- package/dist/components/ui/data-table/data-table-row.d.ts.map +1 -1
- package/dist/components/ui/file-manager/index.cjs +52 -52
- package/dist/components/ui/file-manager/index.cjs.map +1 -1
- package/dist/components/ui/file-manager/index.js +3 -3
- package/dist/components/ui/file-manager/index.js.map +1 -1
- package/dist/components/ui/floating-tooltip.d.ts +3 -1
- package/dist/components/ui/floating-tooltip.d.ts.map +1 -1
- package/dist/components/ui/index.cjs +6 -4
- package/dist/components/ui/index.cjs.map +1 -1
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +5 -3
- package/dist/components/ui/input-trigger.d.ts.map +1 -1
- package/dist/components/ui/radio-group.d.ts.map +1 -1
- package/dist/components/ui/simple-markdown-renderer.d.ts.map +1 -1
- package/dist/components/ui/ticket-info-section.d.ts.map +1 -1
- package/dist/components/ui/ticket-note-card.d.ts.map +1 -1
- package/dist/components/ui/truncate-text.d.ts +33 -0
- package/dist/components/ui/truncate-text.d.ts.map +1 -0
- package/dist/components/user-summary-stub.d.ts.map +1 -1
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.js +1 -1
- package/dist/index.cjs +18 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +17 -3
- package/package.json +2 -1
- package/src/components/chat/approval-request-message.tsx +106 -92
- package/src/components/chat/chat-container.tsx +10 -6
- package/src/components/chat/chat-message-enhanced.tsx +51 -9
- package/src/components/chat/chat-message-list.tsx +27 -19
- package/src/components/chat/chat-ticket-item.tsx +2 -3
- package/src/components/chat/types/message.types.ts +35 -0
- package/src/components/features/board/ticket-card.tsx +2 -2
- package/src/components/features/filters-dropdown.tsx +1 -1
- package/src/components/features/index.ts +15 -0
- package/src/components/features/notifications/notification-tile.tsx +2 -2
- package/src/components/features/policy-configuration-panel.tsx +1 -1
- package/src/components/features/push-button-selector.tsx +1 -1
- package/src/components/features/select-button.tsx +2 -3
- package/src/components/features/video-bites-display.tsx +1 -1
- package/src/components/features/waitlist-form.tsx +1 -1
- package/src/components/filter-chip.tsx +1 -1
- package/src/components/layout/title-block.tsx +2 -2
- package/src/components/navigation/header-organization-filter.tsx +1 -1
- package/src/components/navigation/navigation-sidebar.tsx +107 -54
- package/src/components/platform/ScriptInfoSection.tsx +1 -1
- package/src/components/providers/theme-provider.tsx +130 -0
- package/src/components/shared/onboarding/onboarding-step-card.tsx +2 -2
- package/src/components/shared/product-release/product-release-card.tsx +6 -6
- package/src/components/shared/product-release/release-detail-page.tsx +1 -1
- package/src/components/ui/assignee-dropdown.tsx +3 -3
- package/src/components/ui/autocomplete.tsx +2 -2
- package/src/components/ui/button/split-button.tsx +3 -5
- package/src/components/ui/checkbox-block.tsx +1 -1
- package/src/components/ui/data-table/data-table-row.tsx +82 -48
- package/src/components/ui/device-card-compact.tsx +2 -2
- package/src/components/ui/device-card.tsx +2 -2
- package/src/components/ui/entity-image.tsx +1 -1
- package/src/components/ui/field-wrapper.tsx +1 -1
- package/src/components/ui/file-manager/file-manager-table-row.tsx +2 -2
- package/src/components/ui/file-upload.tsx +2 -2
- package/src/components/ui/filter-list.tsx +1 -1
- package/src/components/ui/floating-tooltip.tsx +9 -5
- package/src/components/ui/hidden-tags-popup.tsx +1 -1
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/info-card.tsx +2 -2
- package/src/components/ui/input-trigger.tsx +1 -2
- package/src/components/ui/organization-card.tsx +3 -3
- package/src/components/ui/radio-group.tsx +2 -3
- package/src/components/ui/search-input.tsx +2 -2
- package/src/components/ui/service-card.tsx +3 -3
- package/src/components/ui/simple-markdown-renderer.tsx +248 -2
- package/src/components/ui/tag.tsx +1 -1
- package/src/components/ui/tags-manager.tsx +2 -2
- package/src/components/ui/ticket-attachments-list.tsx +1 -1
- package/src/components/ui/ticket-info-section.tsx +2 -3
- package/src/components/ui/ticket-note-card.tsx +4 -1
- package/src/components/ui/toaster.tsx +3 -3
- package/src/components/ui/truncate-text.tsx +116 -0
- package/src/components/user-summary-stub.tsx +32 -26
- package/src/components/vendor-display-button.tsx +1 -1
- package/src/stories/SplitButton.stories.tsx +7 -1
- package/src/stories/Theme.stories.tsx +350 -0
- package/src/styles/README.md +271 -174
- package/src/styles/dark_theme.tokens.json +982 -0
- package/src/styles/light_theme.tokens.json +982 -0
- package/src/styles/ods-colors.css +225 -146
- package/src/styles/ods_color_tokens.json +1 -300
- package/dist/chunk-3B43AHYE.cjs.map +0 -1
- package/dist/chunk-4ML3NA2L.js.map +0 -1
- package/dist/chunk-55HF462A.js.map +0 -1
- package/dist/chunk-CSW5GYBU.js.map +0 -1
- package/dist/chunk-OII2IERE.cjs.map +0 -1
- package/dist/chunk-UCY537V4.cjs.map +0 -1
package/dist/components/index.js
CHANGED
|
@@ -115,6 +115,7 @@ import {
|
|
|
115
115
|
CursorPagination,
|
|
116
116
|
CursorPaginationSimple,
|
|
117
117
|
CveLink,
|
|
118
|
+
DEFAULT_THEME,
|
|
118
119
|
DashboardInfoCard,
|
|
119
120
|
DataTable,
|
|
120
121
|
DataTableBody,
|
|
@@ -406,6 +407,8 @@ import {
|
|
|
406
407
|
StatusIndicator,
|
|
407
408
|
StickySectionNav,
|
|
408
409
|
Switch,
|
|
410
|
+
THEME_ATTRIBUTE,
|
|
411
|
+
THEME_STORAGE_KEY,
|
|
409
412
|
TabContent,
|
|
410
413
|
TabNavigation,
|
|
411
414
|
TabSelector,
|
|
@@ -430,6 +433,7 @@ import {
|
|
|
430
433
|
TagsSelector,
|
|
431
434
|
TextSkeleton,
|
|
432
435
|
Textarea,
|
|
436
|
+
ThemeProvider,
|
|
433
437
|
ThinkingDisplay,
|
|
434
438
|
TicketAttachmentsList,
|
|
435
439
|
TicketCard,
|
|
@@ -454,6 +458,7 @@ import {
|
|
|
454
458
|
TranscribeAndSummarizeCombinedSection,
|
|
455
459
|
TranscribeSummarizeSection,
|
|
456
460
|
TranscriptSummaryEditor,
|
|
461
|
+
TruncateText,
|
|
457
462
|
TwoColumnLayoutSkeleton,
|
|
458
463
|
UnifiedPagination,
|
|
459
464
|
UnifiedSkeleton,
|
|
@@ -544,9 +549,11 @@ import {
|
|
|
544
549
|
usePaginationLoading,
|
|
545
550
|
useRealtimeChunkProcessor,
|
|
546
551
|
useSectionNavigation,
|
|
552
|
+
useTheme,
|
|
553
|
+
useThemeToggle,
|
|
547
554
|
useUnifiedFiltering,
|
|
548
555
|
vendorFilterConfig
|
|
549
|
-
} from "../chunk-
|
|
556
|
+
} from "../chunk-E6Q6UGDK.js";
|
|
550
557
|
import {
|
|
551
558
|
CommandApprovalToast,
|
|
552
559
|
ToastCard,
|
|
@@ -556,7 +563,7 @@ import {
|
|
|
556
563
|
showCommandApprovalToast,
|
|
557
564
|
showToast,
|
|
558
565
|
useOnboardingState
|
|
559
|
-
} from "../chunk-
|
|
566
|
+
} from "../chunk-XGL5FKIK.js";
|
|
560
567
|
import {
|
|
561
568
|
Button,
|
|
562
569
|
Checkbox,
|
|
@@ -587,7 +594,7 @@ import {
|
|
|
587
594
|
SkeletonText,
|
|
588
595
|
SplitButton,
|
|
589
596
|
buttonVariants
|
|
590
|
-
} from "../chunk-
|
|
597
|
+
} from "../chunk-CPXLQ57U.js";
|
|
591
598
|
import {
|
|
592
599
|
AboutIcon,
|
|
593
600
|
AiRobotIcon,
|
|
@@ -892,6 +899,7 @@ export {
|
|
|
892
899
|
CustomTimeIcon,
|
|
893
900
|
CutVendorCostsIcon,
|
|
894
901
|
CveLink,
|
|
902
|
+
DEFAULT_THEME,
|
|
895
903
|
DashboardIcon,
|
|
896
904
|
DashboardInfoCard,
|
|
897
905
|
DataTable,
|
|
@@ -1313,6 +1321,8 @@ export {
|
|
|
1313
1321
|
StickySectionNav,
|
|
1314
1322
|
SunIcon,
|
|
1315
1323
|
Switch,
|
|
1324
|
+
THEME_ATTRIBUTE,
|
|
1325
|
+
THEME_STORAGE_KEY,
|
|
1316
1326
|
TabContent,
|
|
1317
1327
|
TabNavigation,
|
|
1318
1328
|
TabSelector,
|
|
@@ -1339,6 +1349,7 @@ export {
|
|
|
1339
1349
|
TelegramIcon,
|
|
1340
1350
|
TextSkeleton,
|
|
1341
1351
|
Textarea,
|
|
1352
|
+
ThemeProvider,
|
|
1342
1353
|
ThinkingDisplay,
|
|
1343
1354
|
ThumbsDownIcon,
|
|
1344
1355
|
ThumbsUpIcon,
|
|
@@ -1368,6 +1379,7 @@ export {
|
|
|
1368
1379
|
TranscribeSummarizeSection,
|
|
1369
1380
|
TranscriptSummaryEditor,
|
|
1370
1381
|
TransparentTrustedIcon,
|
|
1382
|
+
TruncateText,
|
|
1371
1383
|
TrustpilotIcon,
|
|
1372
1384
|
TwoColumnLayoutSkeleton,
|
|
1373
1385
|
UnifiedPagination,
|
|
@@ -1476,6 +1488,8 @@ export {
|
|
|
1476
1488
|
usePaginationLoading,
|
|
1477
1489
|
useRealtimeChunkProcessor,
|
|
1478
1490
|
useSectionNavigation,
|
|
1491
|
+
useTheme,
|
|
1492
|
+
useThemeToggle,
|
|
1479
1493
|
useUnifiedFiltering,
|
|
1480
1494
|
vendorFilterConfig
|
|
1481
1495
|
};
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
19
|
-
require('../../chunk-
|
|
20
|
-
require('../../chunk-
|
|
18
|
+
var _chunk3YH2M76Ncjs = require('../../chunk-3YH2M76N.cjs');
|
|
19
|
+
require('../../chunk-25LVV26X.cjs');
|
|
20
|
+
require('../../chunk-RMB5DVED.cjs');
|
|
21
21
|
require('../../chunk-4CWSZPXH.cjs');
|
|
22
22
|
require('../../chunk-UC43NICZ.cjs');
|
|
23
23
|
require('../../chunk-VJTFBYVG.cjs');
|
|
@@ -39,5 +39,5 @@ require('../../chunk-VRHGVLSL.cjs');
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
exports.AppHeader =
|
|
42
|
+
exports.AppHeader = _chunk3YH2M76Ncjs.AppHeader; exports.AppLayout = _chunk3YH2M76Ncjs.AppLayout; exports.ClientOnlyHeader = _chunk3YH2M76Ncjs.ClientOnlyHeader; exports.Header = _chunk3YH2M76Ncjs.Header; exports.HeaderButton = _chunk3YH2M76Ncjs.HeaderButton; exports.HeaderGlobalSearch = _chunk3YH2M76Ncjs.HeaderGlobalSearch; exports.HeaderOrganizationFilter = _chunk3YH2M76Ncjs.HeaderOrganizationFilter; exports.HeaderSkeleton = _chunk3YH2M76Ncjs.HeaderSkeleton; exports.MobileBurgerMenu = _chunk3YH2M76Ncjs.MobileBurgerMenu; exports.MobileNavPanel = _chunk3YH2M76Ncjs.MobileNavPanel; exports.NavigationSidebar = _chunk3YH2M76Ncjs.NavigationSidebar; exports.SlidingSidebar = _chunk3YH2M76Ncjs.SlidingSidebar; exports.StickySectionNav = _chunk3YH2M76Ncjs.StickySectionNav; exports.useSectionNavigation = _chunk3YH2M76Ncjs.useSectionNavigation;
|
|
43
43
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
SlidingSidebar,
|
|
16
16
|
StickySectionNav,
|
|
17
17
|
useSectionNavigation
|
|
18
|
-
} from "../../chunk-
|
|
19
|
-
import "../../chunk-
|
|
20
|
-
import "../../chunk-
|
|
18
|
+
} from "../../chunk-E6Q6UGDK.js";
|
|
19
|
+
import "../../chunk-XGL5FKIK.js";
|
|
20
|
+
import "../../chunk-CPXLQ57U.js";
|
|
21
21
|
import "../../chunk-N57KWHDB.js";
|
|
22
22
|
import "../../chunk-SZPJ5R5B.js";
|
|
23
23
|
import "../../chunk-J2C2TI5Z.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/navigation-sidebar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAyB,MAAM,wBAAwB,CAAA;AAUvF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,uBAAuB,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAgB,EAAE,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"navigation-sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/navigation-sidebar.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,uBAAuB,EAAyB,MAAM,wBAAwB,CAAA;AAUvF,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,uBAAuB,CAAA;IAC/B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAgB,EAAE,EAAE,sBAAsB,2CAiKrF"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import type { ThemeProviderProps as NextThemesProviderProps } from "next-themes/dist/types";
|
|
2
|
+
/**
|
|
3
|
+
* ODS theme system — thin wrapper over `next-themes`.
|
|
4
|
+
*
|
|
5
|
+
* We deliberately do NOT hand-roll a provider/no-flash script: `next-themes`
|
|
6
|
+
* is already a dependency, is battle-tested in Next.js (App & Pages router),
|
|
7
|
+
* injects its own pre-paint anti-flash script, handles SSR + localStorage +
|
|
8
|
+
* cross-tab sync, and also works in plain React (Vite/Tauri).
|
|
9
|
+
*
|
|
10
|
+
* Product model (locked): a MANUAL light/dark switch, default DARK,
|
|
11
|
+
* persisted to localStorage. No "system" mode (`enableSystem={false}`).
|
|
12
|
+
*
|
|
13
|
+
* Drives styling by setting `data-theme="light|dark"` on <html>;
|
|
14
|
+
* `src/styles/ods-colors.css` swaps the `--ods-*` primitives accordingly.
|
|
15
|
+
*
|
|
16
|
+
* Public API exposed by this module:
|
|
17
|
+
* • `<ThemeProvider>` — preconfigured next-themes provider.
|
|
18
|
+
* • `useTheme()` — raw next-themes hook (advanced cases).
|
|
19
|
+
* • `useThemeToggle()`— headless convenience hook for building toggle UI
|
|
20
|
+
* in consumer apps (no styled component on purpose;
|
|
21
|
+
* apps own their button visuals via the lib's
|
|
22
|
+
* existing `<Button>`).
|
|
23
|
+
*/
|
|
24
|
+
export type Theme = "light" | "dark";
|
|
25
|
+
export declare const THEME_STORAGE_KEY = "ods-theme";
|
|
26
|
+
export declare const THEME_ATTRIBUTE = "data-theme";
|
|
27
|
+
export declare const DEFAULT_THEME: Theme;
|
|
28
|
+
export type ThemeProviderProps = Partial<NextThemesProviderProps>;
|
|
29
|
+
/**
|
|
30
|
+
* Pre-configured provider. Wrap the app once (Next.js: in the root layout;
|
|
31
|
+
* apps must keep `suppressHydrationWarning` on <html> — already the case).
|
|
32
|
+
* No `<ThemeScript>` needed — next-themes handles the no-flash script.
|
|
33
|
+
*
|
|
34
|
+
* All next-themes props are overridable, but the ODS defaults below encode
|
|
35
|
+
* the product decision.
|
|
36
|
+
*/
|
|
37
|
+
export declare function ThemeProvider({ children, ...overrides }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
/**
|
|
39
|
+
* Re-export of next-themes' `useTheme` (no custom logic on top).
|
|
40
|
+
* Returns `{ theme, setTheme, resolvedTheme, themes, ... }`.
|
|
41
|
+
*/
|
|
42
|
+
export declare const useTheme: () => import("next-themes/dist/types").UseThemeProps;
|
|
43
|
+
export interface UseThemeToggleResult {
|
|
44
|
+
/** Becomes `true` after the client has hydrated and resolved the stored
|
|
45
|
+
* preference. Until then, `theme`/`isDark`/`isLight` reflect the SSR
|
|
46
|
+
* default (`DEFAULT_THEME`) — handy for rendering a stable placeholder. */
|
|
47
|
+
mounted: boolean;
|
|
48
|
+
/** Resolved active theme (`"dark"` until mounted, then real value). */
|
|
49
|
+
theme: Theme;
|
|
50
|
+
isDark: boolean;
|
|
51
|
+
isLight: boolean;
|
|
52
|
+
/** Flip dark↔light and persist. */
|
|
53
|
+
toggle: () => void;
|
|
54
|
+
/** Set explicitly to `"light"` or `"dark"` and persist. */
|
|
55
|
+
setTheme: (theme: Theme) => void;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Headless toggle helper. Build any button you like:
|
|
59
|
+
*
|
|
60
|
+
* const { isDark, toggle, mounted } = useThemeToggle()
|
|
61
|
+
* <Button size="icon" variant="transparent" onClick={toggle} aria-label="…">
|
|
62
|
+
* {mounted && (isDark ? <Sun01Icon /> : <MoonIcon />)}
|
|
63
|
+
* </Button>
|
|
64
|
+
*
|
|
65
|
+
* The mount gate avoids hydration mismatch (next-themes only knows the
|
|
66
|
+
* persisted preference on the client after mount).
|
|
67
|
+
*/
|
|
68
|
+
export declare function useThemeToggle(): UseThemeToggleResult;
|
|
69
|
+
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../../src/components/providers/theme-provider.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAE5F;;;;;;;;;;;;;;;;;;;;;GAqBG;AAEH,MAAM,MAAM,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAErC,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,eAAe,eAAe,CAAC;AAC5C,eAAO,MAAM,aAAa,EAAE,KAAc,CAAC;AAE3C,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAElE;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,EAAE,kBAAkB,2CAc3E;AAED;;;GAGG;AACH,eAAO,MAAM,QAAQ,sDAAe,CAAC;AAMrC,MAAM,WAAW,oBAAoB;IACnC;;gFAE4E;IAC5E,OAAO,EAAE,OAAO,CAAC;IACjB,uEAAuE;IACvE,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,mCAAmC;IACnC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,2DAA2D;IAC3D,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CAClC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,IAAI,oBAAoB,CA6BrD"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
2
2
|
declare const ResizablePanelGroup: ({ className, ...props }: React.ComponentProps<typeof ResizablePrimitive.PanelGroup>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLLabelElement | HTMLParagraphElement | HTMLInputElement | HTMLSpanElement | HTMLButtonElement | HTMLAnchorElement | HTMLFormElement | HTMLObjectElement | HTMLSelectElement | HTMLStyleElement | HTMLLinkElement | HTMLMapElement |
|
|
3
|
+
declare const ResizablePanel: import("react").ForwardRefExoticComponent<Omit<import("react").HTMLAttributes<HTMLDivElement | HTMLElement | HTMLLabelElement | HTMLParagraphElement | HTMLInputElement | HTMLSpanElement | HTMLButtonElement | HTMLAnchorElement | HTMLFormElement | HTMLObjectElement | HTMLSelectElement | HTMLStyleElement | HTMLLinkElement | HTMLMapElement | HTMLTitleElement | HTMLSlotElement | HTMLTimeElement | HTMLDialogElement | HTMLImageElement | HTMLOptionElement | HTMLTableElement | HTMLHeadingElement | HTMLLIElement | HTMLOListElement | HTMLUListElement | HTMLAreaElement | HTMLAudioElement | HTMLBaseElement | HTMLQuoteElement | HTMLBodyElement | HTMLBRElement | HTMLCanvasElement | HTMLTableColElement | HTMLDataElement | HTMLDataListElement | HTMLModElement | HTMLDetailsElement | HTMLDListElement | HTMLEmbedElement | HTMLFieldSetElement | HTMLHeadElement | HTMLHRElement | HTMLHtmlElement | HTMLIFrameElement | HTMLLegendElement | HTMLMetaElement | HTMLMeterElement | HTMLOptGroupElement | HTMLOutputElement | HTMLPreElement | HTMLProgressElement | HTMLScriptElement | HTMLSourceElement | HTMLTemplateElement | HTMLTableSectionElement | HTMLTableCellElement | HTMLTextAreaElement | HTMLTableRowElement | HTMLTrackElement | HTMLVideoElement | HTMLTableCaptionElement | HTMLMenuElement | HTMLPictureElement>, "id" | "onResize"> & {
|
|
4
4
|
className?: string;
|
|
5
5
|
collapsedSize?: number | undefined;
|
|
6
6
|
collapsible?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/split-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAiBzB,QAAA,MAAM,iBAAiB;;;;
|
|
1
|
+
{"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/button/split-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAEjE,OAAO,KAAK,MAAM,OAAO,CAAA;AAiBzB,QAAA,MAAM,iBAAiB;;;;8EAsCrB,CAAA;AAEF,KAAK,kBAAkB,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA;AACxF,KAAK,eAAe,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;AAElF,UAAU,qBAAqB;IAC7B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,uFAAuF;IACvF,YAAY,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAA;IACxE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,CAAA;IACxE,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC3B,iFAAiF;IACjF,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,yFAAyF;IACzF,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;IACpC,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB,UAAU,EAAE,qBAAqB,CAAA;CAClC;AAkDD,QAAA,MAAM,WAAW,yFA4Df,CAAA;AAEF,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,CAAA"}
|
|
@@ -10,16 +10,28 @@ export interface DataTableRowProps<T> {
|
|
|
10
10
|
/**
|
|
11
11
|
* Click-bubbling protocol: any element inside a cell that should NOT trigger
|
|
12
12
|
* `onRowClick` / row navigation must carry the `data-no-row-click` attribute.
|
|
13
|
-
* The row checks `target.closest('[data-no-row-click]')`
|
|
14
|
-
* `onClick
|
|
15
|
-
*
|
|
13
|
+
* The row checks `target.closest('[data-no-row-click]')` and short-circuits:
|
|
14
|
+
* in `onClick` mode it skips the consumer's handler; in link mode (when
|
|
15
|
+
* `href` is set) it calls `e.preventDefault()` so `<Link>` does not navigate.
|
|
16
|
+
*
|
|
17
|
+
* Clicks originating from portaled descendants (e.g. `FloatingTooltip`,
|
|
18
|
+
* dropdown menus rendered through `FloatingPortal`) bubble through React's
|
|
19
|
+
* component tree and reach this handler, but their DOM target lives outside
|
|
20
|
+
* the row subtree. The handler ignores any click whose target is not
|
|
21
|
+
* physically contained within the row element — no `stopPropagation`
|
|
22
|
+
* required at the source.
|
|
23
|
+
*
|
|
24
|
+
* In link mode the row IS the `<Link>` — content lives inside it, not under
|
|
25
|
+
* an absolute overlay — so native browser link behaviour works: hover,
|
|
26
|
+
* right-click "Open in new tab", middle-click, `Cmd+click`, focus outlines,
|
|
27
|
+
* `:visited` styles, etc.
|
|
16
28
|
*
|
|
17
29
|
* Example column with action buttons:
|
|
18
30
|
* ```tsx
|
|
19
31
|
* {
|
|
20
32
|
* id: 'actions',
|
|
21
33
|
* cell: ({ row }) => (
|
|
22
|
-
* <div data-no-row-click className="flex gap-2 justify-end
|
|
34
|
+
* <div data-no-row-click className="flex gap-2 justify-end">
|
|
23
35
|
* <Button onClick={() => edit(row.original)}>Edit</Button>
|
|
24
36
|
* </div>
|
|
25
37
|
* ),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-row.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAK5D,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IACX,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED
|
|
1
|
+
{"version":3,"file":"data-table-row.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/data-table/data-table-row.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,GAAG,EAAE,MAAM,uBAAuB,CAAA;AAK5D,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAA;IACX,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,wBAAwB;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,iBAAS,gBAAgB,CAAC,CAAC,EAAE,EAC3B,GAAG,EACH,OAAO,EACP,IAAI,EACJ,OAAO,EACP,SAAS,GACV,EAAE,iBAAiB,CAAC,CAAC,CAAC,2CAiFtB;AAED,eAAO,MAAM,YAAY,EAA6B,OAAO,gBAAgB,CAAA"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkRMB5DVEDcjs = require('../../../chunk-RMB5DVED.cjs');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -55,7 +55,7 @@ function FileManagerBreadcrumb({
|
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
// src/components/ui/file-manager/file-manager-action-bar.tsx
|
|
58
|
-
|
|
58
|
+
_chunkRMB5DVEDcjs.init_button2.call(void 0, );
|
|
59
59
|
_chunkUC43NICZcjs.init_cn.call(void 0, );
|
|
60
60
|
|
|
61
61
|
|
|
@@ -72,7 +72,7 @@ function FileManagerActionBar({
|
|
|
72
72
|
}) {
|
|
73
73
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUC43NICZcjs.cn.call(void 0, "flex items-center gap-4 flex-wrap md:justify-end", className), children: [
|
|
74
74
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
75
|
-
|
|
75
|
+
_chunkRMB5DVEDcjs.Button,
|
|
76
76
|
{
|
|
77
77
|
variant: "outline",
|
|
78
78
|
size: "small-legacy",
|
|
@@ -82,7 +82,7 @@ function FileManagerActionBar({
|
|
|
82
82
|
}
|
|
83
83
|
),
|
|
84
84
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
85
|
-
|
|
85
|
+
_chunkRMB5DVEDcjs.Button,
|
|
86
86
|
{
|
|
87
87
|
variant: "outline",
|
|
88
88
|
size: "small-legacy",
|
|
@@ -93,7 +93,7 @@ function FileManagerActionBar({
|
|
|
93
93
|
}
|
|
94
94
|
),
|
|
95
95
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
96
|
-
|
|
96
|
+
_chunkRMB5DVEDcjs.Button,
|
|
97
97
|
{
|
|
98
98
|
variant: "outline",
|
|
99
99
|
size: "small-legacy",
|
|
@@ -104,7 +104,7 @@ function FileManagerActionBar({
|
|
|
104
104
|
}
|
|
105
105
|
),
|
|
106
106
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
107
|
-
|
|
107
|
+
_chunkRMB5DVEDcjs.Button,
|
|
108
108
|
{
|
|
109
109
|
variant: "outline",
|
|
110
110
|
size: "small-legacy",
|
|
@@ -115,7 +115,7 @@ function FileManagerActionBar({
|
|
|
115
115
|
}
|
|
116
116
|
),
|
|
117
117
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
118
|
-
|
|
118
|
+
_chunkRMB5DVEDcjs.Button,
|
|
119
119
|
{
|
|
120
120
|
variant: "outline",
|
|
121
121
|
size: "small-legacy",
|
|
@@ -125,7 +125,7 @@ function FileManagerActionBar({
|
|
|
125
125
|
}
|
|
126
126
|
),
|
|
127
127
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
128
|
-
|
|
128
|
+
_chunkRMB5DVEDcjs.Button,
|
|
129
129
|
{
|
|
130
130
|
variant: "outline",
|
|
131
131
|
size: "small-legacy",
|
|
@@ -144,7 +144,7 @@ _chunkUC43NICZcjs.init_cn.call(void 0, );
|
|
|
144
144
|
// src/components/ui/file-manager/file-manager-table-row.tsx
|
|
145
145
|
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
_chunkRMB5DVEDcjs.init_button2.call(void 0, );
|
|
148
148
|
_chunkUC43NICZcjs.init_cn.call(void 0, );
|
|
149
149
|
|
|
150
150
|
// src/components/ui/file-manager/file-icon.tsx
|
|
@@ -184,7 +184,7 @@ function FileIcon({ type, extension, className, size = "md" }) {
|
|
|
184
184
|
// src/components/ui/file-manager/file-manager-context-menu.tsx
|
|
185
185
|
|
|
186
186
|
|
|
187
|
-
|
|
187
|
+
_chunkRMB5DVEDcjs.init_button2.call(void 0, );
|
|
188
188
|
_chunkUC43NICZcjs.init_cn.call(void 0, );
|
|
189
189
|
|
|
190
190
|
function FileManagerContextMenu({
|
|
@@ -230,9 +230,9 @@ function FileManagerContextMenu({
|
|
|
230
230
|
}
|
|
231
231
|
];
|
|
232
232
|
const visibleItems = menuItems.filter((item) => item.show);
|
|
233
|
-
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
234
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
235
|
-
|
|
233
|
+
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkRMB5DVEDcjs.DropdownMenu, { open, onOpenChange, children: [
|
|
234
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.DropdownMenuTrigger, { asChild: true, children: trigger || /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
235
|
+
_chunkRMB5DVEDcjs.Button,
|
|
236
236
|
{
|
|
237
237
|
variant: "transparent",
|
|
238
238
|
size: "small-legacy",
|
|
@@ -241,15 +241,15 @@ function FileManagerContextMenu({
|
|
|
241
241
|
}
|
|
242
242
|
) }),
|
|
243
243
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
244
|
-
|
|
244
|
+
_chunkRMB5DVEDcjs.DropdownMenuContent,
|
|
245
245
|
{
|
|
246
246
|
align: "end",
|
|
247
247
|
className: _chunkUC43NICZcjs.cn.call(void 0, "w-56", className),
|
|
248
248
|
onClick: (e) => e.stopPropagation(),
|
|
249
249
|
children: visibleItems.map((item, index) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react2.default.Fragment, { children: [
|
|
250
|
-
item.separator && index > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
250
|
+
item.separator && index > 0 && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.DropdownMenuSeparator, {}),
|
|
251
251
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
252
|
-
|
|
252
|
+
_chunkRMB5DVEDcjs.DropdownMenuItem,
|
|
253
253
|
{
|
|
254
254
|
onClick: (e) => {
|
|
255
255
|
e.stopPropagation();
|
|
@@ -314,7 +314,7 @@ function FileManagerTableRow({
|
|
|
314
314
|
},
|
|
315
315
|
children: [
|
|
316
316
|
showCheckbox && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", "data-no-row-click": true, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
317
|
-
|
|
317
|
+
_chunkRMB5DVEDcjs.Checkbox,
|
|
318
318
|
{
|
|
319
319
|
checked: isSelected,
|
|
320
320
|
onCheckedChange: handleCheckboxChange,
|
|
@@ -331,8 +331,8 @@ function FileManagerTableRow({
|
|
|
331
331
|
}
|
|
332
332
|
),
|
|
333
333
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col min-w-0", children: [
|
|
334
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-sm text-ods-text-primary truncate", children: file.name }),
|
|
335
|
-
showPath && file.path && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs text-ods-text-secondary truncate", children: file.path })
|
|
334
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-sm text-ods-text-primary truncate", title: file.name, children: file.name }),
|
|
335
|
+
showPath && file.path && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "span", { className: "text-xs text-ods-text-secondary truncate", title: file.path, children: file.path })
|
|
336
336
|
] })
|
|
337
337
|
] }),
|
|
338
338
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-24 shrink-0 pr-4 text-sm text-ods-text-secondary", children: file.size || "" }),
|
|
@@ -346,7 +346,7 @@ function FileManagerTableRow({
|
|
|
346
346
|
onAction: handleContextAction,
|
|
347
347
|
fileType: file.type,
|
|
348
348
|
trigger: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
349
|
-
|
|
349
|
+
_chunkRMB5DVEDcjs.Button,
|
|
350
350
|
{
|
|
351
351
|
variant: "transparent",
|
|
352
352
|
size: "small-legacy",
|
|
@@ -360,7 +360,7 @@ function FileManagerTableRow({
|
|
|
360
360
|
}
|
|
361
361
|
),
|
|
362
362
|
file.type === "folder" ? /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
363
|
-
|
|
363
|
+
_chunkRMB5DVEDcjs.Button,
|
|
364
364
|
{
|
|
365
365
|
variant: "transparent",
|
|
366
366
|
size: "small-legacy",
|
|
@@ -379,7 +379,7 @@ function FileManagerTableRow({
|
|
|
379
379
|
}
|
|
380
380
|
|
|
381
381
|
// src/components/ui/file-manager/file-manager-empty.tsx
|
|
382
|
-
|
|
382
|
+
_chunkRMB5DVEDcjs.init_button2.call(void 0, );
|
|
383
383
|
_chunkUC43NICZcjs.init_cn.call(void 0, );
|
|
384
384
|
|
|
385
385
|
|
|
@@ -397,7 +397,7 @@ function FileManagerEmpty({
|
|
|
397
397
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "h3", { className: "text-lg font-medium text-ods-text-primary mb-2", children: message }),
|
|
398
398
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "p", { className: "text-sm text-ods-text-secondary text-center max-w-md mb-6", children: description }),
|
|
399
399
|
action && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
400
|
-
|
|
400
|
+
_chunkRMB5DVEDcjs.Button,
|
|
401
401
|
{
|
|
402
402
|
variant: "accent",
|
|
403
403
|
size: "small-legacy",
|
|
@@ -466,26 +466,26 @@ function FileManagerTable({
|
|
|
466
466
|
const skeletonRows = 8;
|
|
467
467
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: _chunkUC43NICZcjs.cn.call(void 0, "bg-ods-bg border border-ods-border rounded-lg flex flex-col", className), children: [
|
|
468
468
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center h-12 px-4 bg-ods-bg-secondary border-b border-ods-border rounded-t-lg", children: [
|
|
469
|
-
showCheckboxes && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
469
|
+
showCheckboxes && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-5 w-5 rounded" }) }),
|
|
470
470
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-3 flex-1 min-w-0 text-sm font-medium text-ods-text-secondary", children: "NAME" }),
|
|
471
471
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-24 shrink-0 pr-4 text-sm font-medium text-ods-text-secondary", children: "SIZE" }),
|
|
472
472
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-36 shrink-0 pl-4 text-sm font-medium text-ods-text-secondary", children: "EDITED" }),
|
|
473
473
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-48 shrink-0 pl-4 flex justify-end" })
|
|
474
474
|
] }),
|
|
475
475
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "divide-y divide-ods-border rounded-b-lg flex-1 overflow-auto", children: Array.from({ length: skeletonRows }).map((_, idx) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-card group flex items-center h-16 px-4 border-ods-border", children: [
|
|
476
|
-
showCheckboxes && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
476
|
+
showCheckboxes && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-5 w-5 rounded" }) }),
|
|
477
477
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
|
|
478
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
478
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-6 w-6 rounded" }),
|
|
479
479
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-col min-w-0", children: [
|
|
480
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
481
|
-
isSearchResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
480
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-32" }),
|
|
481
|
+
isSearchResult && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-3 w-48 mt-1" })
|
|
482
482
|
] })
|
|
483
483
|
] }),
|
|
484
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
485
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
484
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-16" }) }),
|
|
485
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-24" }) }),
|
|
486
486
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-48 shrink-0 pl-4 flex items-center justify-end gap-1", children: [
|
|
487
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
488
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
487
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-8 w-8 rounded" }),
|
|
488
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-8 w-8 rounded" })
|
|
489
489
|
] })
|
|
490
490
|
] }, idx)) })
|
|
491
491
|
] });
|
|
@@ -502,7 +502,7 @@ function FileManagerTable({
|
|
|
502
502
|
children: [
|
|
503
503
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center h-12 px-4 bg-ods-bg-secondary border-b border-ods-border rounded-t-lg", children: [
|
|
504
504
|
showCheckboxes && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
505
|
-
|
|
505
|
+
_chunkRMB5DVEDcjs.Checkbox,
|
|
506
506
|
{
|
|
507
507
|
checked: allSelected || someSelected,
|
|
508
508
|
onCheckedChange: handleSelectAll,
|
|
@@ -666,7 +666,7 @@ function FileManager({
|
|
|
666
666
|
)
|
|
667
667
|
] }),
|
|
668
668
|
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
669
|
-
|
|
669
|
+
_chunkRMB5DVEDcjs.Input,
|
|
670
670
|
{
|
|
671
671
|
value: searchQuery,
|
|
672
672
|
onChange: (e) => _optionalChain([onSearch, 'optionalCall', _27 => _27(e.target.value)]),
|
|
@@ -706,39 +706,39 @@ function FileManagerSkeleton({
|
|
|
706
706
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col h-full bg-ods-bg", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 flex flex-col py-6 space-y-6 min-h-0", children: [
|
|
707
707
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex flex-wrap items-start justify-between gap-4", children: [
|
|
708
708
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-1 min-w-0 flex items-center gap-2", children: [
|
|
709
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
710
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
711
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
712
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
713
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
709
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-5 w-12" }),
|
|
710
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-4 rounded-full" }),
|
|
711
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-5 w-20" }),
|
|
712
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-4 rounded-full" }),
|
|
713
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-5 w-24" })
|
|
714
714
|
] }),
|
|
715
715
|
showActions && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex-shrink-0 flex items-center gap-2", children: [
|
|
716
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
717
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
718
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
719
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
716
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-9 w-24" }),
|
|
717
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-9 w-20" }),
|
|
718
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-9 w-20" }),
|
|
719
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-9 w-28" })
|
|
720
720
|
] })
|
|
721
721
|
] }),
|
|
722
|
-
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
722
|
+
showSearch && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-10 w-full rounded-lg" }),
|
|
723
723
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-bg border border-ods-border rounded-lg flex flex-col", children: [
|
|
724
724
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center h-12 px-4 bg-ods-bg-secondary border-b border-ods-border rounded-t-lg", children: [
|
|
725
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
725
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-5 w-5 rounded" }) }),
|
|
726
726
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex items-center gap-3 flex-1 min-w-0 text-sm font-medium text-ods-text-secondary", children: "NAME" }),
|
|
727
727
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-24 shrink-0 pr-4 text-sm font-medium text-ods-text-secondary", children: "SIZE" }),
|
|
728
728
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-36 shrink-0 pl-4 text-sm font-medium text-ods-text-secondary", children: "EDITED" }),
|
|
729
729
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-48 shrink-0 pl-4 flex justify-end" })
|
|
730
730
|
] }),
|
|
731
731
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "divide-y divide-ods-border rounded-b-lg flex-1 overflow-auto min-h-0", children: rowPlaceholders.map((_, idx) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "bg-ods-card flex items-center h-16 px-4 border-ods-border", children: [
|
|
732
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
732
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "mr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-5 w-5 rounded" }) }),
|
|
733
733
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "flex items-center gap-3 flex-1 min-w-0", children: [
|
|
734
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
735
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
734
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-6 w-6 rounded" }),
|
|
735
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "flex flex-col min-w-0", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-32" }) })
|
|
736
736
|
] }),
|
|
737
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
738
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
737
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-24 shrink-0 pr-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-16" }) }),
|
|
738
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { className: "w-36 shrink-0 pl-4", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-4 w-24" }) }),
|
|
739
739
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { className: "w-48 shrink-0 pl-4 flex items-center justify-end gap-1", children: [
|
|
740
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
741
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
740
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-8 w-8 rounded" }),
|
|
741
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkRMB5DVEDcjs.Skeleton, { className: "h-8 w-8 rounded" })
|
|
742
742
|
] })
|
|
743
743
|
] }, idx)) })
|
|
744
744
|
] }) })
|