@theroutingcompany/components 0.0.70-alpha.0 → 0.0.70-alpha.2

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": "@theroutingcompany/components",
3
- "version": "0.0.70-alpha.0",
3
+ "version": "0.0.70-alpha.2",
4
4
  "description": "The Routing Company Components",
5
5
  "main": "./dist/trc-components.umd.js",
6
6
  "module": "./dist/trc-components.es.js",
@@ -43,3 +43,12 @@ export declare function clean(arr?: string[], config?: {
43
43
  shouldForwardProp: (prop: string, defaultFn: (prop: string) => boolean) => boolean;
44
44
  [k: string]: any;
45
45
  };
46
+ /**
47
+ * Returns an object with only the aria-* attributes from the props
48
+ * @param {Object} props
49
+ *
50
+ * @example
51
+ * getAriaAttributes({ 'aria-label': 'Label', 'data-id': 'id' })
52
+ * > { 'aria-label': 'Label' }
53
+ */
54
+ export declare function getAriaAttributes(props: Record<string, unknown>): Record<string, unknown>;