@haiilo/catalyst 0.15.1 → 0.15.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.
@@ -13,6 +13,11 @@ export interface RenderInfo {
13
13
  label: string;
14
14
  description?: string;
15
15
  }
16
+ /**
17
+ * @property resolve - Resolves the value of the select.
18
+ * @property retrieve - Retrieves the options of the select.
19
+ * @property render - Renders the selected elements.
20
+ */
16
21
  export interface CatSelectRemoteConnector<T extends Item = any> {
17
22
  resolve: (id: string[]) => Observable<T[]>;
18
23
  retrieve: (term: string, page: number) => Observable<Page<T>>;
@@ -35,6 +40,15 @@ export interface CatSelectRemoteState {
35
40
  activeSelectionIndex: number;
36
41
  totalElements?: number;
37
42
  }
43
+ /**
44
+ * Select lets user choose one option from an options' menu. Consider using
45
+ * select when you have 6 or more options. Select component supports any content
46
+ * type.
47
+ *
48
+ * @slot hint - Optional hint element to be displayed with the select.
49
+ * @slot label - The slotted label. If both the label property and the label slot are present, only the label slot will be displayed.
50
+ * @part label - The label content.
51
+ */
38
52
  export declare class CatSelectRemote {
39
53
  private static readonly SKELETON_COUNT;
40
54
  private static readonly DROPDOWN_OFFSET;
@@ -91,7 +105,7 @@ export declare class CatSelectRemote {
91
105
  */
92
106
  labelHidden: boolean;
93
107
  /**
94
- * A value is required or must be check for the form to be submittable.
108
+ * A value is required or must be checked for the form to be submittable.
95
109
  */
96
110
  required: boolean;
97
111
  /**
@@ -121,6 +135,11 @@ export declare class CatSelectRemote {
121
135
  onBlur(event: FocusEvent): void;
122
136
  onKeyDown(event: KeyboardEvent): void;
123
137
  onKeyUp(event: KeyboardEvent): void;
138
+ /**
139
+ * Connect the functions of the select
140
+ *
141
+ * @param connector - The {@link CatSelectRemoteConnector} of the select.
142
+ */
124
143
  connect(connector: CatSelectRemoteConnector): Promise<void>;
125
144
  render(): any;
126
145
  private get hintSection();
@@ -481,6 +481,10 @@ export namespace Components {
481
481
  * Whether the select should show a clear button.
482
482
  */
483
483
  "clearable": boolean;
484
+ /**
485
+ * Connect the functions of the select
486
+ * @param connector - The {@link CatSelectRemoteConnector} of the select.
487
+ */
484
488
  "connect": (connector: CatSelectRemoteConnector) => Promise<void>;
485
489
  /**
486
490
  * The debounce time for the search.
@@ -519,7 +523,7 @@ export namespace Components {
519
523
  */
520
524
  "placement": Placement;
521
525
  /**
522
- * A value is required or must be check for the form to be submittable.
526
+ * A value is required or must be checked for the form to be submittable.
523
527
  */
524
528
  "required": boolean;
525
529
  /**
@@ -1535,7 +1539,7 @@ declare namespace LocalJSX {
1535
1539
  */
1536
1540
  "placement"?: Placement;
1537
1541
  /**
1538
- * A value is required or must be check for the form to be submittable.
1542
+ * A value is required or must be checked for the form to be submittable.
1539
1543
  */
1540
1544
  "required"?: boolean;
1541
1545
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "0.15.1",
3
+ "version": "0.15.2",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,7 +43,7 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@floating-ui/dom": "0.4.1",
46
- "@haiilo/catalyst-tokens": "0.15.1",
46
+ "@haiilo/catalyst-tokens": "0.15.2",
47
47
  "@stencil/core": "2.17.0",
48
48
  "autosize": "5.0.1",
49
49
  "autosize-input": "^1.0.2",