@momentum-design/components 0.51.3 → 0.52.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/dist/browser/index.js +299 -188
- package/dist/browser/index.js.map +4 -4
- package/dist/components/avatarbutton/avatarbutton.component.d.ts +4 -0
- package/dist/components/avatarbutton/avatarbutton.component.js +5 -1
- package/dist/components/avatarbutton/avatarbutton.styles.js +22 -0
- package/dist/components/progressbar/progressbar.component.d.ts +1 -1
- package/dist/components/progressspinner/index.d.ts +8 -0
- package/dist/components/progressspinner/index.js +5 -0
- package/dist/components/progressspinner/progressspiner.utils.d.ts +66 -0
- package/dist/components/progressspinner/progressspiner.utils.js +102 -0
- package/dist/components/progressspinner/progressspinner.component.d.ts +46 -0
- package/dist/components/progressspinner/progressspinner.component.js +125 -0
- package/dist/components/progressspinner/progressspinner.constants.d.ts +15 -0
- package/dist/components/progressspinner/progressspinner.constants.js +16 -0
- package/dist/components/progressspinner/progressspinner.styles.d.ts +2 -0
- package/dist/components/progressspinner/progressspinner.styles.js +47 -0
- package/dist/custom-elements.json +563 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/react/avatarbutton/index.d.ts +4 -0
- package/dist/react/avatarbutton/index.js +4 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.js +1 -0
- package/dist/react/progressspinner/index.d.ts +30 -0
- package/dist/react/progressspinner/index.js +39 -0
- package/package.json +1 -1
@@ -0,0 +1,30 @@
|
|
1
|
+
import Component from '../../components/progressspinner';
|
2
|
+
/**
|
3
|
+
* `mdc-progressspinner` is a customizable, circular progress indicator component.
|
4
|
+
* It visually represents the current completion state of a process, such as loading,
|
5
|
+
* syncing, uploading, or any ongoing task that has a measurable percentage.
|
6
|
+
*
|
7
|
+
* The spinner is built using SVG with two concentric `<circle>` elements:
|
8
|
+
* - The `progress` arc represents the portion of work completed.
|
9
|
+
* - The `track` arc represents the remaining part.
|
10
|
+
*
|
11
|
+
* A visual gap is maintained between the progress and track arcs to clearly
|
12
|
+
* distinguish the two segments. The component smoothly animates arc length
|
13
|
+
* and respects accessibility best practices with ARIA attributes.
|
14
|
+
*
|
15
|
+
* The component supports different states:
|
16
|
+
* - **Default**: Circular spinner shows the progress.
|
17
|
+
* - **Success**: Displays a checkmark icon when progress reaches 100%.
|
18
|
+
* - **Error**: Displays an error icon when in an error state.
|
19
|
+
*
|
20
|
+
* @tagname mdc-progressspinner
|
21
|
+
*
|
22
|
+
* @cssproperty --mdc-spinner-size - The size of the spinner.
|
23
|
+
* @cssproperty --mdc-track-color - The color of the spinner track.
|
24
|
+
* @cssproperty --mdc-progress-color - The color of the spinner progress.
|
25
|
+
* @cssproperty --mdc-progress-success-color - The color of the spinner when in success state.
|
26
|
+
* @cssproperty --mdc-progress-error-color - The color of the spinner when in error state.
|
27
|
+
*
|
28
|
+
*/
|
29
|
+
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
30
|
+
export default reactWrapper;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import * as React from 'react';
|
2
|
+
import { createComponent } from '@lit/react';
|
3
|
+
import Component from '../../components/progressspinner';
|
4
|
+
import { TAG_NAME } from '../../components/progressspinner/progressspinner.constants';
|
5
|
+
/**
|
6
|
+
* `mdc-progressspinner` is a customizable, circular progress indicator component.
|
7
|
+
* It visually represents the current completion state of a process, such as loading,
|
8
|
+
* syncing, uploading, or any ongoing task that has a measurable percentage.
|
9
|
+
*
|
10
|
+
* The spinner is built using SVG with two concentric `<circle>` elements:
|
11
|
+
* - The `progress` arc represents the portion of work completed.
|
12
|
+
* - The `track` arc represents the remaining part.
|
13
|
+
*
|
14
|
+
* A visual gap is maintained between the progress and track arcs to clearly
|
15
|
+
* distinguish the two segments. The component smoothly animates arc length
|
16
|
+
* and respects accessibility best practices with ARIA attributes.
|
17
|
+
*
|
18
|
+
* The component supports different states:
|
19
|
+
* - **Default**: Circular spinner shows the progress.
|
20
|
+
* - **Success**: Displays a checkmark icon when progress reaches 100%.
|
21
|
+
* - **Error**: Displays an error icon when in an error state.
|
22
|
+
*
|
23
|
+
* @tagname mdc-progressspinner
|
24
|
+
*
|
25
|
+
* @cssproperty --mdc-spinner-size - The size of the spinner.
|
26
|
+
* @cssproperty --mdc-track-color - The color of the spinner track.
|
27
|
+
* @cssproperty --mdc-progress-color - The color of the spinner progress.
|
28
|
+
* @cssproperty --mdc-progress-success-color - The color of the spinner when in success state.
|
29
|
+
* @cssproperty --mdc-progress-error-color - The color of the spinner when in error state.
|
30
|
+
*
|
31
|
+
*/
|
32
|
+
const reactWrapper = createComponent({
|
33
|
+
tagName: TAG_NAME,
|
34
|
+
elementClass: Component,
|
35
|
+
react: React,
|
36
|
+
events: {},
|
37
|
+
displayName: 'Progressspinner',
|
38
|
+
});
|
39
|
+
export default reactWrapper;
|
package/package.json
CHANGED