@loomhq/lens 10.59.0 → 10.60.1

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/colors.js CHANGED
@@ -104,12 +104,12 @@ export const hslaBaseColors = {
104
104
  };
105
105
  export const hslaGreys = {
106
106
  grey8: { h: 0, s: 0, l: 13, a: 1 },
107
- grey7: { h: 242, s: 21, l: 28, a: 1 },
107
+ grey7: { h: 246, s: 16, l: 26, a: 1 },
108
108
  grey6: { h: 252, s: 13, l: 46, a: 1 },
109
109
  grey5: { h: 240, s: 7, l: 62, a: 1 },
110
- grey4: { h: 240, s: 5.8, l: 76.3, a: 1 },
111
- grey3: { h: 240, s: 6, l: 87, a: 1 },
112
- grey2: { h: 240, s: 8, l: 93, a: 1 },
110
+ grey4: { h: 259, s: 12, l: 75, a: 1 },
111
+ grey3: { h: 260, s: 11, l: 85, a: 1 },
112
+ grey2: { h: 260, s: 11, l: 95, a: 1 },
113
113
  grey1: { h: 240, s: 7, l: 97, a: 1 },
114
114
  white: { h: 240, s: 7, l: 100, a: 1 },
115
115
  };
@@ -106,7 +106,7 @@ export const displayRules: {
106
106
  selector: string;
107
107
  declarations: {
108
108
  property: string;
109
- value: any;
109
+ value: string;
110
110
  }[];
111
111
  }[];
112
112
  export const flexWrapRules: {
@@ -129,7 +129,7 @@ export const flexItemRules: {
129
129
  modifier: string;
130
130
  declarations: {
131
131
  property: string;
132
- value: any;
132
+ value: string;
133
133
  }[];
134
134
  }[];
135
135
  export const JustifyContentRules: {
@@ -137,7 +137,7 @@ export const JustifyContentRules: {
137
137
  modifier: string;
138
138
  declarations: {
139
139
  property: string;
140
- value: any;
140
+ value: string;
141
141
  }[];
142
142
  }[];
143
143
  export const growRules: {
@@ -161,7 +161,7 @@ export const alignSelfRules: {
161
161
  modifier: string;
162
162
  declarations: {
163
163
  property: string;
164
- value: any;
164
+ value: string;
165
165
  }[];
166
166
  }[];
167
167
  export const overflowRules: {
@@ -1 +1 @@
1
- export function pascalCaseToKebabCase(string: any): any;
1
+ export declare const pascalCaseToKebabCase: (string: string) => string;
@@ -1,4 +1,4 @@
1
- export const pascalCaseToKebabCase = string => {
1
+ export const pascalCaseToKebabCase = (string) => {
2
2
  return string
3
3
  .replace(/([a-z0-9])([A-Z])/g, '$1-$2')
4
4
  .replace(/[\s_]+/g, '-')
@@ -1,3 +1,4 @@
1
- export function getColorAlpha(color: any, alpha: any): string;
2
- export function getColorScale(color: any, scaleType: any, scaleIncrement: any): string;
3
- export function getColorValue(color: any): any;
1
+ import { hslaColors } from '../colors';
2
+ export declare const getColorAlpha: (color: keyof typeof hslaColors, alpha: number) => string;
3
+ export declare const getColorScale: (color: keyof typeof hslaColors, scaleType: string, scaleIncrement: number) => string;
4
+ export declare const getColorValue: (color?: string) => string | undefined;
@@ -13,7 +13,7 @@ export const getColorScale = (color, scaleType, scaleIncrement) => {
13
13
  };
14
14
  return `hsla(${hslaColors[color].h},${hslaColors[color].s}%,${Math.round(scaledValue())}%,${hslaColors[color].a})`;
15
15
  };
16
- export const getColorValue = color => {
16
+ export const getColorValue = (color) => {
17
17
  if (color) {
18
18
  if (color in hslaColors || color in themeColors.light) {
19
19
  return `var(--lns-color-${color})`;
@@ -1,5 +1,5 @@
1
- export * from "./color";
2
- export * from "./responsive";
3
- export * from "./size";
4
- export * from "./styles";
5
- export * from "./case";
1
+ export * from './color';
2
+ export * from './responsive';
3
+ export * from './size';
4
+ export * from './styles';
5
+ export * from './case';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loomhq/lens",
3
- "version": "10.59.0",
3
+ "version": "10.60.1",
4
4
  "scripts": {
5
5
  "dev": "next",
6
6
  "build:next": "next build",