@czi-sds/components 22.17.0 → 22.17.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/index.cjs.d.ts +3 -3
- package/dist/index.cjs.js +9 -9
- package/dist/index.esm.d.ts +3 -3
- package/dist/index.esm.js +9 -9
- package/dist/tailwind.json +9 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/variables.css +934 -316
- package/dist/variables.scss +1738 -172
- package/package.json +3 -3
package/dist/index.cjs.d.ts
CHANGED
|
@@ -2215,12 +2215,12 @@ interface DiscreteColorGeneratorOptions {
|
|
|
2215
2215
|
isDarkMode?: boolean;
|
|
2216
2216
|
/**
|
|
2217
2217
|
* Starting hue in degrees (0-360)
|
|
2218
|
-
* @default
|
|
2218
|
+
* @default 250
|
|
2219
2219
|
*/
|
|
2220
2220
|
start?: number;
|
|
2221
2221
|
/**
|
|
2222
2222
|
* Number of rotations around the color wheel
|
|
2223
|
-
* @default
|
|
2223
|
+
* @default 0.85
|
|
2224
2224
|
*/
|
|
2225
2225
|
rotations?: number;
|
|
2226
2226
|
/**
|
|
@@ -2230,7 +2230,7 @@ interface DiscreteColorGeneratorOptions {
|
|
|
2230
2230
|
gamma?: number;
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Lightness range [min, max] (0-1)
|
|
2233
|
-
* @default [0.
|
|
2233
|
+
* @default [0.4, 0.7]
|
|
2234
2234
|
*/
|
|
2235
2235
|
lightness?: [
|
|
2236
2236
|
number,
|
package/dist/index.cjs.js
CHANGED
|
@@ -579,7 +579,7 @@ const SDSLightThemeColors = {
|
|
|
579
579
|
purple: {
|
|
580
580
|
"100": "#efeafe",
|
|
581
581
|
"200": "#e4dbfc",
|
|
582
|
-
"300": "#
|
|
582
|
+
"300": "#cbbaf8",
|
|
583
583
|
"400": "#b296f2",
|
|
584
584
|
"500": "#8b54e2",
|
|
585
585
|
"600": "#6526b5",
|
|
@@ -761,7 +761,7 @@ const percentToHex = (percentOpacity) => {
|
|
|
761
761
|
// Convert percentage to 0-255 range
|
|
762
762
|
const alphaValue = Math.round((clampedPercent / 100) * 255);
|
|
763
763
|
// Convert to hex and pad with leading zero if needed
|
|
764
|
-
return alphaValue.toString(16).padStart(2, "0").
|
|
764
|
+
return alphaValue.toString(16).padStart(2, "0").toLowerCase();
|
|
765
765
|
};
|
|
766
766
|
/**
|
|
767
767
|
* Adds opacity to a hex color by appending the hex opacity value.
|
|
@@ -11324,7 +11324,7 @@ const LegendItem = styled__default.default("div") `
|
|
|
11324
11324
|
align-items: center;
|
|
11325
11325
|
cursor: ${disabled ? "not-allowed" : "pointer"} !important;
|
|
11326
11326
|
transition: background-color 0.2s ease-in-out;
|
|
11327
|
-
padding:
|
|
11327
|
+
padding: ${spaces?.xxxs}px ${spaces?.xxs}px;
|
|
11328
11328
|
border-radius: ${corners?.s}px;
|
|
11329
11329
|
background-color: ${isSelected ? semanticColors?.base?.backgroundTertiary : "transparent"};
|
|
11330
11330
|
pointer-events: ${disabled ? "none" : "auto"};
|
|
@@ -11341,8 +11341,8 @@ const LegendIcon = styled__default.default("div") `
|
|
|
11341
11341
|
const spaces = getSpaces(props);
|
|
11342
11342
|
const corners = getCorners(props);
|
|
11343
11343
|
return `
|
|
11344
|
-
width:
|
|
11345
|
-
height:
|
|
11344
|
+
width: ${spaces?.m}px;
|
|
11345
|
+
height: ${spaces?.m}px;
|
|
11346
11346
|
border-radius: ${corners?.s}px;
|
|
11347
11347
|
background-color: ${color};
|
|
11348
11348
|
flex-shrink: 0;
|
|
@@ -11353,7 +11353,7 @@ const LegendIcon = styled__default.default("div") `
|
|
|
11353
11353
|
}}
|
|
11354
11354
|
`;
|
|
11355
11355
|
const LegendLabel = styled__default.default("span") `
|
|
11356
|
-
${
|
|
11356
|
+
${fontBodyMediumXxxs}
|
|
11357
11357
|
${(props) => {
|
|
11358
11358
|
const semanticColors = getSemanticColors(props);
|
|
11359
11359
|
return `
|
|
@@ -11362,13 +11362,13 @@ const LegendLabel = styled__default.default("span") `
|
|
|
11362
11362
|
}}
|
|
11363
11363
|
`;
|
|
11364
11364
|
const LegendValue = styled__default.default("span") `
|
|
11365
|
-
${
|
|
11365
|
+
${fontBodyMediumXxxs}
|
|
11366
11366
|
${(props) => {
|
|
11367
11367
|
const semanticColors = getSemanticColors(props);
|
|
11368
11368
|
const spaces = getSpaces(props);
|
|
11369
11369
|
return `
|
|
11370
11370
|
color: ${semanticColors?.base?.textSecondary};
|
|
11371
|
-
margin-left: ${spaces?.
|
|
11371
|
+
margin-left: ${spaces?.xxs}px;
|
|
11372
11372
|
`;
|
|
11373
11373
|
}}
|
|
11374
11374
|
`;
|
|
@@ -25795,7 +25795,7 @@ Object.assign(chroma, {
|
|
|
25795
25795
|
const generateDiscreteColors = (count, options = {}) => {
|
|
25796
25796
|
if (count === 0)
|
|
25797
25797
|
return [];
|
|
25798
|
-
const { isDarkMode = false, start =
|
|
25798
|
+
const { isDarkMode = false, start = 250, rotations = 0.85, gamma = 0.7, lightness = [0.4, 0.7], correctLightness = true, } = options;
|
|
25799
25799
|
let scale = chroma
|
|
25800
25800
|
.cubehelix()
|
|
25801
25801
|
.start(start)
|
package/dist/index.esm.d.ts
CHANGED
|
@@ -2215,12 +2215,12 @@ interface DiscreteColorGeneratorOptions {
|
|
|
2215
2215
|
isDarkMode?: boolean;
|
|
2216
2216
|
/**
|
|
2217
2217
|
* Starting hue in degrees (0-360)
|
|
2218
|
-
* @default
|
|
2218
|
+
* @default 250
|
|
2219
2219
|
*/
|
|
2220
2220
|
start?: number;
|
|
2221
2221
|
/**
|
|
2222
2222
|
* Number of rotations around the color wheel
|
|
2223
|
-
* @default
|
|
2223
|
+
* @default 0.85
|
|
2224
2224
|
*/
|
|
2225
2225
|
rotations?: number;
|
|
2226
2226
|
/**
|
|
@@ -2230,7 +2230,7 @@ interface DiscreteColorGeneratorOptions {
|
|
|
2230
2230
|
gamma?: number;
|
|
2231
2231
|
/**
|
|
2232
2232
|
* Lightness range [min, max] (0-1)
|
|
2233
|
-
* @default [0.
|
|
2233
|
+
* @default [0.4, 0.7]
|
|
2234
2234
|
*/
|
|
2235
2235
|
lightness?: [
|
|
2236
2236
|
number,
|
package/dist/index.esm.js
CHANGED
|
@@ -556,7 +556,7 @@ const SDSLightThemeColors = {
|
|
|
556
556
|
purple: {
|
|
557
557
|
"100": "#efeafe",
|
|
558
558
|
"200": "#e4dbfc",
|
|
559
|
-
"300": "#
|
|
559
|
+
"300": "#cbbaf8",
|
|
560
560
|
"400": "#b296f2",
|
|
561
561
|
"500": "#8b54e2",
|
|
562
562
|
"600": "#6526b5",
|
|
@@ -738,7 +738,7 @@ const percentToHex = (percentOpacity) => {
|
|
|
738
738
|
// Convert percentage to 0-255 range
|
|
739
739
|
const alphaValue = Math.round((clampedPercent / 100) * 255);
|
|
740
740
|
// Convert to hex and pad with leading zero if needed
|
|
741
|
-
return alphaValue.toString(16).padStart(2, "0").
|
|
741
|
+
return alphaValue.toString(16).padStart(2, "0").toLowerCase();
|
|
742
742
|
};
|
|
743
743
|
/**
|
|
744
744
|
* Adds opacity to a hex color by appending the hex opacity value.
|
|
@@ -11301,7 +11301,7 @@ const LegendItem = styled$2("div") `
|
|
|
11301
11301
|
align-items: center;
|
|
11302
11302
|
cursor: ${disabled ? "not-allowed" : "pointer"} !important;
|
|
11303
11303
|
transition: background-color 0.2s ease-in-out;
|
|
11304
|
-
padding:
|
|
11304
|
+
padding: ${spaces?.xxxs}px ${spaces?.xxs}px;
|
|
11305
11305
|
border-radius: ${corners?.s}px;
|
|
11306
11306
|
background-color: ${isSelected ? semanticColors?.base?.backgroundTertiary : "transparent"};
|
|
11307
11307
|
pointer-events: ${disabled ? "none" : "auto"};
|
|
@@ -11318,8 +11318,8 @@ const LegendIcon = styled$2("div") `
|
|
|
11318
11318
|
const spaces = getSpaces(props);
|
|
11319
11319
|
const corners = getCorners(props);
|
|
11320
11320
|
return `
|
|
11321
|
-
width:
|
|
11322
|
-
height:
|
|
11321
|
+
width: ${spaces?.m}px;
|
|
11322
|
+
height: ${spaces?.m}px;
|
|
11323
11323
|
border-radius: ${corners?.s}px;
|
|
11324
11324
|
background-color: ${color};
|
|
11325
11325
|
flex-shrink: 0;
|
|
@@ -11330,7 +11330,7 @@ const LegendIcon = styled$2("div") `
|
|
|
11330
11330
|
}}
|
|
11331
11331
|
`;
|
|
11332
11332
|
const LegendLabel = styled$2("span") `
|
|
11333
|
-
${
|
|
11333
|
+
${fontBodyMediumXxxs}
|
|
11334
11334
|
${(props) => {
|
|
11335
11335
|
const semanticColors = getSemanticColors(props);
|
|
11336
11336
|
return `
|
|
@@ -11339,13 +11339,13 @@ const LegendLabel = styled$2("span") `
|
|
|
11339
11339
|
}}
|
|
11340
11340
|
`;
|
|
11341
11341
|
const LegendValue = styled$2("span") `
|
|
11342
|
-
${
|
|
11342
|
+
${fontBodyMediumXxxs}
|
|
11343
11343
|
${(props) => {
|
|
11344
11344
|
const semanticColors = getSemanticColors(props);
|
|
11345
11345
|
const spaces = getSpaces(props);
|
|
11346
11346
|
return `
|
|
11347
11347
|
color: ${semanticColors?.base?.textSecondary};
|
|
11348
|
-
margin-left: ${spaces?.
|
|
11348
|
+
margin-left: ${spaces?.xxs}px;
|
|
11349
11349
|
`;
|
|
11350
11350
|
}}
|
|
11351
11351
|
`;
|
|
@@ -25772,7 +25772,7 @@ Object.assign(chroma, {
|
|
|
25772
25772
|
const generateDiscreteColors = (count, options = {}) => {
|
|
25773
25773
|
if (count === 0)
|
|
25774
25774
|
return [];
|
|
25775
|
-
const { isDarkMode = false, start =
|
|
25775
|
+
const { isDarkMode = false, start = 250, rotations = 0.85, gamma = 0.7, lightness = [0.4, 0.7], correctLightness = true, } = options;
|
|
25776
25776
|
let scale = chroma
|
|
25777
25777
|
.cubehelix()
|
|
25778
25778
|
.start(start)
|
package/dist/tailwind.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"fontFamily": {
|
|
3
|
-
"sds-body": "var(--font-inter),Inter
|
|
4
|
-
"sds-caps": "var(--font-inter),Inter
|
|
3
|
+
"sds-body": "var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Helvetica, Arial, sans-serif",
|
|
4
|
+
"sds-caps": "var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Helvetica, Arial, sans-serif",
|
|
5
5
|
"sds-code": "\"IBM Plex Mono\", monospace",
|
|
6
|
-
"sds-header": "var(--font-inter),Inter
|
|
7
|
-
"sds-link": "var(--font-inter),Inter
|
|
8
|
-
"sds-tabular": "var(--font-inter),Inter
|
|
9
|
-
"sds-title": "var(--font-inter),Inter
|
|
6
|
+
"sds-header": "var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Helvetica, Arial, sans-serif",
|
|
7
|
+
"sds-link": "var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Helvetica, Arial, sans-serif",
|
|
8
|
+
"sds-tabular": "var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Helvetica, Arial, sans-serif",
|
|
9
|
+
"sds-title": "var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Helvetica, Arial, sans-serif"
|
|
10
10
|
},
|
|
11
11
|
"fontSize": {
|
|
12
12
|
"sds-body-l-400-narrow": "16px",
|
|
@@ -2965,7 +2965,7 @@
|
|
|
2965
2965
|
"sds-color-primitive-green-800": "#001f00",
|
|
2966
2966
|
"sds-color-primitive-purple-100": "#efeafe",
|
|
2967
2967
|
"sds-color-primitive-purple-200": "#e4dbfc",
|
|
2968
|
-
"sds-color-primitive-purple-300": "#
|
|
2968
|
+
"sds-color-primitive-purple-300": "#cbbaf8",
|
|
2969
2969
|
"sds-color-primitive-purple-400": "#b296f2",
|
|
2970
2970
|
"sds-color-primitive-purple-500": "#8b54e2",
|
|
2971
2971
|
"sds-color-primitive-purple-600": "#6526b5",
|
|
@@ -3013,7 +3013,7 @@
|
|
|
3013
3013
|
"sds-color-semantic-base-background-primary-dark": "#000000",
|
|
3014
3014
|
"sds-color-semantic-base-background-primary-inverse": "#000000",
|
|
3015
3015
|
"sds-color-semantic-base-background-secondary": "#ededed66",
|
|
3016
|
-
"sds-color-semantic-base-background-secondary-on-dark": "#
|
|
3016
|
+
"sds-color-semantic-base-background-secondary-on-dark": "#3b3b3b9e",
|
|
3017
3017
|
"sds-color-semantic-base-background-secondary-inverse": "#3b3b3b",
|
|
3018
3018
|
"sds-color-semantic-base-background-tertiary": "#ededed",
|
|
3019
3019
|
"sds-color-semantic-base-border-on-fill": "#ffffff",
|
|
@@ -3144,4 +3144,4 @@
|
|
|
3144
3144
|
"sds-xxs": "4px",
|
|
3145
3145
|
"sds-xxxs": "2px"
|
|
3146
3146
|
}
|
|
3147
|
-
}
|
|
3147
|
+
}
|