@segmentify/ui 0.0.59 → 0.0.61
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/atoms/calendar.d.ts +1 -1
- package/dist/components/atoms/chart.d.ts +1 -1
- package/dist/components/atoms/form.d.ts +1 -1
- package/dist/components/atoms/phone-inpux.d.ts +7 -0
- package/dist/components/atoms/quill-editor.d.ts +1 -1
- package/dist/components/molecules/base-button.d.ts +1 -1
- package/dist/components/molecules/date-range-picker.d.ts +1 -1
- package/dist/components/molecules/form-phone-input.d.ts +1 -1
- package/dist/components/molecules/recommendation-card/components/selected-algorithms.d.ts +1 -1
- package/dist/components/molecules/select-multi-field.d.ts +1 -1
- package/dist/components/molecules/textarea-field.d.ts +3 -3
- package/dist/components/organisms/data-table/index.d.ts +3 -3
- package/dist/components/organisms/form-checkbox.d.ts +0 -1
- package/dist/components/organisms/form-select.d.ts +1 -1
- package/dist/components/organisms/form-textarea.d.ts +4 -2
- package/dist/components/organisms/timeline.d.ts +1 -1
- package/dist/hooks/use-data-table.d.ts +1 -1
- package/dist/hooks/use-popup-layer-z-index.d.ts +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/mock/columns.d.ts +1 -1
- package/dist/segmentify-ui.cjs +221 -225
- package/dist/segmentify-ui.js +104678 -109276
- package/dist/src/components/atoms/sortable-item.d.ts +9 -0
- package/dist/src/components/molecules/sortable-list.d.ts +9 -0
- package/dist/src/components/organisms/form-sortable-list.d.ts +16 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/ui.css +16 -0
- package/package.json +12 -8
- package/dist/components/atoms/autocomplete.d.ts +0 -13
- package/dist/components/atoms/iphone-15.d.ts +0 -2
- package/dist/components/atoms/preview-single-button.d.ts +0 -6
- package/dist/components/molecules/async-combobox.d.ts +0 -15
- package/dist/components/molecules/autocomplete-field.d.ts +0 -17
- package/dist/components/molecules/confirmation-dialog.d.ts +0 -24
- package/dist/components/molecules/preview-sms.d.ts +0 -5
- package/dist/components/molecules/whatsapp-message.d.ts +0 -15
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { type DayButton
|
|
2
|
+
import { DayPicker, type DayButton } from 'react-day-picker';
|
|
3
3
|
import { Button } from './button';
|
|
4
4
|
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
5
|
buttonVariant?: React.ComponentProps<typeof Button>['variant'];
|
|
@@ -32,7 +32,7 @@ declare function ChartTooltipContent({ active, payload, className, indicator, hi
|
|
|
32
32
|
nameKey?: string;
|
|
33
33
|
labelKey?: string;
|
|
34
34
|
}): import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
-
declare const ChartLegend:
|
|
35
|
+
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
36
36
|
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<'div'> & Pick<RechartsPrimitive.LegendProps, 'payload' | 'verticalAlign'> & {
|
|
37
37
|
hideIcon?: boolean;
|
|
38
38
|
nameKey?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import type * as LabelPrimitive from '@radix-ui/react-label';
|
|
2
3
|
import { Slot } from '@radix-ui/react-slot';
|
|
3
4
|
import { type ControllerProps, type FieldPath, type FieldValues } from 'react-hook-form';
|
|
4
|
-
import type * as LabelPrimitive from '@radix-ui/react-label';
|
|
5
5
|
declare const FormField: <TFieldValues extends FieldValues = FieldValues, TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>>(props: ControllerProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
declare function FormItem({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
type FormLabelProps = React.ComponentProps<typeof LabelPrimitive.Root> & {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as RPNInput from 'react-phone-number-input';
|
|
3
|
+
type PhoneInputProps = Omit<React.ComponentProps<'input'>, 'onChange' | 'value' | 'ref'> & Omit<RPNInput.Props<typeof RPNInput.default>, 'onChange'> & {
|
|
4
|
+
onChange?: (value: RPNInput.Value) => void;
|
|
5
|
+
};
|
|
6
|
+
declare const PhoneInput: React.ForwardRefExoticComponent<PhoneInputProps>;
|
|
7
|
+
export { PhoneInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { VariantProps } from 'class-variance-authority';
|
|
3
2
|
import { buttonVariants } from '../../lib/design-variants';
|
|
3
|
+
import { VariantProps } from 'class-variance-authority';
|
|
4
4
|
declare const BaseButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref">, "children"> & {
|
|
5
5
|
size?: VariantProps<typeof buttonVariants>["size"];
|
|
6
6
|
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import flags from 'react-phone-number-input/flags';
|
|
3
2
|
import { PhoneInput } from '../../components/atoms/phone-input';
|
|
3
|
+
import flags from 'react-phone-number-input/flags';
|
|
4
4
|
export type FormPhoneInputProps = {
|
|
5
5
|
label: string;
|
|
6
6
|
name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldValues } from 'react-hook-form';
|
|
3
|
-
import {
|
|
3
|
+
import { SharedAlgorithmProps, RecommendationCardConfig } from '../types';
|
|
4
4
|
interface SelectedAlgorithmsProps<TFieldValues extends FieldValues = FieldValues> extends SharedAlgorithmProps<TFieldValues> {
|
|
5
5
|
update: (index: number, value: unknown) => void;
|
|
6
6
|
swap: (index1: number, index2: number) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ActionMeta, type
|
|
1
|
+
import { type ActionMeta, type SingleValue, type MultiValue, type InputActionMeta } from 'react-select';
|
|
2
2
|
import { SelectItemProps } from '../../lib/types';
|
|
3
3
|
type SelectFieldProps = {
|
|
4
4
|
label?: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { type ClassValue } from 'clsx';
|
|
3
2
|
import { Textarea } from '../../components/atoms/textarea';
|
|
3
|
+
import { type ClassValue } from 'clsx';
|
|
4
4
|
interface Props extends React.ComponentProps<typeof Textarea> {
|
|
5
5
|
textAreaClassName?: ClassValue;
|
|
6
|
-
value
|
|
7
|
-
onChange
|
|
6
|
+
value?: string;
|
|
7
|
+
onChange?: (e: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
8
8
|
label?: string;
|
|
9
9
|
}
|
|
10
10
|
export declare const TextAreaField: ({ textAreaClassName, value, onChange, label, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ColumnVisibility } from './column-visibility';
|
|
2
|
-
import { Content } from './content';
|
|
3
1
|
import { Root } from './root';
|
|
4
|
-
import { Search } from './search';
|
|
5
2
|
import { Toolbar } from './toolbar';
|
|
3
|
+
import { Search } from './search';
|
|
4
|
+
import { ColumnVisibility } from './column-visibility';
|
|
5
|
+
import { Content } from './content';
|
|
6
6
|
export type { ActionItem, ActionsProps } from './actions';
|
|
7
7
|
export type { RenderRowSubComponentProps } from './content';
|
|
8
8
|
export { type ColumnDef, type Column } from '@tanstack/react-table';
|
|
@@ -4,7 +4,6 @@ type FormCheckboxProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
|
4
4
|
control?: Control<TFieldValues>;
|
|
5
5
|
label: string;
|
|
6
6
|
formClassName?: string;
|
|
7
|
-
containerClassName?: string;
|
|
8
7
|
};
|
|
9
8
|
export declare const FormCheckbox: <TFieldValues extends FieldValues = FieldValues>({ name, control, formClassName, ...props }: FormCheckboxProps<TFieldValues>) => import("react/jsx-runtime").JSX.Element;
|
|
10
9
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { ClassValue } from 'clsx';
|
|
2
3
|
import { type Control, type FieldValues, type Path } from 'react-hook-form';
|
|
3
4
|
import { SelectField } from '../../components/molecules/select-field';
|
|
4
5
|
import type { SelectItemProps } from '../../lib/types';
|
|
5
|
-
import type { ClassValue } from 'clsx';
|
|
6
6
|
type SelectFieldRest = Omit<React.ComponentProps<typeof SelectField>, 'value' | 'onChange' | 'hasFormControlWrapper' | 'label' | 'labelClassName'>;
|
|
7
7
|
type FormSelectProps<TFieldValues extends FieldValues = FieldValues> = {
|
|
8
8
|
name: Path<TFieldValues>;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TextAreaField } from '../../components/molecules/textarea-field';
|
|
1
3
|
import { type Control, type FieldValues, type Path } from 'react-hook-form';
|
|
2
|
-
type Props<TFieldValues extends FieldValues = FieldValues> = {
|
|
3
|
-
label
|
|
4
|
+
type Props<TFieldValues extends FieldValues = FieldValues> = React.ComponentProps<typeof TextAreaField> & {
|
|
5
|
+
label?: string;
|
|
4
6
|
name: Path<TFieldValues>;
|
|
5
7
|
placeholder: string;
|
|
6
8
|
control?: Control<TFieldValues>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { type ColumnDef, type ColumnFiltersState, type SortingState, type VisibilityState, type PaginationState, type RowSelectionState, type ColumnPinningState, type ExpandedState, type Table } from '@tanstack/react-table';
|
|
1
2
|
import { type UseQueryOptions } from '@tanstack/react-query';
|
|
2
|
-
import { type ColumnDef, type ColumnFiltersState, type ColumnPinningState, type ExpandedState, type PaginationState, type RowSelectionState, type SortingState, type Table, type VisibilityState } from '@tanstack/react-table';
|
|
3
3
|
export interface FetcherParams {
|
|
4
4
|
pageNo: number;
|
|
5
5
|
pageSize: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const usePopupLayerZIndex: () => number | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ export { ContentWrapper } from './components/atoms/content-wrapper';
|
|
|
19
19
|
export { CreatableActionIcons } from './components/molecules/creatable-action-icons';
|
|
20
20
|
export { CheckboxField } from './components/molecules/checkbox-field';
|
|
21
21
|
export { ComboboxField, type ComboboxFieldItem, type ComboboxFieldInputMode, } from './components/molecules/combobox-field';
|
|
22
|
-
export { AsyncCombobox, type AsyncComboboxItem } from './components/molecules/async-combobox';
|
|
23
22
|
export { FormattedDate } from './components/atoms/date';
|
|
24
23
|
export { DateRangePicker } from './components/molecules/date-range-picker';
|
|
25
24
|
export { DebouncedInput } from './components/molecules/debounced-input';
|
package/dist/mock/columns.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type ReactNode } from 'react';
|
|
2
1
|
import { ColumnDef } from '@tanstack/react-table';
|
|
3
2
|
import { Product } from '../app';
|
|
3
|
+
import { type ReactNode } from 'react';
|
|
4
4
|
export type ColumnDefWithSubCell<TData> = ColumnDef<TData> & {
|
|
5
5
|
meta?: {
|
|
6
6
|
subCell?: (data: TData) => ReactNode;
|