@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.
- package/dist/Alert/elements.d.ts +4 -4
- package/dist/Anchor/index.d.ts +9 -19
- package/dist/Anchor/index.js +6 -9
- package/dist/BarChart/BarRow/elements.d.ts +154 -156
- package/dist/BarChart/utils/hooks.d.ts +2 -2
- package/dist/BarChart/utils/hooks.js +1 -3
- package/dist/Box/GridBox.d.ts +0 -1
- package/dist/Box/GridBox.js +1 -1
- package/dist/Box/props.d.ts +1 -1
- package/dist/Breadcrumbs/index.d.ts +5 -5
- package/dist/Breadcrumbs/index.js +2 -2
- package/dist/Button/CTAButton.d.ts +2 -2
- package/dist/Button/FillButton.d.ts +4 -4
- package/dist/Button/IconButton.d.ts +4 -4
- package/dist/Button/StrokeButton.d.ts +4 -4
- package/dist/Button/TextButton.d.ts +4 -4
- package/dist/Button/index.d.ts +1 -1
- package/dist/Button/shared/InlineIconButton.d.ts +2 -2
- package/dist/Button/shared/styles.d.ts +3 -3
- package/dist/Button/shared/types.d.ts +1 -1
- package/dist/ButtonBase/ButtonBase.d.ts +4 -9
- package/dist/ButtonBase/ButtonBase.js +4 -11
- package/dist/ButtonBase/index.d.ts +1 -1
- package/dist/ButtonBase/index.js +1 -1
- package/dist/Card/elements.d.ts +430 -436
- package/dist/Card/styles.d.ts +8 -8
- package/dist/Coachmark/index.d.ts +1 -1
- package/dist/ConnectedForm/ConnectedForm.d.ts +1 -1
- package/dist/ConnectedForm/ConnectedFormGroup.js +7 -5
- package/dist/ConnectedForm/ConnectedInputs/ConnectedCheckbox.js +3 -1
- package/dist/ConnectedForm/utils.d.ts +1 -1
- package/dist/ConnectedForm/utils.js +1 -1
- package/dist/DataList/Tables/Rows/TableRow.js +5 -1
- package/dist/DatePicker/DatePickerInput/index.d.ts +1 -1
- package/dist/Disclosure/elements.d.ts +18 -24
- package/dist/FeatureShimmer/index.js +1 -1
- package/dist/Form/SelectDropdown/SelectDropdown.js +1 -1
- package/dist/Form/SelectDropdown/elements/containers.js +1 -1
- package/dist/Form/SelectDropdown/elements/controls.js +2 -2
- package/dist/Form/SelectDropdown/elements/multi-value.js +2 -2
- package/dist/Form/SelectDropdown/types/internal.d.ts +2 -2
- package/dist/Form/SelectDropdown/utils.js +1 -2
- package/dist/Form/elements/Form.d.ts +93 -93
- package/dist/Form/elements/FormGroup.d.ts +1 -1
- package/dist/Form/index.d.ts +0 -2
- package/dist/Form/index.js +1 -2
- package/dist/Form/styles/Checkbox-styles.d.ts +1 -1
- package/dist/GridForm/GridFormButtons/index.d.ts +7 -7
- package/dist/List/ListProvider.d.ts +1 -1
- package/dist/List/ListRow.js +3 -2
- package/dist/List/elements.d.ts +151 -153
- package/dist/Markdown/index.d.ts +1 -1
- package/dist/Markdown/index.js +1 -1
- package/dist/Menu/MenuItem.js +8 -11
- package/dist/Menu/MenuSeparator.js +2 -2
- package/dist/Menu/elements.d.ts +2 -2
- package/dist/Menu/index.d.ts +0 -1
- package/dist/Menu/index.js +1 -2
- package/dist/Modals/Dialog.js +2 -6
- package/dist/Modals/Modal.js +2 -5
- package/dist/Modals/elements.d.ts +35 -35
- package/dist/Pagination/AnimatedPaginationButtons.d.ts +108 -110
- package/dist/Pagination/EllipsisButton.d.ts +4 -4
- package/dist/Pagination/PaginationButton.d.ts +6 -6
- package/dist/Pagination/utils.d.ts +108 -110
- package/dist/Pagination/utils.js +11 -14
- package/dist/PatternBackdrop/PatternBackdrop.d.ts +34 -34
- package/dist/Popover/Popover.js +6 -6
- package/dist/Popover/types.d.ts +3 -4
- package/dist/PopoverContainer/PopoverContainer.js +9 -9
- package/dist/PopoverContainer/hooks.d.ts +4 -16
- package/dist/PopoverContainer/hooks.js +27 -50
- package/dist/PopoverContainer/types.d.ts +1 -2
- package/dist/Tabs/TabButton.d.ts +2 -2
- package/dist/Tabs/TabNavLink.d.ts +2 -2
- package/dist/Tabs/TabNavLink.js +2 -2
- package/dist/Tag/elements.d.ts +10 -16
- package/dist/Tag/index.js +1 -1
- package/dist/Tip/InfoTip/InfoTipButton.d.ts +4 -4
- package/dist/Tip/PreviewTip/elements.d.ts +6 -12
- package/dist/Tip/__tests__/helpers.d.ts +1 -1
- package/dist/Tip/shared/FloatingTip.js +2 -2
- package/dist/Tip/shared/types.d.ts +2 -2
- package/dist/Tip/shared/utils.js +1 -1
- package/dist/Toggle/elements.d.ts +38 -38
- package/dist/Typography/Text.d.ts +1 -2
- package/dist/Typography/Text.js +2 -3
- package/dist/Video/lib/VidstackPlayer.d.ts +1 -1
- package/dist/Video/lib/VidstackPlayer.js +12 -5
- package/dist/Video/styles.d.ts +1 -0
- package/dist/Video/styles.js +10 -0
- package/dist/Video/vidstack-vendor.css +3 -0
- package/dist/utils/react.js +2 -4
- package/package.json +12 -19
- package/dist/Video/styles/vds_base_theme.scss +0 -101
- package/dist/utils/nullish.d.ts +0 -10
- 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
|
-
}
|
package/dist/utils/nullish.d.ts
DELETED
|
@@ -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;
|
package/dist/utils/nullish.js
DELETED
|
@@ -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;
|