@sproutsocial/racine 23.0.0 → 23.2.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 (88) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +3 -3
  3. package/commonjs/Numeral/Numeral.js +35 -18
  4. package/commonjs/Numeral/index.js +12 -3
  5. package/dist/types/Avatar/Avatar.d.ts.map +1 -1
  6. package/dist/types/Badge/BadgeTypes.d.ts +0 -1
  7. package/dist/types/Badge/BadgeTypes.d.ts.map +1 -1
  8. package/dist/types/Badge/styles.d.ts +1 -1
  9. package/dist/types/Badge/styles.d.ts.map +1 -1
  10. package/dist/types/Box/BoxTypes.d.ts +0 -1
  11. package/dist/types/Box/BoxTypes.d.ts.map +1 -1
  12. package/dist/types/Box/styles.d.ts +1 -1
  13. package/dist/types/Box/styles.d.ts.map +1 -1
  14. package/dist/types/Button/Button.d.ts +1 -1
  15. package/dist/types/Button/Button.d.ts.map +1 -1
  16. package/dist/types/Card/subComponents.d.ts.map +1 -1
  17. package/dist/types/Card/utils.d.ts +0 -2
  18. package/dist/types/Card/utils.d.ts.map +1 -1
  19. package/dist/types/Checkbox/Checkbox.d.ts.map +1 -1
  20. package/dist/types/Collapsible/styles.d.ts +2 -3
  21. package/dist/types/Collapsible/styles.d.ts.map +1 -1
  22. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts +0 -1
  23. package/dist/types/DatePicker/DateRangePicker/DateRangePickerTypes.d.ts.map +1 -1
  24. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts +0 -1
  25. package/dist/types/DatePicker/SingleDatePicker/SingleDatePickerTypes.d.ts.map +1 -1
  26. package/dist/types/DatePicker/common.d.ts.map +1 -1
  27. package/dist/types/DatePicker/styles.d.ts +0 -1
  28. package/dist/types/DatePicker/styles.d.ts.map +1 -1
  29. package/dist/types/Drawer/styles.d.ts +0 -1
  30. package/dist/types/Drawer/styles.d.ts.map +1 -1
  31. package/dist/types/Fieldset/styles.d.ts +0 -1
  32. package/dist/types/Fieldset/styles.d.ts.map +1 -1
  33. package/dist/types/Icon/styles.d.ts +1 -1
  34. package/dist/types/Icon/styles.d.ts.map +1 -1
  35. package/dist/types/Image/Image.d.ts.map +1 -1
  36. package/dist/types/Input/Input.d.ts.map +1 -1
  37. package/dist/types/Input/styles.d.ts +3 -3
  38. package/dist/types/Input/styles.d.ts.map +1 -1
  39. package/dist/types/Loader/LoaderTypes.d.ts +0 -1
  40. package/dist/types/Loader/LoaderTypes.d.ts.map +1 -1
  41. package/dist/types/Menu/styles.d.ts +0 -1
  42. package/dist/types/Menu/styles.d.ts.map +1 -1
  43. package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
  44. package/dist/types/Menu/utils/hooks.d.ts +0 -2
  45. package/dist/types/Menu/utils/hooks.d.ts.map +1 -1
  46. package/dist/types/Message/Message.d.ts +1 -1
  47. package/dist/types/Message/Message.d.ts.map +1 -1
  48. package/dist/types/Message/styles.d.ts +0 -2
  49. package/dist/types/Message/styles.d.ts.map +1 -1
  50. package/dist/types/Modal/styles.d.ts +3 -3
  51. package/dist/types/Modal/styles.d.ts.map +1 -1
  52. package/dist/types/Numeral/Numeral.d.ts +3 -1
  53. package/dist/types/Numeral/Numeral.d.ts.map +1 -1
  54. package/dist/types/Numeral/__tests__/features/testNumeral.d.ts.map +1 -1
  55. package/dist/types/Numeral/index.d.ts +2 -1
  56. package/dist/types/Numeral/index.d.ts.map +1 -1
  57. package/dist/types/Radio/Radio.d.ts.map +1 -1
  58. package/dist/types/Radio/styles.d.ts +3 -3
  59. package/dist/types/Radio/styles.d.ts.map +1 -1
  60. package/dist/types/SegmentedControl/styles.d.ts +0 -1
  61. package/dist/types/SegmentedControl/styles.d.ts.map +1 -1
  62. package/dist/types/Select/Select.d.ts.map +1 -1
  63. package/dist/types/Skeleton/Skeleton.d.ts +0 -1
  64. package/dist/types/Skeleton/Skeleton.d.ts.map +1 -1
  65. package/dist/types/StatefulStory.d.ts +0 -1
  66. package/dist/types/StatefulStory.d.ts.map +1 -1
  67. package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
  68. package/dist/types/TableHeaderCell/styles.d.ts +1 -1
  69. package/dist/types/TableHeaderCell/styles.d.ts.map +1 -1
  70. package/dist/types/Tabs/Tabs.d.ts.map +1 -1
  71. package/dist/types/Textarea/Textarea.d.ts.map +1 -1
  72. package/dist/types/Toast/Toast.d.ts +0 -1
  73. package/dist/types/Toast/Toast.d.ts.map +1 -1
  74. package/dist/types/Toast/styles.d.ts +0 -2
  75. package/dist/types/Toast/styles.d.ts.map +1 -1
  76. package/dist/types/TokenInput/TokenInput.d.ts +1 -1
  77. package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
  78. package/dist/types/Tooltip/styles.d.ts +0 -1
  79. package/dist/types/Tooltip/styles.d.ts.map +1 -1
  80. package/dist/types/themes/dark/theme.d.ts +2 -2
  81. package/dist/types/themes/dark/theme.d.ts.map +1 -1
  82. package/dist/types/utils/hooks.d.ts.map +1 -1
  83. package/dist/types/utils/react-testing-library.d.ts +48 -48
  84. package/dist/types/utils/react-testing-library.d.ts.map +1 -1
  85. package/dist/types/utils/responsiveProps/index.d.ts.map +1 -1
  86. package/lib/Numeral/Numeral.js +34 -17
  87. package/lib/Numeral/index.js +2 -1
  88. package/package.json +4 -4
@@ -1,8 +1,8 @@
1
1
  declare const Container: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const InputWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {
4
- checked?: boolean | undefined;
5
- disabled?: boolean | undefined;
4
+ checked?: boolean;
5
+ disabled?: boolean;
6
6
  }, never>;
7
7
  export declare const LabelText: import("styled-components").StyledComponent<{
8
8
  ({ fontSize, children, qa, color, ...rest }: import("../Text").TypeTextProps): import("react/jsx-runtime").JSX.Element;
@@ -14,7 +14,7 @@ export declare const LabelText: import("styled-components").StyledComponent<{
14
14
  BodyCopy: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
15
15
  SmallBodyCopy: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, import("../Text").TypeTextProps, never>;
16
16
  }, import("styled-components").DefaultTheme, {
17
- disabled?: boolean | undefined;
17
+ disabled?: boolean;
18
18
  }, never>;
19
19
  export default Container;
20
20
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Radio/styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,SAAS,0GAMd,CAAC;AAIF,eAAO,MAAM,KAAK,2GAqBjB,CAAC;AAIF,eAAO,MAAM,YAAY;;;SAyDxB,CAAC;AAIF,eAAO,MAAM,SAAS;;;;;;;;;;;SAYrB,CAAC;AAIF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Radio/styles.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,SAAS,0GAMd,CAAC;AAIF,eAAO,MAAM,KAAK,2GAqBjB,CAAC;AAIF,eAAO,MAAM,YAAY;cACb,OAAO;eACN,OAAO;SAuDnB,CAAC;AAIF,eAAO,MAAM,SAAS;;;;;;;;;;eAA6B,OAAO;SAYzD,CAAC;AAIF,eAAe,SAAS,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TypeSegmentedControlProps, TypeSegmentedControlItemProps } from "./SegmentedControlTypes";
3
2
  export declare const SegmentedControlContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, Pick<TypeSegmentedControlProps, "disabled">, never>;
4
3
  export declare const SegmentedControlItemContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, Pick<TypeSegmentedControlItemProps, "disabled">, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/styles.ts"],"names":[],"mappings":";AAQA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,yBAAyB,oRAarC,CAAC;AAEF,eAAO,MAAM,6BAA6B,wRAoBzC,CAAC;AAEF,UAAU,yBAAyB;IACjC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;8EAsCjC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/SegmentedControl/styles.ts"],"names":[],"mappings":"AAQA,OAAO,EACL,yBAAyB,EACzB,6BAA6B,EAC9B,MAAM,yBAAyB,CAAC;AAEjC,eAAO,MAAM,yBAAyB,oRAarC,CAAC;AAEF,eAAO,MAAM,6BAA6B,wRAoBzC,CAAC;AAEF,UAAU,yBAAyB;IACjC,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,qBAAqB;;;;;;;;;8EAsCjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IAClE,MAAM,CAAC,YAAY;;MAEjB;IAEF,YAAY,MAAO,MAAM,cAAc,CAAC,iBAAiB,CAAC,UAMxD;IAEF,MAAM;CAsDP"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,KAAK,CAAC,SAAS,CAAC,eAAe,CAAC;IAClE,MAAM,CAAC,YAAY;;MAEjB;IAEF,YAAY,MAAO,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,UAMxD;IAEF,MAAM;CAsDP"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const Skeleton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {
3
2
  className: string;
4
3
  }, "className">;
@@ -1 +1 @@
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
+ {"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,4 +1,3 @@
1
- /// <reference types="@src/react" />
2
1
  import { FC } from "react";
3
2
  /**
4
3
  * Props for the StatefulStory component.
@@ -1 +1 @@
1
- {"version":3,"file":"StatefulStory.d.ts","sourceRoot":"","sources":["../../src/StatefulStory.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAY,EAAE,EAAE,MAAM,OAAO,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IAEnC,QAAQ,EAAE,EAAE,CAAC;QAAE,KAAK,EAAE,CAAC,CAAC;QAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;KAAE,CAAC,CAAC;IACzD,YAAY,EAAE,CAAC,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAC/B,QAAQ,EACR,YAAY,GACb,EAAE,kBAAkB,CAAC,CAAC,CAAC,6BAGvB"}
1
+ {"version":3,"file":"StatefulStory.d.ts","sourceRoot":"","sources":["../../src/StatefulStory.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,EAAE,EAAE,MAAM,OAAO,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,kBAAkB,CAAC,CAAC;IAEnC,QAAQ,EAAE,EAAE,CAAC;QAAE,KAAK,EAAE,CAAC,CAAC;QAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAA;KAAE,CAAC,CAAC;IACzD,YAAY,EAAE,CAAC,CAAC;CACjB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAAE,EAC/B,QAAQ,EACR,YAAY,GACb,EAAE,kBAAkB,CAAC,CAAC,CAAC,6BAGvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"TableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/TableHeaderCell/TableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,qBAAa,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC;IAC5E,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC;IAE3B,WAAW,aACC,OAAO,qBACE,WAAW,GAAG,YAAY,GAAG,SAAS,6CAgBzD;IAGF,WAAW,MACN,gBAAgB,CAAC,oBAAoB,GAAG,iBAAiB,CAAC,UAgB7D;IAEF,MAAM;CAoEP;AAED,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"TableHeaderCell.d.ts","sourceRoot":"","sources":["../../../src/TableHeaderCell/TableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,qBAAa,eAAgB,SAAQ,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC;IAC5E,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC;IAE3B,WAAW,aACC,OAAO,qBACE,WAAW,GAAG,YAAY,GAAG,SAAS,6CAgBzD;IAGF,WAAW,MACN,KAAK,CAAC,UAAU,CAAC,oBAAoB,GAAG,iBAAiB,CAAC,UAgB7D;IAEF,MAAM;CAoEP;AAED,eAAe,eAAe,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { TypeTableHeaderCellProps } from "./TableHeaderCellTypes";
2
2
  declare const Container: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {
3
- sortable?: boolean | undefined;
3
+ sortable?: boolean;
4
4
  alignment: TypeTableHeaderCellProps["align"];
5
5
  width: TypeTableHeaderCellProps["width"];
6
6
  }, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/TableHeaderCell/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,QAAA,MAAM,SAAS;;eAEF,wBAAwB,CAAC,OAAO,CAAC;WACrC,wBAAwB,CAAC,OAAO,CAAC;SAezC,CAAC;AAEF,eAAO,MAAM,QAAQ,0GAMpB,CAAC;AAEF,eAAO,MAAM,cAAc,4GAW1B,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/TableHeaderCell/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAElE,QAAA,MAAM,SAAS;eACF,OAAO;eACP,wBAAwB,CAAC,OAAO,CAAC;WACrC,wBAA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AEF,YAAY,MAAO,MAAM,cAAc,CAAC,mBAAmB,CAAC,UAI1D;IAEF,WAAW,MAAO,gBAAgB,CAAC,mBAAmB,CAAC,UAIrD;IAEF,aAAa,MAAO,MAAM,cAAc,CAAC,mBAAmB,CAAC,UAI3D;IAEF,WAAW,MAAO,MAAM,cAAc,CAAC,mBAAmB,CAAC,UAIzD;IAEF,MAAM;CAiFP"}
1
+ {"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../src/Textarea/Textarea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC;AAE1C,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC;IACtE,MAAM,CAAC,YAAY;;MAEjB;IAEF,UAAU,MAAO,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,UAIpD;IAEF,YAAY,MAAO,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,UAI1D;IAEF,WAAW,MAAO,KAAK,CAAC,UAAU,CAAC,mBAAmB,CAAC,UAIrD;IAEF,aAAa,MAAO,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,UAI3D;IAEF,WAAW,MAAO,KAAK,CAAC,cAAc,CAAC,mBAAmB,CAAC,UAIzD;IAEF,MAAM;CAiFP"}
@@ -1,4 +1,3 @@
1
- /// <reference types="@src/react" />
2
1
  import type { PropsWithChildren, ReactNode } from "react";
3
2
  import { toast as toastifyToast } from "react-toastify";
4
3
  import Box from "../Box";
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.d.ts","sourceRoot":"","sources":["../../../src/Toast/Toast.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1D,OAA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AC;AAGvC,eAAO,MAAM,YAAY,EAAE,OAAO,aAAa,CAAC,OACf,CAAC;AAClC,eAAO,MAAM,aAAa,EAAE,OAAO,aAAa,CAAC,QACf,CAAC;AACnC,eAAO,MAAM,WAAW,EAAE,OAAO,aAAa,CAAC,MACf,CAAC;AAWjC,eAAO,MAAM,cAAc,UAClB,OAAO,CAAC,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC,4CACrB,CAAC;AAS9B,wBAAgB,KAAK,CAAC,KAAK,GAAG,OAAO,EACnC,OAAO,EAAE,gBAAgB,CAAC,KAAK,CAAC,GAC/B,UAAU,CAAC,OAAO,aAAa,CAAC,CAoFlC;AAED,eAAe,cAAc,CAAC;AAE9B,eAAO,MAAM,qBAAqB,+CAK/B,iBAAiB,CAAC;IACnB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB,cAAc,CAAC,EAAE,cAAc,CAAC,OAAO,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;CACnD,CAAC,4CAkBD,CAAC;AAEF,eAAO,MAAM,cAAc,qUAM1B,CAAC"}
@@ -1,5 +1,3 @@
1
- /// <reference types="react" />
2
- /// <reference types="@src/react" />
3
1
  import "react-toastify/dist/ReactToastify.css";
4
2
  import { ToastContainer } from "react-toastify";
5
3
  export declare const TOAST_Z_INDEX = 9999;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Toast/styles.ts"],"names":[],"mappings":";;AAGA,OAAO,uCAAuC,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,eAAO,MAAM,SAAS,qUAQrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;8EA8FrB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Toast/styles.ts"],"names":[],"mappings":"AAGA,OAAO,uCAAuC,CAAC;AAE/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,eAAO,MAAM,aAAa,OAAO,CAAC;AAElC,eAAO,MAAM,SAAS,qUAQrB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;8EA8FrB,CAAC"}
@@ -9,7 +9,7 @@ type TypeState = {
9
9
  export default class TokenInput extends React.Component<TypeTokenInputProps, TypeState> {
10
10
  delimiterMatcher: RegExp;
11
11
  constructor(props: TypeTokenInputProps);
12
- static getDerivedStateFromProps(props: TypeTokenInputProps, state: TypeState): Partial<TypeState>;
12
+ static getDerivedStateFromProps(props: Readonly<TypeTokenInputProps>, state: TypeState): Partial<TypeState>;
13
13
  isDelimiter(keyName: string): boolean;
14
14
  spawnNewTokens(texts: string[]): void;
15
15
  deleteToken(tokenId?: string): void;
@@ -1 +1 @@
1
- {"version":3,"file":"TokenInput.d.ts","sourceRoot":"","sources":["../../../src/TokenInput/TokenInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAG5E,KAAK,SAAS,GAAG;IACf,SAAS,EAAE,mBAAmB,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;IAClB,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AASF,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,KAAK,CAAC,SAAS,CACrD,mBAAmB,EACnB,SAAS,CACV;IACC,gBAAgB,EAAE,MAAM,CAAC;gBAEb,KAAK,EAAE,mBAAmB;IAYtC,MAAM,CAAC,wBAAwB,CAC7B,KAAK,EAAE,mBAAmB,EAC1B,KAAK,EAAE,SAAS;IAelB,WAAW,CAAC,OAAO,EAAE,MAAM;IAK3B,cAAc,CAAC,KAAK,EAAE,MAAM,EA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AS;IAelB,WAAW,CAAC,OAAO,EAAE,MAAM;IAK3B,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE;IAoB9B,WAAW,CAAC,OAAO,CAAC,EAAE,MAAM;IAiB5B,gBAAgB,MAAO,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,UAO3D;IAEF,WAAW,MAAO,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,UAMlD;IAEF,UAAU,MAAO,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,UAMjD;IAEF,WAAW,MAAO,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAErD;IAEF,aAAa,MAAO,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,UAkBvD;IAEF,WAAW,MAAO,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,UAWtD;IAEF,gBAAgB,MACX,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,SACnC,aAAa,UAQpB;IAEF,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,KAAK,CAAC,SAAS;IAgClD,YAAY,CAAC,MAAM,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC,SAAS;IAQtD,MAAM;CAqFP"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TypeTooltipContent } from "./TooltipTypes";
3
2
  export declare const StyledTooltipContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("../Box").TypeBoxProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, Pick<TypeTooltipContent, "appearance">, never>;
4
3
  //# sourceMappingURL=styles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/styles.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,+QAMhC,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/Tooltip/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEpD,eAAO,MAAM,oBAAoB,+QAMhC,CAAC"}
@@ -26,7 +26,7 @@ declare const darkTheme: {
26
26
  "17": string;
27
27
  "18": string;
28
28
  "19": string;
29
- "20": string; /** @deprecated Use "error" instead of "danger" */
29
+ "20": string;
30
30
  };
31
31
  app: {
32
32
  background: {
@@ -275,7 +275,7 @@ declare const darkTheme: {
275
275
  "17": string;
276
276
  "18": string;
277
277
  "19": string;
278
- "20": string; /** @deprecated Use "error" instead of "danger" */
278
+ "20": string;
279
279
  };
280
280
  list: string[];
281
281
  };
@@ -1 +1 @@
1
- {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/themes/dark/theme.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAgPF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;0BA7NT,mDAAmD;;;;;;;;;;;;;;;gBAAnD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;gBAyBnD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2IrD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8BApKjD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkOxD,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/themes/dark/theme.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAgPF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBA7NT,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;gBAyBnD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA2IrD,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8DtD,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../src/utils/hooks.ts"],"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ChC,QAAQ,EAAE,4BAA4B,aASvC;AAED,KAAK,qBAAqB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC7C,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;IAEtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,KAAK,GAAG,CAAC;CACvC,CAAC;AAEF,KAAK,oBAAoB,CAAC,CAAC,SAAS,MAAM,IAAI;IAC5C,YAAY,CAAC,EAAE,CAAC,EAAE,CAAC;IAEnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,CAAC;CAC9C,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,8CAKrC,qBAAqB,CAAC,CAAC,CAAC;;yBASd,MAAM;CAUpB,CAAC;AAyBF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,8CAK1C,oBAAoB,CAAC,CAAC,CAAC;;yBAYb,MAAM;;CAsBpB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAiC7D"}
@@ -62,54 +62,54 @@ interface CustomRenderResult extends RenderResult<typeof sproutQueries> {
62
62
  }
63
63
  declare const customRender: (node: React.ReactNode, options?: Omit<RenderOptions<typeof sproutQueries>, "queries" | "wrapper">) => CustomRenderResult;
64
64
  declare const customWithin: (element: HTMLElement) => {
65
- getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T;
66
- getAllByLabelText<T_1 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_1[];
67
- queryByLabelText<T_2 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_2 | null;
68
- queryAllByLabelText<T_3 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_3[];
69
- findByLabelText<T_4 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_4>;
70
- findAllByLabelText<T_5 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_5[]>;
71
- getByPlaceholderText<T_6 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_6;
72
- getAllByPlaceholderText<T_7 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_7[];
73
- queryByPlaceholderText<T_8 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_8 | null;
74
- queryAllByPlaceholderText<T_9 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_9[];
75
- findByPlaceholderText<T_10 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_10>;
76
- findAllByPlaceholderText<T_11 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_11[]>;
77
- getByText<T_12 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_12;
78
- getAllByText<T_13 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_13[];
79
- queryByText<T_14 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_14 | null;
80
- queryAllByText<T_15 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): T_15[];
81
- findByText<T_16 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_16>;
82
- findAllByText<T_17 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_17[]>;
83
- getByAltText<T_18 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_18;
84
- getAllByAltText<T_19 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_19[];
85
- queryByAltText<T_20 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_20 | null;
86
- queryAllByAltText<T_21 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_21[];
87
- findByAltText<T_22 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_22>;
88
- findAllByAltText<T_23 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_23[]>;
89
- getByTitle<T_24 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_24;
90
- getAllByTitle<T_25 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_25[];
91
- queryByTitle<T_26 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_26 | null;
92
- queryAllByTitle<T_27 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_27[];
93
- findByTitle<T_28 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_28>;
94
- findAllByTitle<T_29 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_29[]>;
95
- getByDisplayValue<T_30 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_30;
96
- getAllByDisplayValue<T_31 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_31[];
97
- queryByDisplayValue<T_32 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_32 | null;
98
- queryAllByDisplayValue<T_33 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_33[];
99
- findByDisplayValue<T_34 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_34>;
100
- findAllByDisplayValue<T_35 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_35[]>;
101
- getByRole<T_36 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_36;
102
- getAllByRole<T_37 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_37[];
103
- queryByRole<T_38 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_38 | null;
104
- queryAllByRole<T_39 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): T_39[];
105
- findByRole<T_40 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_40>;
106
- findAllByRole<T_41 extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_41[]>;
107
- getByTestId<T_42 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_42;
108
- getAllByTestId<T_43 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_43[];
109
- queryByTestId<T_44 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_44 | null;
110
- queryAllByTestId<T_45 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): T_45[];
111
- findByTestId<T_46 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_46>;
112
- findAllByTestId<T_47 extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): Promise<T_47[]>;
65
+ getByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.GetByText<T>>;
66
+ getAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
67
+ queryByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.QueryByText<T>>;
68
+ queryAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
69
+ findByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByText<T>>;
70
+ findAllByLabelText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByText<T>>;
71
+ getByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
72
+ getAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
73
+ queryByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
74
+ queryAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
75
+ findByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
76
+ findAllByPlaceholderText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
77
+ getByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.GetByText<T>>;
78
+ getAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
79
+ queryByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.QueryByText<T>>;
80
+ queryAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType<queries.AllByText<T>>;
81
+ findByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByText<T>>;
82
+ findAllByText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByText<T>>;
83
+ getByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
84
+ getAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
85
+ queryByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
86
+ queryAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
87
+ findByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
88
+ findAllByAltText<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
89
+ getByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
90
+ getAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
91
+ queryByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
92
+ queryAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
93
+ findByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
94
+ findAllByTitle<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
95
+ getByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
96
+ getAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
97
+ queryByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
98
+ queryAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
99
+ findByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
100
+ findAllByDisplayValue<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
101
+ getByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.GetByRole<T>>;
102
+ getAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.AllByRole<T>>;
103
+ queryByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.QueryByRole<T>>;
104
+ queryAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined): ReturnType<queries.AllByRole<T>>;
105
+ findByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByRole<T>>;
106
+ findAllByRole<T extends HTMLElement = HTMLElement>(role: import("@testing-library/react").ByRoleMatcher, options?: queries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByRole<T>>;
107
+ getByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.GetByBoundAttribute<T>>;
108
+ getAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
109
+ queryByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.QueryByBoundAttribute<T>>;
110
+ queryAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType<queries.AllByBoundAttribute<T>>;
111
+ findByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindByBoundAttribute<T>>;
112
+ findAllByTestId<T extends HTMLElement = HTMLElement>(id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType<queries.FindAllByBoundAttribute<T>>;
113
113
  } & {
114
114
  readonly queryByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject) => HTMLElement | null;
115
115
  readonly queryAllByDataQaLabel: (qaObject: import("./dataQaLabelQueries").TypeQaObject, options?: import("@testing-library/react").MatcherOptions | undefined) => HTMLElement[];
@@ -1 +1 @@
1
- {"version":3,"file":"react-testing-library.d.ts","sourceRoot":"","sources":["../../../src/utils/react-testing-library.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EACL,GAAG,EACH,OAAO,EACP,WAAW,EACX,SAAS,EACT,OAAO,EAGP,OAAO,EACP,yBAAyB,EAEzB,aAAa,EACb,YAAY,EACZ,MAAM,EACP,MAAM,wBAAwB,CAAC;AAChC,OAAO,SAAS,MAAM,6BAA6B,CAAC;AAKpD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGT,CAAC;AAEX,UAAU,kBAAmB,SAAQ,YAAY,CAAC,OAAO,aAAa,CAAC;IACrE,YAAY,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACnC;AACD,QAAA,MAAM,YAAY,SACV,MAAM,SAAS,YACX,KAAK,cAAc,oBAAoB,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC,KACzE,kBAeF,CAAC;AAEF,QAAA,MAAM,YAAY,YAAa,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAmC,CAAC;AAG9E,QAAA,MAAM,YAAY,EAAE,MAAM,CAAC,OAAO,aAAa,CAGrC,CAAC;AAEX,OAAO,EACL,GAAG,EAC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AO,MAAM,uBAAuB,UAE3B,eAAe,GAAG,CAAC,KAEzB,eAAe,GAAG,CA8BpB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/responsiveProps/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAKxE,eAAO,MAAM,uBAAuB,UAE3B,cAAc,CAAC,GAAG,CAAC,KAEzB,cAAc,CAAC,GAAG,CA8BpB,CAAC"}
@@ -63,7 +63,7 @@ var _getNumberFormatters = function _getNumberFormatters(options) {
63
63
  var memoizer = memoize(MEMO_CACHE_SIZE, COMPARE_OBJECTS);
64
64
  var getNumberFormatters = memoizer(_getNumberFormatters);
65
65
  var getThreshold = function getThreshold(abbreviate) {
66
- if (typeof abbreviate === "number") return Math.max(1000, abbreviate);
66
+ if (typeof abbreviate === "number") return Math.max(1000, Math.abs(abbreviate));
67
67
  if (abbreviate) return DEFAULT_THRESHOLD;
68
68
  return Infinity;
69
69
  };
@@ -96,7 +96,7 @@ var normalizeArgs = function normalizeArgs(props) {
96
96
  max = _getMinMaxPrecision2[1];
97
97
  var _number = number || 0;
98
98
  var value = _number * (format === "percent" ? 0.01 : 1);
99
- var canAbbreviate = _number >= threshold;
99
+ var canAbbreviate = Math.abs(_number) >= threshold;
100
100
  var options = {
101
101
  locale: locale,
102
102
  format: format,
@@ -113,7 +113,10 @@ var normalizeArgs = function normalizeArgs(props) {
113
113
  rest: rest
114
114
  };
115
115
  };
116
- var Numeral = function Numeral(props) {
116
+ var getNumeral = function getNumeral(_ref) {
117
+ var returnType = _ref.returnType,
118
+ props = _ref.props;
119
+ var isReturnTypeString = returnType === "string";
117
120
  var _normalizeArgs = normalizeArgs(props),
118
121
  value = _normalizeArgs.value,
119
122
  canAbbreviate = _normalizeArgs.canAbbreviate,
@@ -121,18 +124,20 @@ var Numeral = function Numeral(props) {
121
124
  options = _normalizeArgs.options,
122
125
  qa = _normalizeArgs.qa,
123
126
  rest = _normalizeArgs.rest;
124
- if (!isValidNumber(props.number)) return /*#__PURE__*/_jsxs(_Fragment, {
125
- children: [invalidNumberLabel &&
126
- /*#__PURE__*/
127
- // Give screen readers something useful to read off + hide the em dash
128
- _jsx(VisuallyHidden, {
129
- children: invalidNumberLabel
130
- }), /*#__PURE__*/_jsx(Container, _objectSpread(_objectSpread({
131
- "aria-hidden": true
132
- }, qa), {}, {
133
- children: EM_DASH
134
- }))]
135
- });
127
+ if (!isValidNumber(props.number)) {
128
+ return isReturnTypeString ? EM_DASH : /*#__PURE__*/_jsxs(_Fragment, {
129
+ children: [invalidNumberLabel &&
130
+ /*#__PURE__*/
131
+ // Give screen readers something useful to read off + hide the em dash
132
+ _jsx(VisuallyHidden, {
133
+ children: invalidNumberLabel
134
+ }), /*#__PURE__*/_jsx(Container, _objectSpread(_objectSpread({
135
+ "aria-hidden": true
136
+ }, qa), {}, {
137
+ children: EM_DASH
138
+ }))]
139
+ });
140
+ }
136
141
  var formatters = getNumberFormatters(options);
137
142
  var fullText = formatters.standard.format(value);
138
143
  if (canAbbreviate) {
@@ -144,7 +149,7 @@ var Numeral = function Numeral(props) {
144
149
  // The following check is necessary because each locale may have differing thresholds
145
150
  // for which abbreviation begins.
146
151
  if (abbreviatedText !== fullText) {
147
- return /*#__PURE__*/_jsx(Tooltip, {
152
+ return isReturnTypeString ? abbreviatedText : /*#__PURE__*/_jsx(Tooltip, {
148
153
  content: fullText,
149
154
  children: /*#__PURE__*/_jsx(AbbrContainer, _objectSpread(_objectSpread(_objectSpread({}, qa), rest), {}, {
150
155
  children: abbreviatedText
@@ -152,8 +157,20 @@ var Numeral = function Numeral(props) {
152
157
  });
153
158
  }
154
159
  }
155
- return /*#__PURE__*/_jsx(Container, _objectSpread(_objectSpread(_objectSpread({}, qa), rest), {}, {
160
+ return isReturnTypeString ? fullText : /*#__PURE__*/_jsx(Container, _objectSpread(_objectSpread(_objectSpread({}, qa), rest), {}, {
156
161
  children: fullText
157
162
  }));
158
163
  };
164
+ export var formatNumeral = function formatNumeral(props) {
165
+ return getNumeral({
166
+ returnType: "string",
167
+ props: props
168
+ });
169
+ };
170
+ var Numeral = function Numeral(props) {
171
+ return getNumeral({
172
+ returnType: "component",
173
+ props: props
174
+ });
175
+ };
159
176
  export default Numeral;
@@ -1,4 +1,5 @@
1
- import Numeral from "./Numeral";
1
+ import Numeral, { formatNumeral } from "./Numeral";
2
2
  export default Numeral;
3
3
  export { Numeral };
4
+ export { formatNumeral };
4
5
  export * from "./NumeralTypes";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sproutsocial/racine",
3
- "version": "23.0.0",
3
+ "version": "23.2.0",
4
4
  "license": "MIT",
5
5
  "engines": {
6
6
  "node": ">=18"
@@ -48,8 +48,8 @@
48
48
  "typecheck": "npm-run-all typecheck:ts",
49
49
  "test": "yarn jest --ci",
50
50
  "test:visual-regression": "yarn backstop test --config='backstop.config.js' --docker",
51
- "backstop-reference": "yarn backstop reference --config='backstop.config.js' --docker",
52
- "backstop-approve": "yarn backstop approve --config='backstop.config.js' --docker",
51
+ "backstop:reference": "yarn backstop reference --config='backstop.config.js' --docker",
52
+ "backstop:approve": "yarn backstop approve --config='backstop.config.js' --docker",
53
53
  "new": "node ./bin/scaffold.js",
54
54
  "playground": "node ./bin/scaffold-playground.js && yarn start",
55
55
  "release": "yarn build && yarn test && yarn changeset publish",
@@ -191,7 +191,7 @@
191
191
  "storybook-dark-mode": "^3.0.1",
192
192
  "styled-components": "^5.2.3",
193
193
  "tsc-alias": "^1.8.2",
194
- "typescript": "^5.1.6",
194
+ "typescript": "^5.6.2",
195
195
  "webpack": "^5.88.2",
196
196
  "webpack-cli": "^5.1.4",
197
197
  "webpack-dev-server": "^5.0.4",