snapflow-ui-kit 0.0.2 → 0.0.4

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.
@@ -0,0 +1,30 @@
1
+ import { jsxs as C, jsx as r } from "react/jsx-runtime";
2
+ import { useId as e } from "react";
3
+ const o = (t) => {
4
+ const i = e();
5
+ return /* @__PURE__ */ C(
6
+ "svg",
7
+ {
8
+ width: "24",
9
+ height: "24",
10
+ viewBox: "0 0 24 24",
11
+ fill: "none",
12
+ xmlns: "http://www.w3.org/2000/svg",
13
+ ...t,
14
+ children: [
15
+ /* @__PURE__ */ r("g", { clipPath: `url(#${i})`, children: /* @__PURE__ */ r(
16
+ "path",
17
+ {
18
+ d: "M5.51416 9.45842C5.5137 9.22477 5.59508 8.99834 5.74416 8.81842C5.82811 8.71717 5.93121 8.63346 6.04756 8.57211C6.1639 8.51076 6.29121 8.47296 6.42219 8.46089C6.55316 8.44881 6.68524 8.46269 6.81084 8.50174C6.93644 8.54078 7.05311 8.60422 7.15416 8.68842L12.5142 13.1684L17.8842 8.84843C17.9864 8.76536 18.1041 8.70333 18.2305 8.6659C18.3568 8.62846 18.4893 8.61637 18.6203 8.63031C18.7514 8.64425 18.8784 8.68395 18.994 8.74712C19.1096 8.81029 19.2116 8.8957 19.2942 8.99843C19.3852 9.10189 19.4539 9.22306 19.4959 9.35432C19.5378 9.48558 19.5522 9.62411 19.5382 9.7612C19.5241 9.89829 19.4818 10.031 19.414 10.151C19.3462 10.271 19.2543 10.3756 19.1442 10.4584L13.1442 15.2884C12.9652 15.4355 12.7408 15.5159 12.5092 15.5159C12.2775 15.5159 12.0531 15.4355 11.8742 15.2884L5.87416 10.2884C5.75314 10.1881 5.65748 10.0607 5.59493 9.91646C5.53238 9.77225 5.50471 9.61533 5.51416 9.45842Z",
19
+ fill: "currentColor"
20
+ }
21
+ ) }),
22
+ /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: i, children: /* @__PURE__ */ r("rect", { width: "24", height: "24", fill: "white" }) }) })
23
+ ]
24
+ }
25
+ );
26
+ };
27
+ export {
28
+ o as A
29
+ };
30
+ //# sourceMappingURL=ArrowDownIcon-XyCc_cD9.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrowDownIcon-XyCc_cD9.js","sources":["../src/icons/ArrowDownIcon/ArrowDownIcon.tsx"],"sourcesContent":["import { useId, type SVGProps } from 'react'\n\nexport const ArrowDownIcon = (props: SVGProps<SVGSVGElement>) => {\n const id = useId()\n return (\n <svg\n width=\"24\"\n height=\"24\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n {...props}\n >\n <g clipPath={`url(#${id})`}>\n <path\n d=\"M5.51416 9.45842C5.5137 9.22477 5.59508 8.99834 5.74416 8.81842C5.82811 8.71717 5.93121 8.63346 6.04756 8.57211C6.1639 8.51076 6.29121 8.47296 6.42219 8.46089C6.55316 8.44881 6.68524 8.46269 6.81084 8.50174C6.93644 8.54078 7.05311 8.60422 7.15416 8.68842L12.5142 13.1684L17.8842 8.84843C17.9864 8.76536 18.1041 8.70333 18.2305 8.6659C18.3568 8.62846 18.4893 8.61637 18.6203 8.63031C18.7514 8.64425 18.8784 8.68395 18.994 8.74712C19.1096 8.81029 19.2116 8.8957 19.2942 8.99843C19.3852 9.10189 19.4539 9.22306 19.4959 9.35432C19.5378 9.48558 19.5522 9.62411 19.5382 9.7612C19.5241 9.89829 19.4818 10.031 19.414 10.151C19.3462 10.271 19.2543 10.3756 19.1442 10.4584L13.1442 15.2884C12.9652 15.4355 12.7408 15.5159 12.5092 15.5159C12.2775 15.5159 12.0531 15.4355 11.8742 15.2884L5.87416 10.2884C5.75314 10.1881 5.65748 10.0607 5.59493 9.91646C5.53238 9.77225 5.50471 9.61533 5.51416 9.45842Z\"\n fill=\"currentColor\"\n />\n </g>\n <defs>\n <clipPath id={id}>\n <rect width=\"24\" height=\"24\" fill=\"white\" />\n </clipPath>\n </defs>\n </svg>\n )\n}\n"],"names":["ArrowDownIcon","props","id","useId","jsxs","jsx"],"mappings":";;AAEO,MAAMA,IAAgB,CAACC,MAAmC;AAC/D,QAAMC,IAAKC,EAAA;AACX,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,OAAM;AAAA,MACN,QAAO;AAAA,MACP,SAAQ;AAAA,MACR,MAAK;AAAA,MACL,OAAM;AAAA,MACL,GAAGH;AAAA,MAEJ,UAAA;AAAA,QAAA,gBAAAI,EAAC,KAAA,EAAE,UAAU,QAAQH,CAAE,KACrB,UAAA,gBAAAG;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,GAAE;AAAA,YACF,MAAK;AAAA,UAAA;AAAA,QAAA,GAET;AAAA,QACA,gBAAAA,EAAC,QAAA,EACC,UAAA,gBAAAA,EAAC,YAAA,EAAS,IAAAH,GACR,UAAA,gBAAAG,EAAC,QAAA,EAAK,OAAM,MAAK,QAAO,MAAK,MAAK,QAAA,CAAQ,GAC5C,EAAA,CACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,14 +1,2 @@
1
- import { ComponentPropsWithoutRef } from 'react';
2
- export type ButtonVariant = 'primary' | 'secondary' | 'outlined' | 'text';
3
- type CommonProps = {
4
- variant?: ButtonVariant;
5
- };
6
- type AsButtonProps = {
7
- asLink?: false;
8
- } & CommonProps & ComponentPropsWithoutRef<'button'>;
9
- type AsLinkProps = {
10
- asLink: true;
11
- } & CommonProps & ComponentPropsWithoutRef<'a'>;
12
- export type ButtonProps = AsButtonProps | AsLinkProps;
1
+ import { ButtonProps } from './Button.types';
13
2
  export declare const Button: (props: ButtonProps) => import("react/jsx-runtime").JSX.Element;
14
- export {};
@@ -0,0 +1,14 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'outlined' | 'text';
3
+ type CommonProps = {
4
+ variant?: ButtonVariant;
5
+ icon?: ReactNode;
6
+ };
7
+ type AsButtonProps = {
8
+ asLink?: false;
9
+ } & CommonProps & ComponentPropsWithoutRef<'button'>;
10
+ type AsLinkProps = {
11
+ asLink: true;
12
+ } & CommonProps & ComponentPropsWithoutRef<'a'>;
13
+ export type ButtonProps = AsButtonProps | AsLinkProps;
14
+ export {};
@@ -1 +1,2 @@
1
1
  export * from './Button';
2
+ export * from './Button.types';
@@ -0,0 +1,2 @@
1
+ import { CheckboxProps } from './Checkbox.types';
2
+ export declare const Checkbox: ({ children, className, checked, onChange, ...rest }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export type CheckboxProps = {
3
+ children?: ReactNode;
4
+ checked?: boolean;
5
+ onChange?: ComponentPropsWithoutRef<'input'>['onChange'];
6
+ } & Omit<ComponentPropsWithoutRef<'input'>, 'type' | 'checked' | 'onChange' | 'children'>;
@@ -0,0 +1,2 @@
1
+ export { Checkbox } from './Checkbox';
2
+ export type { CheckboxProps } from './Checkbox.types';
@@ -0,0 +1,2 @@
1
+ import { RadioProps } from './Radio.types';
2
+ export declare const Radio: ({ children, className, checked, onChange, ...rest }: RadioProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { ComponentPropsWithoutRef, ReactNode } from 'react';
2
+ export type RadioProps = {
3
+ children?: ReactNode;
4
+ checked?: boolean;
5
+ onChange?: ComponentPropsWithoutRef<'input'>['onChange'];
6
+ } & Omit<ComponentPropsWithoutRef<'input'>, 'checked' | 'onChange' | 'children'>;
@@ -0,0 +1 @@
1
+ export * from './Radio';
@@ -0,0 +1,3 @@
1
+ import 'simplebar-react/dist/simplebar.min.css';
2
+ import { SelectProps } from './';
3
+ export declare const Select: (props: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ReactNode } from 'react';
2
+ export type SelectOption = {
3
+ icon?: ReactNode;
4
+ label: string;
5
+ value: string;
6
+ };
7
+ export type SelectProps = {
8
+ className?: string;
9
+ disabled?: boolean;
10
+ label?: string;
11
+ onChange?: (value: string) => void;
12
+ options: SelectOption[];
13
+ placeholder?: string;
14
+ value?: string;
15
+ };
@@ -0,0 +1,2 @@
1
+ export * from './Select';
2
+ export * from './Select.types';
@@ -0,0 +1,3 @@
1
+ import { ElementType } from 'react';
2
+ import { TypographyProps } from './Typography.types';
3
+ export declare const Typography: <T extends ElementType = "span">(props: TypographyProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { ComponentPropsWithoutRef, ElementType, ReactNode } from 'react';
2
+ export type TypographyVariant = 'large' | 'h1' | 'h2' | 'h3' | 'text-16' | 'text-14' | 'text-14-bold' | 'text-16-bold' | 'text-14-medium' | 'small' | 'small-semibold' | 'link' | 'small-link';
3
+ export type TypographyProps<T extends ElementType = 'span'> = {
4
+ as?: T;
5
+ children: ReactNode;
6
+ icon?: ReactNode;
7
+ variant: TypographyVariant;
8
+ } & Omit<ComponentPropsWithoutRef<T>, 'as'>;
@@ -0,0 +1,2 @@
1
+ export * from './Typography';
2
+ export * from './Typography.types';
@@ -1 +1,5 @@
1
1
  export * from './Button';
2
+ export * from './Checkbox';
3
+ export * from './Radio';
4
+ export * from './Select';
5
+ export * from './Typography';
@@ -40,7 +40,6 @@ export * from './PlusCirceIcon';
40
40
  export * from './SearchIcon';
41
41
  export * from './SettingsIcon';
42
42
  export * from './TrashIcon';
43
- export * from './RadioButtonIcon';
44
43
  export * from './FacebookLogo';
45
44
  export * from './FlagRussia';
46
45
  export * from './FlagUK';