@validationcloud/fractal-ui 1.21.0 → 1.22.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.
|
@@ -8,8 +8,8 @@ import { default as React } from 'react';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const Button: React.ForwardRefExoticComponent<{
|
|
10
10
|
className?: string;
|
|
11
|
-
variant?: "primary" | "warning" | "info" | "gradient" | "secondary" | "ghost" | "text" | "light";
|
|
12
|
-
size?: "large" | "medium" | "small" | "xsmall";
|
|
11
|
+
variant?: "primary" | "warning" | "info" | "gradient" | "secondary" | "ghost" | "text" | "light" | "redText";
|
|
12
|
+
size?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
13
13
|
} & Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
14
14
|
asChild?: boolean;
|
|
15
15
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -2,8 +2,8 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
declare const meta: {
|
|
3
3
|
component: import('react').ForwardRefExoticComponent<{
|
|
4
4
|
className?: string;
|
|
5
|
-
variant?: "primary" | "warning" | "info" | "gradient" | "secondary" | "ghost" | "text" | "light";
|
|
6
|
-
size?: "large" | "medium" | "small" | "xsmall";
|
|
5
|
+
variant?: "primary" | "warning" | "info" | "gradient" | "secondary" | "ghost" | "text" | "light" | "redText";
|
|
6
|
+
size?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
7
7
|
} & Omit<import('react').DetailedHTMLProps<import('react').ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
@@ -19,6 +19,7 @@ export declare const Light: Story;
|
|
|
19
19
|
export declare const Gradient: Story;
|
|
20
20
|
export declare const Warning: Story;
|
|
21
21
|
export declare const Info: Story;
|
|
22
|
+
export declare const RedText: Story;
|
|
22
23
|
export declare const Ghost: Story;
|
|
23
24
|
export declare const GhostButtonInTextLayout: Story;
|
|
24
25
|
export declare const AllSizes: Story;
|
package/dist/fractal-ui.js
CHANGED
|
@@ -5948,26 +5948,48 @@ function Vl({ padding: e, children: l, className: t, ...o }) {
|
|
|
5948
5948
|
const Q2 = {
|
|
5949
5949
|
base: [
|
|
5950
5950
|
// Base
|
|
5951
|
-
"flex cursor-pointer items-center justify-center text-nowrap text-
|
|
5951
|
+
"flex cursor-pointer items-center justify-center text-nowrap text-neutral-10 ring-inset transition ease-in-out",
|
|
5952
5952
|
// Focus
|
|
5953
|
-
"focus:border-none focus:outline-none focus-visible:ring-2 focus-visible:ring-neutral-10",
|
|
5953
|
+
"focus:border-none focus:outline-none focus-visible:ring-2 focus-visible:ring-neutral-10 focus-visible:text-neutral-10",
|
|
5954
5954
|
// Disabled base
|
|
5955
|
-
"disabled:cursor-default"
|
|
5955
|
+
"disabled:cursor-default disabled:hover:shadow-none"
|
|
5956
5956
|
],
|
|
5957
5957
|
variants: {
|
|
5958
5958
|
primary: [
|
|
5959
5959
|
// Base
|
|
5960
5960
|
"bg-primary-50",
|
|
5961
5961
|
// Hover
|
|
5962
|
-
"hover:bg-primary-
|
|
5962
|
+
"hover:bg-primary-60",
|
|
5963
|
+
// Focus
|
|
5964
|
+
"focus-visible:ring-neutral-30",
|
|
5963
5965
|
// Disabled
|
|
5964
5966
|
"disabled:bg-neutral-50 disabled:text-neutral-30"
|
|
5965
5967
|
],
|
|
5968
|
+
secondary: [
|
|
5969
|
+
// Base
|
|
5970
|
+
"bg-neutral-80 ring-1 ring-neutral-55 text-neutral-20",
|
|
5971
|
+
// Hover
|
|
5972
|
+
"hover:ring-1 hover:ring-neutral-60 hover:shadow-button hover:text-neutral-10",
|
|
5973
|
+
// Focus
|
|
5974
|
+
"focus-visible:ring-neutral-30 focus-visible:ring-1.5",
|
|
5975
|
+
// Disabled
|
|
5976
|
+
"disabled:bg-neutral-60 disabled:text-neutral-40 disabled:ring-neutral-60"
|
|
5977
|
+
],
|
|
5978
|
+
redText: [
|
|
5979
|
+
// Base
|
|
5980
|
+
"bg-neutral-80 text-primary-40 ring-1 ring-neutral-55",
|
|
5981
|
+
// Hover
|
|
5982
|
+
"hover:shadow-button hover:ring-neutral-60",
|
|
5983
|
+
// Focus
|
|
5984
|
+
"focus-visible:ring-neutral-30 focus-visible:ring-1.5",
|
|
5985
|
+
// Disabled
|
|
5986
|
+
"disabled:bg-neutral-60 disabled:text-neutral-40 disabled:ring-neutral-60"
|
|
5987
|
+
],
|
|
5966
5988
|
warning: [
|
|
5967
5989
|
// Base
|
|
5968
5990
|
"bg-warning-50",
|
|
5969
5991
|
// Hover
|
|
5970
|
-
"hover:bg-warning-
|
|
5992
|
+
"hover:bg-warning-60",
|
|
5971
5993
|
// Disabled
|
|
5972
5994
|
"disabled:bg-neutral-50 disabled:text-neutral-30"
|
|
5973
5995
|
],
|
|
@@ -5975,7 +5997,7 @@ const Q2 = {
|
|
|
5975
5997
|
// Base
|
|
5976
5998
|
"bg-secondary-40",
|
|
5977
5999
|
// Hover
|
|
5978
|
-
"hover:bg-secondary-
|
|
6000
|
+
"hover:bg-secondary-50",
|
|
5979
6001
|
// Disabled
|
|
5980
6002
|
"disabled:bg-neutral-50 disabled:text-neutral-30"
|
|
5981
6003
|
],
|
|
@@ -5987,23 +6009,15 @@ const Q2 = {
|
|
|
5987
6009
|
// Disabled
|
|
5988
6010
|
"disabled:bg-neutral-50 disabled:text-neutral-30"
|
|
5989
6011
|
],
|
|
5990
|
-
secondary: [
|
|
5991
|
-
// Base
|
|
5992
|
-
"bg-neutral-80 ring-1.5 ring-neutral-55",
|
|
5993
|
-
// Hover
|
|
5994
|
-
"hover:bg-neutral-80 hover:text-neutral-20 hover:ring-1.5 hover:ring-neutral-40",
|
|
5995
|
-
// Disabled
|
|
5996
|
-
"disabled:bg-neutral-70 disabled:text-neutral-40 disabled:ring-1.5 disabled:ring-neutral-60"
|
|
5997
|
-
],
|
|
5998
6012
|
light: [
|
|
5999
6013
|
// Base
|
|
6000
6014
|
"bg-neutral-10 text-neutral-60",
|
|
6001
6015
|
// Hover
|
|
6002
|
-
"hover:bg-neutral-20",
|
|
6016
|
+
"hover:text-neutral-80 hover:bg-neutral-20",
|
|
6003
6017
|
// Disabled
|
|
6004
6018
|
"disabled:bg-neutral-30 disabled:text-neutral-50",
|
|
6005
6019
|
// Focus
|
|
6006
|
-
"focus-visible:ring-neutral-40"
|
|
6020
|
+
"focus-visible:ring-neutral-40 focus-visible:ring-1.5 focus-visible:text-neutral-60"
|
|
6007
6021
|
],
|
|
6008
6022
|
ghost: [
|
|
6009
6023
|
// Base
|
|
@@ -6027,16 +6041,18 @@ const Q2 = {
|
|
|
6027
6041
|
]
|
|
6028
6042
|
},
|
|
6029
6043
|
sizes: {
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6044
|
+
xlarge: "tg-subtitle-bold min-h-12 rounded-xl px-5 py-3 md:min-h-14 md:rounded-2xl",
|
|
6045
|
+
large: "tg-button-text min-h-11 rounded-lg px-5 py-3 md:min-h-12",
|
|
6046
|
+
medium: "tg-button-small min-h-10 rounded-lg px-4 py-2 md:min-h-10",
|
|
6047
|
+
small: "tg-caption-bold min-h-[34px] rounded-md px-4 py-1.5",
|
|
6048
|
+
xsmall: "tg-tag min-h-6 rounded-sm px-2 py-1"
|
|
6034
6049
|
},
|
|
6035
6050
|
ghostSizes: {
|
|
6051
|
+
xlarge: "-mx-5 -my-3 px-5 py-3",
|
|
6036
6052
|
large: "-mx-5 -my-3 px-5 py-3",
|
|
6037
6053
|
medium: "-mx-5 -my-3 px-5 py-3",
|
|
6038
6054
|
small: "-mx-4 -my-2 px-4 py-2",
|
|
6039
|
-
xsmall: "-mx-4 -my-1.5 px-
|
|
6055
|
+
xsmall: "-mx-4 -my-1.5 px-2 py-1"
|
|
6040
6056
|
}
|
|
6041
6057
|
}, Ol = n1(
|
|
6042
6058
|
({ asChild: e, variant: l = "primary", size: t = "medium", className: o, children: i, ...r }, n) => {
|
package/dist/styles/colors.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
--color-purple: #6c5dd3;
|
|
7
7
|
|
|
8
8
|
/* Primary */
|
|
9
|
-
--color-primary-60: #
|
|
9
|
+
--color-primary-60: #c14e64;
|
|
10
10
|
--color-primary-50: #d63d57;
|
|
11
11
|
--color-primary-55: #da4e65;
|
|
12
12
|
--color-primary-40: #df687d;
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
|
|
16
16
|
/* Secondary */
|
|
17
17
|
--color-secondary-70: #193a66;
|
|
18
|
-
--color-secondary-
|
|
18
|
+
--color-secondary-60: #0052bd;
|
|
19
|
+
--color-secondary-50: #1e6fda;
|
|
19
20
|
--color-secondary-40: #3f8cff;
|
|
20
21
|
--color-secondary-30: #83b9ff;
|
|
21
22
|
--color-secondary-20: #b2cbeb;
|
|
@@ -38,6 +39,7 @@
|
|
|
38
39
|
--color-success-20: #f0f9f2;
|
|
39
40
|
|
|
40
41
|
/* Warning */
|
|
42
|
+
--color-warning-60: #e8562b;
|
|
41
43
|
--color-warning-50: #ff754c;
|
|
42
44
|
--color-warning-30: #ff9a7b;
|
|
43
45
|
--color-warning-20: #f8d9c7;
|
|
@@ -72,4 +74,4 @@
|
|
|
72
74
|
--color-protocols-mnt: #242731;
|
|
73
75
|
--color-protocols-monad: #836ef9;
|
|
74
76
|
--color-protocols-icp: #3a3d46;
|
|
75
|
-
}
|
|
77
|
+
}
|
package/dist/styles/tailwind.css
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
--shadow-modal: 0px 32px 48px -8px rgba(0, 0, 0, 0.1), 0px 0px 14px -4px rgba(0, 0, 0, 0.05);
|
|
34
34
|
--shadow-menu-item: 0px 1px 0px 0px rgba(255, 255, 255, 0.05) inset, 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
|
|
35
35
|
--shadow-sidebar-accessory: 0px 20px 24px 0px rgba(0, 0, 0, 0.5);
|
|
36
|
+
--shadow-button: 0px 7.4px 18.5px 0px rgba(255, 255, 255, 0.11) inset;
|
|
36
37
|
|
|
37
38
|
/* Miscellaneous */
|
|
38
39
|
--border-width-1\.5: 1.5px;
|