@openedx/paragon 21.12.2 → 21.13.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/paragon",
3
- "version": "21.12.2",
3
+ "version": "21.13.0",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -46,7 +46,8 @@
46
46
  "type-check:watch": "npm run type-check -- --watch",
47
47
  "build-types": "tsc --emitDeclarationOnly",
48
48
  "playroom:start": "npm run playroom:start --workspace=www",
49
- "playroom:build": "npm run playroom:build --workspace=www"
49
+ "playroom:build": "npm run playroom:build --workspace=www",
50
+ "prepare": "husky install"
50
51
  },
51
52
  "dependencies": {
52
53
  "@fortawesome/fontawesome-svg-core": "^6.1.1",
@@ -127,6 +128,7 @@
127
128
  "jest": "^28.1.3",
128
129
  "jest-cli": "^28.1.2",
129
130
  "jest-environment-jsdom": "^28.1.2",
131
+ "lint-staged": "^15.2.0",
130
132
  "markdown-loader-jest": "^0.1.1",
131
133
  "react": "^17.0.0",
132
134
  "react-dom": "^17.0.0",
@@ -173,13 +175,16 @@
173
175
  "/component-generator/"
174
176
  ],
175
177
  "transformIgnorePatterns": [
176
- "/node_modules/(?!(@edx/paragon)/).*/"
178
+ "/node_modules/(?!(@openedx/paragon)/).*/"
177
179
  ]
178
180
  },
179
- "husky": {
180
- "hooks": {
181
- "pre-commit": "npm run lint"
182
- }
181
+ "lint-staged": {
182
+ "*.{js,jsx,ts,tsx}": [
183
+ "npx eslint"
184
+ ],
185
+ "*.scss": [
186
+ "npx stylelint"
187
+ ]
183
188
  },
184
189
  "workspaces": [
185
190
  "example",
@@ -51,10 +51,10 @@ Button.propTypes = {
51
51
  * */
52
52
  variant: PropTypes.string,
53
53
  /** An icon component to render.
54
- * Example import of a Paragon icon component: `import { Check } from '@edx/paragon/icons';` */
54
+ * Example import of a Paragon icon component: `import { Check } from '@openedx/paragon/icons';` */
55
55
  iconBefore: PropTypes.oneOfType([PropTypes.elementType, PropTypes.node]),
56
56
  /** An icon component to render.
57
- * Example import of a Paragon icon component: `import { Check } from '@edx/paragon/icons';` */
57
+ * Example import of a Paragon icon component: `import { Check } from '@openedx/paragon/icons';` */
58
58
  iconAfter: PropTypes.oneOfType([PropTypes.elementType, PropTypes.node]),
59
59
  };
60
60
 
@@ -86,7 +86,7 @@ Chip.propTypes = {
86
86
  * An icon component to render before the content.
87
87
  * Example import of a Paragon icon component:
88
88
  *
89
- * `import { Check } from '@edx/paragon/icons';`
89
+ * `import { Check } from '@openedx/paragon/icons';`
90
90
  */
91
91
  iconBefore: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
92
92
  /** A click handler for the `Chip` icon before. */
@@ -95,7 +95,7 @@ Chip.propTypes = {
95
95
  * An icon component to render before after the content.
96
96
  * Example import of a Paragon icon component:
97
97
  *
98
- * `import { Check } from '@edx/paragon/icons';`
98
+ * `import { Check } from '@openedx/paragon/icons';`
99
99
  */
100
100
  iconAfter: PropTypes.oneOfType([PropTypes.element, PropTypes.func]),
101
101
  /** A click handler for the `Chip` icon after. */
@@ -1,5 +1,5 @@
1
1
  $data-table-background-color: $white !default;
2
- $data-table-border: 1px solid $gray-200 !default;
2
+ $data-table-border: 2px solid $light-300 !default;
3
3
  $data-table-box-shadow: $box-shadow-sm !default;
4
4
  $data-table-padding-x: .75rem !default;
5
5
  $data-table-padding-y: .75rem !default;
@@ -11,13 +11,13 @@ devStatus: 'Done'
11
11
  notes: |
12
12
  ---
13
13
 
14
- Displays an svg icon from `@edx/paragon/icons`. See [Icons Foundation Documentation](/foundations/icons) for a list of all available icons.
14
+ Displays an svg icon from `@openedx/paragon/icons`. See [Icons Foundation Documentation](/foundations/icons) for a list of all available icons.
15
15
 
16
16
  ## Basic Usage
17
17
 
18
18
  ```jsx live
19
19
  // Included in this live jsx scope:
20
- // import { Add, AddCircle } from '@edx/paragon/icons';
20
+ // import { Add, AddCircle } from '@openedx/paragon/icons';
21
21
  <Icon src={Add} />
22
22
  ```
23
23
  ### With HTML attributes
@@ -26,7 +26,7 @@ HTML attributes can be passed to this component allowing for customization of th
26
26
 
27
27
  ```jsx live
28
28
  // Included in this live jsx scope:
29
- // import { Add, AddCircle } from '@edx/paragon/icons';
29
+ // import { Add, AddCircle } from '@openedx/paragon/icons';
30
30
  <div className="d-flex align-items-center bg-dark">
31
31
  <Icon src={Add} className="mx-3 text-white" />
32
32
  <Icon src={Add} className="mx-3 text-white" size="xs" />
@@ -72,7 +72,7 @@ function Icon({
72
72
  Icon.propTypes = {
73
73
  /**
74
74
  * An icon component to render.
75
- * Example import of a Paragon icon component: `import { Check } from '@edx/paragon/icons';`
75
+ * Example import of a Paragon icon component: `import { Check } from '@openedx/paragon/icons';`
76
76
  */
77
77
  src: PropTypes.oneOfType([PropTypes.element, PropTypes.elementType]),
78
78
  /** HTML element attributes to pass through to the underlying svg element */
@@ -78,7 +78,7 @@ IconButton.propTypes = {
78
78
  * but is going to be deprecated soon, please use Paragon's icons instead. */
79
79
  iconAs: PropTypes.elementType,
80
80
  /** An icon component to render. Example import of a Paragon icon component:
81
- * `import { Check } from '@edx/paragon/dist/icon';`
81
+ * `import { Check } from '@openedx/paragon/dist/icon';`
82
82
  * */
83
83
  src: PropTypes.oneOfType([PropTypes.element, PropTypes.elementType]),
84
84
  /** Alt text for your icon. For best practice, avoid using alt text to describe
@@ -3,6 +3,7 @@
3
3
 
4
4
  .pagination {
5
5
  align-items: center;
6
+ margin: 0;
6
7
 
7
8
  .dropdown {
8
9
  z-index: 4;
@@ -128,8 +128,8 @@ SearchField.propTypes = {
128
128
  *
129
129
  * ```jsx
130
130
  * {
131
- * submit: import {Search} from '@edx/paragon/icons';,
132
- * clear: import {Close} from '@edx/paragon/icons'.
131
+ * submit: import {Search} from '@openedx/paragon/icons';,
132
+ * clear: import {Close} from '@openedx/paragon/icons'.
133
133
  * }
134
134
  * ```
135
135
  */