gd-bs 6.4.9 → 6.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gd-bs",
3
- "version": "6.4.9",
3
+ "version": "6.5.1",
4
4
  "description": "Bootstrap JavaScript, TypeScript and Web Components library.",
5
5
  "main": "build/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -209,7 +209,7 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
209
209
  let toggle = this.el.querySelector(".dropdown-toggle") as HTMLElement;
210
210
  if (toggle && this._elMenu) {
211
211
  // Set the type, based on the current dropdown type
212
- let popoverType = PopoverTypes.Light;
212
+ let popoverType = PopoverTypes.LightBorder;
213
213
  switch (this.props.type) {
214
214
  case DropdownTypes.Danger:
215
215
  case DropdownTypes.OutlineDanger:
@@ -606,4 +606,4 @@ class _Dropdown extends Base<IDropdownProps> implements IDropdown {
606
606
  this._popover ? this._popover.toggle() : null;
607
607
  }
608
608
  }
609
- export const Dropdown = (props: IDropdownProps, template?: string): IDropdown => { return new _Dropdown(props, template); }
609
+ export const Dropdown = (props: IDropdownProps, template?: string): IDropdown => { return new _Dropdown(props, template); }
@@ -238,6 +238,9 @@
238
238
  .carousel-indicators [data-bs-target] {
239
239
  background-color: var(--sp-neutral-dark, #201f1e) !important;
240
240
  }
241
+ .dropdown-divider {
242
+ border-color: var(--sp-neutral-quaternary, #d2d0ce);
243
+ }
241
244
  /* Color match dropdown hover */
242
245
  .dropdown-item:hover, .dropdown-item:focus {
243
246
  background-color: var(--sp-neutral-quaternary, #d2d0ce);
@@ -248,7 +251,10 @@
248
251
  }
249
252
  /* Dropdown Menu - Using the popover component for the menu, so we don't need to hide it by default */
250
253
  .dropdown-menu {
251
- display: inherit;
254
+ --bs-dropdown-header-color: var(--sp-info-icon, #605e5c);
255
+ --bs-dropdown-link-active-color: var(--sp-white, #ffffff);
256
+ --bs-dropdown-link-active-bg: var(--sp-theme-primary, #0078d4);
257
+ display: contents;
252
258
  }
253
259
  /* Show checkboxes & toggles as buttons */
254
260
  .form-check .form-check-input, .form-select:hover {
@@ -286,17 +292,17 @@
286
292
  color: var(--sp-neutral-tertiary, #a19f9d);
287
293
  }
288
294
  /* Fix validation styling */
289
- .form-control:invalid, .form-control.is-invalid, .form-select:invalid, .form-select.is-invalid {
295
+ .form-control.is-invalid, .form-select.is-invalid {
290
296
  --bs-control-invalid-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23a80000'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23a80000' stroke='none'/%3e%3c/svg%3e");
291
297
  }
292
- .form-control:invalid, .form-control.is-invalid {
298
+ .form-control.is-invalid {
293
299
  background-image: var(--bs-control-invalid-image);
294
300
  border-color: var(--sp-error-icon, #a80000) !important;
295
301
  }
296
- .form-control:valid, .form-control.is-valid, .form-select:valid, .form-select.is-valid {
302
+ .form-control.is-valid, .form-select.is-valid {
297
303
  --bs-control-valid-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23107c10' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
298
304
  }
299
- .form-control:valid, .form-control.is-valid {
305
+ .form-control.is-valid {
300
306
  background-image: var(--bs-control-valid-image);
301
307
  border-color: var(--sp-success-icon, #107c10) !important;
302
308
  }
@@ -315,12 +321,12 @@
315
321
  border-color: var(--sp-theme-secondary, #2b88d8);
316
322
  box-shadow: 0 0 0 0.25rem color-mix(in srgb, var(--sp-theme-tertiary, #71afe5), transparent 65%);
317
323
  }
318
- .form-select:invalid:not([multiple]):not([size]), .form-select:invalid:not([multiple])[size="1"], .form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"] {
324
+ .form-select.is-invalid:not([multiple]):not([size]), .form-select.is-invalid:not([multiple])[size="1"] {
319
325
  --bs-select-invalid-image: var(--bs-form-select-bg-img),var(--bs-control-invalid-image);
320
326
  background-image: var(--bs-select-invalid-image);
321
327
  border-color: var(--sp-error-icon, #a80000) !important;
322
328
  }
323
- .form-select:valid:not([multiple]):not([size]), .form-select:valid:not([multiple])[size="1"], .form-select.is-valid:not([multiple]):not([size]), .form-select.is-valid:not([multiple])[size="1"] {
329
+ .form-select.is-valid:not([multiple]):not([size]), .form-select.is-valid:not([multiple])[size="1"] {
324
330
  --bs-select-valid-image: var(--bs-form-select-bg-img),var(--bs-control-valid-image);
325
331
  background-image: var(--bs-select-valid-image);
326
332
  border-color: var(--sp-success-icon, #107c10) !important;
@@ -122,6 +122,7 @@
122
122
  --bs-highlight-color: var(--sp-neutral-dark);
123
123
  --bs-highlight-bg: var(--sp-neutral-quaternary-alt);
124
124
  --bs-border-color: var(--sp-neutral-quaternary);
125
+ --bs-border-color-translucent: color-mix(in srgb, var(--sp-black, #000000), transparent 82%);
125
126
  --bs-focus-ring-color: color-mix(in srgb, var(--sp-theme-primary), transparent 75%);
126
127
  --bs-form-valid-color: var(--sp-success-icon);
127
128
  --bs-form-valid-border-color: var(--sp-success-icon);
@@ -147,6 +147,9 @@
147
147
  .tippy-box[data-theme~='light-border'][data-placement^='right']>.tippy-arrow::before {
148
148
  border-right-color: var(--sp-white, #ffffff) !important;
149
149
  }
150
+ .tippy-box[data-theme~='light-border'][data-placement^='bottom']>.tippy-arrow::after {
151
+ border-bottom-color: var(--sp-neutral-quaternary, #d2d0ce) !important;
152
+ }
150
153
  .tippy-box[data-theme~='light-border'][data-placement^='top']>.tippy-arrow::after {
151
154
  border-top-color: var(--sp-neutral-quaternary, #d2d0ce) !important;
152
155
  }
@@ -186,3 +189,9 @@
186
189
  .tippy-box[data-theme~='sharepoint'][data-placement^='right']>.tippy-arrow::before {
187
190
  border-right-color: var(--sp-theme-dark, #005a9e);
188
191
  }
192
+
193
+ /* Add some padding if the Tippy content is a dropdown */
194
+ .tippy-content:has(>.dropdown-menu) {
195
+ padding-top: 0.5rem !important;
196
+ padding-bottom: 0.5rem !important;
197
+ }