@appquality/unguess-design-system 2.3.0 → 2.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 (59) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/build/index.d.ts +31 -1
  3. package/build/index.js +486 -19
  4. package/build/stories/accordions/index.stories.d.ts +1 -0
  5. package/build/stories/avatar/index.d.ts +1 -1
  6. package/build/stories/dropdowns/field/_types.d.ts +2 -0
  7. package/build/stories/dropdowns/field/index.d.ts +4 -0
  8. package/build/stories/dropdowns/item/_types.d.ts +9 -0
  9. package/build/stories/dropdowns/item/index.d.ts +4 -0
  10. package/build/stories/dropdowns/menu/_types.d.ts +31 -0
  11. package/build/stories/dropdowns/menu/index.d.ts +7 -0
  12. package/build/stories/dropdowns/multiselect/_types.d.ts +17 -0
  13. package/build/stories/dropdowns/multiselect/index.d.ts +11 -0
  14. package/build/stories/dropdowns/multiselect/index.stories.d.ts +21 -0
  15. package/build/stories/dropdowns/select/_types.d.ts +5 -1
  16. package/build/stories/dropdowns/select/index.d.ts +16 -0
  17. package/build/stories/dropdowns/select/index.stories.d.ts +20 -0
  18. package/build/stories/{field → forms/field}/_types.d.ts +0 -0
  19. package/build/stories/{field → forms/field}/index.d.ts +0 -0
  20. package/build/stories/{field → forms/field}/index.stories.d.ts +0 -0
  21. package/build/stories/forms/radio/_types.d.ts +3 -0
  22. package/build/stories/forms/radio/index.d.ts +14 -0
  23. package/build/stories/forms/radio/index.stories.d.ts +7 -0
  24. package/build/stories/forms/textarea/_types.d.ts +15 -0
  25. package/build/stories/forms/textarea/index.d.ts +10 -0
  26. package/build/stories/forms/textarea/index.stories.d.ts +8 -0
  27. package/build/stories/forms/toggle/_types.d.ts +3 -0
  28. package/build/stories/forms/toggle/index.d.ts +13 -0
  29. package/build/stories/forms/toggle/index.stories.d.ts +10 -0
  30. package/build/stories/login-form/_types.d.ts +23 -0
  31. package/build/stories/login-form/index.d.ts +10 -0
  32. package/build/stories/login-form/index.stories.d.ts +7 -0
  33. package/build/stories/logo/_types.d.ts +14 -0
  34. package/build/stories/logo/index.d.ts +27 -0
  35. package/build/stories/logo/index.stories.d.ts +19 -0
  36. package/build/stories/pagination/_types.d.ts +34 -0
  37. package/build/stories/pagination/index.d.ts +17 -0
  38. package/build/stories/pagination/index.stories.d.ts +7 -0
  39. package/build/stories/table/_types.d.ts +54 -0
  40. package/build/stories/table/index.d.ts +21 -0
  41. package/build/stories/table/index.stories.d.ts +32 -0
  42. package/build/stories/tags/_types.d.ts +17 -0
  43. package/build/stories/tags/index.d.ts +22 -0
  44. package/build/stories/tags/index.stories.d.ts +19 -0
  45. package/build/stories/theme/gradients.d.ts +4 -0
  46. package/build/stories/theme/index.d.ts +155 -11
  47. package/build/stories/theme/palette.d.ts +141 -0
  48. package/build/stories/theme/palette.stories.d.ts +15 -0
  49. package/build/stories/theme/utils.d.ts +1 -0
  50. package/build/stories/tiles/_types.d.ts +12 -0
  51. package/build/stories/tiles/index.d.ts +22 -0
  52. package/build/stories/tiles/index.stories.d.ts +25 -0
  53. package/build/stories/trigger/_types.d.ts +3 -0
  54. package/build/stories/trigger/index.d.ts +7 -0
  55. package/build/stories/typography/paragraph/{ordered.stories.d.ts → index.stories.d.ts} +0 -0
  56. package/build/stories/typography/span/_types.d.ts +13 -0
  57. package/build/stories/typography/span/index.d.ts +13 -0
  58. package/build/stories/typography/span/index.stories.d.ts +6 -0
  59. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ # v2.4.1 (Fri Mar 18 2022)
2
+
3
+
4
+
5
+ ---
6
+
7
+ # v2.4.0 (Fri Mar 18 2022)
8
+
9
+ #### 🚀 Enhancement
10
+
11
+ - add logo component + fix login-form component issues [#17](https://github.com/AppQuality/unguess-design-system/pull/17) ([@marcbon](https://github.com/marcbon))
12
+
13
+ #### Authors: 1
14
+
15
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
16
+
17
+ ---
18
+
19
+ # v2.3.1 (Tue Mar 15 2022)
20
+
21
+
22
+
23
+ ---
24
+
1
25
  # v2.2.0 (Tue Mar 15 2022)
2
26
 
3
27
  #### 🚀 Enhancement
package/build/index.d.ts CHANGED
@@ -1,11 +1,41 @@
1
1
  import { GlobalStyle } from './stories/shared/globalStyle';
2
+ export * from './stories/accordions';
2
3
  export * from './stories/avatar';
3
4
  export * from './stories/breadcrumbs';
4
- export * from './stories/buttons/button';
5
5
  export * from './stories/buttons/anchor';
6
+ export * from './stories/buttons/button';
6
7
  export * from './stories/buttons/button-group';
7
8
  export * from './stories/buttons/icon-button';
8
9
  export * from './stories/buttons/split-button';
10
+ export * from './stories/cards';
11
+ export * from './stories/close';
12
+ export * as DropdownField from './stories/dropdowns/field';
13
+ export * from './stories/dropdowns/item';
14
+ export * from './stories/dropdowns/menu';
15
+ export * from './stories/dropdowns/multiselect';
16
+ export * from './stories/dropdowns/select';
17
+ export * from './stories/forms/checkbox';
18
+ export * as FormField from './stories/forms/field';
19
+ export * from './stories/forms/input';
20
+ export * from './stories/forms/radio';
21
+ export * from './stories/forms/textarea';
22
+ export * from './stories/forms/toggle';
23
+ export * from './stories/grid/col';
24
+ export * from './stories/grid/row';
25
+ export * from './stories/grid/grid';
26
+ export * from './stories/label';
9
27
  export * from './stories/loaders/spinner';
28
+ export * from './stories/login-form';
29
+ export * from './stories/notifications';
30
+ export { Table, Head as TableHead, HeaderRow, HeaderCell, Body as TableRow, Cell as TableCell, GroupRow, Caption } from './stories/table';
10
31
  export * from './stories/theme';
32
+ export * from './stories/title';
33
+ export * from './stories/trigger';
34
+ export * from './stories/typography/block-quote';
35
+ export * from './stories/typography/code';
36
+ export * from './stories/typography/ellipsis';
37
+ export * from './stories/typography/lists';
38
+ export * from './stories/typography/paragraph';
39
+ export * from './stories/typography/span';
40
+ export * from './stories/typography/typescale';
11
41
  export { GlobalStyle };
package/build/index.js CHANGED
@@ -5,10 +5,18 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var styled = require('styled-components');
6
6
  var reactTheming = require('@zendeskgarden/react-theming');
7
7
  var jsxRuntime = require('react/jsx-runtime');
8
+ var reactAccordions = require('@zendeskgarden/react-accordions');
8
9
  var reactAvatars = require('@zendeskgarden/react-avatars');
9
10
  var reactBreadcrumbs = require('@zendeskgarden/react-breadcrumbs');
10
11
  var reactButtons = require('@zendeskgarden/react-buttons');
12
+ var reactNotifications = require('@zendeskgarden/react-notifications');
13
+ var reactDropdowns = require('@zendeskgarden/react-dropdowns');
14
+ var reactForms = require('@zendeskgarden/react-forms');
15
+ var reactGrid = require('@zendeskgarden/react-grid');
11
16
  var reactLoaders = require('@zendeskgarden/react-loaders');
17
+ var formik = require('formik');
18
+ var reactTables = require('@zendeskgarden/react-tables');
19
+ var reactTypography = require('@zendeskgarden/react-typography');
12
20
 
13
21
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
22
 
@@ -45,21 +53,172 @@ function __makeTemplateObject(cooked, raw) {
45
53
  return cooked;
46
54
  }
47
55
 
48
- var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: "#003A57" }), fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }) });
56
+ var palette = __assign(__assign({}, reactTheming.DEFAULT_THEME.palette), { black: "#000", white: "#fff", product: {
57
+ support: "#00a656",
58
+ message: "#37b8af",
59
+ explore: "#30aabc",
60
+ gather: "#f6c8be",
61
+ guide: "#ff6224",
62
+ connect: "#ff6224",
63
+ chat: "#f79a3e",
64
+ talk: "#efc93d",
65
+ sell: "#c38f00",
66
+ }, grey: {
67
+ "100": "#f8f9f9",
68
+ "200": "#e9ebed",
69
+ "300": "#d8dcde",
70
+ "400": "#c2c8cc",
71
+ "500": "#87929d",
72
+ "600": "#68737d",
73
+ "700": "#49545c",
74
+ "800": "#2f3941",
75
+ }, blue: {
76
+ "100": "#E6EBEE",
77
+ "200": "#B0C2CB",
78
+ "300": "#8AA4B2",
79
+ "400": "#547B8E",
80
+ "500": "#336179",
81
+ "600": "#003A57",
82
+ "700": "#00293E",
83
+ "800": "#001825",
84
+ }, red: {
85
+ "100": "#F9E2E1",
86
+ "200": "#F3C5C4",
87
+ "300": "#EA9B99",
88
+ "400": "#E2716F",
89
+ "500": "#DB4D50",
90
+ "600": "#D53032",
91
+ "700": "#A92329",
92
+ "800": "#771823",
93
+ }, yellow: {
94
+ "100": "#FEF6E7",
95
+ "200": "#FDEDCE",
96
+ "300": "#FBE1AC",
97
+ "400": "#F9CF7B",
98
+ "500": "#F7BF50",
99
+ "600": "#F4AC1A",
100
+ "700": "#D1820A",
101
+ "800": "#A15908",
102
+ }, green: {
103
+ "100": "#D7F9E5",
104
+ "200": "#ABF2C7",
105
+ "300": "#7FEBAA",
106
+ "400": "#53E48D",
107
+ "500": "#27DD70",
108
+ "600": "#1CB559",
109
+ "700": "#158944",
110
+ "800": "#0E5D2E",
111
+ }, kale: {
112
+ "100": "#f1f9f3",
113
+ "200": "#d3ecdb",
114
+ "300": "#9fd7b1",
115
+ "400": "#70c38a",
116
+ "500": "#66b17e",
117
+ "600": "#508a62",
118
+ "700": "#3e6b4c",
119
+ "800": "#2f523a",
120
+ }, fuschia: {
121
+ "400": "#d653c2",
122
+ "600": "#a81897",
123
+ M400: "#cf62a8",
124
+ M600: "#a8458c",
125
+ }, pink: {
126
+ "400": "#ec4d63",
127
+ "600": "#d42054",
128
+ M400: "#d57287",
129
+ M600: "#b23a5d",
130
+ }, crimson: {
131
+ "400": "#e34f32",
132
+ "600": "#c72a1c",
133
+ M400: "#cc6c5b",
134
+ M600: "#b24a3c",
135
+ }, orange: {
136
+ "400": "#de701d",
137
+ "600": "#bf5000",
138
+ M400: "#d4772c",
139
+ M600: "#b35827",
140
+ }, lemon: {
141
+ "400": "#ffd424",
142
+ "600": "#ffbb10",
143
+ M400: "#e7a500",
144
+ M600: "#c38f00",
145
+ }, lime: {
146
+ "400": "#43b324",
147
+ "600": "#2e8200",
148
+ M400: "#519e2d",
149
+ M600: "#47782c",
150
+ }, mint: {
151
+ "400": "#00a656",
152
+ "600": "#058541",
153
+ M400: "#299c66",
154
+ M600: "#2e8057",
155
+ }, teal: {
156
+ "400": "#02a191",
157
+ "600": "#028079",
158
+ M400: "#2d9e8f",
159
+ M600: "#3c7873",
160
+ }, azure: {
161
+ "400": "#3091ec",
162
+ "600": "#1371d6",
163
+ M400: "#5f8dcf",
164
+ M600: "#3a70b2",
165
+ }, royal: {
166
+ "400": "#5d7df5",
167
+ "600": "#3353e2",
168
+ M400: "#7986d8",
169
+ M600: "#4b61c3",
170
+ }, purple: {
171
+ "400": "#b552e2",
172
+ "600": "#6a27b8",
173
+ M400: "#b072cc",
174
+ M600: "#9358b0",
175
+ } });
49
176
 
50
- var GlobalStyle = styled.createGlobalStyle(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n \n "], ["\n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n \n "])), theme.fonts.system);
51
- var templateObject_1$3;
177
+ var hex2rgba = function (hex, alpha) {
178
+ if (alpha === void 0) { alpha = 1; }
179
+ var rgb = hex.match(/\w\w/g);
180
+ var _a = rgb ? rgb.map(function (x) { return parseInt(x, 16); }) : [0, 0, 0], r = _a[0], g = _a[1], b = _a[2];
181
+ return "rgba(".concat(r, ",").concat(g, ",").concat(b, ",").concat(alpha, ")");
182
+ };
183
+
184
+ var gradients = {
185
+ horizontal: "linear-gradient(90.81deg, ".concat(hex2rgba(palette.blue[600]), " 11.98%, ").concat(hex2rgba(palette.kale[400]), " 100%);"),
186
+ dark: "linear-gradient(90.81deg, ".concat(hex2rgba(palette.blue[800]), " 0%, ").concat(hex2rgba(palette.blue[600]), " 100%);"),
187
+ };
188
+
189
+ var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), gradients: gradients });
190
+
191
+ var GlobalStyle = styled.createGlobalStyle(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n \n "], ["\n body {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n \n "])), theme.fonts.system);
192
+ var templateObject_1$h;
193
+
194
+ /**
195
+ * Accordions are headers that can be expanded to reveal content or collapsed to hide it.
196
+ * <hr>
197
+ * Used for this:
198
+ - To organize related information into sections
199
+ - To surface information through progressive disclosure
200
+ */
201
+ var Accordion = function (props) { return jsxRuntime.jsx(reactAccordions.Accordion, __assign({}, props)); };
202
+ Accordion.Section = reactAccordions.Accordion.Section;
203
+ Accordion.Header = reactAccordions.Accordion.Header;
204
+ Accordion.Label = reactAccordions.Accordion.Label;
205
+ Accordion.Panel = reactAccordions.Accordion.Panel;
52
206
 
53
- var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""])));
207
+ var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (props) {
208
+ return "\n background: ".concat(props.backgroundColor || theme.gradients.dark, ";\n ");
209
+ });
54
210
  /**
55
211
  * An Avatar is a visual way to represent a person or brand in the product. They can display text, icons, or images.
56
212
  * <hr>
57
213
  * Used for this:
58
214
  - To visually represent a person, brand, or product
59
215
  */
60
- var Avatar = function (props) { return jsxRuntime.jsx(UgAvatar, __assign({}, props)); };
216
+ var Avatar = function (props) {
217
+ var fixedBadge = props.badge && props.badge > 9 ? "9+" : props.badge;
218
+ return jsxRuntime.jsx(UgAvatar, __assign({}, props, { badge: fixedBadge }));
219
+ };
61
220
  Avatar.Text = UgAvatar.Text;
62
- var templateObject_1$2;
221
+ var templateObject_1$g;
63
222
 
64
223
  /**
65
224
  * Breadcrumbs mark and communicate a user’s location in the product.
@@ -70,7 +229,17 @@ var templateObject_1$2;
70
229
  */
71
230
  var Breadcrumb = function (props) { return jsxRuntime.jsx(reactBreadcrumbs.Breadcrumb, __assign({}, props)); };
72
231
 
73
- var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject([""], [""])));
232
+ /**
233
+ * The Anchor is a link that helps users navigate from one location to another.
234
+ * <hr>
235
+ * Used for this:
236
+ - To navigate from one page to another
237
+ - To navigate within a page
238
+ - To display links alongside text
239
+ */
240
+ var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
241
+
242
+ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$f || (templateObject_1$f = __makeTemplateObject([""], [""])));
74
243
  /**
75
244
  * Buttons let users take action quickly.
76
245
  * Use a Button to enable actions or decisions that are important to a user’s workflow.
@@ -82,17 +251,7 @@ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$
82
251
  var Button = function (props) { return jsxRuntime.jsx(UgButton, __assign({}, props)); };
83
252
  Button.StartIcon = UgButton.StartIcon;
84
253
  Button.EndIcon = UgButton.EndIcon;
85
- var templateObject_1$1;
86
-
87
- /**
88
- * The Anchor is a link that helps users navigate from one location to another.
89
- * <hr>
90
- * Used for this:
91
- - To navigate from one page to another
92
- - To navigate within a page
93
- - To display links alongside text
94
- */
95
- var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
254
+ var templateObject_1$f;
96
255
 
97
256
  /**
98
257
  A Button group lets users make a selection from a set of options.
@@ -122,7 +281,157 @@ Used for this:
122
281
  **/
123
282
  var SplitButton = function (props) { return (jsxRuntime.jsx(reactButtons.SplitButton, __assign({}, props))); };
124
283
 
125
- var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
284
+ /**
285
+ * A Card is a container that groups related content.
286
+ * <hr>
287
+ * Used for this:
288
+ - To group related content
289
+ */
290
+ var Card = function (props) { return jsxRuntime.jsx(reactNotifications.Well, __assign({}, props)); };
291
+
292
+ /**
293
+ * Title is a basic component used to display a title. Often used in card headers.
294
+ */
295
+ var Close = function (props) { return jsxRuntime.jsx(reactNotifications.Close, __assign({}, props)); };
296
+
297
+ var UgField$1 = styled__default["default"](reactDropdowns.Field)(templateObject_1$e || (templateObject_1$e = __makeTemplateObject([""], [""])));
298
+ var Field$1 = function (props) { return jsxRuntime.jsx(UgField$1, __assign({}, props)); };
299
+ var templateObject_1$e;
300
+
301
+ var index$1 = /*#__PURE__*/Object.freeze({
302
+ __proto__: null,
303
+ Field: Field$1
304
+ });
305
+
306
+ var UgItem = styled__default["default"](reactDropdowns.Item)(templateObject_1$d || (templateObject_1$d = __makeTemplateObject([""], [""])));
307
+ var Item = function (props) { return jsxRuntime.jsx(UgItem, __assign({}, props)); };
308
+ var templateObject_1$d;
309
+
310
+ var UgMenu = styled__default["default"](reactDropdowns.Menu)(templateObject_1$c || (templateObject_1$c = __makeTemplateObject([""], [""])));
311
+ /**
312
+ * A Menu is a wrapper for items elements
313
+ **/
314
+ var Menu = function (props) { return jsxRuntime.jsx(UgMenu, __assign({}, props)); };
315
+ var templateObject_1$c;
316
+
317
+ /**
318
+ * Multiselect lets users select multiple items from a list. Options are dynamically filtered as a user types in the input field and their selections appear as tags in the input field.
319
+ * <hr>
320
+ * Used for this:
321
+ - To choose multiple items from a list of options
322
+ - To filter through a set of data by typing
323
+ */
324
+ var Multiselect = function (props) { return (jsxRuntime.jsx(reactDropdowns.Multiselect, __assign({}, props))); };
325
+
326
+ /**
327
+ * Select allows a user to pick one option from a list. This helps simplify the UI when space is limited
328
+ * <hr>
329
+ * Used for this:
330
+ - To make a selection from a list of options
331
+ * Not for this:
332
+ - To filter a large list of options, use Autocomplete instead
333
+ - To make multiple selections from a list, use Multiselect instead
334
+ - To select from a list on mobile, use a native Select instead
335
+ */
336
+ var Select = function (props) { return jsxRuntime.jsx(reactDropdowns.Select, __assign({}, props)); };
337
+ var Dropdown = function (props) { return jsxRuntime.jsx(reactDropdowns.Dropdown, __assign({}, props)); };
338
+ var Message = function (props) { return jsxRuntime.jsx(reactDropdowns.Message, __assign({}, props)); };
339
+
340
+ var UgCheckbox = styled__default["default"](reactForms.Checkbox)(templateObject_1$b || (templateObject_1$b = __makeTemplateObject([""], [""])));
341
+ /**
342
+ * A Checkbox lets users select and unselect options from a list.
343
+ * <hr>
344
+ * Used for this:
345
+ * - To let users compare options from a list and select all, any, or none of those items
346
+ * - To turn a single option on or off
347
+ * Not for this:
348
+ * - To give the user a mutually exclusive choice, use the Radio component instead
349
+ * - To let users activate an option that takes effect immediately, use a Toggle instead
350
+ **/
351
+ var Checkbox = function (props) { return jsxRuntime.jsx(UgCheckbox, __assign({}, props)); };
352
+ var templateObject_1$b;
353
+
354
+ var UgField = styled__default["default"](reactForms.Field)(templateObject_1$a || (templateObject_1$a = __makeTemplateObject([""], [""])));
355
+ /**
356
+ * A Field is a wrapper for input elements
357
+ **/
358
+ var Field = function (props) { return jsxRuntime.jsx(UgField, __assign({}, props)); };
359
+ var templateObject_1$a;
360
+
361
+ var index = /*#__PURE__*/Object.freeze({
362
+ __proto__: null,
363
+ Field: Field
364
+ });
365
+
366
+ var UgInput = styled__default["default"](reactForms.Input)(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject([""], [""])));
367
+ /**
368
+ * An Input lets users enter text into a field.
369
+ * <hr>
370
+ * Used for this:
371
+ * - To let the user enter data into a field
372
+ * - To enter multiline text, use a Textarea
373
+ **/
374
+ var Input = function (props) { return jsxRuntime.jsx(UgInput, __assign({}, props)); };
375
+ var templateObject_1$9;
376
+
377
+ var UgRadio = styled__default["default"](reactForms.Radio)(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject([""], [""])));
378
+ /**
379
+ * Radio buttons let users choose a single option among two or more mutually exclusive options.
380
+ * <hr>
381
+ * Used for this:
382
+ * - For choices or options that can't occur at the same time
383
+ * - To indicate that two or more options are mutually exclusive
384
+ * Not for this:
385
+ * - If the user can choose more than one option at once, use a Checkbox instead
386
+ * - To select from a long list of options, use Select instead
387
+ **/
388
+ var Radio = function (props) { return jsxRuntime.jsx(UgRadio, __assign({}, props)); };
389
+ var templateObject_1$8;
390
+
391
+ var UgTextarea = styled__default["default"](reactForms.Textarea)(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject([""], [""])));
392
+ /**
393
+ * A Textarea is a form control for multi-line text.
394
+ * <hr>
395
+ * Used for this:
396
+ * - To enter multi-line text
397
+ **/
398
+ var Textarea = function (props) { return jsxRuntime.jsx(UgTextarea, __assign({}, props)); };
399
+ var templateObject_1$7;
400
+
401
+ var UgToggle = styled__default["default"](reactForms.Toggle)(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject([""], [""])));
402
+ /**
403
+ * A Toggle lets users turn something on and off like a light switch. Unlike a Checkbox, which is used for selection, a Toggle is used for activation.
404
+ * <hr>
405
+ * Used for this:
406
+ * - To see or compare the results of a settings change
407
+ * - To activate a mode (such as "dark mode") which takes immediate effect
408
+ * Not for this:
409
+ * - To let users select from a list of settings, use Checkboxes instead
410
+ **/
411
+ var Toggle = function (props) { return jsxRuntime.jsx(UgToggle, __assign({}, props)); };
412
+ var templateObject_1$6;
413
+
414
+ var Col = function (props) { return jsxRuntime.jsx(reactGrid.Col, __assign({}, props)); };
415
+
416
+ var Row = function (props) { return jsxRuntime.jsx(reactGrid.Row, __assign({}, props)); };
417
+
418
+ /**
419
+ * The Grid component is a framework for building modular layouts.
420
+ * <hr>
421
+ * Used for this:
422
+ - To structure the layout of a page
423
+ */
424
+ var Grid = function (props) { return jsxRuntime.jsx(reactGrid.Grid, __assign({}, props)); };
425
+
426
+ var UgLabel = styled__default["default"](reactForms.Label)(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject([""], [""])));
427
+ /**
428
+ * A Label is used to specify a title for an input.
429
+ * <hr>
430
+ **/
431
+ var Label = function (props) { return jsxRuntime.jsx(UgLabel, __assign({}, props)); };
432
+ var templateObject_1$5;
433
+
434
+ var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject([""], [""])));
126
435
  /**
127
436
  * Breadcrumbs mark and communicate a user’s location in the product.
128
437
  * <hr>
@@ -131,15 +440,173 @@ var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_
131
440
  - To provide a quick way to navigate to ancestor pages
132
441
  */
133
442
  var Spinner = function (props) { return jsxRuntime.jsx(UgSpinner, __assign({}, props)); };
443
+ var templateObject_1$4;
444
+
445
+ /**
446
+ * Title is a basic component used to display a title. Often used in card headers.
447
+ */
448
+ var Title = function (props) { return jsxRuntime.jsx(reactNotifications.Title, __assign({}, props)); };
449
+
450
+ /**
451
+ * Login Form
452
+ * <hr>
453
+ * Used for this:
454
+ - Login user to the application
455
+ */
456
+ var LoginForm = function (props) { return (jsxRuntime.jsx(formik.Formik, __assign({}, props, { initialValues: props.initialValues, onSubmit: props.onSubmit, validate: props.validate }, { children: function (_a) {
457
+ var values = _a.values, errors = _a.errors, touched = _a.touched, handleChange = _a.handleChange, handleSubmit = _a.handleSubmit, isSubmitting = _a.isSubmitting;
458
+ return (jsxRuntime.jsx(formik.Form, __assign({ onSubmit: handleSubmit }, { children: jsxRuntime.jsxs(Card, __assign({ isFloating: true }, { children: [jsxRuntime.jsx(Title, __assign({ style: { textAlign: "center", margin: theme.space.md } }, { children: props.title })), jsxRuntime.jsxs(Field, { children: [jsxRuntime.jsx(Input, __assign({ type: "email", name: "email", placeholder: props.placeholderEmail, onChange: handleChange, value: values.email }, touched && values.email ? touched.email = true : touched.email = false, errors && errors.email ? { validation: "error" } : (touched.email ? { validation: "success" } : ""))), (errors.email) ? (jsxRuntime.jsx(Message, __assign({ validation: "error" }, { children: errors.email }))) : ""] }), jsxRuntime.jsxs(Field, __assign({ style: { marginTop: theme.space.md } }, { children: [jsxRuntime.jsx(Input, __assign({ type: "password", name: "password", placeholder: props.placeholderPassword, onChange: handleChange, value: values.password }, touched && values.password ? touched.password = true : touched.password = false, errors && errors.password ? { validation: "error" } : (touched.password ? { validation: "success" } : ""))), (errors.password) ? (jsxRuntime.jsx(Message, __assign({ validation: "error" }, { children: errors.password }))) : ""] })), jsxRuntime.jsx("br", {}), jsxRuntime.jsx(Button, __assign({ type: "submit", isStretched: true, disabled: (Object.keys(errors).length) ? true : (isSubmitting) ? true : false, isPrimary: true }, { children: props.buttonText }))] })) })));
459
+ } }))); };
460
+
461
+ /**
462
+ * A Notification is a passive status update that keeps users informed of system progress.
463
+ * <hr>
464
+ * Used for this:
465
+ - For a passive status update about user or system activity
466
+ */
467
+ var Notification = function (props) { return (jsxRuntime.jsx(reactNotifications.Notification, __assign({}, props))); };
468
+ //Extras
469
+ var ToastProvider = function (props) { return jsxRuntime.jsx(reactNotifications.ToastProvider, __assign({}, props)); };
470
+ var useToast = reactNotifications.useToast;
471
+
472
+ var UgTable = styled__default["default"](reactTables.Table)(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([""], [""])));
473
+ /**
474
+ * A Table organizes data into columns and rows. Tables make it easier for users to compare and analyze information.
475
+
476
+ * Used for this:
477
+ - To organize and display read-only data with logical relationships
478
+
479
+ * Not for this:
480
+ - To structure content on a page, use the Grid component instead
481
+ */
482
+ var Table = function (props) { return jsxRuntime.jsx(UgTable, __assign({}, props)); };
483
+ // Extras
484
+ var Head = function (props) { return jsxRuntime.jsx(reactTables.Head, __assign({}, props)); };
485
+ var HeaderRow = function (props) { return jsxRuntime.jsx(reactTables.HeaderRow, __assign({}, props)); };
486
+ var HeaderCell = function (props) { return jsxRuntime.jsx(reactTables.HeaderCell, __assign({}, props)); };
487
+ var Body = function (props) { return jsxRuntime.jsx(reactTables.Body, __assign({}, props)); };
488
+ var Cell = function (props) { return jsxRuntime.jsx(reactTables.Cell, __assign({}, props)); };
489
+ var GroupRow = function (props) { return jsxRuntime.jsx(reactTables.GroupRow, __assign({}, props)); };
490
+ var Caption = function (props) { return jsxRuntime.jsx(reactTables.Caption, __assign({}, props)); };
491
+ var templateObject_1$3;
492
+
493
+ /**
494
+ * A Trigger is a wrapper for input elements
495
+ **/
496
+ var Trigger = function (props) { return jsxRuntime.jsx(reactDropdowns.Trigger, __assign({}, props)); };
497
+
498
+ /**
499
+ * Use Blockquote to represent a body of text that is from another source.
500
+ */
501
+ var Blockquote = function (props) { return jsxRuntime.jsx(reactTypography.Blockquote, __assign({}, props)); };
502
+
503
+ var UgCode = styled__default["default"](reactTypography.Code)(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""])));
504
+ /**
505
+ * Use Code to style and format inline fragments of computer code.
506
+ */
507
+ var Code = function (props) { return jsxRuntime.jsx(UgCode, __assign({}, props)); };
508
+ var templateObject_1$2;
509
+
510
+ /**
511
+ * Use Ellipsis to automatically provide text content with a native title attribute and text-overflow styling.
512
+ */
513
+ var Ellipsis = function (props) { return jsxRuntime.jsx(reactTypography.Ellipsis, __assign({}, props)); };
514
+
515
+ var UgOrderedList = styled__default["default"](reactTypography.OrderedList)(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject([""], [""])));
516
+ var UgUnorderedList = styled__default["default"](reactTypography.UnorderedList)(templateObject_2 || (templateObject_2 = __makeTemplateObject([""], [""])));
517
+ /**
518
+ * Use Lists to style and format ordered and unordered lists.
519
+ * <hr>
520
+ * Use Lists to style and format ordered (`<ol>`) and unordered (`<ul>`) lists.
521
+ */
522
+ var OrderedList = function (props) { return jsxRuntime.jsx(UgOrderedList, __assign({}, props)); };
523
+ OrderedList.Item = UgOrderedList.Item;
524
+ var UnorderedList = function (props) { return jsxRuntime.jsx(UgUnorderedList, __assign({}, props)); };
525
+ UnorderedList.Item = UgUnorderedList.Item;
526
+ var templateObject_1$1, templateObject_2;
527
+
528
+ var UgParagraph = styled__default["default"](reactTypography.Paragraph)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
529
+ /**
530
+ * Use Paragraph to render blocks of text with Garden styling.
531
+ */
532
+ var Paragraph = function (props) { return jsxRuntime.jsx(UgParagraph, __assign({}, props)); };
134
533
  var templateObject_1;
135
534
 
535
+ /**
536
+ * Use Span to style and format inline text elements.
537
+ * <hr>
538
+ * Used for this:
539
+ - To apply styles to short strings of text
540
+ - To include icons inline with text
541
+ * Not for this:
542
+ - To style an entire block of text, use Paragraph instead
543
+ */
544
+ var Span = function (props) { return jsxRuntime.jsx(reactTypography.Span, __assign({}, props)); };
545
+
546
+ /**
547
+ * Type components come in small, medium, large, extra-large, extra-extra-large, and extra-extra-extra-large.
548
+ */
549
+ var SM = function (props) { return jsxRuntime.jsx(reactTypography.SM, __assign({}, props)); };
550
+ var MD = function (props) { return jsxRuntime.jsx(reactTypography.MD, __assign({}, props)); };
551
+ var LG = function (props) { return jsxRuntime.jsx(reactTypography.LG, __assign({}, props)); };
552
+ var XL = function (props) { return jsxRuntime.jsx(reactTypography.XL, __assign({}, props)); };
553
+ var XXL = function (props) { return jsxRuntime.jsx(reactTypography.XXL, __assign({}, props)); };
554
+ var XXXL = function (props) { return jsxRuntime.jsx(reactTypography.XXXL, __assign({}, props)); };
555
+
556
+ exports.Accordion = Accordion;
136
557
  exports.Anchor = Anchor;
137
558
  exports.Avatar = Avatar;
559
+ exports.Blockquote = Blockquote;
138
560
  exports.Breadcrumb = Breadcrumb;
139
561
  exports.Button = Button;
140
562
  exports.ButtonGroup = ButtonGroup;
563
+ exports.Caption = Caption;
564
+ exports.Card = Card;
565
+ exports.Checkbox = Checkbox;
566
+ exports.Close = Close;
567
+ exports.Code = Code;
568
+ exports.Col = Col;
569
+ exports.Dropdown = Dropdown;
570
+ exports.DropdownField = index$1;
571
+ exports.Ellipsis = Ellipsis;
572
+ exports.FormField = index;
141
573
  exports.GlobalStyle = GlobalStyle;
574
+ exports.Grid = Grid;
575
+ exports.GroupRow = GroupRow;
576
+ exports.HeaderCell = HeaderCell;
577
+ exports.HeaderRow = HeaderRow;
142
578
  exports.IconButton = IconButton;
579
+ exports.Input = Input;
580
+ exports.Item = Item;
581
+ exports.LG = LG;
582
+ exports.Label = Label;
583
+ exports.LoginForm = LoginForm;
584
+ exports.MD = MD;
585
+ exports.Menu = Menu;
586
+ exports.Message = Message;
587
+ exports.Multiselect = Multiselect;
588
+ exports.Notification = Notification;
589
+ exports.OrderedList = OrderedList;
590
+ exports.Paragraph = Paragraph;
591
+ exports.Radio = Radio;
592
+ exports.Row = Row;
593
+ exports.SM = SM;
594
+ exports.Select = Select;
595
+ exports.Span = Span;
143
596
  exports.Spinner = Spinner;
144
597
  exports.SplitButton = SplitButton;
598
+ exports.Table = Table;
599
+ exports.TableCell = Cell;
600
+ exports.TableHead = Head;
601
+ exports.TableRow = Body;
602
+ exports.Textarea = Textarea;
603
+ exports.Title = Title;
604
+ exports.ToastProvider = ToastProvider;
605
+ exports.Toggle = Toggle;
606
+ exports.Trigger = Trigger;
607
+ exports.UnorderedList = UnorderedList;
608
+ exports.XL = XL;
609
+ exports.XXL = XXL;
610
+ exports.XXXL = XXXL;
145
611
  exports.theme = theme;
612
+ exports.useToast = useToast;
@@ -10,6 +10,7 @@ interface AccordionStoryArg extends AccordionArgs {
10
10
  export declare const Default: Story<AccordionStoryArg>;
11
11
  export declare const Bare: Story<AccordionStoryArg>;
12
12
  export declare const Expandable: Story<AccordionStoryArg>;
13
+ export declare const Compact: Story<AccordionStoryArg>;
13
14
  declare const _default: ComponentMeta<{
14
15
  (props: AccordionArgs): JSX.Element;
15
16
  Section: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { AvatarArgs } from './_types';
2
+ import { AvatarArgs } from "./_types";
3
3
  /**
4
4
  * An Avatar is a visual way to represent a person or brand in the product. They can display text, icons, or images.
5
5
  * <hr>
@@ -0,0 +1,2 @@
1
+ export interface FieldArgs {
2
+ }
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { FieldArgs } from "./_types";
3
+ declare const Field: (props: FieldArgs) => JSX.Element;
4
+ export { Field };
@@ -0,0 +1,9 @@
1
+ import { IItemProps } from "@zendeskgarden/react-dropdowns";
2
+ export interface ItemArgs extends IItemProps {
3
+ /** Sets the value that is returned upon selection */
4
+ value?: any;
5
+ /** Indicates that the element is not interactive */
6
+ disabled?: boolean;
7
+ /** Applies danger styling */
8
+ isDanger?: boolean;
9
+ }