@loomhq/lens 11.17.1 → 11.19.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.
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
declare const ButtonWrapper: import("@emotion/styled").StyledComponent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ButtonWrapperProps, object>;
|
|
3
3
|
declare const Button: ({ size, children, variant, hasFullWidth, icon, iconPosition, logoSrc, hasLoader, isDisabled, htmlTag, refHandler, ...props }: ButtonProps & React.ComponentProps<typeof ButtonWrapper>) => React.JSX.Element;
|
|
4
|
+
type Variant = 'neutral' | 'primary' | 'secondary' | 'record' | 'upgrade' | 'danger' | 'ai';
|
|
4
5
|
interface ButtonProps {
|
|
5
6
|
size?: 'small' | 'medium' | 'large';
|
|
6
|
-
variant?:
|
|
7
|
+
variant?: Variant;
|
|
7
8
|
children?: React.ReactNode;
|
|
8
9
|
isDisabled?: boolean;
|
|
9
10
|
hasFullWidth?: boolean;
|
|
@@ -20,7 +21,7 @@ interface ButtonWrapperProps {
|
|
|
20
21
|
hasNoPaddingRight?: boolean;
|
|
21
22
|
hasNoPaddingLeft?: boolean;
|
|
22
23
|
size?: 'small' | 'medium' | 'large';
|
|
23
|
-
variant?:
|
|
24
|
+
variant?: Variant;
|
|
24
25
|
hasFullWidth?: boolean;
|
|
25
26
|
icon?: React.ReactNode;
|
|
26
27
|
iconPosition?: 'left' | 'right';
|
|
@@ -7,6 +7,7 @@ export declare const radiusVariables: VarsObject;
|
|
|
7
7
|
export declare const shadowVariables: VarsObject;
|
|
8
8
|
export declare const spaceVariables: VarsObject;
|
|
9
9
|
export declare const formFieldVariables: VarsObject;
|
|
10
|
+
export declare const gradientVariables: VarsObject;
|
|
10
11
|
export declare const getSizingVariablesCssVarsObject: () => VarsObject;
|
|
11
12
|
export declare const getVariablesCssVarsObject: () => VarsObject;
|
|
12
13
|
export declare const getColorsCssVarsObject: () => VarsObject;
|
package/dist/index.js
CHANGED
|
@@ -484,6 +484,10 @@ var breakpoints = {
|
|
|
484
484
|
medium: "64em",
|
|
485
485
|
large: "75em"
|
|
486
486
|
};
|
|
487
|
+
var gradients = {
|
|
488
|
+
"ai-primary": "radial-gradient(134.96% 884.49% at 119.29% 112.58%, #DC43BE 0%, #565ADD 70%)",
|
|
489
|
+
"ai-secondary": "radial-gradient(100% 138.41% at 100% 100%, #EFF0FF 0%, #FFFFFF 100%)"
|
|
490
|
+
};
|
|
487
491
|
|
|
488
492
|
// src/components/text/text.tsx
|
|
489
493
|
import React2 from "react";
|
|
@@ -1220,6 +1224,7 @@ var themeColorVariables = getCssVarsFromObject(
|
|
|
1220
1224
|
void 0,
|
|
1221
1225
|
getThemeColorsObject()
|
|
1222
1226
|
);
|
|
1227
|
+
var gradientVariables = getCssVarsFromObject("gradient", gradients);
|
|
1223
1228
|
var sizingVariables = [
|
|
1224
1229
|
unitVariables,
|
|
1225
1230
|
textSizeVariables,
|
|
@@ -1235,7 +1240,7 @@ var getVariablesCssVarsObject = () => {
|
|
|
1235
1240
|
return Object.assign({}, fontWeightVariables, ...sizingVariables);
|
|
1236
1241
|
};
|
|
1237
1242
|
var getColorsCssVarsObject = () => {
|
|
1238
|
-
return __spreadValues(__spreadValues({}, colorVariables), themeColorVariables);
|
|
1243
|
+
return __spreadValues(__spreadValues(__spreadValues({}, colorVariables), themeColorVariables), gradientVariables);
|
|
1239
1244
|
};
|
|
1240
1245
|
var assignLightThemeColors = () => {
|
|
1241
1246
|
return Object.keys(themeColors.light).map(
|
|
@@ -1634,6 +1639,13 @@ var variantStyles = {
|
|
|
1634
1639
|
hover: getColorValue("primaryHover"),
|
|
1635
1640
|
active: getColorValue("primaryActive")
|
|
1636
1641
|
},
|
|
1642
|
+
secondary: {
|
|
1643
|
+
color: getColorValue("primary"),
|
|
1644
|
+
background: getColorValue("highlight"),
|
|
1645
|
+
borderColor: null,
|
|
1646
|
+
hover: getColorValue("blurpleMedium"),
|
|
1647
|
+
active: null
|
|
1648
|
+
},
|
|
1637
1649
|
record: {
|
|
1638
1650
|
color: getColorValue("white"),
|
|
1639
1651
|
background: getColorValue("record"),
|
|
@@ -7543,6 +7555,8 @@ export {
|
|
|
7543
7555
|
getThemeStyles,
|
|
7544
7556
|
getThemeStylesString,
|
|
7545
7557
|
getVariablesCssVarsObject,
|
|
7558
|
+
gradientVariables,
|
|
7559
|
+
gradients,
|
|
7546
7560
|
growRules,
|
|
7547
7561
|
heightRules,
|
|
7548
7562
|
hslaBaseColors,
|
package/dist/variables.d.ts
CHANGED