@devalok/shilp-sutra 0.17.2 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/framer.js +1376 -0
- package/dist/_chunks/link-context.js +19 -0
- package/dist/_chunks/motion-provider.js +24 -0
- package/dist/_chunks/primitives.js +3499 -3920
- package/dist/_chunks/tiptap.js +1 -1
- package/dist/_chunks/tree-view.js +183 -181
- package/dist/_chunks/use-calendar.js +531 -515
- package/dist/_chunks/vendor-client.js +1792 -1049
- package/dist/_chunks/vendor-utils.js +5123 -1169
- package/dist/composed/activity-feed.d.ts.map +1 -1
- package/dist/composed/activity-feed.js +75 -78
- package/dist/composed/avatar-group.js +33 -33
- package/dist/composed/command-palette.d.ts +1 -1
- package/dist/composed/command-palette.d.ts.map +1 -1
- package/dist/composed/command-palette.js +207 -158
- package/dist/composed/confirm-dialog.d.ts +3 -5
- package/dist/composed/confirm-dialog.d.ts.map +1 -1
- package/dist/composed/confirm-dialog.js +47 -42
- package/dist/composed/content-card.d.ts +1 -1
- package/dist/composed/content-card.js +30 -30
- package/dist/composed/date-picker/calendar-grid.d.ts +1 -1
- package/dist/composed/date-picker/calendar-grid.d.ts.map +1 -1
- package/dist/composed/date-picker/date-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts +1 -1
- package/dist/composed/date-picker/date-time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/month-picker.d.ts +1 -1
- package/dist/composed/date-picker/month-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/presets.d.ts +1 -1
- package/dist/composed/date-picker/presets.d.ts.map +1 -1
- package/dist/composed/date-picker/time-picker.d.ts +1 -1
- package/dist/composed/date-picker/time-picker.d.ts.map +1 -1
- package/dist/composed/date-picker/year-picker.d.ts +1 -1
- package/dist/composed/date-picker/year-picker.d.ts.map +1 -1
- package/dist/composed/empty-state.d.ts +1 -0
- package/dist/composed/empty-state.d.ts.map +1 -1
- package/dist/composed/empty-state.js +51 -47
- package/dist/composed/error-boundary.d.ts +1 -1
- package/dist/composed/error-boundary.d.ts.map +1 -1
- package/dist/composed/error-boundary.js +48 -48
- package/dist/composed/extensions/mention-suggestion.d.ts +1 -1
- package/dist/composed/extensions/mention-suggestion.d.ts.map +1 -1
- package/dist/composed/global-loading.d.ts +1 -1
- package/dist/composed/global-loading.d.ts.map +1 -1
- package/dist/composed/global-loading.js +22 -19
- package/dist/composed/index.d.ts +2 -4
- package/dist/composed/index.d.ts.map +1 -1
- package/dist/composed/index.js +26 -29
- package/dist/composed/lib/string-utils.d.ts +0 -1
- package/dist/composed/lib/string-utils.js +0 -1
- package/dist/composed/loading-skeleton.d.ts +1 -1
- package/dist/composed/loading-skeleton.d.ts.map +1 -1
- package/dist/composed/loading-skeleton.js +92 -87
- package/dist/composed/member-picker.d.ts +1 -1
- package/dist/composed/member-picker.d.ts.map +1 -1
- package/dist/composed/member-picker.js +47 -43
- package/dist/composed/page-header.js +36 -36
- package/dist/composed/page-skeletons.d.ts +9 -3
- package/dist/composed/page-skeletons.d.ts.map +1 -1
- package/dist/composed/page-skeletons.js +58 -58
- package/dist/composed/priority-indicator.js +24 -24
- package/dist/composed/rich-text-editor.d.ts +3 -3
- package/dist/composed/rich-text-editor.d.ts.map +1 -1
- package/dist/composed/rich-text-editor.js +317 -310
- package/dist/composed/schedule-view.js +84 -84
- package/dist/composed/simple-tooltip.d.ts +2 -5
- package/dist/composed/simple-tooltip.d.ts.map +1 -1
- package/dist/composed/simple-tooltip.js +19 -14
- package/dist/composed/status-badge.d.ts +2 -1
- package/dist/composed/status-badge.d.ts.map +1 -1
- package/dist/composed/status-badge.js +81 -68
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +3 -4
- package/dist/hooks/use-toast.d.ts +15 -45
- package/dist/hooks/use-toast.d.ts.map +1 -1
- package/dist/hooks/use-toast.js +2 -95
- package/dist/motion/index.d.ts +4 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +12 -0
- package/dist/motion/motion-provider.d.ts +18 -0
- package/dist/motion/motion-provider.d.ts.map +1 -0
- package/dist/motion/primitives-index.d.ts +3 -0
- package/dist/motion/primitives-index.d.ts.map +1 -0
- package/dist/motion/primitives-index.js +187 -0
- package/dist/motion/primitives.d.ts +38 -0
- package/dist/motion/primitives.d.ts.map +1 -0
- package/dist/shell/app-command-palette.d.ts +14 -5
- package/dist/shell/app-command-palette.d.ts.map +1 -1
- package/dist/shell/app-command-palette.js +152 -130
- package/dist/shell/bottom-navbar.d.ts.map +1 -1
- package/dist/shell/bottom-navbar.js +90 -92
- package/dist/shell/command-registry.d.ts +23 -0
- package/dist/shell/command-registry.d.ts.map +1 -0
- package/dist/shell/command-registry.js +18 -0
- package/dist/shell/index.d.ts +2 -1
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +14 -11
- package/dist/shell/link-context.d.ts +6 -10
- package/dist/shell/link-context.d.ts.map +1 -1
- package/dist/shell/link-context.js +3 -16
- package/dist/shell/notification-center.d.ts.map +1 -1
- package/dist/shell/notification-center.js +129 -124
- package/dist/shell/notification-preferences.d.ts +10 -5
- package/dist/shell/notification-preferences.d.ts.map +1 -1
- package/dist/shell/notification-preferences.js +169 -165
- package/dist/shell/sidebar.js +104 -104
- package/dist/shell/top-bar.js +67 -67
- package/dist/tailwind/index.cjs +118 -297
- package/dist/tailwind/preset.d.ts.map +1 -1
- package/dist/tailwind/preset.js +118 -297
- package/dist/tokens/generate-scale.d.ts +86 -0
- package/dist/tokens/generate-scale.d.ts.map +1 -0
- package/dist/tokens/primitives.css +415 -187
- package/dist/tokens/semantic.css +244 -270
- package/dist/tokens/typography.css +6 -6
- package/dist/ui/accordion.d.ts.map +1 -1
- package/dist/ui/accordion.js +34 -24
- package/dist/ui/alert-dialog.d.ts +4 -1
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert-dialog.js +115 -74
- package/dist/ui/alert.d.ts +6 -1
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +65 -50
- package/dist/ui/aspect-ratio.d.ts +2 -1
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/aspect-ratio.js +14 -4
- package/dist/ui/autocomplete.d.ts +11 -2
- package/dist/ui/autocomplete.d.ts.map +1 -1
- package/dist/ui/autocomplete.js +85 -60
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +46 -35
- package/dist/ui/badge.d.ts +1 -1
- package/dist/ui/badge.d.ts.map +1 -1
- package/dist/ui/badge.js +72 -67
- package/dist/ui/banner.d.ts.map +1 -1
- package/dist/ui/banner.js +54 -40
- package/dist/ui/breadcrumb.d.ts +2 -0
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/breadcrumb.js +19 -19
- package/dist/ui/button-group.js +4 -4
- package/dist/ui/button.d.ts +10 -1
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +102 -66
- package/dist/ui/card.d.ts +2 -2
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +61 -53
- package/dist/ui/charts/_internal/animation.d.ts +1 -1
- package/dist/ui/charts/_internal/animation.d.ts.map +1 -1
- package/dist/ui/charts/area-chart.d.ts +3 -5
- package/dist/ui/charts/area-chart.d.ts.map +1 -1
- package/dist/ui/charts/bar-chart.d.ts +3 -5
- package/dist/ui/charts/bar-chart.d.ts.map +1 -1
- package/dist/ui/charts/chart-container.d.ts +2 -5
- package/dist/ui/charts/chart-container.d.ts.map +1 -1
- package/dist/ui/charts/gauge-chart.d.ts +3 -5
- package/dist/ui/charts/gauge-chart.d.ts.map +1 -1
- package/dist/ui/charts/index.js +1204 -1095
- package/dist/ui/charts/line-chart.d.ts +3 -5
- package/dist/ui/charts/line-chart.d.ts.map +1 -1
- package/dist/ui/charts/pie-chart.d.ts +2 -5
- package/dist/ui/charts/pie-chart.d.ts.map +1 -1
- package/dist/ui/charts/radar-chart.d.ts +3 -5
- package/dist/ui/charts/radar-chart.d.ts.map +1 -1
- package/dist/ui/charts/sparkline.d.ts +5 -5
- package/dist/ui/charts/sparkline.d.ts.map +1 -1
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +31 -19
- package/dist/ui/chip.d.ts +3 -2
- package/dist/ui/chip.d.ts.map +1 -1
- package/dist/ui/chip.js +58 -50
- package/dist/ui/code.js +16 -16
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +23 -15
- package/dist/ui/color-input.d.ts +1 -1
- package/dist/ui/color-input.d.ts.map +1 -1
- package/dist/ui/color-input.js +27 -27
- package/dist/ui/combobox.d.ts +2 -0
- package/dist/ui/combobox.d.ts.map +1 -1
- package/dist/ui/combobox.js +177 -166
- package/dist/ui/container.js +4 -4
- package/dist/ui/context-menu.d.ts +4 -2
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +147 -87
- package/dist/ui/data-table-toolbar.d.ts +3 -2
- package/dist/ui/data-table-toolbar.d.ts.map +1 -1
- package/dist/ui/data-table-toolbar.js +65 -63
- package/dist/ui/data-table.d.ts.map +1 -1
- package/dist/ui/data-table.js +275 -240
- package/dist/ui/dialog.d.ts +3 -1
- package/dist/ui/dialog.d.ts.map +1 -1
- package/dist/ui/dialog.js +114 -74
- package/dist/ui/dropdown-menu.d.ts +5 -3
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +151 -90
- package/dist/ui/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload.js +170 -128
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +30 -27
- package/dist/ui/hover-card.d.ts +1 -1
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +53 -21
- package/dist/ui/icon-button.js +9 -9
- package/dist/ui/index.d.ts +18 -18
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +322 -533
- package/dist/ui/input-otp.d.ts +2 -0
- package/dist/ui/input-otp.d.ts.map +1 -1
- package/dist/ui/input-otp.js +8 -8
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +35 -33
- package/dist/ui/label.js +12 -12
- package/dist/ui/lib/date-utils.d.ts +5 -0
- package/dist/ui/lib/date-utils.d.ts.map +1 -0
- package/dist/ui/lib/date-utils.js +12 -0
- package/dist/ui/lib/index.d.ts +7 -0
- package/dist/ui/lib/index.d.ts.map +1 -0
- package/dist/ui/lib/link-context.d.ts +13 -0
- package/dist/ui/lib/link-context.d.ts.map +1 -0
- package/dist/ui/lib/motion.d.ts +44 -9
- package/dist/ui/lib/motion.d.ts.map +1 -1
- package/dist/ui/lib/motion.js +34 -0
- package/dist/ui/lib/use-ripple.d.ts.map +1 -1
- package/dist/ui/lib/utils.js +1 -1
- package/dist/ui/link.js +11 -11
- package/dist/ui/menubar.d.ts +4 -2
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +142 -98
- package/dist/ui/navigation-menu.d.ts +2 -0
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/navigation-menu.js +176 -73
- package/dist/ui/number-input.d.ts.map +1 -1
- package/dist/ui/number-input.js +58 -51
- package/dist/ui/pagination.js +23 -23
- package/dist/ui/popover.d.ts +2 -1
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +54 -22
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +58 -42
- package/dist/ui/radio.js +15 -15
- package/dist/ui/search-input.d.ts.map +1 -1
- package/dist/ui/search-input.js +28 -33
- package/dist/ui/segmented-control.d.ts +4 -2
- package/dist/ui/segmented-control.d.ts.map +1 -1
- package/dist/ui/segmented-control.js +146 -123
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +75 -64
- package/dist/ui/separator.js +12 -12
- package/dist/ui/sheet.d.ts +1 -1
- package/dist/ui/sheet.d.ts.map +1 -1
- package/dist/ui/sheet.js +111 -75
- package/dist/ui/sidebar.d.ts +6 -1
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/sidebar.js +574 -36
- package/dist/ui/skeleton.js +2 -2
- package/dist/ui/slider.d.ts +9 -0
- package/dist/ui/slider.d.ts.map +1 -1
- package/dist/ui/slider.js +33 -27
- package/dist/ui/spinner.d.ts +32 -25
- package/dist/ui/spinner.d.ts.map +1 -1
- package/dist/ui/spinner.js +199 -40
- package/dist/ui/stack.js +1 -1
- package/dist/ui/stat-card.d.ts.map +1 -1
- package/dist/ui/stat-card.js +181 -114
- package/dist/ui/stepper.d.ts +23 -4
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/stepper.js +126 -48
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/switch.js +39 -26
- package/dist/ui/table.d.ts +3 -0
- package/dist/ui/table.d.ts.map +1 -1
- package/dist/ui/table.js +29 -29
- package/dist/ui/tabs.d.ts +4 -1
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/tabs.js +94 -44
- package/dist/ui/text.d.ts +3 -3
- package/dist/ui/text.js +2 -2
- package/dist/ui/textarea.d.ts.map +1 -1
- package/dist/ui/textarea.js +27 -25
- package/dist/ui/toast-types.d.ts +43 -0
- package/dist/ui/toast-types.d.ts.map +1 -0
- package/dist/ui/toast-types.js +2 -0
- package/dist/ui/toast.d.ts +60 -26
- package/dist/ui/toast.d.ts.map +1 -1
- package/dist/ui/toast.js +535 -89
- package/dist/ui/toaster.d.ts +19 -23
- package/dist/ui/toaster.d.ts.map +1 -1
- package/dist/ui/toaster.js +31 -21
- package/dist/ui/toggle-group.d.ts +2 -2
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +29 -26
- package/dist/ui/toggle.d.ts +2 -2
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +21 -17
- package/dist/ui/tooltip.d.ts +2 -1
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +58 -21
- package/dist/ui/tree-view/tree-view.d.ts +1 -1
- package/dist/ui/tree-view/tree-view.d.ts.map +1 -1
- package/dist/ui/visually-hidden.js +3 -3
- package/llms-full.txt +3440 -1528
- package/llms.txt +67 -14
- package/package.json +50 -9
- package/dist/_chunks/avatar.js +0 -50
- package/dist/_chunks/button.js +0 -95
- package/dist/_chunks/checkbox.js +0 -14
- package/dist/_chunks/form.js +0 -27
- package/dist/_chunks/sidebar.js +0 -592
- package/dist/_chunks/spinner.js +0 -34
- package/dist/_chunks/switch.js +0 -10
- package/dist/_chunks/tooltip.js +0 -13
- package/dist/_chunks/utils.js +0 -17
- package/dist/composed/upload-progress.d.ts +0 -33
- package/dist/composed/upload-progress.d.ts.map +0 -1
- package/dist/composed/upload-progress.js +0 -386
- package/dist/ui/lib/use-reduced-motion.d.ts +0 -4
- package/dist/ui/lib/use-reduced-motion.d.ts.map +0 -1
- package/dist/ui/transitions.d.ts +0 -17
- package/dist/ui/transitions.d.ts.map +0 -1
- package/dist/ui/transitions.js +0 -111
|
@@ -1,198 +1,220 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as w from "react";
|
|
4
|
+
import { useCallback as g, useMemo as r } from "react";
|
|
5
|
+
import { IconFileText as D, IconLayoutDashboard as N, IconCalendarCheck as A, IconUmbrella as C, IconLayoutKanban as E, IconListCheck as h, IconBook as O, IconAdjustmentsHorizontal as U, IconUserCircle as B, IconShieldCheck as K, IconClipboardList as G, IconUserPlus as R, IconSettings as V, IconPackage as v, IconLink as x, IconVideo as J, IconMessage as Y, IconUsers as _ } from "@tabler/icons-react";
|
|
6
|
+
import { CommandPalette as z } from "../composed/command-palette.js";
|
|
7
|
+
import { cn as F } from "../ui/lib/utils.js";
|
|
8
|
+
import { useCommandRegistry as H } from "./command-registry.js";
|
|
9
|
+
const q = {
|
|
10
|
+
TASK: /* @__PURE__ */ a(h, {}),
|
|
11
|
+
PROJECT: /* @__PURE__ */ a(E, {}),
|
|
12
|
+
USER: /* @__PURE__ */ a(_, {}),
|
|
13
|
+
COMMENT: /* @__PURE__ */ a(Y, {}),
|
|
14
|
+
MEETING: /* @__PURE__ */ a(J, {}),
|
|
15
|
+
LINK: /* @__PURE__ */ a(x, {}),
|
|
16
|
+
DELIVERABLE: /* @__PURE__ */ a(v, {})
|
|
14
17
|
};
|
|
15
|
-
function
|
|
18
|
+
function Q(o) {
|
|
16
19
|
return [
|
|
17
20
|
{
|
|
18
21
|
id: "nav-dashboard",
|
|
19
22
|
label: "Dashboard",
|
|
20
|
-
icon: /* @__PURE__ */
|
|
21
|
-
onSelect: () =>
|
|
23
|
+
icon: /* @__PURE__ */ a(N, {}),
|
|
24
|
+
onSelect: () => o("/")
|
|
22
25
|
},
|
|
23
26
|
{
|
|
24
27
|
id: "nav-attendance",
|
|
25
28
|
label: "Attendance",
|
|
26
|
-
icon: /* @__PURE__ */
|
|
27
|
-
onSelect: () =>
|
|
29
|
+
icon: /* @__PURE__ */ a(A, {}),
|
|
30
|
+
onSelect: () => o("/attendance")
|
|
28
31
|
},
|
|
29
32
|
{
|
|
30
33
|
id: "nav-breaks",
|
|
31
34
|
label: "Breaks",
|
|
32
|
-
icon: /* @__PURE__ */
|
|
33
|
-
onSelect: () =>
|
|
35
|
+
icon: /* @__PURE__ */ a(C, {}),
|
|
36
|
+
onSelect: () => o("/breaks")
|
|
34
37
|
},
|
|
35
38
|
{
|
|
36
39
|
id: "nav-projects",
|
|
37
40
|
label: "Projects",
|
|
38
|
-
icon: /* @__PURE__ */
|
|
39
|
-
onSelect: () =>
|
|
41
|
+
icon: /* @__PURE__ */ a(E, {}),
|
|
42
|
+
onSelect: () => o("/projects")
|
|
40
43
|
},
|
|
41
44
|
{
|
|
42
45
|
id: "nav-my-tasks",
|
|
43
46
|
label: "My Tasks",
|
|
44
|
-
icon: /* @__PURE__ */
|
|
45
|
-
onSelect: () =>
|
|
47
|
+
icon: /* @__PURE__ */ a(h, {}),
|
|
48
|
+
onSelect: () => o("/my-tasks")
|
|
46
49
|
},
|
|
47
50
|
{
|
|
48
51
|
id: "nav-devsabha",
|
|
49
52
|
label: "Devsabha",
|
|
50
|
-
icon: /* @__PURE__ */
|
|
51
|
-
onSelect: () =>
|
|
53
|
+
icon: /* @__PURE__ */ a(O, {}),
|
|
54
|
+
onSelect: () => o("/devsabha")
|
|
52
55
|
},
|
|
53
56
|
{
|
|
54
57
|
id: "nav-adjustments",
|
|
55
58
|
label: "Adjustments",
|
|
56
|
-
icon: /* @__PURE__ */
|
|
57
|
-
onSelect: () =>
|
|
59
|
+
icon: /* @__PURE__ */ a(U, {}),
|
|
60
|
+
onSelect: () => o("/adjustments")
|
|
58
61
|
},
|
|
59
62
|
{
|
|
60
63
|
id: "nav-profile",
|
|
61
64
|
label: "Profile",
|
|
62
|
-
icon: /* @__PURE__ */
|
|
63
|
-
onSelect: () =>
|
|
65
|
+
icon: /* @__PURE__ */ a(B, {}),
|
|
66
|
+
onSelect: () => o("/profile")
|
|
64
67
|
}
|
|
65
68
|
];
|
|
66
69
|
}
|
|
67
|
-
function
|
|
70
|
+
function W(o) {
|
|
68
71
|
return [
|
|
69
72
|
{
|
|
70
73
|
id: "nav-admin-dashboard",
|
|
71
74
|
label: "Admin Dashboard",
|
|
72
|
-
icon: /* @__PURE__ */
|
|
73
|
-
onSelect: () =>
|
|
75
|
+
icon: /* @__PURE__ */ a(K, {}),
|
|
76
|
+
onSelect: () => o("/admin")
|
|
74
77
|
},
|
|
75
78
|
{
|
|
76
79
|
id: "nav-admin-breaks",
|
|
77
80
|
label: "Manage Breaks",
|
|
78
|
-
icon: /* @__PURE__ */
|
|
79
|
-
onSelect: () =>
|
|
81
|
+
icon: /* @__PURE__ */ a(C, {}),
|
|
82
|
+
onSelect: () => o("/admin/breaks")
|
|
80
83
|
},
|
|
81
84
|
{
|
|
82
85
|
id: "nav-admin-attendance",
|
|
83
86
|
label: "Manage Attendance",
|
|
84
|
-
icon: /* @__PURE__ */
|
|
85
|
-
onSelect: () =>
|
|
87
|
+
icon: /* @__PURE__ */ a(A, {}),
|
|
88
|
+
onSelect: () => o("/admin/attendance")
|
|
86
89
|
},
|
|
87
90
|
{
|
|
88
91
|
id: "nav-admin-lokwasi",
|
|
89
92
|
label: "Lokwasi",
|
|
90
|
-
icon: /* @__PURE__ */
|
|
91
|
-
onSelect: () =>
|
|
93
|
+
icon: /* @__PURE__ */ a(G, {}),
|
|
94
|
+
onSelect: () => o("/admin/lokwasi")
|
|
92
95
|
},
|
|
93
96
|
{
|
|
94
97
|
id: "nav-admin-onboarding",
|
|
95
98
|
label: "Onboarding",
|
|
96
|
-
icon: /* @__PURE__ */
|
|
97
|
-
onSelect: () =>
|
|
99
|
+
icon: /* @__PURE__ */ a(R, {}),
|
|
100
|
+
onSelect: () => o("/admin/onboarding")
|
|
98
101
|
},
|
|
99
102
|
{
|
|
100
103
|
id: "nav-admin-config",
|
|
101
104
|
label: "System Config",
|
|
102
|
-
icon: /* @__PURE__ */
|
|
103
|
-
onSelect: () =>
|
|
105
|
+
icon: /* @__PURE__ */ a(V, {}),
|
|
106
|
+
onSelect: () => o("/admin/system-config")
|
|
104
107
|
}
|
|
105
108
|
];
|
|
106
109
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
110
|
+
const X = w.forwardRef(
|
|
111
|
+
function({
|
|
112
|
+
user: c,
|
|
113
|
+
isAdmin: T,
|
|
114
|
+
extraGroups: I = [],
|
|
115
|
+
onNavigate: s,
|
|
116
|
+
onSearch: l,
|
|
117
|
+
searchResults: b = [],
|
|
118
|
+
isSearching: k = !1,
|
|
119
|
+
onSearchResultSelect: m,
|
|
120
|
+
className: S,
|
|
121
|
+
...P
|
|
122
|
+
}, L) {
|
|
123
|
+
const f = T ?? ((c == null ? void 0 : c.role) === "Admin" || (c == null ? void 0 : c.role) === "SuperAdmin"), d = H(), t = g(
|
|
124
|
+
(e) => {
|
|
125
|
+
s == null || s(e);
|
|
126
|
+
},
|
|
127
|
+
[s]
|
|
128
|
+
), j = r(
|
|
129
|
+
() => ({
|
|
130
|
+
label: "Pages",
|
|
131
|
+
items: d ? d.pages.map((e) => ({
|
|
132
|
+
id: e.id,
|
|
133
|
+
label: e.label,
|
|
134
|
+
icon: e.icon,
|
|
135
|
+
keywords: e.keywords,
|
|
136
|
+
onSelect: () => t(e.path)
|
|
137
|
+
})) : Q(t)
|
|
138
|
+
}),
|
|
139
|
+
[t, d]
|
|
140
|
+
), y = r(
|
|
141
|
+
() => ({
|
|
142
|
+
label: "Admin",
|
|
143
|
+
items: d ? d.adminPages.map((e) => ({
|
|
144
|
+
id: e.id,
|
|
145
|
+
label: e.label,
|
|
146
|
+
icon: e.icon,
|
|
147
|
+
keywords: e.keywords,
|
|
148
|
+
onSelect: () => t(e.path)
|
|
149
|
+
})) : W(t)
|
|
150
|
+
}),
|
|
151
|
+
[t, d]
|
|
152
|
+
), p = r(() => {
|
|
153
|
+
if (b.length === 0) return null;
|
|
154
|
+
const e = b.map((n) => {
|
|
155
|
+
var u;
|
|
156
|
+
let i = "/";
|
|
157
|
+
switch (n.entityType) {
|
|
158
|
+
case "TASK":
|
|
159
|
+
i = n.projectId ? `/projects/${n.projectId}?taskId=${n.id}` : "/";
|
|
160
|
+
break;
|
|
161
|
+
case "PROJECT":
|
|
162
|
+
i = `/projects/${n.id}`;
|
|
163
|
+
break;
|
|
164
|
+
case "USER":
|
|
165
|
+
i = "/teammates";
|
|
166
|
+
break;
|
|
167
|
+
case "COMMENT":
|
|
168
|
+
i = n.projectId && ((u = n.metadata) != null && u.taskId) ? `/projects/${n.projectId}?taskId=${n.metadata.taskId}` : "/";
|
|
169
|
+
break;
|
|
170
|
+
case "MEETING":
|
|
171
|
+
i = n.projectId ? `/projects/${n.projectId}?tab=meetings` : "/";
|
|
172
|
+
break;
|
|
173
|
+
case "LINK":
|
|
174
|
+
i = n.projectId ? `/projects/${n.projectId}?tab=karyakram` : "/";
|
|
175
|
+
break;
|
|
176
|
+
case "DELIVERABLE":
|
|
177
|
+
i = n.projectId ? `/projects/${n.projectId}?tab=deliverables` : "/";
|
|
178
|
+
break;
|
|
169
179
|
}
|
|
180
|
+
return {
|
|
181
|
+
id: `search-${n.entityType}-${n.id}`,
|
|
182
|
+
label: n.title,
|
|
183
|
+
description: n.snippet,
|
|
184
|
+
icon: q[n.entityType] ?? /* @__PURE__ */ a(D, {}),
|
|
185
|
+
onSelect: () => {
|
|
186
|
+
m == null || m(n), t(i);
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
});
|
|
190
|
+
return {
|
|
191
|
+
label: k ? "Searching..." : "Search Results",
|
|
192
|
+
items: e
|
|
170
193
|
};
|
|
171
|
-
})
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
_.displayName = "AppCommandPalette";
|
|
194
|
+
}, [b, k, t, m]), M = r(() => {
|
|
195
|
+
const e = [];
|
|
196
|
+
return p && e.push(p), e.push(j), f && e.push(y), e.push(...I), e;
|
|
197
|
+
}, [p, j, f, y, I]), $ = g(
|
|
198
|
+
(e) => {
|
|
199
|
+
l == null || l(e);
|
|
200
|
+
},
|
|
201
|
+
[l]
|
|
202
|
+
);
|
|
203
|
+
return /* @__PURE__ */ a(
|
|
204
|
+
z,
|
|
205
|
+
{
|
|
206
|
+
ref: L,
|
|
207
|
+
groups: M,
|
|
208
|
+
placeholder: "Search or jump to...",
|
|
209
|
+
onSearch: $,
|
|
210
|
+
emptyMessage: "No results found. Try a different search term.",
|
|
211
|
+
className: F(S),
|
|
212
|
+
...P
|
|
213
|
+
}
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
);
|
|
217
|
+
X.displayName = "AppCommandPalette";
|
|
196
218
|
export {
|
|
197
|
-
|
|
219
|
+
X as AppCommandPalette
|
|
198
220
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bottom-navbar.d.ts","sourceRoot":"","sources":["../../src/shell/bottom-navbar.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"bottom-navbar.d.ts","sourceRoot":"","sources":["../../src/shell/bottom-navbar.tsx"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAY9B,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,KAAK,CAAC,SAAS,CAAA;IACrB,uEAAuE;IACvE,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IACzC,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,kEAAkE;IAClE,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAA;IAC9B,6EAA6E;IAC7E,YAAY,CAAC,EAAE,aAAa,EAAE,CAAA;IAC9B,yDAAyD;IACzD,SAAS,CAAC,EAAE,aAAa,EAAE,CAAA;IAC3B,+CAA+C;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA2ED,QAAA,MAAM,YAAY,uFAqIjB,CAAA;AAGD,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,118 +1,115 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import * as
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
6
|
-
import { IconX as
|
|
7
|
-
import {
|
|
8
|
-
|
|
2
|
+
import { jsxs as t, Fragment as N, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import * as w from "react";
|
|
4
|
+
import { useState as y } from "react";
|
|
5
|
+
import { u } from "../_chunks/link-context.js";
|
|
6
|
+
import { IconX as k, IconDots as M } from "@tabler/icons-react";
|
|
7
|
+
import { cn as o } from "../ui/lib/utils.js";
|
|
8
|
+
import { springs as d } from "../ui/lib/motion.js";
|
|
9
|
+
import { m as f } from "../_chunks/framer.js";
|
|
10
|
+
function j({ count: a }) {
|
|
9
11
|
if (!a || a <= 0) return null;
|
|
10
|
-
const
|
|
11
|
-
return /* @__PURE__ */
|
|
12
|
+
const r = a > 99 ? "99+" : String(a), i = a >= 10;
|
|
13
|
+
return /* @__PURE__ */ s(
|
|
12
14
|
"span",
|
|
13
15
|
{
|
|
14
16
|
"aria-label": `${a} notifications`,
|
|
15
|
-
className:
|
|
16
|
-
"absolute -right-1 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error text-[10px] font-semibold leading-none text-
|
|
17
|
-
|
|
17
|
+
className: o(
|
|
18
|
+
"absolute -right-1 -top-0.5 flex h-4 min-w-4 items-center justify-center rounded-full bg-error-9 text-[10px] font-semibold leading-none text-accent-fg animate-in zoom-in-75",
|
|
19
|
+
i ? "px-0.5" : ""
|
|
18
20
|
),
|
|
19
|
-
children:
|
|
21
|
+
children: r
|
|
20
22
|
}
|
|
21
23
|
);
|
|
22
24
|
}
|
|
23
|
-
function
|
|
25
|
+
function C({
|
|
24
26
|
item: a,
|
|
25
|
-
isActive:
|
|
26
|
-
onClick:
|
|
27
|
+
isActive: r,
|
|
28
|
+
onClick: i
|
|
27
29
|
}) {
|
|
28
|
-
const n =
|
|
29
|
-
return /* @__PURE__ */
|
|
30
|
+
const n = u();
|
|
31
|
+
return /* @__PURE__ */ s(f.div, { whileTap: { y: -2 }, transition: d.snappy, className: "flex max-w-[70px] flex-1", children: /* @__PURE__ */ s(
|
|
30
32
|
n,
|
|
31
33
|
{
|
|
32
34
|
href: a.href,
|
|
33
|
-
onClick:
|
|
35
|
+
onClick: i,
|
|
34
36
|
"aria-label": a.title,
|
|
35
|
-
"aria-current":
|
|
36
|
-
className:
|
|
37
|
-
"flex h-16
|
|
38
|
-
|
|
37
|
+
"aria-current": r ? "page" : void 0,
|
|
38
|
+
className: o(
|
|
39
|
+
"flex h-16 w-full cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm",
|
|
40
|
+
r ? "font-semibold text-accent-11" : "text-surface-fg-subtle"
|
|
39
41
|
),
|
|
40
|
-
children: /* @__PURE__ */
|
|
41
|
-
/* @__PURE__ */
|
|
42
|
-
|
|
42
|
+
children: /* @__PURE__ */ t("div", { className: "relative flex w-full flex-col items-center gap-ds-02", children: [
|
|
43
|
+
r && /* @__PURE__ */ s(
|
|
44
|
+
f.div,
|
|
43
45
|
{
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
"aria-hidden": "true"
|
|
46
|
+
layoutId: "bottom-nav-indicator",
|
|
47
|
+
className: "absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-accent-9 p-0",
|
|
48
|
+
"aria-hidden": "true",
|
|
49
|
+
transition: d.snappy
|
|
49
50
|
}
|
|
50
51
|
),
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
a.badge != null && /* @__PURE__ */
|
|
52
|
+
/* @__PURE__ */ t("div", { className: "relative p-ds-03", children: [
|
|
53
|
+
/* @__PURE__ */ s("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md", "aria-hidden": "true", children: a.icon }),
|
|
54
|
+
a.badge != null && /* @__PURE__ */ s(j, { count: a.badge })
|
|
54
55
|
] }),
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ s("span", { className: "text-center", children: a.title })
|
|
56
57
|
] })
|
|
57
58
|
}
|
|
58
|
-
);
|
|
59
|
+
) });
|
|
59
60
|
}
|
|
60
|
-
const
|
|
61
|
+
const B = w.forwardRef(
|
|
61
62
|
({
|
|
62
63
|
currentPath: a = "/",
|
|
63
|
-
user:
|
|
64
|
-
primaryItems:
|
|
64
|
+
user: r,
|
|
65
|
+
primaryItems: i = [],
|
|
65
66
|
moreItems: n = [],
|
|
66
|
-
className:
|
|
67
|
+
className: h,
|
|
67
68
|
...x
|
|
68
69
|
}, b) => {
|
|
69
|
-
const
|
|
70
|
-
(e) =>
|
|
70
|
+
const g = u(), [l, c] = y(!1), m = (e, v = !1) => v || e === "/" ? a === e : a.startsWith(e), p = n.some(
|
|
71
|
+
(e) => m(e.href, e.exact)
|
|
71
72
|
);
|
|
72
|
-
return /* @__PURE__ */
|
|
73
|
-
|
|
73
|
+
return /* @__PURE__ */ t(N, { children: [
|
|
74
|
+
l && // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- backdrop overlay, dismiss via mouse only; keyboard users close via Escape
|
|
75
|
+
/* @__PURE__ */ t(
|
|
74
76
|
"div",
|
|
75
77
|
{
|
|
76
|
-
role: "button",
|
|
77
|
-
tabIndex: 0,
|
|
78
78
|
className: "fixed inset-0 z-overlay md:hidden",
|
|
79
|
-
onClick: () =>
|
|
80
|
-
onKeyDown: (e) => {
|
|
81
|
-
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), d(!1));
|
|
82
|
-
},
|
|
79
|
+
onClick: () => c(!1),
|
|
83
80
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ s("div", { className: "absolute inset-0 bg-overlay" }),
|
|
82
|
+
/* @__PURE__ */ t(
|
|
86
83
|
"div",
|
|
87
84
|
{
|
|
88
|
-
className: "absolute bottom-[72px] left-0 right-0 rounded-t-ds-2xl border-t border-border bg-
|
|
85
|
+
className: "absolute bottom-[72px] left-0 right-0 rounded-t-ds-2xl border-t border-surface-border-strong bg-surface-1 p-ds-05 pb-ds-03",
|
|
89
86
|
onClick: (e) => e.stopPropagation(),
|
|
90
87
|
onKeyDown: (e) => e.stopPropagation(),
|
|
91
88
|
children: [
|
|
92
|
-
/* @__PURE__ */
|
|
93
|
-
/* @__PURE__ */
|
|
94
|
-
/* @__PURE__ */
|
|
89
|
+
/* @__PURE__ */ t("div", { className: "mb-ds-04 flex items-center justify-between", children: [
|
|
90
|
+
/* @__PURE__ */ s("span", { className: "text-ds-md font-semibold text-surface-fg", children: "More" }),
|
|
91
|
+
/* @__PURE__ */ s(
|
|
95
92
|
"button",
|
|
96
93
|
{
|
|
97
|
-
onClick: () =>
|
|
94
|
+
onClick: () => c(!1),
|
|
98
95
|
"aria-label": "Close more menu",
|
|
99
|
-
className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-full hover:bg-
|
|
100
|
-
children: /* @__PURE__ */
|
|
96
|
+
className: "flex h-ds-sm w-ds-sm items-center justify-center rounded-ds-full hover:bg-surface-2",
|
|
97
|
+
children: /* @__PURE__ */ s(k, { className: "h-ico-sm w-ico-sm text-surface-fg-muted", "aria-hidden": "true" })
|
|
101
98
|
}
|
|
102
99
|
)
|
|
103
100
|
] }),
|
|
104
|
-
/* @__PURE__ */
|
|
105
|
-
|
|
101
|
+
/* @__PURE__ */ s("div", { className: "grid grid-cols-4 gap-ds-03", children: n.map((e) => /* @__PURE__ */ t(
|
|
102
|
+
g,
|
|
106
103
|
{
|
|
107
104
|
href: e.href,
|
|
108
|
-
onClick: () =>
|
|
109
|
-
className:
|
|
105
|
+
onClick: () => c(!1),
|
|
106
|
+
className: o(
|
|
110
107
|
"flex flex-col items-center gap-ds-02b rounded-ds-xl p-ds-04 text-ds-sm transition-colors",
|
|
111
|
-
|
|
108
|
+
m(e.href, e.exact) ? "bg-surface-2 text-accent-11" : "text-surface-fg-subtle hover:bg-surface-2"
|
|
112
109
|
),
|
|
113
110
|
children: [
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
/* @__PURE__ */
|
|
111
|
+
/* @__PURE__ */ s("span", { className: "[&>svg]:h-ico-md [&>svg]:w-ico-md", children: e.icon }),
|
|
112
|
+
/* @__PURE__ */ s("span", { className: "text-center", children: e.title })
|
|
116
113
|
]
|
|
117
114
|
},
|
|
118
115
|
e.href
|
|
@@ -123,49 +120,50 @@ const j = g.forwardRef(
|
|
|
123
120
|
]
|
|
124
121
|
}
|
|
125
122
|
),
|
|
126
|
-
/* @__PURE__ */
|
|
123
|
+
/* @__PURE__ */ t(
|
|
127
124
|
"nav",
|
|
128
125
|
{
|
|
129
126
|
...x,
|
|
130
127
|
ref: b,
|
|
131
128
|
"aria-label": "Mobile navigation",
|
|
132
|
-
className:
|
|
133
|
-
"fixed bottom-0 left-0 right-0 z-sticky flex w-full flex-row items-start justify-between border-t border-border bg-
|
|
134
|
-
|
|
129
|
+
className: o(
|
|
130
|
+
"fixed bottom-0 left-0 right-0 z-sticky flex w-full flex-row items-start justify-between border-t border-surface-border-strong bg-surface-1 px-ds-05 pb-ds-05b pt-0 md:hidden",
|
|
131
|
+
h
|
|
135
132
|
),
|
|
136
133
|
children: [
|
|
137
|
-
|
|
138
|
-
|
|
134
|
+
i.map((e) => /* @__PURE__ */ s(
|
|
135
|
+
C,
|
|
139
136
|
{
|
|
140
137
|
item: e,
|
|
141
|
-
isActive:
|
|
138
|
+
isActive: m(e.href, e.exact)
|
|
142
139
|
},
|
|
143
140
|
e.href
|
|
144
141
|
)),
|
|
145
|
-
n.length > 0 && /* @__PURE__ */
|
|
146
|
-
|
|
142
|
+
n.length > 0 && /* @__PURE__ */ s(
|
|
143
|
+
f.button,
|
|
147
144
|
{
|
|
148
145
|
type: "button",
|
|
149
|
-
onClick: () =>
|
|
146
|
+
onClick: () => c(!l),
|
|
150
147
|
"aria-label": "More navigation options",
|
|
151
|
-
"aria-expanded":
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
148
|
+
"aria-expanded": l,
|
|
149
|
+
whileTap: { y: -2 },
|
|
150
|
+
transition: d.snappy,
|
|
151
|
+
className: o(
|
|
152
|
+
"flex h-16 max-w-[70px] flex-1 cursor-pointer flex-col items-center gap-ds-02 p-ds-02 pt-0 text-ds-sm",
|
|
153
|
+
l || p ? "font-semibold text-accent-11" : "text-surface-fg-subtle"
|
|
155
154
|
),
|
|
156
|
-
children: /* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
158
|
-
|
|
155
|
+
children: /* @__PURE__ */ t("div", { className: "relative flex w-full flex-col items-center gap-ds-02", children: [
|
|
156
|
+
(l || p) && /* @__PURE__ */ s(
|
|
157
|
+
f.div,
|
|
159
158
|
{
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
"aria-hidden": "true"
|
|
159
|
+
layoutId: "bottom-nav-indicator",
|
|
160
|
+
className: "absolute top-0 h-[3px] w-full rounded-b-ds-sm bg-accent-9 p-0",
|
|
161
|
+
"aria-hidden": "true",
|
|
162
|
+
transition: d.snappy
|
|
165
163
|
}
|
|
166
164
|
),
|
|
167
|
-
/* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
165
|
+
/* @__PURE__ */ s("div", { className: "p-ds-03", children: /* @__PURE__ */ s(M, { className: "h-ico-md w-ico-md", "aria-hidden": "true" }) }),
|
|
166
|
+
/* @__PURE__ */ s("span", { className: "text-center", children: "More" })
|
|
169
167
|
] })
|
|
170
168
|
}
|
|
171
169
|
)
|
|
@@ -175,7 +173,7 @@ const j = g.forwardRef(
|
|
|
175
173
|
] });
|
|
176
174
|
}
|
|
177
175
|
);
|
|
178
|
-
|
|
176
|
+
B.displayName = "BottomNavbar";
|
|
179
177
|
export {
|
|
180
|
-
|
|
178
|
+
B as BottomNavbar
|
|
181
179
|
};
|