@inglorious/ui 7.6.0 → 7.7.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/ui",
3
- "version": "7.6.0",
3
+ "version": "7.7.0",
4
4
  "description": "A design system for Inglorious Web with render-function components and customizable themes",
5
5
  "author": "Matteo Antony Mistretta <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -38,7 +38,6 @@
38
38
  var(--iw-button-color) 10%,
39
39
  transparent
40
40
  );
41
- color: var(--iw-button-bg);
42
41
  box-shadow: none;
43
42
  }
44
43
  }
@@ -74,7 +73,7 @@
74
73
  }
75
74
 
76
75
  &.iw-button-primary {
77
- --iw-button-color: var(--iw-color-primary-text);
76
+ --iw-button-color: var(--iw-color-primary);
78
77
  --iw-button-bg: var(--iw-color-primary);
79
78
  --iw-button-bg-hover: var(--iw-color-primary-hover);
80
79
  --iw-button-bg-active: var(--iw-color-primary-active);
@@ -33,6 +33,10 @@ export default {
33
33
  isLoading: { control: "boolean", description: "Show loading state." },
34
34
  searchTerm: { control: "text", description: "Current search filter." },
35
35
  placeholder: { control: "text", description: "Placeholder text." },
36
+ searchPlaceholder: {
37
+ control: "text",
38
+ description: "Placeholder of the search box in the panel.",
39
+ },
36
40
  noOptionsMessage: { control: "text", description: "No results message." },
37
41
  loadingMessage: { control: "text", description: "Loading message." },
38
42
  isFullWidth: {
@@ -291,12 +291,17 @@ export const Combobox = {
291
291
  * @returns {TemplateResult}
292
292
  */
293
293
  renderSearchInput(props) {
294
- const { searchTerm, isOpen, onSearchChange } = props
294
+ const {
295
+ searchTerm,
296
+ searchPlaceholder = "Search...",
297
+ isOpen,
298
+ onSearchChange,
299
+ } = props
295
300
 
296
301
  return html`<input
297
302
  class="iw-combobox-dropdown-search"
298
303
  type="text"
299
- placeholder="Search..."
304
+ placeholder=${searchPlaceholder}
300
305
  .value=${searchTerm ?? ""}
301
306
  @input=${(event) => onSearchChange?.(event.target.value)}
302
307
  @keydown=${(event) => handleKeyDown(props, event)}
@@ -29,4 +29,11 @@
29
29
 
30
30
  .iw-bottom-navigation-label {
31
31
  font-size: var(--iw-font-size-sm);
32
+ /* One line, like its neighbours: a label too long for its tab is cut short
33
+ rather than wrapping, which in languages that break between any two
34
+ characters (Japanese, Chinese) splits a word and makes the bar taller. */
35
+ max-width: 100%;
36
+ overflow: hidden;
37
+ text-overflow: ellipsis;
38
+ white-space: nowrap;
32
39
  }
@@ -32,6 +32,8 @@ export interface ComboboxProps {
32
32
  isClearable?: boolean
33
33
 
34
34
  placeholder?: string
35
+ /** Placeholder of the search box in the panel. Defaults to "Search...". */
36
+ searchPlaceholder?: string
35
37
  noOptionsMessage?: string
36
38
  loadingMessage?: string
37
39