@onepercentio/one-ui 0.29.2 → 0.29.5
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/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.js +1 -1
- package/dist/hooks/useHero.js +3 -2
- package/dist-ts/components/Switch/Switch.d.ts +1 -1
- package/dist-ts/hooks/useHero.js +5 -4
- package/dist-ts/hooks/useHero.js.map +1 -1
- package/package.json +5 -1
- package/src/assets/img/svg/checkbox.svg +0 -3
- package/src/assets/styles/index.scss +0 -2
- package/src/assets/styles/mixins.scss +0 -12
- package/src/assets/styles/variables.scss +0 -49
- package/src/components/AdaptiveButton/AdaptiveButton.module.scss +0 -7
- package/src/components/AdaptiveButton/AdaptiveButton.tsx +0 -26
- package/src/components/AdaptiveButton/index.tsx +0 -2
- package/src/components/AdaptiveContainer/AdaptiveContainer.module.scss +0 -53
- package/src/components/AdaptiveContainer/AdaptiveContainer.tsx +0 -200
- package/src/components/AdaptiveContainer/index.tsx +0 -2
- package/src/components/AdaptiveDialog/AdaptiveDialog.module.scss +0 -147
- package/src/components/AdaptiveDialog/AdaptiveDialog.tsx +0 -97
- package/src/components/AdaptiveDialog/index.tsx +0 -2
- package/src/components/AdaptiveSidebar/AdaptiveSidebar.module.scss +0 -49
- package/src/components/AdaptiveSidebar/AdaptiveSidebar.sample.tsx +0 -10
- package/src/components/AdaptiveSidebar/AdaptiveSidebar.tsx +0 -123
- package/src/components/AdaptiveSidebar/index.tsx +0 -2
- package/src/components/AnchoredTooltip/AnchoredTooltip.module.scss +0 -64
- package/src/components/AnchoredTooltip/AnchoredTooltip.tsx +0 -250
- package/src/components/AnchoredTooltip/index.tsx +0 -2
- package/src/components/AnimatedEntrance/AnimatedEntrance.module.scss +0 -108
- package/src/components/AnimatedEntrance/AnimatedEntrance.tsx +0 -227
- package/src/components/AnimatedEntrance/index.tsx +0 -2
- package/src/components/AsyncWrapper/AsyncWrapper.tsx +0 -38
- package/src/components/AsyncWrapper/index.tsx +0 -2
- package/src/components/Avatar/Avatar.module.scss +0 -22
- package/src/components/Avatar/Avatar.tsx +0 -31
- package/src/components/Avatar/index.tsx +0 -2
- package/src/components/BucketFill/BucketFill.module.scss +0 -36
- package/src/components/BucketFill/BucketFill.tsx +0 -65
- package/src/components/BucketFill/index.tsx +0 -2
- package/src/components/Button/Button.module.scss +0 -45
- package/src/components/Button/Button.tsx +0 -40
- package/src/components/Button/index.tsx +0 -2
- package/src/components/Card/Card.module.scss +0 -12
- package/src/components/Card/Card.tsx +0 -9
- package/src/components/Card/index.tsx +0 -2
- package/src/components/Chart/Chart.e2e.ts +0 -4
- package/src/components/Chart/Chart.logic.tsx +0 -8
- package/src/components/Chart/Chart.module.scss +0 -58
- package/src/components/Chart/Chart.tsx +0 -2
- package/src/components/Chart/Chart.types.ts +0 -35
- package/src/components/Chart/Chart.view.tsx +0 -241
- package/src/components/Chart/index.tsx +0 -2
- package/src/components/CheckBox/CheckBox.module.scss +0 -36
- package/src/components/CheckBox/CheckBox.tsx +0 -63
- package/src/components/CheckBox/index.tsx +0 -2
- package/src/components/CodeInput/CodeInput.module.scss +0 -5
- package/src/components/CodeInput/CodeInput.tsx +0 -84
- package/src/components/CodeInput/index.tsx +0 -2
- package/src/components/Collapsable/Collapsable.module.scss +0 -42
- package/src/components/Collapsable/Collapsable.tsx +0 -253
- package/src/components/Collapsable/index.tsx +0 -2
- package/src/components/Countdown/Countdown.tsx +0 -130
- package/src/components/Countdown/index.tsx +0 -2
- package/src/components/CurrencyInput/CurrencyInput.hook.ts +0 -37
- package/src/components/CurrencyInput/CurrencyInput.tsx +0 -25
- package/src/components/CurrencyInput/index.tsx +0 -2
- package/src/components/Divider/Divider.module.scss +0 -7
- package/src/components/Divider/Divider.tsx +0 -13
- package/src/components/Divider/index.tsx +0 -2
- package/src/components/EmailInput/EmailInput.module.scss +0 -0
- package/src/components/EmailInput/EmailInput.tsx +0 -51
- package/src/components/EmailInput/index.tsx +0 -2
- package/src/components/FadeIn/FadeIn.module.scss +0 -9
- package/src/components/FadeIn/FadeIn.tsx +0 -77
- package/src/components/FadeIn/index.tsx +0 -2
- package/src/components/FileInput/FileInput.module.scss +0 -6
- package/src/components/FileInput/FileInput.tsx +0 -75
- package/src/components/FileInput/View/BigFactory/BigFactory.module.scss +0 -20
- package/src/components/FileInput/View/BigFactory/BigFactory.tsx +0 -48
- package/src/components/FileInput/View/BigFactory/index.tsx +0 -2
- package/src/components/FileInput/View/Compact/Compact.module.scss +0 -68
- package/src/components/FileInput/View/Compact/Compact.tsx +0 -151
- package/src/components/FileInput/View/Compact/index.tsx +0 -2
- package/src/components/FileInput/View/View.types.ts +0 -12
- package/src/components/FileInput/index.tsx +0 -2
- package/src/components/FlowController/FlowController.module.scss +0 -47
- package/src/components/FlowController/FlowController.tsx +0 -93
- package/src/components/FlowController/index.tsx +0 -2
- package/src/components/Form/Form.tsx +0 -243
- package/src/components/Form/index.ts +0 -2
- package/src/components/Form/v2/Form.hook.ts +0 -341
- package/src/components/Form/v2/Form.module.scss +0 -0
- package/src/components/Form/v2/Form.tsx +0 -78
- package/src/components/Form/v2/Form.types.ts +0 -118
- package/src/components/Form/v2/FormField/Extensions/DateField/DateField.module.scss +0 -0
- package/src/components/Form/v2/FormField/Extensions/DateField/DateField.tsx +0 -73
- package/src/components/Form/v2/FormField/Extensions/DateField/index.tsx +0 -2
- package/src/components/Form/v2/FormField/Extensions/PhoneField/PhoneField.module.scss +0 -0
- package/src/components/Form/v2/FormField/Extensions/PhoneField/PhoneField.tsx +0 -91
- package/src/components/Form/v2/FormField/Extensions/PhoneField/index.tsx +0 -2
- package/src/components/Form/v2/FormField/FormField.module.scss +0 -0
- package/src/components/Form/v2/FormField/FormField.tsx +0 -378
- package/src/components/Form/v2/FormField/FormField.types.ts +0 -129
- package/src/components/Form/v2/FormField/index.tsx +0 -2
- package/src/components/Form/v2/index.tsx +0 -2
- package/src/components/Freeze/Freeze.tsx +0 -9
- package/src/components/Freeze/index.tsx +0 -2
- package/src/components/HSForms/HSForms.tsx +0 -57
- package/src/components/HSForms/index.tsx +0 -2
- package/src/components/Header/Header.module.scss +0 -119
- package/src/components/Header/Header.tsx +0 -138
- package/src/components/Header/index.tsx +0 -2
- package/src/components/HeaderCloseBtn/HeaderCloseBtn.module.scss +0 -44
- package/src/components/HeaderCloseBtn/HeaderCloseBtn.tsx +0 -28
- package/src/components/HeaderCloseBtn/index.tsx +0 -2
- package/src/components/InfinityScroll/InfinityScroll.module.scss +0 -30
- package/src/components/InfinityScroll/InfinityScroll.tsx +0 -187
- package/src/components/InfinityScroll/index.tsx +0 -2
- package/src/components/Input/Input.module.scss +0 -71
- package/src/components/Input/Input.tsx +0 -134
- package/src/components/Input/index.tsx +0 -2
- package/src/components/InstantCounter/InstantCounter.tsx +0 -77
- package/src/components/InstantCounter/index.tsx +0 -2
- package/src/components/LavaLamp/LavaLamp.data.tsx +0 -114
- package/src/components/LavaLamp/LavaLamp.module.scss +0 -26
- package/src/components/LavaLamp/LavaLamp.tsx +0 -131
- package/src/components/LavaLamp/index.tsx +0 -2
- package/src/components/LavaLamp/v2/LavaLamp.module.scss +0 -23
- package/src/components/LavaLamp/v2/LavaLamp.tsx +0 -197
- package/src/components/LinkToId/LinkToId.module.scss +0 -4
- package/src/components/LinkToId/LinkToId.tsx +0 -51
- package/src/components/LinkToId/index.tsx +0 -2
- package/src/components/Loader/Loader.module.scss +0 -40
- package/src/components/Loader/Loader.tsx +0 -18
- package/src/components/Loader/index.tsx +0 -2
- package/src/components/LoaderDotsIndicator/LoaderDotsIndicator.tsx +0 -34
- package/src/components/LoaderDotsIndicator/index.tsx +0 -2
- package/src/components/LoopableVideo/LoopableVideo.tsx +0 -37
- package/src/components/LoopableVideo/index.tsx +0 -2
- package/src/components/MainGrid/MainGrid.module.scss +0 -28
- package/src/components/MainGrid/MainGrid.tsx +0 -68
- package/src/components/MainGrid/index.tsx +0 -2
- package/src/components/MutableHamburgerButton/MutableHamburgerButton.module.scss +0 -220
- package/src/components/MutableHamburgerButton/MutableHamburgerButton.tsx +0 -38
- package/src/components/MutableHamburgerButton/index.tsx +0 -2
- package/src/components/Notification/Notification.module.scss +0 -25
- package/src/components/Notification/Notification.tsx +0 -13
- package/src/components/Notification/index.tsx +0 -2
- package/src/components/OrderableList/OrderableList.module.scss +0 -98
- package/src/components/OrderableList/OrderableList.tsx +0 -564
- package/src/components/OrderableList/index.tsx +0 -2
- package/src/components/PaginationIndicator/PaginationIndicator.tsx +0 -365
- package/src/components/PaginationIndicator/index.tsx +0 -2
- package/src/components/Parallax/Parallax.module.scss +0 -28
- package/src/components/Parallax/Parallax.tsx +0 -225
- package/src/components/Parallax/index.tsx +0 -2
- package/src/components/Parallax/math/helpers.ts +0 -289
- package/src/components/PasswordInput/PasswordInput.module.scss +0 -17
- package/src/components/PasswordInput/PasswordInput.tsx +0 -154
- package/src/components/PasswordInput/index.tsx +0 -2
- package/src/components/PingPongText/PingPongText.module.scss +0 -4
- package/src/components/PingPongText/PingPongText.tsx +0 -83
- package/src/components/PingPongText/index.tsx +0 -2
- package/src/components/PixelatedScan/PixelatedScan.module.scss +0 -86
- package/src/components/PixelatedScan/PixelatedScan.tsx +0 -175
- package/src/components/PixelatedScan/index.tsx +0 -2
- package/src/components/Portal/Portal.module.scss +0 -3
- package/src/components/Portal/Portal.tsx +0 -68
- package/src/components/Portal/index.tsx +0 -2
- package/src/components/ProgressBar/ProgressBar.module.scss +0 -44
- package/src/components/ProgressBar/ProgressBar.tsx +0 -124
- package/src/components/ProgressBar/index.tsx +0 -2
- package/src/components/ProgressTexts/ProgressTexts.module.scss +0 -37
- package/src/components/ProgressTexts/ProgressTexts.tsx +0 -85
- package/src/components/ProgressTexts/index.tsx +0 -2
- package/src/components/Radio/Radio.module.scss +0 -36
- package/src/components/Radio/Radio.tsx +0 -53
- package/src/components/Radio/index.tsx +0 -2
- package/src/components/SectionContainer/SectionContainer.module.scss +0 -30
- package/src/components/SectionContainer/SectionContainer.tsx +0 -49
- package/src/components/SectionContainer/index.tsx +0 -2
- package/src/components/Select/Select.module.scss +0 -58
- package/src/components/Select/Select.tsx +0 -192
- package/src/components/Select/index.tsx +0 -2
- package/src/components/Skeleton/Skeleton.module.scss +0 -21
- package/src/components/Skeleton/Skeleton.tsx +0 -29
- package/src/components/Skeleton/index.tsx +0 -2
- package/src/components/Spacing/Spacing.module.scss +0 -13
- package/src/components/Spacing/Spacing.tsx +0 -24
- package/src/components/Spacing/index.tsx +0 -2
- package/src/components/StaticScroller/StaticScroller.module.scss +0 -14
- package/src/components/StaticScroller/StaticScroller.tsx +0 -83
- package/src/components/StaticScroller/index.tsx +0 -2
- package/src/components/Switch/Switch.module.scss +0 -43
- package/src/components/Switch/Switch.tsx +0 -41
- package/src/components/Switch/index.tsx +0 -2
- package/src/components/Table/Table.module.scss +0 -76
- package/src/components/Table/Table.tsx +0 -152
- package/src/components/Table/index.tsx +0 -2
- package/src/components/Tabs/Tabs.module.scss +0 -40
- package/src/components/Tabs/Tabs.tsx +0 -104
- package/src/components/Tabs/index.tsx +0 -2
- package/src/components/Text/Text.module.scss +0 -81
- package/src/components/Text/Text.tsx +0 -42
- package/src/components/Text/index.tsx +0 -2
- package/src/components/Transition/MasksFactory/DiagonalReveal.tsx +0 -47
- package/src/components/Transition/MasksFactory/DiagonalSquareToBalls.tsx +0 -78
- package/src/components/Transition/MasksFactory/PhysicsSquares.tsx +0 -106
- package/src/components/Transition/MasksFactory/SquareToBalls.tsx +0 -66
- package/src/components/Transition/MasksFactory/utils.ts +0 -35
- package/src/components/Transition/Transition.module.scss +0 -211
- package/src/components/Transition/Transition.tsx +0 -495
- package/src/components/Transition/index.tsx +0 -2
- package/src/components/UncontrolledTransition/UncontrolledTransition.ai.md +0 -9
- package/src/components/UncontrolledTransition/UncontrolledTransition.sample.tsx +0 -34
- package/src/components/UncontrolledTransition/UncontrolledTransition.tsx +0 -143
- package/src/components/UncontrolledTransition/index.tsx +0 -2
- package/src/components/WalletConnectionWrapper/WalletConnectionWrapper.tsx +0 -212
- package/src/components/WalletConnectionWrapper/index.tsx +0 -2
- package/src/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.module.scss +0 -5
- package/src/components/utilitary/ScrollAndFocusLock/ScrollAndFocusLock.tsx +0 -52
- package/src/components/utilitary/ScrollAndFocusLock/index.tsx +0 -2
- package/src/context/AsyncProcess.tsx +0 -107
- package/src/context/ContextAsyncControl.tsx +0 -89
- package/src/context/CustomBrowserRouter.tsx +0 -55
- package/src/context/OneUIProvider.tsx +0 -308
- package/src/hooks/logs/useDependencyChangeDetection.ts +0 -25
- package/src/hooks/logs/useIsMounting.ts +0 -7
- package/src/hooks/persistence/useLocalStorage.ts +0 -45
- package/src/hooks/shims/ObjectWatchShim.ts +0 -56
- package/src/hooks/ui/useAdaptiveImage.tsx +0 -36
- package/src/hooks/ui/useAlternating.tsx +0 -22
- package/src/hooks/ui/useBreakpoint.tsx +0 -21
- package/src/hooks/ui/useCustomScrollbar.module.scss +0 -20
- package/src/hooks/ui/useCustomScrollbar.tsx +0 -22
- package/src/hooks/ui/useEffectIf.ts +0 -11
- package/src/hooks/ui/useMouseHover.tsx +0 -26
- package/src/hooks/ui/usePaginationControls.module.scss +0 -16
- package/src/hooks/ui/usePaginationControls.tsx +0 -176
- package/src/hooks/ui/useSnapToViewport.module.scss +0 -6
- package/src/hooks/ui/useSnapToViewport.ts +0 -28
- package/src/hooks/ui/useTilt.tsx +0 -219
- package/src/hooks/ui/useZoomable.module.scss +0 -34
- package/src/hooks/ui/useZoomable.tsx +0 -144
- package/src/hooks/useAsyncControl.ai.md +0 -25
- package/src/hooks/useAsyncControl.ts +0 -101
- package/src/hooks/useContainedRepositioning.ts +0 -110
- package/src/hooks/useCustomHistory.ts +0 -14
- package/src/hooks/useElementFit.ts +0 -82
- package/src/hooks/useFirestoreWatch.ts +0 -54
- package/src/hooks/useForm.ts +0 -49
- package/src/hooks/useFreeze.ts +0 -12
- package/src/hooks/useHero.module.scss +0 -41
- package/src/hooks/useHero.ts +0 -512
- package/src/hooks/useIntersection.ts +0 -32
- package/src/hooks/useMergeRefs.ts +0 -29
- package/src/hooks/useObserve.ts +0 -24
- package/src/hooks/usePagination.ts +0 -228
- package/src/hooks/usePooledOperation.ts +0 -54
- package/src/hooks/usePooling.ts +0 -46
- package/src/hooks/useRebound.ts +0 -23
- package/src/hooks/useShortIntl.ai.md +0 -5
- package/src/hooks/useShortIntl.ts +0 -97
- package/src/hooks/utility/useAsyncMemo.ts +0 -43
- package/src/hooks/utility/useDepChange.ts +0 -11
- package/src/hooks/utility/useEvents.ts +0 -33
- package/src/hooks/utility/useImmediate.ts +0 -8
- package/src/hooks/utility/useManualInit.ts +0 -24
- package/src/hooks/utility/useModule.ts +0 -15
- package/src/hooks/utility/useQuery.ts +0 -15
- package/src/hooks/utility/useUniqueEffect.ts +0 -22
- package/src/index.preprocess.ts +0 -82
- package/src/index.ts +0 -229
- package/src/models/DebugLogger.ts +0 -7
- package/src/models/GenericContract.ts +0 -169
- package/src/models/Orbs.ts +0 -97
- package/src/reac-app-env.d.ts +0 -6
- package/src/storybook/assets/video/txt-reversed.mp4 +0 -0
- package/src/storybookUtils/index.tsx +0 -53
- package/src/test.tsx +0 -0
- package/src/type-utils.ts +0 -49
- package/src/types.ts +0 -199
- package/src/utility.d.ts +0 -70
- package/src/utils/blockchain.ts +0 -43
- package/src/utils/e2e.ts +0 -55
- package/src/utils/flatten.ts +0 -17
- package/src/utils/formatters.ts +0 -36
- package/src/utils/html.utils.ts +0 -3
- package/src/utils/ownEvent.ts +0 -8
- package/src/utils/test.ts +0 -20
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
@use 'sass:math';
|
|
2
|
-
@import "../../assets/styles/index.scss";
|
|
3
|
-
|
|
4
|
-
$slice: math.div(1, 7);
|
|
5
|
-
|
|
6
|
-
.container {
|
|
7
|
-
box-sizing: content-box;
|
|
8
|
-
cursor: pointer;
|
|
9
|
-
width: 1em;
|
|
10
|
-
height: 1em;
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
align-items: center;
|
|
14
|
-
justify-content: space-evenly;
|
|
15
|
-
background-size: 0 0;
|
|
16
|
-
background-repeat: no-repeat;
|
|
17
|
-
transition: transform 250ms;
|
|
18
|
-
transition-timing-function: ease-in-out;
|
|
19
|
-
&:active {
|
|
20
|
-
transform: scale(0.9);
|
|
21
|
-
}
|
|
22
|
-
> * {
|
|
23
|
-
position: relative;
|
|
24
|
-
flex-shrink: 0;
|
|
25
|
-
box-sizing: border-box;
|
|
26
|
-
width: 0.8em;
|
|
27
|
-
height: #{$slice}em;
|
|
28
|
-
border-radius: #{math.div($slice, 2)}em;
|
|
29
|
-
transition: transform $veryFast, width $veryFast, height $veryFast,
|
|
30
|
-
border-width $veryFast, background-color $veryFast,
|
|
31
|
-
border-radius $veryFast, top $veryFast;
|
|
32
|
-
background: var(--mutable-hamburger-background, $digitalBlue);
|
|
33
|
-
background-size: 1em 1em;
|
|
34
|
-
background-repeat: no-repeat;
|
|
35
|
-
border: 0em solid #0000;
|
|
36
|
-
top: 0px;
|
|
37
|
-
&:nth-child(1) {
|
|
38
|
-
border-top-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
39
|
-
}
|
|
40
|
-
&:nth-child(2) {
|
|
41
|
-
border-right-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
42
|
-
}
|
|
43
|
-
&:nth-child(3) {
|
|
44
|
-
border-bottom-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
45
|
-
border-left-color: var(--mutable-hamburger-background, $digitalBlue);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
& > * {
|
|
49
|
-
background-position-x: -0.1em;
|
|
50
|
-
}
|
|
51
|
-
& > :nth-child(1) {
|
|
52
|
-
background-position-y: #{$slice * -1}em;
|
|
53
|
-
}
|
|
54
|
-
& > :nth-child(2) {
|
|
55
|
-
background-position-y: #{$slice * -3}em;
|
|
56
|
-
}
|
|
57
|
-
& > :nth-child(3) {
|
|
58
|
-
background-position-y: #{$slice * -5}em;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
&.closed {
|
|
62
|
-
> :nth-child(1) {
|
|
63
|
-
transform: translateY(#{$slice * 2}em) rotateZ(-45deg);
|
|
64
|
-
}
|
|
65
|
-
> :nth-child(2) {
|
|
66
|
-
transform: rotateZ(45deg);
|
|
67
|
-
}
|
|
68
|
-
> :nth-child(3) {
|
|
69
|
-
transform: translateY(-#{$slice * 2}em) rotateZ(-45deg);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&.arrow-up {
|
|
74
|
-
> * {
|
|
75
|
-
width: 0.4em;
|
|
76
|
-
}
|
|
77
|
-
> :nth-child(1) {
|
|
78
|
-
transform: translateX(0.1em) translateY(#{$slice * 2}em) rotateZ(45deg);
|
|
79
|
-
}
|
|
80
|
-
> :nth-child(2) {
|
|
81
|
-
transform: translateX(0.1em) rotateZ(45deg);
|
|
82
|
-
}
|
|
83
|
-
> :nth-child(3) {
|
|
84
|
-
transform: translateX(-0.1em) translateY(-#{$slice * 2}em) rotateZ(-45deg);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
&.arrow-down {
|
|
89
|
-
> * {
|
|
90
|
-
width: 0.4em;
|
|
91
|
-
}
|
|
92
|
-
> :nth-child(1) {
|
|
93
|
-
transform: translateX(0.1em) translateY(#{$slice * 2}em) rotateZ(-45deg);
|
|
94
|
-
}
|
|
95
|
-
> :nth-child(2) {
|
|
96
|
-
transform: translateX(0.1em) rotateZ(-45deg);
|
|
97
|
-
}
|
|
98
|
-
> :nth-child(3) {
|
|
99
|
-
transform: translateX(-0.1em) translateY(-#{$slice * 2}em) rotateZ(45deg);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
&.search {
|
|
104
|
-
> :nth-child(1) {
|
|
105
|
-
$rate: 1.8;
|
|
106
|
-
width: #{$slice * $rate + math.div($slice, 1.35)}em;
|
|
107
|
-
height: #{$slice * $rate + math.div($slice, 1.35)}em;
|
|
108
|
-
border-radius: #{$slice * $rate * 2}em;
|
|
109
|
-
background-color: transparent;
|
|
110
|
-
border: #{math.div($slice, 1.35)}em solid
|
|
111
|
-
var(--mutable-hamburger-background, $digitalBlue);
|
|
112
|
-
transform: translateX(-0.15em);
|
|
113
|
-
}
|
|
114
|
-
> :nth-child(2) {
|
|
115
|
-
transform: translateX(0.12em) translateY(-0.05em) rotateZ(45deg);
|
|
116
|
-
height: #{math.div($slice, 1.35)}em;
|
|
117
|
-
width: 0.55em;
|
|
118
|
-
}
|
|
119
|
-
> :nth-child(3) {
|
|
120
|
-
transform: translateX(0.12em) translateY(-#{($slice * 1.3) + 0.085}em)
|
|
121
|
-
rotateZ(45deg);
|
|
122
|
-
height: #{math.div($slice, 1.35)}em;
|
|
123
|
-
width: 0.55em;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
&.checkmark {
|
|
128
|
-
> :nth-child(1) {
|
|
129
|
-
transform: translateY(#{$slice * 2}em) translateX(-0.178em)
|
|
130
|
-
translateY(0.13em) rotate(45deg);
|
|
131
|
-
height: #{$slice}em;
|
|
132
|
-
width: 0.45em;
|
|
133
|
-
}
|
|
134
|
-
> :nth-child(2) {
|
|
135
|
-
height: #{$slice}em;
|
|
136
|
-
width: 0.7em;
|
|
137
|
-
transform: translateX(0.1em) rotate(-55deg);
|
|
138
|
-
}
|
|
139
|
-
> :nth-child(3) {
|
|
140
|
-
transform: translateY(-#{$slice * 2}em) translateX(0.1em) rotate(-55deg);
|
|
141
|
-
height: #{$slice}em;
|
|
142
|
-
width: 0.7em;
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&.loading {
|
|
147
|
-
$slice: math.div(1, 6);
|
|
148
|
-
@keyframes rotate {
|
|
149
|
-
0% {
|
|
150
|
-
transform: rotate(0deg);
|
|
151
|
-
}
|
|
152
|
-
100% {
|
|
153
|
-
transform: rotate(360deg);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
animation-name: rotate;
|
|
157
|
-
animation-duration: 1s;
|
|
158
|
-
animation-delay: $veryFast;
|
|
159
|
-
animation-iteration-count: infinite;
|
|
160
|
-
animation-timing-function: linear;
|
|
161
|
-
> * {
|
|
162
|
-
background-color: #0000;
|
|
163
|
-
width: #{$slice * 4.5}em;
|
|
164
|
-
height: #{$slice * 4.5}em;
|
|
165
|
-
border-radius: #{$slice * 4.5}em;
|
|
166
|
-
border-width: #{$slice}em;
|
|
167
|
-
}
|
|
168
|
-
> :nth-child(1) {
|
|
169
|
-
top: (#{$slice * 4.5}em);
|
|
170
|
-
}
|
|
171
|
-
> :nth-child(2) {
|
|
172
|
-
transform: rotateZ(-5deg);
|
|
173
|
-
}
|
|
174
|
-
> :nth-child(3) {
|
|
175
|
-
transform: rotateZ(-95deg);
|
|
176
|
-
top: (-#{$slice * 4.5}em);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
&.pencil {
|
|
180
|
-
perspective: 600px;
|
|
181
|
-
|
|
182
|
-
> :nth-child(1) {
|
|
183
|
-
height: #{$slice}em;
|
|
184
|
-
width: 0.15em;
|
|
185
|
-
transform: translateX(0.3em) rotate(-45deg);
|
|
186
|
-
border-bottom-left-radius: 0;
|
|
187
|
-
border-top-left-radius: 0;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
> :nth-child(2) {
|
|
191
|
-
width: 0.6em;
|
|
192
|
-
transform: rotate(-45deg);
|
|
193
|
-
border-radius: 0;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
> :nth-child(3) {
|
|
197
|
-
$slice: $slice * 0.6;
|
|
198
|
-
|
|
199
|
-
height: 0em;
|
|
200
|
-
width: 0em;
|
|
201
|
-
border-radius: 0;
|
|
202
|
-
transform: translateX(-0.27em) translateY(0.027em) rotate(-80deg)
|
|
203
|
-
rotateY(45deg) skew(12deg, 12deg);
|
|
204
|
-
|
|
205
|
-
border-left: #{$slice}em solid transparent;
|
|
206
|
-
border-right: #{$slice}em solid transparent;
|
|
207
|
-
border-bottom: 0em solid transparent;
|
|
208
|
-
border-top: #{$slice}em solid;
|
|
209
|
-
background-color: transparent;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
&.hamburger {
|
|
213
|
-
> :nth-child(1) {
|
|
214
|
-
width: 0.7em;
|
|
215
|
-
}
|
|
216
|
-
> :nth-child(3) {
|
|
217
|
-
width: 0.7em;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import Styles from "./MutableHamburgerButton.module.scss";
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* A hamburger button that mutates according to it's state
|
|
6
|
-
**/
|
|
7
|
-
export default function MutableHamburgerButton({
|
|
8
|
-
state = "default",
|
|
9
|
-
size,
|
|
10
|
-
className = "",
|
|
11
|
-
...props
|
|
12
|
-
}: {
|
|
13
|
-
state?:
|
|
14
|
-
| "default"
|
|
15
|
-
| "closed"
|
|
16
|
-
| "arrow-up"
|
|
17
|
-
| "arrow-down"
|
|
18
|
-
| "search"
|
|
19
|
-
| "loading"
|
|
20
|
-
| "checkmark"
|
|
21
|
-
| "pencil"
|
|
22
|
-
| "hamburger";
|
|
23
|
-
size: number;
|
|
24
|
-
} & React.HTMLProps<HTMLDivElement>) {
|
|
25
|
-
const stateClass = state in Styles ? Styles[state] : "";
|
|
26
|
-
|
|
27
|
-
return (
|
|
28
|
-
<div
|
|
29
|
-
{...props}
|
|
30
|
-
className={`${Styles.container} ${stateClass} ${className}`}
|
|
31
|
-
style={{ fontSize: `${size}px` }}
|
|
32
|
-
>
|
|
33
|
-
<div />
|
|
34
|
-
<div />
|
|
35
|
-
<div />
|
|
36
|
-
</div>
|
|
37
|
-
);
|
|
38
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
@import "../../assets/styles/variables.scss";
|
|
2
|
-
|
|
3
|
-
.container {
|
|
4
|
-
animation-fill-mode: forwards;
|
|
5
|
-
animation-duration: $fast;
|
|
6
|
-
animation-name: expand;
|
|
7
|
-
width: auto;
|
|
8
|
-
min-width: 250px;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.success {
|
|
12
|
-
background-color: $success;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@keyframes expand {
|
|
16
|
-
0% {
|
|
17
|
-
padding: 0px 12px;
|
|
18
|
-
max-height: 0%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
100% {
|
|
22
|
-
padding: 12px 12px;
|
|
23
|
-
max-height: 100%;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from "react";
|
|
2
|
-
import Card from "../Card";
|
|
3
|
-
import Styles from "./Notification.module.scss";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* A layout for the notification card
|
|
7
|
-
**/
|
|
8
|
-
export default function Notification({
|
|
9
|
-
type,
|
|
10
|
-
children
|
|
11
|
-
}: PropsWithChildren<{ type: "success" }>) {
|
|
12
|
-
return <Card className={`${Styles.container} ${Styles[type]}`}>{children}</Card>;
|
|
13
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
$baseSpeed: 300ms;
|
|
2
|
-
$fast: var(--orderable-list--speed);
|
|
3
|
-
|
|
4
|
-
.unselectable * {
|
|
5
|
-
-webkit-touch-callout: none;
|
|
6
|
-
-webkit-user-select: none;
|
|
7
|
-
-khtml-user-select: none;
|
|
8
|
-
-moz-user-select: none;
|
|
9
|
-
-ms-user-select: none;
|
|
10
|
-
user-select: none;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.clone {
|
|
14
|
-
--orderable-list--speed: #{$baseSpeed};
|
|
15
|
-
transition: max-height $fast linear;
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
position: fixed;
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ordering {
|
|
22
|
-
> * {
|
|
23
|
-
opacity: 0;
|
|
24
|
-
}
|
|
25
|
-
.visible {
|
|
26
|
-
opacity: 1;
|
|
27
|
-
* {
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.shrinkable.ordering section.visible,
|
|
34
|
-
.shrinkable.ordering section.currentOrdering {
|
|
35
|
-
max-height: var(--shrink-to) !important;
|
|
36
|
-
}
|
|
37
|
-
.shrinkable.ordering > section:not(.visible):not(.currentOrdering) > * {
|
|
38
|
-
max-height: var(--shrink-to) !important;
|
|
39
|
-
}
|
|
40
|
-
.transitionHeight {
|
|
41
|
-
transition: max-height $fast linear;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.root {
|
|
45
|
-
position: relative;
|
|
46
|
-
--orderable-list--speed: #{$baseSpeed};
|
|
47
|
-
transition: padding-top $fast linear;
|
|
48
|
-
> * {
|
|
49
|
-
transition: max-height $fast linear;
|
|
50
|
-
overflow: hidden;
|
|
51
|
-
> * > * {
|
|
52
|
-
flex-shrink: 0;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&::before {
|
|
57
|
-
position: absolute;
|
|
58
|
-
height: 100%;
|
|
59
|
-
width: 100%;
|
|
60
|
-
content: " ";
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.transition {
|
|
65
|
-
width: 100%;
|
|
66
|
-
align-items: flex-start !important;
|
|
67
|
-
overflow: visible !important;
|
|
68
|
-
> * {
|
|
69
|
-
flex-direction: row !important;
|
|
70
|
-
flex-wrap: wrap;
|
|
71
|
-
// &:first-child {
|
|
72
|
-
// visibility: hidden;
|
|
73
|
-
// }
|
|
74
|
-
&:last-child {
|
|
75
|
-
visibility: visible;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
div.stub {
|
|
81
|
-
animation-name: stub;
|
|
82
|
-
position: absolute;
|
|
83
|
-
pointer-events: none;
|
|
84
|
-
opacity: 0 !important;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
div.stubEntering {
|
|
88
|
-
animation-name: stub;
|
|
89
|
-
z-index: -1;
|
|
90
|
-
}
|
|
91
|
-
@keyframes stub {
|
|
92
|
-
0% {
|
|
93
|
-
opacity: 1;
|
|
94
|
-
}
|
|
95
|
-
100% {
|
|
96
|
-
opacity: 1;
|
|
97
|
-
}
|
|
98
|
-
}
|