@papillonarts/components 0.38.0 → 0.40.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 (76) hide show
  1. package/build/Legacy/Alert/Alert.d.ts.map +1 -1
  2. package/build/Legacy/Alert/Alert.js +2 -3
  3. package/build/Legacy/Alert/Alert.type.d.ts.map +1 -1
  4. package/build/Legacy/Alert/Alert.type.js +3 -1
  5. package/build/Legacy/Alert/__tests__/Alert.doc.md +74 -41
  6. package/build/Legacy/Blankslate/__tests__/Blankslate.doc.md +60 -22
  7. package/build/Legacy/BranchName/branch-name.scss +2 -2
  8. package/build/Legacy/Breadcrumb/Breadcrumb.js +1 -1
  9. package/build/Legacy/Breadcrumb/__tests__/Breadcrumb.doc.md +39 -13
  10. package/build/Legacy/Button/Button.js +3 -3
  11. package/build/Legacy/Button/Button.scss +4 -4
  12. package/build/Legacy/Button/ButtonGroup.scss +2 -2
  13. package/build/Legacy/Button/__tests__/Button.doc.md +339 -0
  14. package/build/Legacy/Button/misc.scss +2 -2
  15. package/build/Legacy/Dropdown/Dropdown.js +6 -6
  16. package/build/Legacy/Dropdown/__tests__/Dropdown.doc.md +54 -0
  17. package/build/Legacy/ErrorBoundary/ErrorBoundary.type.d.ts.map +1 -1
  18. package/build/Legacy/ErrorBoundary/__tests__/ErrorBoundary.doc.md +33 -0
  19. package/build/Legacy/Form/Checkbox/Checkbox.js +1 -1
  20. package/build/Legacy/Form/Checkbox/__tests__/Checkbox.doc.md +87 -0
  21. package/build/Legacy/Form/Input/__tests__/Input.doc.md +84 -0
  22. package/build/Legacy/Form/Radio/Radio.js +1 -1
  23. package/build/Legacy/Form/Radio/__tests__/Radio.doc.md +66 -0
  24. package/build/Legacy/Form/form-control.scss +4 -4
  25. package/build/Legacy/Form/form-select.scss +4 -4
  26. package/build/Legacy/Grid/DisplayTable/DisplayTable.js +5 -5
  27. package/build/Legacy/Grid/DisplayTable/__tests__/DisplayTable.doc.md +34 -0
  28. package/build/Legacy/Grid/FlexGrid/FlexGrid.d.ts.map +1 -1
  29. package/build/Legacy/Grid/FlexGrid/FlexGrid.js +12 -15
  30. package/build/Legacy/Grid/FlexGrid/__tests__/FlexGrid.doc.md +158 -0
  31. package/build/Legacy/Icon/__tests__/Icon.doc.md +58 -0
  32. package/build/Legacy/Label/Label.js +1 -1
  33. package/build/Legacy/Label/__tests__/Label.doc.md +33 -0
  34. package/build/Legacy/Label/mixins.scss +3 -3
  35. package/build/Legacy/Layout/container.scss +1 -1
  36. package/build/Legacy/Layout/grid-offset.scss +1 -1
  37. package/build/Legacy/Layout/grid.scss +2 -2
  38. package/build/Legacy/Loader/Loader.js +2 -2
  39. package/build/Legacy/Loader/__tests__/Loader.doc.md +61 -0
  40. package/build/Legacy/Markdown/__tests__/Markdown.doc.md +28 -13
  41. package/build/Legacy/Navigation/Menu/Menu.js +2 -2
  42. package/build/Legacy/Navigation/Menu/__tests__/Menu.doc.md +53 -0
  43. package/build/Legacy/Navigation/TabNav/__tests__/TabNav.doc.md +99 -0
  44. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.d.ts.map +1 -1
  45. package/build/Legacy/Navigation/UnderlineNav/UnderlineNav.js +1 -2
  46. package/build/Legacy/Navigation/UnderlineNav/__tests__/UnderlineNav.doc.md +106 -0
  47. package/build/Legacy/Pagination/PreviousNext/PreviousNext.js +1 -1
  48. package/build/Legacy/Pagination/PreviousNext/PreviousNext.scss +2 -2
  49. package/build/Legacy/Pagination/PreviousNext/__tests__/PreviousNext.doc.md +57 -0
  50. package/build/Legacy/Popover/Popover.js +5 -5
  51. package/build/Legacy/Popover/__tests__/Popover.doc.md +260 -0
  52. package/build/Legacy/Progress/Progress.js +1 -1
  53. package/build/Legacy/Progress/__tests__/Progress.doc.md +51 -0
  54. package/build/Legacy/Select/Select.js +1 -1
  55. package/build/Legacy/Select/Select.scss +2 -2
  56. package/build/Legacy/Select/__tests__/Select.doc.md +54 -0
  57. package/build/Legacy/SelectMenu/SelectMenu.js +5 -5
  58. package/build/Legacy/SelectMenu/SelectMenu.scss +4 -4
  59. package/build/Legacy/SelectMenu/__tests__/SelectMenu.doc.md +35 -0
  60. package/build/Legacy/Subhead/Subhead.scss +3 -3
  61. package/build/Legacy/Subhead/__tests__/Subhead.doc.md +43 -0
  62. package/build/Legacy/SyntaxHighlighter/__tests__/SyntaxHighlighter.doc.md +45 -21
  63. package/build/Legacy/Toast/Toast.js +1 -1
  64. package/build/Legacy/Toast/Toast.scss +3 -3
  65. package/build/Legacy/Toast/__tests__/Toast.doc.md +73 -0
  66. package/build/Legacy/index.d.ts +1 -1
  67. package/build/Legacy/index.d.ts.map +1 -1
  68. package/build/Legacy/index.js +1 -1
  69. package/build/Modern/Flash/__tests__/Flash.doc.md +151 -6
  70. package/build/Modern/Link/__tests__/Link.doc.md +91 -5
  71. package/build/Modern/Pagination/__tests__/Pagination.doc.md +89 -7
  72. package/build/Modern/index.d.ts +1 -1
  73. package/build/Modern/index.d.ts.map +1 -1
  74. package/build/Modern/index.js +1 -1
  75. package/build/__tests__/README.md +159 -0
  76. package/package.json +4 -4
@@ -0,0 +1,66 @@
1
+ # Features
2
+
3
+ > Style individual form radio controls and utilize common layouts.
4
+
5
+ ```
6
+ Radio all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IRadio {
13
+ dataTest?: string
14
+ className?: string
15
+ htmlFor?: string
16
+ inputType?: string
17
+ name: string
18
+ isChecked?: boolean
19
+ text?: string
20
+ onChange: (value) => void
21
+ state?: string
22
+ }
23
+ ```
24
+
25
+ ## Variants
26
+
27
+ ```
28
+ Default
29
+
30
+ Active
31
+
32
+ Inactive
33
+ ```
34
+
35
+ ### Default
36
+
37
+ > Radio default variant
38
+
39
+ ```tsx
40
+ <Fragment>
41
+ <Radio name={name} onChange={action('onChange-white')} text="White" />
42
+ <Radio name={name} isChecked={true} onChange={action('onChange-black')} text="Black" />
43
+ </Fragment>
44
+ ```
45
+
46
+ ### Active
47
+
48
+ > Radio active variant
49
+
50
+ ```tsx
51
+ <Fragment>
52
+ <Radio name={name} onChange={action('onChange-white')} text="White" state={RadioState.Active} />
53
+ <Radio name={name} isChecked={true} onChange={action('onChange-black')} text="Black" state={RadioState.Active} />
54
+ </Fragment>
55
+ ```
56
+
57
+ ### Inactive
58
+
59
+ > Radio inactive variant
60
+
61
+ ```tsx
62
+ <Fragment>
63
+ <Radio name={name} onChange={action('onChange-white')} text="White" state={RadioState.Inactive} />
64
+ <Radio name={name} isChecked={true} onChange={action('onChange-black')} text="Black" state={RadioState.Inactive} />
65
+ </Fragment>
66
+ ```
@@ -1,7 +1,7 @@
1
- @import '@papillonarts/css/build/primer/support/variables/typography.scss';
2
- @import '@papillonarts/css/build/primer/support/variables/misc.scss';
3
- @import '@papillonarts/css/build/primer/support/mixins/misc.scss';
4
- @import '@papillonarts/css/build/primer/support/mixins/layout.scss';
1
+ @import '@papillonarts/css/support/variables/typography.scss';
2
+ @import '@papillonarts/css/support/variables/misc.scss';
3
+ @import '@papillonarts/css/support/mixins/misc.scss';
4
+ @import '@papillonarts/css/support/mixins/layout.scss';
5
5
 
6
6
  // stylelint-disable custom-property-pattern
7
7
  // stylelint-disable no-descending-specificity
@@ -1,7 +1,7 @@
1
- @import '@papillonarts/css/build/primer/support/variables/typography.scss';
2
- @import '@papillonarts/css/build/primer/support/variables/layout.scss';
3
- @import '@papillonarts/css/build/primer/support/mixins/layout.scss';
4
- @import '@papillonarts/css/build/primer/support/mixins/color-modes.scss';
1
+ @import '@papillonarts/css/support/variables/typography.scss';
2
+ @import '@papillonarts/css/support/variables/layout.scss';
3
+ @import '@papillonarts/css/support/mixins/layout.scss';
4
+ @import '@papillonarts/css/support/mixins/color-modes.scss';
5
5
 
6
6
  // stylelint-disable custom-property-pattern
7
7
 
@@ -5,11 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.DisplayTable = DisplayTable;
8
- var _borders = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/borders.scss"));
9
- var _colors = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/colors.scss"));
10
- var _padding = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/padding.scss"));
11
- var _typography = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/typography.scss"));
12
- var _visibilityDisplay = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/visibility-display.scss"));
8
+ var _borders = _interopRequireDefault(require("@papillonarts/css/utilities/borders.scss"));
9
+ var _colors = _interopRequireDefault(require("@papillonarts/css/utilities/colors.scss"));
10
+ var _padding = _interopRequireDefault(require("@papillonarts/css/utilities/padding.scss"));
11
+ var _typography = _interopRequireDefault(require("@papillonarts/css/utilities/typography.scss"));
12
+ var _visibilityDisplay = _interopRequireDefault(require("@papillonarts/css/utilities/visibility-display.scss"));
13
13
  var _classnames = _interopRequireDefault(require("classnames"));
14
14
  var _react = require("react");
15
15
  var _uuid = require("uuid");
@@ -0,0 +1,34 @@
1
+ # Features
2
+
3
+ > Using display table utilities with columns gives you some alternative layout options.
4
+
5
+ > A useful example is being able to keep the height of the container equal across a row when the length of content may differ.
6
+
7
+ ```
8
+ DisplayTable all props and variants
9
+ ```
10
+
11
+ ## Props
12
+
13
+ ```typescript
14
+ export interface IDisplayTable {
15
+ className: string
16
+ items: IItem[]
17
+ idIndex: number
18
+ isSelectedIndex: number
19
+ }
20
+ ```
21
+
22
+ ## Variants
23
+
24
+ ```
25
+ Default
26
+ ```
27
+
28
+ ### Default
29
+
30
+ > DisplayTable default variant
31
+
32
+ ```tsx
33
+ <DisplayTable items={items} idIndex={0} isSelectedIndex={1} />
34
+ ```
@@ -1 +1 @@
1
- {"version":3,"file":"FlexGrid.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Grid/FlexGrid/FlexGrid.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAqD,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE9F,wBAAgB,QAAQ,CAAC,EACvB,SAAqC,EACrC,KAAK,EACL,OAAiC,EACjC,eAAiD,EACjD,SAAqC,EACrC,IAAI,EACJ,QAAmC,EACnC,OAAiC,EACjC,aAA6C,EAC7C,SAAqC,EACrC,KAA6B,GAC9B,EAAE,SAAS,2CAgPX"}
1
+ {"version":3,"file":"FlexGrid.d.ts","sourceRoot":"","sources":["../../../../src/Legacy/Grid/FlexGrid/FlexGrid.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAqD,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE9F,wBAAgB,QAAQ,CAAC,EACvB,SAAqC,EACrC,KAAK,EACL,OAAiC,EACjC,eAAiD,EACjD,SAAqC,EACrC,IAAI,EACJ,QAAmC,EACnC,OAAiC,EACjC,aAA6C,EAC7C,SAAqC,EACrC,KAA6B,GAC9B,EAAE,SAAS,2CA8OX"}
@@ -7,17 +7,16 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.FlexGrid = FlexGrid;
8
8
  var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
9
9
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
10
- var _index = _interopRequireDefault(require("@papillonarts/css/build/primer/truncate/index.scss"));
11
- var _borders = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/borders.scss"));
12
- var _colors = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/colors.scss"));
13
- var _flexbox = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/flexbox.scss"));
14
- var _layout = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/layout.scss"));
15
- var _margin = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/margin.scss"));
16
- var _padding = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/padding.scss"));
17
- var _typography = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/typography.scss"));
18
- var _visibilityDisplay = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/visibility-display.scss"));
10
+ var _index = _interopRequireDefault(require("@papillonarts/css/truncate/index.scss"));
11
+ var _borders = _interopRequireDefault(require("@papillonarts/css/utilities/borders.scss"));
12
+ var _colors = _interopRequireDefault(require("@papillonarts/css/utilities/colors.scss"));
13
+ var _flexbox = _interopRequireDefault(require("@papillonarts/css/utilities/flexbox.scss"));
14
+ var _layout = _interopRequireDefault(require("@papillonarts/css/utilities/layout.scss"));
15
+ var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
16
+ var _padding = _interopRequireDefault(require("@papillonarts/css/utilities/padding.scss"));
17
+ var _typography = _interopRequireDefault(require("@papillonarts/css/utilities/typography.scss"));
18
+ var _visibilityDisplay = _interopRequireDefault(require("@papillonarts/css/utilities/visibility-display.scss"));
19
19
  var _sort = require("@papillonarts/library/sort");
20
- var _string = require("@papillonarts/library/string");
21
20
  var _classnames = _interopRequireDefault(require("classnames"));
22
21
  var _react = require("react");
23
22
  var _uuid = require("uuid");
@@ -28,6 +27,8 @@ var _grid = _interopRequireDefault(require("../../Layout/grid.scss"));
28
27
  var _FlexGrid = _interopRequireDefault(require("./FlexGrid.scss"));
29
28
  var _FlexGrid2 = require("./FlexGrid.type");
30
29
  var _jsxRuntime = require("react/jsx-runtime");
30
+ // import { getCapitalizedString } from '@papillonarts/library/string'
31
+
31
32
  function FlexGrid(_ref) {
32
33
  var _items$;
33
34
  var _ref$className = _ref.className,
@@ -118,11 +119,7 @@ function FlexGrid(_ref) {
118
119
  children: isSelectedColumn ? isSelectedComponent : /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
119
120
  className: (0, _classnames["default"])(_visibilityDisplay["default"]['d-flex'], _flexbox["default"]['flex-justify-between'], _layout["default"]['width-full']),
120
121
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
121
- className: (0, _classnames["default"])(_index["default"]['css-truncate'], _index["default"]['css-truncate-overflow']),
122
- children: (0, _string.getCapizalizedString)({
123
- string: name.toString(),
124
- separator: '-'
125
- })
122
+ className: (0, _classnames["default"])(_index["default"]['css-truncate'], _index["default"]['css-truncate-overflow'])
126
123
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
127
124
  className: (0, _classnames["default"])(_visibilityDisplay["default"]['d-flex'], _flexbox["default"]['flex-items-start'], _margin["default"]['ml-1']),
128
125
  children: [sortComponent, nameIndex < (items === null || items === void 0 || (_items$2 = items[0]) === null || _items$2 === void 0 ? void 0 : _items$2.names.length) - 1 ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
@@ -0,0 +1,158 @@
1
+ # Features
2
+
3
+ > You can use flex utilities on the container and columns to create a flexbox grid.
4
+
5
+ > This can be useful for keeping columns the same height, justifying content and vertically aligning items. The flexbox grid is also great for working with responsive layouts.
6
+
7
+ ```
8
+ FlexGrid all props and variants
9
+ ```
10
+
11
+ ## Props
12
+
13
+ ```typescript
14
+ export interface IFlexGrid {
15
+ className?: string
16
+ items: IFlexGridItem[]
17
+ idIndex?: number
18
+ isSelectedIndex?: number
19
+ selection?: string
20
+ sort: ISort
21
+ onChange?: (value) => void
22
+ onClick?: (value) => void
23
+ onDoubleClick?: (value) => void
24
+ iconColor?: IIconColor
25
+ state?: string
26
+ }
27
+ ```
28
+
29
+ ## Variants
30
+
31
+ ```
32
+ RadioWithSelection
33
+
34
+ RadioWithSelectionInactive
35
+
36
+ RadioWithoutSelection
37
+
38
+ RadioWithoutSelectionInactive
39
+
40
+ CheckboxWithSelection
41
+
42
+ CheckboxWithSelectionInactive
43
+
44
+ CheckboxWithoutSelection
45
+
46
+ CheckboxWithoutSelectionInactive
47
+ ```
48
+
49
+ ### Radio With Selection
50
+
51
+ > FlexGrid radio with selection variant
52
+
53
+ ```tsx
54
+ <FlexGrid
55
+ items={radioItemsWithSelection}
56
+ idIndex={0}
57
+ isSelectedIndex={1}
58
+ selection={FlexGridSelection.Radio}
59
+ sort={SortDefault}
60
+ onChange={action('onChange')}
61
+ onDoubleClick={action('onDoubleClick')}
62
+ />
63
+ ```
64
+
65
+ ### Radio With Selection Inactive
66
+
67
+ > FlexGrid radio with selection inactive variant
68
+
69
+ ```tsx
70
+ <FlexGrid
71
+ items={radioItemsWithSelection}
72
+ idIndex={0}
73
+ isSelectedIndex={1}
74
+ selection={FlexGridSelection.Radio}
75
+ sort={SortDefault}
76
+ onChange={action('onChange')}
77
+ onDoubleClick={action('onDoubleClick')}
78
+ state={FlexGridState.Inactive}
79
+ />
80
+ ```
81
+
82
+ ### Radio Without Selection
83
+
84
+ > FlexGrid radio without selection variant
85
+
86
+ ```tsx
87
+ <FlexGrid idIndex={0} items={radioItemsWithoutSelection} sort={SortDefault} onChange={action('onChange')} />
88
+ ```
89
+
90
+ ### Radio Without Selection Inactive
91
+
92
+ > FlexGrid radio without selection inactive variant
93
+
94
+ ```tsx
95
+ <FlexGrid idIndex={0} items={radioItemsWithoutSelection} sort={SortDefault} onChange={action('onChange')} state={FlexGridState.Inactive} />
96
+ ```
97
+
98
+ ### Checkbox With Selection
99
+
100
+ > FlexGrid checkbox with selection variant
101
+
102
+ ```tsx
103
+ <FlexGrid
104
+ items={checkboxItemsWithSelection}
105
+ idIndex={0}
106
+ isSelectedIndex={1}
107
+ selection={FlexGridSelection.Checkbox}
108
+ sort={SortDefault}
109
+ onChange={action('onChange')}
110
+ onDoubleClick={action('onDoubleClick')}
111
+ />
112
+ ```
113
+
114
+ ### Checkbox With Selection Inactive
115
+
116
+ > FlexGrid checkbox with selection inactive variant
117
+
118
+ ```tsx
119
+ <FlexGrid
120
+ items={checkboxItemsWithSelection}
121
+ idIndex={0}
122
+ isSelectedIndex={1}
123
+ selection={FlexGridSelection.Checkbox}
124
+ sort={SortDefault}
125
+ onChange={action('onChange')}
126
+ onDoubleClick={action('onDoubleClick')}
127
+ state={FlexGridState.Inactive}
128
+ />
129
+ ```
130
+
131
+ ### Checkbox Without Selection
132
+
133
+ > FlexGrid checkbox without selection variant
134
+
135
+ ```tsx
136
+ <FlexGrid
137
+ idIndex={0}
138
+ items={checkboxItemsWithoutSelection}
139
+ sort={SortDefault}
140
+ onChange={action('onChange')}
141
+ onDoubleClick={action('onDoubleClick')}
142
+ />
143
+ ```
144
+
145
+ ### Checkbox Without Selection Inactive
146
+
147
+ > FlexGrid checkbox without selection inactive variant
148
+
149
+ ```tsx
150
+ <FlexGrid
151
+ idIndex={0}
152
+ items={checkboxItemsWithoutSelection}
153
+ sort={SortDefault}
154
+ onChange={action('onChange')}
155
+ onDoubleClick={action('onDoubleClick')}
156
+ state={FlexGridState.Inactive}
157
+ />
158
+ ```
@@ -0,0 +1,58 @@
1
+ # Features
2
+
3
+ > Generic icon component.
4
+
5
+ ```
6
+ Icon all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface IIcon {
13
+ className?: string
14
+ ariaLabel?: string
15
+ icon: string
16
+ height?: number
17
+ width?: number
18
+ size?: number
19
+ fill?: string
20
+ verticalAlign?: string
21
+ }
22
+ ```
23
+
24
+ ## Variants
25
+
26
+ ```
27
+ Default
28
+
29
+ AllIcons
30
+ ```
31
+
32
+ ### Default
33
+
34
+ > Icon default variant
35
+
36
+ ```tsx
37
+ <Icon className={className} icon={icon} size={size} {...rest} />
38
+ ```
39
+
40
+ ### All Icons
41
+
42
+ > Icon all icons variant
43
+
44
+ ```tsx
45
+ <div
46
+ style={{
47
+ columns: '4',
48
+ width: '800px',
49
+ }}
50
+ >
51
+ {IconNameKeys.map((icon) => (
52
+ <div key={icon} style={{ padding: '4px', fontSize: '14px', lineHeight: '21px' }}>
53
+ <Icon icon={icon} style={{ marginRight: '4px', verticalAlign: 'middle' }} />
54
+ <span style={{ display: 'inline-block', verticalAlign: 'middle' }}>{icon}</span>
55
+ </div>
56
+ ))}
57
+ </div>
58
+ ```
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.Label = Label;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
- var _colors = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/colors.scss"));
9
+ var _colors = _interopRequireDefault(require("@papillonarts/css/utilities/colors.scss"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _Label = require("./Label.type");
12
12
  var _issueLabels = _interopRequireDefault(require("./issue-labels.scss"));
@@ -0,0 +1,33 @@
1
+ # Features
2
+
3
+ > Labels add metadata or indicate status of items and navigational elements. Three different types of labels are available: Labels for adding metadata, States for indicating status, and Counters for showing the count for a number of items.
4
+
5
+ ```
6
+ Label all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface ILabel {
13
+ className?: string
14
+ text: string
15
+ variant?: string
16
+ backgroundColor?: string
17
+ textColor?: string
18
+ }
19
+ ```
20
+
21
+ ## Variants
22
+
23
+ ```
24
+ Default
25
+ ```
26
+
27
+ ### Default
28
+
29
+ > Label default variant
30
+
31
+ ```tsx
32
+ <Label text="default label" />
33
+ ```
@@ -1,6 +1,6 @@
1
- @import '@papillonarts/css/build/primer/support/variables/typography.scss';
2
- @import '@papillonarts/css/build/primer/support/variables/layout.scss';
3
- @import '@papillonarts/css/build/primer/support/variables/misc.scss';
1
+ @import '@papillonarts/css/support/variables/typography.scss';
2
+ @import '@papillonarts/css/support/variables/layout.scss';
3
+ @import '@papillonarts/css/support/variables/misc.scss';
4
4
 
5
5
  // Label mixins
6
6
 
@@ -1,4 +1,4 @@
1
- @import '@papillonarts/css/build/primer/support/variables/layout.scss';
1
+ @import '@papillonarts/css/support/variables/layout.scss';
2
2
 
3
3
  // Fixed-width, centered column for site content.
4
4
  // Handy container styles that match our breakpoints
@@ -1,6 +1,6 @@
1
1
  // stylelint-disable number-max-precision
2
2
 
3
- @import '@papillonarts/css/build/primer/support/variables/layout.scss';
3
+ @import '@papillonarts/css/support/variables/layout.scss';
4
4
 
5
5
  // Optional offset options to work with grid.scss
6
6
 
@@ -1,5 +1,5 @@
1
- @import '@papillonarts/css/build/primer/support/variables/layout.scss';
2
- @import '@papillonarts/css/build/primer/support/mixins/layout.scss';
1
+ @import '@papillonarts/css/support/variables/layout.scss';
2
+ @import '@papillonarts/css/support/mixins/layout.scss';
3
3
 
4
4
  // stylelint-disable number-max-precision
5
5
  // stylelint-disable declaration-property-value-no-unknown
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.Loader = Loader;
8
- var _colors = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/colors.scss"));
9
- var _margin = _interopRequireDefault(require("@papillonarts/css/build/primer/utilities/margin.scss"));
8
+ var _colors = _interopRequireDefault(require("@papillonarts/css/utilities/colors.scss"));
9
+ var _margin = _interopRequireDefault(require("@papillonarts/css/utilities/margin.scss"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _branchName = _interopRequireDefault(require("../BranchName/branch-name.scss"));
12
12
  var _Button = _interopRequireDefault(require("../Button/Button.scss"));
@@ -0,0 +1,61 @@
1
+ # Features
2
+
3
+ > Loaders inform users that an action is still in progress and might take a while to complete.
4
+
5
+ ```
6
+ Loader all props and variants
7
+ ```
8
+
9
+ ## Props
10
+
11
+ ```typescript
12
+ export interface ILoader {
13
+ className?: string
14
+ variant: string
15
+ text: string
16
+ }
17
+ ```
18
+
19
+ ## Variants
20
+
21
+ ```
22
+ Heading
23
+
24
+ Text
25
+
26
+ Label
27
+
28
+ Button
29
+ ```
30
+
31
+ ### Heading
32
+
33
+ > Loader heading variant
34
+
35
+ ```tsx
36
+ <Loader variant={LoaderVariant.Heading} text={textValue} />
37
+ ```
38
+
39
+ ### Text
40
+
41
+ > Loader text variant
42
+
43
+ ```tsx
44
+ <Loader variant={LoaderVariant.Text} text={textValue} />
45
+ ```
46
+
47
+ ### Label
48
+
49
+ > Loader label variant
50
+
51
+ ```tsx
52
+ <Loader variant={LoaderVariant.Label} text={textValue} />
53
+ ```
54
+
55
+ ### Button
56
+
57
+ > Loader button variant
58
+
59
+ ```tsx
60
+ <Loader variant={LoaderVariant.Button} text={textValue} />
61
+ ```
@@ -1,33 +1,48 @@
1
- # Markdown
1
+ # Features
2
2
 
3
- > Markdown component all features
3
+ ```
4
+ Markdown all props and variants
5
+ ```
4
6
 
7
+ ## Props
8
+
9
+ ```typescript
10
+ export interface IMarkdown {
11
+ highlighter?: string
12
+ children?: string
13
+ }
5
14
  ```
6
- # Features
7
15
 
8
- > Default
16
+ ## Variants
17
+
18
+ ```
19
+ Default
20
+
21
+ HLJS
22
+
23
+ Prism
9
24
  ```
10
25
 
11
- ## Default
26
+ ### Default
12
27
 
13
- > Markdown component default feature
28
+ > Markdown default variant
14
29
 
15
- ```jsx
30
+ ```tsx
16
31
  <Markdown>{MarkdownCode}</Markdown>
17
32
  ```
18
33
 
19
- ## HLJS
34
+ ### HLJS
20
35
 
21
- > Markdown component hljs feature
36
+ > Markdown hljs variant
22
37
 
23
- ```jsx
38
+ ```tsx
24
39
  <Markdown highlighter={MarkdownHighlighter.HLJS}>{MarkdownCode}</Markdown>
25
40
  ```
26
41
 
27
- ## Prism
42
+ ### Prism
28
43
 
29
- > Markdown component prism feature
44
+ > Markdown prism variant
30
45
 
31
- ```jsx
46
+ ```tsx
32
47
  <Markdown highlighter={MarkdownHighlighter.PRISM}>{MarkdownCode}</Markdown>
33
48
  ```
@@ -8,8 +8,8 @@ exports.Menu = Menu;
8
8
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
9
9
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
10
10
  var _array = require("@papillonarts/library/array");
11
- var _hooks = require("@papillonarts/library/hooks");
12
11
  var _classnames = _interopRequireDefault(require("classnames"));
12
+ var _react = require("react");
13
13
  var _uuid = require("uuid");
14
14
  var _Icon = require("../../Icon");
15
15
  var _Menu = _interopRequireDefault(require("./Menu.scss"));
@@ -25,7 +25,7 @@ function Menu(_ref) {
25
25
  ariaAttr = _ref.ariaAttr,
26
26
  items = _ref.items,
27
27
  _onClick = _ref.onClick;
28
- var _useState = (0, _hooks.useState)((0, _array.getIndexItems)(items)),
28
+ var _useState = (0, _react.useState)((0, _array.getIndexItems)(items)),
29
29
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
30
30
  indexItems = _useState2[0],
31
31
  setIndexItems = _useState2[1];