@codecademy/gamut 72.2.2-alpha.dfb0a2.0 → 72.2.2-alpha.f96392.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 (97) hide show
  1. package/dist/Alert/elements.d.ts +4 -4
  2. package/dist/Anchor/index.d.ts +9 -19
  3. package/dist/Anchor/index.js +6 -9
  4. package/dist/BarChart/BarRow/elements.d.ts +154 -156
  5. package/dist/BarChart/utils/hooks.d.ts +2 -2
  6. package/dist/BarChart/utils/hooks.js +1 -3
  7. package/dist/Box/GridBox.d.ts +0 -1
  8. package/dist/Box/GridBox.js +1 -1
  9. package/dist/Box/props.d.ts +1 -1
  10. package/dist/Breadcrumbs/index.d.ts +5 -5
  11. package/dist/Breadcrumbs/index.js +2 -2
  12. package/dist/Button/CTAButton.d.ts +2 -2
  13. package/dist/Button/FillButton.d.ts +4 -4
  14. package/dist/Button/IconButton.d.ts +4 -4
  15. package/dist/Button/StrokeButton.d.ts +4 -4
  16. package/dist/Button/TextButton.d.ts +4 -4
  17. package/dist/Button/index.d.ts +1 -1
  18. package/dist/Button/shared/InlineIconButton.d.ts +2 -2
  19. package/dist/Button/shared/styles.d.ts +3 -3
  20. package/dist/Button/shared/types.d.ts +1 -1
  21. package/dist/ButtonBase/ButtonBase.d.ts +4 -9
  22. package/dist/ButtonBase/ButtonBase.js +4 -11
  23. package/dist/ButtonBase/index.d.ts +1 -1
  24. package/dist/ButtonBase/index.js +1 -1
  25. package/dist/Card/elements.d.ts +430 -436
  26. package/dist/Card/styles.d.ts +8 -8
  27. package/dist/Coachmark/index.d.ts +1 -1
  28. package/dist/ConnectedForm/ConnectedForm.d.ts +1 -1
  29. package/dist/ConnectedForm/ConnectedFormGroup.js +7 -5
  30. package/dist/ConnectedForm/ConnectedInputs/ConnectedCheckbox.js +3 -1
  31. package/dist/ConnectedForm/utils.d.ts +1 -1
  32. package/dist/ConnectedForm/utils.js +1 -1
  33. package/dist/DataList/Tables/Rows/TableRow.js +5 -1
  34. package/dist/DatePicker/DatePickerInput/index.d.ts +1 -1
  35. package/dist/Disclosure/elements.d.ts +18 -24
  36. package/dist/FeatureShimmer/index.js +1 -1
  37. package/dist/Form/SelectDropdown/SelectDropdown.js +1 -1
  38. package/dist/Form/SelectDropdown/elements/containers.js +1 -1
  39. package/dist/Form/SelectDropdown/elements/controls.js +2 -2
  40. package/dist/Form/SelectDropdown/elements/multi-value.js +2 -2
  41. package/dist/Form/SelectDropdown/types/internal.d.ts +2 -2
  42. package/dist/Form/SelectDropdown/utils.js +1 -2
  43. package/dist/Form/elements/Form.d.ts +93 -93
  44. package/dist/Form/elements/FormGroup.d.ts +1 -1
  45. package/dist/Form/index.d.ts +0 -2
  46. package/dist/Form/index.js +1 -2
  47. package/dist/Form/styles/Checkbox-styles.d.ts +1 -1
  48. package/dist/GridForm/GridFormButtons/index.d.ts +7 -7
  49. package/dist/List/ListProvider.d.ts +1 -1
  50. package/dist/List/ListRow.js +3 -2
  51. package/dist/List/elements.d.ts +151 -153
  52. package/dist/Markdown/index.d.ts +1 -1
  53. package/dist/Markdown/index.js +1 -1
  54. package/dist/Menu/MenuItem.js +8 -11
  55. package/dist/Menu/MenuSeparator.js +2 -2
  56. package/dist/Menu/elements.d.ts +2 -2
  57. package/dist/Menu/index.d.ts +0 -1
  58. package/dist/Menu/index.js +1 -2
  59. package/dist/Modals/Dialog.js +2 -6
  60. package/dist/Modals/Modal.js +2 -5
  61. package/dist/Modals/elements.d.ts +35 -35
  62. package/dist/Pagination/AnimatedPaginationButtons.d.ts +108 -110
  63. package/dist/Pagination/EllipsisButton.d.ts +4 -4
  64. package/dist/Pagination/PaginationButton.d.ts +6 -6
  65. package/dist/Pagination/utils.d.ts +108 -110
  66. package/dist/Pagination/utils.js +11 -14
  67. package/dist/PatternBackdrop/PatternBackdrop.d.ts +34 -34
  68. package/dist/Popover/Popover.js +6 -6
  69. package/dist/Popover/types.d.ts +3 -4
  70. package/dist/PopoverContainer/PopoverContainer.js +9 -9
  71. package/dist/PopoverContainer/hooks.d.ts +4 -16
  72. package/dist/PopoverContainer/hooks.js +27 -50
  73. package/dist/PopoverContainer/types.d.ts +1 -2
  74. package/dist/Tabs/TabButton.d.ts +2 -2
  75. package/dist/Tabs/TabNavLink.d.ts +2 -2
  76. package/dist/Tabs/TabNavLink.js +2 -2
  77. package/dist/Tag/elements.d.ts +10 -16
  78. package/dist/Tag/index.js +1 -1
  79. package/dist/Tip/InfoTip/InfoTipButton.d.ts +4 -4
  80. package/dist/Tip/PreviewTip/elements.d.ts +6 -12
  81. package/dist/Tip/__tests__/helpers.d.ts +1 -1
  82. package/dist/Tip/shared/FloatingTip.js +2 -2
  83. package/dist/Tip/shared/types.d.ts +2 -2
  84. package/dist/Tip/shared/utils.js +1 -1
  85. package/dist/Toggle/elements.d.ts +38 -38
  86. package/dist/Typography/Text.d.ts +1 -2
  87. package/dist/Typography/Text.js +2 -3
  88. package/dist/Video/lib/VidstackPlayer.d.ts +1 -1
  89. package/dist/Video/lib/VidstackPlayer.js +12 -5
  90. package/dist/Video/styles.d.ts +1 -0
  91. package/dist/Video/styles.js +10 -0
  92. package/dist/Video/vidstack-vendor.css +3 -0
  93. package/dist/utils/react.js +2 -4
  94. package/package.json +12 -19
  95. package/dist/Video/styles/vds_base_theme.scss +0 -101
  96. package/dist/utils/nullish.d.ts +0 -10
  97. package/dist/utils/nullish.js +0 -11
@@ -1,101 +0,0 @@
1
- @import "~@vidstack/react/player/styles/default/theme.css";
2
- @import "~@vidstack/react/player/styles/default/layouts/video.css";
3
- @import "~@vidstack/react/player/styles/default/layouts/audio.css";
4
-
5
- /**
6
- * Youtube overlay
7
- * - Why 120% ? hiding yt logo and copy link button which are not accessible.
8
- */
9
- iframe.vds-youtube[data-no-controls] {
10
- height: 120%;
11
- }
12
-
13
- [data-started] iframe.vds-youtube[data-no-controls] {
14
- height: 1000%;
15
- }
16
-
17
- // Control buttons
18
- :where(.vds-button .vds-icon) {
19
- border-radius: unset;
20
- }
21
-
22
- .vds-controls button {
23
- border-radius: var(--media-button-border-radius);
24
- }
25
-
26
- :where(.vds-video-layout[data-sm]) :where(.vds-button) {
27
- padding: 0px 4px !important;
28
- }
29
-
30
- // Small layout volume / time slider
31
- :where(.vds-video-layout[data-sm] .vds-volume-slider .vds-slider-track) {
32
- background-color: var(--color-gray-600);
33
- }
34
- :where(.vds-video-layout[data-sm] .vds-volume-slider .vds-slider-track-fill) {
35
- background-color: var(--color-secondary);
36
- }
37
- .vds-video-layout .vds-time-slider .vds-slider-value {
38
- border: unset;
39
- color: white;
40
- }
41
-
42
- // Tooltip
43
- .vds-tooltip-content::after {
44
- content: "";
45
- -webkit-transform: rotate(45deg);
46
- -moz-transform: rotate(45deg);
47
- -ms-transform: rotate(45deg);
48
- transform: rotate(45deg);
49
- border-style: solid;
50
- display: block;
51
- width: 1rem;
52
- height: 1rem;
53
- position: absolute;
54
- border-color: currentColor;
55
- }
56
- :where(.vds-tooltip-content[data-placement~="top"])::after {
57
- border-width: 0 1px 1px 0;
58
- bottom: -0.5rem;
59
- left: calc(50% - 0.5rem);
60
- background-image: linear-gradient(
61
- to top left,
62
- var(--color-background-contrast) 55%,
63
- rgba(0, 0, 0, 0) 20%
64
- );
65
- }
66
-
67
- :where(.vds-tooltip-content[data-placement~="bottom"])::after {
68
- border-width: 1px 0px 0px 1px;
69
- top: -0.5rem;
70
- left: calc(50% - 0.5rem);
71
- background-image: linear-gradient(
72
- to bottom right,
73
- var(--color-background-contrast) 55%,
74
- rgba(0, 0, 0, 0) 20%
75
- );
76
- }
77
-
78
- :where(.vds-tooltip-content[data-placement~="start"])::after {
79
- left: calc(0% + 0.5rem);
80
- }
81
- :where(.vds-tooltip-content[data-placement~="end"])::after {
82
- left: unset;
83
- right: calc(0% + 0.5rem);
84
- }
85
-
86
- @keyframes vds-tooltip-exit {
87
- 0% {
88
- opacity: 1;
89
- }
90
- 100% {
91
- opacity: 0;
92
- }
93
- }
94
- @keyframes vds-tooltip-enter {
95
- 0% {
96
- opacity: 0;
97
- }
98
- 100% {
99
- opacity: 1;
100
- }
101
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * True when `value` is `null` or `undefined`.
3
- * Use instead of `value == null` when `eqeqeq` is enforced.
4
- */
5
- export declare const isNullish: (value: unknown) => value is null | undefined;
6
- /**
7
- * True when `value` is neither `null` nor `undefined`.
8
- * Use instead of `value != null` when `eqeqeq` is enforced.
9
- */
10
- export declare const isDefined: <T>(value: T | null | undefined) => value is T;
@@ -1,11 +0,0 @@
1
- /**
2
- * True when `value` is `null` or `undefined`.
3
- * Use instead of `value == null` when `eqeqeq` is enforced.
4
- */
5
- export const isNullish = value => value === null || value === undefined;
6
-
7
- /**
8
- * True when `value` is neither `null` nor `undefined`.
9
- * Use instead of `value != null` when `eqeqeq` is enforced.
10
- */
11
- export const isDefined = value => value !== undefined && value !== null;