@xplortech/apollo-core 0.3.0 → 0.4.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/build/style.css +2934 -417
  3. package/dist/apollo-core/apollo-core.css +6 -4
  4. package/dist/apollo-core/apollo-core.esm.js +1 -1
  5. package/dist/apollo-core/p-0027c582.entry.js +1 -0
  6. package/dist/apollo-core/p-2c551f4d.entry.js +1 -0
  7. package/dist/apollo-core/{p-43013b35.entry.js → p-2f90296c.js} +2 -3
  8. package/dist/apollo-core/p-6081e432.entry.js +1 -0
  9. package/dist/apollo-core/p-612984e5.entry.js +1 -0
  10. package/dist/apollo-core/p-63ea199d.entry.js +1 -0
  11. package/dist/apollo-core/p-650f6416.entry.js +1 -0
  12. package/dist/apollo-core/p-6ad97405.entry.js +1 -0
  13. package/dist/apollo-core/{p-21872e0f.entry.js → p-9b9511e4.entry.js} +1 -1
  14. package/dist/apollo-core/p-ad90fe4d.js +1 -0
  15. package/dist/apollo-core/p-c6fec744.entry.js +1 -0
  16. package/dist/apollo-core/p-ea8e0991.js +1 -0
  17. package/dist/apollo-core/p-ed04cedd.entry.js +1 -0
  18. package/dist/apollo-core/p-eec5a0f1.entry.js +1 -0
  19. package/dist/apollo-core/p-f4f646d9.entry.js +1 -0
  20. package/dist/cjs/apollo-core.cjs.js +2 -2
  21. package/dist/cjs/{index-716d8f57.js → index-9662f096.js} +134 -35
  22. package/dist/cjs/loader.cjs.js +2 -2
  23. package/dist/cjs/regular-872f5226.js +16043 -0
  24. package/dist/cjs/v4-14140ff3.js +77 -0
  25. package/dist/cjs/xpl-avatar_14.cjs.entry.js +30 -16122
  26. package/dist/cjs/xpl-button-row.cjs.entry.js +24 -0
  27. package/dist/cjs/xpl-choicelist.cjs.entry.js +22 -2
  28. package/dist/cjs/xpl-divider.cjs.entry.js +18 -0
  29. package/dist/cjs/xpl-grid-item.cjs.entry.js +25 -0
  30. package/dist/cjs/xpl-grid.cjs.entry.js +35 -0
  31. package/dist/cjs/xpl-input.cjs.entry.js +2527 -0
  32. package/dist/cjs/xpl-list.cjs.entry.js +63 -0
  33. package/dist/cjs/xpl-pagination.cjs.entry.js +1 -1
  34. package/dist/cjs/xpl-select.cjs.entry.js +623 -0
  35. package/dist/cjs/xpl-tag.cjs.entry.js +21 -0
  36. package/dist/cjs/xpl-toggle.cjs.entry.js +34 -0
  37. package/dist/collection/collection-manifest.json +9 -0
  38. package/dist/collection/components/xpl-button-row/xpl-button-row.js +119 -0
  39. package/dist/collection/components/xpl-checkbox/xpl-checkbox.js +51 -5
  40. package/dist/collection/components/xpl-choicelist/xpl-choicelist.js +138 -4
  41. package/dist/collection/components/xpl-divider/xpl-divider.js +30 -0
  42. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +32 -0
  43. package/dist/collection/components/xpl-grid/xpl-grid.js +26 -0
  44. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +93 -0
  45. package/dist/collection/components/xpl-input/xpl-input.js +471 -0
  46. package/dist/collection/components/xpl-list/xpl-list.js +93 -0
  47. package/dist/collection/components/xpl-radio/xpl-radio.js +51 -5
  48. package/dist/collection/components/xpl-select/xpl-select.js +311 -0
  49. package/dist/collection/components/xpl-table/xpl-table.js +6 -6
  50. package/dist/collection/components/xpl-tag/xpl-tag.js +30 -0
  51. package/dist/collection/components/xpl-toggle/xpl-toggle.js +157 -0
  52. package/dist/custom-elements/index.d.ts +54 -0
  53. package/dist/custom-elements/index.js +3447 -77
  54. package/dist/esm/apollo-core.js +2 -2
  55. package/dist/esm/{index-4c8962a5.js → index-619763f9.js} +133 -36
  56. package/dist/esm/loader.js +2 -2
  57. package/dist/esm/regular-86225e9d.js +16041 -0
  58. package/dist/esm/v4-929670b7.js +75 -0
  59. package/dist/esm/xpl-avatar_14.entry.js +28 -16120
  60. package/dist/esm/xpl-button-row.entry.js +20 -0
  61. package/dist/esm/xpl-choicelist.entry.js +22 -2
  62. package/dist/esm/xpl-divider.entry.js +14 -0
  63. package/dist/esm/xpl-grid-item.entry.js +21 -0
  64. package/dist/esm/xpl-grid.entry.js +31 -0
  65. package/dist/esm/xpl-input.entry.js +2523 -0
  66. package/dist/esm/xpl-list.entry.js +59 -0
  67. package/dist/esm/xpl-pagination.entry.js +1 -1
  68. package/dist/esm/xpl-select.entry.js +619 -0
  69. package/dist/esm/xpl-tag.entry.js +17 -0
  70. package/dist/esm/xpl-toggle.entry.js +30 -0
  71. package/dist/stories/button-row.stories.js +64 -0
  72. package/dist/stories/checkbox.stories.js +16 -6
  73. package/dist/stories/choicelist.stories.js +112 -0
  74. package/dist/stories/divider.stories.js +34 -0
  75. package/dist/stories/grid.stories.js +100 -0
  76. package/dist/stories/input.stories.js +252 -0
  77. package/dist/stories/list.stories.js +134 -0
  78. package/dist/stories/radio.stories.js +16 -6
  79. package/dist/stories/select.stories.js +111 -0
  80. package/dist/stories/toggle.stories.js +80 -0
  81. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/button-row.stories.d.ts +49 -0
  82. package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/checkbox.stories.d.ts +10 -2
  83. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/choicelist.stories.d.ts +41 -0
  84. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/divider.stories.d.ts +40 -0
  85. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/grid.stories.d.ts +150 -0
  86. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/input.stories.d.ts +190 -0
  87. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/list.stories.d.ts +71 -0
  88. package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/radio.stories.d.ts +10 -2
  89. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/select.stories.d.ts +74 -0
  90. package/dist/types/Users/fernandogelin/Projects/apollo/.stencil/stories/toggle.stories.d.ts +74 -0
  91. package/dist/types/components/xpl-button-row/xpl-button-row.d.ts +35 -0
  92. package/dist/types/components/xpl-checkbox/xpl-checkbox.d.ts +5 -0
  93. package/dist/types/components/xpl-choicelist/choice.d.ts +6 -0
  94. package/dist/types/components/xpl-choicelist/xpl-choicelist.d.ts +31 -0
  95. package/dist/types/components/xpl-divider/xpl-divider.d.ts +9 -0
  96. package/dist/types/components/xpl-dropdown/dropdownchoice.d.ts +6 -0
  97. package/dist/types/components/xpl-dropdown/xpl-dropdown.d.ts +10 -0
  98. package/dist/types/components/xpl-grid/xpl-grid.d.ts +5 -0
  99. package/dist/types/components/xpl-grid-item/xpl-grid-item.d.ts +7 -0
  100. package/dist/types/components/xpl-input/xpl-input.d.ts +87 -0
  101. package/dist/types/components/xpl-list/listitem.d.ts +16 -0
  102. package/dist/types/components/xpl-list/xpl-list.d.ts +28 -0
  103. package/dist/types/components/xpl-radio/xpl-radio.d.ts +4 -0
  104. package/dist/types/components/xpl-select/xpl-select.d.ts +52 -0
  105. package/dist/types/components/xpl-table/xpl-table.d.ts +6 -6
  106. package/dist/types/components/xpl-tag/xpl-tag.d.ts +5 -0
  107. package/dist/types/components/xpl-toggle/xpl-toggle.d.ts +23 -0
  108. package/dist/types/components.d.ts +447 -5
  109. package/package.json +3 -2
  110. package/dist/apollo-core/p-00996870.js +0 -1
  111. package/dist/apollo-core/p-d8ea7d80.entry.js +0 -1
  112. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/avatar.stories.d.ts +0 -0
  113. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/backdrop.stories.d.ts +0 -0
  114. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/badge.stories.d.ts +0 -0
  115. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/breadcrumbs.stories.d.ts +0 -0
  116. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/button.stories.d.ts +0 -0
  117. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/content-area.stories.d.ts +0 -0
  118. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/main-nav.stories.d.ts +0 -0
  119. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/pagination.stories.d.ts +0 -0
  120. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/secondary-nav.stories.d.ts +0 -0
  121. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/table.stories.d.ts +0 -0
  122. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/tabs.stories.d.ts +0 -0
  123. /package/dist/types/Users/{awentt/Sites → fernandogelin/Projects}/apollo/.stencil/stories/utility-bar.stories.d.ts +0 -0
@@ -0,0 +1,190 @@
1
+ declare const _default: {
2
+ title: string;
3
+ argTypes: {
4
+ label: {
5
+ type: {
6
+ name: string;
7
+ required: boolean;
8
+ };
9
+ };
10
+ description: {
11
+ type: {
12
+ name: string;
13
+ required: boolean;
14
+ };
15
+ };
16
+ disabled: {
17
+ type: {
18
+ name: string;
19
+ };
20
+ };
21
+ error: {
22
+ type: {
23
+ name: string;
24
+ };
25
+ };
26
+ errorMessage: {
27
+ type: {
28
+ name: string;
29
+ required: boolean;
30
+ };
31
+ };
32
+ type: {
33
+ options: string[];
34
+ control: {
35
+ type: string;
36
+ };
37
+ };
38
+ };
39
+ };
40
+ export default _default;
41
+ export declare const Input: {
42
+ ({ label, description, disabled, error, errorMessage, pre, post, type, }: {
43
+ label: any;
44
+ description: any;
45
+ disabled: any;
46
+ error: any;
47
+ errorMessage: any;
48
+ pre: any;
49
+ post: any;
50
+ type: any;
51
+ }): string;
52
+ parameters: {
53
+ layout: string;
54
+ "web-component": {
55
+ render: any;
56
+ };
57
+ html: {
58
+ render({ label, description, disabled, error, errorMessage, pre, post, type, }: {
59
+ label: any;
60
+ description: any;
61
+ disabled: any;
62
+ error: any;
63
+ errorMessage: any;
64
+ pre: any;
65
+ post: any;
66
+ type: any;
67
+ }): any[];
68
+ };
69
+ };
70
+ args: {
71
+ label: string;
72
+ description: string;
73
+ disabled: boolean;
74
+ error: boolean;
75
+ errorMessage: string;
76
+ pre: string;
77
+ post: string;
78
+ type: string;
79
+ };
80
+ };
81
+ export declare const Multiline: {
82
+ ({ label, description, disabled, error, errorMessage, maxCharacterCount, }: {
83
+ label: any;
84
+ description: any;
85
+ disabled: any;
86
+ error: any;
87
+ errorMessage: any;
88
+ maxCharacterCount: any;
89
+ }): string;
90
+ parameters: {
91
+ layout: string;
92
+ "web-component": {
93
+ render: any;
94
+ };
95
+ html: {
96
+ render({ disabled, error, errorMessage, label, description, maxCharacterCount }: {
97
+ disabled: any;
98
+ error: any;
99
+ errorMessage: any;
100
+ label: any;
101
+ description: any;
102
+ maxCharacterCount: any;
103
+ }): string[];
104
+ };
105
+ };
106
+ args: {
107
+ label: string;
108
+ description: string;
109
+ disabled: boolean;
110
+ error: boolean;
111
+ errorMessage: string;
112
+ maxCharacterCount: number;
113
+ };
114
+ };
115
+ export declare const Datepicker: {
116
+ ({ label, dateFormat, description, disabled, error, errorMessage, min, mode, max, }: {
117
+ label: any;
118
+ dateFormat: any;
119
+ description: any;
120
+ disabled: any;
121
+ error: any;
122
+ errorMessage: any;
123
+ min: any;
124
+ mode: any;
125
+ max: any;
126
+ }): string;
127
+ argTypes: {
128
+ mode: {
129
+ options: string[];
130
+ control: {
131
+ type: string;
132
+ };
133
+ };
134
+ };
135
+ args: {
136
+ mode: string;
137
+ label: string;
138
+ dateFormat: string;
139
+ description: string;
140
+ disabled: boolean;
141
+ error: boolean;
142
+ errorMessage: string;
143
+ min: string;
144
+ max: string;
145
+ };
146
+ parameters: {
147
+ layout: string;
148
+ "web-component": {
149
+ render: any;
150
+ };
151
+ html: {
152
+ render({ label, description, disabled, error, errorMessage, min, max, }: {
153
+ label: any;
154
+ description: any;
155
+ disabled: any;
156
+ error: any;
157
+ errorMessage: any;
158
+ min: any;
159
+ max: any;
160
+ }): string[];
161
+ };
162
+ };
163
+ };
164
+ export declare const Password: {
165
+ ({ label, description, disabled, error, errorMessage, pre, post, }: {
166
+ label: any;
167
+ description: any;
168
+ disabled: any;
169
+ error: any;
170
+ errorMessage: any;
171
+ pre: any;
172
+ post: any;
173
+ }): string;
174
+ parameters: {
175
+ layout: string;
176
+ "web-component": {
177
+ render: any;
178
+ };
179
+ html: {
180
+ render(): string;
181
+ };
182
+ };
183
+ args: {
184
+ label: string;
185
+ description: string;
186
+ disabled: boolean;
187
+ error: boolean;
188
+ errorMessage: string;
189
+ };
190
+ };
@@ -0,0 +1,71 @@
1
+ declare const _default: {
2
+ title: string;
3
+ argTypes: {
4
+ avatar: {
5
+ options: string[];
6
+ control: {
7
+ type: string;
8
+ };
9
+ };
10
+ avatars: {
11
+ type: {
12
+ name: string;
13
+ };
14
+ };
15
+ badges: {
16
+ type: {
17
+ name: string;
18
+ };
19
+ };
20
+ link: {
21
+ type: {
22
+ name: string;
23
+ };
24
+ };
25
+ metadata: {
26
+ type: {
27
+ name: string;
28
+ };
29
+ };
30
+ title: {
31
+ type: {
32
+ name: string;
33
+ };
34
+ };
35
+ subtext: {
36
+ type: {
37
+ name: string;
38
+ };
39
+ };
40
+ };
41
+ };
42
+ export default _default;
43
+ export declare const List: {
44
+ (props: any): string;
45
+ parameters: {
46
+ layout: string;
47
+ "web-component": {
48
+ render({ avatar, avatars, badges, metadata, link, title, subtext }: {
49
+ avatar: any;
50
+ avatars: any;
51
+ badges: any;
52
+ metadata: any;
53
+ link: any;
54
+ title: any;
55
+ subtext: any;
56
+ }): string[];
57
+ };
58
+ html: {
59
+ render(): void;
60
+ };
61
+ };
62
+ args: {
63
+ avatar: string;
64
+ avatars: boolean;
65
+ badges: boolean;
66
+ link: boolean;
67
+ metadata: boolean;
68
+ title: string;
69
+ subtext: string;
70
+ };
71
+ };
@@ -23,15 +23,21 @@ declare const _default: {
23
23
  type: string;
24
24
  };
25
25
  };
26
+ styled: {
27
+ control: {
28
+ type: string;
29
+ };
30
+ };
26
31
  };
27
32
  };
28
33
  export default _default;
29
34
  export declare const Radio: {
30
- ({ label, description, checked, disabled }: {
35
+ ({ label, description, checked, disabled, styled }: {
31
36
  label: any;
32
37
  description: any;
33
38
  checked: any;
34
39
  disabled: any;
40
+ styled: any;
35
41
  }): string;
36
42
  parameters: {
37
43
  layout: string;
@@ -39,11 +45,12 @@ export declare const Radio: {
39
45
  render: any;
40
46
  };
41
47
  html: {
42
- render({ label, description, checked, disabled }: {
48
+ render({ label, description, checked, disabled, styled }: {
43
49
  label: any;
44
50
  description: any;
45
51
  checked: any;
46
52
  disabled: any;
53
+ styled: any;
47
54
  }): string;
48
55
  };
49
56
  };
@@ -52,5 +59,6 @@ export declare const Radio: {
52
59
  description: string;
53
60
  checked: boolean;
54
61
  disabled: boolean;
62
+ styled: boolean;
55
63
  };
56
64
  };
@@ -0,0 +1,74 @@
1
+ declare const _default: {
2
+ title: string;
3
+ argTypes: {
4
+ label: {
5
+ type: {
6
+ name: string;
7
+ required: boolean;
8
+ };
9
+ };
10
+ description: {
11
+ type: {
12
+ name: string;
13
+ required: boolean;
14
+ };
15
+ };
16
+ disabled: {
17
+ type: {
18
+ name: string;
19
+ };
20
+ };
21
+ error: {
22
+ type: {
23
+ name: string;
24
+ };
25
+ };
26
+ errorMessage: {
27
+ type: {
28
+ name: string;
29
+ required: boolean;
30
+ };
31
+ };
32
+ mode: {
33
+ options: string[];
34
+ control: {
35
+ type: string;
36
+ };
37
+ };
38
+ truncate: {
39
+ type: {
40
+ name: string;
41
+ };
42
+ };
43
+ };
44
+ };
45
+ export default _default;
46
+ export declare const Select: {
47
+ ({ label, description, disabled, error, errorMessage, mode, truncate }: {
48
+ label: any;
49
+ description: any;
50
+ disabled: any;
51
+ error: any;
52
+ errorMessage: any;
53
+ mode: any;
54
+ truncate: any;
55
+ }): string;
56
+ parameters: {
57
+ layout: string;
58
+ "web-component": {
59
+ render: any;
60
+ };
61
+ html: {
62
+ render(): void;
63
+ };
64
+ };
65
+ args: {
66
+ label: string;
67
+ description: string;
68
+ disabled: boolean;
69
+ error: boolean;
70
+ errorMessage: string;
71
+ mode: string;
72
+ truncate: boolean;
73
+ };
74
+ };
@@ -0,0 +1,74 @@
1
+ declare const _default: {
2
+ title: string;
3
+ argTypes: {
4
+ checked: {
5
+ control: {
6
+ type: string;
7
+ };
8
+ };
9
+ variant: {
10
+ options: string[];
11
+ control: {
12
+ type: string;
13
+ };
14
+ };
15
+ heading: {
16
+ type: {
17
+ name: string;
18
+ required: boolean;
19
+ };
20
+ };
21
+ label: {
22
+ type: {
23
+ name: string;
24
+ required: boolean;
25
+ };
26
+ };
27
+ description: {
28
+ type: {
29
+ name: string;
30
+ required: boolean;
31
+ };
32
+ };
33
+ disabled: {
34
+ control: {
35
+ type: string;
36
+ };
37
+ };
38
+ };
39
+ };
40
+ export default _default;
41
+ export declare const Toggle: {
42
+ ({ checked, description, disabled, label, heading, variant }: {
43
+ checked: any;
44
+ description: any;
45
+ disabled: any;
46
+ label: any;
47
+ heading: any;
48
+ variant: any;
49
+ }): string;
50
+ parameters: {
51
+ layout: string;
52
+ "web-component": {
53
+ render: any;
54
+ };
55
+ html: {
56
+ render({ label, heading, checked, description, disabled, variant }: {
57
+ label: any;
58
+ heading: any;
59
+ checked: any;
60
+ description: any;
61
+ disabled: any;
62
+ variant: any;
63
+ }): string;
64
+ };
65
+ };
66
+ args: {
67
+ checked: boolean;
68
+ heading: string;
69
+ label: string;
70
+ variant: string;
71
+ description: string;
72
+ disabled: boolean;
73
+ };
74
+ };
@@ -0,0 +1,35 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class XplButtonRow {
3
+ /**
4
+ * The text for the primary button.
5
+ */
6
+ primary: "string";
7
+ /**
8
+ * The text for the secondary button. If left
9
+ * empty, will not render a secondary button.
10
+ */
11
+ secondary: "string";
12
+ /**
13
+ * The text for the tertiary button. If left
14
+ * empty, will not render a secondary button.
15
+ */
16
+ tertiary: "string";
17
+ /**
18
+ * Fires on the primary button.
19
+ * If not set, the button can act as a standard
20
+ * submit button for a form.
21
+ */
22
+ clickPrimary: EventEmitter;
23
+ /**
24
+ * Adds an event listener to the secondary button.
25
+ */
26
+ clickSecondary: EventEmitter;
27
+ /**
28
+ * Adds an event listener to the tertiary button.
29
+ */
30
+ clickTertiary: EventEmitter;
31
+ private onPrimary;
32
+ private onSecondary;
33
+ private onTertiary;
34
+ render(): any;
35
+ }
@@ -1,3 +1,4 @@
1
+ import { EventEmitter } from "../../stencil-public-runtime";
1
2
  export declare class XplCheckbox {
2
3
  checked?: boolean;
3
4
  description?: string;
@@ -5,7 +6,11 @@ export declare class XplCheckbox {
5
6
  indeterminate?: boolean;
6
7
  name?: string;
7
8
  required?: boolean;
9
+ styled?: boolean;
8
10
  value?: string;
9
11
  id: string;
12
+ /** @private */
13
+ checkboxChange: EventEmitter;
14
+ private input;
10
15
  render(): any;
11
16
  }
@@ -0,0 +1,6 @@
1
+ interface Choice {
2
+ checked?: boolean;
3
+ children?: Choice[];
4
+ description?: string;
5
+ label?: string;
6
+ }
@@ -1,3 +1,34 @@
1
1
  export declare class XplChoicelist {
2
+ /**
3
+ * An array of choices to be displayed in the list.
4
+ * Each choice should be an object with keys:
5
+ * - `checked` [boolean] - whether to precheck or not
6
+ * - `children` [Choice[]] - an array of child choices (recursive)
7
+ * - `description` [string]
8
+ * - `label` [string]
9
+ */
10
+ choices: Choice[];
11
+ /**
12
+ * Descriptive text to be displayed above the choicelist.
13
+ */
14
+ description?: string;
15
+ /**
16
+ * The title text to be displayed above the choicelist.
17
+ */
18
+ heading?: string;
19
+ /**
20
+ * Whether the user can select more than one choice (true) or only a single choice (false). Corresponds to checkboxes vs. radio buttons.
21
+ */
22
+ multi?: boolean;
23
+ /**
24
+ * The `name` to be associated with form data.
25
+ */
26
+ name?: string;
27
+ /**
28
+ * If `true`, will include borders around the list and between individual choices.
29
+ */
30
+ styled?: boolean;
31
+ selected: boolean[];
32
+ componentWillLoad(): void;
2
33
  render(): any;
3
34
  }
@@ -0,0 +1,9 @@
1
+ export declare class XplDivider {
2
+ /**
3
+ * The tier should be an integer between 0 and 3.
4
+ * Tier 0 dividers do not display text, and 1-3 increase
5
+ * in size with each increasing tier.
6
+ */
7
+ tier?: number;
8
+ render(): any;
9
+ }
@@ -0,0 +1,6 @@
1
+ interface DropdownChoice {
2
+ label: string;
3
+ href?: string;
4
+ value?: string;
5
+ isGroupHeading?: boolean;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { FunctionalComponent } from '../../stencil-public-runtime';
2
+ interface XplDropdownProps {
3
+ active: boolean;
4
+ choices: DropdownChoice[];
5
+ mode: "single" | "multi";
6
+ selected: boolean[];
7
+ update: (selected: boolean[]) => void;
8
+ }
9
+ export declare const XplDropdown: FunctionalComponent<XplDropdownProps>;
10
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare class XplGrid {
2
+ container: HTMLXplGridElement;
3
+ componentDidLoad(): void;
4
+ render(): any;
5
+ }
@@ -0,0 +1,7 @@
1
+ export declare class XplGridItem {
2
+ xs: number;
3
+ sm: number;
4
+ md: number;
5
+ lg: number;
6
+ render(): any;
7
+ }
@@ -0,0 +1,87 @@
1
+ import "../../../font-awesome/fontawesome";
2
+ import "../../../font-awesome/regular";
3
+ export declare class XplInput {
4
+ /**
5
+ * Because `id` is a reserved HTMLElement attribute,
6
+ * we prefix it with an underscore here so that it
7
+ * doesn't get automatically applied to the outer container.
8
+ */
9
+ _id?: string;
10
+ autocomplete?: string;
11
+ /**
12
+ * See https://flatpickr.js.org/formatting/
13
+ */
14
+ dateFormat?: string;
15
+ /**
16
+ * Optional text that appears below the input label.
17
+ */
18
+ description?: string;
19
+ disabled?: boolean;
20
+ /**
21
+ * If an empty string (attribute present with no value),
22
+ * will display visually as an error. If a string is
23
+ * included, will display visually as an error and include
24
+ * the value as an error message.
25
+ */
26
+ error?: string;
27
+ label: string;
28
+ /**
29
+ * Only used when `type` = 'number' or 'date'
30
+ */
31
+ max?: number | string;
32
+ /**
33
+ * For multiline inputs, a max. character count will
34
+ * display along with the current character count,
35
+ * and will automatically render as an error if the
36
+ * character count exceeds the max.
37
+ */
38
+ maxCharacterCount?: number;
39
+ /**
40
+ * Only used when `type` = 'number' or 'date'
41
+ */
42
+ min?: number | string;
43
+ /**
44
+ * For datepicker inputs, whether to allow only a single
45
+ * date or a range of dates. (Multiple non-consecutive
46
+ * dates planned to be supported in the future.)
47
+ */
48
+ mode?: "single" | /* "multiple" | */ "range";
49
+ /**
50
+ * Whether to render as a singleline text input or
51
+ * as a multiline textarea. (If `true`, `pre` and `post`
52
+ * values will be ignored, if present.)
53
+ */
54
+ multiline?: boolean;
55
+ /**
56
+ * Most inputs are used in forms, and should have a
57
+ * `name` associated with the input for handling form data.
58
+ */
59
+ name?: string;
60
+ placeholder?: string;
61
+ /**
62
+ * A string (recommended max 3 characters) that gets shown
63
+ * visually to the left of (before) the input.
64
+ */
65
+ post?: string;
66
+ /**
67
+ * A string (recommended max 8 characters) that gets shown
68
+ * visually to the right of (after) the input.
69
+ */
70
+ pre?: string;
71
+ readonly?: boolean;
72
+ required?: boolean;
73
+ step?: number;
74
+ type?: "date" | "text" | "number" | "password";
75
+ /**
76
+ * Including a `value` will prepopulate the input
77
+ * with the given string.
78
+ */
79
+ value?: string;
80
+ characterCount: number;
81
+ passwordVisible: boolean;
82
+ private input;
83
+ private updateCharacterCount;
84
+ componentWillLoad(): void;
85
+ componentDidLoad(): void;
86
+ render(): any;
87
+ }
@@ -0,0 +1,16 @@
1
+ interface ListItem {
2
+ avatar?: string;
3
+ avatars?: string[];
4
+ badges?: string[] | {
5
+ dot?: boolean;
6
+ text: string;
7
+ variant?: string;
8
+ }[];
9
+ href?: string;
10
+ title: string;
11
+ metadata?: string[] | {
12
+ icon: string;
13
+ text: string;
14
+ }[];
15
+ subtext?: string;
16
+ }