@sellgar/kit 0.0.4 → 0.0.5
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/misc/divider/divider.d.ts +15 -0
- package/dist/components/misc/divider/index.d.ts +1 -0
- package/dist/components/misc/dot/dot.d.ts +7 -0
- package/dist/components/misc/dot/index.d.ts +1 -0
- package/dist/components/misc/index.d.ts +2 -0
- package/dist/components/symbols/accordion/accordion.d.ts +13 -0
- package/dist/components/symbols/accordion/control/control.d.ts +7 -0
- package/dist/components/symbols/accordion/control/index.d.ts +1 -0
- package/dist/components/symbols/accordion/index.d.ts +1 -0
- package/dist/components/symbols/avatar/avatar.d.ts +9 -0
- package/dist/components/symbols/avatar/index.d.ts +1 -0
- package/dist/components/symbols/badge/badge.d.ts +14 -0
- package/dist/components/symbols/badge/index.d.ts +2 -0
- package/dist/components/symbols/button/button.d.ts +14 -0
- package/dist/components/symbols/button/index.d.ts +1 -0
- package/dist/components/symbols/button-icon/button-icon.d.ts +11 -0
- package/dist/components/symbols/button-icon/index.d.ts +1 -0
- package/dist/components/symbols/button-link/button-link.d.ts +14 -0
- package/dist/components/symbols/button-link/index.d.ts +1 -0
- package/dist/components/symbols/calendar/calendar.d.ts +2 -0
- package/dist/components/symbols/calendar/index.d.ts +1 -0
- package/dist/components/symbols/caption-field/caption-field.d.ts +8 -0
- package/dist/components/symbols/caption-field/index.d.ts +2 -0
- package/dist/components/symbols/checkbox/checkbox.d.ts +7 -0
- package/dist/components/symbols/checkbox/element/element.d.ts +5 -0
- package/dist/components/symbols/checkbox/element/index.d.ts +1 -0
- package/dist/components/symbols/checkbox/index.d.ts +1 -0
- package/dist/components/symbols/chip/chip.d.ts +12 -0
- package/dist/components/symbols/chip/index.d.ts +1 -0
- package/dist/components/symbols/chip/with-icon/index.d.ts +2 -0
- package/dist/components/symbols/chip/with-icon/with-icon.d.ts +12 -0
- package/dist/components/symbols/chip/with-slot/index.d.ts +2 -0
- package/dist/components/symbols/chip/with-slot/with-slot.d.ts +10 -0
- package/dist/components/symbols/icon/icon.d.ts +7 -0
- package/dist/components/symbols/icon/icon.types.d.ts +2 -0
- package/dist/components/symbols/icon/index.d.ts +2 -0
- package/dist/components/symbols/index.d.ts +19 -0
- package/dist/components/symbols/input/index.d.ts +1 -0
- package/dist/components/symbols/input/input.d.ts +10 -0
- package/dist/components/symbols/input/placeholder/index.d.ts +1 -0
- package/dist/components/symbols/input/placeholder/placeholder.d.ts +7 -0
- package/dist/components/symbols/label-field/index.d.ts +2 -0
- package/dist/components/symbols/label-field/label-field.d.ts +7 -0
- package/dist/components/symbols/quantity-stepper/index.d.ts +1 -0
- package/dist/components/symbols/quantity-stepper/quantity-stepper.d.ts +17 -0
- package/dist/components/symbols/radio/element/element.d.ts +5 -0
- package/dist/components/symbols/radio/element/index.d.ts +1 -0
- package/dist/components/symbols/radio/index.d.ts +1 -0
- package/dist/components/symbols/radio/radio.d.ts +7 -0
- package/dist/components/symbols/slider/index.d.ts +1 -0
- package/dist/components/symbols/slider/slider.d.ts +6 -0
- package/dist/components/symbols/toggle/element/element.d.ts +5 -0
- package/dist/components/symbols/toggle/element/index.d.ts +1 -0
- package/dist/components/symbols/toggle/index.d.ts +1 -0
- package/dist/components/symbols/toggle/toggle.d.ts +7 -0
- package/dist/components/symbols/tooltip/balloon/balloon.d.ts +6 -0
- package/dist/components/symbols/tooltip/balloon/index.d.ts +1 -0
- package/dist/components/symbols/tooltip/index.d.ts +2 -0
- package/dist/components/symbols/tooltip/tooltip.d.ts +120 -0
- package/dist/components/symbols/typography/index.d.ts +1 -0
- package/dist/components/symbols/typography/typography.d.ts +7 -0
- package/dist/components/wrappers/drop-down/drop-down.wrapper.d.ts +2 -0
- package/dist/components/wrappers/drop-down/index.d.ts +1 -0
- package/dist/components/wrappers/field/field.wrapper.d.ts +12 -0
- package/dist/components/wrappers/field/index.d.ts +1 -0
- package/dist/components/wrappers/index.d.ts +2 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7499 -3046
- package/dist/index.umd.cjs +29 -28
- package/package.json +13 -2
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { Placement } from '@floating-ui/react';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
export interface IProps {
|
|
4
|
+
initialOpen?: boolean;
|
|
5
|
+
placement?: Placement;
|
|
6
|
+
open?: boolean;
|
|
7
|
+
onOpenChange?: (open: boolean) => void;
|
|
8
|
+
size?: 'sm' | 'md';
|
|
9
|
+
}
|
|
10
|
+
export declare function useTooltip({ size, initialOpen, placement, open: controlledOpen, onOpenChange: setControlledOpen, }: IProps): {
|
|
11
|
+
placement: Placement;
|
|
12
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
13
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
14
|
+
x: number;
|
|
15
|
+
y: number;
|
|
16
|
+
isPositioned: boolean;
|
|
17
|
+
update: () => void;
|
|
18
|
+
floatingStyles: React.CSSProperties;
|
|
19
|
+
refs: {
|
|
20
|
+
reference: React.MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
21
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
22
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
23
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
24
|
+
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
25
|
+
elements: {
|
|
26
|
+
reference: import('@floating-ui/react-dom').ReferenceType | null;
|
|
27
|
+
floating: HTMLElement | null;
|
|
28
|
+
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
29
|
+
context: {
|
|
30
|
+
placement: Placement;
|
|
31
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
35
|
+
isPositioned: boolean;
|
|
36
|
+
update: () => void;
|
|
37
|
+
floatingStyles: React.CSSProperties;
|
|
38
|
+
open: boolean;
|
|
39
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
40
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
41
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
42
|
+
nodeId: string | undefined;
|
|
43
|
+
floatingId: string | undefined;
|
|
44
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
45
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
46
|
+
};
|
|
47
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
48
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
49
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
50
|
+
active?: boolean;
|
|
51
|
+
selected?: boolean;
|
|
52
|
+
}) => Record<string, unknown>;
|
|
53
|
+
size: "md" | "sm";
|
|
54
|
+
open: boolean;
|
|
55
|
+
setOpen: (open: boolean) => void;
|
|
56
|
+
arrowRef: React.RefObject<null>;
|
|
57
|
+
};
|
|
58
|
+
export declare const useTooltipContext: () => {
|
|
59
|
+
placement: Placement;
|
|
60
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
61
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
62
|
+
x: number;
|
|
63
|
+
y: number;
|
|
64
|
+
isPositioned: boolean;
|
|
65
|
+
update: () => void;
|
|
66
|
+
floatingStyles: React.CSSProperties;
|
|
67
|
+
refs: {
|
|
68
|
+
reference: React.MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
69
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
70
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
71
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
72
|
+
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
73
|
+
elements: {
|
|
74
|
+
reference: import('@floating-ui/react-dom').ReferenceType | null;
|
|
75
|
+
floating: HTMLElement | null;
|
|
76
|
+
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
77
|
+
context: {
|
|
78
|
+
placement: Placement;
|
|
79
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
80
|
+
x: number;
|
|
81
|
+
y: number;
|
|
82
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
83
|
+
isPositioned: boolean;
|
|
84
|
+
update: () => void;
|
|
85
|
+
floatingStyles: React.CSSProperties;
|
|
86
|
+
open: boolean;
|
|
87
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
88
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
89
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
90
|
+
nodeId: string | undefined;
|
|
91
|
+
floatingId: string | undefined;
|
|
92
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
93
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
94
|
+
};
|
|
95
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
96
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
97
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
98
|
+
active?: boolean;
|
|
99
|
+
selected?: boolean;
|
|
100
|
+
}) => Record<string, unknown>;
|
|
101
|
+
size: "md" | "sm";
|
|
102
|
+
open: boolean;
|
|
103
|
+
setOpen: (open: boolean) => void;
|
|
104
|
+
arrowRef: React.RefObject<null>;
|
|
105
|
+
};
|
|
106
|
+
declare const TooltipWrapper: React.FC<React.PropsWithChildren<IProps>>;
|
|
107
|
+
declare const Trigger: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
108
|
+
export declare const Content: React.ForwardRefExoticComponent<Omit<React.HTMLProps<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
109
|
+
declare const Label: React.FC<React.PropsWithChildren>;
|
|
110
|
+
declare const Caption: React.FC<React.PropsWithChildren>;
|
|
111
|
+
type TToolTipContent = typeof Content & {
|
|
112
|
+
Label: typeof Label;
|
|
113
|
+
Caption: typeof Caption;
|
|
114
|
+
};
|
|
115
|
+
type TToolTipWrapper = typeof TooltipWrapper & {
|
|
116
|
+
Trigger: typeof Trigger;
|
|
117
|
+
Content: TToolTipContent;
|
|
118
|
+
};
|
|
119
|
+
export declare const ToolTip: TToolTipWrapper;
|
|
120
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Typography } from './typography.tsx';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface IProps {
|
|
3
|
+
size: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body-l' | 'body-m' | 'body-s' | 'caption-l' | 'caption-m' | 'caption-s';
|
|
4
|
+
weight: 'light' | 'regular' | 'medium' | 'semi-bold' | 'bold' | 'extra-bold' | 'black';
|
|
5
|
+
}
|
|
6
|
+
export declare const Typography: React.FC<React.PropsWithChildren<IProps>>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DropDownWrapper } from './drop-down.wrapper.tsx';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const Label: React.FC<React.PropsWithChildren>;
|
|
3
|
+
declare const Content: React.FC<React.PropsWithChildren>;
|
|
4
|
+
declare const Caption: React.FC<React.PropsWithChildren>;
|
|
5
|
+
declare const FieldWrapperComponent: React.FC<React.PropsWithChildren>;
|
|
6
|
+
type TFieldWrapper = typeof FieldWrapperComponent & {
|
|
7
|
+
Label: typeof Label;
|
|
8
|
+
Content: typeof Content;
|
|
9
|
+
Caption: typeof Caption;
|
|
10
|
+
};
|
|
11
|
+
export declare const FieldWrapper: TFieldWrapper;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FieldWrapper } from './field.wrapper.tsx';
|