@serendie/ui 3.5.1-dev.202606091509 → 3.5.1-dev.202606221120

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/client.js CHANGED
@@ -1,144 +1,148 @@
1
1
  "use client";
2
2
  import { SerendiePreset as r } from "./preset.js";
3
3
  import { ThemeContext as a, resolveTheme as m, useThemeContext as p } from "./theme/ThemeContext.js";
4
- import { useSystemColorScheme as x } from "./theme/useSystemColorScheme.js";
5
- import { ColorSchemeScript as s, getColorSchemeScript as f } from "./theme/initColorScheme.js";
4
+ import { useSystemColorScheme as i } from "./theme/useSystemColorScheme.js";
5
+ import { ColorSchemeScript as n, getColorSchemeScript as f } from "./theme/initColorScheme.js";
6
6
  import { formatDateByLang as l, getTranslations as d, useTranslations as S } from "./i18n/index.js";
7
7
  import { Accordion as C } from "./components/Accordion/Accordion.js";
8
8
  import { AccordionGroup as u } from "./components/Accordion/AccordionGroup.js";
9
- import { Avatar as B, AvatarStyle as T } from "./components/Avatar/Avatar.js";
10
- import { Badge as P, BadgeCloseButton as D, BadgeStyle as b } from "./components/Badge/Badge.js";
9
+ import { Avatar as y, AvatarStyle as I } from "./components/Avatar/Avatar.js";
10
+ import { Badge as b, BadgeCloseButton as P, BadgeStyle as D } from "./components/Badge/Badge.js";
11
11
  import { Banner as v } from "./components/Banner/Banner.js";
12
- import { BottomNavigation as w } from "./components/BottomNavigation/BottomNavigation.js";
13
- import { BottomNavigationItem as L, BottomNavigationItemStyle as N } from "./components/BottomNavigation/BottomNavigationItem.js";
14
- import { Button as F, ButtonStyle as G } from "./components/Button/Button.js";
15
- import { SerendieChartTheme as W } from "./components/Chart/SerendieChartTheme.js";
16
- import { compactChartMargin as q, defaultChartMargin as z, getChartColor as E, getChartColors as H, legendChartMargin as J, spaciousChartMargin as K, useBarChartProps as O, useChartProps as Q, useLineChartProps as V, usePieChartProps as X } from "./components/Chart/SerendieChartProps.js";
17
- import { CheckBox as Z, CheckBoxStyle as _, checkboxCheckedIconCss as $, checkboxIconCss as oo, checkboxUncheckedIconCss as eo } from "./components/CheckBox/CheckBox.js";
18
- import { ChoiceBox as to, ChoiceBoxStyle as ao } from "./components/ChoiceBox/ChoiceBox.js";
19
- import { DashboardWidget as po } from "./components/DashboardWidget/DashboardWidget.js";
20
- import { DataTable as xo } from "./components/DataTable/index.js";
21
- import { DatePicker as so } from "./components/DatePicker/DatePicker.js";
22
- import { Divider as co, DividerStyle as lo } from "./components/Divider/Divider.js";
23
- import { Drawer as ho } from "./components/Drawer/Drawer.js";
24
- import { DropdownMenu as go, DropdownMenuStyle as uo } from "./components/DropdownMenu/DropdownMenu.js";
25
- import { IconButton as Bo, IconButtonStyle as To } from "./components/IconButton/IconButton.js";
26
- import { List as Po } from "./components/List/List.js";
27
- import { ListItem as bo, ListItemStyle as ko } from "./components/List/ListItem.js";
28
- import { ModalDialog as Mo } from "./components/ModalDialog/ModalDialog.js";
29
- import { NotificationBadge as Ao } from "./components/NotificationBadge/NotificationBadge.js";
30
- import { Pagination as No, PaginationStyle as Ro } from "./components/Pagination/Pagination.js";
31
- import { PasswordField as Go } from "./components/PasswordField/PasswordField.js";
32
- import { ProgressIndicator as Wo } from "./components/ProgressIndicator/ProgressIndicator.js";
33
- import { ProgressIndicatorIndeterminate as qo } from "./components/ProgressIndicator/ProgressIndicatorIndeterminate.js";
34
- import { RadioButton as Eo, RadioButtonStyle as Ho, radioCheckedIconCss as Jo, radioIconCss as Ko, radioUncheckedIconCss as Oo } from "./components/RadioButton/RadioButton.js";
35
- import { RadioGroup as Vo } from "./components/RadioButton/RadioGroup.js";
36
- import { Search as Yo, SearchStyle as Zo } from "./components/Search/Search.js";
37
- import { Select as $o, SelectStyle as oe } from "./components/Select/Select.js";
38
- import { Slider as re, SliderStyle as te } from "./components/Slider/Slider.js";
39
- import { Steps as me, stepsStyles as pe } from "./components/Steps/Steps.js";
40
- import { Switch as xe, SwitchStyle as ne } from "./components/Switch/Switch.js";
41
- import { Tabs as fe, TabsStyle as ce } from "./components/Tabs/Tabs.js";
42
- import { TabItem as de, TabItemStyle as Se } from "./components/Tabs/TabItem.js";
43
- import { TextArea as Ce } from "./components/TextArea/TextArea.js";
44
- import { TextField as ue } from "./components/TextField/TextField.js";
45
- import { Toast as Be, ToastStyle as Te, toaster as Ie } from "./components/Toast/Toast.js";
46
- import { Tooltip as De } from "./components/Tooltip/Tooltip.js";
47
- import { TopAppBar as ke } from "./components/TopAppBar/TopAppBar.js";
48
- import { DataTableComponent as Me } from "./components/DataTable/DataTableComponent.js";
49
- import { LanguageProvider as Ae, SerendieProvider as Le } from "./i18n/provider.js";
50
- import { parse as Re } from "./node_modules/@zag-js/date-picker/dist/date-picker.parse.js";
12
+ import { BreadcrumbItem as w, Breadcrumbs as A, breadcrumbsStyle as L } from "./components/Breadcrumbs/Breadcrumbs.js";
13
+ import { BottomNavigation as R } from "./components/BottomNavigation/BottomNavigation.js";
14
+ import { BottomNavigationItem as G, BottomNavigationItemStyle as U } from "./components/BottomNavigation/BottomNavigationItem.js";
15
+ import { Button as j, ButtonStyle as q } from "./components/Button/Button.js";
16
+ import { SerendieChartTheme as E } from "./components/Chart/SerendieChartTheme.js";
17
+ import { compactChartMargin as J, defaultChartMargin as K, getChartColor as O, getChartColors as Q, legendChartMargin as V, spaciousChartMargin as X, useBarChartProps as Y, useChartProps as Z, useLineChartProps as _, usePieChartProps as $ } from "./components/Chart/SerendieChartProps.js";
18
+ import { CheckBox as eo, CheckBoxStyle as ro, checkboxCheckedIconCss as to, checkboxIconCss as ao, checkboxUncheckedIconCss as mo } from "./components/CheckBox/CheckBox.js";
19
+ import { ChoiceBox as xo, ChoiceBoxStyle as io } from "./components/ChoiceBox/ChoiceBox.js";
20
+ import { DashboardWidget as no } from "./components/DashboardWidget/DashboardWidget.js";
21
+ import { DataTable as co } from "./components/DataTable/index.js";
22
+ import { DatePicker as So } from "./components/DatePicker/DatePicker.js";
23
+ import { Divider as Co, DividerStyle as go } from "./components/Divider/Divider.js";
24
+ import { Drawer as Bo } from "./components/Drawer/Drawer.js";
25
+ import { DropdownMenu as Io, DropdownMenuStyle as To } from "./components/DropdownMenu/DropdownMenu.js";
26
+ import { IconButton as Po, IconButtonStyle as Do } from "./components/IconButton/IconButton.js";
27
+ import { List as vo } from "./components/List/List.js";
28
+ import { ListItem as wo, ListItemStyle as Ao } from "./components/List/ListItem.js";
29
+ import { ModalDialog as No } from "./components/ModalDialog/ModalDialog.js";
30
+ import { NotificationBadge as Fo } from "./components/NotificationBadge/NotificationBadge.js";
31
+ import { Pagination as Uo, PaginationStyle as Wo } from "./components/Pagination/Pagination.js";
32
+ import { PasswordField as qo } from "./components/PasswordField/PasswordField.js";
33
+ import { ProgressIndicator as Eo } from "./components/ProgressIndicator/ProgressIndicator.js";
34
+ import { ProgressIndicatorIndeterminate as Jo } from "./components/ProgressIndicator/ProgressIndicatorIndeterminate.js";
35
+ import { RadioButton as Oo, RadioButtonStyle as Qo, radioCheckedIconCss as Vo, radioIconCss as Xo, radioUncheckedIconCss as Yo } from "./components/RadioButton/RadioButton.js";
36
+ import { RadioGroup as _o } from "./components/RadioButton/RadioGroup.js";
37
+ import { Search as oe, SearchStyle as ee } from "./components/Search/Search.js";
38
+ import { Select as te, SelectStyle as ae } from "./components/Select/Select.js";
39
+ import { Slider as pe, SliderStyle as xe } from "./components/Slider/Slider.js";
40
+ import { Steps as se, stepsStyles as ne } from "./components/Steps/Steps.js";
41
+ import { Switch as ce, SwitchStyle as le } from "./components/Switch/Switch.js";
42
+ import { Tabs as Se, TabsStyle as he } from "./components/Tabs/Tabs.js";
43
+ import { TabItem as ge, TabItemStyle as ue } from "./components/Tabs/TabItem.js";
44
+ import { TextArea as ye } from "./components/TextArea/TextArea.js";
45
+ import { TextField as Te } from "./components/TextField/TextField.js";
46
+ import { Toast as Pe, ToastStyle as De, toaster as ke } from "./components/Toast/Toast.js";
47
+ import { Tooltip as Me } from "./components/Tooltip/Tooltip.js";
48
+ import { TopAppBar as Ae } from "./components/TopAppBar/TopAppBar.js";
49
+ import { DataTableComponent as Ne } from "./components/DataTable/DataTableComponent.js";
50
+ import { LanguageProvider as Fe, SerendieProvider as Ge } from "./i18n/provider.js";
51
+ import { parse as We } from "./node_modules/@zag-js/date-picker/dist/date-picker.parse.js";
51
52
  export {
52
53
  C as Accordion,
53
54
  u as AccordionGroup,
54
- B as Avatar,
55
- T as AvatarStyle,
56
- P as Badge,
57
- D as BadgeCloseButton,
58
- b as BadgeStyle,
55
+ y as Avatar,
56
+ I as AvatarStyle,
57
+ b as Badge,
58
+ P as BadgeCloseButton,
59
+ D as BadgeStyle,
59
60
  v as Banner,
60
- w as BottomNavigation,
61
- L as BottomNavigationItem,
62
- N as BottomNavigationItemStyle,
63
- F as Button,
64
- G as ButtonStyle,
65
- Z as CheckBox,
66
- _ as CheckBoxStyle,
67
- to as ChoiceBox,
68
- ao as ChoiceBoxStyle,
69
- s as ColorSchemeScript,
70
- po as DashboardWidget,
71
- xo as DataTable,
72
- Me as DataTableComponent,
73
- so as DatePicker,
74
- co as Divider,
75
- lo as DividerStyle,
76
- ho as Drawer,
77
- go as DropdownMenu,
78
- uo as DropdownMenuStyle,
79
- Bo as IconButton,
80
- To as IconButtonStyle,
81
- Ae as LanguageProvider,
82
- Po as List,
83
- bo as ListItem,
84
- ko as ListItemStyle,
85
- Mo as ModalDialog,
86
- Ao as NotificationBadge,
87
- No as Pagination,
88
- Ro as PaginationStyle,
89
- Go as PasswordField,
90
- Wo as ProgressIndicator,
91
- qo as ProgressIndicatorIndeterminate,
92
- Eo as RadioButton,
93
- Ho as RadioButtonStyle,
94
- Vo as RadioGroup,
95
- Yo as Search,
96
- Zo as SearchStyle,
97
- $o as Select,
98
- oe as SelectStyle,
99
- W as SerendieChartTheme,
61
+ R as BottomNavigation,
62
+ G as BottomNavigationItem,
63
+ U as BottomNavigationItemStyle,
64
+ w as BreadcrumbItem,
65
+ A as Breadcrumbs,
66
+ j as Button,
67
+ q as ButtonStyle,
68
+ eo as CheckBox,
69
+ ro as CheckBoxStyle,
70
+ xo as ChoiceBox,
71
+ io as ChoiceBoxStyle,
72
+ n as ColorSchemeScript,
73
+ no as DashboardWidget,
74
+ co as DataTable,
75
+ Ne as DataTableComponent,
76
+ So as DatePicker,
77
+ Co as Divider,
78
+ go as DividerStyle,
79
+ Bo as Drawer,
80
+ Io as DropdownMenu,
81
+ To as DropdownMenuStyle,
82
+ Po as IconButton,
83
+ Do as IconButtonStyle,
84
+ Fe as LanguageProvider,
85
+ vo as List,
86
+ wo as ListItem,
87
+ Ao as ListItemStyle,
88
+ No as ModalDialog,
89
+ Fo as NotificationBadge,
90
+ Uo as Pagination,
91
+ Wo as PaginationStyle,
92
+ qo as PasswordField,
93
+ Eo as ProgressIndicator,
94
+ Jo as ProgressIndicatorIndeterminate,
95
+ Oo as RadioButton,
96
+ Qo as RadioButtonStyle,
97
+ _o as RadioGroup,
98
+ oe as Search,
99
+ ee as SearchStyle,
100
+ te as Select,
101
+ ae as SelectStyle,
102
+ E as SerendieChartTheme,
100
103
  r as SerendiePreset,
101
- Le as SerendieProvider,
102
- re as Slider,
103
- te as SliderStyle,
104
- me as Steps,
105
- xe as Switch,
106
- ne as SwitchStyle,
107
- de as TabItem,
108
- Se as TabItemStyle,
109
- fe as Tabs,
110
- ce as TabsStyle,
111
- Ce as TextArea,
112
- ue as TextField,
104
+ Ge as SerendieProvider,
105
+ pe as Slider,
106
+ xe as SliderStyle,
107
+ se as Steps,
108
+ ce as Switch,
109
+ le as SwitchStyle,
110
+ ge as TabItem,
111
+ ue as TabItemStyle,
112
+ Se as Tabs,
113
+ he as TabsStyle,
114
+ ye as TextArea,
115
+ Te as TextField,
113
116
  a as ThemeContext,
114
- Be as Toast,
115
- Te as ToastStyle,
116
- De as Tooltip,
117
- ke as TopAppBar,
118
- $ as checkboxCheckedIconCss,
119
- oo as checkboxIconCss,
120
- eo as checkboxUncheckedIconCss,
121
- q as compactChartMargin,
122
- z as defaultChartMargin,
117
+ Pe as Toast,
118
+ De as ToastStyle,
119
+ Me as Tooltip,
120
+ Ae as TopAppBar,
121
+ L as breadcrumbsStyle,
122
+ to as checkboxCheckedIconCss,
123
+ ao as checkboxIconCss,
124
+ mo as checkboxUncheckedIconCss,
125
+ J as compactChartMargin,
126
+ K as defaultChartMargin,
123
127
  l as formatDateByLang,
124
- E as getChartColor,
125
- H as getChartColors,
128
+ O as getChartColor,
129
+ Q as getChartColors,
126
130
  f as getColorSchemeScript,
127
131
  d as getTranslations,
128
- J as legendChartMargin,
129
- Re as parseDate,
130
- Jo as radioCheckedIconCss,
131
- Ko as radioIconCss,
132
- Oo as radioUncheckedIconCss,
132
+ V as legendChartMargin,
133
+ We as parseDate,
134
+ Vo as radioCheckedIconCss,
135
+ Xo as radioIconCss,
136
+ Yo as radioUncheckedIconCss,
133
137
  m as resolveTheme,
134
- K as spaciousChartMargin,
135
- pe as stepsStyles,
136
- Ie as toaster,
137
- O as useBarChartProps,
138
- Q as useChartProps,
139
- V as useLineChartProps,
140
- X as usePieChartProps,
141
- x as useSystemColorScheme,
138
+ X as spaciousChartMargin,
139
+ ne as stepsStyles,
140
+ ke as toaster,
141
+ Y as useBarChartProps,
142
+ Z as useChartProps,
143
+ _ as useLineChartProps,
144
+ $ as usePieChartProps,
145
+ i as useSystemColorScheme,
142
146
  p as useThemeContext,
143
147
  S as useTranslations
144
148
  };
@@ -0,0 +1,84 @@
1
+ import { default as React, ComponentProps } from 'react';
2
+ import { RecipeVariantProps } from '../../../styled-system/css';
3
+ export declare const breadcrumbsStyle: import('../../../styled-system/types').SlotRecipeRuntimeFn<"link" | "item" | "icon" | "list" | "separator" | "root" | "ellipsis", {
4
+ size: {
5
+ medium: {
6
+ link: {
7
+ textStyle: "sd.system.typography.body.small_compact";
8
+ paddingInline: "sd.system.dimension.spacing.extraSmall";
9
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall";
10
+ minHeight: "sd.reference.dimension.scale.10";
11
+ _expanded: {
12
+ textStyle: "sd.system.typography.body.small_expanded";
13
+ };
14
+ };
15
+ separator: {
16
+ _expanded: {
17
+ textStyle: "sd.system.typography.body.small_expanded";
18
+ };
19
+ };
20
+ ellipsis: {
21
+ "& button": {
22
+ paddingInline: "sd.system.dimension.spacing.extraSmall";
23
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall";
24
+ minHeight: "sd.reference.dimension.scale.10";
25
+ };
26
+ };
27
+ icon: {
28
+ width: "sd.reference.dimension.scale.7";
29
+ height: "sd.reference.dimension.scale.7";
30
+ "& svg": {
31
+ width: "sd.reference.dimension.scale.7";
32
+ height: "sd.reference.dimension.scale.7";
33
+ };
34
+ };
35
+ };
36
+ small: {
37
+ link: {
38
+ textStyle: "sd.system.typography.label.medium_compact";
39
+ paddingInline: "sd.system.dimension.spacing.twoExtraSmall";
40
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall";
41
+ gap: "sd.system.dimension.spacing.twoExtraSmall";
42
+ minHeight: "sd.reference.dimension.scale.10";
43
+ _expanded: {
44
+ textStyle: "sd.system.typography.label.medium_expanded";
45
+ };
46
+ };
47
+ separator: {
48
+ _expanded: {
49
+ textStyle: "sd.system.typography.label.medium_expanded";
50
+ };
51
+ };
52
+ ellipsis: {
53
+ "& button": {
54
+ paddingInline: "sd.system.dimension.spacing.twoExtraSmall";
55
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall";
56
+ minHeight: "sd.reference.dimension.scale.10";
57
+ };
58
+ };
59
+ icon: {
60
+ width: "14px";
61
+ height: "14px";
62
+ "& svg": {
63
+ width: "14px";
64
+ height: "14px";
65
+ };
66
+ };
67
+ };
68
+ };
69
+ }>;
70
+ type BreadcrumbsVariantProps = RecipeVariantProps<typeof breadcrumbsStyle>;
71
+ export type BreadcrumbsProps = ComponentProps<"nav"> & BreadcrumbsVariantProps & {
72
+ separator?: "chevron" | "slash";
73
+ maxItems?: number;
74
+ itemsBeforeCollapse?: number;
75
+ itemsAfterCollapse?: number;
76
+ };
77
+ export type BreadcrumbItemProps = ComponentProps<"li"> & {
78
+ href?: string;
79
+ current?: boolean;
80
+ icon?: React.ReactElement;
81
+ };
82
+ export declare const Breadcrumbs: React.ForwardRefExoticComponent<Omit<BreadcrumbsProps, "ref"> & React.RefAttributes<HTMLElement>>;
83
+ export declare const BreadcrumbItem: React.ForwardRefExoticComponent<Omit<BreadcrumbItemProps, "ref"> & React.RefAttributes<HTMLLIElement>>;
84
+ export {};
@@ -0,0 +1,268 @@
1
+ import { jsx as e, jsxs as y, Fragment as j } from "react/jsx-runtime";
2
+ import l, { useState as P, useEffect as F, useContext as L, createContext as T } from "react";
3
+ import { SerendieSymbolMoreHorizontal as A, SerendieSymbolChevronRight as D } from "@serendie/symbols";
4
+ import { useTranslations as q } from "../../i18n/index.js";
5
+ import { cx as g } from "../../styled-system/css/cx.js";
6
+ import { css as k } from "../../styled-system/css/css.js";
7
+ import { sva as G } from "../../styled-system/css/sva.js";
8
+ const C = G({
9
+ slots: ["root", "list", "item", "link", "separator", "ellipsis", "icon"],
10
+ base: {
11
+ root: {
12
+ display: "inline-flex",
13
+ alignItems: "center"
14
+ },
15
+ list: {
16
+ display: "flex",
17
+ alignItems: "center",
18
+ listStyle: "none",
19
+ margin: 0,
20
+ padding: 0,
21
+ flexWrap: "wrap"
22
+ },
23
+ item: {
24
+ display: "inline-flex",
25
+ alignItems: "center"
26
+ },
27
+ link: {
28
+ display: "inline-flex",
29
+ alignItems: "center",
30
+ gap: "sd.system.dimension.spacing.extraSmall",
31
+ color: "sd.system.color.impression.primary",
32
+ textDecoration: "none",
33
+ cursor: "pointer",
34
+ borderRadius: "sd.system.dimension.radius.small",
35
+ transition: "background-color 0.2s",
36
+ _hover: {
37
+ backgroundColor: "sd.system.color.interaction.hoveredVariant"
38
+ },
39
+ _focusVisible: {
40
+ outlineWidth: "sd.system.dimension.border.medium",
41
+ outlineStyle: "solid",
42
+ outlineColor: "sd.system.color.impression.primary"
43
+ },
44
+ "&[aria-current='page']": {
45
+ color: "sd.system.color.component.onSurface",
46
+ fontWeight: "sd.reference.typography.fontWeight.regular",
47
+ cursor: "default",
48
+ _hover: {
49
+ backgroundColor: "transparent"
50
+ }
51
+ }
52
+ },
53
+ separator: {
54
+ display: "inline-flex",
55
+ alignItems: "center",
56
+ color: "sd.system.color.component.onSurfaceVariant",
57
+ userSelect: "none"
58
+ },
59
+ ellipsis: {
60
+ display: "inline-flex",
61
+ alignItems: "center",
62
+ justifyContent: "center",
63
+ color: "sd.system.color.impression.primary",
64
+ cursor: "pointer",
65
+ "& button": {
66
+ display: "inline-flex",
67
+ alignItems: "center",
68
+ justifyContent: "center",
69
+ background: "none",
70
+ border: "none",
71
+ color: "inherit",
72
+ cursor: "pointer",
73
+ borderRadius: "sd.system.dimension.radius.small",
74
+ transition: "background-color 0.2s",
75
+ _hover: {
76
+ backgroundColor: "sd.system.color.interaction.hoveredVariant"
77
+ },
78
+ _focusVisible: {
79
+ outlineWidth: "sd.system.dimension.border.medium",
80
+ outlineStyle: "solid",
81
+ outlineColor: "sd.system.color.impression.primary"
82
+ }
83
+ }
84
+ },
85
+ icon: {
86
+ display: "inline-flex",
87
+ alignItems: "center",
88
+ flexShrink: 0
89
+ }
90
+ },
91
+ variants: {
92
+ size: {
93
+ medium: {
94
+ link: {
95
+ textStyle: "sd.system.typography.body.small_compact",
96
+ paddingInline: "sd.system.dimension.spacing.extraSmall",
97
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall",
98
+ minHeight: "sd.reference.dimension.scale.10",
99
+ _expanded: {
100
+ textStyle: "sd.system.typography.body.small_expanded"
101
+ }
102
+ },
103
+ separator: {
104
+ _expanded: {
105
+ textStyle: "sd.system.typography.body.small_expanded"
106
+ }
107
+ },
108
+ ellipsis: {
109
+ "& button": {
110
+ paddingInline: "sd.system.dimension.spacing.extraSmall",
111
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall",
112
+ minHeight: "sd.reference.dimension.scale.10"
113
+ }
114
+ },
115
+ icon: {
116
+ width: "sd.reference.dimension.scale.7",
117
+ height: "sd.reference.dimension.scale.7",
118
+ "& svg": {
119
+ width: "sd.reference.dimension.scale.7",
120
+ height: "sd.reference.dimension.scale.7"
121
+ }
122
+ }
123
+ },
124
+ small: {
125
+ link: {
126
+ textStyle: "sd.system.typography.label.medium_compact",
127
+ paddingInline: "sd.system.dimension.spacing.twoExtraSmall",
128
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall",
129
+ gap: "sd.system.dimension.spacing.twoExtraSmall",
130
+ minHeight: "sd.reference.dimension.scale.10",
131
+ _expanded: {
132
+ textStyle: "sd.system.typography.label.medium_expanded"
133
+ }
134
+ },
135
+ separator: {
136
+ _expanded: {
137
+ textStyle: "sd.system.typography.label.medium_expanded"
138
+ }
139
+ },
140
+ ellipsis: {
141
+ "& button": {
142
+ paddingInline: "sd.system.dimension.spacing.twoExtraSmall",
143
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall",
144
+ minHeight: "sd.reference.dimension.scale.10"
145
+ }
146
+ },
147
+ icon: {
148
+ width: "14px",
149
+ height: "14px",
150
+ "& svg": {
151
+ width: "14px",
152
+ height: "14px"
153
+ }
154
+ }
155
+ }
156
+ }
157
+ },
158
+ defaultVariants: {
159
+ size: "medium"
160
+ }
161
+ }), _ = T(null), J = () => {
162
+ const i = L(_);
163
+ return i || {
164
+ styles: C(),
165
+ size: "medium"
166
+ };
167
+ }, K = l.forwardRef(
168
+ ({
169
+ children: i,
170
+ separator: o = "chevron",
171
+ className: a,
172
+ size: s = "medium",
173
+ maxItems: d,
174
+ itemsBeforeCollapse: m = 1,
175
+ itemsAfterCollapse: c = 1,
176
+ ...r
177
+ }, p) => {
178
+ const n = C({ size: s }), [I, u] = P(!1), x = q(), t = l.Children.toArray(i).filter(
179
+ l.isValidElement
180
+ ), B = t.length;
181
+ F(() => {
182
+ u(!1);
183
+ }, [B]);
184
+ const f = d !== void 0 && t.length > d && t.length > m + c && !I, b = Math.max(0, m), E = Math.max(0, c), S = f ? [
185
+ ...t.slice(0, b),
186
+ ...t.slice(t.length - E)
187
+ ] : t, w = s === "small" ? 16 : 24, N = s === "small" ? 16 : 32, V = 32, W = s === "medium" ? k({
188
+ padding: "sd.system.dimension.spacing.twoExtraSmall"
189
+ }) : k({
190
+ paddingBlock: "sd.system.dimension.spacing.twoExtraSmall"
191
+ }), v = () => /* @__PURE__ */ e(
192
+ "li",
193
+ {
194
+ className: g(
195
+ n.separator,
196
+ o === "chevron" ? W : void 0
197
+ ),
198
+ role: "presentation",
199
+ "aria-hidden": "true",
200
+ children: o === "chevron" ? /* @__PURE__ */ e(
201
+ D,
202
+ {
203
+ width: w,
204
+ height: w
205
+ }
206
+ ) : /* @__PURE__ */ e(
207
+ "svg",
208
+ {
209
+ width: N,
210
+ height: V,
211
+ viewBox: "0 0 32 32",
212
+ fill: "none",
213
+ xmlns: "http://www.w3.org/2000/svg",
214
+ children: /* @__PURE__ */ e("path", { d: "M18.5 10L13 21", stroke: "currentColor", strokeWidth: "1.2" })
215
+ }
216
+ )
217
+ }
218
+ );
219
+ return /* @__PURE__ */ e(_.Provider, { value: { styles: n, size: s }, children: /* @__PURE__ */ e(
220
+ "nav",
221
+ {
222
+ ref: p,
223
+ "aria-label": x("breadcrumbs.label"),
224
+ className: g(n.root, a),
225
+ ...r,
226
+ children: /* @__PURE__ */ e("ol", { className: n.list, children: S.map((H, h) => {
227
+ const R = h === S.length - 1, M = f && h === b;
228
+ return /* @__PURE__ */ y(l.Fragment, { children: [
229
+ M && /* @__PURE__ */ y(j, { children: [
230
+ /* @__PURE__ */ e("li", { className: n.ellipsis, children: /* @__PURE__ */ e(
231
+ "button",
232
+ {
233
+ type: "button",
234
+ "aria-label": x("breadcrumbs.showMore"),
235
+ onClick: () => u(!0),
236
+ children: /* @__PURE__ */ e(
237
+ A,
238
+ {
239
+ width: s === "small" ? 14 : 20,
240
+ height: s === "small" ? 17 : 20
241
+ }
242
+ )
243
+ }
244
+ ) }),
245
+ v()
246
+ ] }),
247
+ H,
248
+ !R && v()
249
+ ] }, h);
250
+ }) })
251
+ }
252
+ ) });
253
+ }
254
+ );
255
+ K.displayName = "Breadcrumbs";
256
+ const O = l.forwardRef(({ children: i, href: o, current: a, icon: s, className: d, ...m }, c) => {
257
+ const { styles: r } = J(), p = a ? "span" : o ? "a" : "span", n = a ? { "aria-current": "page" } : o ? { href: o } : {};
258
+ return /* @__PURE__ */ e("li", { ref: c, className: g(r.item, d), ...m, children: /* @__PURE__ */ y(p, { className: r.link, ...n, children: [
259
+ s && /* @__PURE__ */ e("span", { className: r.icon, children: s }),
260
+ i
261
+ ] }) });
262
+ });
263
+ O.displayName = "BreadcrumbItem";
264
+ export {
265
+ O as BreadcrumbItem,
266
+ K as Breadcrumbs,
267
+ C as breadcrumbsStyle
268
+ };
@@ -0,0 +1,2 @@
1
+ export { Breadcrumbs, BreadcrumbItem, breadcrumbsStyle } from './Breadcrumbs';
2
+ export type { BreadcrumbsProps, BreadcrumbItemProps } from './Breadcrumbs';
@@ -0,0 +1,6 @@
1
+ import { BreadcrumbItem as m, Breadcrumbs as b, breadcrumbsStyle as a } from "./Breadcrumbs.js";
2
+ export {
3
+ m as BreadcrumbItem,
4
+ b as Breadcrumbs,
5
+ a as breadcrumbsStyle
6
+ };
@@ -0,0 +1,12 @@
1
+ export type DataRow = {
2
+ id: number;
3
+ area: string;
4
+ time: string;
5
+ status: string;
6
+ connections: number;
7
+ households: number;
8
+ coverage: string;
9
+ errorRate: string;
10
+ process: string;
11
+ };
12
+ export declare function createDataTableRows(seed?: number): DataRow[];