@appquality/unguess-design-system 2.0.0 → 2.3.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.
Files changed (92) hide show
  1. package/.github/workflows/storybook.yml +37 -0
  2. package/CHANGELOG.md +122 -0
  3. package/README.md +53 -26
  4. package/build/index.d.ts +6 -0
  5. package/build/index.js +86 -6
  6. package/build/stories/accordions/_types.d.ts +25 -0
  7. package/build/stories/accordions/index.d.ts +17 -0
  8. package/build/stories/accordions/index.stories.d.ts +20 -0
  9. package/build/stories/avatar/_types.d.ts +17 -0
  10. package/build/stories/avatar/index.d.ts +13 -0
  11. package/build/stories/avatar/index.stories.d.ts +13 -0
  12. package/build/stories/breadcrumbs/_types.d.ts +5 -0
  13. package/build/stories/breadcrumbs/index.d.ts +11 -0
  14. package/build/stories/breadcrumbs/index.stories.d.ts +6 -0
  15. package/build/stories/buttons/anchor/_types.d.ts +8 -0
  16. package/build/stories/buttons/anchor/index.d.ts +8 -0
  17. package/build/stories/buttons/button/_types.d.ts +17 -3
  18. package/build/stories/buttons/button/index.d.ts +6 -2
  19. package/build/stories/buttons/button-group/_types.d.ts +2 -0
  20. package/build/stories/buttons/button-group/index.d.ts +1 -1
  21. package/build/stories/buttons/button-group/index.stories.d.ts +4 -0
  22. package/build/stories/buttons/icon-button/_types.d.ts +19 -0
  23. package/build/stories/buttons/icon-button/index.d.ts +14 -0
  24. package/build/stories/buttons/icon-button/index.stories.d.ts +9 -0
  25. package/build/stories/buttons/split-button/_types.d.ts +2 -0
  26. package/build/stories/buttons/split-button/index.d.ts +11 -0
  27. package/build/stories/buttons/split-button/index.stories.d.ts +6 -0
  28. package/build/stories/cards/_types.d.ts +7 -0
  29. package/build/stories/cards/index.d.ts +10 -0
  30. package/build/stories/cards/index.stories.d.ts +11 -0
  31. package/build/stories/close/_types.d.ts +3 -0
  32. package/build/stories/close/index.d.ts +7 -0
  33. package/build/stories/close/index.stories.d.ts +6 -0
  34. package/build/stories/dropdowns/select/_types.d.ts +27 -0
  35. package/build/stories/dropdowns/select/index.d.ts +0 -0
  36. package/build/stories/dropdowns/select/index.stories.d.ts +0 -0
  37. package/build/stories/field/_types.d.ts +3 -0
  38. package/build/stories/field/index.d.ts +7 -0
  39. package/build/stories/field/index.stories.d.ts +6 -0
  40. package/build/stories/forms/checkbox/_types.d.ts +8 -0
  41. package/build/stories/forms/checkbox/index.d.ts +14 -0
  42. package/build/stories/forms/checkbox/index.stories.d.ts +6 -0
  43. package/build/stories/forms/input/_types.d.ts +9 -0
  44. package/build/stories/forms/input/index.d.ts +11 -0
  45. package/build/stories/forms/input/index.stories.d.ts +9 -0
  46. package/build/stories/grid/col/_types.d.ts +77 -0
  47. package/build/stories/grid/col/index.d.ts +4 -0
  48. package/build/stories/grid/col/index.stories.d.ts +8 -0
  49. package/build/stories/grid/grid/_types.d.ts +9 -0
  50. package/build/stories/grid/grid/index.d.ts +10 -0
  51. package/build/stories/grid/grid/index.stories.d.ts +12 -0
  52. package/build/stories/grid/row/_types.d.ts +48 -0
  53. package/build/stories/grid/row/index.d.ts +4 -0
  54. package/build/stories/grid/row/index.stories.d.ts +10 -0
  55. package/build/stories/label/_types.d.ts +5 -0
  56. package/build/stories/label/index.d.ts +8 -0
  57. package/build/stories/label/index.stories.d.ts +7 -0
  58. package/build/stories/loaders/progress/_types.d.ts +12 -0
  59. package/build/stories/loaders/progress/index.d.ts +14 -0
  60. package/build/stories/loaders/progress/index.stories.d.ts +6 -0
  61. package/build/stories/loaders/skeleton/_types.d.ts +9 -0
  62. package/build/stories/loaders/skeleton/index.d.ts +17 -0
  63. package/build/stories/loaders/skeleton/index.stories.d.ts +7 -0
  64. package/build/stories/loaders/spinner/_types.d.ts +19 -0
  65. package/build/stories/loaders/spinner/index.d.ts +11 -0
  66. package/build/stories/loaders/spinner/index.stories.d.ts +6 -0
  67. package/build/stories/notifications/_types.d.ts +9 -0
  68. package/build/stories/notifications/index.d.ts +20 -0
  69. package/build/stories/notifications/index.stories.d.ts +10 -0
  70. package/build/stories/title/_types.d.ts +5 -0
  71. package/build/stories/title/index.d.ts +7 -0
  72. package/build/stories/title/index.stories.d.ts +6 -0
  73. package/build/stories/typography/block-quote/_types.d.ts +5 -0
  74. package/build/stories/typography/block-quote/index.d.ts +7 -0
  75. package/build/stories/typography/block-quote/index.stories.d.ts +5 -0
  76. package/build/stories/typography/code/_types.d.ts +7 -0
  77. package/build/stories/typography/code/index.d.ts +7 -0
  78. package/build/stories/typography/code/index.stories.d.ts +8 -0
  79. package/build/stories/typography/ellipsis/_types.d.ts +9 -0
  80. package/build/stories/typography/ellipsis/index.d.ts +7 -0
  81. package/build/stories/typography/ellipsis/index.stories.d.ts +5 -0
  82. package/build/stories/typography/lists/_types.d.ts +17 -0
  83. package/build/stories/typography/lists/index.d.ts +16 -0
  84. package/build/stories/typography/lists/ordered.stories.d.ts +9 -0
  85. package/build/stories/typography/lists/unordered.stories.d.ts +9 -0
  86. package/build/stories/typography/paragraph/_types.d.ts +5 -0
  87. package/build/stories/typography/paragraph/index.d.ts +7 -0
  88. package/build/stories/typography/paragraph/ordered.stories.d.ts +6 -0
  89. package/build/stories/typography/typescale/_types.d.ts +43 -0
  90. package/build/stories/typography/typescale/index.d.ts +12 -0
  91. package/build/stories/typography/typescale/index.stories.d.ts +5 -0
  92. package/package.json +25 -4
@@ -0,0 +1,37 @@
1
+ # This is a basic workflow to help you get started with Actions
2
+
3
+ name: Publish storybook
4
+
5
+ # The event that will trigger the action
6
+ on:
7
+ # push:
8
+ # branches: [master]
9
+ # pull_request:
10
+ # branches: [master]
11
+ # Allows you to run this workflow manually from the Actions tab
12
+ workflow_dispatch:
13
+
14
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
15
+ jobs:
16
+ # This workflow contains a single job called "build"
17
+ build:
18
+ # The type of runner that the job will run on
19
+ runs-on: ubuntu-latest
20
+ if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
21
+
22
+ # Steps represent a sequence of tasks that will be executed as part of the job
23
+ steps:
24
+ - uses: actions/checkout@v2
25
+ with:
26
+ fetch-depth: 0
27
+ - name: Use Node.js 14.x
28
+ uses: actions/setup-node@v2
29
+ with:
30
+ node-version: "14"
31
+
32
+ - name: Publish storybook
33
+ id: storybook
34
+ run: |
35
+ yarn --frozen-lockfile
36
+ yarn run build
37
+ npx chromatic --project-token ${{ secrets.CHROMATIC_TOKEN }} --exit-zero-on-changes --ci
package/CHANGELOG.md CHANGED
@@ -1,3 +1,125 @@
1
+ # v2.2.0 (Tue Mar 15 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - feat(tiles): add tiles component [#12](https://github.com/AppQuality/unguess-design-system/pull/12) ([@antoninojob](https://github.com/antoninojob))
6
+ - Login form [#15](https://github.com/AppQuality/unguess-design-system/pull/15) ([@marcbon](https://github.com/marcbon) [@cannarocks](https://github.com/cannarocks))
7
+ - Feat/improve storybook experience [#14](https://github.com/AppQuality/unguess-design-system/pull/14) ([@cannarocks](https://github.com/cannarocks))
8
+
9
+ #### 🐛 Bug Fix
10
+
11
+ - fix(table): changed types definition for extras elements [#13](https://github.com/AppQuality/unguess-design-system/pull/13) ([@antoninojob](https://github.com/antoninojob))
12
+ - Cup 438 table [#10](https://github.com/AppQuality/unguess-design-system/pull/10) ([@antoninojob](https://github.com/antoninojob))
13
+ - feat(tag): add tag component [#11](https://github.com/AppQuality/unguess-design-system/pull/11) ([@antoninojob](https://github.com/antoninojob))
14
+
15
+ #### ⚠️ Pushed to `master`
16
+
17
+ - fix(export): prevent naming conflicts ([@cannarocks](https://github.com/cannarocks))
18
+ - feat(loginform): add basic Login Form ([@cannarocks](https://github.com/cannarocks))
19
+
20
+ #### Authors: 3
21
+
22
+ - Antonino ([@antoninojob](https://github.com/antoninojob))
23
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
24
+ - Marco Bonomo ([@marcbon](https://github.com/marcbon))
25
+
26
+ ---
27
+
28
+ # v2.2.0 (Tue Mar 15 2022)
29
+
30
+ #### 🚀 Enhancement
31
+
32
+ - feat(tiles): add tiles component [#12](https://github.com/AppQuality/unguess-design-system/pull/12) ([@antoninojob](https://github.com/antoninojob))
33
+ - Login form [#15](https://github.com/AppQuality/unguess-design-system/pull/15) ([@marcbon](https://github.com/marcbon) [@cannarocks](https://github.com/cannarocks))
34
+ - Feat/improve storybook experience [#14](https://github.com/AppQuality/unguess-design-system/pull/14) ([@cannarocks](https://github.com/cannarocks))
35
+
36
+ #### 🐛 Bug Fix
37
+
38
+ - fix(table): changed types definition for extras elements [#13](https://github.com/AppQuality/unguess-design-system/pull/13) ([@antoninojob](https://github.com/antoninojob))
39
+ - Cup 438 table [#10](https://github.com/AppQuality/unguess-design-system/pull/10) ([@antoninojob](https://github.com/antoninojob))
40
+ - feat(tag): add tag component [#11](https://github.com/AppQuality/unguess-design-system/pull/11) ([@antoninojob](https://github.com/antoninojob))
41
+
42
+ #### ⚠️ Pushed to `master`
43
+
44
+ - fix(export): prevent naming conflicts ([@cannarocks](https://github.com/cannarocks))
45
+ - feat(loginform): add basic Login Form ([@cannarocks](https://github.com/cannarocks))
46
+
47
+ #### Authors: 3
48
+
49
+ - [@marcbon](https://github.com/marcbon)
50
+ - Antonino ([@antoninojob](https://github.com/antoninojob))
51
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
52
+
53
+ ---
54
+
55
+ # v2.1.0 (Fri Mar 11 2022)
56
+
57
+ #### 🚀 Enhancement
58
+
59
+ - Cup 431 form [#8](https://github.com/AppQuality/unguess-design-system/pull/8) ([@marcbon](https://github.com/marcbon) [@cannarocks](https://github.com/cannarocks))
60
+ - feat(multiselect): add multiselect and palette story [#9](https://github.com/AppQuality/unguess-design-system/pull/9) ([@cannarocks](https://github.com/cannarocks))
61
+ - Cup 433 loaders [#7](https://github.com/AppQuality/unguess-design-system/pull/7) ([@marcbon](https://github.com/marcbon))
62
+ - Cup 446 wells [#6](https://github.com/AppQuality/unguess-design-system/pull/6) ([@cannarocks](https://github.com/cannarocks))
63
+ - add avatar component [#5](https://github.com/AppQuality/unguess-design-system/pull/5) ([@marcbon](https://github.com/marcbon))
64
+ - Cup 424 accordion [#4](https://github.com/AppQuality/unguess-design-system/pull/4) ([@cannarocks](https://github.com/cannarocks))
65
+ - Typography components [#3](https://github.com/AppQuality/unguess-design-system/pull/3) ([@cannarocks](https://github.com/cannarocks))
66
+
67
+ #### ⚠️ Pushed to `master`
68
+
69
+ - feat(storybook): add Unguess theme ([@cannarocks](https://github.com/cannarocks))
70
+ - feat(intro): add intro page story ([@cannarocks](https://github.com/cannarocks))
71
+ - fix(field): fix wrong import for form field component ([@cannarocks](https://github.com/cannarocks))
72
+ - fix(field): restore form field component ([@cannarocks](https://github.com/cannarocks))
73
+ - build(storybook): update Github action used to publish component build ([@cannarocks](https://github.com/cannarocks))
74
+ - refactor(stories): move molecules under right group ([@cannarocks](https://github.com/cannarocks))
75
+ - Merge branch 'CUP-430-dropdowns' ([@cannarocks](https://github.com/cannarocks))
76
+ - fix(palette): remove useless import ([@cannarocks](https://github.com/cannarocks))
77
+ - Create storybook.yml ([@cannarocks](https://github.com/cannarocks))
78
+ - refactor(notifications): remove unused imports ([@cannarocks](https://github.com/cannarocks))
79
+ - feat(notifications): add notification component ([@cannarocks](https://github.com/cannarocks))
80
+ - fix avatars description ([@marcbon](https://github.com/marcbon))
81
+
82
+ #### Authors: 2
83
+
84
+ - [@marcbon](https://github.com/marcbon)
85
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
86
+
87
+ ---
88
+
89
+ # v2.1.0 (Fri Mar 11 2022)
90
+
91
+ #### 🚀 Enhancement
92
+
93
+ - Cup 431 form [#8](https://github.com/AppQuality/unguess-design-system/pull/8) ([@marcbon](https://github.com/marcbon) [@cannarocks](https://github.com/cannarocks))
94
+ - feat(multiselect): add multiselect and palette story [#9](https://github.com/AppQuality/unguess-design-system/pull/9) ([@cannarocks](https://github.com/cannarocks))
95
+ - Cup 433 loaders [#7](https://github.com/AppQuality/unguess-design-system/pull/7) ([@marcbon](https://github.com/marcbon))
96
+ - Cup 446 wells [#6](https://github.com/AppQuality/unguess-design-system/pull/6) ([@cannarocks](https://github.com/cannarocks))
97
+ - add avatar component [#5](https://github.com/AppQuality/unguess-design-system/pull/5) ([@marcbon](https://github.com/marcbon))
98
+ - Cup 424 accordion [#4](https://github.com/AppQuality/unguess-design-system/pull/4) ([@cannarocks](https://github.com/cannarocks))
99
+ - Typography components [#3](https://github.com/AppQuality/unguess-design-system/pull/3) ([@cannarocks](https://github.com/cannarocks))
100
+
101
+ #### ⚠️ Pushed to `master`
102
+
103
+ - feat(storybook): add Unguess theme ([@cannarocks](https://github.com/cannarocks))
104
+ - feat(intro): add intro page story ([@cannarocks](https://github.com/cannarocks))
105
+ - fix(field): fix wrong import for form field component ([@cannarocks](https://github.com/cannarocks))
106
+ - fix(field): restore form field component ([@cannarocks](https://github.com/cannarocks))
107
+ - build(storybook): update Github action used to publish component build ([@cannarocks](https://github.com/cannarocks))
108
+ - refactor(stories): move molecules under right group ([@cannarocks](https://github.com/cannarocks))
109
+ - Merge branch 'CUP-430-dropdowns' ([@cannarocks](https://github.com/cannarocks))
110
+ - fix(palette): remove useless import ([@cannarocks](https://github.com/cannarocks))
111
+ - Create storybook.yml ([@cannarocks](https://github.com/cannarocks))
112
+ - refactor(notifications): remove unused imports ([@cannarocks](https://github.com/cannarocks))
113
+ - feat(notifications): add notification component ([@cannarocks](https://github.com/cannarocks))
114
+ - fix avatars description ([@marcbon](https://github.com/marcbon))
115
+
116
+ #### Authors: 2
117
+
118
+ - [@marcbon](https://github.com/marcbon)
119
+ - Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
120
+
121
+ ---
122
+
1
123
  # v1.0.0 (Fri Mar 04 2022)
2
124
 
3
125
  #### 💥 Breaking Change
package/README.md CHANGED
@@ -1,46 +1,73 @@
1
- # Getting Started with Create React App
1
+ # UNGUESS Design System
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
4
4
 
5
- ## Available Scripts
5
+ ## Used by
6
6
 
7
- In the project directory, you can run:
7
+ - [Unguess platform](https://app.unguess.io/)
8
8
 
9
- ### `npm start`
9
+ ## Tech stack
10
10
 
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11
+ Building components
13
12
 
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
13
+ - 🪴 [Zendesk Garden](https://garden.zendesk.com/) as base design system
14
+ - ⚛️ [React](https://reactjs.org/) declarative component-centric UI
15
+ - 📚 [Storybook](https://storybook.js.org) for UI component development and [auto-generated docs](https://medium.com/storybookjs/storybook-docs-sneak-peak-5be78445094a)
16
+ - 👩‍🎤 [Styled Components](https://styled-components.com/) for component-scoped styling
16
17
 
17
- ### `npm test`
18
+ Maintaining the system
18
19
 
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
20
+ - 📦 [Yarn](https://yarnpkg.com/) for package management
21
+ - 📦 [NPM](https://www.npmjs.com/) for distribution
22
+ - ✅ [Chromatic](https://www.chromatic.com/) to prevent UI bugs in components (by Storybook maintainers)
21
23
 
22
- ### `npm run build`
24
+ ## Why
23
25
 
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
+ The Unguess design system codifies existing UI components into a central, well-maintained repository. It is built to address having to paste the same components into multiple projects again and again. This simplifies building UI's with Storybook's design patterns.
26
27
 
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
28
+ ## Install
29
29
 
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
30
+ ```bash
31
+ yarn
32
+ ```
31
33
 
32
- ### `npm run eject`
34
+ ## Global Styles
33
35
 
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
36
+ Components within the design system assume that a set of global styles have been configured. Depending upon the needs of the application, this can be done several ways:
35
37
 
36
- If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
38
+ #### Option 1: Render the `GlobalStyle` component
37
39
 
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
40
+ Useful when you don't need any custom `body` styling in the application, typically this would be placed in a layout component that wraps all pages, or a top-level `App` component.
39
41
 
40
- You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
42
+ ```javascript
43
+ import { global } from '@storybook/design-system';
44
+ const { GlobalStyle } = global;
45
+ ```
41
46
 
42
- ## Learn More
47
+ ```javascript
48
+ /* Render the global styles once per page */
49
+ <GlobalStyle />
50
+ ```
43
51
 
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
52
+ #### Option 2: Use the `bodyStyles` to apply styling
45
53
 
46
- To learn React, check out the [React documentation](https://reactjs.org/).
54
+ Useful when you want build upon the shared global styling.
55
+
56
+ ```javascript
57
+ import { Global, css } from '@storybook/theming';
58
+ import { global } from '@storybook/design-system';
59
+ const { bodyStyles } = global;
60
+
61
+ const customGlobalStyle = css`
62
+ body {
63
+ ${bodyStyles}// Custom body styling for the app
64
+ }
65
+ `;
66
+
67
+ const CustomGlobalStyle = () => <Global styles={customGlobalStyle} />;
68
+ ```
69
+
70
+ ```javascript
71
+ /* Render the global styles once per page */
72
+ <CustomGlobalStyle />
73
+ ```
package/build/index.d.ts CHANGED
@@ -1,5 +1,11 @@
1
1
  import { GlobalStyle } from './stories/shared/globalStyle';
2
+ export * from './stories/avatar';
3
+ export * from './stories/breadcrumbs';
2
4
  export * from './stories/buttons/button';
3
5
  export * from './stories/buttons/anchor';
6
+ export * from './stories/buttons/button-group';
7
+ export * from './stories/buttons/icon-button';
8
+ export * from './stories/buttons/split-button';
9
+ export * from './stories/loaders/spinner';
4
10
  export * from './stories/theme';
5
11
  export { GlobalStyle };
package/build/index.js CHANGED
@@ -5,7 +5,10 @@ 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 reactAvatars = require('@zendeskgarden/react-avatars');
9
+ var reactBreadcrumbs = require('@zendeskgarden/react-breadcrumbs');
8
10
  var reactButtons = require('@zendeskgarden/react-buttons');
11
+ var reactLoaders = require('@zendeskgarden/react-loaders');
9
12
 
10
13
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11
14
 
@@ -44,22 +47,99 @@ function __makeTemplateObject(cooked, raw) {
44
47
 
45
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' }) });
46
49
 
47
- var GlobalStyle = styled.createGlobalStyle(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\nbody {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }"], ["\nbody {\n font-family: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }"])), theme.fonts.system);
48
- var templateObject_1$1;
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;
52
+
53
+ var UgAvatar = styled__default["default"](reactAvatars.Avatar)(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject([""], [""])));
54
+ /**
55
+ * An Avatar is a visual way to represent a person or brand in the product. They can display text, icons, or images.
56
+ * <hr>
57
+ * Used for this:
58
+ - To visually represent a person, brand, or product
59
+ */
60
+ var Avatar = function (props) { return jsxRuntime.jsx(UgAvatar, __assign({}, props)); };
61
+ Avatar.Text = UgAvatar.Text;
62
+ var templateObject_1$2;
49
63
 
50
- var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
51
64
  /**
52
- *
53
- * Buttons let users take action quickly. Use a Button to enable actions or decisions that are important to a user’s workflow.
65
+ * Breadcrumbs mark and communicate a user’s location in the product.
66
+ * <hr>
67
+ * Used for this:
68
+ - To show the user where they are in a nested navigation
69
+ - To provide a quick way to navigate to ancestor pages
70
+ */
71
+ var Breadcrumb = function (props) { return jsxRuntime.jsx(reactBreadcrumbs.Breadcrumb, __assign({}, props)); };
72
+
73
+ var UgButton = styled__default["default"](reactButtons.Button)(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject([""], [""])));
74
+ /**
75
+ * Buttons let users take action quickly.
76
+ * Use a Button to enable actions or decisions that are important to a user’s workflow.
77
+ * <hr>
78
+ * Used for this:
79
+ - To enable user action
80
+ - To draw attention to relevant actions in a user's workflow
54
81
  */
55
82
  var Button = function (props) { return jsxRuntime.jsx(UgButton, __assign({}, props)); };
56
83
  Button.StartIcon = UgButton.StartIcon;
57
84
  Button.EndIcon = UgButton.EndIcon;
58
- var templateObject_1;
85
+ var templateObject_1$1;
59
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
+ */
60
95
  var Anchor = function (props) { return jsxRuntime.jsx(reactButtons.Anchor, __assign({}, props)); };
61
96
 
97
+ /**
98
+ A Button group lets users make a selection from a set of options.
99
+
100
+ This is a legacy component and may be deprecated in the future. UNGUESS does not presently recommend the use of Button groups.
101
+ **/
102
+ var ButtonGroup = function (props) { return (jsxRuntime.jsx(reactButtons.ButtonGroup, __assign({}, props))); };
103
+
104
+ /**
105
+ Icon buttons (like Buttons) let users take action.
106
+ They are used for repeated or persistent actions on a page and lack visible labels to simplify the UI.
107
+ <br>
108
+ Do this: <b>Include a Tooltip to help any users who may be unfamiliar with the icon.</b>
109
+ <hr>
110
+ Used for this
111
+ - To simplify the appearance of repeated or persistent actions on a page
112
+ - To enable action in a toolbar
113
+ **/
114
+ var IconButton = function (props) { return (jsxRuntime.jsx(reactButtons.IconButton, __assign({}, props))); };
115
+
116
+ /**
117
+ A Split button is a hybrid between a Dropdown Menu and a Button. It lets users choose from parallel actions and take action on their choice.
118
+ <hr>
119
+ Used for this:
120
+ - To let users select from multiple parallel actions. Actions are parallel when each represents a path forward for the user and none cancel the action.
121
+ - To reduce visual complexity when there are multiple actions a user can take
122
+ **/
123
+ var SplitButton = function (props) { return (jsxRuntime.jsx(reactButtons.SplitButton, __assign({}, props))); };
124
+
125
+ var UgSpinner = styled__default["default"](reactLoaders.Spinner)(templateObject_1 || (templateObject_1 = __makeTemplateObject([""], [""])));
126
+ /**
127
+ * Breadcrumbs mark and communicate a user’s location in the product.
128
+ * <hr>
129
+ * Used for this:
130
+ - To show the user where they are in a nested navigation
131
+ - To provide a quick way to navigate to ancestor pages
132
+ */
133
+ var Spinner = function (props) { return jsxRuntime.jsx(UgSpinner, __assign({}, props)); };
134
+ var templateObject_1;
135
+
62
136
  exports.Anchor = Anchor;
137
+ exports.Avatar = Avatar;
138
+ exports.Breadcrumb = Breadcrumb;
63
139
  exports.Button = Button;
140
+ exports.ButtonGroup = ButtonGroup;
64
141
  exports.GlobalStyle = GlobalStyle;
142
+ exports.IconButton = IconButton;
143
+ exports.Spinner = Spinner;
144
+ exports.SplitButton = SplitButton;
65
145
  exports.theme = theme;
@@ -0,0 +1,25 @@
1
+ import { IAccordionProps } from "@zendeskgarden/react-accordions";
2
+ export interface AccordionArgs extends IAccordionProps {
3
+ /** Sets `aria-level` heading rank in the document structure */
4
+ level: number;
5
+ /** Sets the expanded sections in a controlled accordion */
6
+ expandedSections?: number[];
7
+ /** Sets the default expanded sections in an uncontrolled accordion */
8
+ defaultExpandedSections?: number[];
9
+ /** Hides section borders */
10
+ isBare?: boolean;
11
+ /** Allows uncontrolled accordion sections to collapse */
12
+ isCollapsible?: boolean;
13
+ /** Applies compact styling */
14
+ isCompact?: boolean;
15
+ /** Animates section expansion and collapse */
16
+ isAnimated?: boolean;
17
+ /** Enables simultaneous expansion of uncontrolled accordion sections */
18
+ isExpandable?: boolean;
19
+ /**
20
+ * Handles accordion expansion changes
21
+ *
22
+ * @param {number} index A section index
23
+ */
24
+ onChange?: (index: number) => void;
25
+ }
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ import { AccordionArgs } from './_types';
3
+ /**
4
+ * Accordions are headers that can be expanded to reveal content or collapsed to hide it.
5
+ * <hr>
6
+ * Used for this:
7
+ - To organize related information into sections
8
+ - To surface information through progressive disclosure
9
+ */
10
+ declare const Accordion: {
11
+ (props: AccordionArgs): JSX.Element;
12
+ Section: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
13
+ Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
14
+ Label: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
15
+ Panel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
16
+ };
17
+ export { Accordion };
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { AccordionArgs } from "./_types";
4
+ interface AccordionStoryArg extends AccordionArgs {
5
+ items: Array<{
6
+ headerTitle: string;
7
+ content: string;
8
+ }>;
9
+ }
10
+ export declare const Default: Story<AccordionStoryArg>;
11
+ export declare const Bare: Story<AccordionStoryArg>;
12
+ export declare const Expandable: Story<AccordionStoryArg>;
13
+ declare const _default: ComponentMeta<{
14
+ (props: AccordionArgs): JSX.Element;
15
+ Section: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
16
+ Header: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
17
+ Label: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("react").RefAttributes<HTMLButtonElement>>;
18
+ Panel: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLElement> & import("react").RefAttributes<HTMLElement>>;
19
+ }>;
20
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { IAvatarProps } from '@zendeskgarden/react-avatars';
2
+ export interface AvatarArgs extends IAvatarProps {
3
+ /** Sets the avatar background color */
4
+ backgroundColor?: string;
5
+ /** Sets the color for child SVG or `Avatar.Text` components */
6
+ foregroundColor?: string;
7
+ /** Provides surface color for an avatar placed on a non-white background */
8
+ surfaceColor?: string;
9
+ /** Applies system styling for representing objects, brands, or products */
10
+ isSystem?: boolean;
11
+ /** Specifies the avatar size */
12
+ size?: 'extraextrasmall' | 'extrasmall' | 'small' | 'medium' | 'large';
13
+ /** Applies status styling */
14
+ status?: 'available' | 'away';
15
+ /** Sets the badge text and applies active styling */
16
+ badge?: string | number;
17
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { AvatarArgs } from './_types';
3
+ /**
4
+ * An Avatar is a visual way to represent a person or brand in the product. They can display text, icons, or images.
5
+ * <hr>
6
+ * Used for this:
7
+ - To visually represent a person, brand, or product
8
+ */
9
+ declare const Avatar: {
10
+ (props: AvatarArgs): JSX.Element;
11
+ Text: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
12
+ };
13
+ export { Avatar };
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { AvatarArgs } from "./_types";
4
+ interface AvatarProps extends AvatarArgs {
5
+ type: 'icon' | 'image' | 'text';
6
+ }
7
+ export declare const Default: Story<AvatarProps>;
8
+ export declare const Square: Story<AvatarProps>;
9
+ declare const _default: ComponentMeta<{
10
+ (props: AvatarArgs): JSX.Element;
11
+ Text: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLSpanElement> & import("react").RefAttributes<HTMLSpanElement>>;
12
+ }>;
13
+ export default _default;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export interface BreadcrumbArgs extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** The breadcrumb items */
4
+ children: any[];
5
+ }
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import { BreadcrumbArgs } from './_types';
3
+ /**
4
+ * Breadcrumbs mark and communicate a user’s location in the product.
5
+ * <hr>
6
+ * Used for this:
7
+ - To show the user where they are in a nested navigation
8
+ - To provide a quick way to navigate to ancestor pages
9
+ */
10
+ declare const Breadcrumb: (props: BreadcrumbArgs) => JSX.Element;
11
+ export { Breadcrumb };
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { ComponentMeta, Story } from "@storybook/react";
3
+ import { BreadcrumbArgs } from "./_types";
4
+ export declare const Default: Story<BreadcrumbArgs>;
5
+ declare const _default: ComponentMeta<(props: BreadcrumbArgs) => JSX.Element>;
6
+ export default _default;
@@ -1,3 +1,11 @@
1
1
  import { IAnchorProps } from "@zendeskgarden/react-buttons";
2
2
  export interface AnchorArgs extends IAnchorProps {
3
+ /** Applies danger styling */
4
+ isDanger?: boolean;
5
+ /**
6
+ * Attaches `target="_blank"` and `rel="noopener noreferrer"` to an anchor that
7
+ * navigates to an external resource. This ensures that the anchor is a
8
+ * safe [cross-origin destination link](https://web.dev/external-anchors-use-rel-noopener/).
9
+ **/
10
+ isExternal?: boolean;
3
11
  }
@@ -1,4 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { AnchorArgs } from "./_types";
3
+ /**
4
+ * The Anchor is a link that helps users navigate from one location to another.
5
+ * <hr>
6
+ * Used for this:
7
+ - To navigate from one page to another
8
+ - To navigate within a page
9
+ - To display links alongside text
10
+ */
3
11
  declare const Anchor: (props: AnchorArgs) => JSX.Element;
4
12
  export { Anchor };
@@ -1,16 +1,30 @@
1
- import { IButtonProps, IButtonStartIconProps, IButtonEndIconProps } from "@zendeskgarden/react-buttons";
1
+ import { IButtonProps } from "@zendeskgarden/react-buttons";
2
2
  export interface ButtonArgs extends IButtonProps {
3
3
  /**
4
4
  It's a boolean value that determines whether the button has an icon on the left side.
5
+ @default false
5
6
  */
6
7
  hasStartIcon?: boolean;
7
8
  /**
8
9
  It's a boolean value that determines whether the button has an icon on the right side.
10
+ @default false
9
11
  */
10
12
  hasEndIcon?: boolean;
11
13
  isStartIconRotated?: boolean;
12
14
  isEndIconRotated?: boolean;
13
- StartIcon?: IButtonStartIconProps;
14
- EndIcon?: IButtonEndIconProps;
15
+ /** Applies danger styling */
16
+ isDanger?: boolean;
17
+ /** Specifies the buton size */
18
+ size?: 'small' | 'medium' | 'large';
19
+ /** Stretches the button fill to its container width */
20
+ isStretched?: boolean;
21
+ /** Applies neutral button styling */
22
+ isNeutral?: boolean;
23
+ /**
24
+ Definine the button variations, possible values are: {isDefault},
25
+ {isBasic},{isPrimary}, {isLink}
26
+
27
+ @default isDefault
28
+ */
15
29
  variant?: string;
16
30
  }
@@ -1,8 +1,12 @@
1
1
  /// <reference types="react" />
2
2
  import { ButtonArgs } from "./_types";
3
3
  /**
4
- *
5
- * Buttons let users take action quickly. Use a Button to enable actions or decisions that are important to a user’s workflow.
4
+ * Buttons let users take action quickly.
5
+ * Use a Button to enable actions or decisions that are important to a user’s workflow.
6
+ * <hr>
7
+ * Used for this:
8
+ - To enable user action
9
+ - To draw attention to relevant actions in a user's workflow
6
10
  */
7
11
  declare const Button: {
8
12
  (props: ButtonArgs): JSX.Element;
@@ -1,3 +1,5 @@
1
1
  import { IButtonGroupProps } from "@zendeskgarden/react-buttons";
2
2
  export interface ButtonGroupArgs extends IButtonGroupProps {
3
+ /** Defines the currently selected button in the group */
4
+ selectedItem?: any;
3
5
  }
@@ -3,7 +3,7 @@ import { ButtonGroupArgs } from "./_types";
3
3
  /**
4
4
  A Button group lets users make a selection from a set of options.
5
5
 
6
- This is a legacy component and may be deprecated in the future. Garden does not presently recommend the use of Button groups.
6
+ This is a legacy component and may be deprecated in the future. UNGUESS does not presently recommend the use of Button groups.
7
7
  **/
8
8
  declare const ButtonGroup: (props: ButtonGroupArgs) => JSX.Element;
9
9
  export { ButtonGroup };
@@ -2,6 +2,10 @@
2
2
  import { ComponentMeta, Story } from "@storybook/react";
3
3
  import { ButtonGroupArgs } from "./_types";
4
4
  interface ButtonGroupProps extends ButtonGroupArgs {
5
+ /**
6
+ The children of the button group.
7
+ @default []
8
+ */
5
9
  items: any[];
6
10
  }
7
11
  export declare const TwoItems: Story<ButtonGroupProps>;