@divayth/brick-ui 0.3.1 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/Provider.d.ts +15 -3
- package/dist/app/Provider.d.ts.map +1 -1
- package/dist/app/Provider.js +11 -11
- package/dist/app/index.d.ts +1 -1
- package/dist/app/index.d.ts.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +89 -81
- package/dist/lib/dates.d.ts +3 -3
- package/dist/lib/dates.d.ts.map +1 -1
- package/dist/lib/index.d.ts +5 -5
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/locale.d.ts +13 -1
- package/dist/lib/locale.d.ts.map +1 -1
- package/dist/lib/locale.js +14 -2
- package/dist/lib/sizes.d.ts +1 -1
- package/dist/lib/themes.d.ts +31 -31
- package/dist/lib/themes.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/ui/Accordion/Accordion.d.ts +2 -2
- package/dist/ui/Accordion/Accordion.d.ts.map +1 -1
- package/dist/ui/Alert/Alert.d.ts +2 -2
- package/dist/ui/Alert/Alert.d.ts.map +1 -1
- package/dist/ui/Autocomplete/Autocomplete.d.ts +2 -2
- package/dist/ui/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/dist/ui/Button/Button.d.ts +8 -8
- package/dist/ui/Button/Button.d.ts.map +1 -1
- package/dist/ui/Card/Card.d.ts.map +1 -1
- package/dist/ui/Checkbox/Checkbox.d.ts +2 -2
- package/dist/ui/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/ui/Chip/Chip.d.ts +5 -5
- package/dist/ui/Chip/Chip.d.ts.map +1 -1
- package/dist/ui/CircularLoading/CircularLoading.d.ts.map +1 -1
- package/dist/ui/Date/DateInput.d.ts +6 -6
- package/dist/ui/Date/DateInput.d.ts.map +1 -1
- package/dist/ui/Date/DateInput.js +15 -15
- package/dist/ui/DateText/DateText.d.ts +2 -2
- package/dist/ui/DateText/DateText.d.ts.map +1 -1
- package/dist/ui/DateText/DateText.js +3 -3
- package/dist/ui/Drawer/Drawer.d.ts +3 -3
- package/dist/ui/FeedList/FeedList.d.ts +3 -3
- package/dist/ui/FeedList/FeedList.d.ts.map +1 -1
- package/dist/ui/Field/Field.d.ts +10 -10
- package/dist/ui/Field/Field.d.ts.map +1 -1
- package/dist/ui/Flex/Flex.d.ts +3 -3
- package/dist/ui/Flex/Flex.d.ts.map +1 -1
- package/dist/ui/Flex/constants.d.ts +1 -1
- package/dist/ui/Flex/constants.d.ts.map +1 -1
- package/dist/ui/Grid/Grid.d.ts +1 -1
- package/dist/ui/Grid/Grid.types.d.ts +9 -9
- package/dist/ui/Grid/Grid.types.d.ts.map +1 -1
- package/dist/ui/Grid/GridItem.d.ts +1 -1
- package/dist/ui/Grid/GridItem.d.ts.map +1 -1
- package/dist/ui/Grid/GridRoot.d.ts +1 -1
- package/dist/ui/Grid/GridRoot.js +1 -1
- package/dist/ui/Grid/utils.d.ts +2 -2
- package/dist/ui/Grid/utils.d.ts.map +1 -1
- package/dist/ui/IconButton/IconButton.d.ts +8 -8
- package/dist/ui/IconButton/IconButton.d.ts.map +1 -1
- package/dist/ui/Input/Input.d.ts +4 -4
- package/dist/ui/Input/Input.d.ts.map +1 -1
- package/dist/ui/List/List.d.ts +7 -7
- package/dist/ui/List/List.d.ts.map +1 -1
- package/dist/ui/List/List.js +5 -5
- package/dist/ui/Modal/Modal.d.ts +4 -4
- package/dist/ui/Modal/Modal.d.ts.map +1 -1
- package/dist/ui/Modal/Modal.js +19 -19
- package/dist/ui/Modal/ModalContext.d.ts +1 -1
- package/dist/ui/Modal/ModalContext.js +2 -2
- package/dist/ui/Modal/ModalProvider.d.ts +1 -1
- package/dist/ui/MultipleChip/MultipleChip.d.ts +2 -2
- package/dist/ui/MultipleChip/MultipleChip.d.ts.map +1 -1
- package/dist/ui/MultipleChip/MultipleChip.js +8 -8
- package/dist/ui/NoData/NoData.d.ts +3 -3
- package/dist/ui/NoData/NoData.d.ts.map +1 -1
- package/dist/ui/NoData/NoData.js +4 -4
- package/dist/ui/NoData/NoDataIcon.d.ts +1 -1
- package/dist/ui/Popover/Popover.d.ts +4 -4
- package/dist/ui/Popover/Popover.d.ts.map +1 -1
- package/dist/ui/Portal/Portal.d.ts +1 -1
- package/dist/ui/Select/Select.d.ts +2 -2
- package/dist/ui/Select/Select.d.ts.map +1 -1
- package/dist/ui/Select/Select.types.d.ts +5 -5
- package/dist/ui/Select/Select.types.d.ts.map +1 -1
- package/dist/ui/Select/SelectControl.d.ts +1 -1
- package/dist/ui/Select/SelectControl.d.ts.map +1 -1
- package/dist/ui/Select/SelectControl.js +8 -8
- package/dist/ui/Select/SelectOption.d.ts +1 -1
- package/dist/ui/Select/SelectOption.d.ts.map +1 -1
- package/dist/ui/Select/SelectOption.js +6 -6
- package/dist/ui/Select/SelectOptions.d.ts +1 -1
- package/dist/ui/Select/SelectOptions.d.ts.map +1 -1
- package/dist/ui/Select/SelectSearch.d.ts +1 -1
- package/dist/ui/Select/SelectSearch.d.ts.map +1 -1
- package/dist/ui/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/ui/Sticky/Sticky.d.ts +1 -1
- package/dist/ui/Sticky/Sticky.d.ts.map +1 -1
- package/dist/ui/Tabs/Tab.d.ts +3 -3
- package/dist/ui/Tabs/Tab.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.d.ts +4 -4
- package/dist/ui/Tabs/Tabs.d.ts.map +1 -1
- package/dist/ui/Tabs/Tabs.js +3 -3
- package/dist/ui/Tabs/TabsList.d.ts +1 -1
- package/dist/ui/Tabs/TabsList.d.ts.map +1 -1
- package/dist/ui/Tabs/TabsPanel.d.ts +2 -2
- package/dist/ui/Tabs/TabsPanel.d.ts.map +1 -1
- package/dist/ui/Tabs/context.d.ts +1 -1
- package/dist/ui/Text/Text.d.ts +6 -6
- package/dist/ui/Text/Text.d.ts.map +1 -1
- package/dist/ui/Textarea/Textarea.d.ts +3 -3
- package/dist/ui/Textarea/Textarea.d.ts.map +1 -1
- package/dist/ui/Tooltip/Tooltip.d.ts +3 -3
- package/dist/ui/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/ui/Tooltip/Tooltip.js +4 -4
- package/dist/ui/index.d.ts +36 -34
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/table/Table.context.d.ts +10 -0
- package/dist/ui/table/Table.context.d.ts.map +1 -0
- package/dist/ui/table/Table.context.js +26 -0
- package/dist/ui/table/Table.d.ts +3 -0
- package/dist/ui/table/Table.d.ts.map +1 -0
- package/dist/ui/table/Table.js +17 -0
- package/dist/ui/table/Table.types.d.ts +76 -0
- package/dist/ui/table/Table.types.d.ts.map +1 -0
- package/dist/ui/table/Table.types.js +4 -0
- package/dist/ui/table/components/content/TableContent.d.ts +9 -0
- package/dist/ui/table/components/content/TableContent.d.ts.map +1 -0
- package/dist/ui/table/components/content/TableContent.js +67 -0
- package/dist/ui/table/components/content/TableContent.module.css.js +9 -0
- package/dist/ui/table/components/content/cell/Cell.d.ts +7 -0
- package/dist/ui/table/components/content/cell/Cell.d.ts.map +1 -0
- package/dist/ui/table/components/content/cell/Cell.js +29 -0
- package/dist/ui/table/components/content/cell/Cell.module.css.js +11 -0
- package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.d.ts +8 -0
- package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.d.ts.map +1 -0
- package/dist/ui/table/components/content/cellcheckbox/CellCheckbox.js +26 -0
- package/dist/ui/table/components/content/datarow/DataRow.d.ts +11 -0
- package/dist/ui/table/components/content/datarow/DataRow.d.ts.map +1 -0
- package/dist/ui/table/components/content/datarow/DataRow.js +23 -0
- package/dist/ui/table/components/content/head/TableHead.d.ts +6 -0
- package/dist/ui/table/components/content/head/TableHead.d.ts.map +1 -0
- package/dist/ui/table/components/content/head/TableHead.js +7 -0
- package/dist/ui/table/components/content/head/TableHead.module.css.js +9 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.d.ts +8 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.d.ts.map +1 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.js +51 -0
- package/dist/ui/table/components/content/headercell/HeaderCell.module.css.js +15 -0
- package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts +8 -0
- package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.d.ts.map +1 -0
- package/dist/ui/table/components/content/headercellcheckbox/HeaderCellCheckbox.js +29 -0
- package/dist/ui/table/components/content/tablebody/TableBody.d.ts +7 -0
- package/dist/ui/table/components/content/tablebody/TableBody.d.ts.map +1 -0
- package/dist/ui/table/components/content/tablebody/TableBody.js +28 -0
- package/dist/ui/table/components/pagination/TablePagination.d.ts +6 -0
- package/dist/ui/table/components/pagination/TablePagination.d.ts.map +1 -0
- package/dist/ui/table/components/pagination/TablePagination.js +73 -0
- package/dist/ui/table/components/root/TableRoot.d.ts +7 -0
- package/dist/ui/table/components/root/TableRoot.d.ts.map +1 -0
- package/dist/ui/table/components/root/TableRoot.js +28 -0
- package/dist/ui/table/components/root/TableRoot.module.css.js +9 -0
- package/dist/ui/table/hooks/useSelected.d.ts +2 -0
- package/dist/ui/table/hooks/useSelected.d.ts.map +1 -0
- package/dist/ui/table/hooks/useSelected.js +6 -0
- package/dist/ui/table/index.d.ts +5 -0
- package/dist/ui/table/index.d.ts.map +1 -0
- package/package.json +18 -5
package/dist/ui/Grid/Grid.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { GridGap, GridItemProps, GridItemSize, GridRootProps, ResponsiveValue, } from
|
|
1
|
+
export type { GridGap, GridItemProps, GridItemSize, GridRootProps, ResponsiveValue, } from './Grid.types.js';
|
|
2
2
|
export declare const Grid: {
|
|
3
3
|
Root: ({ columns, gap, rowGap, columnGap, align, justify, className, style, children, ...props }: import("./Grid.types.js").GridRootProps) => import("react").JSX.Element;
|
|
4
4
|
Item: ({ size, offset, order, align, className, style, children, ...props }: import("./Grid.types.js").GridItemProps) => import("react").JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { ComponentProps } from
|
|
2
|
-
import type { AlignItemsType, JustifayContentType } from
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
export type GridGap = Size |
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import type { AlignItemsType, JustifayContentType } from '../Flex/constants.js';
|
|
3
|
+
import type { ResponsiveSize } from '../../lib/getResponsiveSize.js';
|
|
4
|
+
import type { Size } from '../../lib/sizes.js';
|
|
5
|
+
export type GridGap = Size | 'none';
|
|
6
6
|
export type ResponsiveValue<T> = T | Partial<Record<Size, T>>;
|
|
7
|
-
export type GridItemSize = ResponsiveSize<number> |
|
|
8
|
-
export interface GridRootProps extends ComponentProps<
|
|
7
|
+
export type GridItemSize = ResponsiveSize<number> | 'fit' | 'grow';
|
|
8
|
+
export interface GridRootProps extends ComponentProps<'div'> {
|
|
9
9
|
columns?: number;
|
|
10
10
|
gap?: ResponsiveValue<GridGap>;
|
|
11
11
|
rowGap?: ResponsiveValue<GridGap>;
|
|
@@ -13,10 +13,10 @@ export interface GridRootProps extends ComponentProps<"div"> {
|
|
|
13
13
|
align?: AlignItemsType;
|
|
14
14
|
justify?: JustifayContentType;
|
|
15
15
|
}
|
|
16
|
-
export interface GridItemProps extends ComponentProps<
|
|
16
|
+
export interface GridItemProps extends ComponentProps<'div'> {
|
|
17
17
|
size?: GridItemSize;
|
|
18
18
|
offset?: ResponsiveValue<number>;
|
|
19
19
|
order?: ResponsiveValue<number>;
|
|
20
|
-
align?: ResponsiveValue<AlignItemsType |
|
|
20
|
+
align?: ResponsiveValue<AlignItemsType | 'auto'>;
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=Grid.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.types.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/Grid.types.ts"],"names":[],"mappings":"A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AAC;IAChC,KAAK,CAAC,EAAE,eAAe,CAAC,cAAc,GAAG,MAAM,CAAC,CAAC;CAClD"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GridItemProps } from
|
|
1
|
+
import type { GridItemProps } from './Grid.types.js';
|
|
2
2
|
export declare const GridItem: ({ size, offset, order, align, className, style, children, ...props }: GridItemProps) => import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=GridItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/GridItem.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/GridItem.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAarD,eAAO,MAAM,QAAQ,GAAI,sEAStB,aAAa,gCA2Bf,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { GridRootProps } from
|
|
1
|
+
import type { GridRootProps } from './Grid.types.js';
|
|
2
2
|
export declare const GridRoot: ({ columns, gap, rowGap, columnGap, align, justify, className, style, children, ...props }: GridRootProps) => import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=GridRoot.d.ts.map
|
package/dist/ui/Grid/GridRoot.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as h } from "react/jsx-runtime";
|
|
2
2
|
import { Children as w, isValidElement as C, cloneElement as S } from "react";
|
|
3
3
|
import b from "clsx";
|
|
4
|
-
import { getResponsiveCssVariables as f, GRID_GAP_VALUES as d } from "./utils.js";
|
|
5
4
|
import { GridItem as z } from "./GridItem.js";
|
|
5
|
+
import { getResponsiveCssVariables as f, GRID_GAP_VALUES as d } from "./utils.js";
|
|
6
6
|
import I from "./Grid.module.css.js";
|
|
7
7
|
const v = {
|
|
8
8
|
stretch: "stretch",
|
package/dist/ui/Grid/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CSSProperties } from
|
|
2
|
-
import type { GridGap, ResponsiveValue } from
|
|
1
|
+
import type { CSSProperties } from 'react';
|
|
2
|
+
import type { GridGap, ResponsiveValue } from './Grid.types.js';
|
|
3
3
|
export type GridCssVariables = CSSProperties & Record<`--${string}`, string | number | undefined>;
|
|
4
4
|
export declare const GRID_GAP_VALUES: Record<GridGap, string>;
|
|
5
5
|
export declare const getResponsiveCssVariables: <T>(name: string, value: ResponsiveValue<T> | undefined, transform?: (entry: T) => string | number) => GridCssVariables;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/ui/Grid/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,aAAa,GACxC,MAAM,CAAC,KAAK,MAAM,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,CAAC;AAIvD,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAOnD,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,CAAC,EACzC,MAAM,MAAM,EACZ,OAAO,eAAe,CAAC,CAAC,CAAC,GAAG,SAAS,EACrC,YAAW,CAAC,KAAK,EAAE,CAAC,KAAK,MAAM,GAAG,MAAiC,KAClE,gBAeF,CAAC"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import type { AriaAttributes, ComponentPropsWithRef, ElementType, ReactNode } from
|
|
2
|
-
import type { Size } from
|
|
3
|
-
export type IconButtonColor =
|
|
4
|
-
export type IconButtonVariant =
|
|
1
|
+
import type { AriaAttributes, ComponentPropsWithRef, ElementType, ReactNode } from 'react';
|
|
2
|
+
import type { Size } from '../../lib/sizes.js';
|
|
3
|
+
export type IconButtonColor = 'primary' | 'secondary' | 'danger';
|
|
4
|
+
export type IconButtonVariant = 'transparent' | 'filled' | 'outlined';
|
|
5
5
|
type IconButtonOwnProps<T extends ElementType> = {
|
|
6
6
|
color?: IconButtonColor;
|
|
7
7
|
variant?: IconButtonVariant;
|
|
8
8
|
size?: Size;
|
|
9
9
|
isLoading?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
|
-
type?:
|
|
11
|
+
type?: 'button' | 'submit' | 'reset';
|
|
12
12
|
component?: T;
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
className?: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
'aria-disabled'?: AriaAttributes['aria-disabled'];
|
|
16
|
+
'aria-busy'?: AriaAttributes['aria-busy'];
|
|
17
17
|
};
|
|
18
|
-
export type IconButtonProps<T extends ElementType =
|
|
18
|
+
export type IconButtonProps<T extends ElementType = 'button'> = IconButtonOwnProps<T> & Omit<ComponentPropsWithRef<T>, keyof IconButtonOwnProps<T>>;
|
|
19
19
|
export declare const IconButton: <T extends ElementType = "button">({ color, variant, size, disabled, isLoading, component, children, className, type, onClick, onKeyDown, tabIndex, "aria-disabled": ariaDisabled, "aria-busy": ariaBusy, ...props }: IconButtonProps<T>) => import("react").JSX.Element;
|
|
20
20
|
export {};
|
|
21
21
|
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/ui/IconButton/IconButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/ui/IconButton/IconButton.tsx"],"names":[],"mappings":"AAGA,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-
import { type ControlSize } from
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import type { LucideIcon } from 'lucide-react';
|
|
3
|
+
import { type ControlSize } from '../Field/Field.js';
|
|
4
4
|
export interface InputControlProps {
|
|
5
5
|
startIcon?: LucideIcon;
|
|
6
6
|
endIcon?: LucideIcon;
|
|
@@ -9,6 +9,6 @@ export interface InputControlProps {
|
|
|
9
9
|
size?: ControlSize;
|
|
10
10
|
fullWidth?: boolean;
|
|
11
11
|
}
|
|
12
|
-
export type InputProps = InputControlProps & Omit<ComponentProps<
|
|
12
|
+
export type InputProps = InputControlProps & Omit<ComponentProps<'input'>, 'size'>;
|
|
13
13
|
export declare const Input: ({ id: idProps, label, error, size, fullWidth, className, startIcon, endIcon, ...inputProps }: InputProps) => import("react").JSX.Element;
|
|
14
14
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/ui/Input/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../src/ui/Input/Input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,OAAO,CAAC;AAGnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,EAAE,KAAK,WAAW,EAAS,MAAM,oBAAoB,CAAC;AAI7D,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,MAAM,UAAU,GAAG,iBAAiB,GACtC,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAE1C,eAAO,MAAM,KAAK,GAAI,8FAUnB,UAAU,gCAyBZ,CAAC"}
|
package/dist/ui/List/List.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { type ComponentProps, type CSSProperties, type ReactNode } from
|
|
2
|
-
import { type GapType } from
|
|
1
|
+
import { type ComponentProps, type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
import { type GapType } from '../Flex/constants.js';
|
|
3
3
|
declare const COLUMNS_SX: {
|
|
4
4
|
readonly 1: "grid-cols-1";
|
|
5
5
|
readonly 2: "grid-cols-2";
|
|
6
6
|
readonly 3: "grid-cols-3";
|
|
7
7
|
readonly 4: "grid-cols-4";
|
|
8
8
|
};
|
|
9
|
-
export interface ListProps extends ComponentProps<
|
|
9
|
+
export interface ListProps extends ComponentProps<'div'> {
|
|
10
10
|
columns?: keyof typeof COLUMNS_SX;
|
|
11
11
|
gap?: GapType;
|
|
12
|
-
template?: CSSProperties[
|
|
13
|
-
columnsTemplate?: CSSProperties[
|
|
12
|
+
template?: CSSProperties['gridTemplateColumns'];
|
|
13
|
+
columnsTemplate?: CSSProperties['gridTemplateColumns'];
|
|
14
14
|
}
|
|
15
|
-
export interface ListItemProps extends Omit<ComponentProps<
|
|
15
|
+
export interface ListItemProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
16
16
|
label: ReactNode;
|
|
17
17
|
value: ReactNode;
|
|
18
|
-
template?: CSSProperties[
|
|
18
|
+
template?: CSSProperties['gridTemplateColumns'];
|
|
19
19
|
}
|
|
20
20
|
export declare const List: (({ children, columns, gap, template, columnsTemplate, className, style, ...props }: ListProps) => import("react").JSX.Element) & {
|
|
21
21
|
Item: ({ label, value, template, className, style, ...props }: ListItemProps) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/ui/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../../src/ui/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,aAAa,EAElB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAIf,OAAO,EAAU,KAAK,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAI7D,QAAA,MAAM,UAAU;;;;;CAKN,CAAC;AAEX,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,KAAK,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,OAAO,UAAU,CAAC;IAClC,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAChD,eAAe,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACxD;AA4CD,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC;IAC5E,KAAK,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,CAAC;CACjD;AAsCD,eAAO,MAAM,IAAI,uFA3Ed,SAAS;mEA8CT,aAAa;CA6B+C,CAAC"}
|
package/dist/ui/List/List.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
2
|
import { Children as x, isValidElement as u, cloneElement as C } from "react";
|
|
3
|
-
import { Flex as N } from "../Flex/Flex.js";
|
|
4
|
-
import { Text as d } from "../Text/Text.js";
|
|
5
3
|
import a from "clsx";
|
|
6
|
-
import { GAP_SX as
|
|
4
|
+
import { GAP_SX as N } from "../Flex/constants.js";
|
|
5
|
+
import { Flex as j } from "../Flex/Flex.js";
|
|
6
|
+
import { Text as d } from "../Text/Text.js";
|
|
7
7
|
const y = {
|
|
8
8
|
1: "grid-cols-1",
|
|
9
9
|
2: "grid-cols-2",
|
|
@@ -28,7 +28,7 @@ const y = {
|
|
|
28
28
|
className: a(
|
|
29
29
|
"grid w-full",
|
|
30
30
|
!r && y[s],
|
|
31
|
-
|
|
31
|
+
N[m],
|
|
32
32
|
n
|
|
33
33
|
),
|
|
34
34
|
style: r ? { ...c, gridTemplateColumns: r } : c,
|
|
@@ -55,7 +55,7 @@ const y = {
|
|
|
55
55
|
]
|
|
56
56
|
}
|
|
57
57
|
) : /* @__PURE__ */ l(
|
|
58
|
-
|
|
58
|
+
j,
|
|
59
59
|
{
|
|
60
60
|
alignItems: "center",
|
|
61
61
|
gap: "md",
|
package/dist/ui/Modal/Modal.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ReactNode } from
|
|
2
|
-
import { type ButtonProps } from
|
|
3
|
-
import { type FlexProps } from
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ButtonProps } from '../Button/Button.js';
|
|
3
|
+
import { type FlexProps } from '../Flex/Flex.js';
|
|
4
4
|
export declare const MODAL_SIZE: {
|
|
5
5
|
readonly xs: "xs";
|
|
6
6
|
readonly sm: "sm";
|
|
@@ -14,7 +14,7 @@ export interface ModalRootProps {
|
|
|
14
14
|
size?: ModalSize;
|
|
15
15
|
className?: string;
|
|
16
16
|
closeDisabled?: boolean;
|
|
17
|
-
|
|
17
|
+
'aria-label'?: string;
|
|
18
18
|
}
|
|
19
19
|
interface HeaderProps extends FlexProps {
|
|
20
20
|
closeLabel?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/ui/Modal/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,SAAS,EASf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/ui/Modal/Modal.tsx"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,SAAS,EASf,MAAM,OAAO,CAAC;AAMf,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAQxD,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC;AAWrE,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAqGD,UAAU,WAAY,SAAQ,SAAS;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAqGD,eAAO,MAAM,KAAK;mFA/Kf,cAAc;6EAkFd,WAAW;sDA0B2C,SAAS;qDA+BF,SAAS;wDAMd,WAAW;4CAqBZ,WAAW;CASE,CAAC"}
|
package/dist/ui/Modal/Modal.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as s, jsxs as R } from "react/jsx-runtime";
|
|
3
|
-
import { useContext as M, useRef as b, useState as
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { IconButton as z } from "../IconButton/IconButton.js";
|
|
7
|
-
import { Text as A } from "../Text/Text.js";
|
|
8
|
-
import S from "clsx";
|
|
9
|
-
import { X as D } from "lucide-react";
|
|
3
|
+
import { createContext as H, useContext as M, useRef as b, useState as N, useImperativeHandle as P, useLayoutEffect as j, useId as B, useMemo as T, useEffect as X } from "react";
|
|
4
|
+
import E from "clsx";
|
|
5
|
+
import { X as z } from "lucide-react";
|
|
10
6
|
import { useProvider as p } from "../../app/Provider.js";
|
|
7
|
+
import { Button as S } from "../Button/Button.js";
|
|
8
|
+
import { Flex as v } from "../Flex/Flex.js";
|
|
9
|
+
import { IconButton as A } from "../IconButton/IconButton.js";
|
|
10
|
+
import { Text as D } from "../Text/Text.js";
|
|
11
11
|
import { useModal as h } from "./ModalContext.js";
|
|
12
12
|
import m from "./Modal.module.css.js";
|
|
13
13
|
const F = {
|
|
@@ -16,7 +16,7 @@ const F = {
|
|
|
16
16
|
md: "md",
|
|
17
17
|
lg: "lg",
|
|
18
18
|
xl: "xl"
|
|
19
|
-
}, x =
|
|
19
|
+
}, x = H(
|
|
20
20
|
{}
|
|
21
21
|
);
|
|
22
22
|
let g = 0, w = "", C = "";
|
|
@@ -29,11 +29,11 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
|
|
|
29
29
|
closeDisabled: r = !1,
|
|
30
30
|
"aria-label": c
|
|
31
31
|
}) => {
|
|
32
|
-
const { closeModal: a } = h(), i = b(null), t = b(!1), d =
|
|
32
|
+
const { closeModal: a } = h(), i = b(null), t = b(!1), d = B(), u = T(
|
|
33
33
|
() => ({ titleId: d, closeDisabled: r }),
|
|
34
34
|
[d, r]
|
|
35
35
|
);
|
|
36
|
-
|
|
36
|
+
X(() => {
|
|
37
37
|
const e = i.current;
|
|
38
38
|
if (!e) return;
|
|
39
39
|
e.showModal();
|
|
@@ -51,7 +51,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
|
|
|
51
51
|
"dialog",
|
|
52
52
|
{
|
|
53
53
|
ref: i,
|
|
54
|
-
className:
|
|
54
|
+
className: E(m.root, m[n], l),
|
|
55
55
|
"aria-modal": "true",
|
|
56
56
|
"aria-labelledby": c ? void 0 : d,
|
|
57
57
|
"aria-label": c,
|
|
@@ -77,22 +77,22 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
|
|
|
77
77
|
const { messages: a } = p(), { closeModal: i } = h(), { titleId: t, closeDisabled: d } = M(x);
|
|
78
78
|
return /* @__PURE__ */ R(v, { justifyContent: "between", alignItems: "center", ...c, children: [
|
|
79
79
|
n,
|
|
80
|
-
/* @__PURE__ */ s(
|
|
80
|
+
/* @__PURE__ */ s(D, { id: t, size: "xl", weight: "medium", children: o }),
|
|
81
81
|
l && /* @__PURE__ */ s(
|
|
82
|
-
|
|
82
|
+
A,
|
|
83
83
|
{
|
|
84
84
|
className: m.close,
|
|
85
85
|
color: "secondary",
|
|
86
86
|
"aria-label": r ?? a.close,
|
|
87
87
|
disabled: d,
|
|
88
88
|
onClick: i,
|
|
89
|
-
children: /* @__PURE__ */ s(
|
|
89
|
+
children: /* @__PURE__ */ s(z, {})
|
|
90
90
|
}
|
|
91
91
|
)
|
|
92
92
|
] });
|
|
93
93
|
}, Z = ({ children: o, className: n, ref: l, ...r }) => {
|
|
94
|
-
const c = b(null), [a, i] =
|
|
95
|
-
return
|
|
94
|
+
const c = b(null), [a, i] = N(!1);
|
|
95
|
+
return P(l, () => c.current, []), j(() => {
|
|
96
96
|
const t = c.current;
|
|
97
97
|
if (!t) return;
|
|
98
98
|
const d = () => i(t.scrollHeight > t.clientHeight), u = new ResizeObserver(d);
|
|
@@ -101,7 +101,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
|
|
|
101
101
|
v,
|
|
102
102
|
{
|
|
103
103
|
ref: c,
|
|
104
|
-
className:
|
|
104
|
+
className: E(m.content, { [m.scrollable]: a }, n),
|
|
105
105
|
...r,
|
|
106
106
|
children: o
|
|
107
107
|
}
|
|
@@ -109,7 +109,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
|
|
|
109
109
|
}, _ = ({ children: o, justifyContent: n = "end", ...l }) => /* @__PURE__ */ s(v, { direction: "row", justifyContent: n, ...l, children: o }), q = ({ children: o, onClick: n, disabled: l, ...r }) => {
|
|
110
110
|
const { messages: c } = p(), { closeModal: a } = h(), { closeDisabled: i } = M(x);
|
|
111
111
|
return /* @__PURE__ */ s(
|
|
112
|
-
|
|
112
|
+
S,
|
|
113
113
|
{
|
|
114
114
|
variant: "outlined",
|
|
115
115
|
disabled: l || i,
|
|
@@ -122,7 +122,7 @@ const L = () => (g === 0 && (w = document.body.style.overflow, C = document.docu
|
|
|
122
122
|
);
|
|
123
123
|
}, G = ({ children: o, type: n = "submit", ...l }) => {
|
|
124
124
|
const { messages: r } = p();
|
|
125
|
-
return /* @__PURE__ */ s(
|
|
125
|
+
return /* @__PURE__ */ s(S, { type: n, ...l, children: o === void 0 ? r.confirm : o });
|
|
126
126
|
}, le = { Root: Y, Header: V, Content: Z, Footer: _, Cancel: q, Confirm: G };
|
|
127
127
|
export {
|
|
128
128
|
F as MODAL_SIZE,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type FlexProps } from
|
|
1
|
+
import { type FlexProps } from '../Flex/Flex.js';
|
|
2
2
|
export interface MultipleChipOption {
|
|
3
3
|
value: string;
|
|
4
4
|
label: string;
|
|
5
5
|
}
|
|
6
|
-
export interface MultipleChipProps extends Omit<FlexProps,
|
|
6
|
+
export interface MultipleChipProps extends Omit<FlexProps, 'onChange'> {
|
|
7
7
|
options: MultipleChipOption[];
|
|
8
8
|
value?: string[];
|
|
9
9
|
onChange?: (value: string[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultipleChip.d.ts","sourceRoot":"","sources":["../../../src/ui/MultipleChip/MultipleChip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultipleChip.d.ts","sourceRoot":"","sources":["../../../src/ui/MultipleChip/MultipleChip.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC;IACpE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,eAAO,MAAM,YAAY,GAAI,0IAY1B,iBAAiB,gCAgFnB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as v, jsx as o } from "react/jsx-runtime";
|
|
3
3
|
import { useId as w, useMemo as g } from "react";
|
|
4
|
-
import
|
|
4
|
+
import N from "clsx";
|
|
5
|
+
import { Chip as $ } from "../Chip/Chip.js";
|
|
5
6
|
import { Field as n } from "../Field/Field.js";
|
|
6
|
-
import { Flex as
|
|
7
|
-
import { Skeleton as
|
|
8
|
-
import C from "clsx";
|
|
7
|
+
import { Flex as j } from "../Flex/Flex.js";
|
|
8
|
+
import { Skeleton as C } from "../Skeleton/Skeleton.js";
|
|
9
9
|
const F = ({
|
|
10
10
|
options: s,
|
|
11
11
|
value: l = [],
|
|
@@ -34,7 +34,7 @@ const F = ({
|
|
|
34
34
|
return /* @__PURE__ */ v(n.Root, { className: b, children: [
|
|
35
35
|
t && /* @__PURE__ */ o(n.Label, { id: `${a}-label`, label: t }),
|
|
36
36
|
/* @__PURE__ */ o(
|
|
37
|
-
|
|
37
|
+
j,
|
|
38
38
|
{
|
|
39
39
|
gap: "sm",
|
|
40
40
|
className: "flex-wrap",
|
|
@@ -44,10 +44,10 @@ const F = ({
|
|
|
44
44
|
"aria-disabled": i,
|
|
45
45
|
"aria-busy": m,
|
|
46
46
|
...p,
|
|
47
|
-
children: m ? Array.from({ length: 20 }, (e, r) => /* @__PURE__ */ o(
|
|
47
|
+
children: m ? Array.from({ length: 20 }, (e, r) => /* @__PURE__ */ o(C, { width: 80, height: 26 }, r)) : h.map((e) => {
|
|
48
48
|
const r = l.includes(e.value);
|
|
49
49
|
return /* @__PURE__ */ o(
|
|
50
|
-
|
|
50
|
+
$,
|
|
51
51
|
{
|
|
52
52
|
role: "checkbox",
|
|
53
53
|
"aria-checked": r,
|
|
@@ -55,7 +55,7 @@ const F = ({
|
|
|
55
55
|
tabIndex: i ? -1 : 0,
|
|
56
56
|
color: r ? "primary" : "secondary",
|
|
57
57
|
variant: r ? "filled" : "outlined",
|
|
58
|
-
className:
|
|
58
|
+
className: N(
|
|
59
59
|
"focus-visible:outline-2 focus-visible:outline-primary-1 focus-visible:outline-offset-2",
|
|
60
60
|
{ "cursor-not-allowed opacity-60": i }
|
|
61
61
|
),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ReactNode } from
|
|
2
|
-
import { type FlexProps } from
|
|
3
|
-
export interface NoDataProps extends Omit<FlexProps,
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import { type FlexProps } from '../Flex/Flex.js';
|
|
3
|
+
export interface NoDataProps extends Omit<FlexProps, 'children' | 'title'> {
|
|
4
4
|
icon?: ReactNode;
|
|
5
5
|
title?: ReactNode;
|
|
6
6
|
description?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../src/ui/NoData/NoData.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../src/ui/NoData/NoData.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC;IACxE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,eAAO,MAAM,MAAM,GAAI,mDAMpB,WAAW,gCA4Bb,CAAC"}
|
package/dist/ui/NoData/NoData.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
3
|
-
import
|
|
3
|
+
import a from "clsx";
|
|
4
|
+
import { useProvider as d } from "../../app/Provider.js";
|
|
4
5
|
import { Flex as t } from "../Flex/Flex.js";
|
|
5
6
|
import { Text as l } from "../Text/Text.js";
|
|
6
|
-
import d from "clsx";
|
|
7
7
|
const u = ({
|
|
8
8
|
icon: r,
|
|
9
9
|
title: n,
|
|
@@ -11,7 +11,7 @@ const u = ({
|
|
|
11
11
|
className: o,
|
|
12
12
|
...m
|
|
13
13
|
}) => {
|
|
14
|
-
const { messages: c } =
|
|
14
|
+
const { messages: c } = d();
|
|
15
15
|
return /* @__PURE__ */ i(
|
|
16
16
|
t,
|
|
17
17
|
{
|
|
@@ -19,7 +19,7 @@ const u = ({
|
|
|
19
19
|
alignItems: "center",
|
|
20
20
|
justifyContent: "center",
|
|
21
21
|
gap: "md",
|
|
22
|
-
className:
|
|
22
|
+
className: a("h-full py-4 w-full text-center", o),
|
|
23
23
|
...m,
|
|
24
24
|
children: [
|
|
25
25
|
r && /* @__PURE__ */ e(
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { type PortalProps } from
|
|
1
|
+
import { Popover as Primitive } from 'radix-ui';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import { type PortalProps } from '../Portal/Portal.js';
|
|
4
4
|
export type PopoverRootProps = ComponentProps<typeof Primitive.Root>;
|
|
5
5
|
export type PopoverTriggerProps = ComponentProps<typeof Primitive.Trigger>;
|
|
6
|
-
export type PopoverContentProps = ComponentProps<typeof Primitive.Content> & Pick<PortalProps,
|
|
6
|
+
export type PopoverContentProps = ComponentProps<typeof Primitive.Content> & Pick<PortalProps, 'container'>;
|
|
7
7
|
export declare const Popover: {
|
|
8
8
|
Root: import("react").FC<Primitive.PopoverProps>;
|
|
9
9
|
Anchor: (props: ComponentProps<typeof Primitive.Anchor>) => import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../../../src/ui/Popover/Popover.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEhE,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,IAAI,CAAC,CAAC;AACrE,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,OAAO,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,OAAO,CAAC,GACtE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;AAwBnC,eAAO,MAAM,OAAO;;oBAnBG,cAAc,CAAC,OAAO,SAAS,CAAC,MAAM,CAAC;qBAHtC,mBAAmB;qEAYxC,mBAAmB;;CAgBrB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SelectProps, SelectValue } from
|
|
2
|
-
export type { SelectProps, SelectValue } from
|
|
1
|
+
import type { SelectProps, SelectValue } from './Select.types.js';
|
|
2
|
+
export type { SelectProps, SelectValue } from './Select.types.js';
|
|
3
3
|
export declare const Select: <T extends SelectValue, Multiple extends boolean = false>(props: SelectProps<T, Multiple>) => import("react").JSX.Element;
|
|
4
4
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGlE,YAAY,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAElE,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,WAAW,EAAE,QAAQ,SAAS,OAAO,GAAG,KAAK,EAC5E,OAAO,WAAW,CAAC,CAAC,EAAE,QAAQ,CAAC,gCACsB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ReactNode, RefObject } from
|
|
2
|
-
import type { ControlSize } from
|
|
3
|
-
import type { InputProps } from
|
|
1
|
+
import type { ReactNode, RefObject } from 'react';
|
|
2
|
+
import type { ControlSize } from '../Field/Field.js';
|
|
3
|
+
import type { InputProps } from '../Input/Input.js';
|
|
4
4
|
export interface SelectSearchProps extends InputProps {
|
|
5
5
|
open: boolean;
|
|
6
6
|
displayValue?: ReactNode;
|
|
@@ -20,7 +20,7 @@ export interface SelectCommonProps<T = SelectValue> {
|
|
|
20
20
|
withArrow?: boolean;
|
|
21
21
|
clearable?: boolean;
|
|
22
22
|
className?: string;
|
|
23
|
-
variant?:
|
|
23
|
+
variant?: 'filled' | 'outlined';
|
|
24
24
|
options: readonly SelectOption<T>[];
|
|
25
25
|
isLoading?: boolean;
|
|
26
26
|
}
|
|
@@ -56,7 +56,7 @@ export type SelectControlProps<T extends SelectValue> = AutocompleteProps<T, boo
|
|
|
56
56
|
};
|
|
57
57
|
export interface SelectOptionsProps<T> {
|
|
58
58
|
id: string;
|
|
59
|
-
|
|
59
|
+
'aria-label'?: string;
|
|
60
60
|
options: readonly SelectOption<T>[];
|
|
61
61
|
values: T[];
|
|
62
62
|
search: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Select.types.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/Select.types.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErD,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B;AAED,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEhE,MAAM,WAAW,YAAY,CAAC,CAAC,GAAG,WAAW;IAC3C,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC,GAAG,WAAW;IAChD,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,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,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3C;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC3C"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { SelectControlProps, SelectValue } from
|
|
1
|
+
import type { SelectControlProps, SelectValue } from './Select.types.js';
|
|
2
2
|
export declare const SelectControl: <T extends SelectValue>({ value, onChange, renderValue, onSearchChange, filterOptions, isLoading, multiple, searchable, options, label, disabled, placeholder, searchPlaceholder, error, withArrow, clearable, className, size, variant, }: SelectControlProps<T>) => import("react").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=SelectControl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectControl.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/SelectControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectControl.d.ts","sourceRoot":"","sources":["../../../src/ui/Select/SelectControl.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,kBAAkB,EAElB,WAAW,EACZ,MAAM,mBAAmB,CAAC;AAU3B,eAAO,MAAM,aAAa,GAAI,CAAC,SAAS,WAAW,EAAE,oNAoBlD,kBAAkB,CAAC,CAAC,CAAC,gCA6IvB,CAAC"}
|