@activecollab/components 2.0.461 → 2.0.463

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 (31) hide show
  1. package/dist/cjs/presentation/shared/SourceCodeSection.js +70 -50
  2. package/dist/cjs/presentation/shared/SourceCodeSection.js.map +1 -1
  3. package/dist/cjs/presentation/shared/index.js +36 -0
  4. package/dist/cjs/presentation/shared/index.js.map +1 -1
  5. package/dist/cjs/presentation/shared/settings.js +73 -18
  6. package/dist/cjs/presentation/shared/settings.js.map +1 -1
  7. package/dist/cjs/presentation/shared/systemSettingsDialog.js +150 -0
  8. package/dist/cjs/presentation/shared/systemSettingsDialog.js.map +1 -0
  9. package/dist/cjs/presentation/shared/tokens.js +13 -1
  10. package/dist/cjs/presentation/shared/tokens.js.map +1 -1
  11. package/dist/esm/presentation/shared/SourceCodeSection.d.ts +20 -5
  12. package/dist/esm/presentation/shared/SourceCodeSection.d.ts.map +1 -1
  13. package/dist/esm/presentation/shared/SourceCodeSection.js +72 -52
  14. package/dist/esm/presentation/shared/SourceCodeSection.js.map +1 -1
  15. package/dist/esm/presentation/shared/index.d.ts +4 -2
  16. package/dist/esm/presentation/shared/index.d.ts.map +1 -1
  17. package/dist/esm/presentation/shared/index.js +2 -1
  18. package/dist/esm/presentation/shared/index.js.map +1 -1
  19. package/dist/esm/presentation/shared/settings.d.ts +20 -6
  20. package/dist/esm/presentation/shared/settings.d.ts.map +1 -1
  21. package/dist/esm/presentation/shared/settings.js +73 -18
  22. package/dist/esm/presentation/shared/settings.js.map +1 -1
  23. package/dist/esm/presentation/shared/systemSettingsDialog.d.ts +40 -0
  24. package/dist/esm/presentation/shared/systemSettingsDialog.d.ts.map +1 -0
  25. package/dist/esm/presentation/shared/systemSettingsDialog.js +137 -0
  26. package/dist/esm/presentation/shared/systemSettingsDialog.js.map +1 -0
  27. package/dist/esm/presentation/shared/tokens.d.ts +11 -0
  28. package/dist/esm/presentation/shared/tokens.d.ts.map +1 -1
  29. package/dist/esm/presentation/shared/tokens.js +12 -0
  30. package/dist/esm/presentation/shared/tokens.js.map +1 -1
  31. package/package.json +1 -1
@@ -27,7 +27,8 @@ export { UserMenu } from "./UserMenu";
27
27
  export { UserDetailsDialog, USER_DETAILS_AVATAR_SIZE } from "./UserDetailsDialog";
28
28
  export { TwoFactorShield } from "./TwoFactorShield";
29
29
  export { BackupCodesDialogs, CreateLoginCodeDialogs } from "./TwoFactorDialogs";
30
- export { SettingsHeader, SettingsContent, StyledSettingRow, RowText, SettingRow } from "./settings";
30
+ export { SettingsHeader, SettingsContent, SettingGroup, StyledSettingRow, RowText, SettingRow, SettingCount, SettingValue } from "./settings";
31
+ export { SystemSettingsDialog, SYSTEM_SETTINGS_GROUPS } from "./systemSettingsDialog";
31
32
  export { FeatureAvailability, DEFAULT_FEATURE_AVAILABILITY } from "./FeatureAvailability";
32
33
  export { PORTFOLIO_TYPES, VISIBILITY_OPTIONS, DEFAULT_PORTFOLIO_FORM_VALUES, LEADERS_LIST, CATEGORIES, CLIENTS, contextFieldLabel, leaderShortName, defaultPortfolioName, isPortfolioDetailsValid, sampleProjectOptionIds, PortfolioDetailsFields, EditPortfolioDialog, ProjectsPicker, PICKER_PROJECTS } from "./portfolioDetails";
33
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["MainLogo","RoundAvatar","PresentationShell","StyledPagePaper","PageHeader","ProjectPageHeader","TabHeader","ProjectOptionsMenu","PortfolioOptionsMenu","WidgetGrid","WidgetGroupBy","StatWidget","WidgetRankedList","OverviewWidget","AreaChartWidget","DailyDeltaChartWidget","LeaderboardWidget","StackedBarChartWidget","CHART_SERIES_COLORS","OVERVIEW_SECTION_COLORS","PERIOD_OPTIONS","PeriodPicker","FloatingControls","MessageDialog","DocLinkContext","messageComponents","MessageFeedback","POSITIVE_FEEDBACK_OPTIONS","NEGATIVE_FEEDBACK_OPTIONS","HelpAndSupportMenu","LinkingCommandsButton","LinkBranchOrPullRequestDialog","ConnectRepositoryDialog","RepositorySelect","buildRepoOptions","CONNECTIONS","PROJECT_REPOSITORIES","CONNECTABLE_REPOSITORIES","WebhookLogsDialog","WEBHOOK_CONNECTIONS","WEBHOOK_REPOSITORIES","SourceCodeSection","IssueRow","CodeRow","Spine","HistoryDialog","CompletedHeader","SuggestSubtasksButton","TaskOptionsMenu","TaskListOptionsMenu","UserMenu","UserDetailsDialog","USER_DETAILS_AVATAR_SIZE","TwoFactorShield","BackupCodesDialogs","CreateLoginCodeDialogs","SettingsHeader","SettingsContent","StyledSettingRow","RowText","SettingRow","FeatureAvailability","DEFAULT_FEATURE_AVAILABILITY","PORTFOLIO_TYPES","VISIBILITY_OPTIONS","DEFAULT_PORTFOLIO_FORM_VALUES","LEADERS_LIST","CATEGORIES","CLIENTS","contextFieldLabel","leaderShortName","defaultPortfolioName","isPortfolioDetailsValid","sampleProjectOptionIds","PortfolioDetailsFields","EditPortfolioDialog","ProjectsPicker","PICKER_PROJECTS"],"sources":["../../../../src/presentation/shared/index.ts"],"sourcesContent":["/**\n * Shared building blocks for the Presentation mock-ups (`Presentation/*`\n * stories). The application shell, page headers, tab bar and small widgets are\n * defined once here and reused by the List view, Column view, Task sheet and\n * empty-page stories so the chrome stays identical and in one place.\n */\nexport * from \"./tokens\";\nexport { MainLogo } from \"./MainLogo\";\nexport { RoundAvatar } from \"./RoundAvatar\";\nexport { PresentationShell, StyledPagePaper } from \"./PresentationShell\";\nexport type { PresentationShellProps } from \"./PresentationShell\";\nexport { PageHeader, ProjectPageHeader, TabHeader } from \"./headers\";\nexport type {\n PageHeaderProps,\n ProjectPageHeaderProps,\n TabHeaderProps,\n} from \"./headers\";\nexport { ProjectOptionsMenu } from \"./ProjectOptionsMenu\";\nexport { PortfolioOptionsMenu } from \"./PortfolioOptionsMenu\";\nexport type { PortfolioOptionsMenuProps } from \"./PortfolioOptionsMenu\";\nexport {\n WidgetGrid,\n WidgetGroupBy,\n StatWidget,\n WidgetRankedList,\n OverviewWidget,\n AreaChartWidget,\n DailyDeltaChartWidget,\n LeaderboardWidget,\n StackedBarChartWidget,\n CHART_SERIES_COLORS,\n OVERVIEW_SECTION_COLORS,\n PERIOD_OPTIONS,\n PeriodPicker,\n} from \"./dashboardWidgets\";\nexport type {\n WidgetGroupByProps,\n StatWidgetProps,\n RankedListItem,\n OverviewSectionData,\n OverviewWidgetProps,\n AreaChartWidgetProps,\n DailyDeltaPoint,\n DailyDeltaChartWidgetProps,\n LeaderboardRowData,\n LeaderboardWidgetProps,\n StackedBarColumn,\n StackedBarChartWidgetProps,\n PeriodPickerProps,\n} from \"./dashboardWidgets\";\n\nexport type { ProjectOptionsMenuProps } from \"./ProjectOptionsMenu\";\nexport { FloatingControls } from \"./FloatingControls\";\nexport {\n MessageDialog,\n DocLinkContext,\n messageComponents,\n} from \"./MessageDialog\";\nexport type {\n MessageDialogProps,\n MessageDialogSize,\n OpenArticleHandler,\n} from \"./MessageDialog\";\nexport {\n MessageFeedback,\n POSITIVE_FEEDBACK_OPTIONS,\n NEGATIVE_FEEDBACK_OPTIONS,\n} from \"./MessageFeedback\";\nexport type {\n MessageFeedbackProps,\n MessageFeedbackResult,\n FeedbackOption,\n FeedbackSentiment,\n} from \"./MessageFeedback\";\nexport { HelpAndSupportMenu } from \"./HelpAndSupportMenu\";\nexport type { HelpAndSupportMenuProps } from \"./HelpAndSupportMenu\";\nexport { LinkingCommandsButton } from \"./LinkingCommandsButton\";\nexport { LinkBranchOrPullRequestDialog } from \"./LinkBranchOrPullRequestDialog\";\nexport type { LinkBranchOrPullRequestDialogProps } from \"./LinkBranchOrPullRequestDialog\";\nexport {\n ConnectRepositoryDialog,\n RepositorySelect,\n buildRepoOptions,\n CONNECTIONS,\n PROJECT_REPOSITORIES,\n CONNECTABLE_REPOSITORIES,\n} from \"./ConnectRepositoryDialog\";\nexport type {\n ConnectRepositoryDialogProps,\n RepositorySelectProps,\n Connection,\n ConnectionService,\n Repository,\n} from \"./ConnectRepositoryDialog\";\nexport {\n WebhookLogsDialog,\n WEBHOOK_CONNECTIONS,\n WEBHOOK_REPOSITORIES,\n} from \"./WebhookLogsDialog\";\nexport type {\n WebhookLogsDialogProps,\n WebhookConnection,\n WebhookRepository,\n WebhookLog,\n} from \"./WebhookLogsDialog\";\nexport {\n SourceCodeSection,\n IssueRow,\n CodeRow,\n Spine,\n HistoryDialog,\n CompletedHeader,\n} from \"./SourceCodeSection\";\nexport type {\n IssueEntry,\n CodeEntry,\n Stage,\n HistoryEvent,\n StageState,\n CodeStatus,\n SectionVariant,\n} from \"./SourceCodeSection\";\nexport { SuggestSubtasksButton } from \"./SuggestSubtasksButton\";\nexport { TaskOptionsMenu, TaskListOptionsMenu } from \"./TaskOptionsMenu\";\nexport type {\n TaskOptionsMenuProps,\n TaskListOptionsMenuProps,\n} from \"./TaskOptionsMenu\";\nexport { UserMenu } from \"./UserMenu\";\nexport type { UserMenuProps, UserMenuVariant } from \"./UserMenu\";\nexport {\n UserDetailsDialog,\n USER_DETAILS_AVATAR_SIZE,\n} from \"./UserDetailsDialog\";\nexport type {\n UserDetailsDialogProps,\n UserDetailsAvatar,\n} from \"./UserDetailsDialog\";\nexport { TwoFactorShield } from \"./TwoFactorShield\";\nexport type { TwoFactorShieldProps } from \"./TwoFactorShield\";\nexport { BackupCodesDialogs, CreateLoginCodeDialogs } from \"./TwoFactorDialogs\";\nexport type {\n BackupCodesDialogsProps,\n CreateLoginCodeDialogsProps,\n} from \"./TwoFactorDialogs\";\nexport {\n SettingsHeader,\n SettingsContent,\n StyledSettingRow,\n RowText,\n SettingRow,\n} from \"./settings\";\nexport type { SettingsHeaderProps, SettingRowProps } from \"./settings\";\nexport {\n FeatureAvailability,\n DEFAULT_FEATURE_AVAILABILITY,\n} from \"./FeatureAvailability\";\nexport type {\n FeatureAvailabilityProps,\n AvailabilityRow,\n AvailabilityMark,\n AvailabilityStatus,\n} from \"./FeatureAvailability\";\nexport {\n PORTFOLIO_TYPES,\n VISIBILITY_OPTIONS,\n DEFAULT_PORTFOLIO_FORM_VALUES,\n LEADERS_LIST,\n CATEGORIES,\n CLIENTS,\n contextFieldLabel,\n leaderShortName,\n defaultPortfolioName,\n isPortfolioDetailsValid,\n sampleProjectOptionIds,\n PortfolioDetailsFields,\n EditPortfolioDialog,\n ProjectsPicker,\n PICKER_PROJECTS,\n} from \"./portfolioDetails\";\nexport type {\n PortfolioKind,\n PortfolioVisibility,\n GroupBy,\n PortfolioFormValues,\n PickerLeader,\n PortfolioDetailsFieldsProps,\n EditPortfolioDialogProps,\n PickerProject,\n ProjectsPickerProps,\n} from \"./portfolioDetails\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB,SAASA,QAAQ,QAAQ,YAAY;AACrC,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,iBAAiB,EAAEC,eAAe,QAAQ,qBAAqB;AAExE,SAASC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,QAAQ,WAAW;AAMpE,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,SACEC,UAAU,EACVC,aAAa,EACbC,UAAU,EACVC,gBAAgB,EAChBC,cAAc,EACdC,eAAe,EACfC,qBAAqB,EACrBC,iBAAiB,EACjBC,qBAAqB,EACrBC,mBAAmB,EACnBC,uBAAuB,EACvBC,cAAc,EACdC,YAAY,QACP,oBAAoB;AAkB3B,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SACEC,aAAa,EACbC,cAAc,EACdC,iBAAiB,QACZ,iBAAiB;AAMxB,SACEC,eAAe,EACfC,yBAAyB,EACzBC,yBAAyB,QACpB,mBAAmB;AAO1B,SAASC,kBAAkB,QAAQ,sBAAsB;AAEzD,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,6BAA6B,QAAQ,iCAAiC;AAE/E,SACEC,uBAAuB,EACvBC,gBAAgB,EAChBC,gBAAgB,EAChBC,WAAW,EACXC,oBAAoB,EACpBC,wBAAwB,QACnB,2BAA2B;AAQlC,SACEC,iBAAiB,EACjBC,mBAAmB,EACnBC,oBAAoB,QACf,qBAAqB;AAO5B,SACEC,iBAAiB,EACjBC,QAAQ,EACRC,OAAO,EACPC,KAAK,EACLC,aAAa,EACbC,eAAe,QACV,qBAAqB;AAU5B,SAASC,qBAAqB,QAAQ,yBAAyB;AAC/D,SAASC,eAAe,EAAEC,mBAAmB,QAAQ,mBAAmB;AAKxE,SAASC,QAAQ,QAAQ,YAAY;AAErC,SACEC,iBAAiB,EACjBC,wBAAwB,QACnB,qBAAqB;AAK5B,SAASC,eAAe,QAAQ,mBAAmB;AAEnD,SAASC,kBAAkB,EAAEC,sBAAsB,QAAQ,oBAAoB;AAK/E,SACEC,cAAc,EACdC,eAAe,EACfC,gBAAgB,EAChBC,OAAO,EACPC,UAAU,QACL,YAAY;AAEnB,SACEC,mBAAmB,EACnBC,4BAA4B,QACvB,uBAAuB;AAO9B,SACEC,eAAe,EACfC,kBAAkB,EAClBC,6BAA6B,EAC7BC,YAAY,EACZC,UAAU,EACVC,OAAO,EACPC,iBAAiB,EACjBC,eAAe,EACfC,oBAAoB,EACpBC,uBAAuB,EACvBC,sBAAsB,EACtBC,sBAAsB,EACtBC,mBAAmB,EACnBC,cAAc,EACdC,eAAe,QACV,oBAAoB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["MainLogo","RoundAvatar","PresentationShell","StyledPagePaper","PageHeader","ProjectPageHeader","TabHeader","ProjectOptionsMenu","PortfolioOptionsMenu","WidgetGrid","WidgetGroupBy","StatWidget","WidgetRankedList","OverviewWidget","AreaChartWidget","DailyDeltaChartWidget","LeaderboardWidget","StackedBarChartWidget","CHART_SERIES_COLORS","OVERVIEW_SECTION_COLORS","PERIOD_OPTIONS","PeriodPicker","FloatingControls","MessageDialog","DocLinkContext","messageComponents","MessageFeedback","POSITIVE_FEEDBACK_OPTIONS","NEGATIVE_FEEDBACK_OPTIONS","HelpAndSupportMenu","LinkingCommandsButton","LinkBranchOrPullRequestDialog","ConnectRepositoryDialog","RepositorySelect","buildRepoOptions","CONNECTIONS","PROJECT_REPOSITORIES","CONNECTABLE_REPOSITORIES","WebhookLogsDialog","WEBHOOK_CONNECTIONS","WEBHOOK_REPOSITORIES","SourceCodeSection","IssueRow","CodeRow","Spine","HistoryDialog","CompletedHeader","SuggestSubtasksButton","TaskOptionsMenu","TaskListOptionsMenu","UserMenu","UserDetailsDialog","USER_DETAILS_AVATAR_SIZE","TwoFactorShield","BackupCodesDialogs","CreateLoginCodeDialogs","SettingsHeader","SettingsContent","SettingGroup","StyledSettingRow","RowText","SettingRow","SettingCount","SettingValue","SystemSettingsDialog","SYSTEM_SETTINGS_GROUPS","FeatureAvailability","DEFAULT_FEATURE_AVAILABILITY","PORTFOLIO_TYPES","VISIBILITY_OPTIONS","DEFAULT_PORTFOLIO_FORM_VALUES","LEADERS_LIST","CATEGORIES","CLIENTS","contextFieldLabel","leaderShortName","defaultPortfolioName","isPortfolioDetailsValid","sampleProjectOptionIds","PortfolioDetailsFields","EditPortfolioDialog","ProjectsPicker","PICKER_PROJECTS"],"sources":["../../../../src/presentation/shared/index.ts"],"sourcesContent":["/**\n * Shared building blocks for the Presentation mock-ups (`Presentation/*`\n * stories). The application shell, page headers, tab bar and small widgets are\n * defined once here and reused by the List view, Column view, Task sheet and\n * empty-page stories so the chrome stays identical and in one place.\n */\nexport * from \"./tokens\";\nexport { MainLogo } from \"./MainLogo\";\nexport { RoundAvatar } from \"./RoundAvatar\";\nexport { PresentationShell, StyledPagePaper } from \"./PresentationShell\";\nexport type { PresentationShellProps } from \"./PresentationShell\";\nexport { PageHeader, ProjectPageHeader, TabHeader } from \"./headers\";\nexport type {\n PageHeaderProps,\n ProjectPageHeaderProps,\n TabHeaderProps,\n} from \"./headers\";\nexport { ProjectOptionsMenu } from \"./ProjectOptionsMenu\";\nexport { PortfolioOptionsMenu } from \"./PortfolioOptionsMenu\";\nexport type { PortfolioOptionsMenuProps } from \"./PortfolioOptionsMenu\";\nexport {\n WidgetGrid,\n WidgetGroupBy,\n StatWidget,\n WidgetRankedList,\n OverviewWidget,\n AreaChartWidget,\n DailyDeltaChartWidget,\n LeaderboardWidget,\n StackedBarChartWidget,\n CHART_SERIES_COLORS,\n OVERVIEW_SECTION_COLORS,\n PERIOD_OPTIONS,\n PeriodPicker,\n} from \"./dashboardWidgets\";\nexport type {\n WidgetGroupByProps,\n StatWidgetProps,\n RankedListItem,\n OverviewSectionData,\n OverviewWidgetProps,\n AreaChartWidgetProps,\n DailyDeltaPoint,\n DailyDeltaChartWidgetProps,\n LeaderboardRowData,\n LeaderboardWidgetProps,\n StackedBarColumn,\n StackedBarChartWidgetProps,\n PeriodPickerProps,\n} from \"./dashboardWidgets\";\n\nexport type { ProjectOptionsMenuProps } from \"./ProjectOptionsMenu\";\nexport { FloatingControls } from \"./FloatingControls\";\nexport {\n MessageDialog,\n DocLinkContext,\n messageComponents,\n} from \"./MessageDialog\";\nexport type {\n MessageDialogProps,\n MessageDialogSize,\n OpenArticleHandler,\n} from \"./MessageDialog\";\nexport {\n MessageFeedback,\n POSITIVE_FEEDBACK_OPTIONS,\n NEGATIVE_FEEDBACK_OPTIONS,\n} from \"./MessageFeedback\";\nexport type {\n MessageFeedbackProps,\n MessageFeedbackResult,\n FeedbackOption,\n FeedbackSentiment,\n} from \"./MessageFeedback\";\nexport { HelpAndSupportMenu } from \"./HelpAndSupportMenu\";\nexport type { HelpAndSupportMenuProps } from \"./HelpAndSupportMenu\";\nexport { LinkingCommandsButton } from \"./LinkingCommandsButton\";\nexport { LinkBranchOrPullRequestDialog } from \"./LinkBranchOrPullRequestDialog\";\nexport type { LinkBranchOrPullRequestDialogProps } from \"./LinkBranchOrPullRequestDialog\";\nexport {\n ConnectRepositoryDialog,\n RepositorySelect,\n buildRepoOptions,\n CONNECTIONS,\n PROJECT_REPOSITORIES,\n CONNECTABLE_REPOSITORIES,\n} from \"./ConnectRepositoryDialog\";\nexport type {\n ConnectRepositoryDialogProps,\n RepositorySelectProps,\n Connection,\n ConnectionService,\n Repository,\n} from \"./ConnectRepositoryDialog\";\nexport {\n WebhookLogsDialog,\n WEBHOOK_CONNECTIONS,\n WEBHOOK_REPOSITORIES,\n} from \"./WebhookLogsDialog\";\nexport type {\n WebhookLogsDialogProps,\n WebhookConnection,\n WebhookRepository,\n WebhookLog,\n} from \"./WebhookLogsDialog\";\nexport {\n SourceCodeSection,\n IssueRow,\n CodeRow,\n Spine,\n HistoryDialog,\n CompletedHeader,\n} from \"./SourceCodeSection\";\nexport type {\n IssueEntry,\n CodeEntry,\n Stage,\n HistoryEvent,\n StageState,\n CodeStatus,\n SectionVariant,\n} from \"./SourceCodeSection\";\nexport { SuggestSubtasksButton } from \"./SuggestSubtasksButton\";\nexport { TaskOptionsMenu, TaskListOptionsMenu } from \"./TaskOptionsMenu\";\nexport type {\n TaskOptionsMenuProps,\n TaskListOptionsMenuProps,\n} from \"./TaskOptionsMenu\";\nexport { UserMenu } from \"./UserMenu\";\nexport type { UserMenuProps, UserMenuVariant } from \"./UserMenu\";\nexport {\n UserDetailsDialog,\n USER_DETAILS_AVATAR_SIZE,\n} from \"./UserDetailsDialog\";\nexport type {\n UserDetailsDialogProps,\n UserDetailsAvatar,\n} from \"./UserDetailsDialog\";\nexport { TwoFactorShield } from \"./TwoFactorShield\";\nexport type { TwoFactorShieldProps } from \"./TwoFactorShield\";\nexport { BackupCodesDialogs, CreateLoginCodeDialogs } from \"./TwoFactorDialogs\";\nexport type {\n BackupCodesDialogsProps,\n CreateLoginCodeDialogsProps,\n} from \"./TwoFactorDialogs\";\nexport {\n SettingsHeader,\n SettingsContent,\n SettingGroup,\n StyledSettingRow,\n RowText,\n SettingRow,\n SettingCount,\n SettingValue,\n} from \"./settings\";\nexport type {\n SettingsHeaderProps,\n SettingGroupProps,\n SettingRowProps,\n} from \"./settings\";\nexport {\n SystemSettingsDialog,\n SYSTEM_SETTINGS_GROUPS,\n} from \"./systemSettingsDialog\";\nexport type {\n SystemSettingsDialogProps,\n SystemSettingsSectionId,\n} from \"./systemSettingsDialog\";\nexport {\n FeatureAvailability,\n DEFAULT_FEATURE_AVAILABILITY,\n} from \"./FeatureAvailability\";\nexport type {\n FeatureAvailabilityProps,\n AvailabilityRow,\n AvailabilityMark,\n AvailabilityStatus,\n} from \"./FeatureAvailability\";\nexport {\n PORTFOLIO_TYPES,\n VISIBILITY_OPTIONS,\n DEFAULT_PORTFOLIO_FORM_VALUES,\n LEADERS_LIST,\n CATEGORIES,\n CLIENTS,\n contextFieldLabel,\n leaderShortName,\n defaultPortfolioName,\n isPortfolioDetailsValid,\n sampleProjectOptionIds,\n PortfolioDetailsFields,\n EditPortfolioDialog,\n ProjectsPicker,\n PICKER_PROJECTS,\n} from \"./portfolioDetails\";\nexport type {\n PortfolioKind,\n PortfolioVisibility,\n GroupBy,\n PortfolioFormValues,\n PickerLeader,\n PortfolioDetailsFieldsProps,\n EditPortfolioDialogProps,\n PickerProject,\n ProjectsPickerProps,\n} from \"./portfolioDetails\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,cAAc,UAAU;AACxB,SAASA,QAAQ,QAAQ,YAAY;AACrC,SAASC,WAAW,QAAQ,eAAe;AAC3C,SAASC,iBAAiB,EAAEC,eAAe,QAAQ,qBAAqB;AAExE,SAASC,UAAU,EAAEC,iBAAiB,EAAEC,SAAS,QAAQ,WAAW;AAMpE,SAASC,kBAAkB,QAAQ,sBAAsB;AACzD,SAASC,oBAAoB,QAAQ,wBAAwB;AAE7D,SACEC,UAAU,EACVC,aAAa,EACbC,UAAU,EACVC,gBAAgB,EAChBC,cAAc,EACdC,eAAe,EACfC,qBAAqB,EACrBC,iBAAiB,EACjBC,qBAAqB,EACrBC,mBAAmB,EACnBC,uBAAuB,EACvBC,cAAc,EACdC,YAAY,QACP,oBAAoB;AAkB3B,SAASC,gBAAgB,QAAQ,oBAAoB;AACrD,SACEC,aAAa,EACbC,cAAc,EACdC,iBAAiB,QACZ,i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ings presentation stories
3
- * (`Presentation/System Settings/*`). The settings page header, the max-width
4
- * body column and the "row" card (title + description on the left, a control on
5
- * the right) are defined once here and reused by the Index, General and
6
- * Security stories so the chrome stays identical and in one place.
3
+ * (`Presentation/System Settings/*`). The section group (a Label above its
4
+ * rows) and the "row" card (title + description on the left, a control on the
5
+ * right) are defined once here and reused by every section story so the chrome
6
+ * stays identical and in one place.
7
7
  *
8
- * Mirrors the app: PageHeader.jsx + BackButton.js (header) and the repeated
9
- * `Card variant="paper-2"` row pattern from the SystemSettings pages.
8
+ * Mirrors the app: components/Settings/SettingRow.jsx (`SettingGroup` and
9
+ * `SettingRow`). The legacy page header/body (`SettingsHeader`,
10
+ * `SettingsContent`) predate the dialog redesign and are kept for any page-
11
+ * style story that still needs them.
10
12
  */
11
13
  import React, { ReactElement, ReactNode } from "react";
12
14
  export interface SettingsHeaderProps {
@@ -16,6 +18,12 @@ export interface SettingsHeaderProps {
16
18
  export declare const SettingsHeader: ({ title, backTitle, }: SettingsHeaderProps) => ReactElement;
17
19
  /** The page body, max-width 850px and left-aligned (mirrors the app Page). */
18
20
  export declare const SettingsContent: import("styled-components").StyledComponent<"div", any, {}, never>;
21
+ export interface SettingGroupProps {
22
+ label: string;
23
+ children: ReactNode;
24
+ className?: string;
25
+ }
26
+ export declare const SettingGroup: ({ label, children, className, }: SettingGroupProps) => ReactElement;
19
27
  /** A settings row card: title + description on the left, control on the right. */
20
28
  export declare const StyledSettingRow: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLDivElement> & import("../..").ICardProps, "ref"> & React.RefAttributes<HTMLDivElement>>, any, {
21
29
  $clickable?: boolean;
@@ -30,4 +38,10 @@ export interface SettingRowProps {
30
38
  wrapDescription?: boolean;
31
39
  }
32
40
  export declare const SettingRow: ({ title, description, control, onClick, wrapDescription, }: SettingRowProps) => ReactElement;
41
+ export declare const SettingCount: ({ count, }: {
42
+ count: number | string;
43
+ }) => ReactElement;
44
+ export declare const SettingValue: ({ value }: {
45
+ value: string;
46
+ }) => ReactElement;
33
47
  //# sourceMappingURL=settings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/settings.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAiFvD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,GAAI,uBAG5B,mBAAmB,KAAG,YAaxB,CAAC;AAMF,8EAA8E;AAC9E,eAAO,MAAM,eAAe,oEAM3B,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,gBAAgB;iBAA+B,OAAO;SAmBlE,CAAC;AAEF,eAAO,MAAM,OAAO,oEAwBnB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU,GAAI,4DAMxB,eAAe,KAAG,YAqBpB,CAAC"}
1
+ {"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/settings.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAsFvD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,cAAc,GAAI,uBAG5B,mBAAmB,KAAG,YAaxB,CAAC;AAMF,8EAA8E;AAC9E,eAAO,MAAM,eAAe,oEAM3B,CAAC;AAiBF,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,iCAI1B,iBAAiB,KAAG,YAKtB,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,gBAAgB;iBAA+B,OAAO;SAmBlE,CAAC;AAEF,eAAO,MAAM,OAAO,oEAwBnB,CAAC;AAEF,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,6EAA6E;IAC7E,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,eAAO,MAAM,UAAU,GAAI,4DAMxB,eAAe,KAAG,YAqBpB,CAAC;AAqBF,eAAO,MAAM,YAAY,GAAI,YAE1B;IACD,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,KAAG,YAYH,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,WAAW;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,KAAG,YAO3D,CAAC"}
@@ -1,19 +1,23 @@
1
1
  /**
2
2
  * Shared building blocks for the System Settings presentation stories
3
- * (`Presentation/System Settings/*`). The settings page header, the max-width
4
- * body column and the "row" card (title + description on the left, a control on
5
- * the right) are defined once here and reused by the Index, General and
6
- * Security stories so the chrome stays identical and in one place.
3
+ * (`Presentation/System Settings/*`). The section group (a Label above its
4
+ * rows) and the "row" card (title + description on the left, a control on the
5
+ * right) are defined once here and reused by every section story so the chrome
6
+ * stays identical and in one place.
7
7
  *
8
- * Mirrors the app: PageHeader.jsx + BackButton.js (header) and the repeated
9
- * `Card variant="paper-2"` row pattern from the SystemSettings pages.
8
+ * Mirrors the app: components/Settings/SettingRow.jsx (`SettingGroup` and
9
+ * `SettingRow`). The legacy page header/body (`SettingsHeader`,
10
+ * `SettingsContent`) predate the dialog redesign and are kept for any page-
11
+ * style story that still needs them.
10
12
  */
11
13
  import React from "react";
12
14
  import styled from "styled-components";
13
15
  import { MD, SM } from "./tokens";
14
16
  import { Card } from "../../components/Card";
17
+ import { Chip } from "../../components/Chip";
15
18
  import { IconButton } from "../../components/IconButton";
16
- import { ArrowLeftIcon } from "../../components/Icons";
19
+ import { ArrowLeftIcon, CollapseExpandSingleIcon } from "../../components/Icons";
20
+ import { Label } from "../../components/Label";
17
21
  import { Body2, Caption1, Header2, Title2 } from "../../components/Typography";
18
22
 
19
23
  /* ------------------------------------------------------------------ */
@@ -51,25 +55,44 @@ export const SettingsContent = styled.div.withConfig({
51
55
  componentId: "sc-1el9eq3-1"
52
56
  })(["display:flex;flex-direction:column;flex-grow:1;width:100%;max-width:850px;"]);
53
57
 
58
+ /**
59
+ * A section group: a Label above its rows, 24px below the block (tw-mb-6) and
60
+ * 8px below the label (tw-mb-2). Mirrors app SettingRow.jsx `SettingGroup`.
61
+ */
62
+ const StyledSettingGroup = styled.div.withConfig({
63
+ displayName: "settings__StyledSettingGroup",
64
+ componentId: "sc-1el9eq3-2"
65
+ })(["display:flex;flex-direction:column;margin-bottom:24px;.group-label{display:block;margin-bottom:8px;}"]);
66
+ export const SettingGroup = _ref2 => {
67
+ let label = _ref2.label,
68
+ children = _ref2.children,
69
+ className = _ref2.className;
70
+ return /*#__PURE__*/React.createElement(StyledSettingGroup, {
71
+ className: className
72
+ }, /*#__PURE__*/React.createElement(Label, {
73
+ className: "group-label"
74
+ }, label), children);
75
+ };
76
+
54
77
  /** A settings row card: title + description on the left, control on the right. */
55
78
  export const StyledSettingRow = styled(Card).withConfig({
56
79
  displayName: "settings__StyledSettingRow",
57
- componentId: "sc-1el9eq3-2"
58
- })(["box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:12px 16px 12px 20px;margin-bottom:4px;", ""], _ref2 => {
59
- let $clickable = _ref2.$clickable;
80
+ componentId: "sc-1el9eq3-3"
81
+ })(["box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;min-height:68px;padding:12px 16px 12px 20px;margin-bottom:4px;", ""], _ref3 => {
82
+ let $clickable = _ref3.$clickable;
60
83
  return $clickable ? "\n cursor: pointer;\n\n &:hover {\n background-color: var(--color-theme-200);\n }\n " : "";
61
84
  });
62
85
  export const RowText = styled.div.withConfig({
63
86
  displayName: "settings__RowText",
64
- componentId: "sc-1el9eq3-3"
87
+ componentId: "sc-1el9eq3-4"
65
88
  })(["display:flex;flex-direction:column;flex:1 1 0%;min-width:0;padding-right:12px;.row-title{margin-bottom:2px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.row-description{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}.row-description-wrap{white-space:normal;}"]);
66
- export const SettingRow = _ref3 => {
67
- let title = _ref3.title,
68
- description = _ref3.description,
69
- control = _ref3.control,
70
- onClick = _ref3.onClick,
71
- _ref3$wrapDescription = _ref3.wrapDescription,
72
- wrapDescription = _ref3$wrapDescription === void 0 ? false : _ref3$wrapDescription;
89
+ export const SettingRow = _ref4 => {
90
+ let title = _ref4.title,
91
+ description = _ref4.description,
92
+ control = _ref4.control,
93
+ onClick = _ref4.onClick,
94
+ _ref4$wrapDescription = _ref4.wrapDescription,
95
+ wrapDescription = _ref4$wrapDescription === void 0 ? false : _ref4$wrapDescription;
73
96
  return /*#__PURE__*/React.createElement(StyledSettingRow, {
74
97
  variant: "paper-2",
75
98
  $clickable: Boolean(onClick),
@@ -81,4 +104,36 @@ export const SettingRow = _ref3 => {
81
104
  color: "tertiary"
82
105
  }, description) : null), control);
83
106
  };
107
+
108
+ /* ------------------------------------------------------------------ */
109
+ /* Collapsible-row right controls — a count Chip or a value, plus a */
110
+ /* caret. Used by the Workday, Time & Expenses and Invoices sections */
111
+ /* for rows that expand in the app; the stories show them collapsed, */
112
+ /* so the caret is decorative. Mirrors the app's `Chip` + ExpandToggle */
113
+ /* / `Caption1` + ExpandToggle pattern. */
114
+ /* ------------------------------------------------------------------ */
115
+
116
+ const CaretRow = styled.div.withConfig({
117
+ displayName: "settings__CaretRow",
118
+ componentId: "sc-1el9eq3-5"
119
+ })(["display:flex;align-items:center;gap:12px;.caret{display:inline-flex;transform:rotate(180deg);}"]);
120
+ export const SettingCount = _ref5 => {
121
+ let count = _ref5.count;
122
+ return /*#__PURE__*/React.createElement(CaretRow, null, /*#__PURE__*/React.createElement(Chip, {
123
+ label: String(count),
124
+ backgroundColor: "var(--color-theme-300)",
125
+ color: "var(--color-theme-900)",
126
+ size: "regular"
127
+ }), /*#__PURE__*/React.createElement("span", {
128
+ className: "caret"
129
+ }, /*#__PURE__*/React.createElement(CollapseExpandSingleIcon, null)));
130
+ };
131
+ export const SettingValue = _ref6 => {
132
+ let value = _ref6.value;
133
+ return /*#__PURE__*/React.createElement(CaretRow, null, /*#__PURE__*/React.createElement(Caption1, {
134
+ color: "tertiary"
135
+ }, value), /*#__PURE__*/React.createElement("span", {
136
+ className: "caret"
137
+ }, /*#__PURE__*/React.createElement(CollapseExpandSingleIcon, null)));
138
+ };
84
139
  //# sourceMappingURL=settings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"settings.js","names":["React","styled","MD","SM","Card","IconButton","ArrowLeftIcon","Body2","Caption1","Header2","Title2","StyledSettingsHeader","div","withConfig","displayName","componentId","SettingsHeader","_ref","title","backTitle","createElement","className","variant","SettingsContent","StyledSettingRow","_ref2","$clickable","RowText","SettingRow","_ref3","description","control","onClick","_ref3$wrapDescription","wrapDescription","Boolean","color"],"sources":["../../../../src/presentation/shared/settings.tsx"],"sourcesContent":["/**\n * Shared building blocks for the System Settings presentation stories\n * (`Presentation/System Settings/*`). The settings page header, the max-width\n * body column and the \"row\" card (title + description on the left, a control on\n * the right) are defined once here and reused by the Index, General and\n * Security stories so the chrome stays identical and in one place.\n *\n * Mirrors the app: PageHeader.jsx + BackButton.js (header) and the repeated\n * `Card variant=\"paper-2\"` row pattern from the SystemSettings pages.\n */\nimport React, { ReactElement, ReactNode } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { MD, SM } from \"./tokens\";\nimport { Card } from \"../../components/Card\";\nimport { IconButton } from \"../../components/IconButton\";\nimport { ArrowLeftIcon } from \"../../components/Icons\";\nimport { Body2, Caption1, Header2, Title2 } from \"../../components/Typography\";\n\n/* ------------------------------------------------------------------ */\n/* Settings page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n /* keeps the title clear of the absolutely-positioned top-right controls */\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\nexport interface SettingsHeaderProps {\n title: string;\n backTitle?: string;\n}\n\nexport const SettingsHeader = ({\n title,\n backTitle,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {backTitle ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Shared layout pieces */\n/* ------------------------------------------------------------------ */\n\n/** The page body, max-width 850px and left-aligned (mirrors the app Page). */\nexport const SettingsContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/** A settings row card: title + description on the left, control on the right. */\nexport const StyledSettingRow = styled(Card)<{ $clickable?: boolean }>`\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 68px;\n padding: 12px 16px 12px 20px;\n margin-bottom: 4px;\n\n ${({ $clickable }) =>\n $clickable\n ? `\n cursor: pointer;\n\n &:hover {\n background-color: var(--color-theme-200);\n }\n `\n : \"\"}\n`;\n\nexport const RowText = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n min-width: 0;\n padding-right: 12px;\n\n .row-title {\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .row-description {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n /* Long descriptions that are allowed to wrap onto multiple lines. */\n .row-description-wrap {\n white-space: normal;\n }\n`;\n\nexport interface SettingRowProps {\n title: string;\n description?: ReactNode;\n control?: ReactNode;\n onClick?: () => void;\n /** Let a long description wrap onto multiple lines instead of truncating. */\n wrapDescription?: boolean;\n}\n\nexport const SettingRow = ({\n title,\n description,\n control,\n onClick,\n wrapDescription = false,\n}: SettingRowProps): ReactElement => (\n <StyledSettingRow\n variant=\"paper-2\"\n $clickable={Boolean(onClick)}\n onClick={onClick}\n >\n <RowText>\n <Body2 className=\"row-title\">{title}</Body2>\n {description ? (\n <Caption1\n className={\n wrapDescription ? \"row-description-wrap\" : \"row-description\"\n }\n color=\"tertiary\"\n >\n {description}\n </Caption1>\n ) : null}\n </R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js","names":["React","styled","MD","SM","Card","Chip","IconButton","ArrowLeftIcon","CollapseExpandSingleIcon","Label","Body2","Caption1","Header2","Title2","StyledSettingsHeader","div","withConfig","displayName","componentId","SettingsHeader","_ref","title","backTitle","createElement","className","variant","SettingsContent","StyledSettingGroup","SettingGroup","_ref2","label","children","StyledSettingRow","_ref3","$clickable","RowText","SettingRow","_ref4","description","control","onClick","_ref4$wrapDescription","wrapDescription","Boolean","color","CaretRow","SettingCount","_ref5","count","String","backgroundColor","size","SettingValue","_ref6","value"],"sources":["../../../../src/presentation/shared/settings.tsx"],"sourcesContent":["/**\n * Shared building blocks for the System Settings presentation stories\n * (`Presentation/System Settings/*`). The section group (a Label above its\n * rows) and the \"row\" card (title + description on the left, a control on the\n * right) are defined once here and reused by every section story so the chrome\n * stays identical and in one place.\n *\n * Mirrors the app: components/Settings/SettingRow.jsx (`SettingGroup` and\n * `SettingRow`). The legacy page header/body (`SettingsHeader`,\n * `SettingsContent`) predate the dialog redesign and are kept for any page-\n * style story that still needs them.\n */\nimport React, { ReactElement, ReactNode } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { MD, SM } from \"./tokens\";\nimport { Card } from \"../../components/Card\";\nimport { Chip } from \"../../components/Chip\";\nimport { IconButton } from \"../../components/IconButton\";\nimport {\n ArrowLeftIcon,\n CollapseExpandSingleIcon,\n} from \"../../components/Icons\";\nimport { Label } from \"../../components/Label\";\nimport { Body2, Caption1, Header2, Title2 } from \"../../components/Typography\";\n\n/* ------------------------------------------------------------------ */\n/* Settings page header (mirrors PageHeader.jsx + BackButton.js) */\n/* ------------------------------------------------------------------ */\n\nconst StyledSettingsHeader = styled.div`\n display: flex;\n align-items: center;\n justify-content: space-between;\n margin: 12px 0;\n width: 100%;\n height: 40px;\n flex-shrink: 0;\n\n .header-left {\n display: flex;\n align-items: center;\n width: 100%;\n max-width: 100%;\n\n @media (min-width: ${SM}) {\n min-width: 0;\n }\n }\n\n .back-button {\n flex-shrink: 0;\n margin-right: 4px;\n\n @media (min-width: ${MD}) {\n margin-right: 8px;\n }\n }\n\n .page-title-desktop {\n display: none;\n margin-right: 8px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: block;\n }\n }\n\n .page-title-mobile {\n display: block;\n margin-right: 8px;\n font-weight: 300;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n @media (min-width: ${MD}) {\n display: none;\n }\n }\n\n /* keeps the title clear of the absolutely-positioned top-right controls */\n .page-header-spacer {\n display: none;\n height: 100%;\n width: 208px;\n flex-shrink: 0;\n\n @media (min-width: ${SM}) {\n display: flex;\n }\n }\n`;\n\nexport interface SettingsHeaderProps {\n title: string;\n backTitle?: string;\n}\n\nexport const SettingsHeader = ({\n title,\n backTitle,\n}: SettingsHeaderProps): ReactElement => (\n <StyledSettingsHeader>\n <div className=\"header-left\">\n {backTitle ? (\n <IconButton variant=\"text gray\" className=\"back-button\">\n <ArrowLeftIcon />\n </IconButton>\n ) : null}\n <Title2 className=\"page-title-desktop\">{title}</Title2>\n <Header2 className=\"page-title-mobile\">{title}</Header2>\n </div>\n <div className=\"page-header-spacer\" />\n </StyledSettingsHeader>\n);\n\n/* ------------------------------------------------------------------ */\n/* Shared layout pieces */\n/* ------------------------------------------------------------------ */\n\n/** The page body, max-width 850px and left-aligned (mirrors the app Page). */\nexport const SettingsContent = styled.div`\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n width: 100%;\n max-width: 850px;\n`;\n\n/**\n * A section group: a Label above its rows, 24px below the block (tw-mb-6) and\n * 8px below the label (tw-mb-2). Mirrors app SettingRow.jsx `SettingGroup`.\n */\nconst StyledSettingGroup = styled.div`\n display: flex;\n flex-direction: column;\n margin-bottom: 24px;\n\n .group-label {\n display: block;\n margin-bottom: 8px;\n }\n`;\n\nexport interface SettingGroupProps {\n label: string;\n children: ReactNode;\n className?: string;\n}\n\nexport const SettingGroup = ({\n label,\n children,\n className,\n}: SettingGroupProps): ReactElement => (\n <StyledSettingGroup className={className}>\n <Label className=\"group-label\">{label}</Label>\n {children}\n </StyledSettingGroup>\n);\n\n/** A settings row card: title + description on the left, control on the right. */\nexport const StyledSettingRow = styled(Card)<{ $clickable?: boolean }>`\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n min-height: 68px;\n padding: 12px 16px 12px 20px;\n margin-bottom: 4px;\n\n ${({ $clickable }) =>\n $clickable\n ? `\n cursor: pointer;\n\n &:hover {\n background-color: var(--color-theme-200);\n }\n `\n : \"\"}\n`;\n\nexport const RowText = styled.div`\n display: flex;\n flex-direction: column;\n flex: 1 1 0%;\n min-width: 0;\n padding-right: 12px;\n\n .row-title {\n margin-bottom: 2px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n .row-description {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n\n /* Long descriptions that are allowed to wrap onto multiple lines. */\n .row-description-wrap {\n white-space: normal;\n }\n`;\n\nexport interface SettingRowProps {\n title: string;\n description?: ReactNode;\n control?: ReactNode;\n onClick?: () => void;\n /** Let a long description wrap onto multiple lines instead of truncating. */\n wrapDescription?: boolean;\n}\n\nexport const SettingRow = ({\n title,\n description,\n control,\n onClick,\n wrapDescription = false,\n}: SettingRowProps): ReactElement => (\n <StyledSettingRow\n variant=\"paper-2\"\n $clickable={Boolean(onClick)}\n onClick={onClick}\n >\n <RowText>\n <Body2 className=\"row-title\">{title}</Body2>\n {description ? (\n <Caption1\n className={\n wrapDescription ? \"row-description-wrap\" : \"row-description\"\n }\n color=\"tertiary\"\n >\n {description}\n </Caption1>\n ) : null}\n </RowText>\n {control}\n </StyledSettingRow>\n);\n\n/* ------------------------------------------------------------------ */\n/* Collapsible-row right controls — a count Chip or a value, plus a */\n/* caret. Used by the Workday, Time & Expenses and Invoices sections */\n/* for rows that expand in the app; the stories show them collapsed, */\n/* so the caret is decorative. Mirrors the app's `Chip` + ExpandToggle */\n/* / `Caption1` + ExpandToggle pattern. */\n/* ------------------------------------------------------------------ */\n\nconst CaretRow = styled.div`\n display: flex;\n align-items: center;\n gap: 12px;\n\n .caret {\n display: inline-flex;\n transform: rotate(180deg);\n }\n`;\n\nexport const SettingCount = ({\n count,\n}: {\n count: number | string;\n}): ReactElement => (\n <CaretRow>\n <Chip\n label={String(count)}\n backgroundColor=\"var(--color-theme-300)\"\n color=\"var(--color-theme-900)\"\n size=\"regular\"\n />\n <span className=\"caret\">\n <CollapseExpandSingleIcon />\n </span>\n </CaretRow>\n);\n\nexport const SettingValue = ({ value }: { value: string }): ReactElement => (\n <CaretRow>\n <Caption1 color=\"tertiary\">{value}</Caption1>\n <span className=\"caret\">\n <CollapseExpandSingleIcon />\n </span>\n </CaretRow>\n);\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAmC,OAAO;AAEtD,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,EAAE,EAAEC,EAAE,QAAQ,UAAU;AACjC,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,IAAI,QAAQ,uBAAuB;AAC5C,SAASC,UAAU,QAAQ,6BAA6B;AACxD,SACEC,aAAa,EACbC,wBAAwB,QACnB,wBAAwB;AAC/B,SAASC,KAAK,QAAQ,wBAAwB;AAC9C,SAASC,KAAK,EAAEC,QAAQ,EAAEC,OAAO,EAAEC,MAAM,QAAQ,6BAA6B;;AAE9E;AACA;AACA;;AAEA,MAAMC,oBAAoB,GAAGb,MAAM,CAACc,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,muBAedf,EAAE,EASFD,EAAE,EAYFA,EAAE,EAaFA,EAAE,EAYFC,EAAE,CAI1B;AAOD,OAAO,MAAMgB,cAAc,GAAGC,IAAA;EAAA,IAC5BC,KAAK,GAAAD,IAAA,CAALC,KAAK;IACLC,SAAS,GAAAF,IAAA,CAATE,SAAS;EAAA,oBAETtB,KA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,aAAA,CAACsB,QAAQ,qBACP7C,KAAA,CAAAuB,aAAA,CAAClB,IAAI;IACHyB,KAAK,EAAEmB,MAAM,CAACD,KAAK,CAAE;IACrBE,eAAe,EAAC,wBAAwB;IACxCN,KAAK,EAAC,wBAAwB;IAC9BO,IAAI,EAAC;EAAS,CACf,CAAC,eACFnD,KAAA,CAAAuB,aAAA;IAAMC,SAAS,EAAC;EAAO,gBACrBxB,KAAA,CAAAuB,aAAA,CAACf,wBAAwB,MAAE,CACvB,CACE,CAAC;AAAA,CACZ;AAED,OAAO,MAAM4C,YAAY,GAAGC,KAAA;EAAA,IAAGC,KAAK,GAAAD,KAAA,CAALC,KAAK;EAAA,oBAClCtD,KAAA,CAAAuB,aAAA,CAACsB,QAAQ,qBACP7C,KAAA,CAAAuB,aAAA,CAACZ,QAAQ;IAACiC,KAAK,EAAC;EAAU,GAAEU,KAAgB,CAAC,eAC7CtD,KAAA,CAAAuB,aAAA;IAAMC,SAAS,EAAC;EAAO,gBACrBxB,KAAA,CAAAuB,aAAA,CAACf,wBAAwB,MAAE,CACvB,CACE,CAAC;AAAA,CACZ","ignoreList":[]}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Shared chrome for the redesigned System Settings presentation stories
3
+ * (`Presentation/System Settings/*`). The whole feature is now one modal
4
+ * dialog: a `Dialog size="xxxl" height="95%"` titled "System Settings" whose
5
+ * content is a two-column shell — a `SideNav` rail (search field + the
6
+ * Administration / Work / Finances groups) on the left, and the active
7
+ * section's pane on the right. Every section story renders this shell with its
8
+ * own `active` id and supplies only the pane content, so the chrome stays
9
+ * identical and lives in one place.
10
+ *
11
+ * Mirrors the app:
12
+ * - components/Settings/SystemSettingsDialog.jsx (Dialog size/height/title)
13
+ * - pages/SystemSettings/SystemSettingsShell.jsx (rail + pane grid, the
14
+ * in-dialog surface overrides, the search field above the SideNav)
15
+ * - pages/SystemSettings/sections.jsx (the groups, ids, icons and labels)
16
+ */
17
+ import { ReactElement, ReactNode } from "react";
18
+ export type SystemSettingsSectionId = "general" | "security" | "project" | "workday" | "calendar" | "tracking" | "invoice" | "invoice-designer";
19
+ interface SectionDef {
20
+ id: SystemSettingsSectionId;
21
+ label: string;
22
+ icon: ReactElement;
23
+ }
24
+ interface GroupDef {
25
+ id: string;
26
+ title: string;
27
+ sections: SectionDef[];
28
+ }
29
+ export declare const SYSTEM_SETTINGS_GROUPS: GroupDef[];
30
+ export interface SystemSettingsDialogProps {
31
+ /** Which section is open — highlights its SideNav item and shows its pane. */
32
+ active: SystemSettingsSectionId;
33
+ /** The active section's pane content. */
34
+ children: ReactNode;
35
+ /** Optional close handler; defaults to a no-op for the mock. */
36
+ onClose?: () => void;
37
+ }
38
+ export declare const SystemSettingsDialog: ({ active, children, onClose, }: SystemSettingsDialogProps) => ReactElement;
39
+ export {};
40
+ //# sourceMappingURL=systemSettingsDialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/systemSettingsDialog.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,OAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAuBvD,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,UAAU,GACV,SAAS,GACT,SAAS,GACT,UAAU,GACV,UAAU,GACV,SAAS,GACT,kBAAkB,CAAC;AAEvB,UAAU,UAAU;IAClB,EAAE,EAAE,uBAAuB,CAAC;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,YAAY,CAAC;CACpB;AAED,UAAU,QAAQ;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED,eAAO,MAAM,sBAAsB,EAAE,QAAQ,EA+B5C,CAAC;AAwDF,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,MAAM,EAAE,uBAAuB,CAAC;IAChC,yCAAyC;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,eAAO,MAAM,oBAAoB,GAAI,gCAIlC,yBAAyB,KAAG,YAsC9B,CAAC"}
@@ -0,0 +1,137 @@
1
+ /**
2
+ * Shared chrome for the redesigned System Settings presentation stories
3
+ * (`Presentation/System Settings/*`). The whole feature is now one modal
4
+ * dialog: a `Dialog size="xxxl" height="95%"` titled "System Settings" whose
5
+ * content is a two-column shell — a `SideNav` rail (search field + the
6
+ * Administration / Work / Finances groups) on the left, and the active
7
+ * section's pane on the right. Every section story renders this shell with its
8
+ * own `active` id and supplies only the pane content, so the chrome stays
9
+ * identical and lives in one place.
10
+ *
11
+ * Mirrors the app:
12
+ * - components/Settings/SystemSettingsDialog.jsx (Dialog size/height/title)
13
+ * - pages/SystemSettings/SystemSettingsShell.jsx (rail + pane grid, the
14
+ * in-dialog surface overrides, the search field above the SideNav)
15
+ * - pages/SystemSettings/sections.jsx (the groups, ids, icons and labels)
16
+ */
17
+ import React from "react";
18
+ import styled from "styled-components";
19
+ import { Dialog } from "../../components/Dialog";
20
+ import { CalendarIcon, ClockIcon, ClockStopwatchIcon, EditIcon, GearIcon, InvoicesIcon, LockIcon, ProjectsIcon, SearchIcon } from "../../components/Icons";
21
+ import { Input } from "../../components/Input";
22
+ import { SideNav } from "../../components/SideNav";
23
+
24
+ /* ------------------------------------------------------------------ */
25
+ /* Section registry (mirrors sections.jsx: SECTION_GROUPS + names). */
26
+ /* ------------------------------------------------------------------ */
27
+
28
+ export const SYSTEM_SETTINGS_GROUPS = [{
29
+ id: "administration",
30
+ title: "Administration",
31
+ sections: [{
32
+ id: "general",
33
+ label: "General",
34
+ icon: /*#__PURE__*/React.createElement(GearIcon, null)
35
+ }, {
36
+ id: "security",
37
+ label: "Security",
38
+ icon: /*#__PURE__*/React.createElement(LockIcon, null)
39
+ }]
40
+ }, {
41
+ id: "work",
42
+ title: "Work",
43
+ sections: [{
44
+ id: "project",
45
+ label: "Projects",
46
+ icon: /*#__PURE__*/React.createElement(ProjectsIcon, null)
47
+ }, {
48
+ id: "workday",
49
+ label: "Workday",
50
+ icon: /*#__PURE__*/React.createElement(ClockIcon, null)
51
+ }, {
52
+ id: "calendar",
53
+ label: "Calendar",
54
+ icon: /*#__PURE__*/React.createElement(CalendarIcon, null)
55
+ }]
56
+ }, {
57
+ id: "finances",
58
+ title: "Finances",
59
+ sections: [{
60
+ id: "tracking",
61
+ label: "Time & Expenses",
62
+ icon: /*#__PURE__*/React.createElement(ClockStopwatchIcon, null)
63
+ }, {
64
+ id: "invoice",
65
+ label: "Invoices & Estimates",
66
+ icon: /*#__PURE__*/React.createElement(InvoicesIcon, null)
67
+ }, {
68
+ id: "invoice-designer",
69
+ label: "Invoice Designer",
70
+ icon: /*#__PURE__*/React.createElement(EditIcon, null)
71
+ }]
72
+ }];
73
+
74
+ /* ------------------------------------------------------------------ */
75
+ /* Layout */
76
+ /* Matches SystemSettingsShell.jsx: a 220px rail + 1fr pane that stack */
77
+ /* below the 768px breakpoint, 24px gap (tw-gap-6). */
78
+ /* ------------------------------------------------------------------ */
79
+
80
+ const SHELL_BREAKPOINT = "768px";
81
+ const Shell = styled.div.withConfig({
82
+ displayName: "systemSettingsDialog__Shell",
83
+ componentId: "sc-umcfz2-0"
84
+ })(["display:flex;flex-direction:column;gap:24px;@media (min-width:", "){display:grid;grid-template-columns:220px 1fr;align-items:start;gap:24px;}"], SHELL_BREAKPOINT);
85
+ const Rail = styled.div.withConfig({
86
+ displayName: "systemSettingsDialog__Rail",
87
+ componentId: "sc-umcfz2-1"
88
+ })(["width:100%;.settings-search,.settings-search.c-input-wrapper{width:100%;max-width:100%;margin-bottom:30px;}"]);
89
+
90
+ /**
91
+ * The pane. Cards and the dialog share --page-paper-main, so inside the dialog
92
+ * the section cards take the body surface and drop their shadow, exactly as the
93
+ * app's PANE_SURFACE_IN_DIALOG does. Content column is capped at 850px like the
94
+ * app Page (tw-max-w-[850px] tw-pb-6).
95
+ */
96
+ const Pane = styled.div.withConfig({
97
+ displayName: "systemSettingsDialog__Pane",
98
+ componentId: "sc-umcfz2-2"
99
+ })(["min-width:0;width:100%;max-width:850px;padding-bottom:24px;--page-paper-main:var(--body-bg-main);--shadow-tertiary:none;--shadow-tertiary-hover:none;"]);
100
+
101
+ /* ------------------------------------------------------------------ */
102
+ /* The dialog */
103
+ /* ------------------------------------------------------------------ */
104
+
105
+ export const SystemSettingsDialog = _ref => {
106
+ let active = _ref.active,
107
+ children = _ref.children,
108
+ onClose = _ref.onClose;
109
+ const close = onClose != null ? onClose : () => undefined;
110
+ return /*#__PURE__*/React.createElement(Dialog, {
111
+ open: true,
112
+ size: "xxxl",
113
+ height: "95%",
114
+ onClose: close,
115
+ enableBackgroundClick: true
116
+ }, /*#__PURE__*/React.createElement(Dialog.Title, {
117
+ onClose: close
118
+ }, "System Settings"), /*#__PURE__*/React.createElement(Dialog.ContentDivider, null), /*#__PURE__*/React.createElement(Dialog.Content, null, /*#__PURE__*/React.createElement(Shell, null, /*#__PURE__*/React.createElement(Rail, null, /*#__PURE__*/React.createElement(Input, {
119
+ className: "settings-search",
120
+ placeholder: "Search settings",
121
+ startAdornment: /*#__PURE__*/React.createElement(SearchIcon, {
122
+ width: 16,
123
+ height: 16
124
+ })
125
+ }), /*#__PURE__*/React.createElement(SideNav, {
126
+ ariaLabel: "Settings sections",
127
+ selected: active
128
+ }, SYSTEM_SETTINGS_GROUPS.map(group => /*#__PURE__*/React.createElement(SideNav.Group, {
129
+ key: group.id,
130
+ title: group.title
131
+ }, group.sections.map(section => /*#__PURE__*/React.createElement(SideNav.Item, {
132
+ key: section.id,
133
+ id: section.id,
134
+ icon: section.icon
135
+ }, section.label)))))), /*#__PURE__*/React.createElement(Pane, null, children))));
136
+ };
137
+ //# sourceMappingURL=systemSettingsDialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"systemSettingsDialog.js","names":["React","styled","Dialog","CalendarIcon","ClockIcon","ClockStopwatchIcon","EditIcon","GearIcon","InvoicesIcon","LockIcon","ProjectsIcon","SearchIcon","Input","SideNav","SYSTEM_SETTINGS_GROUPS","id","title","sections","label","icon","createElement","SHELL_BREAKPOINT","Shell","div","withConfig","displayName","componentId","Rail","Pane","SystemSettingsDialog","_ref","active","children","onClose","close","undefined","open","size","height","enableBackgroundClick","Title","ContentDivider","Content","className","placeholder","startAdornment","width","ariaLabel","selected","map","group","Group","key","section","Item"],"sources":["../../../../src/presentation/shared/systemSettingsDialog.tsx"],"sourcesContent":["/**\n * Shared chrome for the redesigned System Settings presentation stories\n * (`Presentation/System Settings/*`). The whole feature is now one modal\n * dialog: a `Dialog size=\"xxxl\" height=\"95%\"` titled \"System Settings\" whose\n * content is a two-column shell — a `SideNav` rail (search field + the\n * Administration / Work / Finances groups) on the left, and the active\n * section's pane on the right. Every section story renders this shell with its\n * own `active` id and supplies only the pane content, so the chrome stays\n * identical and lives in one place.\n *\n * Mirrors the app:\n * - components/Settings/SystemSettingsDialog.jsx (Dialog size/height/title)\n * - pages/SystemSettings/SystemSettingsShell.jsx (rail + pane grid, the\n * in-dialog surface overrides, the search field above the SideNav)\n * - pages/SystemSettings/sections.jsx (the groups, ids, icons and labels)\n */\nimport React, { ReactElement, ReactNode } from \"react\";\n\nimport styled from \"styled-components\";\n\nimport { Dialog } from \"../../components/Dialog\";\nimport {\n CalendarIcon,\n ClockIcon,\n ClockStopwatchIcon,\n EditIcon,\n GearIcon,\n InvoicesIcon,\n LockIcon,\n ProjectsIcon,\n SearchIcon,\n} from \"../../components/Icons\";\nimport { Input } from \"../../components/Input\";\nimport { SideNav } from \"../../components/SideNav\";\n\n/* ------------------------------------------------------------------ */\n/* Section registry (mirrors sections.jsx: SECTION_GROUPS + names). */\n/* ------------------------------------------------------------------ */\n\nexport type SystemSettingsSectionId =\n | \"general\"\n | \"security\"\n | \"project\"\n | \"workday\"\n | \"calendar\"\n | \"tracking\"\n | \"invoice\"\n | \"invoice-designer\";\n\ninterface SectionDef {\n id: SystemSettingsSectionId;\n label: string;\n icon: ReactElement;\n}\n\ninterface GroupDef {\n id: string;\n title: string;\n sections: SectionDef[];\n}\n\nexport const SYSTEM_SETTINGS_GROUPS: GroupDef[] = [\n {\n id: \"administration\",\n title: \"Administration\",\n sections: [\n { id: \"general\", label: \"General\", icon: <GearIcon /> },\n { id: \"security\", label: \"Security\", icon: <LockIcon /> },\n ],\n },\n {\n id: \"work\",\n title: \"Work\",\n sections: [\n { id: \"project\", label: \"Projects\", icon: <ProjectsIcon /> },\n { id: \"workday\", label: \"Workday\", icon: <ClockIcon /> },\n { id: \"calendar\", label: \"Calendar\", icon: <CalendarIcon /> },\n ],\n },\n {\n id: \"finances\",\n title: \"Finances\",\n sections: [\n {\n id: \"tracking\",\n label: \"Time & Expenses\",\n icon: <ClockStopwatchIcon />,\n },\n { id: \"invoice\", label: \"Invoices & Estimates\", icon: <InvoicesIcon /> },\n { id: \"invoice-designer\", label: \"Invoice Designer\", icon: <EditIcon /> },\n ],\n },\n];\n\n/* ------------------------------------------------------------------ */\n/* Layout */\n/* Matches SystemSettingsShell.jsx: a 220px rail + 1fr pane that stack */\n/* below the 768px breakpoint, 24px gap (tw-gap-6). */\n/* ------------------------------------------------------------------ */\n\nconst SHELL_BREAKPOINT = \"768px\";\n\nconst Shell = styled.div`\n display: flex;\n flex-direction: column;\n gap: 24px;\n\n @media (min-width: ${SHELL_BREAKPOINT}) {\n display: grid;\n grid-template-columns: 220px 1fr;\n align-items: start;\n gap: 24px;\n }\n`;\n\nconst Rail = styled.div`\n width: 100%;\n\n /* The search field fills the rail instead of the DS Input's fixed 360px. */\n .settings-search,\n .settings-search.c-input-wrapper {\n width: 100%;\n max-width: 100%;\n margin-bottom: 30px;\n }\n`;\n\n/**\n * The pane. Cards and the dialog share --page-paper-main, so inside the dialog\n * the section cards take the body surface and drop their shadow, exactly as the\n * app's PANE_SURFACE_IN_DIALOG does. Content column is capped at 850px like the\n * app Page (tw-max-w-[850px] tw-pb-6).\n */\nconst Pane = styled.div`\n min-width: 0;\n width: 100%;\n max-width: 850px;\n padding-bottom: 24px;\n\n --page-paper-main: var(--body-bg-main);\n --shadow-tertiary: none;\n --shadow-tertiary-hover: none;\n`;\n\n/* ------------------------------------------------------------------ */\n/* The dialog */\n/* ------------------------------------------------------------------ */\n\nexport interface SystemSettingsDialogProps {\n /** Which section is open — highlights its SideNav item and shows its pane. */\n active: SystemSettingsSectionId;\n /** The active section's pane content. */\n children: ReactNode;\n /** Optional close handler; defaults to a no-op for the mock. */\n onClose?: () => void;\n}\n\nexport const SystemSettingsDialog = ({\n active,\n children,\n onClose,\n}: SystemSettingsDialogProps): ReactElement => {\n const close = onClose ?? ((): void => undefined);\n\n return (\n <Dialog open size=\"xxxl\" height=\"95%\" onClose={close} enableBackgroundClick>\n <Dialog.Title onClose={close}>System Settings</Dialog.Title>\n <Dialog.ContentDivider />\n <Dialog.Content>\n <Shell>\n <Rail>\n <Input\n className=\"settings-search\"\n placeholder=\"Search settings\"\n startAdornment={<SearchIcon width={16} height={16} />}\n />\n {/* SideNav items are visual in the mock — selection is driven by\n the `active` prop; picking another one is a no-op. */}\n <SideNav ariaLabel=\"Settings sections\" selected={active}>\n {SYSTEM_SETTINGS_GROUPS.map((group) => (\n <SideNav.Group key={group.id} title={group.title}>\n {group.sections.map((section) => (\n <SideNav.Item\n key={section.id}\n id={section.id}\n icon={section.icon}\n >\n {section.label}\n </SideNav.Item>\n ))}\n </SideNav.Group>\n ))}\n </SideNav>\n </Rail>\n <Pane>{children}</Pane>\n </Shell>\n </Dialog.Content>\n </Dialog>\n );\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAOA,KAAK,MAAmC,OAAO;AAEtD,OAAOC,MAAM,MAAM,mBAAmB;AAEtC,SAASC,MAAM,QAAQ,yBAAyB;AAChD,SACEC,YAAY,EACZ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AAC,eAC5DlC,KAAA,CAAAoB,aAAA,CAAClB,MAAM,CAACuC,cAAc,MAAE,CAAC,eACzBzC,KAAA,CAAAoB,aAAA,CAAClB,MAAM,CAACwC,OAAO,qBACb1C,KAAA,CAAAoB,aAAA,CAACE,KAAK,qBACJtB,KAAA,CAAAoB,aAAA,CAACO,IAAI,qBACH3B,KAAA,CAAAoB,aAAA,CAACR,KAAK;IACJ+B,SAAS,EAAC,iBAAiB;IAC3BC,WAAW,EAAC,iBAAiB;IAC7BC,cAAc,eAAE7C,KAAA,CAAAoB,aAAA,CAACT,UAAU;MAACmC,KAAK,EAAE,EAAG;MAACR,MAAM,EAAE;IAAG,CAAE;EAAE,CACvD,CAAC,eAGFtC,KAAA,CAAAoB,aAAA,CAACP,OAAO;IAACkC,SAAS,EAAC,mBAAmB;IAACC,QAAQ,EAAEjB;EAAO,GACrDjB,sBAAsB,CAACmC,GAAG,CAAEC,KAAK,iBAChClD,KAAA,CAAAoB,aAAA,CAACP,OAAO,CAACsC,KAAK;IAACC,GAAG,EAAEF,KAAK,CAACnC,EAAG;IAACC,KAAK,EAAEkC,KAAK,CAAClC;EAAM,GAC9CkC,KAAK,CAACjC,QAAQ,CAACgC,GAAG,CAAEI,OAAO,iBAC1BrD,KAAA,CAAAoB,aAAA,CAACP,OAAO,CAACyC,IAAI;IACXF,GAAG,EAAEC,OAAO,CAACtC,EAAG;IAChBA,EAAE,EAAEsC,OAAO,CAACtC,EAAG;IACfI,IAAI,EAAEkC,OAAO,CAAClC;EAAK,GAElBkC,OAAO,CAACnC,KACG,CACf,CACY,CAChB,CACM,CACL,CAAC,eACPlB,KAAA,CAAAoB,aAAA,CAACQ,IAAI,QAAEI,QAAe,CACjB,CACO,CACV,CAAC;AAEb,CAAC","ignoreList":[]}
@@ -18,4 +18,15 @@ export declare const AVATAR_COLORS: {
18
18
  green: string;
19
19
  teal: string;
20
20
  };
21
+ /**
22
+ * Font stacks for the mock-ups.
23
+ *
24
+ * `SANS` mirrors the DS `FontStyle` stack. Presentation containers set it so raw
25
+ * text that is not wrapped in Typography does not fall back to serif (there is
26
+ * no global CSS reset in Storybook); text itself still goes through Typography.
27
+ *
28
+ * `MONO` is the monospace face the app uses for SHAs and inline code.
29
+ */
30
+ export declare const SANS = "-apple-system, BlinkMacSystemFont, \"Inter\", \"Roboto\", \"Helvetica Neue\", Arial, sans-serif";
31
+ export declare const MONO = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
21
32
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,wEAAwE;AACxE,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../../src/presentation/shared/tokens.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,UAAU,MAAM,CAAC;AAC9B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,UAAU,CAAC;AAC1B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,EAAE,WAAW,CAAC;AAC3B,eAAO,MAAM,UAAU,eAAe,CAAC;AAEvC,wEAAwE;AACxE,eAAO,MAAM,aAAa;;;;;;;CAOzB,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,oGAC4E,CAAC;AAC9F,eAAO,MAAM,IAAI,6DAA6D,CAAC"}
@@ -19,4 +19,16 @@ export const AVATAR_COLORS = {
19
19
  green: "#32B370",
20
20
  teal: "#48C9B0"
21
21
  };
22
+
23
+ /**
24
+ * Font stacks for the mock-ups.
25
+ *
26
+ * `SANS` mirrors the DS `FontStyle` stack. Presentation containers set it so raw
27
+ * text that is not wrapped in Typography does not fall back to serif (there is
28
+ * no global CSS reset in Storybook); text itself still goes through Typography.
29
+ *
30
+ * `MONO` is the monospace face the app uses for SHAs and inline code.
31
+ */
32
+ export const SANS = '-apple-system, BlinkMacSystemFont, "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif';
33
+ export const MONO = "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace";
22
34
  //# sourceMappingURL=tokens.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","names":["BREAKPOINT","SM","MD","LG","XL","TRANSITION","AVATAR_COLORS","yellow","purple","blue","orange","green","teal"],"sources":["../../../../src/presentation/shared/tokens.ts"],"sourcesContent":["/**\n * Shared constants for the Presentation mock-ups.\n *\n * Breakpoints mirror new-activecollab-front (Tailwind sm / md / lg / xl).\n */\nexport const BREAKPOINT = 640;\nexport const SM = \"640px\";\nexport const MD = \"768px\";\nexport const LG = \"1024px\";\nexport const XL = \"1280px\";\nexport const TRANSITION = \"200ms ease\";\n\n/** Mock avatar background colours (stand-ins for real user avatars). */\nexport const AVATAR_COLORS = {\n yellow: \"#F5B041\",\n purple: \"#A569BD\",\n blue: \"#5499C7\",\n orange: \"#E67E22\",\n green: \"#32B370\",\n teal: \"#48C9B0\",\n};\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,GAAG;AAC7B,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,UAAU,GAAG,YAAY;;AAEtC;AACA,OAAO,MAAMC,aAAa,GAAG;EAC3BC,MAAM,EAAE,SAAS;EACjBC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE;AACR,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"tokens.js","names":["BREAKPOINT","SM","MD","LG","XL","TRANSITION","AVATAR_COLORS","yellow","purple","blue","orange","green","teal","SANS","MONO"],"sources":["../../../../src/presentation/shared/tokens.ts"],"sourcesContent":["/**\n * Shared constants for the Presentation mock-ups.\n *\n * Breakpoints mirror new-activecollab-front (Tailwind sm / md / lg / xl).\n */\nexport const BREAKPOINT = 640;\nexport const SM = \"640px\";\nexport const MD = \"768px\";\nexport const LG = \"1024px\";\nexport const XL = \"1280px\";\nexport const TRANSITION = \"200ms ease\";\n\n/** Mock avatar background colours (stand-ins for real user avatars). */\nexport const AVATAR_COLORS = {\n yellow: \"#F5B041\",\n purple: \"#A569BD\",\n blue: \"#5499C7\",\n orange: \"#E67E22\",\n green: \"#32B370\",\n teal: \"#48C9B0\",\n};\n\n/**\n * Font stacks for the mock-ups.\n *\n * `SANS` mirrors the DS `FontStyle` stack. Presentation containers set it so raw\n * text that is not wrapped in Typography does not fall back to serif (there is\n * no global CSS reset in Storybook); text itself still goes through Typography.\n *\n * `MONO` is the monospace face the app uses for SHAs and inline code.\n */\nexport const SANS =\n '-apple-system, BlinkMacSystemFont, \"Inter\", \"Roboto\", \"Helvetica Neue\", Arial, sans-serif';\nexport const MONO = \"ui-monospace, SFMono-Regular, Menlo, Consolas, monospace\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,UAAU,GAAG,GAAG;AAC7B,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,OAAO;AACzB,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,EAAE,GAAG,QAAQ;AAC1B,OAAO,MAAMC,UAAU,GAAG,YAAY;;AAEtC;AACA,OAAO,MAAMC,aAAa,GAAG;EAC3BC,MAAM,EAAE,SAAS;EACjBC,MAAM,EAAE,SAAS;EACjBC,IAAI,EAAE,SAAS;EACfC,MAAM,EAAE,SAAS;EACjBC,KAAK,EAAE,SAAS;EAChBC,IAAI,EAAE;AACR,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,IAAI,GACf,2FAA2F;AAC7F,OAAO,MAAMC,IAAI,GAAG,0DAA0D","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@activecollab/components",
3
- "version": "2.0.461",
3
+ "version": "2.0.463",
4
4
  "description": "ActiveCollab Components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",