@sproutsocial/racine 20.1.0 → 20.3.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 (61) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/__flow__/Button/Button.flow.js +3 -1
  3. package/__flow__/FormField/FormField.flow.js +3 -0
  4. package/__flow__/Text/Text.flow.js +3 -0
  5. package/__flow__/types/theme.flow.js +8 -0
  6. package/commonjs/Button/styles.js +2 -2
  7. package/commonjs/DatePicker/DateRangePicker/DateRangePicker.js +24 -7
  8. package/commonjs/DatePicker/SingleDatePicker/SingleDatePicker.js +18 -7
  9. package/commonjs/FormField/FormField.js +15 -5
  10. package/commonjs/Icon/Icon.js +1 -1
  11. package/commonjs/Skeleton/Skeleton.js +29 -5
  12. package/commonjs/Table/Table.js +3 -2
  13. package/commonjs/Text/styles.js +2 -2
  14. package/commonjs/Tooltip/Tooltip.js +3 -7
  15. package/commonjs/themes/dark/decorative-palettes.js +1 -1
  16. package/commonjs/themes/extendedThemes/sproutTheme/dark/theme.js +6 -0
  17. package/commonjs/themes/extendedThemes/sproutTheme/light/theme.js +6 -0
  18. package/commonjs/themes/light/decorative-palettes.js +1 -1
  19. package/dist/themes/dark/theme.scss +1 -1
  20. package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +13 -1
  21. package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +13 -1
  22. package/dist/themes/light/theme.scss +1 -1
  23. package/dist/types/Button/ButtonTypes.d.ts +2 -2
  24. package/dist/types/Button/ButtonTypes.d.ts.map +1 -1
  25. package/dist/types/Button/styles.d.ts.map +1 -1
  26. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +1 -1
  27. package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
  28. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +3 -1
  29. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
  30. package/dist/types/DatePicker/SingleDatePicker/SingleDatePicker.d.ts.map +1 -1
  31. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts +2 -0
  32. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts.map +1 -1
  33. package/dist/types/FormField/FormField.d.ts +1 -1
  34. package/dist/types/FormField/FormField.d.ts.map +1 -1
  35. package/dist/types/FormField/FormFieldTypes.d.ts +3 -0
  36. package/dist/types/FormField/FormFieldTypes.d.ts.map +1 -1
  37. package/dist/types/Icon/Icon.d.ts.map +1 -1
  38. package/dist/types/Skeleton/Skeleton.d.ts +3 -1
  39. package/dist/types/Skeleton/Skeleton.d.ts.map +1 -1
  40. package/dist/types/Text/TextTypes.d.ts +2 -2
  41. package/dist/types/Text/TextTypes.d.ts.map +1 -1
  42. package/dist/types/Text/styles.d.ts.map +1 -1
  43. package/dist/types/Tooltip/Tooltip.d.ts.map +1 -1
  44. package/dist/types/themes/extendedThemes/sproutTheme/dark/theme.d.ts +6 -0
  45. package/dist/types/themes/extendedThemes/sproutTheme/dark/theme.d.ts.map +1 -1
  46. package/dist/types/themes/extendedThemes/sproutTheme/light/theme.d.ts +6 -0
  47. package/dist/types/themes/extendedThemes/sproutTheme/light/theme.d.ts.map +1 -1
  48. package/lib/Button/styles.js +3 -3
  49. package/lib/DatePicker/DateRangePicker/DateRangePicker.js +25 -8
  50. package/lib/DatePicker/SingleDatePicker/SingleDatePicker.js +19 -8
  51. package/lib/FormField/FormField.js +16 -5
  52. package/lib/Icon/Icon.js +1 -1
  53. package/lib/Skeleton/Skeleton.js +30 -5
  54. package/lib/Table/Table.js +3 -2
  55. package/lib/Text/styles.js +3 -3
  56. package/lib/Tooltip/Tooltip.js +3 -7
  57. package/lib/themes/dark/decorative-palettes.js +1 -1
  58. package/lib/themes/extendedThemes/sproutTheme/dark/theme.js +6 -0
  59. package/lib/themes/extendedThemes/sproutTheme/light/theme.js +6 -0
  60. package/lib/themes/light/decorative-palettes.js +1 -1
  61. package/package.json +1 -1
@@ -1,4 +1,5 @@
1
- import { Moment } from 'moment';
1
+ /// <reference types="react" />
2
+ import type { Moment } from 'moment';
2
3
  import type { TypeCommonDatePickerProps } from '../../DatePicker/types';
3
4
  export type EnumFocusedInput = null | 'startDate' | 'endDate';
4
5
  export interface TypeStatefulDateRangePickerProps extends TypeCommonDatePickerProps {
@@ -13,5 +14,6 @@ export interface TypeStatefulDateRangePickerProps extends TypeCommonDatePickerPr
13
14
  setStatusText?: (dates: Moment[]) => string;
14
15
  }
15
16
  export interface TypeDateRangePickerProps extends Required<Pick<TypeStatefulDateRangePickerProps, 'focusedInput' | 'onDatesChange' | 'onFocusChange'>>, Pick<TypeStatefulDateRangePickerProps, 'startDate' | 'endDate' | 'setStatusText' | 'initialVisibleMonth' | 'numberOfMonths'> {
17
+ onBlur?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
16
18
  }
17
19
  //# sourceMappingURL=DateRangePickerTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DateRangePickerTypes.d.ts","sourceRoot":"","sources":["../../../../src/DatePicker/DateRangePicker/DateRangePickerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AAC9B,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,WAAW,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,gCACf,SAAQ,yBAAyB;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;KACxB,KAAK,IAAI,CAAC;IACX,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACjD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CAC7C;AAED,MAAM,WAAW,wBACf,SAAQ,QAAQ,CACZ,IAAI,CACF,gCAAgC,EAChC,cAAc,GAAG,eAAe,GAAG,eAAe,CACnD,CACF,EACD,IAAI,CACF,gCAAgC,EAC9B,WAAW,GACX,SAAS,GACT,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACnB;CAAG"}
1
+ {"version":3,"file":"DateRangePickerTypes.d.ts","sourceRoot":"","sources":["../../../../src/DatePicker/DateRangePicker/DateRangePickerTypes.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,WAAW,GAAG,SAAS,CAAC;AAE9D,MAAM,WAAW,gCACf,SAAQ,yBAAyB;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,gBAAgB,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QACrB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;QACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;KACxB,KAAK,IAAI,CAAC;IACX,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IACjD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CAC7C;AAED,MAAM,WAAW,wBACf,SAAQ,QAAQ,CACZ,IAAI,CACF,gCAAgC,EAChC,cAAc,GAAG,eAAe,GAAG,eAAe,CACnD,CACF,EACD,IAAI,CACF,gCAAgC,EAC9B,WAAW,GACX,SAAS,GACT,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACnB;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CACjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"SingleDatePicker.d.ts","sourceRoot":"","sources":["../../../../src/DatePicker/SingleDatePicker/SingleDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAQhD,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,yBAAyB,CAAC;;AAgDvE,wBAAuE"}
1
+ {"version":3,"file":"SingleDatePicker.d.ts","sourceRoot":"","sources":["../../../../src/DatePicker/SingleDatePicker/SingleDatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,yBAAyB,CAAC;;AA6DvE,wBAAuE"}
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { Moment } from 'moment';
2
3
  import type { TypeCommonDatePickerProps } from '../../DatePicker/types';
3
4
  export interface TypeStatefulSingleDatePickerProps extends TypeCommonDatePickerProps {
@@ -10,5 +11,6 @@ export interface TypeStatefulSingleDatePickerProps extends TypeCommonDatePickerP
10
11
  setStatusText?: (dates: Moment[]) => string;
11
12
  }
12
13
  export interface TypeSingleDatePickerProps extends Required<Pick<TypeStatefulSingleDatePickerProps, 'onDateChange'>>, Pick<TypeStatefulSingleDatePickerProps, 'date' | 'focused' | 'onFocusChange' | 'setStatusText' | 'initialVisibleMonth' | 'numberOfMonths'> {
14
+ onBlur?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
13
15
  }
14
16
  //# sourceMappingURL=SingleDatePickerTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SingleDatePickerTypes.d.ts","sourceRoot":"","sources":["../../../../src/DatePicker/SingleDatePicker/SingleDatePickerTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,WAAW,iCACf,SAAQ,yBAAyB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CAC7C;AAED,MAAM,WAAW,yBACf,SAAQ,QAAQ,CAAC,IAAI,CAAC,iCAAiC,EAAE,cAAc,CAAC,CAAC,EACvE,IAAI,CACF,iCAAiC,EAC/B,MAAM,GACN,SAAS,GACT,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACnB;CAAG"}
1
+ {"version":3,"file":"SingleDatePickerTypes.d.ts","sourceRoot":"","sources":["../../../../src/DatePicker/SingleDatePicker/SingleDatePickerTypes.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,QAAQ,CAAC;AACnC,OAAO,KAAK,EAAC,yBAAyB,EAAC,MAAM,uBAAuB,CAAC;AAErE,MAAM,WAAW,iCACf,SAAQ,yBAAyB;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,KAAK,IAAI,CAAC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,CAAC,IAAI,EAAE;QAAC,OAAO,EAAE,OAAO,CAAA;KAAC,KAAK,IAAI,CAAC;IACnD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,MAAM,CAAC;CAC7C;AAED,MAAM,WAAW,yBACf,SAAQ,QAAQ,CAAC,IAAI,CAAC,iCAAiC,EAAE,cAAc,CAAC,CAAC,EACvE,IAAI,CACF,iCAAiC,EAC/B,MAAM,GACN,SAAS,GACT,eAAe,GACf,eAAe,GACf,qBAAqB,GACrB,gBAAgB,CACnB;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;CACjE"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  import type { TypeFormFieldProps } from './FormFieldTypes';
3
- declare const FormField: ({ children, error, helperText, id: identifier, isInvalid, label, mb, qa, isLabelHidden, ...rest }: TypeFormFieldProps) => JSX.Element;
3
+ declare const FormField: ({ children, error, helperText, id: identifier, isInvalid, label, mb, qa, isLabelHidden, required, ...rest }: TypeFormFieldProps) => JSX.Element;
4
4
  export default FormField;
5
5
  //# sourceMappingURL=FormField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/FormField/FormField.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AAIzD,QAAA,MAAM,SAAS,sGAWZ,kBAAkB,gBAkDpB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"FormField.d.ts","sourceRoot":"","sources":["../../../src/FormField/FormField.tsx"],"names":[],"mappings":";AAMA,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAC;AAIzD,QAAA,MAAM,SAAS,gHAYZ,kBAAkB,gBAqDpB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -6,6 +6,7 @@ export interface TypeFormFieldProps extends Omit<TypeBoxProps, 'children'> {
6
6
  id: string;
7
7
  isInvalid: boolean;
8
8
  ariaDescribedby: string;
9
+ required?: boolean;
9
10
  }) => React.ReactNode;
10
11
  /** Text describing any error with the field's content */
11
12
  error?: React.ReactNode;
@@ -20,5 +21,7 @@ export interface TypeFormFieldProps extends Omit<TypeBoxProps, 'children'> {
20
21
  qa?: object;
21
22
  /** Whether the label text should be visually hidden */
22
23
  isLabelHidden?: boolean;
24
+ /** Whether the form element is required */
25
+ required?: boolean;
23
26
  }
24
27
  //# sourceMappingURL=FormFieldTypes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormFieldTypes.d.ts","sourceRoot":"","sources":["../../../src/FormField/FormFieldTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC;IACxE,mFAAmF;IACnF,QAAQ,EAAE,CAAC,OAAO,EAAE;QAClB,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,OAAO,CAAC;QACnB,eAAe,EAAE,MAAM,CAAC;KACzB,KAAK,KAAK,CAAC,SAAS,CAAC;IAEtB,yDAAyD;IACzD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B,sEAAsE;IACtE,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,iDAAiD;IACjD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,uDAAuD;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
1
+ {"version":3,"file":"FormFieldTypes.d.ts","sourceRoot":"","sources":["../../../src/FormField/FormFieldTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,YAAY,EAAC,MAAM,UAAU,CAAC;AAEtC,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,YAAY,EAAE,UAAU,CAAC;IACxE,mFAAmF;IACnF,QAAQ,EAAE,CAAC,OAAO,EAAE;QAClB,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,OAAO,CAAC;QACnB,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,KAAK,KAAK,CAAC,SAAS,CAAC;IAEtB,yDAAyD;IACzD,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB,+DAA+D;IAC/D,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE7B,sEAAsE;IACtE,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,iDAAiD;IACjD,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IAEZ,uDAAuD;IACvD,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AAmBhE,QAAA,MAAM,IAAI;sEAQP,aAAa;IA6GhB;;;;;;;;;;;;;;;;;;OAkBG;;uFA1CA,eAAe;;;CA7BjB,CAAC;AA0EF,eAAe,IAAI,CAAC"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../src/Icon/Icon.tsx"],"names":[],"mappings":";AAOA,OAAO,KAAK,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,aAAa,CAAC;AAiBhE,QAAA,MAAM,IAAI;sEAQP,aAAa;IA+GhB;;;;;;;;;;;;;;;;;;OAkBG;;uFA1CA,eAAe;;;CA7BjB,CAAC;AA0EF,eAAe,IAAI,CAAC"}
@@ -1,4 +1,6 @@
1
1
  /// <reference types="react" />
2
- declare const Skeleton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
2
+ declare const Skeleton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
3
+ className: string;
4
+ }, "className">;
3
5
  export default Skeleton;
4
6
  //# sourceMappingURL=Skeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/Skeleton/Skeleton.ts"],"names":[],"mappings":";AAIA,QAAA,MAAM,QAAQ,2OA0Bb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Skeleton.d.ts","sourceRoot":"","sources":["../../../src/Skeleton/Skeleton.ts"],"names":[],"mappings":";AAaA,QAAA,MAAM,QAAQ;;eA4Gb,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import { TypeQaProps } from '../types/shared';
3
3
  import type { TypeStyledComponentsCommonProps } from '../types/styled-components';
4
- import { TypeSystemCommonProps, TypeSystemLayoutProps, TypeSystemTypographyProps } from '../types/system-props';
5
- interface TypeTextSystemProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, TypeSystemLayoutProps, Omit<TypeSystemTypographyProps, 'fontSize'> {
4
+ import { TypeSystemCommonProps, TypeSystemLayoutProps, TypeSystemTypographyProps, TypeSystemFlexboxProps, TypeSystemGridProps } from '../types/system-props';
5
+ interface TypeTextSystemProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, TypeSystemLayoutProps, TypeSystemFlexboxProps, TypeSystemGridProps, Omit<TypeSystemTypographyProps, 'fontSize'> {
6
6
  }
7
7
  export interface TypeTextProps extends TypeTextSystemProps, Omit<React.ComponentPropsWithoutRef<'span'>, keyof TypeTextSystemProps> {
8
8
  /** Maps to the typeScale system prop, sets font size and line height using Seeds values */
@@ -1 +1 @@
1
- {"version":3,"file":"TextTypes.d.ts","sourceRoot":"","sources":["../../../src/Text/TextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC,UAAU,mBACR,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,qBAAqB,EACrB,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC;CAAG;AAElD,MAAM,WAAW,aACf,SAAQ,mBAAmB,EACzB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,MAAM,mBAAmB,CAAC;IACzE,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IAElD,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB"}
1
+ {"version":3,"file":"TextTypes.d.ts","sourceRoot":"","sources":["../../../src/Text/TextTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,mBAAmB,CAAC;AAC9C,OAAO,KAAK,EAAC,+BAA+B,EAAC,MAAM,8BAA8B,CAAC;AAClF,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AAEjC,UAAU,mBACR,SAAQ,+BAA+B,EACrC,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,mBAAmB,EACnB,IAAI,CAAC,yBAAyB,EAAE,UAAU,CAAC;CAAG;AAElD,MAAM,WAAW,aACf,SAAQ,mBAAmB,EACzB,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,MAAM,mBAAmB,CAAC;IACzE,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,yBAAyB,CAAC,WAAW,CAAC,CAAC;IAElD,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB,sDAAsD;IACtD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,EAAE,CAAC,EAAE,WAAW,CAAC;CAClB"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Text/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1C,QAAA,MAAM,SAAS,qHA8Bd,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Text/styles.ts"],"names":[],"mappings":"AAQA,OAAO,EAAC,aAAa,EAAC,MAAM,aAAa,CAAC;AAE1C,QAAA,MAAM,SAAS,qHAgCd,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAqB,MAAM,gBAAgB,CAAC;AAkEzE,QAAA,MAAM,OAAO,0GAWV,gBAAgB,gBAoHlB,CAAC;AA+BF,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/Tooltip.tsx"],"names":[],"mappings":";AAKA,OAAO,KAAK,EAAC,gBAAgB,EAAqB,MAAM,gBAAgB,CAAC;AA8DzE,QAAA,MAAM,OAAO,0GAWV,gBAAgB,gBAoHlB,CAAC;AA+BF,eAAe,OAAO,CAAC"}
@@ -114,6 +114,12 @@ export declare const listening: {
114
114
  };
115
115
  };
116
116
  export declare const growth: {
117
+ carousel: {
118
+ indicator: {
119
+ active: string;
120
+ inactive: string;
121
+ };
122
+ };
117
123
  education: {
118
124
  decorative: {
119
125
  aqua: string;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/themes/extendedThemes/sproutTheme/dark/theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;CAStB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ElB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CASvB,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,eAWhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/themes/extendedThemes/sproutTheme/dark/theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;CAStB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFlB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CASvB,CAAC;AAEF,QAAA,MAAM,SAAS,EAAE,eAWhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -114,6 +114,12 @@ export declare const listening: {
114
114
  };
115
115
  };
116
116
  export declare const growth: {
117
+ carousel: {
118
+ indicator: {
119
+ active: string;
120
+ inactive: string;
121
+ };
122
+ };
117
123
  education: {
118
124
  decorative: {
119
125
  aqua: string;
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/themes/extendedThemes/sproutTheme/light/theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;CAStB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+ElB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CASvB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,eAWjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../../../src/themes/extendedThemes/sproutTheme/light/theme.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;;;CAStB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;CAWrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyCrB,CAAC;AAEF,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqFlB,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;CASvB,CAAC;AAEF,QAAA,MAAM,UAAU,EAAE,eAWjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { COMMON, LAYOUT } from "../utils/system-props";
2
+ import { COMMON, LAYOUT, FLEXBOX, GRID } from "../utils/system-props";
3
3
  import { focusRing, disabled, pill } from "../utils/mixins";
4
4
  import Icon from "../Icon/styles";
5
5
  var Container = styled.button.withConfig({
6
6
  displayName: "styles__Container",
7
7
  componentId: "sc-17njgx1-0"
8
- })(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", "{vertical-align:text-bottom;}", " ", ""], function (props) {
8
+ })(["display:inline-block;box-sizing:border-box;text-align:center;font-family:", ";border:1px solid ", ";border-radius:", ";border-style:", ";background:", ";color:", ";cursor:pointer;text-decoration:none;line-height:16px;white-space:nowrap;font-weight:", ";transition:all ", " linear;margin:0;padding:", ";font-size:", ";&:visited{color:", ";}&:hover{color:", ";", ";text-decoration:none;box-shadow:", ";}&:active{color:", ";", ";transform:translateY(1px);}&:focus{", "}&:focus:active{box-shadow:none;}", " ", " ", " ", "{vertical-align:text-bottom;}", " ", " ", " ", ""], function (props) {
9
9
  return props.theme.fontFamily;
10
10
  }, function (props) {
11
11
  return props.theme.colors.button[props.appearance].border.base;
@@ -46,6 +46,6 @@ var Container = styled.button.withConfig({
46
46
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
47
47
  // @ts-ignore - FIXME: button.pill.border.hover is not defined in theme
48
48
  props.theme.colors.button[props.appearance].border.hover);
49
- }, Icon, LAYOUT, COMMON);
49
+ }, Icon, LAYOUT, COMMON, FLEXBOX, GRID);
50
50
  Container.displayName = 'Button-Container';
51
51
  export default Container; //${props.theme.mode === "dark" ? "screen" : "multiply"}
@@ -1,4 +1,4 @@
1
- var _excluded = ["startDate", "endDate", "onDatesChange", "setStatusText", "initialVisibleMonth", "numberOfMonths"];
1
+ var _excluded = ["startDate", "endDate", "onDatesChange", "setStatusText", "initialVisibleMonth", "numberOfMonths", "onFocusChange", "onBlur", "focusedInput"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -8,14 +8,13 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
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
- import React, { Fragment, useState } from 'react';
11
+ import React, { useCallback, useState } from 'react';
12
+ import moment from 'moment';
12
13
  import DayPickerRangeController from 'react-dates/lib/components/DayPickerRangeController';
13
14
  import { ReactDatesCssOverrides } from "../styles";
14
15
  import { commonDatePickerProps, DefaultSetStatusText, getVisibleMonths } from "../common";
15
16
  import { VisuallyHidden } from "../../VisuallyHidden";
16
- import moment from 'moment';
17
17
  var DateRangePicker = function DateRangePicker(_ref) {
18
- var _ref2, _initialVisibleMonth;
19
18
  var _ref$startDate = _ref.startDate,
20
19
  startDate = _ref$startDate === void 0 ? null : _ref$startDate,
21
20
  _ref$endDate = _ref.endDate,
@@ -26,15 +25,29 @@ var DateRangePicker = function DateRangePicker(_ref) {
26
25
  initialVisibleMonth = _ref.initialVisibleMonth,
27
26
  _ref$numberOfMonths = _ref.numberOfMonths,
28
27
  numberOfMonths = _ref$numberOfMonths === void 0 ? 2 : _ref$numberOfMonths,
28
+ onFocusChange = _ref.onFocusChange,
29
+ onBlur = _ref.onBlur,
30
+ focusedInput = _ref.focusedInput,
29
31
  rest = _objectWithoutProperties(_ref, _excluded);
30
- var _useState = useState(setStatusText(getVisibleMonths(moment((_ref2 = (_initialVisibleMonth = initialVisibleMonth === null || initialVisibleMonth === void 0 ? void 0 : initialVisibleMonth()) !== null && _initialVisibleMonth !== void 0 ? _initialVisibleMonth : startDate) !== null && _ref2 !== void 0 ? _ref2 : undefined), numberOfMonths))),
32
+ var _useState = useState(function () {
33
+ var _ref2, _initialVisibleMonth;
34
+ return setStatusText(getVisibleMonths(moment((_ref2 = (_initialVisibleMonth = initialVisibleMonth === null || initialVisibleMonth === void 0 ? void 0 : initialVisibleMonth()) !== null && _initialVisibleMonth !== void 0 ? _initialVisibleMonth : startDate) !== null && _ref2 !== void 0 ? _ref2 : undefined), numberOfMonths));
35
+ }),
31
36
  _useState2 = _slicedToArray(_useState, 2),
32
37
  statusText = _useState2[0],
33
38
  updateStatusText = _useState2[1];
34
- var handleMonthClick = function handleMonthClick(month) {
39
+ var handleMonthClick = useCallback(function (month) {
35
40
  updateStatusText(setStatusText(getVisibleMonths(month, numberOfMonths)));
36
- };
37
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement("div", {
41
+ }, [numberOfMonths, setStatusText]);
42
+ var wrappedOnBlur = useCallback(function (event) {
43
+ // for some reason onBlur is called with no event on day selection 🤷
44
+ if (!event) {
45
+ return;
46
+ }
47
+ onFocusChange === null || onFocusChange === void 0 || onFocusChange(null);
48
+ onBlur === null || onBlur === void 0 || onBlur(event);
49
+ }, [onBlur, onFocusChange]);
50
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement("div", {
38
51
  role: "status"
39
52
  }, statusText)), /*#__PURE__*/React.createElement(DayPickerRangeController, _extends({}, commonDatePickerProps, {
40
53
  startDate: startDate,
@@ -42,6 +55,10 @@ var DateRangePicker = function DateRangePicker(_ref) {
42
55
  onDatesChange: onDatesChange,
43
56
  numberOfMonths: numberOfMonths,
44
57
  initialVisibleMonth: initialVisibleMonth || null,
58
+ focusedInput: focusedInput,
59
+ isFocused: focusedInput !== null,
60
+ onBlur: wrappedOnBlur,
61
+ onFocusChange: onFocusChange,
45
62
  onPrevMonthClick: handleMonthClick,
46
63
  onNextMonthClick: handleMonthClick
47
64
  }, rest)));
@@ -1,4 +1,4 @@
1
- var _excluded = ["onDateChange", "setStatusText", "date", "focused", "onFocusChange", "initialVisibleMonth", "numberOfMonths"];
1
+ var _excluded = ["onDateChange", "setStatusText", "date", "focused", "onFocusChange", "initialVisibleMonth", "numberOfMonths", "onBlur"];
2
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -8,12 +8,13 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
8
8
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
9
9
  function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
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
- import React, { Fragment, useState } from 'react';
11
+ import React, { useCallback, useState } from 'react';
12
+ import moment from 'moment';
12
13
  import DayPickerSingleDateController from 'react-dates/lib/components/DayPickerSingleDateController';
13
14
  import { ReactDatesCssOverrides } from "../styles";
14
15
  import { commonDatePickerProps, DefaultSetStatusText, getVisibleMonths } from "../common";
15
16
  import { VisuallyHidden } from "../../VisuallyHidden";
16
- import moment from 'moment';
17
+ var noop = function noop() {};
17
18
  var SingleDatePicker = function SingleDatePicker(_ref) {
18
19
  var onDateChange = _ref.onDateChange,
19
20
  _ref$setStatusText = _ref.setStatusText,
@@ -23,19 +24,28 @@ var SingleDatePicker = function SingleDatePicker(_ref) {
23
24
  _ref$focused = _ref.focused,
24
25
  focused = _ref$focused === void 0 ? false : _ref$focused,
25
26
  _ref$onFocusChange = _ref.onFocusChange,
26
- onFocusChange = _ref$onFocusChange === void 0 ? function () {} : _ref$onFocusChange,
27
+ onFocusChange = _ref$onFocusChange === void 0 ? noop : _ref$onFocusChange,
27
28
  initialVisibleMonth = _ref.initialVisibleMonth,
28
29
  _ref$numberOfMonths = _ref.numberOfMonths,
29
30
  numberOfMonths = _ref$numberOfMonths === void 0 ? 1 : _ref$numberOfMonths,
31
+ onBlur = _ref.onBlur,
30
32
  rest = _objectWithoutProperties(_ref, _excluded);
31
- var _useState = useState(setStatusText(getVisibleMonths(moment((initialVisibleMonth === null || initialVisibleMonth === void 0 ? void 0 : initialVisibleMonth()) || date || undefined), numberOfMonths))),
33
+ var _useState = useState(function () {
34
+ return setStatusText(getVisibleMonths(moment((initialVisibleMonth === null || initialVisibleMonth === void 0 ? void 0 : initialVisibleMonth()) || date || undefined), numberOfMonths));
35
+ }),
32
36
  _useState2 = _slicedToArray(_useState, 2),
33
37
  statusText = _useState2[0],
34
38
  updateStatusText = _useState2[1];
35
- var handleMonthClick = function handleMonthClick(date) {
39
+ var handleMonthClick = useCallback(function (date) {
36
40
  updateStatusText(setStatusText(getVisibleMonths(date, numberOfMonths)));
37
- };
38
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement("div", {
41
+ }, [numberOfMonths, setStatusText]);
42
+ var wrappedOnBlur = useCallback(function (event) {
43
+ onFocusChange === null || onFocusChange === void 0 || onFocusChange({
44
+ focused: false
45
+ });
46
+ onBlur === null || onBlur === void 0 || onBlur(event);
47
+ }, [onBlur, onFocusChange]);
48
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ReactDatesCssOverrides, null), /*#__PURE__*/React.createElement(VisuallyHidden, null, /*#__PURE__*/React.createElement("div", {
39
49
  role: "status"
40
50
  }, statusText)), /*#__PURE__*/React.createElement(DayPickerSingleDateController, _extends({}, commonDatePickerProps, {
41
51
  date: date,
@@ -43,6 +53,7 @@ var SingleDatePicker = function SingleDatePicker(_ref) {
43
53
  onDateChange: onDateChange,
44
54
  initialVisibleMonth: initialVisibleMonth || null,
45
55
  focused: focused,
56
+ onBlur: wrappedOnBlur,
46
57
  onFocusChange: onFocusChange,
47
58
  onPrevMonthClick: handleMonthClick,
48
59
  onNextMonthClick: handleMonthClick
@@ -1,5 +1,11 @@
1
- var _excluded = ["children", "error", "helperText", "id", "isInvalid", "label", "mb", "qa", "isLabelHidden"];
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["children", "error", "helperText", "id", "isInvalid", "label", "mb", "qa", "isLabelHidden", "required"];
2
3
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
8
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
3
9
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
10
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
11
  function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
@@ -28,6 +34,7 @@ var FormField = function FormField(_ref) {
28
34
  qa = _ref.qa,
29
35
  _ref$isLabelHidden = _ref.isLabelHidden,
30
36
  isLabelHidden = _ref$isLabelHidden === void 0 ? false : _ref$isLabelHidden,
37
+ required = _ref.required,
31
38
  rest = _objectWithoutProperties(_ref, _excluded);
32
39
  var _useState = useState(identifier || "FormField-".concat(idCounter++)),
33
40
  _useState2 = _slicedToArray(_useState, 1),
@@ -42,20 +49,24 @@ var FormField = function FormField(_ref) {
42
49
  }), isLabelHidden ? /*#__PURE__*/React.createElement(VisuallyHidden, {
43
50
  "data-testid": "visually-hidden"
44
51
  }, /*#__PURE__*/React.createElement(Label, {
45
- htmlFor: id
52
+ htmlFor: id,
53
+ required: required
46
54
  }, label)) : /*#__PURE__*/React.createElement(Label, {
47
55
  mb: helperText ? 100 : 300,
48
- htmlFor: id
56
+ htmlFor: id,
57
+ required: required
49
58
  }, label), helperText && /*#__PURE__*/React.createElement(Text, {
50
59
  as: "p",
51
60
  fontSize: 200,
52
61
  mb: 300,
53
62
  color: "text.subtext"
54
- }, helperText), children({
63
+ }, helperText), children(_objectSpread({
55
64
  id: id,
56
65
  isInvalid: isInvalid,
57
66
  ariaDescribedby: errorId
58
- }), isInvalid && error && /*#__PURE__*/React.createElement(Text, {
67
+ }, required !== undefined && {
68
+ required: required
69
+ })), isInvalid && error && /*#__PURE__*/React.createElement(Text, {
59
70
  as: "div",
60
71
  fontSize: 200,
61
72
  color: "text.error",
package/lib/Icon/Icon.js CHANGED
@@ -17,7 +17,6 @@ import { includes } from "../utils";
17
17
  import PartnerLogoNames from "../logoNames";
18
18
  import Container from "./styles";
19
19
  import { ExternalViewBoxes, GeneralViewBoxes, SproutViewBoxes, ExternalIconNames } from '@sproutsocial/seeds-icons';
20
- var defaultVariant = 'outline';
21
20
  var AllViewboxes = _objectSpread(_objectSpread(_objectSpread({}, ExternalViewBoxes), GeneralViewBoxes), SproutViewBoxes);
22
21
  var Icon = function Icon(_ref) {
23
22
  var name = _ref.name,
@@ -44,6 +43,7 @@ var Icon = function Icon(_ref) {
44
43
  "aria-label": ariaLabel
45
44
  }, rest, logoProps));
46
45
  }
46
+ var defaultVariant = size === 'mini' ? 'solid' : 'outline';
47
47
  var iconName =
48
48
  // if not external and has no variant
49
49
  !(name !== null && name !== void 0 && name.endsWith('-outline')) && !(name !== null && name !== void 0 && name.endsWith('-solid')) && !includes(ExternalIconNames, name) ? // then add default variant
@@ -1,12 +1,37 @@
1
1
  import styled from 'styled-components';
2
- import { transparentize } from 'polished';
3
2
  import Box from "../Box";
4
- var Skeleton = styled(Box).withConfig({
3
+
4
+ /**
5
+ *
6
+ * @param borderRadius
7
+ * @returns classname string for handling appropriate loader style depending on passed in properties
8
+ */
9
+ var SkeletonAttrs = function SkeletonAttrs(_ref) {
10
+ var borderRadius = _ref.borderRadius,
11
+ height = _ref.height,
12
+ width = _ref.width;
13
+ return {
14
+ className: borderRadius === 'pill' && height === width ? 'circular' : 'linear'
15
+ };
16
+ };
17
+ var Skeleton = styled(Box).attrs(SkeletonAttrs).withConfig({
5
18
  displayName: "Skeleton",
6
19
  componentId: "sc-s6hpnd-0"
7
- })(["background:", ";background-image:", ";background-size:400%;background-repeat:no-repeat;animation:SkeletonShimmer 2.5s linear infinite reverse;@media (prefers-reduced-motion){{animation:none;}}@keyframes SkeletonShimmer{0%{background-position:0% 0;}100%{background-position:100% 0;}}"], function (p) {
20
+ })(["position:relative;background:", ";overflow:hidden;&.circular{&:before{position:absolute;top:-25%;left:-25%;content:'';background-image:", ";height:150%;width:150%;animation:SkeletonRotate 2s infinite linear;}&:after{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);content:'';height:calc(100% - 8px);width:calc(100% - 8px);background:", ";border-radius:50%;}}&.linear{position:relative;background-image:", " background-size:400%;background-repeat:no-repeat;animation:SkeletonShimmer 2s linear infinite reverse;overflow:hidden;&:after{position:absolute;bottom:0;content:\"\";height:calc(100% - 4px);width:100%;background:", ";}}@media (prefers-reduced-motion){&.linear,&.circular::before{animation:none;}&:before,&:after{display:none;}&.linear,&.circular{border:1px solid ", ";animation:SkeletonPulse 2s linear infinite alternate;}}@keyframes SkeletonRotate{100%{transform:rotate(360deg);}}@keyframes SkeletonRotateFade{50%{transform:rotate(360deg);}90%{opacity:1;}100%{transform:rotate(720deg);opacity:0;}}@keyframes SkeletonShimmer{0%{background-position:0% 0;}100%{background-position:100% 0;}}@keyframes SkeletonPulse{0%{border-color:", "FF;}100%{border-color:", "1A;}}"], function (props) {
21
+ return props.theme.colors.container.background.decorative.neutral;
22
+ }, function (props) {
23
+ return "conic-gradient(\n ".concat(props.theme.colors.container.background.decorative.neutral, " 270deg,\n ").concat(props.theme.colors.container.border.decorative.neutral, " 300deg\n );");
24
+ }, function (p) {
8
25
  return p.theme.colors.app.background.base;
9
26
  }, function (props) {
10
- return "linear-gradient(\n 288deg,\n ".concat(transparentize(0.7, props.theme.colors.container.border.base), " 32%,\n ").concat(transparentize(0.05, props.theme.colors.container.border.base), ",\n ").concat(transparentize(0.7, props.theme.colors.container.border.base), " 68%\n );");
27
+ return "linear-gradient(\n 288deg,\n ".concat(props.theme.colors.container.background.decorative.neutral, " 32%,\n ").concat(props.theme.colors.container.border.decorative.neutral, ",\n ").concat(props.theme.colors.container.background.decorative.neutral, " 68%\n );");
28
+ }, function (props) {
29
+ return props.theme.colors.container.background.decorative.neutral;
30
+ }, function (props) {
31
+ return props.theme.colors.container.border.decorative.neutral;
32
+ }, function (props) {
33
+ return props.theme.colors.container.border.decorative.neutral;
34
+ }, function (props) {
35
+ return props.theme.colors.container.border.decorative.neutral;
11
36
  });
12
- export default Skeleton; //rgba(243, 244, 244, 0.7)
37
+ export default Skeleton;
@@ -49,10 +49,11 @@ export var Table = function Table(_ref) {
49
49
  ,
50
50
  color: color
51
51
  }), /*#__PURE__*/React.createElement("colgroup", null, head.map(function (_ref2) {
52
- var _ref2$colSpan = _ref2.colSpan,
52
+ var id = _ref2.id,
53
+ _ref2$colSpan = _ref2.colSpan,
53
54
  colSpan = _ref2$colSpan === void 0 ? 1 : _ref2$colSpan;
54
55
  return /*#__PURE__*/React.createElement("col", {
55
- key: colSpan,
56
+ key: id,
56
57
  span: colSpan
57
58
  });
58
59
  })), head.length > 0 && /*#__PURE__*/React.createElement("thead", {
@@ -1,9 +1,9 @@
1
1
  import styled, { css } from 'styled-components';
2
- import { COMMON, LAYOUT, TYPOGRAPHY } from "../utils/system-props";
2
+ import { COMMON, LAYOUT, FLEXBOX, GRID, TYPOGRAPHY } from "../utils/system-props";
3
3
  var Container = styled.span.withConfig({
4
4
  displayName: "styles__Container",
5
5
  componentId: "sc-99cuku-0"
6
- })(["margin:0;padding-left:0;padding-right:0;font-family:", ";font-style:", ";", " ", " ", " ", " ", ""], function (props) {
6
+ })(["margin:0;padding-left:0;padding-right:0;font-family:", ";font-style:", ";", " ", " ", " ", " ", " ", " ", ""], function (props) {
7
7
  return props.theme.fontFamily;
8
8
  }, function (props) {
9
9
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
@@ -13,5 +13,5 @@ var Container = styled.span.withConfig({
13
13
  return props.truncated && css(["display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;"]);
14
14
  }, function (props) {
15
15
  return props.breakWord && css(["word-break:break-word;hyphens:auto;"]);
16
- }, COMMON, LAYOUT, TYPOGRAPHY);
16
+ }, COMMON, LAYOUT, FLEXBOX, GRID, TYPOGRAPHY);
17
17
  export default Container;
@@ -31,17 +31,13 @@ var wrapContent = function wrapContent(_ref) {
31
31
  Wrapper = _ref.Wrapper,
32
32
  appearance = _ref.appearance,
33
33
  ariaProps = _ref.ariaProps,
34
- wrapperStyles = _ref.wrapperStyles,
35
- onMouseEnter = _ref.onMouseEnter,
36
- onMouseLeave = _ref.onMouseLeave;
34
+ wrapperStyles = _ref.wrapperStyles;
37
35
  return /*#__PURE__*/React.createElement(Wrapper, _extends({
38
36
  appearance: appearance,
39
- onMouseOver: show,
40
- onMouseOut: hide,
41
37
  onFocus: show,
42
38
  onBlur: hide,
43
- onMouseEnter: onMouseEnter,
44
- onMouseLeave: onMouseLeave,
39
+ onMouseEnter: show,
40
+ onMouseLeave: hide,
45
41
  style: Object.keys(wrapperStyles).length === 0 ? undefined : wrapperStyles
46
42
  }, ariaProps), /*#__PURE__*/React.isValidElement(content) ? /*#__PURE__*/React.cloneElement(content, {
47
43
  'aria-expanded': isOpen,
@@ -31,7 +31,7 @@ export var red = {
31
31
  };
32
32
  export var neutral = {
33
33
  background: COLORS.COLOR_NEUTRAL_1000,
34
- highlight: COLORS.COLOR_NEUTRAL_500,
34
+ highlight: COLORS.COLOR_NEUTRAL_600,
35
35
  foreground: COLORS.COLOR_NEUTRAL_100
36
36
  };
37
37
  export var magenta = {
@@ -127,6 +127,12 @@ export var listening = {
127
127
  }
128
128
  };
129
129
  export var growth = {
130
+ carousel: {
131
+ indicator: {
132
+ active: baseDarkTheme.colors.blue[600],
133
+ inactive: baseDarkTheme.colors.neutral[300]
134
+ }
135
+ },
130
136
  education: {
131
137
  decorative: {
132
138
  aqua: baseDarkTheme.colors.aqua[600],
@@ -124,6 +124,12 @@ export var listening = {
124
124
  }
125
125
  };
126
126
  export var growth = {
127
+ carousel: {
128
+ indicator: {
129
+ active: baseLightTheme.colors.blue[600],
130
+ inactive: baseLightTheme.colors.neutral[300]
131
+ }
132
+ },
127
133
  education: {
128
134
  decorative: {
129
135
  aqua: baseLightTheme.colors.aqua[600],
@@ -31,7 +31,7 @@ export var red = {
31
31
  };
32
32
  export var neutral = {
33
33
  background: COLORS.COLOR_NEUTRAL_100,
34
- highlight: COLORS.COLOR_NEUTRAL_500,
34
+ highlight: COLORS.COLOR_NEUTRAL_600,
35
35
  foreground: COLORS.COLOR_NEUTRAL_900
36
36
  };
37
37
  export var magenta = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "20.1.0",
3
+ "version": "20.3.0",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "__flow__",