@genesislcap/rapid-design-system 14.172.1-alpha-30b1afc.0 → 14.172.2

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.
@@ -10084,7 +10084,7 @@
10084
10084
  {
10085
10085
  "kind": "variable",
10086
10086
  "name": "rapidDialogStyles",
10087
- "default": "css`\n ${foundationDialogStyles}\n :host {\n --color-error: ${ColorHEX.error};\n --color-success: ${ColorHEX.success};\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 }\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`"
10087
+ "default": "css`\n ${foundationDialogStyles}\n :host {\n --color-error: ${ColorHEX.error};\n --color-success: ${ColorHEX.success};\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 }\n\n :host slot:first-of-type {\n color: ${neutralForegroundRest};\n }\n\n ::slotted(rapid-button) {\n margin: calc(var(--design-unit) * 4px - 1px) calc(var(--design-unit) * 1px) 0;\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
10088
  }
10089
10089
  ],
10090
10090
  "exports": [
@@ -18402,7 +18402,7 @@
18402
18402
  "type": {
18403
18403
  "text": "StoryObj"
18404
18404
  },
18405
- "default": "{\n render: ({ name, text, countries, search, disabled }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n disabled=\"${disabled}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Multiselect',\n search: true,\n disabled: false,\n countries: countriesList,\n autoPosition: true,\n },\n}"
18405
+ "default": "{\n render: ({ name, text, countries, search, disabled, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n disabled=\"${disabled}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Multiselect',\n search: true,\n disabled: false,\n countries: countriesList,\n autoPosition: true,\n creatable: false,\n },\n}"
18406
18406
  },
18407
18407
  {
18408
18408
  "kind": "variable",
@@ -18410,7 +18410,7 @@
18410
18410
  "type": {
18411
18411
  "text": "StoryObj"
18412
18412
  },
18413
- "default": "{\n render: ({ name, text, countries, search, disabled }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n disabled=\"${disabled}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled',\n search: true,\n countries: countriesList,\n disabled: true,\n autoPosition: true,\n },\n}"
18413
+ "default": "{\n render: ({ name, text, countries, search, disabled, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n disabled=\"${disabled}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled',\n search: true,\n countries: countriesList,\n disabled: true,\n autoPosition: true,\n creatable: false,\n },\n}"
18414
18414
  },
18415
18415
  {
18416
18416
  "kind": "variable",
@@ -18418,7 +18418,7 @@
18418
18418
  "type": {
18419
18419
  "text": "StoryObj"
18420
18420
  },
18421
- "default": "{\n render: ({ name, text, countries, search }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect name=\"${name}\" .options=\"${countries}\" search=\"${search}\">\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled Options',\n search: true,\n countries: disabledCountriesExample,\n },\n}"
18421
+ "default": "{\n render: ({ name, text, countries, search, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled Options',\n search: true,\n countries: disabledCountriesExample,\n creatable: false,\n },\n}"
18422
18422
  },
18423
18423
  {
18424
18424
  "kind": "variable",
@@ -18426,7 +18426,15 @@
18426
18426
  "type": {
18427
18427
  "text": "StoryObj"
18428
18428
  },
18429
- "default": "{\n render: ({ name, text, countries, search, autoPosition }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n auto-position=\"${autoPosition}\"\n search=\"${search}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled Auto Position',\n search: true,\n countries: disabledCountriesExample,\n autoPosition: false,\n },\n}"
18429
+ "default": "{\n render: ({ name, text, countries, search, autoPosition, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n auto-position=\"${autoPosition}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Disabled Auto Position',\n search: true,\n countries: disabledCountriesExample,\n autoPosition: false,\n creatable: false,\n },\n}"
18430
+ },
18431
+ {
18432
+ "kind": "variable",
18433
+ "name": "Creatable",
18434
+ "type": {
18435
+ "text": "StoryObj"
18436
+ },
18437
+ "default": "{\n render: ({ name, text, countries, search, autoPosition, creatable }) => html`\n <div style=\"min-height: 400px;\">\n <rapid-multiselect\n name=\"${name}\"\n .options=\"${countries}\"\n auto-position=\"${autoPosition}\"\n search=\"${search}\"\n creatable=\"${creatable}\"\n >\n <label slot=\"label\">${text}</label>\n </rapid-multiselect>\n </div>\n `,\n args: {\n name: 'Countries',\n text: 'Creatable',\n search: true,\n countries: disabledCountriesExample,\n autoPosition: false,\n creatable: true,\n },\n}"
18430
18438
  }
18431
18439
  ],
18432
18440
  "exports": [
@@ -18469,6 +18477,14 @@
18469
18477
  "name": "AutoPosition",
18470
18478
  "module": "src/multiselect/multiselect.stories.ts"
18471
18479
  }
18480
+ },
18481
+ {
18482
+ "kind": "js",
18483
+ "name": "Creatable",
18484
+ "declaration": {
18485
+ "name": "Creatable",
18486
+ "module": "src/multiselect/multiselect.stories.ts"
18487
+ }
18472
18488
  }
18473
18489
  ]
18474
18490
  },
@@ -18653,6 +18669,18 @@
18653
18669
  "module": "src/multiselect/multiselect.ts"
18654
18670
  }
18655
18671
  },
18672
+ {
18673
+ "kind": "field",
18674
+ "name": "creatable",
18675
+ "type": {
18676
+ "text": "boolean"
18677
+ },
18678
+ "default": "false",
18679
+ "inheritedFrom": {
18680
+ "name": "Multiselect",
18681
+ "module": "src/multiselect/multiselect.ts"
18682
+ }
18683
+ },
18656
18684
  {
18657
18685
  "kind": "field",
18658
18686
  "name": "async",
@@ -18751,6 +18779,7 @@
18751
18779
  "type": {
18752
18780
  "text": "string"
18753
18781
  },
18782
+ "default": "''",
18754
18783
  "inheritedFrom": {
18755
18784
  "name": "Multiselect",
18756
18785
  "module": "src/multiselect/multiselect.ts"
@@ -19022,6 +19051,15 @@
19022
19051
  "module": "src/multiselect/multiselect.ts"
19023
19052
  }
19024
19053
  },
19054
+ {
19055
+ "kind": "field",
19056
+ "name": "showCreatable",
19057
+ "readonly": true,
19058
+ "inheritedFrom": {
19059
+ "name": "Multiselect",
19060
+ "module": "src/multiselect/multiselect.ts"
19061
+ }
19062
+ },
19025
19063
  {
19026
19064
  "kind": "method",
19027
19065
  "name": "isOptionSelected",
@@ -19083,6 +19121,14 @@
19083
19121
  "module": "src/multiselect/multiselect.ts"
19084
19122
  }
19085
19123
  },
19124
+ {
19125
+ "kind": "method",
19126
+ "name": "findExactMatchOptions",
19127
+ "inheritedFrom": {
19128
+ "name": "Multiselect",
19129
+ "module": "src/multiselect/multiselect.ts"
19130
+ }
19131
+ },
19086
19132
  {
19087
19133
  "kind": "method",
19088
19134
  "name": "setFilter",
@@ -19091,6 +19137,14 @@
19091
19137
  "module": "src/multiselect/multiselect.ts"
19092
19138
  }
19093
19139
  },
19140
+ {
19141
+ "kind": "method",
19142
+ "name": "addOption",
19143
+ "inheritedFrom": {
19144
+ "name": "Multiselect",
19145
+ "module": "src/multiselect/multiselect.ts"
19146
+ }
19147
+ },
19094
19148
  {
19095
19149
  "kind": "method",
19096
19150
  "name": "asyncSetFilter",
@@ -5,4 +5,5 @@ export declare const Primary: StoryObj;
5
5
  export declare const Disabled: StoryObj;
6
6
  export declare const DisabledOptions: StoryObj;
7
7
  export declare const AutoPosition: StoryObj;
8
+ export declare const Creatable: StoryObj;
8
9
  //# sourceMappingURL=multiselect.stories.d.ts.map
@@ -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;AAqGpB,eAAO,MAAM,OAAO,EAAE,QAqBrB,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,QAqBtB,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,QAc7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAoB1B,CAAC"}
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;AAqGpB,eAAO,MAAM,OAAO,EAAE,QAuBrB,CAAC;AACF,eAAO,MAAM,QAAQ,EAAE,QAuBtB,CAAC;AACF,eAAO,MAAM,eAAe,EAAE,QAoB7B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,QAsB1B,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,QAsBvB,CAAC"}
@@ -46,7 +46,7 @@ export const rapidDialogStyles = css `
46
46
  }
47
47
 
48
48
  ::slotted(rapid-button) {
49
- margin-top: calc(var(--design-unit) * 4px - 1px);
49
+ margin: calc(var(--design-unit) * 4px - 1px) calc(var(--design-unit) * 1px) 0;
50
50
  }
51
51
 
52
52
  .content-wrapper {
@@ -102,13 +102,14 @@ const disabledCountriesExample = [
102
102
  },
103
103
  ];
104
104
  export const Primary = {
105
- render: ({ name, text, countries, search, disabled }) => html `
105
+ render: ({ name, text, countries, search, disabled, creatable }) => html `
106
106
  <div style="min-height: 400px;">
107
107
  <rapid-multiselect
108
108
  name="${name}"
109
109
  .options="${countries}"
110
110
  search="${search}"
111
111
  disabled="${disabled}"
112
+ creatable="${creatable}"
112
113
  >
113
114
  <label slot="label">${text}</label>
114
115
  </rapid-multiselect>
@@ -121,16 +122,18 @@ export const Primary = {
121
122
  disabled: false,
122
123
  countries: countriesList,
123
124
  autoPosition: true,
125
+ creatable: false,
124
126
  },
125
127
  };
126
128
  export const Disabled = {
127
- render: ({ name, text, countries, search, disabled }) => html `
129
+ render: ({ name, text, countries, search, disabled, creatable }) => html `
128
130
  <div style="min-height: 400px;">
129
131
  <rapid-multiselect
130
132
  name="${name}"
131
133
  .options="${countries}"
132
134
  search="${search}"
133
135
  disabled="${disabled}"
136
+ creatable="${creatable}"
134
137
  >
135
138
  <label slot="label">${text}</label>
136
139
  </rapid-multiselect>
@@ -143,12 +146,18 @@ export const Disabled = {
143
146
  countries: countriesList,
144
147
  disabled: true,
145
148
  autoPosition: true,
149
+ creatable: false,
146
150
  },
147
151
  };
148
152
  export const DisabledOptions = {
149
- render: ({ name, text, countries, search }) => html `
153
+ render: ({ name, text, countries, search, creatable }) => html `
150
154
  <div style="min-height: 400px;">
151
- <rapid-multiselect name="${name}" .options="${countries}" search="${search}">
155
+ <rapid-multiselect
156
+ name="${name}"
157
+ .options="${countries}"
158
+ search="${search}"
159
+ creatable="${creatable}"
160
+ >
152
161
  <label slot="label">${text}</label>
153
162
  </rapid-multiselect>
154
163
  </div>
@@ -158,16 +167,18 @@ export const DisabledOptions = {
158
167
  text: 'Disabled Options',
159
168
  search: true,
160
169
  countries: disabledCountriesExample,
170
+ creatable: false,
161
171
  },
162
172
  };
163
173
  export const AutoPosition = {
164
- render: ({ name, text, countries, search, autoPosition }) => html `
174
+ render: ({ name, text, countries, search, autoPosition, creatable }) => html `
165
175
  <div style="min-height: 400px;">
166
176
  <rapid-multiselect
167
177
  name="${name}"
168
178
  .options="${countries}"
169
179
  auto-position="${autoPosition}"
170
180
  search="${search}"
181
+ creatable="${creatable}"
171
182
  >
172
183
  <label slot="label">${text}</label>
173
184
  </rapid-multiselect>
@@ -179,5 +190,29 @@ export const AutoPosition = {
179
190
  search: true,
180
191
  countries: disabledCountriesExample,
181
192
  autoPosition: false,
193
+ creatable: false,
194
+ },
195
+ };
196
+ export const Creatable = {
197
+ render: ({ name, text, countries, search, autoPosition, creatable }) => html `
198
+ <div style="min-height: 400px;">
199
+ <rapid-multiselect
200
+ name="${name}"
201
+ .options="${countries}"
202
+ auto-position="${autoPosition}"
203
+ search="${search}"
204
+ creatable="${creatable}"
205
+ >
206
+ <label slot="label">${text}</label>
207
+ </rapid-multiselect>
208
+ </div>
209
+ `,
210
+ args: {
211
+ name: 'Countries',
212
+ text: 'Creatable',
213
+ search: true,
214
+ countries: disabledCountriesExample,
215
+ autoPosition: false,
216
+ creatable: true,
182
217
  },
183
218
  };
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.172.1-alpha-30b1afc.0",
4
+ "version": "14.172.2",
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.172.1-alpha-30b1afc.0",
33
- "@genesislcap/rollup-builder": "14.172.1-alpha-30b1afc.0",
34
- "@genesislcap/ts-builder": "14.172.1-alpha-30b1afc.0",
35
- "@genesislcap/uvu-playwright-builder": "14.172.1-alpha-30b1afc.0",
36
- "@genesislcap/vite-builder": "14.172.1-alpha-30b1afc.0",
37
- "@genesislcap/webpack-builder": "14.172.1-alpha-30b1afc.0",
32
+ "@genesislcap/genx": "14.172.2",
33
+ "@genesislcap/rollup-builder": "14.172.2",
34
+ "@genesislcap/ts-builder": "14.172.2",
35
+ "@genesislcap/uvu-playwright-builder": "14.172.2",
36
+ "@genesislcap/vite-builder": "14.172.2",
37
+ "@genesislcap/webpack-builder": "14.172.2",
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.172.1-alpha-30b1afc.0",
55
- "@genesislcap/foundation-ui": "14.172.1-alpha-30b1afc.0",
54
+ "@genesislcap/foundation-logger": "14.172.2",
55
+ "@genesislcap/foundation-ui": "14.172.2",
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": "03cac2d0ae1984bbe5f54f6792f5265fa2545476"
73
+ "gitHead": "a6749638692882168d42f082894d110a07f735fc"
74
74
  }