@genesislcap/rapid-design-system 14.227.4-RPT-42.1 → 14.228.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.
@@ -18577,6 +18577,13 @@
18577
18577
  "text": "StoryObj"
18578
18578
  }
18579
18579
  },
18580
+ {
18581
+ "kind": "variable",
18582
+ "name": "OptionsWithCustomStyling",
18583
+ "type": {
18584
+ "text": "StoryObj"
18585
+ }
18586
+ },
18580
18587
  {
18581
18588
  "kind": "variable",
18582
18589
  "name": "AutoPosition",
@@ -18640,6 +18647,14 @@
18640
18647
  "module": "src/multiselect/multiselect.stories.ts"
18641
18648
  }
18642
18649
  },
18650
+ {
18651
+ "kind": "js",
18652
+ "name": "OptionsWithCustomStyling",
18653
+ "declaration": {
18654
+ "name": "OptionsWithCustomStyling",
18655
+ "module": "src/multiselect/multiselect.stories.ts"
18656
+ }
18657
+ },
18643
18658
  {
18644
18659
  "kind": "js",
18645
18660
  "name": "AutoPosition",
@@ -4,6 +4,7 @@ export default meta;
4
4
  export declare const Primary: StoryObj;
5
5
  export declare const Disabled: StoryObj;
6
6
  export declare const DisabledOptions: StoryObj;
7
+ export declare const OptionsWithCustomStyling: StoryObj;
7
8
  export declare const AutoPosition: StoryObj;
8
9
  export declare const Creatable: StoryObj;
9
10
  export declare const ContainsSearch: StoryObj;
@@ -1 +1 @@
1
- {"version":3,"file":"multiselect.stories.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.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;AAmKpB,eAAO,MAAM,OAAO,EAAE,QAA6C,CAAC;AACpE,eAAO,MAAM,QAAQ,EAAE,QAA0D,CAAC;AAElF,eAAO,MAAM,eAAe,EAAE,QAG5B,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,QAKzB,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,QAMtB,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,QAG3B,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,QAoBxB,CAAC"}
1
+ {"version":3,"file":"multiselect.stories.d.ts","sourceRoot":"","sources":["../../../src/multiselect/multiselect.stories.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAGhE,QAAA,MAAM,IAAI,EAAE,IAGX,CAAC;AACF,eAAe,IAAI,CAAC;AAiLpB,eAAO,MAAM,OAAO,EAAE,QAA6C,CAAC;AACpE,eAAO,MAAM,QAAQ,EAAE,QAA0D,CAAC;AAElF,eAAO,MAAM,eAAe,EAAE,QAG5B,CAAC;AAEH,eAAO,MAAM,wBAAwB,EAAE,QAQrC,CAAC;AAEH,eAAO,MAAM,YAAY,EAAE,QAKzB,CAAC;AAEH,eAAO,MAAM,SAAS,EAAE,QAMtB,CAAC;AAEH,eAAO,MAAM,cAAc,EAAE,QAG3B,CAAC;AAEH,eAAO,MAAM,UAAU,EAAE,QAoBxB,CAAC"}
@@ -126,6 +126,20 @@ const disabledCountriesExample = [
126
126
  const makeStory = (args) => ({
127
127
  render: ({ name, text, countries, search, disabled, creatable, autoPosition, position, filterByContains, }) => html `
128
128
  <div style="min-height: 400px;">
129
+ <style>
130
+ rapid-multiselect::part(option-label)::after {
131
+ background-color: var(--accent-fill-rest);
132
+ border-radius: calc((var(--control-corner-radius) + 1) * 1px);
133
+ color: #fff;
134
+ content: attr(data-option-label-text);
135
+ font-size: var(--type-ramp-minus-2-font-size);
136
+ padding: calc((var(--design-unit) - 2) * 1px) calc(var(--design-unit) * 2px);
137
+ position: absolute;
138
+ right: 0;
139
+ transform: translateX(-6px);
140
+ white-space: nowrap;
141
+ }
142
+ </style>
129
143
  <rapid-multiselect
130
144
  name="${name}"
131
145
  .options="${countries}"
@@ -148,6 +162,10 @@ export const DisabledOptions = makeStory({
148
162
  text: 'Disabled Options',
149
163
  countries: disabledCountriesExample,
150
164
  });
165
+ export const OptionsWithCustomStyling = makeStory({
166
+ text: 'Options with custom styling',
167
+ countries: disabledCountriesExample.map((opt) => (Object.assign(Object.assign({}, (typeof opt === 'string' ? { value: opt, label: opt } : opt)), { optionLabelText: 'bubble' }))),
168
+ });
151
169
  export const AutoPosition = makeStory({
152
170
  text: 'Disabled Auto Position',
153
171
  countries: disabledCountriesExample,
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.227.4-RPT-42.1",
4
+ "version": "14.228.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.227.4-RPT-42.1",
41
- "@genesislcap/rollup-builder": "14.227.4-RPT-42.1",
42
- "@genesislcap/ts-builder": "14.227.4-RPT-42.1",
43
- "@genesislcap/uvu-playwright-builder": "14.227.4-RPT-42.1",
44
- "@genesislcap/vite-builder": "14.227.4-RPT-42.1",
45
- "@genesislcap/webpack-builder": "14.227.4-RPT-42.1",
40
+ "@genesislcap/genx": "14.228.0",
41
+ "@genesislcap/rollup-builder": "14.228.0",
42
+ "@genesislcap/ts-builder": "14.228.0",
43
+ "@genesislcap/uvu-playwright-builder": "14.228.0",
44
+ "@genesislcap/vite-builder": "14.228.0",
45
+ "@genesislcap/webpack-builder": "14.228.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,9 +60,9 @@
60
60
  "storybook": "^8.0.0"
61
61
  },
62
62
  "dependencies": {
63
- "@genesislcap/foundation-logger": "14.227.4-RPT-42.1",
64
- "@genesislcap/foundation-ui": "14.227.4-RPT-42.1",
65
- "@genesislcap/foundation-utils": "14.227.4-RPT-42.1",
63
+ "@genesislcap/foundation-logger": "14.228.0",
64
+ "@genesislcap/foundation-ui": "14.228.0",
65
+ "@genesislcap/foundation-utils": "14.228.0",
66
66
  "@microsoft/fast-colors": "5.3.1",
67
67
  "@microsoft/fast-components": "2.30.6",
68
68
  "@microsoft/fast-element": "1.14.0",
@@ -80,5 +80,5 @@
80
80
  "access": "public"
81
81
  },
82
82
  "customElements": "dist/custom-elements.json",
83
- "gitHead": "c26226a894fe5e41e33330c2e4f7205303b5d025"
83
+ "gitHead": "a8c87f80b2eab109ea129977bdbb803d6980da95"
84
84
  }