@toteat-eng/ds-react 2026.6.9 → 2026.6.10
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/components/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +14 -0
- package/dist/components/Breadcrumb/index.d.ts +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts +13 -0
- package/dist/components/SearchInput/__stories__/SearchInput.stories.d.ts +11 -0
- package/dist/components/SearchInput/index.d.ts +2 -0
- package/dist/components/Stepper/Stepper.d.ts +17 -0
- package/dist/components/Stepper/__stories__/Stepper.stories.d.ts +11 -0
- package/dist/components/Stepper/index.d.ts +2 -0
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.es.js +482 -332
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -9
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/csv.d.ts +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BreadcrumbProps {
|
|
7
|
+
items: BreadcrumbItem[];
|
|
8
|
+
onBack?: () => void;
|
|
9
|
+
backLabel?: string;
|
|
10
|
+
label?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
"data-testid"?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare function Breadcrumb({ items, onBack, backLabel, label, className, "data-testid": testId, }: BreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { Breadcrumb } from "../Breadcrumb";
|
|
3
|
+
declare const meta: Meta<typeof Breadcrumb>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Breadcrumb>;
|
|
6
|
+
export declare const SingleItem: Story;
|
|
7
|
+
export declare const MultipleItems: Story;
|
|
8
|
+
export declare const WithBackButton: Story;
|
|
9
|
+
export declare const WithoutBackButton: Story;
|
|
10
|
+
export declare const ItemsWithHref: Story;
|
|
11
|
+
export declare const ItemsWithHrefAndBack: Story;
|
|
12
|
+
export declare const ThemeVue3: Story;
|
|
13
|
+
export declare const ThemeAngularLegacy: Story;
|
|
14
|
+
export declare const BothThemes: Story;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface SearchInputProps {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
onClear?: () => void;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
clearLabel?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
"data-testid"?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function SearchInput({ value, onChange, onClear, placeholder, label, id: idProp, disabled, clearLabel, className, "data-testid": testId, }: SearchInputProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { SearchInput } from "../SearchInput";
|
|
3
|
+
declare const meta: Meta<typeof SearchInput>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof SearchInput>;
|
|
6
|
+
export declare const Empty: Story;
|
|
7
|
+
export declare const WithValue: Story;
|
|
8
|
+
export declare const Disabled: Story;
|
|
9
|
+
export declare const DisabledWithValue: Story;
|
|
10
|
+
export declare const CustomPlaceholder: Story;
|
|
11
|
+
export declare const BothThemes: Story;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface StepperProps {
|
|
2
|
+
value: number;
|
|
3
|
+
onChange: (value: number) => void;
|
|
4
|
+
/** Lower bound (inclusive). Must be ≤ `max`. @default 0 */
|
|
5
|
+
min?: number;
|
|
6
|
+
/** Upper bound (inclusive). Must be ≥ `min`. @default Number.MAX_SAFE_INTEGER */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** Increment size. Must be > 0. @default 1 */
|
|
9
|
+
step?: number;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
"aria-label"?: string;
|
|
12
|
+
decrementLabel?: string;
|
|
13
|
+
incrementLabel?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
"data-testid"?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function Stepper({ value, onChange, min, max, step, disabled, "aria-label": ariaLabel, decrementLabel, incrementLabel, className, "data-testid": testId, }: StepperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
2
|
+
import { Stepper } from "../Stepper";
|
|
3
|
+
declare const meta: Meta<typeof Stepper>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Stepper>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const AtMin: Story;
|
|
8
|
+
export declare const AtMax: Story;
|
|
9
|
+
export declare const FullyDisabled: Story;
|
|
10
|
+
export declare const CustomStep: Story;
|
|
11
|
+
export declare const BothThemes: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type InputHTMLAttributes } from "react";
|
|
2
|
-
export type TextInputSize = "small" | "medium";
|
|
2
|
+
export type TextInputSize = "small" | "medium" | "large";
|
|
3
3
|
export interface TextInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
|
|
4
4
|
error?: boolean;
|
|
5
5
|
showPasswordToggle?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type { BackgroundWrapperProps } from "./components/BackgroundWrapper";
|
|
|
9
9
|
export { BackgroundWrapper } from "./components/BackgroundWrapper";
|
|
10
10
|
export type { BadgeProps, BadgeSize, BadgeVariant } from "./components/Badge";
|
|
11
11
|
export { Badge } from "./components/Badge";
|
|
12
|
+
export type { BreadcrumbItem, BreadcrumbProps } from "./components/Breadcrumb";
|
|
13
|
+
export { Breadcrumb } from "./components/Breadcrumb";
|
|
12
14
|
export type { ButtonProps, ButtonSize, ButtonVariant, } from "./components/Button";
|
|
13
15
|
export { Button } from "./components/Button";
|
|
14
16
|
export type { CardElevation, CardPadding, CardProps } from "./components/Card";
|
|
@@ -72,6 +74,8 @@ export type { PinLockOverlayProps } from "./components/PinLockOverlay";
|
|
|
72
74
|
export { PinLockOverlay } from "./components/PinLockOverlay";
|
|
73
75
|
export type { RadioProps } from "./components/Radio";
|
|
74
76
|
export { Radio } from "./components/Radio";
|
|
77
|
+
export type { SearchInputProps } from "./components/SearchInput";
|
|
78
|
+
export { SearchInput } from "./components/SearchInput";
|
|
75
79
|
export type { SectionHeaderProps } from "./components/SectionHeader";
|
|
76
80
|
export { SectionHeader } from "./components/SectionHeader";
|
|
77
81
|
export type { SelectOption, SelectProps } from "./components/Select";
|
|
@@ -88,6 +92,8 @@ export type { SpinnerProps, SpinnerSize } from "./components/Spinner";
|
|
|
88
92
|
export { Spinner } from "./components/Spinner";
|
|
89
93
|
export type { StatusBadgeProps } from "./components/StatusBadge";
|
|
90
94
|
export { StatusBadge } from "./components/StatusBadge";
|
|
95
|
+
export type { StepperProps } from "./components/Stepper";
|
|
96
|
+
export { Stepper } from "./components/Stepper";
|
|
91
97
|
export type { TabBarProps, TabBarVariant } from "./components/TabBar";
|
|
92
98
|
export { TabBar } from "./components/TabBar";
|
|
93
99
|
export type { TabItem, TabsProps } from "./components/Tabs";
|
|
@@ -126,5 +132,6 @@ export { PageLayout } from "./layouts/PageLayout";
|
|
|
126
132
|
export type { StackAlign, StackDirection, StackGap, StackJustify, StackProps, } from "./layouts/Stack";
|
|
127
133
|
export { Stack } from "./layouts/Stack";
|
|
128
134
|
export { cn } from "./utils/cn";
|
|
135
|
+
export { escapeCell, rowsToCsv } from "./utils/csv";
|
|
129
136
|
export { useFocusTrap } from "./utils/focusTrap";
|
|
130
137
|
export { portal } from "./utils/portal";
|