pennywise-ui 0.0.2 → 0.0.3

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/index.css CHANGED
@@ -1 +1 @@
1
- .Typography__u3PLs5v2{margin:0;padding:0}.H1__8o8zIRfd{font-family:Inter,sans-serif;font-size:32px;font-weight:600;line-height:36px;letter-spacing:-.02em}.H2__-t991U-M{font-family:Inter,sans-serif;font-size:24px;font-weight:600;line-height:32px;letter-spacing:-.01em}.H3__v3fAG73u{font-family:Inter,sans-serif;font-size:20px;font-weight:600;line-height:24px;letter-spacing:-.01em}.H4__HjJ-d85i{font-family:Inter,sans-serif;font-size:18px;font-weight:500;line-height:24px}.H5__d5YpTjhS{font-family:Inter,sans-serif;font-size:16px;font-weight:600;line-height:20px}.H6__o6KB3zY3{font-family:Inter,sans-serif;font-size:14px;font-weight:600;line-height:20px}.Text1__m3wAf1jf{font-family:Inter,sans-serif;font-size:16px;font-weight:400;line-height:20px}.Text2__y4qTA2H8{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:20px}.Caption1__L12e2hkf{font-family:Inter,sans-serif;font-size:12px;font-weight:600;line-height:16px}.Caption2__bD-bE9Kn{font-family:Inter,sans-serif;font-size:12px;font-weight:400;line-height:16px}.Overline__SlR2ypl7{font-family:Inter,sans-serif;font-size:11px;font-weight:600;line-height:16px;letter-spacing:.07em;text-transform:uppercase}.Button1__6-qgHDFh{font-family:Inter,sans-serif;font-size:16px;font-weight:500;line-height:20px}.Button2__OVcRO9ud{font-family:Inter,sans-serif;font-size:14px;font-weight:500;line-height:20px}.Button__64QXXrHS{display:inline-flex;align-items:center;justify-content:center;gap:var(--gutter-xxs);margin:0;background:none;border:0;cursor:pointer;box-sizing:border-box;border-radius:var(--border-radius-m);padding:0 var(--gutter-s);transition:color .2s,background-color .2s,border-color .2s;&:disabled{cursor:not-allowed}}.FullWidth__2jglXxzw{width:100%}.L__g3W5-JTM{height:48px}.M__OorM2PnC{height:36px}.S__hFMJmwFz{height:32px}.Primary__vHKhG43F{color:var(--color-text-primary-inverted);background-color:var(--color-button-primary);&:disabled{background-color:var(--color-button-primary-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-primary-hover)}&:active:not([disabled]){background-color:var(--color-button-primary-active)}}.Additional__i9b-7LJB{color:var(--color-text-primary-inverted);background-color:var(--color-button-additional);&:disabled{background-color:var(--color-button-additional-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-additional-hover)}&:active:not([disabled]){background-color:var(--color-button-additional-active)}}.Negative__sQ1ZNRRC{color:var(--color-text-primary-inverted);background-color:var(--color-button-negative);&:disabled{background-color:var(--color-button-negative-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-negative-hover)}&:active:not([disabled]){background-color:var(--color-button-negative-active)}}.Ghost__qIf7tz0m{color:var(--color-text-primary);background-color:var(--color-button-ghost);&:disabled{background-color:var(--color-button-ghost-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-ghost-hover)}&:active:not([disabled]){background-color:var(--color-button-ghost-active)}}.Secondary__aj0g1-lJ{color:var(--color-text-primary);background-color:var(--color-button-secondary);border:1px solid var(--color-border-primary);&:disabled{background-color:var(--color-button-secondary-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-secondary-hover)}&:active:not([disabled]){background-color:var(--color-button-secondary-active)}}.InputContainer__crIfoXhZ{display:inline-flex;flex-direction:column}.Label__Kyf0Xq1i{font-family:Inter,sans-serif;font-size:14px;font-weight:500;line-height:20px;margin-bottom:6px}.M__SMUZVaRF{padding:7px 10px}.S__5l8iHiDH{padding:5px 10px}.Input__4NuyvuVR{box-sizing:border-box;border-radius:var(--border-radius-m);border:1px solid var(--color-border-primary);color:var(--color-text-primary);transition:border .3s ease;font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:20px;&:disabled,&[readonly]{background-color:var(--color-fill-disabled);outline:none;cursor:not-allowed}&:hover:not([disabled],[readonly]){border-color:var(--color-border-info)}&:focus:not([disabled],[readonly]){border-color:var(--color-border-info);outline:none}&::placeholder{color:var(--color-text-secondary)}}.InputError__2gG55TuU{border:1px solid var(--color-border-error)}.InputWarning__s3CQtuE-{border:1px solid var(--color-border-warning)}.ErrorMessage__Fq7yQNvS{margin-top:6px;color:var(--color-text-error)}.WarningMessage__h9Ja9fM-{margin-top:6px;color:var(--color-text-warning)}.SuccessMessage__9p7eZXYa{margin-top:6px;color:var(--color-text-success)}.PageBlock__cdP4z452{background-color:var(--color-background-secondary);border-radius:var(--border-radius-l)}
1
+ .Typography__u3PLs5v2{margin:0;padding:0}.H1__8o8zIRfd{font-family:Inter,sans-serif;font-size:32px;font-weight:600;line-height:36px;letter-spacing:-.02em}.H2__-t991U-M{font-family:Inter,sans-serif;font-size:24px;font-weight:600;line-height:32px;letter-spacing:-.01em}.H3__v3fAG73u{font-family:Inter,sans-serif;font-size:20px;font-weight:600;line-height:24px;letter-spacing:-.01em}.H4__HjJ-d85i{font-family:Inter,sans-serif;font-size:18px;font-weight:500;line-height:24px}.H5__d5YpTjhS{font-family:Inter,sans-serif;font-size:16px;font-weight:600;line-height:20px}.H6__o6KB3zY3{font-family:Inter,sans-serif;font-size:14px;font-weight:600;line-height:20px}.Text1__m3wAf1jf{font-family:Inter,sans-serif;font-size:16px;font-weight:400;line-height:20px}.Text2__y4qTA2H8{font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:20px}.Caption1__L12e2hkf{font-family:Inter,sans-serif;font-size:12px;font-weight:600;line-height:16px}.Caption2__bD-bE9Kn{font-family:Inter,sans-serif;font-size:12px;font-weight:400;line-height:16px}.Overline__SlR2ypl7{font-family:Inter,sans-serif;font-size:11px;font-weight:600;line-height:16px;letter-spacing:.07em;text-transform:uppercase}.Button1__6-qgHDFh{font-family:Inter,sans-serif;font-size:16px;font-weight:500;line-height:20px}.Button2__OVcRO9ud{font-family:Inter,sans-serif;font-size:14px;font-weight:500;line-height:20px}.Button__64QXXrHS{display:inline-flex;align-items:center;justify-content:center;gap:var(--gutter-xxs);margin:0;background:none;border:0;cursor:pointer;box-sizing:border-box;border-radius:var(--border-radius-m);padding:0 var(--gutter-s);transition:color .2s,background-color .2s,border-color .2s;&:disabled{cursor:not-allowed}}.FullWidth__2jglXxzw{width:100%}.L__g3W5-JTM{height:48px}.M__OorM2PnC{height:36px}.S__hFMJmwFz{height:32px}.Primary__vHKhG43F{color:var(--color-text-primary-inverted);background-color:var(--color-button-primary);&:disabled{background-color:var(--color-button-primary-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-primary-hover)}&:active:not([disabled]){background-color:var(--color-button-primary-active)}}.Additional__i9b-7LJB{color:var(--color-text-primary-inverted);background-color:var(--color-button-additional);&:disabled{background-color:var(--color-button-additional-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-additional-hover)}&:active:not([disabled]){background-color:var(--color-button-additional-active)}}.Negative__sQ1ZNRRC{color:var(--color-text-primary-inverted);background-color:var(--color-button-negative);&:disabled{background-color:var(--color-button-negative-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-negative-hover)}&:active:not([disabled]){background-color:var(--color-button-negative-active)}}.Ghost__qIf7tz0m{color:var(--color-text-primary);background-color:var(--color-button-ghost);&:disabled{background-color:var(--color-button-ghost-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-ghost-hover)}&:active:not([disabled]){background-color:var(--color-button-ghost-active)}}.Secondary__aj0g1-lJ{color:var(--color-text-primary);background-color:var(--color-button-secondary);border:1px solid var(--color-border-primary);&:disabled{background-color:var(--color-button-secondary-disabled);color:var(--color-text-secondary)}&:hover:not([disabled]){background-color:var(--color-button-secondary-hover)}&:active:not([disabled]){background-color:var(--color-button-secondary-active)}}.InputContainer__crIfoXhZ{display:inline-flex;flex-direction:column}.Label__Kyf0Xq1i{font-family:Inter,sans-serif;font-size:14px;font-weight:500;line-height:20px;margin-bottom:6px}.M__SMUZVaRF{padding:7px 10px}.S__5l8iHiDH{padding:5px 10px}.Input__4NuyvuVR{box-sizing:border-box;border-radius:var(--border-radius-m);border:1px solid var(--color-border-primary);color:var(--color-text-primary);transition:border .3s ease;font-family:Inter,sans-serif;font-size:14px;font-weight:400;line-height:20px;&:disabled,&[readonly]{background-color:var(--color-fill-disabled);outline:none;cursor:not-allowed}&:hover:not([disabled],[readonly]){border-color:var(--color-border-info)}&:focus:not([disabled],[readonly]){border-color:var(--color-border-info);outline:none}&::placeholder{color:var(--color-text-secondary)}}.InputError__2gG55TuU{border:1px solid var(--color-border-error)}.InputWarning__s3CQtuE-{border:1px solid var(--color-border-warning)}.ErrorMessage__Fq7yQNvS{margin-top:6px;color:var(--color-text-error)}.WarningMessage__h9Ja9fM-{margin-top:6px;color:var(--color-text-warning)}.SuccessMessage__9p7eZXYa{margin-top:6px;color:var(--color-text-success)}.Link__CKAoo6PA{display:inline-flex;align-items:center;justify-content:center;gap:var(--gutter-xxs);margin:0;background:none;text-decoration:none;border:0;cursor:pointer;box-sizing:border-box;padding:0 var(--gutter-s);color:var(--color-button-link);transition:color .2s,background-color .2s,border-color .2s;&:hover:not(.Disabled__XqpDDhn2){color:var(--color-button-link-hover)}&:active:not(.Disabled__XqpDDhn2){color:var(--color-button-link-active)}}.Disabled__XqpDDhn2{cursor:not-allowed;color:var(--color-button-link-disabled)}.FullWidth__U8tkQDPF{width:100%}.L__7vCM3z8d{height:48px}.M__nYk210Fl{height:36px}.S__vyGxJkUe{height:32px}.PageBlock__cdP4z452{background-color:var(--color-background-secondary);border-radius:var(--border-radius-l)}
package/dist/index.d.ts CHANGED
@@ -1,8 +1,13 @@
1
+ import { AnchorHTMLAttributes } from 'react';
1
2
  import { ButtonHTMLAttributes } from 'react';
2
3
  import { DetailedHTMLProps } from 'react';
3
4
  import { FC } from 'react';
4
5
  import { HTMLAttributes } from 'react';
5
6
  import { InputHTMLAttributes } from 'react';
7
+ import { NamedExoticComponent } from 'react';
8
+ import { Ref } from 'react';
9
+ import { RefAttributes } from 'react';
10
+ import { SVGProps } from 'react';
6
11
 
7
12
  export declare const Button: FC<ButtonProps>;
8
13
 
@@ -12,10 +17,70 @@ declare interface ButtonProps extends DetailedHTMLProps<ButtonHTMLAttributes<HTM
12
17
  fullWidth?: boolean;
13
18
  }
14
19
 
20
+ declare interface ButtonProps_2 extends DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement> {
21
+ component: any;
22
+ size?: ButtonSize_2;
23
+ fullWidth?: boolean;
24
+ disabled?: boolean;
25
+ to?: string;
26
+ }
27
+
15
28
  declare type ButtonSize = 'S' | 'M' | 'L';
16
29
 
30
+ declare type ButtonSize_2 = 'S' | 'M' | 'L';
31
+
17
32
  declare type ButtonVariant = 'Primary' | 'Additional' | 'Negative' | 'Ghost' | 'Secondary';
18
33
 
34
+ export declare const Icon: FC<IconProps>;
35
+
36
+ declare const ICON_MAP: {
37
+ Add: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
38
+ ArrowDown: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
39
+ ArrowLeft: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
40
+ ArrowRight: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
41
+ ArrowUp: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
42
+ Box: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
43
+ Calendar: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
44
+ Cancel: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
45
+ Chain: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
46
+ Check: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
47
+ ChevronDown: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
48
+ ChevronLeft: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
49
+ ChevronRight: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
50
+ ChevronUp: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
51
+ Clock: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
52
+ Copy: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
53
+ Delete: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
54
+ Download: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
55
+ Edit: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
56
+ Error: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
57
+ Eye: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
58
+ File: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
59
+ Filter: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
60
+ History: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
61
+ Info: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
62
+ Link: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
63
+ Minus: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
64
+ MoreHorizontal: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
65
+ MoreVertical: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
66
+ Save: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
67
+ Search: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
68
+ Shield: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
69
+ Sms: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
70
+ Star: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
71
+ Success: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
72
+ User: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
73
+ Warning: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
74
+ Wifi: NamedExoticComponent<Omit< SVGProps<SVGSVGElement>, "ref"> & RefAttributes<SVGSVGElement>>;
75
+ };
76
+
77
+ declare type IconName = keyof typeof ICON_MAP;
78
+
79
+ declare interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'name'> {
80
+ name: IconName;
81
+ ref?: Ref<SVGSVGElement>;
82
+ }
83
+
19
84
  export declare const Input: FC<InputProps>;
20
85
 
21
86
  declare interface InputProps extends Omit<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, 'size'> {
@@ -27,6 +92,8 @@ declare interface InputProps extends Omit<DetailedHTMLProps<InputHTMLAttributes<
27
92
  containerClassName?: string;
28
93
  }
29
94
 
95
+ export declare const Link: FC<ButtonProps_2>;
96
+
30
97
  export declare const PageBlock: FC<PageBlock_2>;
31
98
 
32
99
  declare type PageBlock_2 = DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>;