@techsio/ui-kit 0.41.0 → 0.41.2
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/README.md +2 -1
- package/dist/atoms/numeric-input.js +3 -3
- package/dist/atoms/rating.js +3 -3
- package/dist/atoms/tooltip.js +3 -3
- package/dist/molecules/accordion.js +3 -3
- package/dist/molecules/carousel.js +3 -3
- package/dist/molecules/chart.js +1 -1
- package/dist/molecules/dialog.js +3 -3
- package/dist/molecules/menu.js +5 -5
- package/dist/molecules/radio-group.js +3 -3
- package/dist/molecules/select.js +4 -4
- package/dist/molecules/slider.js +3 -3
- package/dist/molecules/switch.js +3 -3
- package/dist/molecules/tabs.js +3 -3
- package/dist/molecules/toast.js +6 -6
- package/dist/molecules/tree-view.js +4 -4
- package/dist/organisms/data-table.fields.js +1 -1
- package/dist/organisms/data-table.js +7 -7
- package/dist/src/atoms/action-icon.d.ts +1 -1
- package/dist/src/atoms/button.d.ts +1 -1
- package/dist/src/atoms/link-button.d.ts +1 -1
- package/dist/src/atoms/numeric-input.d.ts +1 -1
- package/dist/src/atoms/status-text.d.ts +1 -1
- package/dist/src/molecules/accordion.d.ts +1 -1
- package/dist/src/molecules/breadcrumb.d.ts +2 -2
- package/dist/src/molecules/carousel.d.ts +2 -2
- package/dist/src/molecules/combobox.d.ts +1 -1
- package/dist/src/molecules/form-input.d.ts +1 -1
- package/dist/src/molecules/form-numeric-input.d.ts +1 -1
- package/dist/src/molecules/form-textarea.d.ts +1 -1
- package/dist/src/molecules/menu.d.ts +1 -1
- package/dist/src/molecules/pagination.d.ts +1 -1
- package/dist/src/molecules/phone-input.d.ts +3 -3
- package/dist/src/molecules/popover.d.ts +1 -1
- package/dist/src/molecules/product-card.d.ts +4 -4
- package/dist/src/molecules/radio-card.d.ts +2 -2
- package/dist/src/molecules/radio-group.d.ts +2 -2
- package/dist/src/molecules/search-form.d.ts +5 -5
- package/dist/src/molecules/select.d.ts +1 -1
- package/dist/src/molecules/steps.d.ts +1 -1
- package/dist/src/molecules/tabs.d.ts +1 -1
- package/dist/src/molecules/tree-view.d.ts +1 -1
- package/dist/src/organisms/data-table.d.ts +8 -8
- package/dist/src/organisms/data-table.fields.d.ts +2 -2
- package/dist/src/organisms/data-table.helpers.d.ts +1 -1
- package/dist/src/organisms/gallery.d.ts +2 -2
- package/dist/src/templates/accordion.d.ts +2 -2
- package/dist/src/templates/breadcrumb.d.ts +2 -2
- package/dist/src/templates/carousel.d.ts +2 -2
- package/dist/src/templates/gallery.d.ts +3 -3
- package/dist/src/templates/numeric-input.d.ts +2 -2
- package/dist/src/templates/popover.d.ts +1 -1
- package/dist/src/templates/product-card.d.ts +2 -2
- package/dist/src/templates/select.d.ts +1 -1
- package/dist/src/templates/tabs.d.ts +1 -1
- package/dist/src/theme/theme-provider.d.ts +1 -1
- package/dist/stories/atoms/badge.stories.d.ts +1 -1
- package/dist/stories/atoms/button.stories.d.ts +1 -1
- package/dist/stories/atoms/checkbox.stories.d.ts +1 -1
- package/dist/stories/atoms/icon.stories.d.ts +1 -1
- package/dist/stories/atoms/image.stories.d.ts +1 -1
- package/dist/stories/atoms/input.stories.d.ts +1 -1
- package/dist/stories/atoms/numeric-input.stories.d.ts +1 -1
- package/dist/stories/atoms/rating.stories.d.ts +1 -1
- package/dist/stories/atoms/skeleton.stories.d.ts +1 -1
- package/dist/stories/atoms/status-text.stories.d.ts +1 -1
- package/dist/stories/atoms/textarea.stories.d.ts +1 -1
- package/dist/stories/atoms/tooltip.stories.d.ts +2 -2
- package/dist/stories/helpers/icon-options.d.ts +1 -1
- package/dist/stories/molecules/accordion.stories.d.ts +1 -1
- package/dist/stories/molecules/breadcrumb.stories.d.ts +1 -1
- package/dist/stories/molecules/carousel.stories.d.ts +1 -1
- package/dist/stories/molecules/chart.stories.d.ts +1 -1
- package/dist/stories/molecules/color-select.stories.d.ts +1 -1
- package/dist/stories/molecules/combobox.stories.d.ts +1 -1
- package/dist/stories/molecules/dialog.stories.d.ts +1 -1
- package/dist/stories/molecules/form-checkbox.stories.d.ts +1 -1
- package/dist/stories/molecules/form-input.stories.d.ts +1 -1
- package/dist/stories/molecules/form-numeric-input.stories.d.ts +1 -1
- package/dist/stories/molecules/form-textarea.stories.d.ts +1 -1
- package/dist/stories/molecules/menu.stories.d.ts +1 -1
- package/dist/stories/molecules/pagination.stories.d.ts +1 -1
- package/dist/stories/molecules/phone-input.stories.d.ts +1 -1
- package/dist/stories/molecules/popover.stories.d.ts +1 -1
- package/dist/stories/molecules/product-card.stories.d.ts +1 -1
- package/dist/stories/molecules/radio-card.stories.d.ts +1 -1
- package/dist/stories/molecules/radio-group.stories.d.ts +1 -1
- package/dist/stories/molecules/search-form.stories.d.ts +1 -1
- package/dist/stories/molecules/select.stories.d.ts +1 -1
- package/dist/stories/molecules/slider.stories.d.ts +1 -1
- package/dist/stories/molecules/steps.stories.d.ts +1 -1
- package/dist/stories/molecules/switch.stories.d.ts +1 -1
- package/dist/stories/molecules/tabs.stories.d.ts +1 -1
- package/dist/stories/molecules/tree-view.stories.d.ts +1 -1
- package/dist/stories/organisms/data-table.stories.d.ts +1 -1
- package/dist/stories/organisms/footer.stories.d.ts +1 -1
- package/dist/stories/organisms/gallery.stories.d.ts +2 -2
- package/dist/stories/organisms/header.stories.d.ts +1 -1
- package/dist/stories/organisms/table.stories.d.ts +1 -1
- package/dist/stories/templates/accordion.stories.d.ts +1 -1
- package/dist/stories/templates/breadcrumb.stories.d.ts +1 -1
- package/dist/stories/templates/carousel.stories.d.ts +1 -1
- package/dist/stories/templates/gallery.stories.d.ts +1 -1
- package/dist/stories/templates/numeric-input.stories.d.ts +1 -1
- package/dist/stories/templates/popover.stories.d.ts +1 -1
- package/dist/stories/templates/product-card.stories.d.ts +1 -1
- package/dist/stories/templates/select.stories.d.ts +1 -1
- package/dist/stories/templates/tabs.stories.d.ts +1 -1
- package/dist/theme/theme-provider.js +4 -4
- package/dist/theme/theme-toggle.js +1 -1
- package/package.json +20 -12
- package/src/tokens/styles.d.ts +3 -0
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import * as carousel from "@zag-js/carousel";
|
|
13
13
|
import { type CSSProperties, type ComponentPropsWithoutRef, type ElementType, type ReactNode } from "react";
|
|
14
14
|
import { type VariantProps } from "tailwind-variants";
|
|
15
|
-
import type { IconType } from "../atoms/icon";
|
|
16
|
-
import { Image } from "../atoms/image";
|
|
15
|
+
import type { IconType } from "../atoms/icon.js";
|
|
16
|
+
import { Image } from "../atoms/image.js";
|
|
17
17
|
type CarouselImageComponent<T extends ElementType = typeof Image> = T extends typeof Image ? typeof Image : T extends ElementType ? "src" extends keyof ComponentPropsWithoutRef<T> ? "alt" extends keyof ComponentPropsWithoutRef<T> ? T : never : never : never;
|
|
18
18
|
declare const carouselVariants: import("tailwind-variants").TVReturnType<{
|
|
19
19
|
objectFit: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { VariantProps } from "tailwind-variants";
|
|
2
|
-
import { type IconProps, type IconType } from "../atoms/icon";
|
|
2
|
+
import { type IconProps, type IconType } from "../atoms/icon.js";
|
|
3
3
|
declare const comboboxVariants: import("tailwind-variants").TVReturnType<{
|
|
4
4
|
size: {
|
|
5
5
|
sm: {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* the form-input-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { ReactNode } from "react";
|
|
13
|
-
import { type InputProps } from "../atoms/input";
|
|
13
|
+
import { type InputProps } from "../atoms/input.js";
|
|
14
14
|
type ValidateStatus = "default" | "error" | "success" | "warning";
|
|
15
15
|
interface FormInputRawProps extends InputProps {
|
|
16
16
|
id: string;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* the form-numeric-input-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { ReactNode } from "react";
|
|
13
|
-
import { type NumericInputProps } from "../atoms/numeric-input";
|
|
13
|
+
import { type NumericInputProps } from "../atoms/numeric-input.js";
|
|
14
14
|
type ValidateStatus = "default" | "error" | "success" | "warning";
|
|
15
15
|
interface FormNumericInputProps extends Omit<NumericInputProps, "children"> {
|
|
16
16
|
id: string;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* the form-textarea-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { ReactNode } from "react";
|
|
13
|
-
import { type TextareaProps } from "../atoms/textarea";
|
|
13
|
+
import { type TextareaProps } from "../atoms/textarea.js";
|
|
14
14
|
type ValidateStatus = "default" | "error" | "success" | "warning";
|
|
15
15
|
interface FormTextareaRawProps extends TextareaProps {
|
|
16
16
|
id: string;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { type IntlTranslations as PaginationIntlTranslations, type PageUrlDetails as PaginationPageUrlDetails } from "@zag-js/pagination";
|
|
13
13
|
import { type ElementType, type HTMLAttributes, type ReactNode } from "react";
|
|
14
14
|
import type { VariantProps } from "tailwind-variants";
|
|
15
|
-
import { type LinkButtonProps } from "../atoms/link-button";
|
|
15
|
+
import { type LinkButtonProps } from "../atoms/link-button.js";
|
|
16
16
|
export declare const paginationVariants: import("tailwind-variants").TVReturnType<{
|
|
17
17
|
variant: {
|
|
18
18
|
filled: {
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
import { type CountryCode, type E164Number } from "libphonenumber-js/max";
|
|
13
13
|
import { type ChangeEventHandler, type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
14
14
|
import type { VariantProps } from "tailwind-variants";
|
|
15
|
-
import type { IconProps } from "../atoms/icon";
|
|
16
|
-
import { type InputProps } from "../atoms/input";
|
|
17
|
-
import { type LabelProps } from "../atoms/label";
|
|
15
|
+
import type { IconProps } from "../atoms/icon.js";
|
|
16
|
+
import { type InputProps } from "../atoms/input.js";
|
|
17
|
+
import { type LabelProps } from "../atoms/label.js";
|
|
18
18
|
export type PhoneInputSize = "sm" | "md" | "lg";
|
|
19
19
|
export type PhoneInputValidateStatus = "default" | "error" | "success" | "warning";
|
|
20
20
|
export type PhoneInputCountry = {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { type Api as PopoverApi, type Props as PopoverMachineProps, type Placement as PopoverPlacement, type PositioningOptions as PopoverPositioningOptions } from "@zag-js/popover";
|
|
13
13
|
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
14
14
|
import type { VariantProps } from "tailwind-variants";
|
|
15
|
-
import { type ButtonProps } from "../atoms/button";
|
|
15
|
+
import { type ButtonProps } from "../atoms/button.js";
|
|
16
16
|
declare const popoverVariants: import("tailwind-variants").TVReturnType<{
|
|
17
17
|
shadow: {
|
|
18
18
|
true: {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ComponentPropsWithoutRef, type ComponentPropsWithRef, type ElementType, type HTMLAttributes, type ReactNode, type Ref } from "react";
|
|
13
13
|
import type { VariantProps } from "tailwind-variants";
|
|
14
|
-
import type { IconProps, IconType } from "../atoms/icon";
|
|
15
|
-
import { Image } from "../atoms/image";
|
|
16
|
-
import { type RatingProps } from "../atoms/rating";
|
|
14
|
+
import type { IconProps, IconType } from "../atoms/icon.js";
|
|
15
|
+
import { Image } from "../atoms/image.js";
|
|
16
|
+
import { type RatingProps } from "../atoms/rating.js";
|
|
17
17
|
declare const productCardVariants: import("tailwind-variants").TVReturnType<{
|
|
18
18
|
buttonVariant: {
|
|
19
19
|
cart: {
|
|
@@ -159,7 +159,7 @@ interface ProductCardButtonProps extends HTMLAttributes<HTMLButtonElement> {
|
|
|
159
159
|
}
|
|
160
160
|
export declare function ProductCard({ children, layout, className, ref, ...props }: ProductCardProps): import("react/jsx-runtime").JSX.Element;
|
|
161
161
|
export declare namespace ProductCard {
|
|
162
|
-
var Image: <T extends ElementType = typeof import("../atoms/image").Image>({ as, className, ref, ...props }: ProductCardImageProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
162
|
+
var Image: <T extends ElementType = typeof import("../atoms/image.js").Image>({ as, className, ref, ...props }: ProductCardImageProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
163
163
|
var Name: ({ children, className, ref, ...props }: ProductCardNameProps) => import("react/jsx-runtime").JSX.Element;
|
|
164
164
|
var Price: ({ children, className, ref, ...props }: ProductCardPriceProps) => import("react/jsx-runtime").JSX.Element;
|
|
165
165
|
var Stock: ({ children, className, ref, status, ...props }: ProductCardStockProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import { connect, type ItemProps, type Props as ZagRadioGroupProps } from "@zag-js/radio-group";
|
|
13
13
|
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
14
14
|
import type { VariantProps } from "tailwind-variants";
|
|
15
|
-
import { Label } from "../atoms/label";
|
|
16
|
-
import { StatusText } from "../atoms/status-text";
|
|
15
|
+
import { Label } from "../atoms/label.js";
|
|
16
|
+
import { StatusText } from "../atoms/status-text.js";
|
|
17
17
|
declare const radioCardVariants: import("tailwind-variants").TVReturnType<{
|
|
18
18
|
variant: {
|
|
19
19
|
outline: {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import * as zagRadioGroup from "@zag-js/radio-group";
|
|
13
13
|
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
14
14
|
import type { VariantProps } from "tailwind-variants";
|
|
15
|
-
import { Label } from "../atoms/label";
|
|
16
|
-
import { StatusText } from "../atoms/status-text";
|
|
15
|
+
import { Label } from "../atoms/label.js";
|
|
16
|
+
import { StatusText } from "../atoms/status-text.js";
|
|
17
17
|
declare const radioGroupVariants: import("tailwind-variants").TVReturnType<{
|
|
18
18
|
variant: {
|
|
19
19
|
outline: {
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
13
13
|
import type { VariantProps } from "tailwind-variants";
|
|
14
|
-
import { type ActionIconProps } from "../atoms/action-icon";
|
|
15
|
-
import { type ButtonProps } from "../atoms/button";
|
|
16
|
-
import type { IconType } from "../atoms/icon";
|
|
17
|
-
import { type InputProps } from "../atoms/input";
|
|
18
|
-
import { type LabelProps } from "../atoms/label";
|
|
14
|
+
import { type ActionIconProps } from "../atoms/action-icon.js";
|
|
15
|
+
import { type ButtonProps } from "../atoms/button.js";
|
|
16
|
+
import type { IconType } from "../atoms/icon.js";
|
|
17
|
+
import { type InputProps } from "../atoms/input.js";
|
|
18
|
+
import { type LabelProps } from "../atoms/label.js";
|
|
19
19
|
declare const searchFormVariants: import("tailwind-variants").TVReturnType<{
|
|
20
20
|
size: {
|
|
21
21
|
sm: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as select from "@zag-js/select";
|
|
2
2
|
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
3
3
|
import { type VariantProps } from "tailwind-variants";
|
|
4
|
-
import { type IconProps } from "../atoms/icon";
|
|
4
|
+
import { type IconProps } from "../atoms/icon.js";
|
|
5
5
|
export type SelectSize = "xs" | "sm" | "md" | "lg";
|
|
6
6
|
export type SelectItem = {
|
|
7
7
|
label: ReactNode;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type Props as StepsMachineProps, type Api as ZagStepsApi } from "@zag-js/steps";
|
|
2
2
|
import { type ComponentPropsWithoutRef, type ReactNode, type Ref } from "react";
|
|
3
3
|
import type { VariantProps } from "tailwind-variants";
|
|
4
|
-
import { type ButtonProps } from "../atoms/button";
|
|
4
|
+
import { type ButtonProps } from "../atoms/button.js";
|
|
5
5
|
declare const stepsVariants: import("tailwind-variants").TVReturnType<{
|
|
6
6
|
variant: {
|
|
7
7
|
subtle: {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ComponentPropsWithoutRef, type Ref } from "react";
|
|
2
2
|
import type { VariantProps } from "tailwind-variants";
|
|
3
|
-
import { type ButtonProps } from "../atoms/button";
|
|
3
|
+
import { type ButtonProps } from "../atoms/button.js";
|
|
4
4
|
declare const tabsVariants: import("tailwind-variants").TVReturnType<{
|
|
5
5
|
variant: {
|
|
6
6
|
default: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as tree from "@zag-js/tree-view";
|
|
2
2
|
import { type ComponentPropsWithoutRef, type ReactNode } from "react";
|
|
3
3
|
import type { VariantProps } from "tailwind-variants";
|
|
4
|
-
import { type IconType } from "../atoms/icon";
|
|
4
|
+
import { type IconType } from "../atoms/icon.js";
|
|
5
5
|
export interface TreeNode {
|
|
6
6
|
id: string;
|
|
7
7
|
name: string;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { type ColumnFiltersState, type ColumnPinningState, type ColumnVisibilityState, type ExpandedState, type PaginationState, type RowData, type RowSelectionState, type SortingState } from "@tanstack/react-table";
|
|
2
2
|
import { type ReactNode, type Ref } from "react";
|
|
3
|
-
import { type ButtonProps } from "../atoms/button";
|
|
4
|
-
import { type IconType } from "../atoms/icon";
|
|
5
|
-
import { type PaginationProps } from "../molecules/pagination";
|
|
6
|
-
import { type DataTableColumnType, type DataTableEditorRenderer, type DataTableFilterRenderer } from "./data-table.fields";
|
|
7
|
-
import { type Column, type ColumnDef, type DataTableGetCellSpan, type Row, type TanstackTable } from "./data-table.helpers";
|
|
8
|
-
export type { DataTableColumnType, DataTableControlSize, DataTableEditorContext, DataTableEditorRenderer, DataTableFilterContext, DataTableFilterRenderer, DataTableOption, } from "./data-table.fields";
|
|
9
|
-
export type { Cell, CellContext, Column, ColumnDef, DataTableCellSpan, DataTableColumnWidth, DataTableConditionalFilterValue, DataTableFeatures, DataTableFilterOperator, DataTableGetCellSpan, DataTableInstance, Header, Row, TanstackTable, } from "./data-table.helpers";
|
|
10
|
-
export { conditionalFilterFn } from "./data-table.helpers";
|
|
3
|
+
import { type ButtonProps } from "../atoms/button.js";
|
|
4
|
+
import { type IconType } from "../atoms/icon.js";
|
|
5
|
+
import { type PaginationProps } from "../molecules/pagination.js";
|
|
6
|
+
import { type DataTableColumnType, type DataTableEditorRenderer, type DataTableFilterRenderer } from "./data-table.fields.js";
|
|
7
|
+
import { type Column, type ColumnDef, type DataTableGetCellSpan, type Row, type TanstackTable } from "./data-table.helpers.js";
|
|
8
|
+
export type { DataTableColumnType, DataTableControlSize, DataTableEditorContext, DataTableEditorRenderer, DataTableFilterContext, DataTableFilterRenderer, DataTableOption, } from "./data-table.fields.js";
|
|
9
|
+
export type { Cell, CellContext, Column, ColumnDef, DataTableCellSpan, DataTableColumnWidth, DataTableConditionalFilterValue, DataTableFeatures, DataTableFilterOperator, DataTableGetCellSpan, DataTableInstance, Header, Row, TanstackTable, } from "./data-table.helpers.js";
|
|
10
|
+
export { conditionalFilterFn } from "./data-table.helpers.js";
|
|
11
11
|
/**
|
|
12
12
|
* A custom toolbar action, rendered as a `Button` at the table's `size`.
|
|
13
13
|
* Accepts the full Button API, so icon-only, themed and loading actions all
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
*/
|
|
15
15
|
import type { RowData } from "@tanstack/react-table";
|
|
16
16
|
import type { ReactNode } from "react";
|
|
17
|
-
import { type SelectItem } from "../molecules/select";
|
|
18
|
-
import type { Column, DataTableFilterOperator, Row } from "./data-table.helpers";
|
|
17
|
+
import { type SelectItem } from "../molecules/select.js";
|
|
18
|
+
import type { Column, DataTableFilterOperator, Row } from "./data-table.helpers.js";
|
|
19
19
|
export type DataTableColumnType = "string" | "int" | "number" | "boolean" | "enum" | "multiEnum" | "date" | "datetime" | "time" | "dateRange" | "custom";
|
|
20
20
|
/** Control size scale shared by the table and every nested form control. */
|
|
21
21
|
export type DataTableControlSize = "sm" | "md" | "lg";
|
|
@@ -21,7 +21,7 @@ export type Row<T extends RowData> = TanstackRow<DataTableFeatures, T>;
|
|
|
21
21
|
export type TanstackTable<T extends RowData> = ReactTable<DataTableFeatures, T>;
|
|
22
22
|
export type Header<T extends RowData, V extends CellData = CellData> = TanstackHeader<DataTableFeatures, T, V>;
|
|
23
23
|
export type FilterFn<T extends RowData> = TanstackFilterFn<DataTableFeatures, T>;
|
|
24
|
-
import type { DataTableColumnType, DataTableEditorContext, DataTableFilterContext, DataTableOption } from "./data-table.fields";
|
|
24
|
+
import type { DataTableColumnType, DataTableEditorContext, DataTableFilterContext, DataTableOption } from "./data-table.fields.js";
|
|
25
25
|
/**
|
|
26
26
|
* Signature for the filter functions DataTable registers on its own feature
|
|
27
27
|
* set. `TFeatures` is left as `any` on purpose: the feature set is defined in
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { type ComponentPropsWithoutRef, type ElementType, type ReactNode } from "react";
|
|
13
13
|
import type { VariantProps } from "tailwind-variants";
|
|
14
|
-
import { Image } from "../atoms/image";
|
|
15
|
-
import { type CarouselRootProps, type CarouselSlide } from "../molecules/carousel";
|
|
14
|
+
import { Image } from "../atoms/image.js";
|
|
15
|
+
import { type CarouselRootProps, type CarouselSlide } from "../molecules/carousel.js";
|
|
16
16
|
type GalleryImageComponent<T extends ElementType = typeof Image> = T extends typeof Image ? typeof Image : T extends ElementType ? "src" extends keyof ComponentPropsWithoutRef<T> ? "alt" extends keyof ComponentPropsWithoutRef<T> ? T : never : never : never;
|
|
17
17
|
declare const galleryVariants: import("tailwind-variants").TVReturnType<{
|
|
18
18
|
orientation: {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* Versioning is enforced at commit by scripts/check-skill-sync.mjs: @componentVersion must match
|
|
10
10
|
* the accordion-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
|
-
import type { IconType } from "../atoms/icon";
|
|
13
|
-
import { type AccordionProps } from "../molecules/accordion";
|
|
12
|
+
import type { IconType } from "../atoms/icon.js";
|
|
13
|
+
import { type AccordionProps } from "../molecules/accordion.js";
|
|
14
14
|
export interface AccordionItem {
|
|
15
15
|
value: string;
|
|
16
16
|
title: string;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* the breadcrumb-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import { type ElementType, type ReactNode, type Ref } from "react";
|
|
13
|
-
import type { IconProps, IconType } from "../atoms/icon";
|
|
14
|
-
import { type BreadcrumbLinkProps, type BreadcrumbRootProps } from "../molecules/breadcrumb";
|
|
13
|
+
import type { IconProps, IconType } from "../atoms/icon.js";
|
|
14
|
+
import { type BreadcrumbLinkProps, type BreadcrumbRootProps } from "../molecules/breadcrumb.js";
|
|
15
15
|
export type BreadcrumbTemplateLinkProps<T extends ElementType> = Omit<BreadcrumbLinkProps<T>, "as" | "href" | "children" | "className">;
|
|
16
16
|
export type BreadcrumbTemplateItem = {
|
|
17
17
|
label: ReactNode;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* the carousel-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { ElementType } from "react";
|
|
13
|
-
import type { IconType } from "../atoms/icon";
|
|
14
|
-
import { type CarouselRootProps, type CarouselSlide } from "../molecules/carousel";
|
|
13
|
+
import type { IconType } from "../atoms/icon.js";
|
|
14
|
+
import { type CarouselRootProps, type CarouselSlide } from "../molecules/carousel.js";
|
|
15
15
|
export interface CarouselTemplateProps<T extends ElementType> extends Omit<CarouselRootProps<T>, "children" | "slideCount"> {
|
|
16
16
|
slides: CarouselSlide[];
|
|
17
17
|
showControls?: boolean;
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* the gallery-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { ElementType, ReactNode } from "react";
|
|
13
|
-
import type { IconType } from "../atoms/icon";
|
|
14
|
-
import { type CarouselRootProps } from "../molecules/carousel";
|
|
15
|
-
import { type GalleryItem, type GalleryProps, type GalleryRenderThumbnailParams } from "../organisms/gallery";
|
|
13
|
+
import type { IconType } from "../atoms/icon.js";
|
|
14
|
+
import { type CarouselRootProps } from "../molecules/carousel.js";
|
|
15
|
+
import { type GalleryItem, type GalleryProps, type GalleryRenderThumbnailParams } from "../organisms/gallery.js";
|
|
16
16
|
export type GalleryTemplateProps<T extends ElementType = "img"> = Omit<GalleryProps<T>, "children" | "items" | "carouselProps"> & {
|
|
17
17
|
items: GalleryItem[];
|
|
18
18
|
carouselWidth?: CarouselRootProps<T>["width"];
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* the numeric-input-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { Ref } from "react";
|
|
13
|
-
import type { IconType } from "../atoms/icon";
|
|
14
|
-
import { type NumericInputProps } from "../atoms/numeric-input";
|
|
13
|
+
import type { IconType } from "../atoms/icon.js";
|
|
14
|
+
import { type NumericInputProps } from "../atoms/numeric-input.js";
|
|
15
15
|
export interface NumericInputTemplateProps extends Omit<NumericInputProps, "children" | "ref"> {
|
|
16
16
|
showControls?: boolean;
|
|
17
17
|
showScrubber?: boolean;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* the popover-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { ReactNode, Ref } from "react";
|
|
13
|
-
import { type PopoverContentProps, type PopoverRootProps, type PopoverTriggerProps } from "../molecules/popover";
|
|
13
|
+
import { type PopoverContentProps, type PopoverRootProps, type PopoverTriggerProps } from "../molecules/popover.js";
|
|
14
14
|
export type PopoverTemplateProps = Omit<PopoverRootProps, "children"> & {
|
|
15
15
|
children: ReactNode;
|
|
16
16
|
contentClassName?: string;
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* Versioning is enforced at commit by scripts/check-skill-sync.mjs: @componentVersion must match
|
|
10
10
|
* the product-card-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
|
-
import { type BadgeProps } from "../atoms/badge";
|
|
13
|
-
import { type ProductCardProps } from "../molecules/product-card";
|
|
12
|
+
import { type BadgeProps } from "../atoms/badge.js";
|
|
13
|
+
import { type ProductCardProps } from "../molecules/product-card.js";
|
|
14
14
|
export interface ProductCardTemplateProps extends Pick<ProductCardProps, "layout"> {
|
|
15
15
|
image?: {
|
|
16
16
|
src: string;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* the select-usage skill's component_version and a changelog entry. Bump all three together.
|
|
11
11
|
*/
|
|
12
12
|
import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
|
|
13
|
-
import { type SelectItem, type SelectProps, type SelectSize } from "../molecules/select";
|
|
13
|
+
import { type SelectItem, type SelectProps, type SelectSize } from "../molecules/select.js";
|
|
14
14
|
type SelectTemplateLabelProps = Omit<ComponentPropsWithoutRef<"label">, "children"> & {
|
|
15
15
|
ref?: Ref<HTMLLabelElement>;
|
|
16
16
|
};
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type * as React from "react";
|
|
13
13
|
import type { Ref } from "react";
|
|
14
|
-
import { type TabsProps } from "../molecules/tabs";
|
|
14
|
+
import { type TabsProps } from "../molecules/tabs.js";
|
|
15
15
|
export interface TabItem {
|
|
16
16
|
value: string;
|
|
17
17
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropsWithChildren } from "react";
|
|
2
|
-
import { type BrandKey, type ColorMode, type ModeSetting } from "./theme-config";
|
|
2
|
+
import { type BrandKey, type ColorMode, type ModeSetting } from "./theme-config.js";
|
|
3
3
|
type AppThemeProviderProps = PropsWithChildren<{
|
|
4
4
|
defaultBrand?: BrandKey;
|
|
5
5
|
defaultMode?: ModeSetting;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Badge, type BadgeProps } from '../../src/atoms/badge';
|
|
2
|
+
import { Badge, type BadgeProps } from '../../src/atoms/badge.js';
|
|
3
3
|
declare const meta: Meta<typeof Badge>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = Omit<StoryObj<typeof meta>, 'args'> & {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { NumericInput, type NumericInputProps } from '../../src/atoms/numeric-input';
|
|
2
|
+
import { NumericInput, type NumericInputProps } from '../../src/atoms/numeric-input.js';
|
|
3
3
|
type PlaygroundArgs = NumericInputProps & {
|
|
4
4
|
showLabel?: boolean;
|
|
5
5
|
label?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import type { ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { Skeleton } from '../../src/atoms/skeleton';
|
|
3
|
+
import { Skeleton } from '../../src/atoms/skeleton.js';
|
|
4
4
|
declare const meta: Meta<typeof Skeleton>;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof Skeleton>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentPropsWithoutRef } from "react";
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
3
|
-
import { StatusText } from "../../src/atoms/status-text";
|
|
3
|
+
import { StatusText } from "../../src/atoms/status-text.js";
|
|
4
4
|
declare const meta: Meta<typeof StatusText>;
|
|
5
5
|
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof StatusText>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Textarea } from '../../src/atoms/textarea';
|
|
2
|
+
import { Textarea } from '../../src/atoms/textarea.js';
|
|
3
3
|
declare const meta: Meta<typeof Textarea>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Textarea>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
2
|
import { type ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import { type IconType } from '../../src/atoms/icon';
|
|
4
|
-
import { Tooltip } from '../../src/atoms/tooltip';
|
|
3
|
+
import { type IconType } from '../../src/atoms/icon.js';
|
|
4
|
+
import { Tooltip } from '../../src/atoms/tooltip.js';
|
|
5
5
|
type PlaygroundArgs = ComponentPropsWithoutRef<typeof Tooltip> & {
|
|
6
6
|
triggerType?: 'button' | 'icon';
|
|
7
7
|
triggerLabel?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IconType } from "../../src/atoms/icon";
|
|
1
|
+
import type { IconType } from "../../src/atoms/icon.js";
|
|
2
2
|
export declare const iconOptions: (IconType | undefined)[];
|
|
3
3
|
export declare const iconLabels: Record<string, string>;
|
|
4
4
|
//# sourceMappingURL=icon-options.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Accordion } from '../../src/molecules/accordion';
|
|
2
|
+
import { Accordion } from '../../src/molecules/accordion.js';
|
|
3
3
|
declare const meta: Meta<typeof Accordion>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Accordion>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Breadcrumb } from '../../src/molecules/breadcrumb';
|
|
2
|
+
import { Breadcrumb } from '../../src/molecules/breadcrumb.js';
|
|
3
3
|
declare const meta: Meta<typeof Breadcrumb>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Breadcrumb>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Carousel } from '../../src/molecules/carousel';
|
|
2
|
+
import { Carousel } from '../../src/molecules/carousel.js';
|
|
3
3
|
declare const meta: Meta<typeof Carousel>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { ColorSelect } from '../../src/molecules/color-select';
|
|
2
|
+
import { ColorSelect } from '../../src/molecules/color-select.js';
|
|
3
3
|
declare const meta: Meta<typeof ColorSelect>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Combobox } from '../../src/molecules/combobox';
|
|
2
|
+
import { Combobox } from '../../src/molecules/combobox.js';
|
|
3
3
|
declare const meta: Meta<typeof Combobox>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Combobox>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { Dialog } from '../../src/molecules/dialog';
|
|
2
|
+
import { Dialog } from '../../src/molecules/dialog.js';
|
|
3
3
|
declare const meta: Meta<typeof Dialog>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof meta>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { FormCheckbox } from "../../src/molecules/form-checkbox";
|
|
2
|
+
import { FormCheckbox } from "../../src/molecules/form-checkbox.js";
|
|
3
3
|
declare const meta: Meta<typeof FormCheckbox>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof FormCheckbox>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { FormInput } from '../../src/molecules/form-input';
|
|
2
|
+
import { FormInput } from '../../src/molecules/form-input.js';
|
|
3
3
|
declare const meta: Meta<typeof FormInput>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof FormInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { FormNumericInput } from '../../src/molecules/form-numeric-input';
|
|
2
|
+
import { FormNumericInput } from '../../src/molecules/form-numeric-input.js';
|
|
3
3
|
declare const meta: Meta<typeof FormNumericInput>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof FormNumericInput>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { FormTextarea } from '../../src/molecules/form-textarea';
|
|
2
|
+
import { FormTextarea } from '../../src/molecules/form-textarea.js';
|
|
3
3
|
declare const meta: Meta<typeof FormTextarea>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof FormTextarea>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { Pagination } from "../../src/molecules/pagination";
|
|
2
|
+
import { Pagination } from "../../src/molecules/pagination.js";
|
|
3
3
|
declare const meta: Meta<typeof Pagination>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof Pagination>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
import { PhoneInput } from "../../src/molecules/phone-input";
|
|
2
|
+
import { PhoneInput } from "../../src/molecules/phone-input.js";
|
|
3
3
|
declare const meta: Meta<typeof PhoneInput>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof PhoneInput>;
|