@genesislcap/rapid-design-system 14.213.0 → 14.214.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.
@@ -721,6 +721,14 @@
721
721
  "path": "src/_config/index.ts",
722
722
  "declarations": [],
723
723
  "exports": [
724
+ {
725
+ "kind": "js",
726
+ "name": "*",
727
+ "declaration": {
728
+ "name": "*",
729
+ "package": "./styles"
730
+ }
731
+ },
724
732
  {
725
733
  "kind": "js",
726
734
  "name": "*",
@@ -10084,7 +10092,7 @@
10084
10092
  {
10085
10093
  "kind": "variable",
10086
10094
  "name": "rapidDialogStyles",
10087
- "default": "css`\n ${foundationDialogStyles}\n :host {\n --color-error: var(--error-color);\n --color-success: var(--success-color);\n --dialog-background: ${neutralLayer2};\n\n font-family: var(--body-font);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n }\n\n dialog {\n position: fixed;\n top: 0;\n bottom: 0;\n border-radius: calc(var(--control-corner-radius) * 1px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n text-align: left;\n line-height: normal;\n box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);\n }\n\n .top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: var(--neutral-foreground-rest);\n margin-bottom: calc(var(--design-unit) * 2px);\n font-weight: 500;\n }\n\n .bottom {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n color: var(--neutral-foreground-rest);\n gap: calc(var(--design-unit) * 2px);\n }\n\n :host slot:first-of-type {\n color: ${neutralForegroundRest};\n }\n\n ::slotted(rapid-button) {\n margin-top: calc(var(--design-unit) * 4px - 1px);\n }\n\n .content-wrapper {\n min-width: var(--dialog-min-width);\n min-height: var(--dialog-min-height);\n height: fit-content;\n width: fit-content;\n max-width: var(--dialog-max-width);\n max-height: var(--dialog-max-height);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n }\n\n .close-icon:hover svg {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%);\n }\n\n .close-icon svg g path {\n fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);\n }\n\n .close-icon:hover svg g path {\n fill: var(--neutral-foreground-rest);\n }\n\n .close-icon:active svg {\n background-color: var(--neutral-layer-4);\n }\n\n .close-icon:active svg g path {\n fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%);\n }\n`"
10095
+ "default": "css`\n ${foundationDialogStyles}\n :host {\n --dialog-background: ${neutralLayer2};\n\n font-family: var(--body-font);\n font-size: var(--type-ramp-base-font-size);\n line-height: var(--type-ramp-base-line-height);\n }\n\n dialog {\n position: fixed;\n top: 0;\n bottom: 0;\n border-radius: calc(var(--control-corner-radius) * 1px);\n border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);\n text-align: left;\n line-height: normal;\n box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);\n }\n\n .top {\n display: flex;\n align-items: center;\n justify-content: space-between;\n color: var(--neutral-foreground-rest);\n margin-bottom: calc(var(--design-unit) * 2px);\n font-weight: 500;\n }\n\n .bottom {\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-end;\n color: var(--neutral-foreground-rest);\n gap: calc(var(--design-unit) * 2px);\n }\n\n :host slot:first-of-type {\n color: ${neutralForegroundRest};\n }\n\n ::slotted(rapid-button) {\n margin-top: calc(var(--design-unit) * 4px - 1px);\n }\n\n .content-wrapper {\n min-width: var(--dialog-min-width);\n min-height: var(--dialog-min-height);\n height: fit-content;\n width: fit-content;\n max-width: var(--dialog-max-width);\n max-height: var(--dialog-max-height);\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: stretch;\n }\n\n .close-icon:hover svg {\n background-color: color-mix(in srgb, var(--neutral-foreground-rest), transparent 95%);\n }\n\n .close-icon svg g path {\n fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 50%);\n }\n\n .close-icon:hover svg g path {\n fill: var(--neutral-foreground-rest);\n }\n\n .close-icon:active svg {\n background-color: var(--neutral-layer-4);\n }\n\n .close-icon:active svg g path {\n fill: color-mix(in srgb, var(--neutral-foreground-rest), transparent 67%);\n }\n`"
10088
10096
  }
10089
10097
  ],
10090
10098
  "exports": [
@@ -34501,6 +34509,73 @@
34501
34509
  }
34502
34510
  ]
34503
34511
  },
34512
+ {
34513
+ "kind": "javascript-module",
34514
+ "path": "src/_config/styles/colors.ts",
34515
+ "declarations": [
34516
+ {
34517
+ "kind": "variable",
34518
+ "name": "rapidDefaultFillColor"
34519
+ },
34520
+ {
34521
+ "kind": "variable",
34522
+ "name": "rapidDefaultCardFillColor"
34523
+ },
34524
+ {
34525
+ "kind": "variable",
34526
+ "name": "rapidDefaultCardPalette"
34527
+ }
34528
+ ],
34529
+ "exports": [
34530
+ {
34531
+ "kind": "js",
34532
+ "name": "rapidDefaultFillColor",
34533
+ "declaration": {
34534
+ "name": "rapidDefaultFillColor",
34535
+ "module": "src/_config/styles/colors.ts"
34536
+ }
34537
+ },
34538
+ {
34539
+ "kind": "js",
34540
+ "name": "rapidDefaultCardFillColor",
34541
+ "declaration": {
34542
+ "name": "rapidDefaultCardFillColor",
34543
+ "module": "src/_config/styles/colors.ts"
34544
+ }
34545
+ },
34546
+ {
34547
+ "kind": "js",
34548
+ "name": "rapidDefaultCardPalette",
34549
+ "declaration": {
34550
+ "name": "rapidDefaultCardPalette",
34551
+ "module": "src/_config/styles/colors.ts"
34552
+ }
34553
+ }
34554
+ ]
34555
+ },
34556
+ {
34557
+ "kind": "javascript-module",
34558
+ "path": "src/_config/styles/index.ts",
34559
+ "declarations": [],
34560
+ "exports": [
34561
+ {
34562
+ "kind": "js",
34563
+ "name": "*",
34564
+ "declaration": {
34565
+ "name": "*",
34566
+ "package": "./colors"
34567
+ }
34568
+ },
34569
+ {
34570
+ "kind": "js",
34571
+ "name": "*",
34572
+ "declaration": {
34573
+ "name": "*",
34574
+ "package": "./external/roboto-font"
34575
+ }
34576
+ }
34577
+ ]
34578
+ },
34504
34579
  {
34505
34580
  "kind": "javascript-module",
34506
34581
  "path": "src/_config/tokens/custom.ts",
@@ -37206,6 +37281,83 @@
37206
37281
  }
37207
37282
  }
37208
37283
  ]
37284
+ },
37285
+ {
37286
+ "kind": "javascript-module",
37287
+ "path": "src/_config/styles/external/roboto-font/index.ts",
37288
+ "declarations": [
37289
+ {
37290
+ "kind": "variable",
37291
+ "name": "robotoFontFaces",
37292
+ "default": "`\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n`"
37293
+ },
37294
+ {
37295
+ "kind": "function",
37296
+ "name": "loadRobotoFontFaces"
37297
+ },
37298
+ {
37299
+ "kind": "variable",
37300
+ "name": "robotoFontFamily",
37301
+ "type": {
37302
+ "text": "string"
37303
+ },
37304
+ "default": "'Roboto, \"Segoe UI\", Arial, Helvetica, sans-serif'"
37305
+ },
37306
+ {
37307
+ "kind": "function",
37308
+ "name": "mixinRobotoFont",
37309
+ "parameters": [
37310
+ {
37311
+ "name": "style",
37312
+ "default": "FontStyle.Normal",
37313
+ "type": {
37314
+ "text": "FontStyle"
37315
+ }
37316
+ },
37317
+ {
37318
+ "name": "weight",
37319
+ "default": "FontWeight.Regular",
37320
+ "type": {
37321
+ "text": "FontWeight"
37322
+ }
37323
+ }
37324
+ ]
37325
+ }
37326
+ ],
37327
+ "exports": [
37328
+ {
37329
+ "kind": "js",
37330
+ "name": "robotoFontFaces",
37331
+ "declaration": {
37332
+ "name": "robotoFontFaces",
37333
+ "module": "src/_config/styles/external/roboto-font/index.ts"
37334
+ }
37335
+ },
37336
+ {
37337
+ "kind": "js",
37338
+ "name": "loadRobotoFontFaces",
37339
+ "declaration": {
37340
+ "name": "loadRobotoFontFaces",
37341
+ "module": "src/_config/styles/external/roboto-font/index.ts"
37342
+ }
37343
+ },
37344
+ {
37345
+ "kind": "js",
37346
+ "name": "robotoFontFamily",
37347
+ "declaration": {
37348
+ "name": "robotoFontFamily",
37349
+ "module": "src/_config/styles/external/roboto-font/index.ts"
37350
+ }
37351
+ },
37352
+ {
37353
+ "kind": "js",
37354
+ "name": "mixinRobotoFont",
37355
+ "declaration": {
37356
+ "name": "mixinRobotoFont",
37357
+ "module": "src/_config/styles/external/roboto-font/index.ts"
37358
+ }
37359
+ }
37360
+ ]
37209
37361
  }
37210
37362
  ]
37211
37363
  }
@@ -6,6 +6,28 @@ export declare enum ColorHEX {
6
6
  warning = "#FFB660",
7
7
  info = "#11C9FC",
8
8
  buy = "#7ACC79",
9
- sell = "#F14376"
9
+ sell = "#F14376",
10
+ chartPink = "#fb8176",
11
+ longGreen = "#7acc79",
12
+ shortPink = "#f14376",
13
+ warningYellow = "#fcb35f",
14
+ green = "#44c14c",
15
+ lightGreen = "#69cd70",
16
+ red = "#ef4d28",
17
+ lightRed = "#ee6588",
18
+ dodgerBlue = "#33a9ff",
19
+ lightDodgerBlue = "#5cbaff",
20
+ violet = "#9b1e74",
21
+ lightViolet = "#b528af",
22
+ white = "#f9f9f9",
23
+ silver = "#c1c1c1",
24
+ salomie = "#ffdf94",
25
+ lightSalomie = "#ccb276",
26
+ melon = "#ffbbb2",
27
+ lightMelon = "#cc968e",
28
+ portage = "#8a99f5",
29
+ lightPortage = "#adb8f8",
30
+ ice = "#97f4eb",
31
+ lightIce = "#6befe2"
10
32
  }
11
33
  //# sourceMappingURL=color.hex.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"color.hex.d.ts","sourceRoot":"","sources":["../../../src/_common/color.hex.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,YAAY;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,YAAY;IAChB,GAAG,YAAY;IACf,IAAI,YAAY;CACjB"}
1
+ {"version":3,"file":"color.hex.d.ts","sourceRoot":"","sources":["../../../src/_common/color.hex.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,YAAY;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,YAAY;IAChB,GAAG,YAAY;IACf,IAAI,YAAY;IAEhB,SAAS,YAAY;IACrB,SAAS,YAAY;IACrB,SAAS,YAAY;IACrB,aAAa,YAAY;IACzB,KAAK,YAAY;IACjB,UAAU,YAAY;IACtB,GAAG,YAAY;IACf,QAAQ,YAAY;IACpB,UAAU,YAAY;IACtB,eAAe,YAAY;IAC3B,MAAM,YAAY;IAClB,WAAW,YAAY;IACvB,KAAK,YAAY;IACjB,MAAM,YAAY;IAClB,OAAO,YAAY;IACnB,YAAY,YAAY;IACxB,KAAK,YAAY;IACjB,UAAU,YAAY;IACtB,OAAO,YAAY;IACnB,YAAY,YAAY;IACxB,GAAG,YAAY;IACf,QAAQ,YAAY;CACrB"}
@@ -1,3 +1,4 @@
1
+ export * from './styles';
1
2
  export * from './tokens';
2
3
  export * from './values';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/_config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { PaletteRGB, SwatchRGB } from '@microsoft/fast-components';
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const rapidBGColorHEX = "#585858";
6
+ export declare const rapidDefaultFillColor: SwatchRGB;
7
+ export declare const rapidDefaultCardFillColor: SwatchRGB;
8
+ export declare const rapidDefaultCardPalette: PaletteRGB;
9
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/_config/styles/colors.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,eAAe,YAAY,CAAC;AAEzC,eAAO,MAAM,qBAAqB,WAIjC,CAAC;AAMF,eAAO,MAAM,yBAAyB,WAIrC,CAAC;AACF,eAAO,MAAM,uBAAuB,YAA6C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FontStyle, FontWeight } from '@genesislcap/foundation-utils';
2
+ export declare const robotoFontFaces = "\n @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')\n";
3
+ export declare const loadRobotoFontFaces: () => void;
4
+ export declare const robotoFontFamily = "Roboto, \"Segoe UI\", Arial, Helvetica, sans-serif";
5
+ export declare const mixinRobotoFont: (style?: FontStyle, weight?: FontWeight) => string;
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/_config/styles/external/roboto-font/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,UAAU,EAA+B,MAAM,+BAA+B,CAAC;AAEnG,eAAO,MAAM,eAAe,wKAE3B,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAE/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,uDAAqD,CAAC;AAEnF,eAAO,MAAM,eAAe,WACnB,SAAS,WACR,UAAU,WAC8B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './colors';
2
+ export * from './external/roboto-font';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/_config/styles/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"dialog.styles.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,iDAgF7B,CAAC"}
1
+ {"version":3,"file":"dialog.styles.d.ts","sourceRoot":"","sources":["../../../src/dialog/dialog.styles.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,iBAAiB,iDA8E7B,CAAC"}
@@ -8,4 +8,27 @@ export var ColorHEX;
8
8
  ColorHEX["info"] = "#11C9FC";
9
9
  ColorHEX["buy"] = "#7ACC79";
10
10
  ColorHEX["sell"] = "#F14376";
11
+ // others
12
+ ColorHEX["chartPink"] = "#fb8176";
13
+ ColorHEX["longGreen"] = "#7acc79";
14
+ ColorHEX["shortPink"] = "#f14376";
15
+ ColorHEX["warningYellow"] = "#fcb35f";
16
+ ColorHEX["green"] = "#44c14c";
17
+ ColorHEX["lightGreen"] = "#69cd70";
18
+ ColorHEX["red"] = "#ef4d28";
19
+ ColorHEX["lightRed"] = "#ee6588";
20
+ ColorHEX["dodgerBlue"] = "#33a9ff";
21
+ ColorHEX["lightDodgerBlue"] = "#5cbaff";
22
+ ColorHEX["violet"] = "#9b1e74";
23
+ ColorHEX["lightViolet"] = "#b528af";
24
+ ColorHEX["white"] = "#f9f9f9";
25
+ ColorHEX["silver"] = "#c1c1c1";
26
+ ColorHEX["salomie"] = "#ffdf94";
27
+ ColorHEX["lightSalomie"] = "#ccb276";
28
+ ColorHEX["melon"] = "#ffbbb2";
29
+ ColorHEX["lightMelon"] = "#cc968e";
30
+ ColorHEX["portage"] = "#8a99f5";
31
+ ColorHEX["lightPortage"] = "#adb8f8";
32
+ ColorHEX["ice"] = "#97f4eb";
33
+ ColorHEX["lightIce"] = "#6befe2";
11
34
  })(ColorHEX || (ColorHEX = {}));
@@ -1,2 +1,3 @@
1
+ export * from './styles';
1
2
  export * from './tokens';
2
3
  export * from './values';
@@ -0,0 +1,14 @@
1
+ import { parseColorHexRGB } from '@microsoft/fast-colors';
2
+ import { PaletteRGB, SwatchRGB } from '@microsoft/fast-components';
3
+ /**
4
+ * @internal
5
+ */
6
+ export const rapidBGColorHEX = '#585858';
7
+ const rapidBGColor = parseColorHexRGB(rapidBGColorHEX);
8
+ export const rapidDefaultFillColor = SwatchRGB.create(rapidBGColor.r, rapidBGColor.g, rapidBGColor.b);
9
+ /**
10
+ * @internal
11
+ */
12
+ const rapidCardBGColor = parseColorHexRGB('#202126');
13
+ export const rapidDefaultCardFillColor = SwatchRGB.create(rapidCardBGColor.r, rapidCardBGColor.g, rapidCardBGColor.b);
14
+ export const rapidDefaultCardPalette = PaletteRGB.from(rapidDefaultCardFillColor);
@@ -0,0 +1,9 @@
1
+ import { FontStyle, FontWeight, getFontMixin, loadFontFaces } from '@genesislcap/foundation-utils';
2
+ export const robotoFontFaces = `
3
+ @import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap')
4
+ `;
5
+ export const loadRobotoFontFaces = () => {
6
+ loadFontFaces(robotoFontFaces, 'roboto-font-faces');
7
+ };
8
+ export const robotoFontFamily = 'Roboto, "Segoe UI", Arial, Helvetica, sans-serif';
9
+ export const mixinRobotoFont = (style = FontStyle.Normal, weight = FontWeight.Regular) => getFontMixin(robotoFontFamily, style, weight);
@@ -0,0 +1,2 @@
1
+ export * from './colors';
2
+ export * from './external/roboto-font';
@@ -4,8 +4,6 @@ import { css } from '@microsoft/fast-element';
4
4
  export const rapidDialogStyles = css `
5
5
  ${foundationDialogStyles}
6
6
  :host {
7
- --color-error: var(--error-color);
8
- --color-success: var(--success-color);
9
7
  --dialog-background: ${neutralLayer2};
10
8
 
11
9
  font-family: var(--body-font);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/rapid-design-system",
3
3
  "description": "Rapid Design System",
4
- "version": "14.213.0",
4
+ "version": "14.214.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -37,12 +37,12 @@
37
37
  },
38
38
  "devDependencies": {
39
39
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^5.0.3",
40
- "@genesislcap/genx": "14.213.0",
41
- "@genesislcap/rollup-builder": "14.213.0",
42
- "@genesislcap/ts-builder": "14.213.0",
43
- "@genesislcap/uvu-playwright-builder": "14.213.0",
44
- "@genesislcap/vite-builder": "14.213.0",
45
- "@genesislcap/webpack-builder": "14.213.0",
40
+ "@genesislcap/genx": "14.214.0",
41
+ "@genesislcap/rollup-builder": "14.214.0",
42
+ "@genesislcap/ts-builder": "14.214.0",
43
+ "@genesislcap/uvu-playwright-builder": "14.214.0",
44
+ "@genesislcap/vite-builder": "14.214.0",
45
+ "@genesislcap/webpack-builder": "14.214.0",
46
46
  "@storybook/addon-coverage": "^1.0.1",
47
47
  "@storybook/addon-essentials": "^8.0.0",
48
48
  "@storybook/addon-links": "^8.0.0",
@@ -60,8 +60,9 @@
60
60
  "storybook": "^8.0.0"
61
61
  },
62
62
  "dependencies": {
63
- "@genesislcap/foundation-logger": "14.213.0",
64
- "@genesislcap/foundation-ui": "14.213.0",
63
+ "@genesislcap/foundation-logger": "14.214.0",
64
+ "@genesislcap/foundation-ui": "14.214.0",
65
+ "@genesislcap/foundation-utils": "14.214.0",
65
66
  "@microsoft/fast-colors": "^5.3.1",
66
67
  "@microsoft/fast-components": "^2.30.6",
67
68
  "@microsoft/fast-element": "^1.12.0",
@@ -79,5 +80,5 @@
79
80
  "access": "public"
80
81
  },
81
82
  "customElements": "dist/custom-elements.json",
82
- "gitHead": "70f38494437517fe4ccfca280abbed212b72a809"
83
+ "gitHead": "12de0640c63d111cb448bd3204a9d2133afb9c49"
83
84
  }