@sproutsocial/racine 16.0.0 → 18.0.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 (101) hide show
  1. package/CHANGELOG.md +77 -0
  2. package/README.md +16 -14
  3. package/__flow__/Card/Card.flow.js +5 -1
  4. package/__flow__/Card/CardTypes.flow.js +8 -1
  5. package/__flow__/EnumLogoNames.flow.js +1 -1
  6. package/__flow__/Icon/Icon.flow.js +2 -2
  7. package/__flow__/LogoViewBoxes.js +14 -0
  8. package/__flow__/Numeral/Numeral.flow.js +2 -0
  9. package/__flow__/PartnerLogo/PartnerLogo.flow.js +7 -2
  10. package/__flow__/PartnerLogo/index.flow.js +1 -2
  11. package/__flow__/Toast/Toast.flow.js +2 -2
  12. package/__flow__/index.flow.js +1 -2
  13. package/commonjs/Card/Card.js +14 -9
  14. package/commonjs/Card/index.js +8 -1
  15. package/commonjs/Card/styles.js +40 -12
  16. package/commonjs/Card/subComponents.js +46 -5
  17. package/commonjs/Card/utils.js +9 -5
  18. package/commonjs/ChartLegend/ChartLegend.js +6 -23
  19. package/commonjs/ChartLegend/useChartLabels.js +41 -0
  20. package/commonjs/Icon/Icon.js +3 -2
  21. package/commonjs/Link/Link.js +2 -1
  22. package/commonjs/LogoViewBoxes.js +14 -0
  23. package/commonjs/Menu/Menu.js +69 -55
  24. package/commonjs/Menu/styles.js +1 -1
  25. package/commonjs/Numeral/Numeral.js +11 -2
  26. package/commonjs/PartnerLogo/PartnerLogo.js +34 -29
  27. package/commonjs/PartnerLogo/PartnerLogoTypes.js +14 -3
  28. package/commonjs/PartnerLogo/index.flow.js +0 -11
  29. package/commonjs/Switch/styles.js +1 -1
  30. package/commonjs/iconNames.js +8 -0
  31. package/commonjs/illustrationNames.js +8 -0
  32. package/commonjs/index.js +24 -0
  33. package/commonjs/logoNames.js +8 -0
  34. package/dist/logo.svg +1 -1
  35. package/dist/logoList.js +1 -1
  36. package/dist/types/Card/Card.d.ts.map +1 -1
  37. package/dist/types/Card/CardTypes.d.ts +11 -1
  38. package/dist/types/Card/CardTypes.d.ts.map +1 -1
  39. package/dist/types/Card/index.d.ts +1 -1
  40. package/dist/types/Card/index.d.ts.map +1 -1
  41. package/dist/types/Card/styles.d.ts +9 -1
  42. package/dist/types/Card/styles.d.ts.map +1 -1
  43. package/dist/types/Card/subComponents.d.ts +5 -0
  44. package/dist/types/Card/subComponents.d.ts.map +1 -1
  45. package/dist/types/Card/utils.d.ts +2 -1
  46. package/dist/types/Card/utils.d.ts.map +1 -1
  47. package/dist/types/ChartLegend/ChartLegend.d.ts.map +1 -1
  48. package/dist/types/ChartLegend/ChartLegendTypes.d.ts +8 -5
  49. package/dist/types/ChartLegend/ChartLegendTypes.d.ts.map +1 -1
  50. package/dist/types/ChartLegend/useChartLabels.d.ts +4 -0
  51. package/dist/types/ChartLegend/useChartLabels.d.ts.map +1 -0
  52. package/dist/types/EnumLogoNames.d.ts +1 -1
  53. package/dist/types/EnumLogoNames.d.ts.map +1 -1
  54. package/dist/types/Icon/Icon.d.ts.map +1 -1
  55. package/dist/types/Icon/IconTypes.d.ts +2 -2
  56. package/dist/types/Icon/IconTypes.d.ts.map +1 -1
  57. package/dist/types/Menu/Menu.d.ts.map +1 -1
  58. package/dist/types/Menu/styles.d.ts.map +1 -1
  59. package/dist/types/Numeral/Numeral.d.ts.map +1 -1
  60. package/dist/types/Numeral/NumeralTypes.d.ts +2 -0
  61. package/dist/types/Numeral/NumeralTypes.d.ts.map +1 -1
  62. package/dist/types/Numeral/__tests__/features/testNumeral.d.ts.map +1 -1
  63. package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
  64. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +13 -4
  65. package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
  66. package/dist/types/Switch/styles.d.ts.map +1 -1
  67. package/dist/types/Toast/ToastTypes.d.ts +2 -2
  68. package/dist/types/Toast/ToastTypes.d.ts.map +1 -1
  69. package/dist/types/iconNames.d.ts +3 -0
  70. package/dist/types/iconNames.d.ts.map +1 -0
  71. package/dist/types/illustrationNames.d.ts +3 -0
  72. package/dist/types/illustrationNames.d.ts.map +1 -0
  73. package/dist/types/index.d.ts +3 -0
  74. package/dist/types/index.d.ts.map +1 -1
  75. package/dist/types/logoNames.d.ts +3 -0
  76. package/dist/types/logoNames.d.ts.map +1 -0
  77. package/lib/Card/Card.js +15 -10
  78. package/lib/Card/index.js +1 -1
  79. package/lib/Card/styles.js +38 -12
  80. package/lib/Card/subComponents.js +41 -4
  81. package/lib/Card/utils.js +9 -5
  82. package/lib/ChartLegend/ChartLegend.js +5 -23
  83. package/lib/ChartLegend/useChartLabels.js +33 -0
  84. package/lib/Icon/Icon.js +3 -2
  85. package/lib/Link/Link.js +2 -1
  86. package/lib/LogoViewBoxes.js +14 -0
  87. package/lib/Menu/Menu.js +69 -55
  88. package/lib/Menu/styles.js +1 -1
  89. package/lib/Numeral/Numeral.js +11 -2
  90. package/lib/PartnerLogo/PartnerLogo.js +34 -27
  91. package/lib/PartnerLogo/PartnerLogoTypes.js +13 -2
  92. package/lib/PartnerLogo/index.flow.js +1 -2
  93. package/lib/Switch/styles.js +1 -1
  94. package/lib/iconNames.js +1 -0
  95. package/lib/illustrationNames.js +1 -0
  96. package/lib/index.js +4 -0
  97. package/lib/logoNames.js +1 -0
  98. package/package.json +3 -2
  99. package/__flow__/PartnerLogo/TypePartnerNames.flow.js +0 -3
  100. package/commonjs/PartnerLogo/TypePartnerNames.flow.js +0 -1
  101. package/lib/PartnerLogo/TypePartnerNames.flow.js +0 -0
package/dist/logoList.js CHANGED
@@ -1 +1 @@
1
- module.exports = ["adobe-experience-manager-dark","adobe-experience-manager","apple-app-store-dark","apple-app-store","bigcommerce-dark","bigcommerce-lockup-dark","bigcommerce-lockup","bigcommerce","bitly-dark","bitly","bynder-dark","bynder","canva-dark","canva","dropbox-dark","dropbox-lockup-dark","dropbox-lockup","dropbox-wordmark-dark","dropbox-wordmark","dropbox","facebook-audience-network-dark","facebook-audience-network","facebook-dark","facebook-groups-dark","facebook-groups","facebook-shops-dark","facebook-shops","facebook","feedly-dark","feedly","glassdoor-dark","glassdoor","google-analytics-dark","google-analytics","google-business-messages-dark","google-business-messages","google-drive-dark","google-drive","google-my-business-dark","google-my-business","google-play-store-dark","google-play-store","hubspot-dark","hubspot","instagram-dark","instagram","linkedin-audience-network-dark","linkedin-audience-network","linkedin-dark","linkedin","marketo-dark","marketo","messenger-dark","messenger","microsoft-dynamics-dark","microsoft-dynamics","pinterest-dark","pinterest","reddit-dark","reddit","salesforce-dark","salesforce","shopify-dark","shopify","slack-dark","slack","sproutsocial-dark","sproutsocial-lockup-dark","sproutsocial-lockup","sproutsocial-wordmark-dark","sproutsocial-wordmark","sproutsocial","tiktok-dark","tiktok","tripadvisor-dark","tripadvisor","tumblr-dark","tumblr","twitter-audience-network-dark","twitter-audience-network","twitter-dark","twitter","whatsapp-dark","whatsapp","woocommerce-dark","woocommerce","yelp-dark","yelp","youtube-dark","youtube","zendesk-dark","zendesk-lockup-dark","zendesk-lockup","zendesk-wordmark-dark","zendesk-wordmark","zendesk"];
1
+ module.exports = ["adobe-experience-manager","android","apple-app-store","apple","bigcommerce","bitly","bynder","canva","dropbox","facebook-audience-network","facebook","facebook-groups","facebook-shops","feedly","github","glassdoor","google-analytics","google-business-messages","google-drive","google-my-business","google-play-store","hubspot","instagram","linkedin-audience-network","linkedin","marketo","messenger","microsoft-dynamics","pinterest","reddit-alien","reddit","salesforce-cloud","salesforce","shopify","slack","sproutsocial","tableau","tiktok","tripadvisor","tumblr","twitter-audience-network","twitter","whatsapp","woocommerce","yelp","youtube","zendesk"];
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAI1C;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,IAAI,8EASP,aAAa,sBA8Bf,CAAC;AAEF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../../src/Card/Card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAC;AAE9C,OAAO,EAAC,aAAa,EAAkB,MAAM,aAAa,CAAC;AAI3D;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,IAAI,8EASP,aAAa,sBAwCf,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { TypeIconProps } from '../Icon';
2
2
  import * as React from 'react';
3
3
  import { TypeStyledComponentsCommonProps } from '../types/styled-components';
4
- import type { TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps } from '../systemProps';
4
+ import type { TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps, TypeTypographySystemProps } from '../systemProps';
5
5
  export interface TypeSharedCardSystemProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'color'>, TypeStyledComponentsCommonProps, TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps {
6
6
  }
7
7
  export interface TypeCardStyleProps {
@@ -9,6 +9,7 @@ export interface TypeCardStyleProps {
9
9
  disabled?: boolean;
10
10
  compositionalComponents?: boolean;
11
11
  selected?: boolean;
12
+ isRoleLink?: boolean;
12
13
  }
13
14
  export declare type TypeStyleTransientProps<T> = {
14
15
  [K in Extract<keyof T, string> as `$${K}`]: T[K];
@@ -49,5 +50,14 @@ export interface TypeCardArea extends TypeSharedCardSystemProps {
49
50
  export interface TypeStyledSelectedIcon extends TypeIconProps {
50
51
  $selected: Pick<TypeCardStyleTransientProps, '$selected'>;
51
52
  }
53
+ export interface TypeCardContext {
54
+ setHasSubComponent?: React.Dispatch<React.SetStateAction<boolean>>;
55
+ href?: string;
56
+ linkRef: React.RefObject<HTMLAnchorElement> | null;
57
+ }
58
+ export interface TypeCardLink extends Omit<React.ComponentPropsWithoutRef<'a'>, 'color'>, TypeColorSystemProps, TypeTypographySystemProps {
59
+ affordance?: boolean;
60
+ external?: boolean;
61
+ }
52
62
  export {};
53
63
  //# sourceMappingURL=CardTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardTypes.d.ts","sourceRoot":"","sources":["../../../src/Card/CardTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AACxC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAC7E,OAAO,KAAK,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,WAAW,yBACf,SAAQ,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,EAC1D,+BAA+B,EAC/B,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,mBAAmB,EACnB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB;CAAG;AAG3B,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACtC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAGD,oBAAY,uBAAuB,CAAC,CAAC,IAAI;KACtC,CAAC,IAAI,OAAO,CAAC,MAAM,CAA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B,yBAAyB;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -1,6 +1,6 @@
1
1
  import Card from './Card';
2
2
  export default Card;
3
3
  export { Card };
4
- export { CardHeader, CardContent, CardFooter } from './subComponents';
4
+ export { CardHeader, CardContent, CardFooter, CardLink } from './subComponents';
5
5
  export * from './CardTypes';
6
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,eAAe,IAAI,CAAC;AACpB,OAAO,EAAC,IAAI,EAAC,CAAC;AACd,OAAO,EAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,iBAAiB,CAAC;AACpE,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/Card/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,QAAQ,CAAC;AAE1B,eAAe,IAAI,CAAC;AACpB,OAAO,EAAC,IAAI,EAAC,CAAC;AACd,OAAO,EAAC,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAC9E,cAAc,aAAa,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { TypeStyledCard, TypeCardArea, TypeStyledSelectedIcon } from './CardTypes';
2
+ import { TypeStyledCard, TypeCardArea, TypeStyledSelectedIcon, TypeCardLink } from './CardTypes';
3
3
  export declare const StyledCardContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TypeCardArea, never>;
4
4
  export declare const StyledCardHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TypeCardArea, never>;
5
5
  export declare const StyledCardFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TypeCardArea, never>;
@@ -11,5 +11,13 @@ export declare const StyledSelectedIcon: import("styled-components").StyledCompo
11
11
  displayName: string;
12
12
  };
13
13
  }, import("styled-components").DefaultTheme, TypeStyledSelectedIcon, never>;
14
+ export declare const StyledCardLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, TypeCardLink, never>;
14
15
  export declare const StyledCard: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, TypeStyledCard, never>;
16
+ export declare const StyledCardAffordance: import("styled-components").StyledComponent<{
17
+ ({ name, size, fixedWidth, ariaLabel, color, svgProps, ...rest }: import("../Icon").TypeIconProps): import("react").JSX.Element;
18
+ Toggle: {
19
+ ({ activeName, inactiveName, isActive, size, fixedWidth, ariaLabel, ...rest }: import("../Icon").TypeToggleProps): import("react").JSX.Element;
20
+ displayName: string;
21
+ };
22
+ }, import("styled-components").DefaultTheme, {}, never>;
15
23
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Card/styles.tsx"],"names":[],"mappings":";AAWA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,sBAAsB,EACvB,MAAM,aAAa,CAAC;AAQrB,eAAO,MAAM,iBAAiB,mHAY7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mHAa5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mHAa5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,yGAO/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;2EAW9B,CAAC;AAEF,eAAO,MAAM,UAAU,qHAgDtB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Card/styles.tsx"],"names":[],"mappings":";AAYA,OAAO,EACL,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,YAAY,EACb,MAAM,aAAa,CAAC;AAQrB,eAAO,MAAM,iBAAiB,mHAY7B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mHAa5B,CAAC;AAEF,eAAO,MAAM,gBAAgB,mHAa5B,CAAC;AAEF,eAAO,MAAM,mBAAmB,yGAO/B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;2EAW9B,CAAC;AAEF,eAAO,MAAM,cAAc,iHAQ1B,CAAC;AAEF,eAAO,MAAM,UAAU,qHA8DtB,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;;;;uDAKhC,CAAC"}
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { TypeCardLink } from './CardTypes';
2
3
  export declare const CardContent: ({ children, ...rest }: {
3
4
  [x: string]: any;
4
5
  children: any;
@@ -14,4 +15,8 @@ export declare const CardFooter: ({ children, ...rest }: {
14
15
  export declare const SelectedIcon: ({ $selected }: {
15
16
  $selected: any;
16
17
  }) => React.JSX.Element;
18
+ export declare const CardAffordance: ({ ...rest }: {
19
+ [x: string]: any;
20
+ }) => React.JSX.Element;
21
+ export declare const CardLink: ({ affordance, children, external, color, ...rest }: React.PropsWithChildren<TypeCardLink>) => React.JSX.Element;
17
22
  //# sourceMappingURL=subComponents.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"subComponents.d.ts","sourceRoot":"","sources":["../../../src/Card/subComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAU1B,eAAO,MAAM,WAAW;;;uBAKvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;uBAGtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;uBAGtB,CAAC;AAEF,eAAO,MAAM,YAAY;;uBAWxB,CAAC"}
1
+ {"version":3,"file":"subComponents.d.ts","sourceRoot":"","sources":["../../../src/Card/subComponents.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAWzC,eAAO,MAAM,WAAW;;;uBAKvB,CAAC;AAEF,eAAO,MAAM,UAAU;;;uBAGtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;uBAGtB,CAAC;AAEF,eAAO,MAAM,YAAY;;uBAWxB,CAAC;AAEF,eAAO,MAAM,cAAc;;uBAU1B,CAAC;AAEF,eAAO,MAAM,QAAQ,uDAMlB,MAAM,iBAAiB,CAAC,YAAY,CAAC,sBAqBvC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { TypeCardProps } from './CardTypes';
3
- export declare const SubComponentContext: import("react").Context<(hasChild: boolean) => void>;
3
+ import { TypeCardContext } from './CardTypes';
4
+ export declare const SubComponentContext: import("react").Context<TypeCardContext>;
4
5
  export declare function useChildContext(): void;
5
6
  interface navigateToParams extends Pick<TypeCardProps, 'href'> {
6
7
  e: React.MouseEvent | React.KeyboardEvent;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/Card/utils.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1C,eAAO,MAAM,mBAAmB,qCAA4B,OAAO,KAAK,IAAI,CAG3E,CAAC;AAEF,wBAAgB,eAAe,SAG9B;AAED,UAAU,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAC5D,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC;IAC1C,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,UAAU,qBAAoB,gBAAgB,SAiB1D,CAAC;AAEF,UAAU,eACR,SAAQ,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IACxD,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,SAAS,oCAAmC,eAAe,SAYvE,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/Card/utils.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAC,eAAe,EAAC,MAAM,aAAa,CAAC;AAE5C,eAAO,MAAM,mBAAmB,0CAK9B,CAAC;AAEH,wBAAgB,eAAe,SAG9B;AAED,UAAU,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC;IAC5D,CAAC,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC;IAC1C,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,UAAU,qBAAoB,gBAAgB,SAiB1D,CAAC;AAEF,UAAU,eACR,SAAQ,IAAI,CAAC,aAAa,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAAC;IACxD,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACvB,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,SAAS,oCAAmC,eAAe,SAYvE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartLegend.d.ts","sourceRoot":"","sources":["../../../src/ChartLegend/ChartLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EACV,oBAAoB,EAErB,MAAM,oBAAoB,CAAC;AAoB5B,QAAA,MAAM,WAAW,kDAMd,oBAAoB,sBAMtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"ChartLegend.d.ts","sourceRoot":"","sources":["../../../src/ChartLegend/ChartLegend.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAG7D,QAAA,MAAM,WAAW,kDAMd,oBAAoB,sBAQtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,16 +1,19 @@
1
1
  import * as React from 'react';
2
2
  import type { TypeStyledComponentsCommonProps } from '../types/styled-components';
3
3
  import type { TypeSystemCommonProps, TypeSystemLayoutProps } from '../types/system-props';
4
- export declare type TypeChartLegendTheme = 'compare' | 'contrast' | 'extended';
4
+ /** @deprecated legend themes will be handled automatically by the standard dataviz rotation in a future version */
5
+ export declare type TypeChartLegendTheme = 'compare' | 'contrast' | 'extended' | 'datavizRotation';
6
+ export interface TypeLegendLabels {
7
+ name: string;
8
+ color?: string;
9
+ }
5
10
  export interface TypeChartLegendProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, TypeSystemLayoutProps, Omit<React.ComponentPropsWithoutRef<'div'>, 'color'> {
6
11
  /** Inline or stacked y plots */
7
12
  stacked?: boolean;
13
+ /** @deprecated legend themes will be handled automatically by the standard dataviz rotation in a future version */
8
14
  theme?: TypeChartLegendTheme;
9
15
  /** Array of names with optional color to display. If no color is specified, index of label will be used to determine color based on the theme. */
10
- legendLabels: {
11
- name: string;
12
- color?: string;
13
- }[];
16
+ legendLabels: TypeLegendLabels[];
14
17
  qa?: object;
15
18
  }
16
19
  //# sourceMappingURL=ChartLegendTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChartLegendTypes.d.ts","sourceRoot":"","sources":["../../../src/ChartLegend/ChartLegendTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,oBAAY,oBAAoB,GAAG,SAAS,GAAG,UAAU,GAAG,UAAU,CAAC;AACvE,MAAM,WAAW,oBACf,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,qBAAqB,EACrB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACtD,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,kJAAkJ;IAClJ,YAAY,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAC,EAAE,CAAC;IAC/C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
1
+ {"version":3,"file":"ChartLegendTypes.d.ts","sourceRoot":"","sources":["../../../src/ChartLegend/ChartLegendTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAAO,KAAK,EACV,qBAAqB,EACrB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,mHAAmH;AACnH,oBAAY,oBAAoB,GAC5B,SAAS,GACT,UAAU,GACV,UAAU,GACV,iBAAiB,CAAC;AACtB,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AACD,MAAM,WAAW,oBACf,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,qBAAqB,EACrB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IACtD,gCAAgC;IAChC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,mHAAmH;IACnH,KAAK,CAAC,EAAE,oBAAoB,CAAC;IAC7B,kJAAkJ;IAClJ,YAAY,EAAE,gBAAgB,EAAE,CAAC;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;CACb"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TypeChartLegendTheme, TypeLegendLabels } from './ChartLegendTypes';
3
+ export declare const useChartLabels: (legendLabels: TypeLegendLabels[], theme: TypeChartLegendTheme) => React.JSX.Element[];
4
+ //# sourceMappingURL=useChartLabels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useChartLabels.d.ts","sourceRoot":"","sources":["../../../src/ChartLegend/useChartLabels.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAC,oBAAoB,EAAE,gBAAgB,EAAC,MAAM,oBAAoB,CAAC;AAmE/E,eAAO,MAAM,cAAc,iBACX,gBAAgB,EAAE,SACzB,oBAAoB,wBAmB5B,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare type EnumLogoNames = "adobe-experience-manager-dark" | "adobe-experience-manager" | "apple-app-store-dark" | "apple-app-store" | "bigcommerce-dark" | "bigcommerce-lockup-dark" | "bigcommerce-lockup" | "bigcommerce" | "bitly-dark" | "bitly" | "bynder-dark" | "bynder" | "canva-dark" | "canva" | "dropbox-dark" | "dropbox-lockup-dark" | "dropbox-lockup" | "dropbox-wordmark-dark" | "dropbox-wordmark" | "dropbox" | "facebook-audience-network-dark" | "facebook-audience-network" | "facebook-dark" | "facebook-groups-dark" | "facebook-groups" | "facebook-shops-dark" | "facebook-shops" | "facebook" | "feedly-dark" | "feedly" | "glassdoor-dark" | "glassdoor" | "google-analytics-dark" | "google-analytics" | "google-business-messages-dark" | "google-business-messages" | "google-drive-dark" | "google-drive" | "google-my-business-dark" | "google-my-business" | "google-play-store-dark" | "google-play-store" | "hubspot-dark" | "hubspot" | "instagram-dark" | "instagram" | "linkedin-audience-network-dark" | "linkedin-audience-network" | "linkedin-dark" | "linkedin" | "marketo-dark" | "marketo" | "messenger-dark" | "messenger" | "microsoft-dynamics-dark" | "microsoft-dynamics" | "pinterest-dark" | "pinterest" | "reddit-dark" | "reddit" | "salesforce-dark" | "salesforce" | "shopify-dark" | "shopify" | "slack-dark" | "slack" | "sproutsocial-dark" | "sproutsocial-lockup-dark" | "sproutsocial-lockup" | "sproutsocial-wordmark-dark" | "sproutsocial-wordmark" | "sproutsocial" | "tiktok-dark" | "tiktok" | "tripadvisor-dark" | "tripadvisor" | "tumblr-dark" | "tumblr" | "twitter-audience-network-dark" | "twitter-audience-network" | "twitter-dark" | "twitter" | "whatsapp-dark" | "whatsapp" | "woocommerce-dark" | "woocommerce" | "yelp-dark" | "yelp" | "youtube-dark" | "youtube" | "zendesk-dark" | "zendesk-lockup-dark" | "zendesk-lockup" | "zendesk-wordmark-dark" | "zendesk-wordmark" | "zendesk";
1
+ export declare type EnumLogoNames = "adobe-experience-manager" | "android" | "apple-app-store" | "apple" | "bigcommerce" | "bitly" | "bynder" | "canva" | "dropbox" | "facebook-audience-network" | "facebook" | "facebook-groups" | "facebook-shops" | "feedly" | "github" | "glassdoor" | "google-analytics" | "google-business-messages" | "google-drive" | "google-my-business" | "google-play-store" | "hubspot" | "instagram" | "linkedin-audience-network" | "linkedin" | "marketo" | "messenger" | "microsoft-dynamics" | "pinterest" | "reddit-alien" | "reddit" | "salesforce-cloud" | "salesforce" | "shopify" | "slack" | "sproutsocial" | "tableau" | "tiktok" | "tripadvisor" | "tumblr" | "twitter-audience-network" | "twitter" | "whatsapp" | "woocommerce" | "yelp" | "youtube" | "zendesk";
2
2
  //# sourceMappingURL=EnumLogoNames.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EnumLogoNames.d.ts","sourceRoot":"","sources":["../../src/EnumLogoNames.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa,GAAG,+BAA+B,GAAG,0BAA0B,GAAG,sBAAsB,GAAG,iBAAiB,GAAG,kBAAkB,GAAG,yBAAyB,GAAG,oBAAoB,GAAG,aAAa,GAAG,YAAY,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,YAAY,GAAG,OAAO,GAAG,cAAc,GAAG,qBAAqB,GAAG,gBAAgB,GAAG,uBAAuB,GAAG,kBAAkB,GAAG,SAAS,GAAG,gCAAgC,GAAG,2BAA2B,GAAG,eAAe,GAAG,sBAAsB,GAAG,iBAAiB,GAAG,qBAAqB,G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AG,WAAW,GAAG,kBAAkB,GAAG,0BAA0B,GAAG,cAAc,GAAG,oBAAoB,GAAG,mBAAmB,GAAG,SAAS,GAAG,WAAW,GAAG,2BAA2B,GAAG,UAAU,GAAG,SAAS,GAAG,WAAW,GAAG,oBAAoB,GAAG,WAAW,GAAG,cAAc,GAAG,QAAQ,GAAG,kBAAkB,GAAG,YAAY,GAAG,SAAS,GAAG,OAAO,GAAG,cAAc,GAAG,SAAS,GAAG,QAAQ,GAAG,aAAa,GAAG,QAAQ,GAAG,0BAA0B,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAW/B,OAAO,KAAK,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AAGhE,QAAA,MAAM,IAAI;sEAQP,aAAa;IAqGhB;;;;;;;;;;;;;;;;;;OAkBG;;uFA1CA,eAAe;;;CA7BjB,CAAC;AA0EF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AAGhE,QAAA,MAAM,IAAI;sEAQP,aAAa;IAqGhB;;;;;;;;;;;;;;;;;;OAkBG;;uFA1CA,eAAe;;;CA7BjB,CAAC;AA0EF,eAAe,IAAI,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import { EnumIconNames } from '../EnumIconNames';
3
+ import type { EnumLogoNames } from '../EnumLogoNames';
3
4
  import type { TypeStyledComponentsCommonProps } from '../types/styled-components';
4
5
  import type { TypeSystemCommonProps } from '../types/system-props';
5
6
  import { TypeBoxProps } from '../Box';
6
7
  import deprecatedIcons from './deprecatedIcons';
7
- import { type TypePartnerNames } from '../PartnerLogo';
8
8
  export declare type TypeDeprecatedIconNames = keyof typeof deprecatedIcons;
9
- export declare type TypeIconName = EnumIconNames | TypePartnerNames | TypeDeprecatedIconNames;
9
+ export declare type TypeIconName = EnumIconNames | EnumLogoNames | TypeDeprecatedIconNames;
10
10
  export declare type TypeIconSize = 'mini' | 'default' | 'small' | 'medium' | 'large' | 'jumbo';
11
11
  export interface TypeIconProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, Omit<React.ComponentPropsWithoutRef<'span'>, 'color'> {
12
12
  /** Name of the icon in the svg sprite */
@@ -1 +1 @@
1
- {"version":3,"file":"IconTypes.d.ts","sourceRoot":"","sources":["../../../src/Icon/IconTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAGtC,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,KAAK,gBAAgB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,oBAAY,uBAAuB,GAAG,MAAM,OAAO,eAAe,CAAC;AACnE,oBAAY,YAAY,GACpB,aAAa,GACb,gBAAgB,GAChB,uBAAuB,CAAC;AAE5B,oBAAY,YAAY,GACpB,MAAM,GAEN,SAAS,GACT,OAAO,GACP,QAAQ,GACR,OAAO,GACP,OAAO,CAAC;AAEZ,MAAM,WAAW,aACf,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,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B,mBAAmB,sBA+CrB,CAAC;AAEF,eAAe,IAAI,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Menu/styles.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,qBAAqB,CAAC;AAEpE,eAAO,MAAM,iBAAiB,uyMAoE7B,CAAC;AACF,eAAO,MAAM,kBAAkB,+wMAK9B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Menu/styles.ts"],"names":[],"mappings":";AAGA,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,qBAAqB,CAAC;AAEpE,eAAO,MAAM,iBAAiB,uyMAoE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,+wMAQ9B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Numeral.d.ts","sourceRoot":"","sources":["../../../src/Numeral/Numeral.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B,OAAO,KAAK,EAAoB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAqHxE,QAAA,MAAM,OAAO,UAAW,gBAAgB,sBA+BvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Numeral.d.ts","sourceRoot":"","sources":["../../../src/Numeral/Numeral.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgB/B,OAAO,KAAK,EAAoB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAyHxE,QAAA,MAAM,OAAO,UAAW,gBAAgB,sBA0CvC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -11,6 +11,8 @@ export interface TypeNumeralProps extends Omit<TypeTextProps, 'children'> {
11
11
  currency?: string;
12
12
  /** A boolean determining whether or not the number should be abbreviated, or a number representing the abbreviation threshold */
13
13
  abbreviate?: boolean | number;
14
+ /** Text to be read off by screen readers for invalid values (i.e., any value rendered as '—' (em dash)) */
15
+ invalidNumberLabel?: string;
14
16
  /** Override the default decimal precision (2 for decimals/currency, 1 for percentages), or "none" allowing unrestricted precision. */
15
17
  precision?: number | 'none';
16
18
  qa?: TypeQaProps;
@@ -1 +1 @@
1
- {"version":3,"file":"NumeralTypes.d.ts","sourceRoot":"","sources":["../../../src/Numeral/NumeralTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,oBAAY,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC;IACvE,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEnC,mIAAmI;IACnI,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kIAAkI;IAClI,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE9B,sIAAsI;IACtI,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB"}
1
+ {"version":3,"file":"NumeralTypes.d.ts","sourceRoot":"","sources":["../../../src/Numeral/NumeralTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAE9C,oBAAY,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AAEnE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,aAAa,EAAE,UAAU,CAAC;IACvE,iCAAiC;IACjC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAEnC,mIAAmI;IACnI,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAE3B,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,kIAAkI;IAClI,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAE9B,2GAA2G;IAC3G,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,sIAAsI;IACtI,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"testNumeral.d.ts","sourceRoot":"","sources":["../../../../../src/Numeral/__tests__/features/testNumeral.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,WAAW,2DAuBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"testNumeral.d.ts","sourceRoot":"","sources":["../../../../../src/Numeral/__tests__/features/testNumeral.tsx"],"names":[],"mappings":"AAWA,QAAA,MAAM,WAAW,2DA0BhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"PartnerLogo.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAExD,QAAA,MAAM,WAAW,+GAUd,oBAAoB,sBAgDtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"PartnerLogo.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAC,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAyBxD,QAAA,MAAM,WAAW,+GAUd,oBAAoB,sBAiCtB,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,8 +1,15 @@
1
1
  import * as React from 'react';
2
+ import type { EnumLogoNames } from '../EnumLogoNames';
2
3
  import type { TypeStyledComponentsCommonProps } from '../types/styled-components';
3
4
  import type { TypeSystemCommonProps, TypeSystemFlexboxProps } from '../types/system-props';
4
- export declare const PartnerNames: readonly ["apple-app-store", "bigcommerce", "bitly", "bynder", "canva", "dropbox", "facebook", "facebook-audience-network", "facebook-groups", "facebook-shops", "feedly", "glassdoor", "google-analytics", "google-business-messages", "google-drive", "google-my-business", "google-play-store", "hubspot", "instagram", "linkedin", "linkedin-audience-network", "marketo", "messenger", "microsoft-dynamics", "pinterest", "reddit", "salesforce", "shopify", "slack", "sproutsocial", "tiktok", "tripadvisor", "tumblr", "twitter", "twitter-audience-network", "whatsapp", "woocommerce", "yelp", "youtube", "zendesk"];
5
- export declare type TypePartnerNames = (typeof PartnerNames)[number];
5
+ /**
6
+ * @deprecated Use PartnerLogoNames instead
7
+ */
8
+ export declare const PartnerNames: readonly ["adobe-experience-manager", "android", "apple-app-store", "apple", "bigcommerce", "bitly", "bynder", "canva", "dropbox", "facebook-audience-network", "facebook", "facebook-groups", "facebook-shops", "feedly", "github", "glassdoor", "google-analytics", "google-business-messages", "google-drive", "google-my-business", "google-play-store", "hubspot", "instagram", "linkedin-audience-network", "linkedin", "marketo", "messenger", "microsoft-dynamics", "pinterest", "reddit-alien", "reddit", "salesforce-cloud", "salesforce", "shopify", "slack", "sproutsocial", "tableau", "tiktok", "tripadvisor", "tumblr", "twitter-audience-network", "twitter", "whatsapp", "woocommerce", "yelp", "youtube", "zendesk"];
9
+ /**
10
+ * @deprecated Use EnumLogoNames instead
11
+ */
12
+ export declare type TypePartnerNames = EnumLogoNames;
6
13
  export declare const PartnerLogoSizes: {
7
14
  readonly mini: "12px";
8
15
  readonly small: "16px";
@@ -11,12 +18,14 @@ export declare const PartnerLogoSizes: {
11
18
  readonly jumbo: "64px";
12
19
  };
13
20
  export declare type TypePartnerLogoSize = keyof typeof PartnerLogoSizes;
21
+ export declare const PartnerLogoTypes: readonly ["symbol", "wordmark", "lockup"];
22
+ export declare type TypePartnerLogoTypes = (typeof PartnerLogoTypes)[number];
14
23
  export interface TypePartnerLogoProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, TypeSystemFlexboxProps, Omit<React.ComponentPropsWithoutRef<'span'>, 'color'> {
15
24
  /** The name of the partner whose logo you want to render. */
16
- partnerName: TypePartnerNames;
25
+ partnerName: EnumLogoNames;
17
26
  /** Manually override the default mode behavior by rendering a logo based on the background it's displayed on. */
18
27
  backgroundType?: 'dark' | 'light';
19
- logoType?: 'symbol' | 'wordmark' | 'lockup';
28
+ logoType?: TypePartnerLogoTypes;
20
29
  height?: string;
21
30
  width?: string;
22
31
  size?: TypePartnerLogoSize;
@@ -1 +1 @@
1
- {"version":3,"file":"PartnerLogoTypes.d.ts","sourceRoot":"","sources":["../../../src/PartnerLogo/PartnerLogoTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAAO,KAAK,EACV,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,YAAY,+lBAyCf,CAAC;AAEX,oBAAY,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAE7D,eAAO,MAAM,gBAAgB;;;;;;CAMnB,CAAC;AAEX,oBAAY,mBAAmB,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAEhE,MAAM,WAAW,oBACf,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,sBAAsB,EACtB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IACvD,6DAA6D;IAC7D,WAAW,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AAG,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,oBAAoB,CAAC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,mBAAmB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;CAClD"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Switch/styles.ts"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAWD,eAAO,MAAM,kBAAkB,iIAsH9B,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Switch/styles.ts"],"names":[],"mappings":"AAIA,UAAU,uBAAuB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAC;CACb;AAWD,eAAO,MAAM,kBAAkB,iIAuH9B,CAAC"}
@@ -1,12 +1,12 @@
1
1
  import * as React from 'react';
2
2
  import type { TypeColor } from '../types/theme';
3
- import type { EnumIconNames } from '../EnumIconNames';
3
+ import { TypeIconName } from '../Icon';
4
4
  export declare type TypeToastTheme = 'info' | 'success' | 'warning' | 'error';
5
5
  export interface TypeToastProps {
6
6
  theme?: TypeToastTheme;
7
7
  content: React.ReactNode;
8
8
  color?: TypeColor;
9
- icon?: EnumIconNames;
9
+ icon?: TypeIconName;
10
10
  }
11
11
  export interface TypeToastOptions extends TypeToastProps {
12
12
  theme?: TypeToastTheme;
@@ -1 +1 @@
1
- {"version":3,"file":"ToastTypes.d.ts","sourceRoot":"","sources":["../../../src/Toast/ToastTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEt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ClB"}
@@ -0,0 +1,3 @@
1
+ declare const _default: readonly ["active-listener", "add-item", "add-keyword", "add-team-member", "add-variable", "address-card-outline", "address-card-solid", "adobe-experience-manager", "ads", "advocacy-outline", "advocacy", "android", "apple", "approval-indicator-outline", "approval-indicator", "archive", "arrow-down-line", "arrow-down", "arrow-left-line", "arrow-left", "arrow-right-line", "arrow-right", "arrow-up-line", "arrow-up", "arrows", "asset-library-outline", "asset-library", "assign", "atom", "audio", "back-to-top", "bambu-icon-outline", "bambu-icon", "barcode", "basketball", "bell-outline", "bigcommerce", "bitly", "bold", "book", "bookmark", "bot", "browser", "business", "calendar-outline", "calendar", "camera-outline", "camera-story", "camera", "campaign", "canva", "carousel", "cart-plus-outline", "cart-plus", "check", "chevron-down-filled", "chevron-down", "chevron-left", "chevron-right", "chevron-up-down-filled", "chevron-up-filled", "chevron-up", "circle-check-outline", "circle-check", "circle", "circle+", "circles", "circlex", "click-to-view", "clicks", "clipboard-outline", "clipboard", "clock", "closed-captioning", "cloud", "code", "columns", "comment-ai-outline", "comment-ai", "comment-alt-outline", "comment-alt", "comment-lines-alt-outline", "comment", "compact-density", "compact-indicator", "comparison", "competitor", "compose", "content-suggestions", "credit-card", "crop", "crown", "dashboard", "deconstructed-negative-sentiment", "deconstructed-neutral-sentiment", "deconstructed-positive-sentiment", "discovery", "dislike-outline", "dislike", "dm-link-outline", "dm-link", "dotdotdot", "download", "drafts-outline", "drafts", "dropbox", "duplicate-outline", "duplicate", "emoji-outline", "emoji", "empty-image", "engagement-per-post", "engagements", "error", "exchange-alt", "expanded-indicator", "export", "extended-circles", "external-link-alt", "external-link", "extreme-negative-sentiment", "eye-outline", "eye-slash-outline", "eye-slash", "eye", "facebook-audience-network", "facebook-branded-content-outline", "facebook-branded-content", "facebook-groups", "facebook", "fb-reactions-angry", "fb-reactions-haha", "fb-reactions-like", "fb-reactions-love", "fb-reactions-sad", "fb-reactions-wow", "feedly", "feeds", "female", "file-chart-line", "file-edit", "file-times-solid", "filter", "flag-outline", "flag", "flat-negative-sentiment-outline", "flat-negative-sentiment", "flat-neutral-sentiment-outline", "flat-neutral-sentiment", "flat-positive-sentiment-outline", "flat-positive-sentiment", "folder-open", "folder", "follow-outline", "follow", "follower-increase", "following", "font", "full-access", "gear", "gears", "github", "glassdoor", "glasses", "globe", "google-analytics-color", "google-business-messages", "google-drive", "google-my-business", "grip", "h1", "h2", "h3", "h4", "hamburger", "hand-sparkle-outline", "hand-sparkle", "hashtag", "headset", "heart-outline", "heart", "heartbeat", "help-alt", "help", "hiking", "history", "home", "hourglass", "hubspot", "image-caption", "image", "images", "impressions-per-post", "impressions", "inactive-listener", "inbox-action", "inbox-views", "inbox", "indicator", "industry", "info", "instagram", "internal-activity-outline", "internal-activity", "italic", "key", "keyboard", "laptop-phone", "large-density", "lift", "like-outline", "like", "link", "linkedin-audience-network", "linkedin", "list-ol", "listening", "lists", "location-outline", "location", "lock", "magic-wand", "male", "marketo", "mention", "message-preview-outline", "message-preview", "message", "messages-outline", "messages", "messenger", "metric-table", "microsoft-dynamics", "minus", "mobile", "monitor", "moon", "negative-sentiment", "neutral-positive-sentiment", "neutral-sentiment", "new-trend", "newspaper", "no-access", "notepad", "notifications-publishing-outline", "notifications-publishing", "notifications", "offline", "online", "paid-promotion-outline", "paid-promotion", "paid", "paint", "palette", "paperclip", "pause", "pencil-outline", "pencil", "person", "phone", "pinterest-boards-outline", "pinterest-boards", "pinterest", "play-circle", "play", "plug", "plus", "positive-sentiment", "power-up-outline", "power-up", "profile-connect", "profile-disconnect", "publishing-outline", "publishing", "puzzle-piece", "qr-code", "queue", "quotes-solid", "recommendation", "reddit-alien", "reddit", "reels-outline", "reels", "referrals", "refresh", "rejected", "reply-outline", "reply", "reporting-period", "reporting", "reports-home", "reports", "retweet", "route", "rss", "sales", "salesforce-cloud", "salesforce", "save-assets", "saved-messages", "saved-reply-outline", "saved-reply", "search", "send-again-outline", "send-again", "sent-message-outline", "sent-message", "share", "shopify", "shopping-bag-outline", "shopping-bag", "show-navigation", "slack", "small-density", "smiley", "some-access", "sparkles", "spike-alert", "star-half-alt-solid", "star-of-life", "star-outline", "star", "sticky-note-outline", "sticky-note", "stories", "story", "suggestions", "sun", "tag-outline", "tag", "targeting-outline", "targeting", "tasks-check", "tasks-outline", "tasks", "team-conversation-outline", "team-conversation", "team-sprout-outline", "team-sprout", "team", "text-asset", "text", "tiktok", "times", "tools", "trash-can-outline", "trash-can", "trend-down", "trend-neutral", "trend-up", "trends", "triangle-black", "triangle", "tripadvisor-circle-outline", "tripadvisor-circle", "tripadvisor", "trophy-outline", "tumblr", "twitter-audience-network", "twitter", "underline", "unfollow-outline", "unfollow", "unlink", "unlock", "upload", "user-circle", "users", "verified", "video-camera-story", "video-camera", "vip", "weight", "whatsapp", "window-maximize", "window-minimize", "window-regular", "window-restore", "woocommerce", "x", "yelp-full-star", "yelp-half-star", "yelp", "youtube", "zendesk"];
2
+ export default _default;
3
+ //# sourceMappingURL=iconNames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"iconNames.d.ts","sourceRoot":"","sources":["../../src/iconNames.ts"],"names":[],"mappings":";AAAA,wBAAk4K"}
@@ -0,0 +1,3 @@
1
+ declare const _default: readonly ["abacus", "analytics-offering", "asset-cards", "astronaut", "binoculars", "brand-keyword", "browser-doc", "business", "calendar-event", "calendar-reporting", "cat-error", "cat-no-access", "cat", "checkbox-alert", "coffee-cup", "competitors", "compose-window", "compose", "computer-error", "connect", "contact", "conversation", "custom-branding", "custom-post-variables", "customer-service", "dashboard", "exclamation-mark", "face-happy", "find-bookmark", "flask", "general-topic", "global-features", "global-trend", "grow-large", "grow", "hands-raised", "headset", "heartbeat-connection", "instagram-links", "invoice", "jewel", "keyword-tracking", "lightbulb-alt", "lightbulb", "like-conversation", "link-broken", "link-messages", "link-sections", "link-upload", "listening-pendo", "listening-sentiment", "listening-topic-templates", "listening-tour", "listening", "loading", "mailbox-empty", "mailbox-full", "megaphone", "message", "molecule", "network-data", "no-messages-found", "no-notifications", "note", "notification", "notifications-onboarding", "notifications", "organize-message", "outbox-queue", "outbox-reviews", "pdf", "planning", "podium", "pointer", "publish-assets", "publish-links", "publishing-notifications", "publishing", "puzzle-piece", "question-mark", "reporting-folder", "reporting", "review-location", "review", "robot-assembly", "robot-error", "robot-happy", "rocket", "schedule-date", "schedule-messages", "search-keywords", "search-success", "search-trends", "search", "security", "sentiment", "shopping-bag", "spark-line", "sprout-mobile-app", "stamp", "storefront", "success", "tag-message", "tag", "team-roles", "team", "telescope", "tha-mel", "thumbs-up", "toggle-switch", "toolset-strength", "tracking-time", "twitter-messages", "twitter-profiles", "under-construction", "unsubscribe", "upward-trend", "user-task", "user-team", "variable-table", "view-connections", "vip-list", "warning", "wifi", "workflow-steps"];
2
+ export default _default;
3
+ //# sourceMappingURL=illustrationNames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"illustrationNames.d.ts","sourceRoot":"","sources":["../../src/illustrationNames.ts"],"names":[],"mappings":";AAAA,wBAAyzD"}
@@ -1,6 +1,9 @@
1
1
  export type { EnumIconNames } from './EnumIconNames';
2
2
  export type { EnumIllustrationNames } from './EnumIllustrationNames';
3
3
  export type { EnumLogoNames } from './EnumLogoNames';
4
+ export { default as IconNames } from './iconNames';
5
+ export { default as SpotIllustrationNames } from './illustrationNames';
6
+ export { default as PartnerLogoNames } from './logoNames';
4
7
  export * from './systemProps';
5
8
  export { default as theme } from './themes/light/theme';
6
9
  export { default as darkTheme } from './themes/dark/theme';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AACnD,YAAY,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AACnE,YAAY,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAGnD,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,sBAAsB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,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AAEjC;;GAEG;AACH,OAAO,EAAC,MAAM,IAAI,KAAK,EAAC,MAAM,UAAU,CAAC;AAEzC;;GAEG;AACH,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: readonly ["adobe-experience-manager", "android", "apple-app-store", "apple", "bigcommerce", "bitly", "bynder", "canva", "dropbox", "facebook-audience-network", "facebook", "facebook-groups", "facebook-shops", "feedly", "github", "glassdoor", "google-analytics", "google-business-messages", "google-drive", "google-my-business", "google-play-store", "hubspot", "instagram", "linkedin-audience-network", "linkedin", "marketo", "messenger", "microsoft-dynamics", "pinterest", "reddit-alien", "reddit", "salesforce-cloud", "salesforce", "shopify", "slack", "sproutsocial", "tableau", "tiktok", "tripadvisor", "tumblr", "twitter-audience-network", "twitter", "whatsapp", "woocommerce", "yelp", "youtube", "zendesk"];
2
+ export default _default;
3
+ //# sourceMappingURL=logoNames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logoNames.d.ts","sourceRoot":"","sources":["../../src/logoNames.ts"],"names":[],"mappings":";AAAA,wBAAwqB"}
package/lib/Card/Card.js CHANGED
@@ -10,7 +10,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
10
10
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
11
11
  import React, { useRef, useState } from 'react';
12
12
  import { StyledCard } from "./styles";
13
- import { SubComponentContext, navigateTo, onKeyDown } from "./utils";
13
+ import { SubComponentContext, onKeyDown } from "./utils";
14
14
  import { SelectedIcon } from "./subComponents";
15
15
 
16
16
  /**
@@ -43,13 +43,17 @@ var Card = function Card(_ref) {
43
43
  hasSubComponent = _useState2[0],
44
44
  setHasSubComponent = _useState2[1];
45
45
  var containerRef = useRef(null);
46
+ var linkRef = useRef(null);
47
+ var isRoleLink = role === 'link';
46
48
  var checkedConditions = role === 'checkbox' ? selected : undefined;
49
+ var cardContext = {
50
+ setHasSubComponent: setHasSubComponent,
51
+ href: href,
52
+ linkRef: linkRef
53
+ };
47
54
  var handleClickConditions = function handleClickConditions(e) {
48
- return role === 'link' ? navigateTo({
49
- e: e,
50
- href: href,
51
- ref: containerRef
52
- }) : onClick === null || onClick === void 0 ? void 0 : onClick(e);
55
+ var _linkRef$current;
56
+ return isRoleLink ? (_linkRef$current = linkRef.current) === null || _linkRef$current === void 0 ? void 0 : _linkRef$current.click() : onClick === null || onClick === void 0 ? void 0 : onClick(e);
53
57
  };
54
58
  var handleKeyDown = function handleKeyDown(e) {
55
59
  return onKeyDown({
@@ -61,8 +65,8 @@ var Card = function Card(_ref) {
61
65
  });
62
66
  };
63
67
  return /*#__PURE__*/React.createElement(StyledCard, _extends({
64
- tabIndex: 0,
65
- role: role,
68
+ tabIndex: isRoleLink ? -1 : 0,
69
+ role: isRoleLink ? undefined : role,
66
70
  onClick: handleClickConditions,
67
71
  onKeyDown: handleKeyDown,
68
72
  $elevation: elevation,
@@ -71,11 +75,12 @@ var Card = function Card(_ref) {
71
75
  "aria-checked": checkedConditions,
72
76
  $disabled: disabled,
73
77
  "aria-disabled": disabled && disabled,
74
- $compositionalComponents: hasSubComponent
78
+ $compositionalComponents: hasSubComponent,
79
+ $isRoleLink: isRoleLink
75
80
  }, rest), /*#__PURE__*/React.createElement(SelectedIcon, {
76
81
  $selected: selected
77
82
  }), /*#__PURE__*/React.createElement(SubComponentContext.Provider, {
78
- value: setHasSubComponent
83
+ value: cardContext
79
84
  }, children));
80
85
  };
81
86
  export default Card;
package/lib/Card/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import Card from "./Card";
2
2
  export default Card;
3
3
  export { Card };
4
- export { CardHeader, CardContent, CardFooter } from "./subComponents";
4
+ export { CardHeader, CardContent, CardFooter, CardLink } from "./subComponents";
5
5
  export * from "./CardTypes";