@genesislcap/rapid-design-system 14.162.5 → 14.163.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.
@@ -4304,13 +4304,21 @@
4304
4304
  },
4305
4305
  "default": "{\n title: 'Badge',\n component: 'rapid-badge',\n}"
4306
4306
  },
4307
+ {
4308
+ "kind": "variable",
4309
+ "name": "All",
4310
+ "type": {
4311
+ "text": "StoryObj"
4312
+ },
4313
+ "default": "{\n render: () => html`\n <div style=\"${wrapperStyle}\">\n ${repeat(\n badges,\n (item) => item,\n (item) => html`\n <rapid-badge fill=\"${item}\" color=\"text\">Rapid Badge</rapid-badge>\n `,\n )}\n </div>\n `,\n}"
4314
+ },
4307
4315
  {
4308
4316
  "kind": "variable",
4309
4317
  "name": "Primary",
4310
4318
  "type": {
4311
4319
  "text": "StoryObj"
4312
4320
  },
4313
- "default": "{\n args: {\n fill: 'primary',\n badgeText: 'Rapid Badge',\n badgeText2: '12',\n },\n argTypes: {\n fill: {\n control: 'select',\n options: ['primary', 'neutral'],\n },\n },\n render: ({ fill, badgeText, badgeText2 }) => html`\n <div style=\"${wrapperStyle}\">\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText}</rapid-badge>\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText2}</rapid-badge>\n </div>\n `,\n}"
4321
+ "default": "{\n args: {\n fill: 'primary',\n badgeText: 'Rapid Badge',\n badgeText2: '12',\n },\n argTypes: {\n fill: {\n control: 'select',\n options: badges,\n },\n },\n render: ({ fill, badgeText, badgeText2 }) => html`\n <div style=\"${wrapperStyle}\">\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText}</rapid-badge>\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText2}</rapid-badge>\n </div>\n `,\n}"
4314
4322
  },
4315
4323
  {
4316
4324
  "kind": "variable",
@@ -4318,7 +4326,7 @@
4318
4326
  "type": {
4319
4327
  "text": "StoryObj"
4320
4328
  },
4321
- "default": "{\n args: {\n fill: 'neutral',\n badgeText: 'Rapid Badge',\n badgeText2: '12',\n },\n argTypes: {\n fill: {\n control: 'select',\n options: ['primary', 'neutral'],\n },\n },\n render: ({ fill, badgeText, badgeText2 }) => html`\n <div style=\"${wrapperStyle}\">\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText}</rapid-badge>\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText2}</rapid-badge>\n </div>\n `,\n}"
4329
+ "default": "{\n args: {\n fill: 'neutral',\n badgeText: 'Rapid Badge',\n badgeText2: '12',\n },\n argTypes: {\n fill: {\n control: 'select',\n options: badges,\n },\n },\n render: ({ fill, badgeText, badgeText2 }) => html`\n <div style=\"${wrapperStyle}\">\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText}</rapid-badge>\n <rapid-badge fill=\"${fill}\" color=\"text\">${badgeText2}</rapid-badge>\n </div>\n `,\n}"
4322
4330
  }
4323
4331
  ],
4324
4332
  "exports": [
@@ -4330,6 +4338,14 @@
4330
4338
  "module": "src/badge/badge.stories.ts"
4331
4339
  }
4332
4340
  },
4341
+ {
4342
+ "kind": "js",
4343
+ "name": "All",
4344
+ "declaration": {
4345
+ "name": "All",
4346
+ "module": "src/badge/badge.stories.ts"
4347
+ }
4348
+ },
4333
4349
  {
4334
4350
  "kind": "js",
4335
4351
  "name": "Primary",
@@ -35375,7 +35391,7 @@
35375
35391
  "type": {
35376
35392
  "text": "string"
35377
35393
  },
35378
- "default": "'12px'"
35394
+ "default": "'13px'"
35379
35395
  },
35380
35396
  {
35381
35397
  "kind": "variable",
@@ -35383,7 +35399,7 @@
35383
35399
  "type": {
35384
35400
  "text": "string"
35385
35401
  },
35386
- "default": "'16px'"
35402
+ "default": "'19px'"
35387
35403
  },
35388
35404
  {
35389
35405
  "kind": "variable",
@@ -35391,7 +35407,7 @@
35391
35407
  "type": {
35392
35408
  "text": "string"
35393
35409
  },
35394
- "default": "'10px'"
35410
+ "default": "'12px'"
35395
35411
  },
35396
35412
  {
35397
35413
  "kind": "variable",
@@ -35399,7 +35415,7 @@
35399
35415
  "type": {
35400
35416
  "text": "string"
35401
35417
  },
35402
- "default": "'16px'"
35418
+ "default": "'18px'"
35403
35419
  },
35404
35420
  {
35405
35421
  "kind": "variable",
@@ -35407,7 +35423,7 @@
35407
35423
  "type": {
35408
35424
  "text": "string"
35409
35425
  },
35410
- "default": "'16px'"
35426
+ "default": "'15px'"
35411
35427
  },
35412
35428
  {
35413
35429
  "kind": "variable",
@@ -35415,7 +35431,7 @@
35415
35431
  "type": {
35416
35432
  "text": "string"
35417
35433
  },
35418
- "default": "'24px'"
35434
+ "default": "'21px'"
35419
35435
  },
35420
35436
  {
35421
35437
  "kind": "variable",
@@ -35423,7 +35439,7 @@
35423
35439
  "type": {
35424
35440
  "text": "string"
35425
35441
  },
35426
- "default": "'20px'"
35442
+ "default": "'16px'"
35427
35443
  },
35428
35444
  {
35429
35445
  "kind": "variable",
@@ -35431,7 +35447,7 @@
35431
35447
  "type": {
35432
35448
  "text": "string"
35433
35449
  },
35434
- "default": "'28px'"
35450
+ "default": "'22px'"
35435
35451
  },
35436
35452
  {
35437
35453
  "kind": "variable",
@@ -35439,7 +35455,7 @@
35439
35455
  "type": {
35440
35456
  "text": "string"
35441
35457
  },
35442
- "default": "'28px'"
35458
+ "default": "'17px'"
35443
35459
  },
35444
35460
  {
35445
35461
  "kind": "variable",
@@ -35447,7 +35463,7 @@
35447
35463
  "type": {
35448
35464
  "text": "string"
35449
35465
  },
35450
- "default": "'36px'"
35466
+ "default": "'23px'"
35451
35467
  },
35452
35468
  {
35453
35469
  "kind": "variable",
@@ -35455,7 +35471,7 @@
35455
35471
  "type": {
35456
35472
  "text": "string"
35457
35473
  },
35458
- "default": "'34px'"
35474
+ "default": "'18x'"
35459
35475
  },
35460
35476
  {
35461
35477
  "kind": "variable",
@@ -35463,7 +35479,7 @@
35463
35479
  "type": {
35464
35480
  "text": "string"
35465
35481
  },
35466
- "default": "'44px'"
35482
+ "default": "'24px'"
35467
35483
  },
35468
35484
  {
35469
35485
  "kind": "variable",
@@ -35471,7 +35487,7 @@
35471
35487
  "type": {
35472
35488
  "text": "string"
35473
35489
  },
35474
- "default": "'46px'"
35490
+ "default": "'19px'"
35475
35491
  },
35476
35492
  {
35477
35493
  "kind": "variable",
@@ -35479,7 +35495,7 @@
35479
35495
  "type": {
35480
35496
  "text": "string"
35481
35497
  },
35482
- "default": "'56px'"
35498
+ "default": "'25px'"
35483
35499
  },
35484
35500
  {
35485
35501
  "kind": "variable",
@@ -35487,7 +35503,7 @@
35487
35503
  "type": {
35488
35504
  "text": "string"
35489
35505
  },
35490
- "default": "'60px'"
35506
+ "default": "'20px'"
35491
35507
  },
35492
35508
  {
35493
35509
  "kind": "variable",
@@ -35495,7 +35511,7 @@
35495
35511
  "type": {
35496
35512
  "text": "string"
35497
35513
  },
35498
- "default": "'72px'"
35514
+ "default": "'26px'"
35499
35515
  }
35500
35516
  ],
35501
35517
  "exports": [
@@ -1,20 +1,20 @@
1
1
  export declare const bodyFontValue = "\"Segoe UI\", Arial, Helvetica, sans-serif";
2
2
  export declare const typeRampBaseFontSizeValue = "14px";
3
3
  export declare const typeRampBaseLineHeightValue = "20px";
4
- export declare const typeRampMinus1FontSizeValue = "12px";
5
- export declare const typeRampMinus1LineHeightValue = "16px";
6
- export declare const typeRampMinus2FontSizeValue = "10px";
7
- export declare const typeRampMinus2LineHeightValue = "16px";
8
- export declare const typeRampPlus1FontSizeValue = "16px";
9
- export declare const typeRampPlus1LineHeightValue = "24px";
10
- export declare const typeRampPlus2FontSizeValue = "20px";
11
- export declare const typeRampPlus2LineHeightValue = "28px";
12
- export declare const typeRampPlus3FontSizeValue = "28px";
13
- export declare const typeRampPlus3LineHeightValue = "36px";
14
- export declare const typeRampPlus4FontSizeValue = "34px";
15
- export declare const typeRampPlus4LineHeightValue = "44px";
16
- export declare const typeRampPlus5FontSizeValue = "46px";
17
- export declare const typeRampPlus5LineHeightValue = "56px";
18
- export declare const typeRampPlus6FontSizeValue = "60px";
19
- export declare const typeRampPlus6LineHeightValue = "72px";
4
+ export declare const typeRampMinus1FontSizeValue = "13px";
5
+ export declare const typeRampMinus1LineHeightValue = "19px";
6
+ export declare const typeRampMinus2FontSizeValue = "12px";
7
+ export declare const typeRampMinus2LineHeightValue = "18px";
8
+ export declare const typeRampPlus1FontSizeValue = "15px";
9
+ export declare const typeRampPlus1LineHeightValue = "21px";
10
+ export declare const typeRampPlus2FontSizeValue = "16px";
11
+ export declare const typeRampPlus2LineHeightValue = "22px";
12
+ export declare const typeRampPlus3FontSizeValue = "17px";
13
+ export declare const typeRampPlus3LineHeightValue = "23px";
14
+ export declare const typeRampPlus4FontSizeValue = "18x";
15
+ export declare const typeRampPlus4LineHeightValue = "24px";
16
+ export declare const typeRampPlus5FontSizeValue = "19px";
17
+ export declare const typeRampPlus5LineHeightValue = "25px";
18
+ export declare const typeRampPlus6FontSizeValue = "20px";
19
+ export declare const typeRampPlus6LineHeightValue = "26px";
20
20
  //# sourceMappingURL=typography.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/_config/values/typography.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+CAA6C,CAAC;AACxE,eAAO,MAAM,yBAAyB,SAAS,CAAC;AAChD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC"}
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../../../src/_config/values/typography.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+CAA6C,CAAC;AACxE,eAAO,MAAM,yBAAyB,SAAS,CAAC;AAChD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,2BAA2B,SAAS,CAAC;AAClD,eAAO,MAAM,6BAA6B,SAAS,CAAC;AACpD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,QAAQ,CAAC;AAChD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC;AACnD,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,4BAA4B,SAAS,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import type { Meta, StoryObj } from '@storybook/web-components';
2
2
  declare const meta: Meta;
3
3
  export default meta;
4
+ export declare const All: StoryObj;
4
5
  export declare const Primary: StoryObj;
5
6
  export declare const Neutral: StoryObj;
6
7
  //# sourceMappingURL=badge.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"badge.stories.d.ts","sourceRoot":"","sources":["../../../src/badge/badge.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAIpB,eAAO,MAAM,OAAO,EAAE,QAkBrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAkBrB,CAAC"}
1
+ {"version":3,"file":"badge.stories.d.ts","sourceRoot":"","sources":["../../../src/badge/badge.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAMpB,eAAO,MAAM,GAAG,EAAE,QAYjB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAkBrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,QAkBrB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../src/badge/badge.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,gBAAgB,YAClB,wBAAwB,cACrB,2BAA2B,KACtC,aAcF,CAAC"}
1
+ {"version":3,"file":"badge.styles.d.ts","sourceRoot":"","sources":["../../../src/badge/badge.styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAO,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,4BAA4B,CAAC;AAEpC,eAAO,MAAM,gBAAgB,YAClB,wBAAwB,cACrB,2BAA2B,KACtC,aAoBF,CAAC"}
@@ -1,19 +1,19 @@
1
1
  export const bodyFontValue = '"Segoe UI", Arial, Helvetica, sans-serif';
2
2
  export const typeRampBaseFontSizeValue = '14px';
3
3
  export const typeRampBaseLineHeightValue = '20px';
4
- export const typeRampMinus1FontSizeValue = '12px';
5
- export const typeRampMinus1LineHeightValue = '16px';
6
- export const typeRampMinus2FontSizeValue = '10px';
7
- export const typeRampMinus2LineHeightValue = '16px';
8
- export const typeRampPlus1FontSizeValue = '16px';
9
- export const typeRampPlus1LineHeightValue = '24px';
10
- export const typeRampPlus2FontSizeValue = '20px';
11
- export const typeRampPlus2LineHeightValue = '28px';
12
- export const typeRampPlus3FontSizeValue = '28px';
13
- export const typeRampPlus3LineHeightValue = '36px';
14
- export const typeRampPlus4FontSizeValue = '34px';
15
- export const typeRampPlus4LineHeightValue = '44px';
16
- export const typeRampPlus5FontSizeValue = '46px';
17
- export const typeRampPlus5LineHeightValue = '56px';
18
- export const typeRampPlus6FontSizeValue = '60px';
19
- export const typeRampPlus6LineHeightValue = '72px';
4
+ export const typeRampMinus1FontSizeValue = '13px';
5
+ export const typeRampMinus1LineHeightValue = '19px';
6
+ export const typeRampMinus2FontSizeValue = '12px';
7
+ export const typeRampMinus2LineHeightValue = '18px';
8
+ export const typeRampPlus1FontSizeValue = '15px';
9
+ export const typeRampPlus1LineHeightValue = '21px';
10
+ export const typeRampPlus2FontSizeValue = '16px';
11
+ export const typeRampPlus2LineHeightValue = '22px';
12
+ export const typeRampPlus3FontSizeValue = '17px';
13
+ export const typeRampPlus3LineHeightValue = '23px';
14
+ export const typeRampPlus4FontSizeValue = '18x';
15
+ export const typeRampPlus4LineHeightValue = '24px';
16
+ export const typeRampPlus5FontSizeValue = '19px';
17
+ export const typeRampPlus5LineHeightValue = '25px';
18
+ export const typeRampPlus6FontSizeValue = '20px';
19
+ export const typeRampPlus6LineHeightValue = '26px';
@@ -1,10 +1,21 @@
1
1
  import { html } from 'lit-html';
2
+ import { repeat } from 'lit-html/directives/repeat.js';
2
3
  const meta = {
3
4
  title: 'Badge',
4
5
  component: 'rapid-badge',
5
6
  };
6
7
  export default meta;
8
+ const badges = ['primary', 'neutral', 'warning', 'danger', 'success', 'sell', 'buy'];
7
9
  const wrapperStyle = 'display: flex; justify-content: center; gap: 16px;';
10
+ export const All = {
11
+ render: () => html `
12
+ <div style="${wrapperStyle}">
13
+ ${repeat(badges, (item) => item, (item) => html `
14
+ <rapid-badge fill="${item}" color="text">Rapid Badge</rapid-badge>
15
+ `)}
16
+ </div>
17
+ `,
18
+ };
8
19
  export const Primary = {
9
20
  args: {
10
21
  fill: 'primary',
@@ -14,7 +25,7 @@ export const Primary = {
14
25
  argTypes: {
15
26
  fill: {
16
27
  control: 'select',
17
- options: ['primary', 'neutral'],
28
+ options: badges,
18
29
  },
19
30
  },
20
31
  render: ({ fill, badgeText, badgeText2 }) => html `
@@ -33,7 +44,7 @@ export const Neutral = {
33
44
  argTypes: {
34
45
  fill: {
35
46
  control: 'select',
36
- options: ['primary', 'neutral'],
47
+ options: badges,
37
48
  },
38
49
  },
39
50
  render: ({ fill, badgeText, badgeText2 }) => html `
@@ -6,6 +6,12 @@ export const rapidBadgeStyles = (context, definition) => css `
6
6
  :host {
7
7
  --badge-fill-primary: var(--accent-fill-rest);
8
8
  --badge-fill-neutral: var(--neutral-fill-rest);
9
+ --badge-fill-success: var(--success-color);
10
+ --badge-fill-danger: var(--error-color);
11
+ --badge-fill-warning: var(--warning-color);
12
+ --badge-fill-buy: var(--buy-color);
13
+ --badge-fill-sell: var(--sell-color);
14
+
9
15
  --badge-color-text: var(--neutral-foreground-rest);
10
16
 
11
17
  font-size: var(--type-ramp-minus-2-font-size);
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.162.5",
4
+ "version": "14.163.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -29,12 +29,12 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@genesiscommunitysuccess/analyzer-import-alias-plugin": "^4.0.0",
32
- "@genesislcap/genx": "14.162.5",
33
- "@genesislcap/rollup-builder": "14.162.5",
34
- "@genesislcap/ts-builder": "14.162.5",
35
- "@genesislcap/uvu-playwright-builder": "14.162.5",
36
- "@genesislcap/vite-builder": "14.162.5",
37
- "@genesislcap/webpack-builder": "14.162.5",
32
+ "@genesislcap/genx": "14.163.0",
33
+ "@genesislcap/rollup-builder": "14.163.0",
34
+ "@genesislcap/ts-builder": "14.163.0",
35
+ "@genesislcap/uvu-playwright-builder": "14.163.0",
36
+ "@genesislcap/vite-builder": "14.163.0",
37
+ "@genesislcap/webpack-builder": "14.163.0",
38
38
  "@storybook/addon-coverage": "^1.0.1",
39
39
  "@storybook/addon-essentials": "^8.0.0",
40
40
  "@storybook/addon-links": "^8.0.0",
@@ -51,8 +51,8 @@
51
51
  "storybook": "^8.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@genesislcap/foundation-logger": "14.162.5",
55
- "@genesislcap/foundation-ui": "14.162.5",
54
+ "@genesislcap/foundation-logger": "14.163.0",
55
+ "@genesislcap/foundation-ui": "14.163.0",
56
56
  "@microsoft/fast-colors": "^5.3.1",
57
57
  "@microsoft/fast-components": "^2.30.6",
58
58
  "@microsoft/fast-element": "^1.12.0",
@@ -70,5 +70,5 @@
70
70
  "access": "public"
71
71
  },
72
72
  "customElements": "dist/custom-elements.json",
73
- "gitHead": "47733285b6e2d7988941967021ea4a48e9613aba"
73
+ "gitHead": "e141f8ae65838f2eb2f88f47da9d738566c2eda7"
74
74
  }