@kubex/zinc 1.0.17 → 1.0.19

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/dist/zn.d.ts CHANGED
@@ -1760,7 +1760,7 @@ declare module "components/style/style.component" {
1760
1760
  primary: boolean;
1761
1761
  accent: boolean;
1762
1762
  center: boolean;
1763
- display: string;
1763
+ display: null;
1764
1764
  font: string;
1765
1765
  width: string;
1766
1766
  height: string;
@@ -1946,12 +1946,12 @@ declare module "components/option/index" {
1946
1946
  }
1947
1947
  }
1948
1948
  declare module "components/select/select.component" {
1949
- import { type CSSResultGroup, PropertyValues, type TemplateResult } from 'lit';
1950
1949
  import { FormControlController } from "internal/form";
1951
1950
  import ZincElement from "internal/zinc-element";
1952
1951
  import ZnChip from "components/chip/index";
1953
1952
  import ZnIcon from "components/icon/index";
1954
1953
  import ZnPopup from "components/popup/index";
1954
+ import type { CSSResultGroup, PropertyValues, TemplateResult } from 'lit';
1955
1955
  import type { ZincFormControl } from "internal/zinc-element";
1956
1956
  import type ZnOption from "components/option/index";
1957
1957
  /**
@@ -2019,11 +2019,13 @@ declare module "components/select/select.component" {
2019
2019
  displayInput: HTMLInputElement;
2020
2020
  valueInput: HTMLInputElement;
2021
2021
  listbox: HTMLSlotElement;
2022
+ prefixSlot: HTMLSlotElement;
2022
2023
  private hasFocus;
2023
2024
  displayLabel: string;
2024
2025
  currentOption: ZnOption;
2025
2026
  selectedOptions: ZnOption[];
2026
2027
  private valueHasChanged;
2028
+ private inputPrefix;
2027
2029
  /** The name of the select, submitted as a name/value pair with form data. */
2028
2030
  name: string;
2029
2031
  private _value;
@@ -2087,6 +2089,7 @@ declare module "components/select/select.component" {
2087
2089
  /** The select's required attribute. */
2088
2090
  required: boolean;
2089
2091
  cacheKey: string;
2092
+ triggerSubmit: boolean;
2090
2093
  /**
2091
2094
  * A function that customizes the tags to be rendered when multiple=true. The first argument is the option, the second
2092
2095
  * is the current tag's index. The function should return either a Lit TemplateResult or a string containing trusted HTML of the symbol to render at
@@ -2100,6 +2103,7 @@ declare module "components/select/select.component" {
2100
2103
  /** Gets the validation message */
2101
2104
  get validationMessage(): string;
2102
2105
  connectedCallback(): void;
2106
+ private updateHasInputPrefix;
2103
2107
  private addOpenListeners;
2104
2108
  private removeOpenListeners;
2105
2109
  private handleFocus;
@@ -4944,9 +4948,10 @@ declare module "components/editor/index" {
4944
4948
  }
4945
4949
  declare module "components/checkbox/checkbox.component" {
4946
4950
  import { type CSSResultGroup } from 'lit';
4947
- import type { ZincFormControl } from "internal/zinc-element";
4948
4951
  import ZincElement from "internal/zinc-element";
4949
4952
  import ZnIcon from "components/icon/index";
4953
+ import type { ZincFormControl } from "internal/zinc-element";
4954
+ type ColorOption = 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning' | 'transparent';
4950
4955
  /**
4951
4956
  * @summary Short summary of the component's intended use.
4952
4957
  * @documentation https://zinc.style/components/checkbox
@@ -4957,7 +4962,7 @@ declare module "components/checkbox/checkbox.component" {
4957
4962
  *
4958
4963
  * @slot - The checkbox's label.
4959
4964
  * @slot description - A description of the checkbox's label. Serves as help text for a checkbox item. Alternatively, you can use the `description` attribute.
4960
- * @slot selected-content - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.
4965
+ * @slot selected-content - Use to nest rich content (like an input) inside a selected checkbox item. Use only with the contained style.
4961
4966
  *
4962
4967
  * @event zn-blur - Emitted when the checkbox loses focus.
4963
4968
  * @event zn-change - Emitted when the checked state changes.
@@ -4970,6 +4975,7 @@ declare module "components/checkbox/checkbox.component" {
4970
4975
  * @csspart control--checked - Matches the control part when the checkbox is checked.
4971
4976
  * @csspart control--indeterminate - Matches the control part when the checkbox is indeterminate.
4972
4977
  * @csspart checked-icon - The checked icon, an `<zn-icon>` element.
4978
+ * @csspart unchecked-icon - The unchecked icon, an `<zn-icon>` element.
4973
4979
  * @csspart indeterminate-icon - The indeterminate icon, an `<zn-icon>` element.
4974
4980
  * @csspart label - The container that wraps the checkbox's label.
4975
4981
  * @csspart description - The container that wraps the checkbox's description.
@@ -5018,6 +5024,16 @@ declare module "components/checkbox/checkbox.component" {
5018
5024
  description: string;
5019
5025
  label: string;
5020
5026
  labelTooltip: string;
5027
+ /** The icon to show when the checkbox is checked. */
5028
+ checkedIcon: string;
5029
+ /** The icon to show when the checkbox is unchecked. */
5030
+ uncheckedIcon: string;
5031
+ /** The color of the checkbox. */
5032
+ color: ColorOption;
5033
+ /** The color of the checkbox when checked. Overrides `color`. */
5034
+ checkedColor: ColorOption;
5035
+ /** The color of the checkbox when unchecked. Overrides `color`. */
5036
+ uncheckedColor: ColorOption;
5021
5037
  /** Gets the validity state object */
5022
5038
  get validity(): ValidityState;
5023
5039
  get isChecked(): boolean;
@@ -6576,6 +6592,54 @@ declare module "components/reveal/index" {
6576
6592
  }
6577
6593
  }
6578
6594
  }
6595
+ declare module "components/audio-select/audio-select.component" {
6596
+ import { type CSSResultGroup } from 'lit';
6597
+ import ZincElement from "internal/zinc-element";
6598
+ import type { ZnChangeEvent } from "events/zn-change";
6599
+ interface AudioFile {
6600
+ name: string;
6601
+ url: string;
6602
+ }
6603
+ /**
6604
+ * @summary Short summary of the component's intended use.
6605
+ * @documentation https://zinc.style/components/audio-select
6606
+ * @status experimental
6607
+ * @since 1.0
6608
+ *
6609
+ * @slot - The default slot.
6610
+ * @slot actions - The actions slot.
6611
+ * @slot footer - The footer slot.
6612
+ *
6613
+ * @csspart base - The component's base wrapper.
6614
+ *
6615
+ * @cssproperty --example - An example CSS custom property.
6616
+ */
6617
+ export default class ZnAudioSelect extends ZincElement {
6618
+ static styles: CSSResultGroup;
6619
+ private _selectedUrl;
6620
+ private _isPlaying;
6621
+ private readonly _audio;
6622
+ label: string;
6623
+ placeholder: string;
6624
+ files: AudioFile[];
6625
+ constructor();
6626
+ disconnectedCallback(): void;
6627
+ _stopAudio(): void;
6628
+ handleSelectChange(e: ZnChangeEvent): void;
6629
+ togglePreview(e: CustomEvent): void;
6630
+ render(): import("lit").TemplateResult<1>;
6631
+ }
6632
+ }
6633
+ declare module "components/audio-select/index" {
6634
+ import ZnAudioSelect from "components/audio-select/audio-select.component";
6635
+ export * from "components/audio-select/audio-select.component";
6636
+ export default ZnAudioSelect;
6637
+ global {
6638
+ interface HTMLElementTagNameMap {
6639
+ 'zn-audio-select': ZnAudioSelect;
6640
+ }
6641
+ }
6642
+ }
6579
6643
  declare module "events/zn-after-hide" {
6580
6644
  export type ZnAfterHideEvent = CustomEvent<Record<PropertyKey, never>>;
6581
6645
  global {
@@ -6717,6 +6781,7 @@ declare module "zinc" {
6717
6781
  export { default as SettingsContainer } from "components/settings-container/index";
6718
6782
  export { default as FilterContainer } from "components/filter-container/index";
6719
6783
  export { default as Reveal } from "components/reveal/index";
6784
+ export { default as AudioSelect } from "components/audio-select/index";
6720
6785
  export { default as ZincElement } from "internal/zinc-element";
6721
6786
  export * from "utilities/on";
6722
6787
  export * from "utilities/query";