@nar-bus/ui-kit 1.34.1 → 1.36.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.
- package/dist/{Button-B_PvZOyI.js → Button-QiaEzRWh.js} +1 -0
- package/dist/atoms/Badge.d.ts.map +1 -1
- package/dist/atoms/Button.d.ts +2 -0
- package/dist/atoms/Button.d.ts.map +1 -1
- package/dist/atoms/Icon.d.ts +5 -3
- package/dist/atoms/Icon.d.ts.map +1 -1
- package/dist/atoms/Input.d.ts.map +1 -1
- package/dist/atoms/RadioGroup.d.ts +6 -0
- package/dist/atoms/RadioGroup.d.ts.map +1 -1
- package/dist/atoms/Select.d.ts +8 -0
- package/dist/atoms/Select.d.ts.map +1 -1
- package/dist/atoms/Tooltip.d.ts +21 -1
- package/dist/atoms/Tooltip.d.ts.map +1 -1
- package/dist/atoms/index.d.ts +1 -1
- package/dist/atoms/index.d.ts.map +1 -1
- package/dist/hooks/useBreadcrumb.d.ts +1 -0
- package/dist/hooks/useBreadcrumb.d.ts.map +1 -1
- package/dist/i18n/en.json.d.ts +1103 -1071
- package/dist/i18n/resources.d.ts +64 -0
- package/dist/i18n/resources.d.ts.map +1 -1
- package/dist/i18n/resources.js +1 -1
- package/dist/i18n/tr.json.d.ts +1103 -1071
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6600 -4721
- package/dist/map.js +1 -1
- package/dist/molecules/ChartFrame.d.ts +37 -0
- package/dist/molecules/ChartFrame.d.ts.map +1 -0
- package/dist/molecules/CopyableText.d.ts.map +1 -1
- package/dist/molecules/DetailPanel.d.ts +16 -0
- package/dist/molecules/DetailPanel.d.ts.map +1 -0
- package/dist/molecules/DetailTabs.d.ts +32 -0
- package/dist/molecules/DetailTabs.d.ts.map +1 -0
- package/dist/molecules/DistributionBar.d.ts +15 -0
- package/dist/molecules/DistributionBar.d.ts.map +1 -0
- package/dist/molecules/DistributionPanel.d.ts +34 -0
- package/dist/molecules/DistributionPanel.d.ts.map +1 -0
- package/dist/molecules/HtmlPreview.d.ts +13 -0
- package/dist/molecules/HtmlPreview.d.ts.map +1 -0
- package/dist/molecules/KpiCard.d.ts.map +1 -1
- package/dist/molecules/LaneChart.d.ts +71 -0
- package/dist/molecules/LaneChart.d.ts.map +1 -0
- package/dist/molecules/MetricTile.d.ts.map +1 -1
- package/dist/molecules/MiniBars.d.ts +17 -0
- package/dist/molecules/MiniBars.d.ts.map +1 -0
- package/dist/molecules/PulseRail.d.ts +15 -0
- package/dist/molecules/PulseRail.d.ts.map +1 -0
- package/dist/molecules/RecordHeaderActions.d.ts +17 -0
- package/dist/molecules/RecordHeaderActions.d.ts.map +1 -0
- package/dist/molecules/RhythmGrid.d.ts +54 -0
- package/dist/molecules/RhythmGrid.d.ts.map +1 -0
- package/dist/molecules/RitimStrip.d.ts +13 -0
- package/dist/molecules/RitimStrip.d.ts.map +1 -0
- package/dist/molecules/SegmentedChoice.d.ts +14 -0
- package/dist/molecules/SegmentedChoice.d.ts.map +1 -0
- package/dist/molecules/StatusGlyph.d.ts +10 -0
- package/dist/molecules/StatusGlyph.d.ts.map +1 -0
- package/dist/molecules/ToggleChips.d.ts +22 -0
- package/dist/molecules/ToggleChips.d.ts.map +1 -0
- package/dist/molecules/comboboxPanel.d.ts.map +1 -1
- package/dist/molecules/index.d.ts +15 -0
- package/dist/molecules/index.d.ts.map +1 -1
- package/dist/organisms/DataTable/DataTableHeader.d.ts.map +1 -1
- package/dist/organisms/DataTable/DataTableRow.d.ts +2 -1
- package/dist/organisms/DataTable/DataTableRow.d.ts.map +1 -1
- package/dist/organisms/DataTable/DataTableSelection.d.ts.map +1 -1
- package/dist/organisms/DataTable/RowActionsCell.d.ts.map +1 -1
- package/dist/organisms/DataTable/cellFilter.d.ts +18 -0
- package/dist/organisms/DataTable/cellFilter.d.ts.map +1 -0
- package/dist/organisms/DataTable.d.ts +4 -1
- package/dist/organisms/DataTable.d.ts.map +1 -1
- package/dist/organisms/DataTable.types.d.ts +8 -0
- package/dist/organisms/DataTable.types.d.ts.map +1 -1
- package/dist/organisms/EditableGrid/EditableGrid.d.ts +12 -1
- package/dist/organisms/EditableGrid/EditableGrid.d.ts.map +1 -1
- package/dist/organisms/EditableGrid/EditableGridCell.d.ts.map +1 -1
- package/dist/organisms/EditableGrid/index.d.ts +1 -1
- package/dist/organisms/EditableGrid/index.d.ts.map +1 -1
- package/dist/organisms/FilterPanel.d.ts +51 -1
- package/dist/organisms/FilterPanel.d.ts.map +1 -1
- package/dist/organisms/JsonEditor.d.ts +16 -0
- package/dist/organisms/JsonEditor.d.ts.map +1 -1
- package/dist/organisms/JsonFormView.d.ts +25 -0
- package/dist/organisms/JsonFormView.d.ts.map +1 -0
- package/dist/organisms/Sheet.d.ts +5 -0
- package/dist/organisms/Sheet.d.ts.map +1 -1
- package/dist/organisms/Sidebar.d.ts.map +1 -1
- package/dist/organisms/Tabs.d.ts +6 -1
- package/dist/organisms/Tabs.d.ts.map +1 -1
- package/dist/organisms/Toast.d.ts +20 -2
- package/dist/organisms/Toast.d.ts.map +1 -1
- package/dist/organisms/filterOperators.d.ts +9 -1
- package/dist/organisms/filterOperators.d.ts.map +1 -1
- package/dist/organisms/index.d.ts +3 -1
- package/dist/organisms/index.d.ts.map +1 -1
- package/dist/resources-CqpCpxo8.js +86 -0
- package/dist/templates/DetailHero.d.ts +51 -0
- package/dist/templates/DetailHero.d.ts.map +1 -0
- package/dist/templates/DetailHeroFacts.d.ts +23 -0
- package/dist/templates/DetailHeroFacts.d.ts.map +1 -0
- package/dist/templates/ListPageLayout.d.ts +55 -9
- package/dist/templates/ListPageLayout.d.ts.map +1 -1
- package/dist/templates/MasterDetailLayout.d.ts +52 -0
- package/dist/templates/MasterDetailLayout.d.ts.map +1 -0
- package/dist/templates/PageHeading.d.ts +14 -0
- package/dist/templates/PageHeading.d.ts.map +1 -0
- package/dist/templates/PageLayout.d.ts +21 -0
- package/dist/templates/PageLayout.d.ts.map +1 -0
- package/dist/templates/RecordPanel.d.ts +13 -0
- package/dist/templates/RecordPanel.d.ts.map +1 -0
- package/dist/templates/SummarySheet.d.ts +71 -0
- package/dist/templates/SummarySheet.d.ts.map +1 -0
- package/dist/templates/index.d.ts +10 -0
- package/dist/templates/index.d.ts.map +1 -1
- package/dist/templates/listFilters.d.ts +21 -0
- package/dist/templates/listFilters.d.ts.map +1 -0
- package/dist/templates/ritimIdentity.d.ts +26 -0
- package/dist/templates/ritimIdentity.d.ts.map +1 -0
- package/dist/templates/useViewportFillHeight.d.ts +10 -0
- package/dist/templates/useViewportFillHeight.d.ts.map +1 -0
- package/dist/theme/ThemeProvider.d.ts +3 -2
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/themeContext.d.ts +3 -0
- package/dist/theme/themeContext.d.ts.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/ui-kit.css +1 -1
- package/dist/utils/formatters.d.ts +12 -1
- package/dist/utils/formatters.d.ts.map +1 -1
- package/dist/utils/sheetInset.d.ts +50 -0
- package/dist/utils/sheetInset.d.ts.map +1 -0
- package/package.json +2 -1
- package/dist/resources-B3pLCPDz.js +0 -86
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SheetProps } from '../organisms/Sheet';
|
|
3
|
+
import { RitimTone } from '../molecules/StatusGlyph';
|
|
4
|
+
import { RitimStatus } from './ritimIdentity';
|
|
5
|
+
export type SummarySheetStatus = RitimStatus;
|
|
6
|
+
export interface SummarySheetFigure {
|
|
7
|
+
key: string;
|
|
8
|
+
label: string;
|
|
9
|
+
/** `undefined` while unknown or loading: the cell reads "—". */
|
|
10
|
+
value: ReactNode | undefined;
|
|
11
|
+
/** A failing or warning figure is drawn in its tone while above zero; the others stay in ink. */
|
|
12
|
+
tone?: RitimTone;
|
|
13
|
+
}
|
|
14
|
+
export interface SummarySheetProps {
|
|
15
|
+
open: boolean;
|
|
16
|
+
onClose: SheetProps["onClose"];
|
|
17
|
+
/** What the record is (e.g. "Haberleşme ünitesi") — the Sheet's header title. */
|
|
18
|
+
kind: string;
|
|
19
|
+
/** Who it is (e.g. the slug) — the panel's largest line. */
|
|
20
|
+
title: ReactNode;
|
|
21
|
+
/** One quiet identity line under the title (e.g. model, firmware). */
|
|
22
|
+
subtitle?: ReactNode;
|
|
23
|
+
/** The record's states, drawn as shape + colour + text (never colour alone). */
|
|
24
|
+
statuses?: SummarySheetStatus[];
|
|
25
|
+
/** Small outlined chips after the states (flags, transport, tags). */
|
|
26
|
+
tags?: Array<{
|
|
27
|
+
key: string;
|
|
28
|
+
label: ReactNode;
|
|
29
|
+
}>;
|
|
30
|
+
/** Edit the record — the standard pencil in the header, left of ✕ (RecordHeaderActions). */
|
|
31
|
+
onEdit?: () => void;
|
|
32
|
+
/** Delete the record — the standard trash in the header, after edit. */
|
|
33
|
+
onDelete?: () => void;
|
|
34
|
+
editDisabledReason?: string;
|
|
35
|
+
deleteDisabledReason?: string;
|
|
36
|
+
/** Further icon actions in the header, before edit and delete. */
|
|
37
|
+
headerActions?: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* The record's operations under the identity (e.g. "Şimdi çalıştır", "Şifre sıfırla") — the primary one first as a
|
|
40
|
+
* primary button, the rest outline. Never edit or delete: those are `onEdit` / `onDelete` in the header.
|
|
41
|
+
*/
|
|
42
|
+
actions?: ReactNode;
|
|
43
|
+
/** A few key figures in a two-column grid (counts, signal, last contact). */
|
|
44
|
+
figures?: SummarySheetFigure[];
|
|
45
|
+
/** Pinned bottom bar (e.g. "Detaya git"). */
|
|
46
|
+
footer?: ReactNode;
|
|
47
|
+
/** Page-specific sections (DetailSection / DetailFieldRow). */
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
width?: string;
|
|
50
|
+
className?: string;
|
|
51
|
+
/** The record is still loading: the frame shows its kind over a placeholder of the identity and figures. */
|
|
52
|
+
loading?: boolean;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Faz 7 slide panel standard (Lena Ritmi): the summary a list row opens on the right. Fixed frame — kind in the
|
|
56
|
+
* header, the record's identity, its states as shape + text, a few figures — then the page's own sections and a
|
|
57
|
+
* pinned footer. Pages fill the slots; the frame stays the same on every list.
|
|
58
|
+
*/
|
|
59
|
+
export declare function SummarySheet({ open, onClose, kind, title, subtitle, statuses, tags, onEdit, onDelete, editDisabledReason, deleteDisabledReason, headerActions, actions, figures, footer, children, width, className, loading, }: SummarySheetProps): import("react").JSX.Element;
|
|
60
|
+
/** The summary's placeholder while the record loads: the identity lines, then the figure grid. */
|
|
61
|
+
export declare function SummarySkeleton(): import("react").JSX.Element;
|
|
62
|
+
export type SummaryBodyProps = Pick<SummarySheetProps, "kind" | "title" | "subtitle" | "statuses" | "tags" | "actions" | "figures" | "children" | "className"> & {
|
|
63
|
+
/** Figures per row from the `md` width up (two below it). @default 2 */
|
|
64
|
+
figureColumns?: 2 | 4;
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* The Lena Ritmi record summary — identity, states, tags, actions, key figures, then the page's sections. The slide
|
|
68
|
+
* panel (`SummarySheet`) and the in-page record (`RecordPanel`) draw the same body.
|
|
69
|
+
*/
|
|
70
|
+
export declare function SummaryBody({ kind, title, subtitle, statuses, tags, actions, figures, figureColumns, children, className, }: SummaryBodyProps): import("react").JSX.Element;
|
|
71
|
+
//# sourceMappingURL=SummarySheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SummarySheet.d.ts","sourceRoot":"","sources":["../../src/templates/SummarySheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAmD,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAGpG,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,gEAAgE;IAChE,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,iGAAiG;IACjG,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAC/B,iFAAiF;IACjF,IAAI,EAAE,MAAM,CAAC;IACb,4DAA4D;IAC5D,KAAK,EAAE,SAAS,CAAC;IACjB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,gFAAgF;IAChF,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAChC,sEAAsE;IACtE,IAAI,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,SAAS,CAAA;KAAE,CAAC,CAAC;IAChD,4FAA4F;IAC5F,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kEAAkE;IAClE,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC/B,6CAA6C;IAC7C,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,+DAA+D;IAC/D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4GAA4G;IAC5G,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,OAAO,EACP,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,kBAAkB,EAClB,oBAAoB,EACpB,aAAa,EACb,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ,EACR,KAAK,EACL,SAAS,EACT,OAAO,GACR,EAAE,iBAAiB,+BA0CnB;AAED,kGAAkG;AAClG,wBAAgB,eAAe,gCAW9B;AAED,MAAM,MAAM,gBAAgB,GAAG,IAAI,CACjC,iBAAiB,EACjB,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CACvG,GAAG;IACF,wEAAwE;IACxE,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACvB,CAAC;AAEF;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,OAAO,EACP,aAAiB,EACjB,QAAQ,EACR,SAAS,GACV,EAAE,gBAAgB,+BA0DlB"}
|
|
@@ -2,4 +2,14 @@ export { ListPageLayout, type ListPageLayoutProps, type ActiveFilter } from './L
|
|
|
2
2
|
export { DetailPageLayout, type DetailPageLayoutProps, type DetailAction } from './DetailPageLayout';
|
|
3
3
|
export { AuthLayout, type AuthLayoutProps } from './AuthLayout';
|
|
4
4
|
export { ReportLayout, type ReportLayoutProps } from './ReportLayout';
|
|
5
|
+
export { SummarySheet, SummaryBody, type SummarySheetProps, type SummarySheetStatus, type SummarySheetFigure, type SummaryBodyProps } from './SummarySheet';
|
|
6
|
+
export { RecordPanel, type RecordPanelProps } from './RecordPanel';
|
|
7
|
+
export { applyCellFilter, removeFilterField, filterChips, type FilterChipOptions } from './listFilters';
|
|
8
|
+
export { DetailHero, type DetailHeroProps, type DetailHeroFigure, type DetailHeroMeta } from './DetailHero';
|
|
9
|
+
export { RitimStatusList, RitimTagList, type RitimStatus, type RitimTag } from './ritimIdentity';
|
|
10
|
+
export { DetailHeroFacts, type DetailHeroFact, type DetailHeroFactsProps } from './DetailHeroFacts';
|
|
11
|
+
export { PageHeading, type PageHeadingProps } from './PageHeading';
|
|
12
|
+
export { PageLayout, type PageLayoutProps } from './PageLayout';
|
|
13
|
+
export { MasterDetailLayout, MasterListItem, type MasterDetailLayoutProps, type MasterListItemProps } from './MasterDetailLayout';
|
|
14
|
+
export { useViewportFillHeight } from './useViewportFillHeight';
|
|
5
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,KAAK,qBAAqB,EAAE,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC5J,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACxG,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,cAAc,EAAE,MAAM,cAAc,CAAC;AAC5G,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,KAAK,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACpG,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,KAAK,uBAAuB,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAClI,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { FilterField, FilterValue } from '../organisms/FilterPanel';
|
|
2
|
+
import { ActiveFilter } from './ListPageLayout';
|
|
3
|
+
/**
|
|
4
|
+
* The values after a cell narrows the list to `field = value`: that field's own entries are replaced, the other
|
|
5
|
+
* fields' entries stay (user decision 30.10). A multi-value field gets its `values` list.
|
|
6
|
+
*/
|
|
7
|
+
export declare function applyCellFilter(values: readonly FilterValue[], fields: readonly FilterField[], key: string, value: string): FilterValue[];
|
|
8
|
+
/** The values without `key`'s entries (a chip's ✕). */
|
|
9
|
+
export declare function removeFilterField(values: readonly FilterValue[], fields: readonly FilterField[], key: string): FilterValue[];
|
|
10
|
+
export interface FilterChipOptions {
|
|
11
|
+
/** A page's own wording for a value (e.g. "Evet" for `true`); `undefined` falls back to the option label. */
|
|
12
|
+
formatValue?: (field: FilterField, value: string) => string | undefined;
|
|
13
|
+
/** The text of a value-less operator ("Boş" / "Boş değil"). */
|
|
14
|
+
valuelessLabel?: (operator: string) => string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* One chip per active field, in the fields' order — "Durum = Aktif", "Operatör: A, B", "Tarih: 01.10.2026 – 31.10.2026".
|
|
18
|
+
* The chip's key is the field's key (pass it to {@link removeFilterField}).
|
|
19
|
+
*/
|
|
20
|
+
export declare function filterChips(values: readonly FilterValue[], fields: readonly FilterField[], options?: FilterChipOptions): ActiveFilter[];
|
|
21
|
+
//# sourceMappingURL=listFilters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listFilters.d.ts","sourceRoot":"","sources":["../../src/templates/listFilters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAoBrD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,GACZ,WAAW,EAAE,CAKf;AAED,uDAAuD;AACvD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,GAAG,EAAE,MAAM,GACV,WAAW,EAAE,CAGf;AAsBD,MAAM,WAAW,iBAAiB;IAChC,6GAA6G;IAC7G,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACxE,+DAA+D;IAC/D,cAAc,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC;CAC/C;AAED;;;GAGG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,MAAM,EAAE,SAAS,WAAW,EAAE,EAC9B,OAAO,GAAE,iBAAsB,GAC9B,YAAY,EAAE,CAkChB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { RitimTone } from '../molecules/StatusGlyph';
|
|
3
|
+
export interface RitimStatus {
|
|
4
|
+
key: string;
|
|
5
|
+
label: string;
|
|
6
|
+
tone: RitimTone;
|
|
7
|
+
/** One quiet line under the label (e.g. since when, last contact). */
|
|
8
|
+
detail?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
export interface RitimTag {
|
|
11
|
+
key: string;
|
|
12
|
+
label: ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const LOUD_TONES: ReadonlySet<RitimTone>;
|
|
15
|
+
/** A record's states as shape + colour + text (never colour alone); calm states stay in secondary ink. */
|
|
16
|
+
export declare function RitimStatusList({ statuses, label }: {
|
|
17
|
+
statuses: RitimStatus[];
|
|
18
|
+
label: string;
|
|
19
|
+
}): import("react").JSX.Element;
|
|
20
|
+
/** Small outlined chips (flags, transport, tags). */
|
|
21
|
+
export declare function RitimTagList({ tags }: {
|
|
22
|
+
tags: RitimTag[];
|
|
23
|
+
}): import("react").JSX.Element;
|
|
24
|
+
/** A figure's ink: its tone only while known and above zero (colour means "look here"), muted while unknown. */
|
|
25
|
+
export declare function ritimFigureColor(value: ReactNode | undefined, tone?: RitimTone): string;
|
|
26
|
+
//# sourceMappingURL=ritimIdentity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ritimIdentity.d.ts","sourceRoot":"","sources":["../../src/templates/ritimIdentity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAA+B,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAEvF,MAAM,WAAW,WAAW;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,SAAS,CAAC;IAChB,sEAAsE;IACtE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAED,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,eAAO,MAAM,UAAU,EAAE,WAAW,CAAC,SAAS,CAA6B,CAAC;AAE5E,0GAA0G;AAC1G,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;IAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,+BAuB9F;AAED,qDAAqD;AACrD,wBAAgB,YAAY,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,QAAQ,EAAE,CAAA;CAAE,+BAiB1D;AAED,gHAAgH;AAChH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAKvF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lena Ritmi sticky pane height: from where the pane starts to the bottom of the window, so its footer is always on
|
|
3
|
+
* screen — whether it starts mid-page under the heading or sticks to the top after a scroll. The list filter rail and
|
|
4
|
+
* the master pane of a master-detail page use it; the pane scrolls inside itself.
|
|
5
|
+
*/
|
|
6
|
+
export declare function useViewportFillHeight(active: boolean): {
|
|
7
|
+
ref: import('react').RefObject<HTMLElement | null>;
|
|
8
|
+
height: number | undefined;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=useViewportFillHeight.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useViewportFillHeight.d.ts","sourceRoot":"","sources":["../../src/templates/useViewportFillHeight.ts"],"names":[],"mappings":"AAeA;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,OAAO;;;EA4BpD"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { Theme } from './themeContext';
|
|
2
|
+
import { Skin, Theme } from './themeContext';
|
|
3
3
|
interface ThemeProviderProps {
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
defaultTheme?: Theme;
|
|
6
|
+
defaultSkin?: Skin;
|
|
6
7
|
}
|
|
7
|
-
export declare function ThemeProvider({ children, defaultTheme }: ThemeProviderProps): import("react").JSX.Element;
|
|
8
|
+
export declare function ThemeProvider({ children, defaultTheme, defaultSkin }: ThemeProviderProps): import("react").JSX.Element;
|
|
8
9
|
export {};
|
|
9
10
|
//# sourceMappingURL=ThemeProvider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,KAAK,KAAK,EAEX,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AACf,OAAO,EAIL,KAAK,IAAI,EACT,KAAK,KAAK,EAEX,MAAM,gBAAgB,CAAC;AA8DxB,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,SAAS,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,WAAW,CAAC,EAAE,IAAI,CAAC;CACpB;AAED,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,EAAE,kBAAkB,+BA+ExF"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
export type Theme = "dark" | "light";
|
|
2
2
|
export type Density = "comfortable" | "compact" | "spacious";
|
|
3
3
|
export type Motion = "full" | "reduced";
|
|
4
|
+
export type Skin = "classic" | "ritim";
|
|
4
5
|
export interface ThemeContextValue {
|
|
5
6
|
theme: Theme;
|
|
6
7
|
density: Density;
|
|
7
8
|
motion: Motion;
|
|
9
|
+
skin: Skin;
|
|
8
10
|
setTheme: (theme: Theme) => void;
|
|
9
11
|
setDensity: (density: Density) => void;
|
|
10
12
|
setMotion: (motion: Motion) => void;
|
|
13
|
+
setSkin: (skin: Skin) => void;
|
|
11
14
|
toggleTheme: () => void;
|
|
12
15
|
}
|
|
13
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"themeContext.d.ts","sourceRoot":"","sources":["../../src/theme/themeContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACrC,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;AAC7D,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"themeContext.d.ts","sourceRoot":"","sources":["../../src/theme/themeContext.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;AACrC,MAAM,MAAM,OAAO,GAAG,aAAa,GAAG,SAAS,GAAG,UAAU,CAAC;AAC7D,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;AACxC,MAAM,MAAM,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC;AAEvC,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,SAAS,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC9B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,YAAY,mDAAgD,CAAC"}
|