@lokalise/harmony 1.4.0-exp-sidebarComponent.5 → 1.4.0

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.
Files changed (40) hide show
  1. package/dist/harmony.cjs +1 -1
  2. package/dist/harmony.css +1 -1
  3. package/dist/harmony.mjs +362 -919
  4. package/dist/types/src/node.d.ts +9 -2
  5. package/package.json +4 -6
  6. package/dist/types/fixtures/sidebar/profileMenu.d.ts +0 -2
  7. package/dist/types/fixtures/sidebar/tasks.d.ts +0 -2
  8. package/dist/types/src/components/Sidebar/Sidebar.d.ts +0 -45
  9. package/dist/types/src/components/Sidebar/Sidebar.stories.d.ts +0 -7
  10. package/dist/types/src/components/Sidebar/UpgradeIcon/UpgradeIcon.d.ts +0 -5
  11. package/dist/types/src/components/Sidebar/Widgets/Avatar/Avatar.d.ts +0 -8
  12. package/dist/types/src/components/Sidebar/Widgets/IconLink/IconLink.d.ts +0 -8
  13. package/dist/types/src/components/Sidebar/Widgets/Menu/Menu.d.ts +0 -2
  14. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.d.ts +0 -8
  15. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContent.d.ts +0 -6
  16. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.d.ts +0 -3
  17. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuProvider.d.ts +0 -7
  18. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.d.ts +0 -7
  19. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.d.ts +0 -8
  20. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.d.ts +0 -6
  21. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.d.ts +0 -5
  22. package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/types.d.ts +0 -22
  23. package/dist/types/src/components/Sidebar/Widgets/Tasks/TaskLanguage/TaskLanguage.d.ts +0 -6
  24. package/dist/types/src/components/Sidebar/Widgets/Tasks/TaskLanguageCompleted/TaskLanguageCompleted.d.ts +0 -7
  25. package/dist/types/src/components/Sidebar/Widgets/Tasks/TaskOverview/TaskOverview.d.ts +0 -5
  26. package/dist/types/src/components/Sidebar/Widgets/Tasks/Tasks.d.ts +0 -3
  27. package/dist/types/src/components/Sidebar/Widgets/Tasks/TasksContext.d.ts +0 -2
  28. package/dist/types/src/components/Sidebar/Widgets/Tasks/TasksPopover/TasksPopover.d.ts +0 -1
  29. package/dist/types/src/components/Sidebar/Widgets/Tasks/TasksProvider.d.ts +0 -10
  30. package/dist/types/src/components/Sidebar/Widgets/Tasks/index.d.ts +0 -2
  31. package/dist/types/src/components/Sidebar/Widgets/Tasks/types.d.ts +0 -85
  32. package/dist/types/src/components/Sidebar/Widgets/Tasks/utils/content.d.ts +0 -16
  33. package/dist/types/src/components/Sidebar/Widgets/Tasks/utils/taskEvents.d.ts +0 -23
  34. package/dist/types/src/components/Sidebar/Widgets/index.d.ts +0 -5
  35. package/dist/types/src/components/Sidebar/types.d.ts +0 -14
  36. package/dist/types/src/components/Sidebar/utils/index.d.ts +0 -4
  37. package/dist/types/src/utils/hooks/useEffectOnce.d.ts +0 -5
  38. package/dist/types/src/utils/node.d.ts +0 -6
  39. package/dist/types/src/utils/typeUtils.d.ts +0 -3
  40. package/dist/types/vite.config.d.ts +0 -2
@@ -2,5 +2,12 @@
2
2
  * COMPONENTS EXPORTS
3
3
  */
4
4
  export { NavigationPanel } from './components/NavigationPanel/NavigationPanel';
5
- export { Sidebar } from './components/Sidebar/Sidebar';
6
- export * from './utils/node';
5
+ export { Breadcrumbs } from './components/NavigationPanel/components/Breadcrumbs/Breadcrumbs';
6
+ export { NavigationTabs } from './components/NavigationPanel/components/NavigationTabs/NavigationTabs';
7
+ /**
8
+ * UTILITIES EXPORTS
9
+ */
10
+ export { isPaidPlan, isProPlan, isEnterpriseOpenSourcePlan, isEnterprisePlan, isEssentialPlan, isStartPlan, isFreePlan, isTrialPlan, ENTERPRISE_PLAN_IDS, START_PLAN_IDS, ESSENTIAL_PLAN_IDS, PRO_PLAN_IDS, FREE_PLAN_ID, TRIAL_PLAN_ID, ENTERPRISE_OPENSOURCE_PLAN_ID, } from './utils/billing/plan/plan';
11
+ export { convertNewLineToBreakTag } from './utils/content/text/text';
12
+ export { makeUrlClickable } from './utils/content/url/url';
13
+ export { formatDate, formatDateTz } from './utils/i18n/date/date';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/harmony",
3
- "version": "1.4.0-exp-sidebarComponent.5",
3
+ "version": "1.4.0",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com/"
@@ -30,7 +30,7 @@
30
30
  "storybook:build": "storybook build"
31
31
  },
32
32
  "peerDependencies": {
33
- "@lokalise/louis": ">=26.1.1",
33
+ "@lokalise/louis": ">=26.0.0",
34
34
  "@lokalise/styled": ">=3.0.0",
35
35
  "@lokalise/token-dictionary": ">=2.42.1",
36
36
  "date-fns": ">=4.1",
@@ -41,7 +41,6 @@
41
41
  "devDependencies": {
42
42
  "@biomejs/biome": "^1.9.4",
43
43
  "@chromatic-com/storybook": "^3.2.4",
44
- "@faker-js/faker": "^9.5.0",
45
44
  "@lokalise/biome-config": "^1.6.1",
46
45
  "@semantic-release/changelog": "^6.0.3",
47
46
  "@semantic-release/commit-analyzer": "^13.0.1",
@@ -82,15 +81,14 @@
82
81
  "main": "dist/harmony.cjs",
83
82
  "module": "dist/harmony.mjs",
84
83
  "types": "dist/types/index.d.ts",
84
+ "sideEffects": false,
85
85
  "exports": {
86
86
  ".": {
87
87
  "types": "./dist/types/index.d.ts",
88
88
  "require": "./dist/harmony.cjs",
89
89
  "import": "./dist/harmony.mjs"
90
- },
91
- "./harmony.css": "./dist/harmony.css"
90
+ }
92
91
  },
93
- "sideEffects": ["*.css"],
94
92
  "dependencies": {
95
93
  "clsx": "^2.1.1",
96
94
  "react-resize-detector": "^11.0.1"
@@ -1,2 +0,0 @@
1
- import { SidebarTeam } from '../../src/components/Sidebar/types';
2
- export declare const createTeam: () => SidebarTeam;
@@ -1,2 +0,0 @@
1
- import { SidebarTask } from '../../src/components/Sidebar/Widgets/Tasks/types';
2
- export declare const createTask: () => SidebarTask;
@@ -1,45 +0,0 @@
1
- import { HTMLProps, PropsWithChildren, ReactNode } from 'react';
2
- type SidebarProps = HTMLProps<HTMLElement> & {
3
- children: ReactNode;
4
- };
5
- declare const Sidebar: {
6
- ({ children, ...navProps }: SidebarProps): import("react/jsx-runtime").JSX.Element;
7
- Top({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
8
- Bottom({ children }: PropsWithChildren): import("react/jsx-runtime").JSX.Element;
9
- Avatar: ({ src, href, ariaLabel, alt }: {
10
- src: string;
11
- href?: string;
12
- ariaLabel?: string;
13
- alt?: string;
14
- }) => import("react/jsx-runtime").JSX.Element;
15
- IconLink: ({ label, to, icon }: {
16
- to: string;
17
- label: string;
18
- icon: ReactNode;
19
- }) => import("react/jsx-runtime").JSX.Element;
20
- Menu: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
21
- Tasks: (props: {
22
- config: import('./Widgets/Tasks/types').SidebarTasksConfig;
23
- }) => import("react/jsx-runtime").JSX.Element;
24
- ProfileMenu: ({ config, children }: {
25
- config: import('./Widgets/ProfileMenu/types').SidebarProfileMenuConfig;
26
- children: import('./Widgets/ProfileMenu/ProfileMenuContent').ProfileMenuContentProps["children"];
27
- }) => import("react/jsx-runtime").JSX.Element;
28
- TeamSwitch: ({ onSwitchTeam }: {
29
- onSwitchTeam: (team: import('./types').SidebarTeam) => void;
30
- }) => import("react/jsx-runtime").JSX.Element | null;
31
- TeamMenuItem: ({ team, onClick, hidePlanLabel }: {
32
- team?: import('./types').SidebarTeam;
33
- onClick?: (team: import('./types').SidebarTeam) => void;
34
- hidePlanLabel?: boolean;
35
- }) => import("react/jsx-runtime").JSX.Element | null;
36
- UpgradeMenuItem: ({ upgradeOptionHref }: {
37
- upgradeOptionHref: string;
38
- }) => import("react/jsx-runtime").JSX.Element | null;
39
- ProfileSettingsMenuItem: ({ href, onClick, userEmail }: {
40
- href: string;
41
- userEmail: string;
42
- onClick?: () => void;
43
- }) => import("react/jsx-runtime").JSX.Element | null;
44
- };
45
- export { Sidebar };
@@ -1,7 +0,0 @@
1
- import { Meta, StoryObj } from '@storybook/react';
2
- import { Sidebar } from './Sidebar';
3
- declare const meta: Meta<typeof Sidebar>;
4
- export default meta;
5
- type Story = StoryObj<typeof Sidebar>;
6
- export declare const TopSectionOnly: Story;
7
- export declare const FullSidebar: Story;
@@ -1,5 +0,0 @@
1
- type UpgradeIconProps = {
2
- className?: string;
3
- };
4
- export declare const UpgradeIcon: ({ className }: UpgradeIconProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
@@ -1,8 +0,0 @@
1
- type AvatarProps = {
2
- src: string;
3
- href?: string;
4
- ariaLabel?: string;
5
- alt?: string;
6
- };
7
- export declare const Avatar: ({ src, href, ariaLabel, alt }: AvatarProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,8 +0,0 @@
1
- import { ReactNode } from 'react';
2
- type IconLinkProps = {
3
- to: string;
4
- label: string;
5
- icon: ReactNode;
6
- };
7
- export declare const IconLink: ({ label, to, icon }: IconLinkProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,2 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- export declare const Menu: ({ children }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import { SidebarProfileMenuConfig } from './types';
2
- import { ProfileMenuContentProps } from './ProfileMenuContent';
3
- type ProfileMenuProps = {
4
- config: SidebarProfileMenuConfig;
5
- children: ProfileMenuContentProps['children'];
6
- };
7
- export declare const ProfileMenu: ({ config, children }: ProfileMenuProps) => import("react/jsx-runtime").JSX.Element;
8
- export {};
@@ -1,6 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { SidebarProfileMenuRenderProps } from './types';
3
- export type ProfileMenuContentProps = {
4
- children: (props: SidebarProfileMenuRenderProps) => ReactNode;
5
- };
6
- export declare const ProfileMenuContent: ({ children }: ProfileMenuContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +0,0 @@
1
- import { SidebarProfileMenuContextProps } from './types';
2
- export declare const ProfileMenuContext: import('react').Context<SidebarProfileMenuContextProps>;
3
- export declare const useProfileMenu: () => SidebarProfileMenuContextProps;
@@ -1,7 +0,0 @@
1
- import { PropsWithChildren } from 'react';
2
- import { SidebarProfileMenuConfig } from './types';
3
- type ProfileMenuProviderProps = PropsWithChildren<{
4
- config: SidebarProfileMenuConfig;
5
- }>;
6
- export declare const ProfileMenuProvider: ({ children, config }: ProfileMenuProviderProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,7 +0,0 @@
1
- type ProfileSettingsMenuItemProps = {
2
- href: string;
3
- userEmail: string;
4
- onClick?: () => void;
5
- };
6
- export declare const ProfileSettingsMenuItem: ({ href, onClick, userEmail }: ProfileSettingsMenuItemProps) => import("react/jsx-runtime").JSX.Element | null;
7
- export {};
@@ -1,8 +0,0 @@
1
- import { SidebarTeam } from '../../../types';
2
- type TeamMenuItemProps = {
3
- team?: SidebarTeam;
4
- onClick?: (team: SidebarTeam) => void;
5
- hidePlanLabel?: boolean;
6
- };
7
- export declare const TeamMenuItem: ({ team, onClick, hidePlanLabel }: TeamMenuItemProps) => import("react/jsx-runtime").JSX.Element | null;
8
- export {};
@@ -1,6 +0,0 @@
1
- import { SidebarTeam } from '../../../types';
2
- type TeamSwitchProps = {
3
- onSwitchTeam: (team: SidebarTeam) => void;
4
- };
5
- export declare const TeamSwitch: ({ onSwitchTeam }: TeamSwitchProps) => import("react/jsx-runtime").JSX.Element | null;
6
- export {};
@@ -1,5 +0,0 @@
1
- type UpgradeMenuItemProps = {
2
- upgradeOptionHref: string;
3
- };
4
- export declare const UpgradeMenuItem: ({ upgradeOptionHref }: UpgradeMenuItemProps) => import("react/jsx-runtime").JSX.Element | null;
5
- export {};
@@ -1,22 +0,0 @@
1
- import { SidebarTeam } from '../../types';
2
- export type SidebarProfileMenuConfig = {
3
- teams: SidebarTeam[];
4
- currentTeamId: number;
5
- planId: number;
6
- isLimitedView: boolean;
7
- isTeamSuspended: boolean;
8
- canAccessTeamSettings: boolean;
9
- isEndOfTrialActive: boolean;
10
- trialDaysLeft: number;
11
- isProviderAlpha: boolean;
12
- };
13
- export type SidebarProfileMenuContextProps = SidebarProfileMenuConfig & {
14
- currentTeam?: SidebarTeam;
15
- otherTeams: SidebarTeam[];
16
- canChangeBilling: boolean;
17
- isOnFreeOrTrialPlan: boolean;
18
- showUpgradeCta: boolean;
19
- showBillingButton: boolean;
20
- allowTeamCreation: boolean;
21
- };
22
- export type SidebarProfileMenuRenderProps = Pick<SidebarProfileMenuContextProps, 'otherTeams' | 'allowTeamCreation' | 'isLimitedView' | 'canAccessTeamSettings' | 'isEndOfTrialActive' | 'isTeamSuspended' | 'showBillingButton' | 'isProviderAlpha'>;
@@ -1,6 +0,0 @@
1
- import { SidebarLanguage, SidebarTask } from '../types';
2
- export type TaskLanguageProps = {
3
- task: SidebarTask;
4
- language: SidebarLanguage;
5
- };
6
- export declare const TaskLanguage: ({ language, task }: TaskLanguageProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { SidebarLanguage, SidebarTask } from '../types';
2
- type TaskLanguageCompletedProps = {
3
- task: SidebarTask;
4
- language: SidebarLanguage;
5
- };
6
- export declare const TaskLanguageCompleted: ({ task, language }: TaskLanguageCompletedProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,5 +0,0 @@
1
- import { SidebarTask } from '../types';
2
- export type TaskProps = {
3
- task: SidebarTask;
4
- };
5
- export declare const TaskOverview: ({ task }: TaskProps) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,3 +0,0 @@
1
- export declare const Tasks: (props: {
2
- config: import('./types').SidebarTasksConfig;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export declare const TasksContext: import('react').Context<TasksContextProps>;
2
- export declare const useTasks: () => TasksContextProps;
@@ -1 +0,0 @@
1
- export declare const TasksPopover: () => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { SidebarTasksConfig } from './types';
3
- type TasksProviderProps = PropsWithChildren<{
4
- config: SidebarTasksConfig;
5
- }>;
6
- export declare const TasksProvider: ({ children, config }: TasksProviderProps) => import("react/jsx-runtime").JSX.Element;
7
- export declare const withTasksContext: <P extends {
8
- config: SidebarTasksConfig;
9
- }>(WrappedComponent: FC<Omit<P, "config">>) => (props: P) => import("react/jsx-runtime").JSX.Element;
10
- export {};
@@ -1,2 +0,0 @@
1
- export { Tasks } from './Tasks';
2
- export { dispatchTaskEvent, TaskEvents } from './utils/taskEvents';
@@ -1,85 +0,0 @@
1
- import { TypesFromMap } from '../../../../utils/node.ts/typeUtils';
2
- export declare const SidebarTaskStatuses: {
3
- readonly Completed: "completed";
4
- readonly InProgress: "in_progress";
5
- readonly Created: "created";
6
- readonly Queued: "queued";
7
- };
8
- export type SidebarTaskStatus = TypesFromMap<typeof SidebarTaskStatuses>;
9
- export declare const SidebarTaskLanguageStatuses: {
10
- readonly Completed: "completed";
11
- readonly InProgress: "in_progress";
12
- readonly Created: "created";
13
- readonly Queued: "queued";
14
- };
15
- export type SidebarTaskLanguageStatus = TypesFromMap<typeof SidebarTaskLanguageStatuses>;
16
- export declare const SidebarTaskTypeOptions: {
17
- readonly translation: "translation";
18
- readonly review: "review";
19
- readonly lqa_by_ai: "lqa_by_ai";
20
- readonly automatic_translation: "automatic_translation";
21
- };
22
- export type SidebarTaskTypeOption = TypesFromMap<typeof SidebarTaskTypeOptions>;
23
- export type SidebarTaskStyleGuide = {
24
- id: string;
25
- name: string;
26
- };
27
- export type SidebarTaskLanguage = {
28
- lang_id: string;
29
- name: string;
30
- progress?: number;
31
- status: SidebarTaskLanguageStatus;
32
- base_words_total: `${number}`;
33
- base_words_done: `${number}`;
34
- };
35
- export type SidebarTask = {
36
- id: string;
37
- title: string;
38
- status: SidebarTaskStatus;
39
- langs: SidebarTaskLanguage[];
40
- team_id: number;
41
- created_by_fullname: string;
42
- source_lang_name: string;
43
- task_type: SidebarTaskTypeOption;
44
- style_guides: SidebarTaskStyleGuide[];
45
- description?: string;
46
- project_name: string;
47
- master_branching_enabled: '0' | '1';
48
- branch_name: string | null;
49
- due_date: string | null;
50
- };
51
- export type SidebarDefaultFnArgs = {
52
- task: SidebarTask;
53
- language: SidebarTaskLanguage;
54
- };
55
- export type SidebarDefaultFn = (props: SidebarDefaultFnArgs) => void;
56
- export type SidebarTasksGetProjectUrlFnArgs = {
57
- task: SidebarTask;
58
- language?: SidebarTaskLanguage;
59
- view?: 'single' | 'multi';
60
- taskUncompleted?: boolean;
61
- };
62
- export type SidebarTasksGetProjectUrlFn = (props: SidebarTasksGetProjectUrlFnArgs) => string;
63
- export type SidebarTaskTitleOnClickFn = (props: Pick<SidebarDefaultFnArgs, 'task'>) => void;
64
- export type SidebarOnLanguageCompleteConfirmFnArgs = SidebarDefaultFnArgs & {
65
- closePrompt: () => void;
66
- };
67
- export type SidebarOnLanguageCompleteConfirmFn = (props: SidebarOnLanguageCompleteConfirmFnArgs) => Promise<void>;
68
- export type SidebarTasksConfig = {
69
- getTasksCount: () => Promise<number>;
70
- getTasks: () => Promise<SidebarTask[]>;
71
- getProjectUrl: SidebarTasksGetProjectUrlFn;
72
- onLanguageCompleteConfirm: SidebarOnLanguageCompleteConfirmFn;
73
- onTasksWidgetOpen?: ({ tasks }: {
74
- tasks: SidebarTask[];
75
- }) => void;
76
- taskTitleOnClick?: SidebarTaskTitleOnClickFn;
77
- langNameOnClick?: SidebarDefaultFn;
78
- langProgressOnClick?: SidebarDefaultFn;
79
- };
80
- export type SidebarTasksContextProps = Pick<SidebarTasksConfig, 'onTasksWidgetOpen' | 'getProjectUrl' | 'taskTitleOnClick' | 'langNameOnClick' | 'langProgressOnClick' | 'onLanguageCompleteConfirm'> & {
81
- fetchTasks: () => Promise<void>;
82
- tasks: SidebarTask[];
83
- tasksCount: number;
84
- loadingTasks: boolean;
85
- };
@@ -1,16 +0,0 @@
1
- import { SidebarLanguage, SidebarLanguageStatus, SidebarTask, SidebarTaskTypeOption } from '../types';
2
- export declare const getStatusText: (status: SidebarLanguageStatus, progressValue: number) => "Closed" | "Completed" | "In progress" | "Not started" | "Queued" | "-";
3
- export declare const resolveStatus: (language: SidebarLanguage) => SidebarLanguageStatus;
4
- export declare const statusSortOrder: string[];
5
- /**
6
- * TODO - these should be taken from louis
7
- */
8
- export declare const tagColor: Record<SidebarTaskTypeOption, string>;
9
- export declare const getTaskLanguages: (langs: SidebarTask["langs"]) => {
10
- status: SidebarLanguageStatus;
11
- lang_id: string;
12
- name: string;
13
- progress?: number;
14
- base_words_total: `${number}`;
15
- base_words_done: `${number}`;
16
- }[];
@@ -1,23 +0,0 @@
1
- export declare const TaskEvents: {
2
- readonly TaskCompleted: "task_completed";
3
- readonly TaskClosed: "task_closed";
4
- readonly Refresh: "refresh";
5
- readonly ShowDialog: "show_dialog";
6
- };
7
- export type TaskEvent = (typeof TaskEvents)[keyof typeof TaskEvents];
8
- type SingleTaskPayload = {
9
- taskId: string | number;
10
- };
11
- type DispatchTaskEventPayload = {
12
- name: typeof TaskEvents.TaskCompleted;
13
- detail: SingleTaskPayload;
14
- } | {
15
- name: typeof TaskEvents.TaskClosed;
16
- detail: SingleTaskPayload;
17
- } | {
18
- name: typeof TaskEvents.Refresh;
19
- } | {
20
- name: typeof TaskEvents.ShowDialog;
21
- };
22
- export declare const dispatchTaskEvent: (props: DispatchTaskEventPayload) => void;
23
- export {};
@@ -1,5 +0,0 @@
1
- export { Avatar } from './Avatar/Avatar';
2
- export { IconLink } from './IconLink/IconLink';
3
- export { Menu } from './Menu/Menu';
4
- export { Tasks } from './Tasks';
5
- export { ProfileMenu } from './ProfileMenu/ProfileMenu';
@@ -1,14 +0,0 @@
1
- import { TypesFromMap } from '../../utils/node.ts';
2
- export declare const SidebarTeamRoles: {
3
- readonly member: "member";
4
- readonly admin: "admin";
5
- readonly biller: "biller";
6
- readonly owner: "owner";
7
- };
8
- export type SidebarTeamRole = TypesFromMap<typeof SidebarTeamRoles>;
9
- export type SidebarTeam = {
10
- id: number;
11
- name: string;
12
- role: SidebarTeamRole;
13
- logoUrl: string;
14
- };
@@ -1,4 +0,0 @@
1
- export declare const splitFileName: (fileName: string) => {
2
- name: string;
3
- extension: string;
4
- };
@@ -1,5 +0,0 @@
1
- import { EffectCallback } from 'react';
2
- /**
3
- * React hook that runs an effect only once.
4
- */
5
- export declare const useEffectOnce: (effect: EffectCallback) => void;
@@ -1,6 +0,0 @@
1
- export { isPaidPlan, isProPlan, isEnterpriseOpenSourcePlan, isEnterprisePlan, isEssentialPlan, isStartPlan, isFreePlan, isTrialPlan, ENTERPRISE_PLAN_IDS, START_PLAN_IDS, ESSENTIAL_PLAN_IDS, PRO_PLAN_IDS, FREE_PLAN_ID, TRIAL_PLAN_ID, ENTERPRISE_OPENSOURCE_PLAN_ID, } from './billing/plan/plan';
2
- export { convertNewLineToBreakTag } from './content/text/text';
3
- export { makeUrlClickable } from './content/url/url';
4
- export { formatDate, formatDateTz } from './i18n/date/date';
5
- export { useEffectOnce } from './hooks/useEffectOnce';
6
- export type { TypesFromMap } from './typeUtils';
@@ -1,3 +0,0 @@
1
- export type TypesFromMap<T extends {
2
- [key: string]: string | number;
3
- }> = T[keyof T];
@@ -1,2 +0,0 @@
1
- declare const _default: import('vite').UserConfig;
2
- export default _default;