@codecademy/gamut 67.6.1-alpha.1b85c1.0 → 67.6.1-alpha.7ad049.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 (35) hide show
  1. package/dist/BarChart/Bar/elements.d.ts +1392 -0
  2. package/dist/BarChart/Bar/elements.js +61 -0
  3. package/dist/BarChart/Bar/index.d.ts +1 -0
  4. package/dist/BarChart/Bar/index.js +2 -0
  5. package/dist/BarChart/BarChartProvider.d.ts +33 -0
  6. package/dist/BarChart/BarChartProvider.js +39 -0
  7. package/dist/BarChart/BarRow.d.ts +7 -0
  8. package/dist/BarChart/BarRow.js +213 -0
  9. package/dist/BarChart/GridLines.d.ts +6 -0
  10. package/dist/BarChart/GridLines.js +45 -0
  11. package/dist/BarChart/ScaleChartHeader.d.ts +17 -0
  12. package/dist/BarChart/ScaleChartHeader.js +58 -0
  13. package/dist/BarChart/index.d.ts +4 -0
  14. package/dist/BarChart/index.js +81 -0
  15. package/dist/BarChart/types.d.ts +56 -0
  16. package/dist/BarChart/types.js +1 -0
  17. package/dist/BarChart/utils/index.d.ts +23 -0
  18. package/dist/BarChart/utils/index.js +56 -0
  19. package/dist/ConnectedForm/ConnectedFormGroup.d.ts +0 -5
  20. package/dist/ConnectedForm/ConnectedFormGroup.js +1 -1
  21. package/dist/Form/elements/FormGroupLabel.js +2 -8
  22. package/dist/GridForm/GridFormInputGroup/__fixtures__/renderers.d.ts +0 -4
  23. package/dist/GridForm/types.d.ts +0 -5
  24. package/dist/Tip/InfoTip/InfoTipButton.js +2 -5
  25. package/dist/Tip/InfoTip/elements.d.ts +12 -0
  26. package/dist/Tip/InfoTip/elements.js +9 -0
  27. package/dist/Tip/InfoTip/index.d.ts +0 -13
  28. package/dist/Tip/InfoTip/index.js +66 -36
  29. package/dist/Tip/__tests__/helpers.d.ts +26 -5
  30. package/dist/Tip/shared/FloatingTip.js +3 -3
  31. package/dist/Tip/shared/InlineTip.js +1 -4
  32. package/dist/Tip/shared/types.d.ts +1 -1
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +1 -0
  35. package/package.json +2 -2
@@ -17,7 +17,6 @@ export const InlineTip = ({
17
17
  loading,
18
18
  narrow,
19
19
  overline,
20
- contentRef,
21
20
  truncateLines,
22
21
  type,
23
22
  username,
@@ -43,7 +42,7 @@ export const InlineTip = ({
43
42
  height: inheritDims ? 'inherit' : undefined,
44
43
  ref: wrapperRef,
45
44
  width: inheritDims ? 'inherit' : undefined,
46
- onKeyDown: escapeKeyPressHandler,
45
+ onKeyDown: escapeKeyPressHandler ? e => escapeKeyPressHandler(e) : undefined,
47
46
  children: children
48
47
  });
49
48
  const tipBody = /*#__PURE__*/_jsx(InlineTipBodyWrapper, {
@@ -56,9 +55,7 @@ export const InlineTip = ({
56
55
  color: "currentColor",
57
56
  horizNarrow: narrow && isHorizontalCenter,
58
57
  id: id,
59
- ref: contentRef,
60
58
  role: type === 'tool' ? 'tooltip' : undefined,
61
- tabIndex: type === 'info' ? -1 : undefined,
62
59
  width: narrow && !isHorizontalCenter ? narrowWidth : 'max-content',
63
60
  zIndex: "auto",
64
61
  children: type === 'preview' ? /*#__PURE__*/_jsxs(_Fragment, {
@@ -46,7 +46,7 @@ export type TipPlacementComponentProps = Omit<TipNewBaseProps, 'placement' | 'em
46
46
  escapeKeyPressHandler?: (event: React.KeyboardEvent<HTMLDivElement>) => void;
47
47
  id?: string;
48
48
  isTipHidden?: boolean;
49
- contentRef?: React.RefObject<HTMLDivElement> | ((node: HTMLDivElement | null) => void);
49
+ popoverContentRef?: React.RefObject<HTMLDivElement> | ((node: HTMLDivElement | null) => void);
50
50
  type: 'info' | 'tool' | 'preview';
51
51
  wrapperRef?: React.RefObject<HTMLDivElement>;
52
52
  zIndex?: number;
package/dist/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export * from './Anchor';
6
6
  export * from './Animation';
7
7
  export * from './AppWrapper';
8
8
  export * from './Badge';
9
+ export * from './BarChart';
9
10
  export * from './BodyPortal';
10
11
  export * from './Box';
11
12
  export * from './Breadcrumbs';
package/dist/index.js CHANGED
@@ -6,6 +6,7 @@ export * from './Anchor';
6
6
  export * from './Animation';
7
7
  export * from './AppWrapper';
8
8
  export * from './Badge';
9
+ export * from './BarChart';
9
10
  export * from './BodyPortal';
10
11
  export * from './Box';
11
12
  export * from './Breadcrumbs';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/gamut",
3
3
  "description": "Styleguide & Component library for Codecademy",
4
- "version": "67.6.1-alpha.1b85c1.0",
4
+ "version": "67.6.1-alpha.7ad049.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@codecademy/gamut-icons": "9.53.0",
@@ -56,5 +56,5 @@
56
56
  "dist/**/[A-Z]**/[A-Z]*.js",
57
57
  "dist/**/[A-Z]**/index.js"
58
58
  ],
59
- "gitHead": "30755293c47b687536c0754f42df0728610986db"
59
+ "gitHead": "235e14cae8b5bbd78d8854279487b9f3004710ed"
60
60
  }