@optimum-intelligence/opti-ui 0.9.1 → 1.0.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/CHANGELOG.md +99 -0
- package/README.md +5 -1
- package/dist/components/app-shell/AppShell.d.ts +30 -1
- package/dist/components/app-shell/AppShell.js +387 -236
- package/dist/components/app-shell/AppShell.js.map +1 -1
- package/dist/components/avatar/Avatar.d.ts +1 -1
- package/dist/components/avatar/Avatar.js +64 -52
- package/dist/components/avatar/Avatar.js.map +1 -1
- package/dist/components/calendar/Calendar.js +6 -4
- package/dist/components/calendar/Calendar.js.map +1 -1
- package/dist/components/calendar/date-utils.js +1 -1
- package/dist/components/calendar/date-utils.js.map +1 -1
- package/dist/components/card/Card.d.ts +24 -5
- package/dist/components/card/Card.js +36 -23
- package/dist/components/card/Card.js.map +1 -1
- package/dist/components/collapsible/Collapsible.d.ts +8 -1
- package/dist/components/collapsible/Collapsible.js +32 -25
- package/dist/components/collapsible/Collapsible.js.map +1 -1
- package/dist/components/data-table/DataTable.d.ts +21 -4
- package/dist/components/data-table/DataTable.js +310 -100
- package/dist/components/data-table/DataTable.js.map +1 -1
- package/dist/components/data-table/DataTableContent.d.ts +1 -7
- package/dist/components/data-table/DataTableContent.js +209 -243
- package/dist/components/data-table/DataTableContent.js.map +1 -1
- package/dist/components/data-table/DataTableFilters.js +47 -57
- package/dist/components/data-table/DataTableFilters.js.map +1 -1
- package/dist/components/data-table/DataTableRow.js +105 -90
- package/dist/components/data-table/DataTableRow.js.map +1 -1
- package/dist/components/data-table/layout.d.ts +0 -5
- package/dist/components/data-table/layout.js +1 -23
- package/dist/components/data-table/layout.js.map +1 -1
- package/dist/components/data-table/types.d.ts +5 -2
- package/dist/components/data-table/useDataTable.js +249 -221
- package/dist/components/data-table/useDataTable.js.map +1 -1
- package/dist/components/date-picker/DateRangePicker.js +1 -0
- package/dist/components/date-picker/DateRangePicker.js.map +1 -1
- package/dist/components/date-picker/PickerField.js +98 -101
- package/dist/components/date-picker/PickerField.js.map +1 -1
- package/dist/components/description-list/DescriptionList.d.ts +3 -1
- package/dist/components/description-list/DescriptionList.js +3 -1
- package/dist/components/description-list/DescriptionList.js.map +1 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/drawer/Drawer.js +173 -87
- package/dist/components/drawer/Drawer.js.map +1 -1
- package/dist/components/file-upload/FileUpload.js +7 -0
- package/dist/components/file-upload/FileUpload.js.map +1 -1
- package/dist/components/link/Link.d.ts +1 -1
- package/dist/components/link/Link.js +57 -74
- package/dist/components/link/Link.js.map +1 -1
- package/dist/components/map/Map.d.ts +14 -2
- package/dist/components/map/Map.js +194 -153
- package/dist/components/map/Map.js.map +1 -1
- package/dist/components/pagination/Pagination.js +2 -0
- package/dist/components/pagination/Pagination.js.map +1 -1
- package/dist/components/scroll-area/ScrollArea.d.ts +18 -2
- package/dist/components/scroll-area/ScrollArea.js +89 -61
- package/dist/components/scroll-area/ScrollArea.js.map +1 -1
- package/dist/components/spinner/Spinner.js +34 -26
- package/dist/components/spinner/Spinner.js.map +1 -1
- package/dist/components/stat-card/StatCard.js +36 -22
- package/dist/components/stat-card/StatCard.js.map +1 -1
- package/dist/components/table/Table.d.ts +9 -2
- package/dist/components/table/Table.js +87 -63
- package/dist/components/table/Table.js.map +1 -1
- package/dist/components/tag/Tag.js +79 -103
- package/dist/components/tag/Tag.js.map +1 -1
- package/dist/components/toolbar/Toolbar.d.ts +2 -1
- package/dist/components/toolbar/Toolbar.js +23 -15
- package/dist/components/toolbar/Toolbar.js.map +1 -1
- package/dist/components/typography/Typography.d.ts +7 -1
- package/dist/components/typography/Typography.js +21 -18
- package/dist/components/typography/Typography.js.map +1 -1
- package/dist/components.json +134 -26
- package/dist/fonts/Montserrat-OFL.txt +93 -0
- package/dist/fonts/Poppins-OFL.txt +93 -0
- package/dist/fonts/montserrat-latin-ext.woff2 +0 -0
- package/dist/fonts/montserrat-latin.woff2 +0 -0
- package/dist/fonts/poppins-latin-400.woff2 +0 -0
- package/dist/fonts/poppins-latin-500.woff2 +0 -0
- package/dist/fonts/poppins-latin-600.woff2 +0 -0
- package/dist/fonts/poppins-latin-700.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-400.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-500.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-600.woff2 +0 -0
- package/dist/fonts/poppins-latin-ext-700.woff2 +0 -0
- package/dist/fonts.css +104 -4
- package/dist/index.js +2 -2
- package/dist/labels/Labels.d.ts +12 -0
- package/dist/labels/Labels.js +6 -0
- package/dist/labels/Labels.js.map +1 -1
- package/dist/labels/hu.js +9 -3
- package/dist/labels/hu.js.map +1 -1
- package/dist/llms-full.txt +103 -20
- package/dist/llms.txt +15 -10
- package/dist/opti-ui.css +567 -197
- package/dist/reset.css +33 -0
- package/dist/utils/focus.d.ts +8 -0
- package/dist/utils/focus.js +39 -0
- package/dist/utils/focus.js.map +1 -0
- package/package.json +2 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/fonts.css
CHANGED
|
@@ -1,7 +1,107 @@
|
|
|
1
|
-
/* Optional: loads the default Opti UI typefaces
|
|
2
|
-
|
|
3
|
-
Skip this file if your app self-hosts fonts or
|
|
4
|
-
|
|
1
|
+
/* Optional: loads the default Opti UI typefaces, all shipped with the package, so no request leaves the app (no
|
|
2
|
+
Google Fonts): Poppins (400–700), Montserrat (variable) and JetBrains Mono (variable), latin and latin-ext. Each
|
|
3
|
+
is under the SIL Open Font License 1.1, see fonts/*-OFL.txt. Skip this file if your app self-hosts fonts or
|
|
4
|
+
overrides --oui-font-*. */
|
|
5
|
+
|
|
6
|
+
@font-face {
|
|
7
|
+
font-family: 'Poppins';
|
|
8
|
+
font-style: normal;
|
|
9
|
+
font-display: swap;
|
|
10
|
+
font-weight: 400;
|
|
11
|
+
src: url('./fonts/poppins-latin-ext-400.woff2') format('woff2');
|
|
12
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
13
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@font-face {
|
|
17
|
+
font-family: 'Poppins';
|
|
18
|
+
font-style: normal;
|
|
19
|
+
font-display: swap;
|
|
20
|
+
font-weight: 400;
|
|
21
|
+
src: url('./fonts/poppins-latin-400.woff2') format('woff2');
|
|
22
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
23
|
+
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@font-face {
|
|
27
|
+
font-family: 'Poppins';
|
|
28
|
+
font-style: normal;
|
|
29
|
+
font-display: swap;
|
|
30
|
+
font-weight: 500;
|
|
31
|
+
src: url('./fonts/poppins-latin-ext-500.woff2') format('woff2');
|
|
32
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
33
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@font-face {
|
|
37
|
+
font-family: 'Poppins';
|
|
38
|
+
font-style: normal;
|
|
39
|
+
font-display: swap;
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
src: url('./fonts/poppins-latin-500.woff2') format('woff2');
|
|
42
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
43
|
+
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
@font-face {
|
|
47
|
+
font-family: 'Poppins';
|
|
48
|
+
font-style: normal;
|
|
49
|
+
font-display: swap;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
src: url('./fonts/poppins-latin-ext-600.woff2') format('woff2');
|
|
52
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
53
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@font-face {
|
|
57
|
+
font-family: 'Poppins';
|
|
58
|
+
font-style: normal;
|
|
59
|
+
font-display: swap;
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
src: url('./fonts/poppins-latin-600.woff2') format('woff2');
|
|
62
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
63
|
+
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@font-face {
|
|
67
|
+
font-family: 'Poppins';
|
|
68
|
+
font-style: normal;
|
|
69
|
+
font-display: swap;
|
|
70
|
+
font-weight: 700;
|
|
71
|
+
src: url('./fonts/poppins-latin-ext-700.woff2') format('woff2');
|
|
72
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
73
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
@font-face {
|
|
77
|
+
font-family: 'Poppins';
|
|
78
|
+
font-style: normal;
|
|
79
|
+
font-display: swap;
|
|
80
|
+
font-weight: 700;
|
|
81
|
+
src: url('./fonts/poppins-latin-700.woff2') format('woff2');
|
|
82
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
83
|
+
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@font-face {
|
|
87
|
+
font-family: 'Montserrat';
|
|
88
|
+
font-style: normal;
|
|
89
|
+
font-display: swap;
|
|
90
|
+
font-weight: 100 900;
|
|
91
|
+
src: url('./fonts/montserrat-latin-ext.woff2') format('woff2');
|
|
92
|
+
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
|
|
93
|
+
U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@font-face {
|
|
97
|
+
font-family: 'Montserrat';
|
|
98
|
+
font-style: normal;
|
|
99
|
+
font-display: swap;
|
|
100
|
+
font-weight: 100 900;
|
|
101
|
+
src: url('./fonts/montserrat-latin.woff2') format('woff2');
|
|
102
|
+
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
|
|
103
|
+
U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
|
104
|
+
}
|
|
5
105
|
|
|
6
106
|
@font-face {
|
|
7
107
|
font-family: 'JetBrains Mono';
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import { DateConfigProvider, useDateConfig } from "./components/calendar/DateCon
|
|
|
8
8
|
import { LabelsProvider, useLabels } from "./labels/Labels.js";
|
|
9
9
|
import { huLabels } from "./labels/hu.js";
|
|
10
10
|
import { ArrowDownIcon, ArrowUpIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleCheckIcon, CircleIcon, CircleXIcon, ClockIcon, ColumnsIcon, DownloadIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileIcon, FilterIcon, InfoIcon, LayersIcon, MenuIcon, MinusIcon, MoreHorizontalIcon, PencilIcon, PlusIcon, SearchIcon, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UploadIcon, XIcon } from "./icons/index.js";
|
|
11
|
-
import { AppShell, Grid, Navbar, NavbarBrand, NavbarFooter, NavbarGroup, NavbarHeader, NavbarItem, NavbarSection, NavbarSectionLabel, PageHeader } from "./components/app-shell/AppShell.js";
|
|
11
|
+
import { AppShell, Grid, Navbar, NavbarBrand, NavbarFooter, NavbarGroup, NavbarHeader, NavbarItem, NavbarSection, NavbarSectionLabel, Page, PageHeader } from "./components/app-shell/AppShell.js";
|
|
12
12
|
import { Card, CardActions, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from "./components/card/Card.js";
|
|
13
13
|
import { Skeleton, SkeletonText } from "./components/skeleton/Skeleton.js";
|
|
14
14
|
import { StatCard } from "./components/stat-card/StatCard.js";
|
|
@@ -62,4 +62,4 @@ import { EmptyState } from "./components/empty-state/EmptyState.js";
|
|
|
62
62
|
import { useDataTable } from "./components/data-table/useDataTable.js";
|
|
63
63
|
import { DataTable } from "./components/data-table/DataTable.js";
|
|
64
64
|
import { DescriptionItem, DescriptionList } from "./components/description-list/DescriptionList.js";
|
|
65
|
-
export { Accordion, Alert, AlertDialog, AppShell, ArrowDownIcon, ArrowUpIcon, Avatar, AvatarGroup, Badge, Breadcrumb, Breadcrumbs, Button, Calendar, CalendarIcon, Card, CardActions, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckIcon, Checkbox, CheckboxGroup, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleCheckIcon, CircleIcon, CircleXIcon, ClockIcon, Collapsible, ColumnsIcon, Combobox, CommandPalette, ConfirmDialog, ContextMenu, DataTable, DateConfigProvider, DatePicker, DateRangePicker, DateTimePicker, DescriptionItem, DescriptionList, Dialog, DownloadIcon, Drawer, Dropzone, EmptyState, ExternalLinkIcon, EyeIcon, EyeOffIcon, Eyebrow, Field, Fieldset, FileIcon, FileItem, FileUpload, FilterIcon, Form, FormField, Grid, Heading, IconButton, InfoIcon, Input, LabelsProvider, LayersIcon, Link, Menu, MenuIcon, Meter, MinusIcon, MoreHorizontalIcon, NARROW_SCREEN, Navbar, NavbarBrand, NavbarFooter, NavbarGroup, NavbarHeader, NavbarItem, NavbarSection, NavbarSectionLabel, NumberField, PageHeader, Pagination, PasswordField, PasswordInput, PencilIcon, PlusIcon, Popover, PreviewCard, Progress, Radio, RadioGroup, RangeCalendar, SHELL_COLLAPSED, ScrollArea, SearchIcon, SearchInput, SegmentedControl, Select, Separator, Skeleton, SkeletonText, Slider, Spinner, Stack, StatCard, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, Tag, Text, TextField, Textarea, TextareaField, ThemeProvider, ToastProvider, Toggle, ToggleGroup, Toolbar, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UploadIcon, XIcon, createTheme, createToastManager, cx, formatDate, formatFileSize, getPageItems, huLabels, matchesQuery, normalizeText, seriesColor, themeToStyle, useDataTable, useDataTableContext, useDateConfig, useLabels, useMediaQuery, usePortalContainer, useToast, withClass };
|
|
65
|
+
export { Accordion, Alert, AlertDialog, AppShell, ArrowDownIcon, ArrowUpIcon, Avatar, AvatarGroup, Badge, Breadcrumb, Breadcrumbs, Button, Calendar, CalendarIcon, Card, CardActions, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, CheckIcon, Checkbox, CheckboxGroup, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsLeftIcon, ChevronsRightIcon, ChevronsUpDownIcon, CircleCheckIcon, CircleIcon, CircleXIcon, ClockIcon, Collapsible, ColumnsIcon, Combobox, CommandPalette, ConfirmDialog, ContextMenu, DataTable, DateConfigProvider, DatePicker, DateRangePicker, DateTimePicker, DescriptionItem, DescriptionList, Dialog, DownloadIcon, Drawer, Dropzone, EmptyState, ExternalLinkIcon, EyeIcon, EyeOffIcon, Eyebrow, Field, Fieldset, FileIcon, FileItem, FileUpload, FilterIcon, Form, FormField, Grid, Heading, IconButton, InfoIcon, Input, LabelsProvider, LayersIcon, Link, Menu, MenuIcon, Meter, MinusIcon, MoreHorizontalIcon, NARROW_SCREEN, Navbar, NavbarBrand, NavbarFooter, NavbarGroup, NavbarHeader, NavbarItem, NavbarSection, NavbarSectionLabel, NumberField, Page, PageHeader, Pagination, PasswordField, PasswordInput, PencilIcon, PlusIcon, Popover, PreviewCard, Progress, Radio, RadioGroup, RangeCalendar, SHELL_COLLAPSED, ScrollArea, SearchIcon, SearchInput, SegmentedControl, Select, Separator, Skeleton, SkeletonText, Slider, Spinner, Stack, StatCard, Stepper, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, Tag, Text, TextField, Textarea, TextareaField, ThemeProvider, ToastProvider, Toggle, ToggleGroup, Toolbar, Tooltip, TrashIcon, TrendingDownIcon, TrendingUpIcon, TriangleAlertIcon, UploadIcon, XIcon, createTheme, createToastManager, cx, formatDate, formatFileSize, getPageItems, huLabels, matchesQuery, normalizeText, seriesColor, themeToStyle, useDataTable, useDataTableContext, useDateConfig, useLabels, useMediaQuery, usePortalContainer, useToast, withClass };
|
package/dist/labels/Labels.d.ts
CHANGED
|
@@ -58,6 +58,18 @@ export interface Labels {
|
|
|
58
58
|
navigation: string;
|
|
59
59
|
/** Close button of the `AppShell` navigation drawer. */
|
|
60
60
|
closeNavigation: string;
|
|
61
|
+
/** Accessible name of the `Navbar`'s `<nav>`. */
|
|
62
|
+
mainNavigation: string;
|
|
63
|
+
/** The `AppShell` link that skips the navigation, shown when it gets keyboard focus. */
|
|
64
|
+
skipToContent: string;
|
|
65
|
+
/** Hidden text after an `external` `Link`. */
|
|
66
|
+
opensInNewTab: string;
|
|
67
|
+
/** The `+N` counter of an `AvatarGroup`. */
|
|
68
|
+
moreAvatars: (count: number) => string;
|
|
69
|
+
/** Hidden text before a rising `StatCard` delta. */
|
|
70
|
+
trendUp: string;
|
|
71
|
+
/** Hidden text before a falling `StatCard` delta. */
|
|
72
|
+
trendDown: string;
|
|
61
73
|
/** Texts of `Calendar` and `RangeCalendar`. */
|
|
62
74
|
calendar: Partial<CalendarLabels>;
|
|
63
75
|
/** Texts of `DatePicker`. */
|
package/dist/labels/Labels.js
CHANGED
|
@@ -29,6 +29,12 @@ var defaultLabels = {
|
|
|
29
29
|
quickNavigation: "Quick navigation",
|
|
30
30
|
navigation: "Navigation",
|
|
31
31
|
closeNavigation: "Close navigation",
|
|
32
|
+
mainNavigation: "Main",
|
|
33
|
+
skipToContent: "Skip to content",
|
|
34
|
+
opensInNewTab: "(opens in a new tab)",
|
|
35
|
+
moreAvatars: (count) => `${count} more`,
|
|
36
|
+
trendUp: "Up",
|
|
37
|
+
trendDown: "Down",
|
|
32
38
|
calendar: {},
|
|
33
39
|
datePicker: {},
|
|
34
40
|
dateRangePicker: {},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Labels.js","names":["React","CalendarLabels","DataTableLabels","DatePickerLabels","DateRangePickerLabels","FileUploadLabels","PaginationLabels","StepperLabels","Labels","close","dismiss","cancel","loading","selectPlaceholder","clearSearch","showPassword","decrease","increase","openList","clearSelection","removeItem","label","remove","moreSelected","count","noResults","commandPalette","commandSearch","breadcrumbs","collapseNavbar","expandNavbar","openNavigation","more","quickNavigation","navigation","closeNavigation","calendar","Partial","datePicker","dateRangePicker","pagination","stepper","fileUpload","dataTable","defaultLabels","nested","const","LabelsContext","createContext","LabelsProviderProps","labels","children","ReactNode","LabelsProvider","t0","$","_c","parent","useContext","value","key","t1","useLabels","_c"],"sources":["../../src/labels/Labels.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { CalendarLabels } from '../components/calendar/Calendar';\nimport type { DataTableLabels } from '../components/data-table/types';\nimport type { DatePickerLabels } from '../components/date-picker/DatePicker';\nimport type { DateRangePickerLabels } from '../components/date-picker/DateRangePicker';\nimport type { FileUploadLabels } from '../components/file-upload/FileUpload';\nimport type { PaginationLabels } from '../components/pagination/Pagination';\nimport type { StepperLabels } from '../components/stepper/Stepper';\n\n/** Every built-in text of the library, for `LabelsProvider`. */\nexport interface Labels {\n /** Close buttons of `Dialog`, `Drawer` and toasts. */\n close: string;\n /** Dismiss button of an `Alert`. */\n dismiss: string;\n /** Cancel button of a `ConfirmDialog`. */\n cancel: string;\n /** Accessible name of a `Spinner`. */\n loading: string;\n /** Placeholder of a `Select` with nothing chosen. */\n selectPlaceholder: string;\n /** Clear button of a `SearchInput`. */\n clearSearch: string;\n /** Show/hide button of a `PasswordInput`. */\n showPassword: string;\n /** − button of a `NumberField`. */\n decrease: string;\n /** + button of a `NumberField`. */\n increase: string;\n /** Button that opens a `Combobox` list. */\n openList: string;\n /** Button that clears a `Combobox`. */\n clearSelection: string;\n /** Remove button of a chip in a multiple `Combobox`. */\n removeItem: (label: string) => string;\n /** Remove button of a `Combobox.Chip` whose content is not plain text. */\n remove: string;\n /** The `+N` chip of a multiple `Combobox` with `maxChips`. */\n moreSelected: (count: number) => string;\n /** Shown when a `Combobox` filter or a `CommandPalette` search matches nothing. */\n noResults: string;\n /** Accessible name of the `CommandPalette` dialog. */\n commandPalette: string;\n /** Placeholder of the `CommandPalette` search input. */\n commandSearch: string;\n /** Accessible name of `Breadcrumbs`. */\n breadcrumbs: string;\n /** Collapse button of the `Navbar`. */\n collapseNavbar: string;\n /** Expand button of a collapsed `Navbar`. */\n expandNavbar: string;\n /** `AppShell` mobile menu button, shown when there is no tab bar. */\n openNavigation: string;\n /** `AppShell` tab that opens the full navigation. */\n more: string;\n /** Accessible name of the `AppShell` mobile tab bar. */\n quickNavigation: string;\n /** Accessible name of the `AppShell` navigation drawer. */\n navigation: string;\n /** Close button of the `AppShell` navigation drawer. */\n closeNavigation: string;\n /** Texts of `Calendar` and `RangeCalendar`. */\n calendar: Partial<CalendarLabels>;\n /** Texts of `DatePicker`. */\n datePicker: Partial<DatePickerLabels>;\n /** Texts of `DateRangePicker`. */\n dateRangePicker: Partial<DateRangePickerLabels>;\n /** Texts of `Pagination`. */\n pagination: Partial<PaginationLabels>;\n /** Texts of `Stepper`. */\n stepper: Partial<StepperLabels>;\n /** Texts of `FileUpload`. */\n fileUpload: Partial<FileUploadLabels>;\n /** Texts of `DataTable`. */\n dataTable: Partial<DataTableLabels>;\n}\n\nconst defaultLabels: Labels = {\n close: 'Close',\n dismiss: 'Dismiss',\n cancel: 'Cancel',\n loading: 'Loading',\n selectPlaceholder: 'Select…',\n clearSearch: 'Clear search',\n showPassword: 'Show password',\n decrease: 'Decrease',\n increase: 'Increase',\n openList: 'Open list',\n clearSelection: 'Clear selection',\n removeItem: (label) => `Remove ${label}`,\n remove: 'Remove',\n moreSelected: (count) => `${count} more selected`,\n noResults: 'No results found.',\n commandPalette: 'Command palette',\n commandSearch: 'Search…',\n breadcrumbs: 'Breadcrumb',\n collapseNavbar: 'Collapse',\n expandNavbar: 'Expand',\n openNavigation: 'Open navigation',\n more: 'More',\n quickNavigation: 'Quick navigation',\n navigation: 'Navigation',\n closeNavigation: 'Close navigation',\n calendar: {},\n datePicker: {},\n dateRangePicker: {},\n pagination: {},\n stepper: {},\n fileUpload: {},\n dataTable: {},\n};\n\nconst nested = ['calendar', 'datePicker', 'dateRangePicker', 'pagination', 'stepper', 'fileUpload', 'dataTable'] as const;\n\nconst LabelsContext = React.createContext<Labels>(defaultLabels);\n\nexport interface LabelsProviderProps {\n /** Texts to replace. Nested providers override only what they pass; props on a component still win. */\n labels: Partial<Labels>;\n /** The subtree that uses these texts. */\n children?: React.ReactNode;\n}\n\n/**\n * Replaces the library's built-in English texts (button names, placeholders, table and calendar texts) for\n * everything inside it, so an app translates them once instead of per component.\n *\n * @example\n * <LabelsProvider labels={{ close: 'Bezárás', selectPlaceholder: 'Válasszon…', dataTable: { search: 'Keresés…' } }}>\n * <App />\n * </LabelsProvider>\n */\nexport function LabelsProvider({ labels, children }: LabelsProviderProps) {\n const parent = React.useContext(LabelsContext);\n const value: Labels = { ...parent, ...labels };\n for (const key of nested) value[key] = { ...parent[key], ...labels[key] } as never;\n return <LabelsContext value={value}>{children}</LabelsContext>;\n}\n\n/** The texts from the nearest `LabelsProvider`, with English defaults for the rest. */\nexport function useLabels(): Labels {\n return React.useContext(LabelsContext);\n}\n"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"Labels.js","names":["React","CalendarLabels","DataTableLabels","DatePickerLabels","DateRangePickerLabels","FileUploadLabels","PaginationLabels","StepperLabels","Labels","close","dismiss","cancel","loading","selectPlaceholder","clearSearch","showPassword","decrease","increase","openList","clearSelection","removeItem","label","remove","moreSelected","count","noResults","commandPalette","commandSearch","breadcrumbs","collapseNavbar","expandNavbar","openNavigation","more","quickNavigation","navigation","closeNavigation","mainNavigation","skipToContent","opensInNewTab","moreAvatars","trendUp","trendDown","calendar","Partial","datePicker","dateRangePicker","pagination","stepper","fileUpload","dataTable","defaultLabels","nested","const","LabelsContext","createContext","LabelsProviderProps","labels","children","ReactNode","LabelsProvider","t0","$","_c","parent","useContext","value","key","t1","useLabels","_c"],"sources":["../../src/labels/Labels.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { CalendarLabels } from '../components/calendar/Calendar';\nimport type { DataTableLabels } from '../components/data-table/types';\nimport type { DatePickerLabels } from '../components/date-picker/DatePicker';\nimport type { DateRangePickerLabels } from '../components/date-picker/DateRangePicker';\nimport type { FileUploadLabels } from '../components/file-upload/FileUpload';\nimport type { PaginationLabels } from '../components/pagination/Pagination';\nimport type { StepperLabels } from '../components/stepper/Stepper';\n\n/** Every built-in text of the library, for `LabelsProvider`. */\nexport interface Labels {\n /** Close buttons of `Dialog`, `Drawer` and toasts. */\n close: string;\n /** Dismiss button of an `Alert`. */\n dismiss: string;\n /** Cancel button of a `ConfirmDialog`. */\n cancel: string;\n /** Accessible name of a `Spinner`. */\n loading: string;\n /** Placeholder of a `Select` with nothing chosen. */\n selectPlaceholder: string;\n /** Clear button of a `SearchInput`. */\n clearSearch: string;\n /** Show/hide button of a `PasswordInput`. */\n showPassword: string;\n /** − button of a `NumberField`. */\n decrease: string;\n /** + button of a `NumberField`. */\n increase: string;\n /** Button that opens a `Combobox` list. */\n openList: string;\n /** Button that clears a `Combobox`. */\n clearSelection: string;\n /** Remove button of a chip in a multiple `Combobox`. */\n removeItem: (label: string) => string;\n /** Remove button of a `Combobox.Chip` whose content is not plain text. */\n remove: string;\n /** The `+N` chip of a multiple `Combobox` with `maxChips`. */\n moreSelected: (count: number) => string;\n /** Shown when a `Combobox` filter or a `CommandPalette` search matches nothing. */\n noResults: string;\n /** Accessible name of the `CommandPalette` dialog. */\n commandPalette: string;\n /** Placeholder of the `CommandPalette` search input. */\n commandSearch: string;\n /** Accessible name of `Breadcrumbs`. */\n breadcrumbs: string;\n /** Collapse button of the `Navbar`. */\n collapseNavbar: string;\n /** Expand button of a collapsed `Navbar`. */\n expandNavbar: string;\n /** `AppShell` mobile menu button, shown when there is no tab bar. */\n openNavigation: string;\n /** `AppShell` tab that opens the full navigation. */\n more: string;\n /** Accessible name of the `AppShell` mobile tab bar. */\n quickNavigation: string;\n /** Accessible name of the `AppShell` navigation drawer. */\n navigation: string;\n /** Close button of the `AppShell` navigation drawer. */\n closeNavigation: string;\n /** Accessible name of the `Navbar`'s `<nav>`. */\n mainNavigation: string;\n /** The `AppShell` link that skips the navigation, shown when it gets keyboard focus. */\n skipToContent: string;\n /** Hidden text after an `external` `Link`. */\n opensInNewTab: string;\n /** The `+N` counter of an `AvatarGroup`. */\n moreAvatars: (count: number) => string;\n /** Hidden text before a rising `StatCard` delta. */\n trendUp: string;\n /** Hidden text before a falling `StatCard` delta. */\n trendDown: string;\n /** Texts of `Calendar` and `RangeCalendar`. */\n calendar: Partial<CalendarLabels>;\n /** Texts of `DatePicker`. */\n datePicker: Partial<DatePickerLabels>;\n /** Texts of `DateRangePicker`. */\n dateRangePicker: Partial<DateRangePickerLabels>;\n /** Texts of `Pagination`. */\n pagination: Partial<PaginationLabels>;\n /** Texts of `Stepper`. */\n stepper: Partial<StepperLabels>;\n /** Texts of `FileUpload`. */\n fileUpload: Partial<FileUploadLabels>;\n /** Texts of `DataTable`. */\n dataTable: Partial<DataTableLabels>;\n}\n\nconst defaultLabels: Labels = {\n close: 'Close',\n dismiss: 'Dismiss',\n cancel: 'Cancel',\n loading: 'Loading',\n selectPlaceholder: 'Select…',\n clearSearch: 'Clear search',\n showPassword: 'Show password',\n decrease: 'Decrease',\n increase: 'Increase',\n openList: 'Open list',\n clearSelection: 'Clear selection',\n removeItem: (label) => `Remove ${label}`,\n remove: 'Remove',\n moreSelected: (count) => `${count} more selected`,\n noResults: 'No results found.',\n commandPalette: 'Command palette',\n commandSearch: 'Search…',\n breadcrumbs: 'Breadcrumb',\n collapseNavbar: 'Collapse',\n expandNavbar: 'Expand',\n openNavigation: 'Open navigation',\n more: 'More',\n quickNavigation: 'Quick navigation',\n navigation: 'Navigation',\n closeNavigation: 'Close navigation',\n mainNavigation: 'Main',\n skipToContent: 'Skip to content',\n opensInNewTab: '(opens in a new tab)',\n moreAvatars: (count) => `${count} more`,\n trendUp: 'Up',\n trendDown: 'Down',\n calendar: {},\n datePicker: {},\n dateRangePicker: {},\n pagination: {},\n stepper: {},\n fileUpload: {},\n dataTable: {},\n};\n\nconst nested = ['calendar', 'datePicker', 'dateRangePicker', 'pagination', 'stepper', 'fileUpload', 'dataTable'] as const;\n\nconst LabelsContext = React.createContext<Labels>(defaultLabels);\n\nexport interface LabelsProviderProps {\n /** Texts to replace. Nested providers override only what they pass; props on a component still win. */\n labels: Partial<Labels>;\n /** The subtree that uses these texts. */\n children?: React.ReactNode;\n}\n\n/**\n * Replaces the library's built-in English texts (button names, placeholders, table and calendar texts) for\n * everything inside it, so an app translates them once instead of per component.\n *\n * @example\n * <LabelsProvider labels={{ close: 'Bezárás', selectPlaceholder: 'Válasszon…', dataTable: { search: 'Keresés…' } }}>\n * <App />\n * </LabelsProvider>\n */\nexport function LabelsProvider({ labels, children }: LabelsProviderProps) {\n const parent = React.useContext(LabelsContext);\n const value: Labels = { ...parent, ...labels };\n for (const key of nested) value[key] = { ...parent[key], ...labels[key] } as never;\n return <LabelsContext value={value}>{children}</LabelsContext>;\n}\n\n/** The texts from the nearest `LabelsProvider`, with English defaults for the rest. */\nexport function useLabels(): Labels {\n return React.useContext(LabelsContext);\n}\n"],"mappings":";;;;;AAyFA,IAAMkD,gBAAwB;CAC5BzC,OAAO;CACPC,SAAS;CACTC,QAAQ;CACRC,SAAS;CACTC,mBAAmB;CACnBC,aAAa;CACbC,cAAc;CACdC,UAAU;CACVC,UAAU;CACVC,UAAU;CACVC,gBAAgB;CAChBC,aAAaC,UAAU,UAAUA;CACjCC,QAAQ;CACRC,eAAeC,UAAU,GAAGA,MAAK;CACjCC,WAAW;CACXC,gBAAgB;CAChBC,eAAe;CACfC,aAAa;CACbC,gBAAgB;CAChBC,cAAc;CACdC,gBAAgB;CAChBC,MAAM;CACNC,iBAAiB;CACjBC,YAAY;CACZC,iBAAiB;CACjBC,gBAAgB;CAChBC,eAAe;CACfC,eAAe;CACfC,cAAcf,UAAU,GAAGA,MAAK;CAChCgB,SAAS;CACTC,WAAW;CACXC,UAAU,CAAC;CACXE,YAAY,CAAC;CACbC,iBAAiB,CAAC;CAClBC,YAAY,CAAC;CACbC,SAAS,CAAC;CACVC,YAAY,CAAC;CACbC,WAAW,CAAC;AACd;AAEA,IAAME,SAAS;CAAC;CAAY;CAAc;CAAmB;CAAc;CAAW;CAAc;AAAW;AAE/G,IAAME,gBAAgBrD,MAAMsD,cAAsBJ,aAAa;;;;;;;;;;AAkB/D,SAAOS,eAAAC,IAAA;CAAA,MAAAC,IAAAC,EAAA,CAAA;CAAwB,MAAA,EAAAN,QAAAC,aAAAG;CAC7B,MAAAG,SAAe/D,MAAKgE,WAAYX,aAAa;CAAE,IAAAY;CAAA,IAAAJ,EAAA,OAAAL,UAAAK,EAAA,OAAAE,QAAA;EAC/CE,QAAsB;GAAA,GAAKF;GAAM,GAAKP;EAAO;EAC7C,KAAK,MAAAU,OAAaf,QAAQc,MAAMC,OAAO;GAAA,GAAKH,OAAOG;GAAI,GAAKV,OAAOU;EAAK;EAAWL,EAAA,KAAAL;EAAAK,EAAA,KAAAE;EAAAF,EAAA,KAAAI;CAAA,OAAAA,QAAAJ,EAAA;CAAA,IAAAM;CAAA,IAAAN,EAAA,OAAAJ,YAAAI,EAAA,OAAAI,OAAA;EAC5EE,KAAA,oBAAC,eAAD;GAAsBF;GAAQR;EAAhB,CAAA;EAAyCI,EAAA,KAAAJ;EAAAI,EAAA,KAAAI;EAAAJ,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,OAAvDM;AAAuD;;AAIhE,SAAOC,YAAA;CAAA,OACEpE,MAAKgE,WAAYX,aAAa;AAAC"}
|
package/dist/labels/hu.js
CHANGED
|
@@ -51,6 +51,12 @@ var huLabels = {
|
|
|
51
51
|
quickNavigation: "Gyors navigáció",
|
|
52
52
|
navigation: "Navigáció",
|
|
53
53
|
closeNavigation: "Navigáció bezárása",
|
|
54
|
+
mainNavigation: "Fő navigáció",
|
|
55
|
+
skipToContent: "Ugrás a tartalomra",
|
|
56
|
+
opensInNewTab: "(új lapon nyílik meg)",
|
|
57
|
+
moreAvatars: (count) => `További ${count}`,
|
|
58
|
+
trendUp: "Növekedés",
|
|
59
|
+
trendDown: "Csökkenés",
|
|
54
60
|
calendar,
|
|
55
61
|
datePicker: {
|
|
56
62
|
...calendar,
|
|
@@ -92,8 +98,8 @@ var huLabels = {
|
|
|
92
98
|
clearSearch: "Keresés törlése",
|
|
93
99
|
selectAll: "Összes kijelölése",
|
|
94
100
|
selectRow: (label) => `${label} kijelölése`,
|
|
95
|
-
count: (count) => `${count} tétel`,
|
|
96
|
-
selected: (count) => `${count} kijelölve`,
|
|
101
|
+
count: (count) => `${count.toLocaleString("hu")} tétel`,
|
|
102
|
+
selected: (count) => `${count.toLocaleString("hu")} kijelölve`,
|
|
97
103
|
emptyTitle: "Még nincsenek tételek",
|
|
98
104
|
emptyDescription: "A tételek itt jelennek meg, amint felveszik őket.",
|
|
99
105
|
noMatchTitle: "Nincs megfelelő tétel",
|
|
@@ -103,7 +109,7 @@ var huLabels = {
|
|
|
103
109
|
errorTitle: "Nem sikerült betölteni a tételeket",
|
|
104
110
|
retry: "Újrapróbálás",
|
|
105
111
|
filters: "Szűrők",
|
|
106
|
-
showResults: (count) => `${count} tétel megjelenítése`,
|
|
112
|
+
showResults: (count) => `${count.toLocaleString("hu")} tétel megjelenítése`,
|
|
107
113
|
removeFilter: (filter) => `Szűrő eltávolítása: ${filter}`,
|
|
108
114
|
close: "Bezárás",
|
|
109
115
|
filterAll: "Mind",
|
package/dist/labels/hu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hu.js","names":["CalendarLabels","Labels","calendar","previousMonth","nextMonth","previousYear","nextYear","previousYears","nextYears","chooseMonth","chooseYear","huLabels","close","dismiss","cancel","loading","selectPlaceholder","clearSearch","showPassword","decrease","increase","openList","clearSelection","removeItem","label","remove","moreSelected","count","noResults","commandPalette","commandSearch","breadcrumbs","collapseNavbar","expandNavbar","openNavigation","more","quickNavigation","navigation","closeNavigation","datePicker","today","clear","done","time","hours","minutes","seconds","selectYear","selectMonth","selectDate","selectDateTime","dateRangePicker","presets","selectDates","pagination","previous","next","rowsPerPage","page","range","from","to","total","stepper","complete","current","upcoming","error","fileUpload","name","dataTable","search","selectAll","selectRow","selected","emptyTitle","emptyDescription","noMatchTitle","noMatchDescription","noFilterMatchDescription","errorTitle","retry","filters","showResults","removeFilter","filter","filterAll","clearFilters","actions","columns","export","edit","save","delete"],"sources":["../../src/labels/hu.ts"],"sourcesContent":["import type { CalendarLabels } from '../components/calendar/Calendar';\nimport type { Labels } from './Labels';\n\nconst calendar: CalendarLabels = {\n previousMonth: 'Előző hónap',\n nextMonth: 'Következő hónap',\n previousYear: 'Előző év',\n nextYear: 'Következő év',\n previousYears: 'Előző évek',\n nextYears: 'Következő évek',\n chooseMonth: 'Hónap kiválasztása',\n chooseYear: 'Év kiválasztása',\n};\n\n/**\n * Hungarian texts for every built-in label of the library, in the formal register (magázás). Pass it to\n * `LabelsProvider` once at the app root; spread it to change single texts. Dates also need `locale=\"hu\"` (or\n * `DateConfigProvider`) for month and weekday names. Map texts are separate: see `MapLabels`.\n *\n * @example\n * <LabelsProvider labels={huLabels}>\n * <App />\n * </LabelsProvider>\n *\n * @example\n * <LabelsProvider labels={{ ...huLabels, dataTable: { ...huLabels.dataTable, count: (n) => `${n} jármű` } }}>\n * <App />\n * </LabelsProvider>\n */\nexport const huLabels: Labels = {\n close: 'Bezárás',\n dismiss: 'Bezárás',\n cancel: 'Mégse',\n loading: 'Betöltés',\n selectPlaceholder: 'Válasszon…',\n clearSearch: 'Keresés törlése',\n showPassword: 'Jelszó megjelenítése',\n decrease: 'Csökkentés',\n increase: 'Növelés',\n openList: 'Lista megnyitása',\n clearSelection: 'Választás törlése',\n removeItem: (label) => `${label} eltávolítása`,\n remove: 'Eltávolítás',\n moreSelected: (count) => `További ${count} kiválasztva`,\n noResults: 'Nincs találat.',\n commandPalette: 'Parancsok',\n commandSearch: 'Keresés…',\n breadcrumbs: 'Navigációs útvonal',\n collapseNavbar: 'Összecsukás',\n expandNavbar: 'Kibontás',\n openNavigation: 'Navigáció megnyitása',\n more: 'Több',\n quickNavigation: 'Gyors navigáció',\n navigation: 'Navigáció',\n closeNavigation: 'Navigáció bezárása',\n calendar,\n datePicker: {\n ...calendar,\n today: 'Ma',\n clear: 'Törlés',\n done: 'Kész',\n time: 'Idő',\n hours: 'Óra',\n minutes: 'Perc',\n seconds: 'Másodperc',\n selectYear: 'Válasszon évet',\n selectMonth: 'Válasszon hónapot',\n selectDate: 'Válasszon dátumot',\n selectDateTime: 'Válasszon dátumot és időt',\n },\n dateRangePicker: {\n ...calendar,\n clear: 'Törlés',\n presets: 'Gyorsválasztás',\n selectDates: 'Válasszon időszakot',\n },\n pagination: {\n navigation: 'Lapozás',\n previous: 'Előző oldal',\n next: 'Következő oldal',\n rowsPerPage: 'Sorok oldalanként',\n page: (page) => `${page}. oldal`,\n range: (from, to, total) => (total ? `${from}–${to} / ${total}` : '0 találat'),\n },\n stepper: {\n complete: 'Kész',\n current: 'Folyamatban',\n upcoming: 'Nincs elkezdve',\n error: 'Sikertelen',\n },\n fileUpload: {\n remove: (name) => `${name} eltávolítása`,\n },\n dataTable: {\n search: 'Keresés…',\n clearSearch: 'Keresés törlése',\n selectAll: 'Összes kijelölése',\n selectRow: (label) => `${label} kijelölése`,\n count: (count) => `${count} tétel`,\n selected: (count) => `${count} kijelölve`,\n emptyTitle: 'Még nincsenek tételek',\n emptyDescription: 'A tételek itt jelennek meg, amint felveszik őket.',\n noMatchTitle: 'Nincs megfelelő tétel',\n noMatchDescription: 'Próbálkozzon más kereséssel.',\n noFilterMatchDescription: 'Próbálkozzon más szűrőkkel, vagy törölje őket.',\n loading: 'Betöltés',\n errorTitle: 'Nem sikerült betölteni a tételeket',\n retry: 'Újrapróbálás',\n filters: 'Szűrők',\n showResults: (count) => `${count} tétel megjelenítése`,\n removeFilter: (filter) => `Szűrő eltávolítása: ${filter}`,\n close: 'Bezárás',\n filterAll: 'Mind',\n clearFilters: 'Szűrők törlése',\n actions: 'Műveletek',\n columns: 'Oszlopok',\n clearSelection: 'Kijelölés megszüntetése',\n export: 'Exportálás',\n edit: 'Szerkesztés',\n save: 'Mentés',\n cancel: 'Mégse',\n delete: 'Törlés',\n },\n};\n"],"mappings":";;AAGA,IAAME,WAA2B;CAC/BC,eAAe;CACfC,WAAW;CACXC,cAAc;CACdC,UAAU;CACVC,eAAe;CACfC,WAAW;CACXC,aAAa;CACbC,YAAY;AACd;;;;;;;;;;;;;;;;AAiBA,IAAaC,WAAmB;CAC9BC,OAAO;CACPC,SAAS;CACTC,QAAQ;CACRC,SAAS;CACTC,mBAAmB;CACnBC,aAAa;CACbC,cAAc;CACdC,UAAU;CACVC,UAAU;CACVC,UAAU;CACVC,gBAAgB;CAChBC,aAAaC,UAAU,GAAGA,MAAK;CAC/BC,QAAQ;CACRC,eAAeC,UAAU,WAAWA,MAAK;CACzCC,WAAW;CACXC,gBAAgB;CAChBC,eAAe;CACfC,aAAa;CACbC,gBAAgB;CAChBC,cAAc;CACdC,gBAAgB;CAChBC,MAAM;CACNC,iBAAiB;CACjBC,YAAY;CACZC,iBAAiB;
|
|
1
|
+
{"version":3,"file":"hu.js","names":["CalendarLabels","Labels","calendar","previousMonth","nextMonth","previousYear","nextYear","previousYears","nextYears","chooseMonth","chooseYear","huLabels","close","dismiss","cancel","loading","selectPlaceholder","clearSearch","showPassword","decrease","increase","openList","clearSelection","removeItem","label","remove","moreSelected","count","noResults","commandPalette","commandSearch","breadcrumbs","collapseNavbar","expandNavbar","openNavigation","more","quickNavigation","navigation","closeNavigation","mainNavigation","skipToContent","opensInNewTab","moreAvatars","trendUp","trendDown","datePicker","today","clear","done","time","hours","minutes","seconds","selectYear","selectMonth","selectDate","selectDateTime","dateRangePicker","presets","selectDates","pagination","previous","next","rowsPerPage","page","range","from","to","total","stepper","complete","current","upcoming","error","fileUpload","name","dataTable","search","selectAll","selectRow","toLocaleString","selected","emptyTitle","emptyDescription","noMatchTitle","noMatchDescription","noFilterMatchDescription","errorTitle","retry","filters","showResults","removeFilter","filter","filterAll","clearFilters","actions","columns","export","edit","save","delete"],"sources":["../../src/labels/hu.ts"],"sourcesContent":["import type { CalendarLabels } from '../components/calendar/Calendar';\nimport type { Labels } from './Labels';\n\nconst calendar: CalendarLabels = {\n previousMonth: 'Előző hónap',\n nextMonth: 'Következő hónap',\n previousYear: 'Előző év',\n nextYear: 'Következő év',\n previousYears: 'Előző évek',\n nextYears: 'Következő évek',\n chooseMonth: 'Hónap kiválasztása',\n chooseYear: 'Év kiválasztása',\n};\n\n/**\n * Hungarian texts for every built-in label of the library, in the formal register (magázás). Pass it to\n * `LabelsProvider` once at the app root; spread it to change single texts. Dates also need `locale=\"hu\"` (or\n * `DateConfigProvider`) for month and weekday names. Map texts are separate: see `MapLabels`.\n *\n * @example\n * <LabelsProvider labels={huLabels}>\n * <App />\n * </LabelsProvider>\n *\n * @example\n * <LabelsProvider labels={{ ...huLabels, dataTable: { ...huLabels.dataTable, count: (n) => `${n} jármű` } }}>\n * <App />\n * </LabelsProvider>\n */\nexport const huLabels: Labels = {\n close: 'Bezárás',\n dismiss: 'Bezárás',\n cancel: 'Mégse',\n loading: 'Betöltés',\n selectPlaceholder: 'Válasszon…',\n clearSearch: 'Keresés törlése',\n showPassword: 'Jelszó megjelenítése',\n decrease: 'Csökkentés',\n increase: 'Növelés',\n openList: 'Lista megnyitása',\n clearSelection: 'Választás törlése',\n removeItem: (label) => `${label} eltávolítása`,\n remove: 'Eltávolítás',\n moreSelected: (count) => `További ${count} kiválasztva`,\n noResults: 'Nincs találat.',\n commandPalette: 'Parancsok',\n commandSearch: 'Keresés…',\n breadcrumbs: 'Navigációs útvonal',\n collapseNavbar: 'Összecsukás',\n expandNavbar: 'Kibontás',\n openNavigation: 'Navigáció megnyitása',\n more: 'Több',\n quickNavigation: 'Gyors navigáció',\n navigation: 'Navigáció',\n closeNavigation: 'Navigáció bezárása',\n mainNavigation: 'Fő navigáció',\n skipToContent: 'Ugrás a tartalomra',\n opensInNewTab: '(új lapon nyílik meg)',\n moreAvatars: (count) => `További ${count}`,\n trendUp: 'Növekedés',\n trendDown: 'Csökkenés',\n calendar,\n datePicker: {\n ...calendar,\n today: 'Ma',\n clear: 'Törlés',\n done: 'Kész',\n time: 'Idő',\n hours: 'Óra',\n minutes: 'Perc',\n seconds: 'Másodperc',\n selectYear: 'Válasszon évet',\n selectMonth: 'Válasszon hónapot',\n selectDate: 'Válasszon dátumot',\n selectDateTime: 'Válasszon dátumot és időt',\n },\n dateRangePicker: {\n ...calendar,\n clear: 'Törlés',\n presets: 'Gyorsválasztás',\n selectDates: 'Válasszon időszakot',\n },\n pagination: {\n navigation: 'Lapozás',\n previous: 'Előző oldal',\n next: 'Következő oldal',\n rowsPerPage: 'Sorok oldalanként',\n page: (page) => `${page}. oldal`,\n range: (from, to, total) => (total ? `${from}–${to} / ${total}` : '0 találat'),\n },\n stepper: {\n complete: 'Kész',\n current: 'Folyamatban',\n upcoming: 'Nincs elkezdve',\n error: 'Sikertelen',\n },\n fileUpload: {\n remove: (name) => `${name} eltávolítása`,\n },\n dataTable: {\n search: 'Keresés…',\n clearSearch: 'Keresés törlése',\n selectAll: 'Összes kijelölése',\n selectRow: (label) => `${label} kijelölése`,\n count: (count) => `${count.toLocaleString('hu')} tétel`,\n selected: (count) => `${count.toLocaleString('hu')} kijelölve`,\n emptyTitle: 'Még nincsenek tételek',\n emptyDescription: 'A tételek itt jelennek meg, amint felveszik őket.',\n noMatchTitle: 'Nincs megfelelő tétel',\n noMatchDescription: 'Próbálkozzon más kereséssel.',\n noFilterMatchDescription: 'Próbálkozzon más szűrőkkel, vagy törölje őket.',\n loading: 'Betöltés',\n errorTitle: 'Nem sikerült betölteni a tételeket',\n retry: 'Újrapróbálás',\n filters: 'Szűrők',\n showResults: (count) => `${count.toLocaleString('hu')} tétel megjelenítése`,\n removeFilter: (filter) => `Szűrő eltávolítása: ${filter}`,\n close: 'Bezárás',\n filterAll: 'Mind',\n clearFilters: 'Szűrők törlése',\n actions: 'Műveletek',\n columns: 'Oszlopok',\n clearSelection: 'Kijelölés megszüntetése',\n export: 'Exportálás',\n edit: 'Szerkesztés',\n save: 'Mentés',\n cancel: 'Mégse',\n delete: 'Törlés',\n },\n};\n"],"mappings":";;AAGA,IAAME,WAA2B;CAC/BC,eAAe;CACfC,WAAW;CACXC,cAAc;CACdC,UAAU;CACVC,eAAe;CACfC,WAAW;CACXC,aAAa;CACbC,YAAY;AACd;;;;;;;;;;;;;;;;AAiBA,IAAaC,WAAmB;CAC9BC,OAAO;CACPC,SAAS;CACTC,QAAQ;CACRC,SAAS;CACTC,mBAAmB;CACnBC,aAAa;CACbC,cAAc;CACdC,UAAU;CACVC,UAAU;CACVC,UAAU;CACVC,gBAAgB;CAChBC,aAAaC,UAAU,GAAGA,MAAK;CAC/BC,QAAQ;CACRC,eAAeC,UAAU,WAAWA,MAAK;CACzCC,WAAW;CACXC,gBAAgB;CAChBC,eAAe;CACfC,aAAa;CACbC,gBAAgB;CAChBC,cAAc;CACdC,gBAAgB;CAChBC,MAAM;CACNC,iBAAiB;CACjBC,YAAY;CACZC,iBAAiB;CACjBC,gBAAgB;CAChBC,eAAe;CACfC,eAAe;CACfC,cAAcf,UAAU,WAAWA;CACnCgB,SAAS;CACTC,WAAW;CACX1C;CACA2C,YAAY;EACV,GAAG3C;EACH4C,OAAO;EACPC,OAAO;EACPC,MAAM;EACNC,MAAM;EACNC,OAAO;EACPC,SAAS;EACTC,SAAS;EACTC,YAAY;EACZC,aAAa;EACbC,YAAY;EACZC,gBAAgB;CAClB;CACAC,iBAAiB;EACf,GAAGvD;EACH6C,OAAO;EACPW,SAAS;EACTC,aAAa;CACf;CACAC,YAAY;EACVvB,YAAY;EACZwB,UAAU;EACVC,MAAM;EACNC,aAAa;EACbC,OAAOA,SAAS,GAAGA,KAAI;EACvBC,QAAQC,MAAMC,IAAIC,UAAWA,QAAQ,GAAGF,KAAI,GAAIC,GAAE,KAAMC,UAAU;CACpE;CACAC,SAAS;EACPC,UAAU;EACVC,SAAS;EACTC,UAAU;EACVC,OAAO;CACT;CACAC,YAAY,EACVjD,SAASkD,SAAS,GAAGA,KAAI,eAC3B;CACAC,WAAW;EACTC,QAAQ;EACR5D,aAAa;EACb6D,WAAW;EACXC,YAAYvD,UAAU,GAAGA,MAAK;EAC9BG,QAAQA,UAAU,GAAGA,MAAMqD,eAAe,IAAI,EAAC;EAC/CC,WAAWtD,UAAU,GAAGA,MAAMqD,eAAe,IAAI,EAAC;EAClDE,YAAY;EACZC,kBAAkB;EAClBC,cAAc;EACdC,oBAAoB;EACpBC,0BAA0B;EAC1BvE,SAAS;EACTwE,YAAY;EACZC,OAAO;EACPC,SAAS;EACTC,cAAc/D,UAAU,GAAGA,MAAMqD,eAAe,IAAI,EAAC;EACrDW,eAAeC,WAAW,uBAAuBA;EACjDhF,OAAO;EACPiF,WAAW;EACXC,cAAc;EACdC,SAAS;EACTC,SAAS;EACT1E,gBAAgB;EAChB2E,QAAQ;EACRC,MAAM;EACNC,MAAM;EACNrF,QAAQ;EACRsF,QAAQ;CACV;AACF"}
|
package/dist/llms-full.txt
CHANGED
|
@@ -8,7 +8,8 @@ React 19 is a peer dependency; the build is precompiled with React Compiler. `@b
|
|
|
8
8
|
|
|
9
9
|
```tsx
|
|
10
10
|
import '@optimum-intelligence/opti-ui/styles.css';
|
|
11
|
-
import '@optimum-intelligence/opti-ui/fonts.css'; // optional:
|
|
11
|
+
import '@optimum-intelligence/opti-ui/fonts.css'; // optional: Poppins, Montserrat and JetBrains Mono, bundled
|
|
12
|
+
import '@optimum-intelligence/opti-ui/reset.css'; // optional: box-sizing, no default margins, full-height html/body
|
|
12
13
|
import { Button, Card, CardTitle, ToastProvider, Tooltip } from '@optimum-intelligence/opti-ui';
|
|
13
14
|
|
|
14
15
|
export function App() {
|
|
@@ -25,6 +26,9 @@ export function App() {
|
|
|
25
26
|
}
|
|
26
27
|
```
|
|
27
28
|
|
|
29
|
+
The reset sits in its own `oui-reset` layer below the library's. If your app declares a layer order before
|
|
30
|
+
importing opti-ui (Tailwind does), put `oui-reset` first in it, or the reset would win over the components.
|
|
31
|
+
|
|
28
32
|
Add `class="oui-root"` to `<body>` for the library font, text color and background. Add `oui-isolate`
|
|
29
33
|
to your app root so portalled popups stack above app content. Every module has a `'use client'` banner,
|
|
30
34
|
so the components work in Next.js App Router.
|
|
@@ -1054,8 +1058,11 @@ import { Card } from '@optimum-intelligence/opti-ui';
|
|
|
1054
1058
|
```tsx
|
|
1055
1059
|
<Card variant="elevated">
|
|
1056
1060
|
<CardHeader>
|
|
1057
|
-
<
|
|
1058
|
-
|
|
1061
|
+
<div>
|
|
1062
|
+
<CardTitle>Monthly energy</CardTitle>
|
|
1063
|
+
<CardDescription>Last 30 days</CardDescription>
|
|
1064
|
+
</div>
|
|
1065
|
+
<CardActions>…</CardActions>
|
|
1059
1066
|
</CardHeader>
|
|
1060
1067
|
<CardContent>…</CardContent>
|
|
1061
1068
|
</Card>
|
|
@@ -1065,7 +1072,8 @@ import { Card } from '@optimum-intelligence/opti-ui';
|
|
|
1065
1072
|
| --- | --- | --- | --- |
|
|
1066
1073
|
| `variant?` | `'outlined' \| 'elevated' \| 'filled' \| 'ghost'` | `'outlined'` | `outlined` (default) uses the card border, `elevated` a soft shadow. |
|
|
1067
1074
|
| `padding?` | `'none' \| 'sm' \| 'md' \| 'lg'` | `'md'` | Inner spacing. Override with `--oui-card-padding`. |
|
|
1068
|
-
| `interactive?` | `boolean` | `false` | Adds hover and focus states
|
|
1075
|
+
| `interactive?` | `boolean` | `false` | Adds hover and focus states for a card that is one link: use it with `render={<a href=… />}`. Put no buttons or links inside it, since they would be nested in the link; for a card with its own actions, make its title the link. |
|
|
1076
|
+
| `fill?` | `boolean` | `false` | Grow to the height left in a flex column (a `Page fill`), never below `--oui-card-fill-min-height` (24rem). `CardContent` becomes a flex column, so a `DataTable fill` or a `[data-fill]` child takes its remaining height. |
|
|
1069
1077
|
|
|
1070
1078
|
Also accepts all props of: `useRender.ComponentProps<'div', CardState>`.
|
|
1071
1079
|
|
|
@@ -1073,7 +1081,8 @@ Also accepts all props of: `useRender.ComponentProps<'div', CardState>`.
|
|
|
1073
1081
|
|
|
1074
1082
|
compound · Layout
|
|
1075
1083
|
|
|
1076
|
-
Right-aligned slot inside CardHeader for icon buttons or menus.
|
|
1084
|
+
Right-aligned slot inside CardHeader for icon buttons or menus. Small (`sm`) controls are centred on the title's
|
|
1085
|
+
first line and overhang into the card padding, so a touch-sized button doesn't push the content down.
|
|
1077
1086
|
|
|
1078
1087
|
```tsx
|
|
1079
1088
|
import { CardActions } from '@optimum-intelligence/opti-ui';
|
|
@@ -1121,7 +1130,8 @@ import { CardFooter } from '@optimum-intelligence/opti-ui';
|
|
|
1121
1130
|
|
|
1122
1131
|
compound · Layout
|
|
1123
1132
|
|
|
1124
|
-
|
|
1133
|
+
Top row of a Card. Wrap `CardTitle` and `CardDescription` in one element as the first child: it takes the free
|
|
1134
|
+
space, and `CardActions` or a Badge after it keeps its own width.
|
|
1125
1135
|
|
|
1126
1136
|
```tsx
|
|
1127
1137
|
import { CardHeader } from '@optimum-intelligence/opti-ui';
|
|
@@ -1220,7 +1230,8 @@ component · Layout
|
|
|
1220
1230
|
|
|
1221
1231
|
Expandable parent row in a `Navbar` with nested `NavbarItem` sub-links. Place it in a `NavbarSection`
|
|
1222
1232
|
next to other items. On a collapsed rail the sub-links are hidden and the parent shows as active when
|
|
1223
|
-
one of them is; the hover peek shows the full tree
|
|
1233
|
+
one of them is; the hover peek shows the full tree, and pressing the parent expands the navbar with the
|
|
1234
|
+
group open, so keyboard users reach the sub-links too.
|
|
1224
1235
|
|
|
1225
1236
|
```tsx
|
|
1226
1237
|
import { NavbarGroup } from '@optimum-intelligence/opti-ui';
|
|
@@ -1305,6 +1316,36 @@ import { NavbarSectionLabel } from '@optimum-intelligence/opti-ui';
|
|
|
1305
1316
|
|
|
1306
1317
|
### NavbarSectionLabel.displayName
|
|
1307
1318
|
|
|
1319
|
+
## Page
|
|
1320
|
+
|
|
1321
|
+
component · Layout
|
|
1322
|
+
|
|
1323
|
+
Content column of a page inside `AppShell`: gutters, a maximum width and the gap between sections, all
|
|
1324
|
+
smaller on phones. Customize with `--oui-page-max-width` (80rem), `--oui-page-padding` and `--oui-page-gap`.
|
|
1325
|
+
|
|
1326
|
+
```tsx
|
|
1327
|
+
import { Page } from '@optimum-intelligence/opti-ui';
|
|
1328
|
+
```
|
|
1329
|
+
|
|
1330
|
+
```tsx
|
|
1331
|
+
<AppShell navbar={<Navbar>…</Navbar>}>
|
|
1332
|
+
<Page fill>
|
|
1333
|
+
<PageHeader title="Sessions" />
|
|
1334
|
+
<Card fill>
|
|
1335
|
+
<CardContent>
|
|
1336
|
+
<DataTable fill columns={columns} data={sessions} getRowId={(row) => row.id} />
|
|
1337
|
+
</CardContent>
|
|
1338
|
+
</Card>
|
|
1339
|
+
</Page>
|
|
1340
|
+
</AppShell>
|
|
1341
|
+
```
|
|
1342
|
+
|
|
1343
|
+
| Prop | Type | Default | Description |
|
|
1344
|
+
| --- | --- | --- | --- |
|
|
1345
|
+
| `fill?` | `boolean` | `false` | Take the main area's height instead of growing with the content, so a `Card fill` or `DataTable fill` inside takes the height left and only its rows scroll. Below 900px and in windows under 640px tall the page scrolls as usual, and those children get a fixed height (`--oui-page-fill-height`, 32rem). |
|
|
1346
|
+
|
|
1347
|
+
Also accepts all props of: `useRender.ComponentProps<'div', PageState>`.
|
|
1348
|
+
|
|
1308
1349
|
## PageHeader
|
|
1309
1350
|
|
|
1310
1351
|
component · Layout
|
|
@@ -1330,16 +1371,27 @@ Also accepts all props of: `Omit<React.HTMLAttributes<HTMLElement>, 'title'>`.
|
|
|
1330
1371
|
|
|
1331
1372
|
component · Layout
|
|
1332
1373
|
|
|
1333
|
-
Scroll container with slim, themed overlay scrollbars. Set a height or max-height
|
|
1374
|
+
Scroll container with slim, themed overlay scrollbars. Set a height or max-height, or use
|
|
1375
|
+
`scrollbars="horizontal" fade` for a row that scrolls sideways.
|
|
1334
1376
|
|
|
1335
1377
|
```tsx
|
|
1336
1378
|
import { ScrollArea } from '@optimum-intelligence/opti-ui';
|
|
1337
1379
|
```
|
|
1338
1380
|
|
|
1381
|
+
```tsx
|
|
1382
|
+
<ScrollArea scrollbars="horizontal" fade>
|
|
1383
|
+
<Stack direction="row" gap="sm">
|
|
1384
|
+
<Badge>ABC-123</Badge>
|
|
1385
|
+
<Badge>12 t</Badge>
|
|
1386
|
+
</Stack>
|
|
1387
|
+
</ScrollArea>
|
|
1388
|
+
```
|
|
1389
|
+
|
|
1339
1390
|
| Prop | Type | Default | Description |
|
|
1340
1391
|
| --- | --- | --- | --- |
|
|
1341
1392
|
| `scrollbars?` | `'vertical' \| 'horizontal' \| 'both'` | `'vertical'` | Which scrollbars to render. |
|
|
1342
1393
|
| `viewportProps?` | `BaseScrollArea.Viewport.Props` | | Props for the inner scrolling viewport, e.g. a `ref` to read the scroll position. |
|
|
1394
|
+
| `fade?` | `boolean` | `false` | Fade the left and right edges while content is cut off there. The overlay scrollbar only shows on hover or while scrolling, so use it for a sideways row (chips, badges) whose overflow would otherwise go unnoticed. |
|
|
1343
1395
|
|
|
1344
1396
|
Also accepts all props of: `BaseScrollArea.Root.Props`.
|
|
1345
1397
|
|
|
@@ -1390,7 +1442,8 @@ import { StatCard } from '@optimum-intelligence/opti-ui';
|
|
|
1390
1442
|
| --- | --- | --- | --- |
|
|
1391
1443
|
| `variant?` | `'outlined' \| 'elevated' \| 'filled' \| 'ghost'` | | `outlined` (default) uses the card border, `elevated` a soft shadow. |
|
|
1392
1444
|
| `padding?` | `'none' \| 'sm' \| 'md' \| 'lg'` | | Inner spacing. Override with `--oui-card-padding`. |
|
|
1393
|
-
| `interactive?` | `boolean` | | Adds hover and focus states
|
|
1445
|
+
| `interactive?` | `boolean` | | Adds hover and focus states for a card that is one link: use it with `render={<a href=… />}`. Put no buttons or links inside it, since they would be nested in the link; for a card with its own actions, make its title the link. |
|
|
1446
|
+
| `fill?` | `boolean` | | Grow to the height left in a flex column (a `Page fill`), never below `--oui-card-fill-min-height` (24rem). `CardContent` becomes a flex column, so a `DataTable fill` or a `[data-fill]` child takes its remaining height. |
|
|
1394
1447
|
| `label` | `React.ReactNode` | | What the number measures. |
|
|
1395
1448
|
| `value` | `React.ReactNode` | | The headline figure. |
|
|
1396
1449
|
| `unit?` | `React.ReactNode` | | Unit beside the value, e.g. "kWh" or "orders". |
|
|
@@ -1449,7 +1502,7 @@ import { Link } from '@optimum-intelligence/opti-ui';
|
|
|
1449
1502
|
| --- | --- | --- | --- |
|
|
1450
1503
|
| `tone?` | `'accent' \| 'muted' \| 'inherit'` | `'accent'` | `inherit` takes the color of the surrounding text. |
|
|
1451
1504
|
| `underline?` | `'always' \| 'hover' \| 'none'` | `'always'` | When the underline shows. |
|
|
1452
|
-
| `external?` | `boolean` | `false` | Opens in a new tab, with a trailing icon. |
|
|
1505
|
+
| `external?` | `boolean` | `false` | Opens in a new tab, with a trailing icon and hidden text that says so (`opensInNewTab` label). |
|
|
1453
1506
|
|
|
1454
1507
|
Also accepts all props of: `useRender.ComponentProps<'a', LinkState>`.
|
|
1455
1508
|
|
|
@@ -1468,6 +1521,7 @@ import { Text } from '@optimum-intelligence/opti-ui';
|
|
|
1468
1521
|
| `size?` | `'xs' \| 'sm' \| 'md' \| 'lg'` | `'md'` | Font size. |
|
|
1469
1522
|
| `tone?` | `'default' \| 'strong' \| 'muted' \| 'subtle' \| 'accent' \| 'success' \| 'warning' \| 'danger'` | `'default'` | Color role: from `strong` to `subtle`, or a status color. |
|
|
1470
1523
|
| `weight?` | `'regular' \| 'medium' \| 'semibold' \| 'bold'` | | Font weight. Inherits when omitted. |
|
|
1524
|
+
| `truncate?` | `boolean` | `false` | Keep the text on one line and end it with an ellipsis when it doesn't fit (also in a flex row). When the full text matters, show it in a `Tooltip` too: a `title` alone can't be reached by keyboard or touch. |
|
|
1471
1525
|
|
|
1472
1526
|
Also accepts all props of: `useRender.ComponentProps<'p', TextState>`.
|
|
1473
1527
|
|
|
@@ -1698,7 +1752,8 @@ Also accepts all props of: `BaseToggleGroup.Props`.
|
|
|
1698
1752
|
|
|
1699
1753
|
compound · Actions
|
|
1700
1754
|
|
|
1701
|
-
Row of controls that is a single tab stop; arrow keys move between them.
|
|
1755
|
+
Row of controls that is a single tab stop; arrow keys move between them. It stays on one line: wider than its
|
|
1756
|
+
container, it scrolls sideways with the cut-off edge faded.
|
|
1702
1757
|
Other controls join through `render`: `<Toolbar.Button render={<Toggle />} />`,
|
|
1703
1758
|
`<Toolbar.Button render={<Menu.Trigger />} />`.
|
|
1704
1759
|
|
|
@@ -1924,7 +1979,7 @@ component · Overlays
|
|
|
1924
1979
|
|
|
1925
1980
|
Side panel for inspecting or editing a record without leaving the page:
|
|
1926
1981
|
pinned header, scrolling body, optional pinned footer. `side="bottom"` makes
|
|
1927
|
-
it a bottom sheet, for filters and actions on phones. For a free-form
|
|
1982
|
+
it a bottom sheet, for filters and actions on phones; dragging its header down closes it. For a free-form
|
|
1928
1983
|
sheet use `Dialog.Content` with `placement`.
|
|
1929
1984
|
|
|
1930
1985
|
```tsx
|
|
@@ -2203,6 +2258,12 @@ Also accepts all props of: `BaseCollapsible.Trigger.Props`.
|
|
|
2203
2258
|
|
|
2204
2259
|
### Collapsible.Panel
|
|
2205
2260
|
|
|
2261
|
+
| Prop | Type | Default | Description |
|
|
2262
|
+
| --- | --- | --- | --- |
|
|
2263
|
+
| `plain?` | `boolean` | `false` | Drop the content's padding and muted secondary-text style, so it lines up with and looks like the text around it. Use it when the panel holds regular content (a list, a form) rather than a note. |
|
|
2264
|
+
|
|
2265
|
+
Also accepts all props of: `BaseCollapsible.Panel.Props`.
|
|
2266
|
+
|
|
2206
2267
|
## getPageItems
|
|
2207
2268
|
|
|
2208
2269
|
function · Disclosure & navigation
|
|
@@ -2331,7 +2392,7 @@ import { Avatar } from '@optimum-intelligence/opti-ui';
|
|
|
2331
2392
|
| Prop | Type | Default | Description |
|
|
2332
2393
|
| --- | --- | --- | --- |
|
|
2333
2394
|
| `src?` | `string` | | Image URL. Falls back to initials or `fallback` while loading or on error. |
|
|
2334
|
-
| `alt?` | `string` | |
|
|
2395
|
+
| `alt?` | `string` | | Accessible name of the avatar, image or initials alike. Defaults to `name`; without either it is decorative. |
|
|
2335
2396
|
| `name?` | `string` | | Name used for initials when the image is missing. |
|
|
2336
2397
|
| `fallback?` | `React.ReactNode` | | Explicit fallback content (overrides initials). |
|
|
2337
2398
|
| `size?` | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl'` | `'md'` | Diameter. |
|
|
@@ -2396,7 +2457,8 @@ picks the toolbar filters), `DataTable.Filter`, `DataTable.FilterPanel`
|
|
|
2396
2457
|
(the "Filters" button and panel for the other filters),
|
|
2397
2458
|
`DataTable.ActiveFilters` (their tags), `DataTable.FilterSheet` (the phone
|
|
2398
2459
|
filter button and sheet), `DataTable.ClearFilters`, `DataTable.Actions`,
|
|
2399
|
-
`DataTable.ColumnsMenu`,
|
|
2460
|
+
`DataTable.ColumnsMenu`, `DataTable.SelectionBar` (the selected rows' count
|
|
2461
|
+
and actions, shown in the toolbar while rows are selected),
|
|
2400
2462
|
`DataTable.Loading`, `DataTable.Summary`, `DataTable.Content`,
|
|
2401
2463
|
`DataTable.Pagination`.
|
|
2402
2464
|
|
|
@@ -2419,7 +2481,7 @@ import { DataTable } from '@optimum-intelligence/opti-ui';
|
|
|
2419
2481
|
| `pageSizeOptions?` | `number[]` | | Choices in the rows-per-page select. |
|
|
2420
2482
|
| `controlSize?` | `'sm' \| 'md'` | | Size of the search box and the filters. |
|
|
2421
2483
|
| `toolbar?` | `React.ReactNode \| ((context: DataTableToolbarContext<T>) => React.ReactNode)` | | Extra toolbar content (add, import…). A function receives the processed rows. |
|
|
2422
|
-
| `bulkActions?` | `(context: DataTableToolbarContext<T>) => React.ReactNode` | | Actions on the selected rows. While rows are selected, the
|
|
2484
|
+
| `bulkActions?` | `(context: DataTableToolbarContext<T>) => React.ReactNode` | | Actions on the selected rows. While rows are selected, the toolbar shows their count, a clear button and these actions over the search and filters (`DataTable.SelectionBar`); with `showToolbar={false}` the bar shows under the rows, next to the pagination. Needs `onSelectionChange`. |
|
|
2423
2485
|
| `columnsMenu?` | `boolean` | `false` | Adds an icon button whose menu shows and hides columns (`DataTable.ColumnsMenu`). |
|
|
2424
2486
|
| `showToolbar?` | `boolean` | `true` | `false` drops the search, filters, row count and toolbar content: rows only, for short tables under their own heading. The toolbar holds the search, a "Filters (n)" button whose panel holds the filters that are not `quick`, the `quick` filters and a clear button on the left; the loading spinner, `toolbar` content, columns menu and export on the right. Active filters from the panel show as tags under it. The row count sits in the footer: the pagination's range, or a count when the table is not paginated. Below 640px the toolbar is one line: the search, a filter icon button whose bottom sheet holds every filter and the `toolbar` content, and export. |
|
|
2425
2487
|
| `exportName?` | `string` | | Adds an icon-only export button (named by `labels.export`, also its tooltip) that saves the filtered, sorted rows as `<exportName>.csv`. Columns choose their text with `exportValue`. |
|
|
@@ -2560,6 +2622,21 @@ Icon button with a menu of checkboxes that show or hide columns. Columns with `h
|
|
|
2560
2622
|
| `size?` | `'sm' \| 'md'` | `'md'` | Height of the button. |
|
|
2561
2623
|
| `className?` | `string` | | Class name for the button. |
|
|
2562
2624
|
|
|
2625
|
+
### DataTable.SelectionBar
|
|
2626
|
+
|
|
2627
|
+
The number of selected rows, a button that clears the selection, and the `children` (actions on those rows).
|
|
2628
|
+
Renders nothing while no row is selected. The default table shows it in the toolbar over the search and
|
|
2629
|
+
filters, so the column headers stay as they are. In a composed table, place it in `DataTable.Toolbar` right
|
|
2630
|
+
after `DataTable.Controls` and set `inert` on the controls while `table.selection` is not empty: the bar covers
|
|
2631
|
+
them and the toolbar keeps its height.
|
|
2632
|
+
|
|
2633
|
+
| Prop | Type | Default | Description |
|
|
2634
|
+
| --- | --- | --- | --- |
|
|
2635
|
+
| `size?` | `'sm' \| 'md'` | `'md'` | Height of the clear button; match the toolbar's other controls. |
|
|
2636
|
+
| `children?` | `React.ReactNode` | | Actions on the selected rows (delete, export, assign…), placed after the count. |
|
|
2637
|
+
|
|
2638
|
+
Also accepts all props of: `React.HTMLAttributes<HTMLDivElement>`.
|
|
2639
|
+
|
|
2563
2640
|
### DataTable.Loading
|
|
2564
2641
|
|
|
2565
2642
|
Spinner while the table loads. It keeps its space while idle, so nothing moves when it shows.
|
|
@@ -2581,7 +2658,6 @@ The table itself, with its loading, empty and error states.
|
|
|
2581
2658
|
| `onEndReached?` | `() => void` | | Called when the rows are scrolled near their end, once per row count: load and append the next rows. Needs `maxHeight` or `virtualized`. |
|
|
2582
2659
|
| `stickyFirstColumn?` | `boolean` | | Keeps the first column (and the selection checkboxes) in place while the table scrolls sideways, so each row stays identifiable on narrow screens. |
|
|
2583
2660
|
| `empty?` | `React.ReactNode` | | Replaces the default empty state. |
|
|
2584
|
-
| `selectionActions?` | `React.ReactNode` | | Actions on the selected rows (delete, export, assign…). While rows are selected, the header row shows their count, a button that clears the selection and these actions in place of the column names, at the header's height, so the rows do not move. Buttons in it are made header-sized. |
|
|
2585
2661
|
| `tableProps?` | `Omit<TableProps, 'children'>` | | Props for the underlying `Table` (className, wrapperProps, aria-*). |
|
|
2586
2662
|
|
|
2587
2663
|
Also accepts all props of: `Pick<TableProps, 'density' \| 'striped' \| 'stickyHeader'>`.
|
|
@@ -2623,7 +2699,9 @@ Also accepts all props of: `Omit<React.HTMLAttributes<HTMLDivElement>, 'children
|
|
|
2623
2699
|
|
|
2624
2700
|
component · Feedback & data display
|
|
2625
2701
|
|
|
2626
|
-
Label and value pairs, such as a record's details. Holds `DescriptionItem`s.
|
|
2702
|
+
Label and value pairs, such as a record's details. Holds `DescriptionItem`s. Below 27.5rem of its own width (a
|
|
2703
|
+
phone, a drawer, a narrow column) `rows` puts each label above its value. It takes the width it is given, not its
|
|
2704
|
+
content's, so in a flex row give it `flex: 1` or a width.
|
|
2627
2705
|
|
|
2628
2706
|
```tsx
|
|
2629
2707
|
import { DescriptionList } from '@optimum-intelligence/opti-ui';
|
|
@@ -2819,7 +2897,8 @@ import { TableCaption } from '@optimum-intelligence/opti-ui';
|
|
|
2819
2897
|
|
|
2820
2898
|
component · Feedback & data display
|
|
2821
2899
|
|
|
2822
|
-
Body cell (`<td>`). `numeric` right-aligns and uses tabular figures
|
|
2900
|
+
Body cell (`<td>`). `numeric` right-aligns and uses tabular figures; `mono` and `nowrap` keep codes and
|
|
2901
|
+
dates on one line. In a table under 40rem wide every cell stays on one line and the table scrolls sideways.
|
|
2823
2902
|
|
|
2824
2903
|
```tsx
|
|
2825
2904
|
import { TableCell } from '@optimum-intelligence/opti-ui';
|
|
@@ -2830,6 +2909,8 @@ import { TableCell } from '@optimum-intelligence/opti-ui';
|
|
|
2830
2909
|
| `ref?` | `React.Ref<HTMLTableCellElement>` | | Ref to the `<td>`. |
|
|
2831
2910
|
| `align?` | `Align` | | Horizontal alignment. Defaults to `end` when `numeric`, else `start`. |
|
|
2832
2911
|
| `numeric?` | `boolean` | | Tabular figures for numeric columns. |
|
|
2912
|
+
| `mono?` | `boolean` | | Monospace text on one line, for ids, codes and timestamps. |
|
|
2913
|
+
| `nowrap?` | `boolean` | | Keeps the content on one line: the column widens to fit instead of wrapping it. |
|
|
2833
2914
|
|
|
2834
2915
|
Also accepts all props of: `Omit<React.TdHTMLAttributes<HTMLTableCellElement>, 'align'>`.
|
|
2835
2916
|
|
|
@@ -2956,7 +3037,7 @@ import { useDataTable } from '@optimum-intelligence/opti-ui';
|
|
|
2956
3037
|
| `hiddenColumns?` | `string[]` | | Ids of the columns hidden from the columns menu (controlled). Columns with `hidden` stay hidden regardless. |
|
|
2957
3038
|
| `defaultHiddenColumns?` | `string[]` | | Initial hidden column ids when uncontrolled. |
|
|
2958
3039
|
| `onHiddenColumnsChange?` | `(hiddenColumns: string[]) => void` | | Called with the hidden column ids when one is shown or hidden; store them to keep the choice. |
|
|
2959
|
-
| `onRowClick?` | `(row: T) => void` | | Makes rows clickable and
|
|
3040
|
+
| `onRowClick?` | `(row: T) => void` | | Makes rows clickable and focusable, activated by Enter or Space. For rows that open a page, also put a real link in a cell, so they can be opened in a new tab. |
|
|
2960
3041
|
| `rowLabel?` | `(row: T) => string` | | Accessible name of a row, used by row selection and clickable rows. |
|
|
2961
3042
|
| `rowActions?` | `(row: T) => DataTableRowAction[] \| React.ReactNode` | | Trailing cell of each row: icon buttons, or any content (a menu, a link). |
|
|
2962
3043
|
| `rowTone?` | `(row: T) => DataTableRowTone \| null \| undefined` | | Tints a row to flag its state. |
|
|
@@ -3240,7 +3321,7 @@ for dozens of pins, not thousands (use `Map.Points` for those).
|
|
|
3240
3321
|
| `label?` | `string` | | Accessible name and tooltip text. Depots default to the `depot` label. |
|
|
3241
3322
|
| `selected?` | `boolean` | | Marks the pin as selected (larger, with a ring). |
|
|
3242
3323
|
| `dimmed?` | `boolean` | | Fades the pin to `--oui-map-dim-opacity`, e.g. for stops of trips that are not selected. |
|
|
3243
|
-
| `onClick?` | `() => void` | | Called when the pin is clicked. |
|
|
3324
|
+
| `onClick?` | `() => void` | | Called when the pin is clicked or pressed with Enter or Space. Makes the pin a button with `aria-pressed` from `selected`; give it a `label` unless its number names it well enough. |
|
|
3244
3325
|
| `children?` | `React.ReactNode` | | Custom pin content, replacing the built-in shape. |
|
|
3245
3326
|
| `className?` | `string` | | Classes for the pin element. |
|
|
3246
3327
|
|
|
@@ -3315,6 +3396,8 @@ works outside the map; inside `Map.Root` it takes the root's labels. Put it in a
|
|
|
3315
3396
|
| `onVisibilityChange?` | `(ids: string[], visible: boolean) => void` | | Called with the ids to show or hide. Adds an eye button to every entry. |
|
|
3316
3397
|
| `showAllToggle?` | `boolean` | `false` | Adds a show all / hide all button when `onVisibilityChange` is set. |
|
|
3317
3398
|
| `size?` | `'sm' \| 'md'` | `'md'` | `sm` packs the entries tighter, with smaller swatches and text, for small maps and phones. Either size scrolls past `--oui-map-legend-max-height` (`sm`: 10rem, `md`: none). |
|
|
3399
|
+
| `collapsible?` | `boolean` | `false` | Adds a "Legend" button on top that folds the entries away, so the legend leaves the map free on small screens. Collapsed at first on phones (below 640px), open elsewhere, unless `defaultCollapsed` says otherwise. |
|
|
3400
|
+
| `defaultCollapsed?` | `boolean` | | Whether a `collapsible` legend starts collapsed. Without it, it follows the screen width until toggled. |
|
|
3318
3401
|
|
|
3319
3402
|
Also accepts all props of: `Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'>`.
|
|
3320
3403
|
|