@momentum-design/components 0.22.3 → 0.22.5

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.
@@ -7,6 +7,12 @@ import Component from '../../components/iconprovider';
7
7
  * that only a url has to be passed in from which the icons will be
8
8
  * fetched.
9
9
  *
10
+ * If `shouldCache` is set to true, the IconProvider will cache the icons
11
+ * in a Map to avoid fetching the same icon multiple times over the network.
12
+ * This is useful when the same icon is used multiple times in the application.
13
+ * Keep in mind that this cache is not persisted and will be lost when the
14
+ * IconProvider is removed from the DOM.
15
+ *
10
16
  * @tagname mdc-iconprovider
11
17
  *
12
18
  * @slot - children
@@ -10,6 +10,12 @@ import { TAG_NAME } from '../../components/iconprovider/iconprovider.constants';
10
10
  * that only a url has to be passed in from which the icons will be
11
11
  * fetched.
12
12
  *
13
+ * If `shouldCache` is set to true, the IconProvider will cache the icons
14
+ * in a Map to avoid fetching the same icon multiple times over the network.
15
+ * This is useful when the same icon is used multiple times in the application.
16
+ * Keep in mind that this cache is not persisted and will be lost when the
17
+ * IconProvider is removed from the DOM.
18
+ *
13
19
  * @tagname mdc-iconprovider
14
20
  *
15
21
  * @slot - children
@@ -4,16 +4,16 @@ export { default as Badge } from './badge';
4
4
  export { default as Bullet } from './bullet';
5
5
  export { default as Button } from './button';
6
6
  export { default as Buttonsimple } from './buttonsimple';
7
- export { default as Divider } from './divider';
8
7
  export { default as Checkbox } from './checkbox';
8
+ export { default as Divider } from './divider';
9
9
  export { default as FormfieldWrapper } from './formfieldwrapper';
10
10
  export { default as Icon } from './icon';
11
- export { default as IconProvider } from './iconprovider';
12
11
  export { default as Input } from './input';
13
12
  export { default as Link } from './link';
14
13
  export { default as Marker } from './marker';
15
- export { default as Modalcontainer } from './modalcontainer';
14
+ export { default as IconProvider } from './iconprovider';
16
15
  export { default as Presence } from './presence';
16
+ export { default as Modalcontainer } from './modalcontainer';
17
17
  export { default as Radio } from './radio';
18
18
  export { default as Tab } from './tab';
19
19
  export { default as Text } from './text';
@@ -4,16 +4,16 @@ export { default as Badge } from './badge';
4
4
  export { default as Bullet } from './bullet';
5
5
  export { default as Button } from './button';
6
6
  export { default as Buttonsimple } from './buttonsimple';
7
- export { default as Divider } from './divider';
8
7
  export { default as Checkbox } from './checkbox';
8
+ export { default as Divider } from './divider';
9
9
  export { default as FormfieldWrapper } from './formfieldwrapper';
10
10
  export { default as Icon } from './icon';
11
- export { default as IconProvider } from './iconprovider';
12
11
  export { default as Input } from './input';
13
12
  export { default as Link } from './link';
14
13
  export { default as Marker } from './marker';
15
- export { default as Modalcontainer } from './modalcontainer';
14
+ export { default as IconProvider } from './iconprovider';
16
15
  export { default as Presence } from './presence';
16
+ export { default as Modalcontainer } from './modalcontainer';
17
17
  export { default as Radio } from './radio';
18
18
  export { default as Tab } from './tab';
19
19
  export { default as Text } from './text';
package/package.json CHANGED
@@ -36,5 +36,5 @@
36
36
  "lit": "^3.2.0",
37
37
  "uuid": "^11.0.5"
38
38
  },
39
- "version": "0.22.3"
39
+ "version": "0.22.5"
40
40
  }