@flux-ui/components 3.0.0-next.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/README.md +45 -0
- package/package.json +77 -0
- package/src/component/FluxAction.vue +27 -0
- package/src/component/FluxActionBar.vue +94 -0
- package/src/component/FluxActionPane.vue +40 -0
- package/src/component/FluxActions.vue +27 -0
- package/src/component/FluxAlert.vue +37 -0
- package/src/component/FluxAnimatedColors.vue +141 -0
- package/src/component/FluxAspectRatio.vue +21 -0
- package/src/component/FluxAutoGrid.vue +27 -0
- package/src/component/FluxAvatar.vue +119 -0
- package/src/component/FluxBadge.vue +84 -0
- package/src/component/FluxBadgeStack.vue +18 -0
- package/src/component/FluxBorderShine.vue +36 -0
- package/src/component/FluxBoxedIcon.vue +36 -0
- package/src/component/FluxButton.vue +110 -0
- package/src/component/FluxButtonGroup.vue +15 -0
- package/src/component/FluxButtonStack.vue +28 -0
- package/src/component/FluxCalendar.vue +254 -0
- package/src/component/FluxCalendarEvent.vue +41 -0
- package/src/component/FluxCheckbox.vue +60 -0
- package/src/component/FluxChip.vue +57 -0
- package/src/component/FluxClickablePane.vue +61 -0
- package/src/component/FluxColorPicker.vue +265 -0
- package/src/component/FluxColorSelect.vue +81 -0
- package/src/component/FluxComment.vue +71 -0
- package/src/component/FluxConfirm.vue +42 -0
- package/src/component/FluxContainer.vue +23 -0
- package/src/component/FluxDataTable.vue +96 -0
- package/src/component/FluxDatePicker.vue +353 -0
- package/src/component/FluxDestructiveButton.vue +28 -0
- package/src/component/FluxDisabled.vue +22 -0
- package/src/component/FluxDivider.vue +37 -0
- package/src/component/FluxDotPattern.vue +72 -0
- package/src/component/FluxDropZone.vue +202 -0
- package/src/component/FluxDynamicView.vue +16 -0
- package/src/component/FluxExpandable.vue +119 -0
- package/src/component/FluxExpandableGroup.vue +53 -0
- package/src/component/FluxFader.vue +64 -0
- package/src/component/FluxFaderItem.vue +15 -0
- package/src/component/FluxFilter.vue +133 -0
- package/src/component/FluxFilterDate.vue +58 -0
- package/src/component/FluxFilterDateRange.vue +59 -0
- package/src/component/FluxFilterOption.vue +49 -0
- package/src/component/FluxFilterOptionAsync.vue +103 -0
- package/src/component/FluxFilterOptions.vue +62 -0
- package/src/component/FluxFilterOptionsAsync.vue +113 -0
- package/src/component/FluxFilterRange.vue +91 -0
- package/src/component/FluxFlickeringGrid.vue +141 -0
- package/src/component/FluxFlyout.vue +205 -0
- package/src/component/FluxFocalPointEditor.vue +137 -0
- package/src/component/FluxFocalPointImage.vue +29 -0
- package/src/component/FluxForm.vue +35 -0
- package/src/component/FluxFormColumn.vue +15 -0
- package/src/component/FluxFormDateInput.vue +92 -0
- package/src/component/FluxFormDateRangeInput.vue +87 -0
- package/src/component/FluxFormDateTimeInput.vue +120 -0
- package/src/component/FluxFormField.vue +98 -0
- package/src/component/FluxFormFieldAddition.vue +37 -0
- package/src/component/FluxFormInput.vue +223 -0
- package/src/component/FluxFormInputAddition.vue +31 -0
- package/src/component/FluxFormInputGroup.vue +25 -0
- package/src/component/FluxFormPinInput.vue +135 -0
- package/src/component/FluxFormRangeSlider.vue +179 -0
- package/src/component/FluxFormRow.vue +15 -0
- package/src/component/FluxFormSection.vue +23 -0
- package/src/component/FluxFormSelect.vue +59 -0
- package/src/component/FluxFormSelectAsync.vue +118 -0
- package/src/component/FluxFormSlider.vue +123 -0
- package/src/component/FluxFormTextArea.vue +53 -0
- package/src/component/FluxFormTimeZonePicker.vue +713 -0
- package/src/component/FluxGallery.vue +99 -0
- package/src/component/FluxGalleryItem.vue +49 -0
- package/src/component/FluxGrid.vue +28 -0
- package/src/component/FluxGridColumn.vue +31 -0
- package/src/component/FluxGridPattern.vue +60 -0
- package/src/component/FluxIcon.vue +79 -0
- package/src/component/FluxInfo.vue +28 -0
- package/src/component/FluxInfoStack.vue +17 -0
- package/src/component/FluxLegend.vue +27 -0
- package/src/component/FluxLink.vue +35 -0
- package/src/component/FluxMenu.vue +31 -0
- package/src/component/FluxMenuGroup.vue +21 -0
- package/src/component/FluxMenuItem.vue +84 -0
- package/src/component/FluxMenuOptions.vue +38 -0
- package/src/component/FluxMenuSubHeader.vue +33 -0
- package/src/component/FluxMenuTitle.vue +17 -0
- package/src/component/FluxNotice.vue +79 -0
- package/src/component/FluxNoticeStack.vue +17 -0
- package/src/component/FluxOverlay.vue +31 -0
- package/src/component/FluxPagination.vue +148 -0
- package/src/component/FluxPaginationBar.vue +81 -0
- package/src/component/FluxPane.vue +45 -0
- package/src/component/FluxPaneBody.vue +15 -0
- package/src/component/FluxPaneDeck.vue +24 -0
- package/src/component/FluxPaneFooter.vue +15 -0
- package/src/component/FluxPaneGroup.vue +15 -0
- package/src/component/FluxPaneHeader.vue +44 -0
- package/src/component/FluxPaneIllustration.vue +68 -0
- package/src/component/FluxPaneMedia.vue +31 -0
- package/src/component/FluxPercentageBar.vue +45 -0
- package/src/component/FluxPersona.vue +48 -0
- package/src/component/FluxPlaceholder.vue +56 -0
- package/src/component/FluxPressable.vue +77 -0
- package/src/component/FluxPrimaryButton.vue +28 -0
- package/src/component/FluxProgressBar.vue +75 -0
- package/src/component/FluxPrompt.vue +77 -0
- package/src/component/FluxPublishButton.vue +59 -0
- package/src/component/FluxQuantitySelector.vue +109 -0
- package/src/component/FluxRemove.vue +34 -0
- package/src/component/FluxRoot.vue +60 -0
- package/src/component/FluxSecondaryButton.vue +28 -0
- package/src/component/FluxSegmentedControl.vue +77 -0
- package/src/component/FluxSegmentedView.vue +15 -0
- package/src/component/FluxSeparator.vue +19 -0
- package/src/component/FluxSlideOver.vue +25 -0
- package/src/component/FluxSnackbar.vue +154 -0
- package/src/component/FluxSnackbarProvider.vue +34 -0
- package/src/component/FluxSpacer.vue +9 -0
- package/src/component/FluxSpacing.vue +32 -0
- package/src/component/FluxSpinner.vue +48 -0
- package/src/component/FluxSplitButton.vue +61 -0
- package/src/component/FluxStack.vue +40 -0
- package/src/component/FluxStatistic.vue +68 -0
- package/src/component/FluxStepper.vue +69 -0
- package/src/component/FluxStepperStep.vue +15 -0
- package/src/component/FluxStepperSteps.vue +62 -0
- package/src/component/FluxTab.vue +23 -0
- package/src/component/FluxTabBar.vue +87 -0
- package/src/component/FluxTabBarItem.vue +104 -0
- package/src/component/FluxTable.vue +68 -0
- package/src/component/FluxTableActions.vue +16 -0
- package/src/component/FluxTableCell.vue +47 -0
- package/src/component/FluxTableHeader.vue +111 -0
- package/src/component/FluxTableRow.vue +15 -0
- package/src/component/FluxTabs.vue +91 -0
- package/src/component/FluxTag.vue +85 -0
- package/src/component/FluxTagStack.vue +18 -0
- package/src/component/FluxTicks.vue +44 -0
- package/src/component/FluxTimeline.vue +17 -0
- package/src/component/FluxTimelineItem.vue +73 -0
- package/src/component/FluxToggle.vue +64 -0
- package/src/component/FluxToolbar.vue +32 -0
- package/src/component/FluxToolbarGroup.vue +18 -0
- package/src/component/FluxTooltip.vue +56 -0
- package/src/component/FluxTooltipProvider.vue +176 -0
- package/src/component/FluxWindow.vue +47 -0
- package/src/component/index.ts +142 -0
- package/src/component/primitive/Anchor.vue +17 -0
- package/src/component/primitive/AnchorPopup.vue +194 -0
- package/src/component/primitive/CoordinatePicker.vue +155 -0
- package/src/component/primitive/CoordinatePickerThumb.vue +71 -0
- package/src/component/primitive/FilterItem.vue +44 -0
- package/src/component/primitive/FilterMenuRenderer.ts +233 -0
- package/src/component/primitive/FilterOptionBase.vue +67 -0
- package/src/component/primitive/SelectBase.vue +340 -0
- package/src/component/primitive/SliderBase.vue +89 -0
- package/src/component/primitive/SliderThumb.vue +64 -0
- package/src/component/primitive/SliderTrack.vue +22 -0
- package/src/component/primitive/VNodeRenderer.ts +11 -0
- package/src/component/primitive/index.ts +10 -0
- package/src/composable/index.ts +9 -0
- package/src/composable/private/index.ts +3 -0
- package/src/composable/private/useFormSelect.ts +66 -0
- package/src/composable/private/useLoaded.ts +21 -0
- package/src/composable/private/useTranslate.ts +35 -0
- package/src/composable/useBreakpoints.ts +54 -0
- package/src/composable/useDisabled.ts +9 -0
- package/src/composable/useDisabledInjection.ts +6 -0
- package/src/composable/useExpandableGroupInjection.ts +10 -0
- package/src/composable/useFilterInjection.ts +22 -0
- package/src/composable/useFlyoutInjection.ts +10 -0
- package/src/composable/useFormFieldInjection.ts +8 -0
- package/src/composable/useTableInjection.ts +11 -0
- package/src/css/base.scss +33 -0
- package/src/css/component/Action.module.scss +107 -0
- package/src/css/component/Avatar.module.scss +177 -0
- package/src/css/component/Badge.module.scss +189 -0
- package/src/css/component/Button.module.scss +293 -0
- package/src/css/component/Calendar.module.scss +171 -0
- package/src/css/component/Chip.module.scss +58 -0
- package/src/css/component/Color.module.scss +184 -0
- package/src/css/component/Comment.module.scss +123 -0
- package/src/css/component/DatePicker.module.scss +193 -0
- package/src/css/component/Divider.module.scss +79 -0
- package/src/css/component/DropZone.module.scss +99 -0
- package/src/css/component/Expandable.module.scss +112 -0
- package/src/css/component/Fader.module.scss +38 -0
- package/src/css/component/Filter.module.scss +80 -0
- package/src/css/component/Flyout.module.scss +63 -0
- package/src/css/component/FocalPoint.module.scss +84 -0
- package/src/css/component/Form.module.scss +812 -0
- package/src/css/component/Gallery.module.scss +64 -0
- package/src/css/component/Grid.module.scss +24 -0
- package/src/css/component/Icon.module.scss +104 -0
- package/src/css/component/Info.module.scss +15 -0
- package/src/css/component/Layout.module.scss +63 -0
- package/src/css/component/Legend.module.scss +32 -0
- package/src/css/component/Menu.module.scss +314 -0
- package/src/css/component/Notice.module.scss +279 -0
- package/src/css/component/Overlay.module.scss +149 -0
- package/src/css/component/Pagination.module.scss +59 -0
- package/src/css/component/Pane.module.scss +218 -0
- package/src/css/component/PercentageBar.module.scss +31 -0
- package/src/css/component/Placeholder.module.scss +72 -0
- package/src/css/component/Progress.module.scss +84 -0
- package/src/css/component/Remove.module.scss +29 -0
- package/src/css/component/Root.module.scss +8 -0
- package/src/css/component/SegmentedControl.module.scss +82 -0
- package/src/css/component/Snackbar.module.scss +227 -0
- package/src/css/component/Spinner.module.scss +36 -0
- package/src/css/component/Statistic.module.scss +118 -0
- package/src/css/component/Stepper.module.scss +103 -0
- package/src/css/component/Tab.module.scss +162 -0
- package/src/css/component/Table.module.scss +164 -0
- package/src/css/component/Timeline.module.scss +173 -0
- package/src/css/component/Toolbar.module.scss +82 -0
- package/src/css/component/Tooltip.module.scss +62 -0
- package/src/css/component/Transition.module.scss +142 -0
- package/src/css/component/Visual.module.scss +70 -0
- package/src/css/component/base/Button.module.scss +87 -0
- package/src/css/component/base/Effect.module.scss +139 -0
- package/src/css/component/base/Grid.module.scss +8 -0
- package/src/css/component/base/Pane.module.scss +54 -0
- package/src/css/component/primitive/CoordinatePicker.module.scss +24 -0
- package/src/css/component/primitive/Slider.module.scss +116 -0
- package/src/css/index.scss +5 -0
- package/src/css/layers.scss +1 -0
- package/src/css/mixin/breakpoints.scss +112 -0
- package/src/css/mixin/focus-ring.scss +56 -0
- package/src/css/mixin/hover.scss +7 -0
- package/src/css/mixin/index.scss +3 -0
- package/src/css/reset.scss +169 -0
- package/src/css/typography.scss +87 -0
- package/src/css/variables.scss +214 -0
- package/src/data/di.ts +42 -0
- package/src/data/filter.ts +9 -0
- package/src/data/helper.ts +9 -0
- package/src/data/i18n.ts +55 -0
- package/src/data/iconRegistry.ts +21 -0
- package/src/data/index.ts +8 -0
- package/src/data/inputMask.ts +34 -0
- package/src/data/store.ts +233 -0
- package/src/image/avatar-mask.svg +3 -0
- package/src/index.ts +25 -0
- package/src/transition/FluxAutoHeightTransition.vue +59 -0
- package/src/transition/FluxAutoWidthTransition.vue +59 -0
- package/src/transition/FluxBreakthroughTransition.vue +23 -0
- package/src/transition/FluxFadeTransition.vue +24 -0
- package/src/transition/FluxOverlayTransition.vue +22 -0
- package/src/transition/FluxRouteTransition.vue +23 -0
- package/src/transition/FluxSlideOverTransition.vue +22 -0
- package/src/transition/FluxTooltipTransition.vue +22 -0
- package/src/transition/FluxVerticalWindowTransition.vue +23 -0
- package/src/transition/FluxWindowTransition.vue +23 -0
- package/src/transition/index.ts +10 -0
- package/src/util/createDialogRenderer.ts +64 -0
- package/src/util/createLabelForDateRange.ts +61 -0
- package/src/util/index.ts +2 -0
- package/src/vite.d.ts +13 -0
- package/tsconfig.json +45 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.tooltip {
|
|
2
|
+
position: fixed;
|
|
3
|
+
display: flex;
|
|
4
|
+
top: 0;
|
|
5
|
+
left: 0;
|
|
6
|
+
max-width: 360px;
|
|
7
|
+
padding: 9px 15px;
|
|
8
|
+
flex-flow: column;
|
|
9
|
+
background: rgb(var(--gray-11) / .9);
|
|
10
|
+
backdrop-filter: blur(6px) saturate(180%);
|
|
11
|
+
border-radius: var(--radius);
|
|
12
|
+
color: rgb(var(--gray-0));
|
|
13
|
+
font-variant-numeric: tabular-nums;
|
|
14
|
+
pointer-events: none;
|
|
15
|
+
translate: calc(var(--x) * 1px) calc(var(--y) * 1px);
|
|
16
|
+
z-index: 100000;
|
|
17
|
+
|
|
18
|
+
&::after {
|
|
19
|
+
position: absolute;
|
|
20
|
+
display: block;
|
|
21
|
+
top: var(--arrowY);
|
|
22
|
+
left: var(--arrowX);
|
|
23
|
+
height: 9px;
|
|
24
|
+
width: 9px;
|
|
25
|
+
content: '';
|
|
26
|
+
background: inherit;
|
|
27
|
+
border-radius: 0 0 3px 0;
|
|
28
|
+
clip-path: polygon(100% 100%, 99% 0%, 0% 99%);
|
|
29
|
+
rotate: var(--arrowAngle);
|
|
30
|
+
transform-origin: center;
|
|
31
|
+
translate: -50% -50%;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
[dark] .tooltip {
|
|
36
|
+
background: rgb(0 0 0 / .9);
|
|
37
|
+
color: white;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.tooltipAbove {
|
|
41
|
+
composes: tooltip;
|
|
42
|
+
|
|
43
|
+
transform-origin: bottom center;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.tooltipBelow {
|
|
47
|
+
composes: tooltip;
|
|
48
|
+
|
|
49
|
+
transform-origin: top center;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tooltipEnd {
|
|
53
|
+
composes: tooltip;
|
|
54
|
+
|
|
55
|
+
transform-origin: center left;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tooltipStart {
|
|
59
|
+
composes: tooltip;
|
|
60
|
+
|
|
61
|
+
transform-origin: center right;
|
|
62
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
.breakthroughTransitionEnterActive,
|
|
2
|
+
.breakthroughTransitionBackEnterActive,
|
|
3
|
+
.breakthroughTransitionLeaveActive,
|
|
4
|
+
.breakthroughTransitionBackLeaveActive {
|
|
5
|
+
transform-origin: top center;
|
|
6
|
+
transition-property: opacity, scale, translate;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.breakthroughTransitionEnterActive,
|
|
10
|
+
.breakthroughTransitionBackEnterActive {
|
|
11
|
+
transition-duration: 180ms;
|
|
12
|
+
transition-timing-function: var(--deceleration-curve);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.breakthroughTransitionLeaveActive,
|
|
16
|
+
.breakthroughTransitionBackLeaveActive {
|
|
17
|
+
transition-duration: 120ms;
|
|
18
|
+
transition-timing-function: var(--acceleration-curve);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.breakthroughTransitionEnterFrom,
|
|
22
|
+
.breakthroughTransitionBackLeaveTo {
|
|
23
|
+
opacity: 0;
|
|
24
|
+
scale: .975;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.breakthroughTransitionLeaveTo,
|
|
28
|
+
.breakthroughTransitionBackEnterFrom {
|
|
29
|
+
opacity: 0;
|
|
30
|
+
scale: 1.025;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.fadeTransitionEnterActive,
|
|
34
|
+
.fadeTransitionLeaveActive {
|
|
35
|
+
transition: opacity 150ms var(--swift-out) !important;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.fadeTransitionEnterFrom,
|
|
39
|
+
.fadeTransitionLeaveTo {
|
|
40
|
+
opacity: 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.fadeTransitionEnterTo,
|
|
44
|
+
.fadeTransitionLeaveFrom {
|
|
45
|
+
opacity: 1;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.routeTransitionEnterActive,
|
|
49
|
+
.routeTransitionBackEnterActive,
|
|
50
|
+
.routeTransitionLeaveActive,
|
|
51
|
+
.routeTransitionBackLeaveActive {
|
|
52
|
+
transform-origin: center 50dvh;
|
|
53
|
+
transition-property: opacity, scale;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.routeTransitionEnterActive,
|
|
57
|
+
.routeTransitionBackEnterActive {
|
|
58
|
+
transition-duration: 180ms;
|
|
59
|
+
transition-timing-function: var(--deceleration-curve);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.routeTransitionLeaveActive,
|
|
63
|
+
.routeTransitionBackLeaveActive {
|
|
64
|
+
transition-duration: 120ms;
|
|
65
|
+
transition-timing-function: var(--acceleration-curve);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.routeTransitionEnterFrom,
|
|
69
|
+
.routeTransitionBackLeaveTo {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
scale: .975;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.routeTransitionLeaveTo,
|
|
75
|
+
.routeTransitionBackEnterFrom {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
scale: .975;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tooltipTransitionEnterActive,
|
|
81
|
+
.tooltipTransitionLeaveActive {
|
|
82
|
+
transition: 210ms var(--swift-out);
|
|
83
|
+
transition-property: opacity, scale;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.tooltipTransitionEnterFrom {
|
|
87
|
+
scale: .975;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.tooltipTransitionEnterFrom,
|
|
91
|
+
.tooltipTransitionLeaveTo {
|
|
92
|
+
opacity: 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.verticalWindowTransitionEnterActive,
|
|
96
|
+
.verticalWindowTransitionBackEnterActive {
|
|
97
|
+
contain: paint;
|
|
98
|
+
transition: 150ms var(--deceleration-curve);
|
|
99
|
+
transition-property: opacity, transform;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.verticalWindowTransitionLeaveActive,
|
|
103
|
+
.verticalWindowTransitionBackLeaveActive {
|
|
104
|
+
transition: 150ms var(--acceleration-curve);
|
|
105
|
+
transition-property: opacity, transform;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.verticalWindowTransitionBackLeaveTo,
|
|
109
|
+
.verticalWindowTransitionEnterFrom {
|
|
110
|
+
opacity: 0;
|
|
111
|
+
transform: translate3d(0, 15px, 0);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.verticalWindowTransitionBackEnterFrom,
|
|
115
|
+
.verticalWindowTransitionLeaveTo {
|
|
116
|
+
opacity: 0;
|
|
117
|
+
transform: translate3d(0, -15px, 0);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.windowTransitionEnterActive,
|
|
121
|
+
.windowTransitionBackEnterActive {
|
|
122
|
+
transition: 150ms var(--deceleration-curve);
|
|
123
|
+
transition-property: height, opacity, transform;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.windowTransitionLeaveActive,
|
|
127
|
+
.windowTransitionBackLeaveActive {
|
|
128
|
+
transition: 150ms var(--acceleration-curve);
|
|
129
|
+
transition-property: height, opacity, transform;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.windowTransitionBackLeaveTo,
|
|
133
|
+
.windowTransitionEnterFrom {
|
|
134
|
+
opacity: 0;
|
|
135
|
+
transform: translate3d(15px, 0, 0);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.windowTransitionBackEnterFrom,
|
|
139
|
+
.windowTransitionLeaveTo {
|
|
140
|
+
opacity: 0;
|
|
141
|
+
transform: translate3d(-15px, 0, 0);
|
|
142
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
@property --shine-degrees {
|
|
2
|
+
syntax: '<angle>';
|
|
3
|
+
initial-value: 0deg;
|
|
4
|
+
inherits: false;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.fillVisual {
|
|
8
|
+
position: absolute;
|
|
9
|
+
inset: 0;
|
|
10
|
+
width: 100%;
|
|
11
|
+
height: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.animatedColors {
|
|
15
|
+
composes: fillVisual;
|
|
16
|
+
|
|
17
|
+
filter: blur(60px) saturate(180%);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.dotPattern {
|
|
21
|
+
composes: fillVisual;
|
|
22
|
+
|
|
23
|
+
fill: rgb(var(--gray-4));
|
|
24
|
+
pointer-events: none;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.flickeringGrid {
|
|
28
|
+
composes: fillVisual;
|
|
29
|
+
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.gridPattern {
|
|
34
|
+
composes: fillVisual;
|
|
35
|
+
|
|
36
|
+
fill: rgb(var(--gray-2));
|
|
37
|
+
stroke: rgb(var(--gray-4));
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.borderShine {
|
|
42
|
+
position: relative;
|
|
43
|
+
|
|
44
|
+
--shine-radius: var(--radius);
|
|
45
|
+
--shine-mask: linear-gradient(#fff #{0} #{0}) content-box, linear-gradient(#fff #{0} #{0});
|
|
46
|
+
|
|
47
|
+
&::before {
|
|
48
|
+
position: absolute;
|
|
49
|
+
display: block;
|
|
50
|
+
inset: calc(var(--shine-offset) * -1px);
|
|
51
|
+
padding: calc(var(--shine-width) * 1px);
|
|
52
|
+
content: '';
|
|
53
|
+
background: conic-gradient(from var(--shine-degrees), #{var(--shine-colors)});
|
|
54
|
+
border-radius: var(--shine-radius);
|
|
55
|
+
pointer-events: none;
|
|
56
|
+
animation: borderShinePosition calc(var(--shine-duration) * 1s) linear infinite;
|
|
57
|
+
mask: var(--shine-mask);
|
|
58
|
+
-webkit-mask-composite: xor;
|
|
59
|
+
mask-composite: exclude;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@keyframes borderShinePosition {
|
|
64
|
+
from {
|
|
65
|
+
--shine-degrees: 0deg;
|
|
66
|
+
}
|
|
67
|
+
to {
|
|
68
|
+
--shine-degrees: 360deg;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
@use '$flux/css/mixin';
|
|
2
|
+
|
|
3
|
+
@layer flux-base {
|
|
4
|
+
.button {
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
height: 42px;
|
|
7
|
+
padding: 0 12px;
|
|
8
|
+
align-items: center;
|
|
9
|
+
flex-grow: 0;
|
|
10
|
+
flex-shrink: 0;
|
|
11
|
+
gap: 12px;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
background: unset;
|
|
14
|
+
border: 1px solid;
|
|
15
|
+
border-radius: var(--radius);
|
|
16
|
+
box-shadow: var(--shadow-px);
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
font: inherit;
|
|
19
|
+
text-decoration: none;
|
|
20
|
+
transition: 180ms var(--swift-out);
|
|
21
|
+
transition-property: background, border, box-shadow, color, scale, mixin.focus-ring-transition-properties();
|
|
22
|
+
user-select: none;
|
|
23
|
+
|
|
24
|
+
@include mixin.focus-ring(2px);
|
|
25
|
+
|
|
26
|
+
&:active {
|
|
27
|
+
box-shadow: none;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
z-index: 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:disabled,
|
|
35
|
+
&[aria-disabled=true] {
|
|
36
|
+
box-shadow: none;
|
|
37
|
+
opacity: .5;
|
|
38
|
+
pointer-events: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.isSmall {
|
|
42
|
+
height: 36px;
|
|
43
|
+
padding: 0 9px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.isMedium {
|
|
47
|
+
height: 42px;
|
|
48
|
+
padding: 0 12px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.isLarge {
|
|
52
|
+
height: 48px;
|
|
53
|
+
padding: 0 15px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.isXl {
|
|
57
|
+
height: 54px;
|
|
58
|
+
padding: 0 18px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&.isFilled {
|
|
62
|
+
align-self: stretch;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.buttonIcon {
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
font-size: 20px;
|
|
69
|
+
|
|
70
|
+
&:only-child {
|
|
71
|
+
margin-left: -2px;
|
|
72
|
+
margin-right: -2px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.buttonLabel {
|
|
77
|
+
display: inline-block;
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
text-align: center;
|
|
80
|
+
|
|
81
|
+
&:only-child {
|
|
82
|
+
margin-left: 6px;
|
|
83
|
+
margin-right: 6px;
|
|
84
|
+
min-width: 42px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
$-bubble-d: 3rem;
|
|
4
|
+
$-bubble-r: .5 * $-bubble-d;
|
|
5
|
+
$-sparkle-d: .375rem;
|
|
6
|
+
$-sparkle-r: .5 * $-sparkle-d;
|
|
7
|
+
|
|
8
|
+
@mixin -bubble($ext) {
|
|
9
|
+
border-width: $ext;
|
|
10
|
+
opacity: .15;
|
|
11
|
+
transform: scale(1);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@mixin -sparkles($amount) {
|
|
15
|
+
$-shadow-list: ();
|
|
16
|
+
$-amount-pairs: 5;
|
|
17
|
+
$-group-base-angle: math.div(360deg, $-amount-pairs);
|
|
18
|
+
$-group-distr-r: (1 + $amount * .5) * $-bubble-r;
|
|
19
|
+
$-amount-particles: 3;
|
|
20
|
+
$-sparkle-base-angle: math.div(360deg, $-amount-particles);
|
|
21
|
+
$-sparkle-off-angle: 72deg;
|
|
22
|
+
$-spread-r: -$amount * $-sparkle-r;
|
|
23
|
+
|
|
24
|
+
@for $i from 0 to $-amount-pairs {
|
|
25
|
+
$-group-curr-angle: $i * $-group-base-angle - 90deg;
|
|
26
|
+
$-xg: $-group-distr-r * cos($-group-curr-angle);
|
|
27
|
+
$-yg: $-group-distr-r * sin($-group-curr-angle);
|
|
28
|
+
|
|
29
|
+
@for $j from 0 to $-amount-particles {
|
|
30
|
+
$-sparkle-curr-angle: $-group-curr-angle + $-sparkle-off-angle + $j * $-sparkle-base-angle;
|
|
31
|
+
$-xs: $-xg + $-sparkle-d * cos($-sparkle-curr-angle);
|
|
32
|
+
$-ys: $-yg + $-sparkle-d * sin($-sparkle-curr-angle);
|
|
33
|
+
|
|
34
|
+
$-shadow-list: $-shadow-list, $-xs $-ys 0 $-spread-r hsl(($i + $j) * $-group-base-angle, 100%, 75%);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
box-shadow: $-shadow-list;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.sparklesContainer {
|
|
42
|
+
z-index: 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.sparklesParticles {
|
|
46
|
+
position: absolute;
|
|
47
|
+
display: block;
|
|
48
|
+
top: 0;
|
|
49
|
+
left: 0;
|
|
50
|
+
right: 0;
|
|
51
|
+
bottom: 0;
|
|
52
|
+
align-self: center;
|
|
53
|
+
cursor: pointer;
|
|
54
|
+
font-size: 24px;
|
|
55
|
+
user-select: none;
|
|
56
|
+
|
|
57
|
+
&:before,
|
|
58
|
+
&:after {
|
|
59
|
+
position: absolute;
|
|
60
|
+
top: 50%;
|
|
61
|
+
left: 50%;
|
|
62
|
+
content: '';
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
z-index: -1;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&:before {
|
|
68
|
+
height: $-bubble-d;
|
|
69
|
+
margin: -$-bubble-r;
|
|
70
|
+
width: $-bubble-d;
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
border: $-bubble-r solid currentColor;
|
|
73
|
+
transform: scale(0);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:after {
|
|
77
|
+
margin: -$-sparkle-r;
|
|
78
|
+
width: $-sparkle-d;
|
|
79
|
+
height: $-sparkle-d;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.sparklesContainerActive .sparklesParticles {
|
|
84
|
+
animation: heart 1s var(--deceleration-curve);
|
|
85
|
+
filter: none;
|
|
86
|
+
will-change: font-size;
|
|
87
|
+
|
|
88
|
+
&:before, &:after {
|
|
89
|
+
animation: inherit;
|
|
90
|
+
animation-timing-function: var(--deceleration-curve);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&:before {
|
|
94
|
+
animation-name: bubble;
|
|
95
|
+
will-change: transform, border-width, border-color;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&:after {
|
|
99
|
+
animation-name: sparkles;
|
|
100
|
+
will-change: opacity, box-shadow;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
@keyframes bubble {
|
|
105
|
+
15% {
|
|
106
|
+
@include -bubble($-bubble-r);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
40%,
|
|
110
|
+
100% {
|
|
111
|
+
@include -bubble(0);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
@keyframes heart {
|
|
116
|
+
0%,
|
|
117
|
+
17.5% {
|
|
118
|
+
font-size: 0;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@keyframes sparkles {
|
|
123
|
+
0%,
|
|
124
|
+
20% {
|
|
125
|
+
opacity: 0;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
21% {
|
|
129
|
+
opacity: 1;
|
|
130
|
+
|
|
131
|
+
@include -sparkles(0);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
100% {
|
|
135
|
+
opacity: 0;
|
|
136
|
+
|
|
137
|
+
@include -sparkles(1);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@layer flux-base {
|
|
2
|
+
.basePane {
|
|
3
|
+
background: rgb(var(--gray-0));
|
|
4
|
+
background-clip: padding-box;
|
|
5
|
+
border: 1px solid rgb(var(--gray-11) / .05);
|
|
6
|
+
border-radius: var(--radius);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
[dark] .basePane {
|
|
10
|
+
border-color: rgb(var(--gray-3));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.basePaneLoader {
|
|
14
|
+
position: absolute;
|
|
15
|
+
display: flex;
|
|
16
|
+
inset: 0;
|
|
17
|
+
align-items: center;
|
|
18
|
+
justify-content: center;
|
|
19
|
+
backdrop-filter: blur(2px) saturate(180%);
|
|
20
|
+
background: rgb(var(--gray-0) / .75);
|
|
21
|
+
border-radius: inherit;
|
|
22
|
+
z-index: 100;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.basePaneStructure {
|
|
26
|
+
composes: basePane;
|
|
27
|
+
|
|
28
|
+
position: relative;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.basePaneStructure > .basePaneStructure {
|
|
32
|
+
background: unset;
|
|
33
|
+
border: 0;
|
|
34
|
+
box-shadow: none;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.basePane > .basePaneElement,
|
|
39
|
+
.basePane > :local(.form) > .basePaneElement {
|
|
40
|
+
&:first-child {
|
|
41
|
+
border-top-left-radius: calc(var(--radius) - 1px);
|
|
42
|
+
border-top-right-radius: calc(var(--radius) - 1px);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&:last-child,
|
|
46
|
+
&:not(.paneHeader):nth-last-child(1 of .basePaneElement) {
|
|
47
|
+
border-bottom-left-radius: calc(var(--radius) - 1px);
|
|
48
|
+
border-bottom-right-radius: calc(var(--radius) - 1px);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&:only-child {
|
|
52
|
+
border: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
@value sliderThumb from './Slider.module.scss';
|
|
2
|
+
|
|
3
|
+
.coordinatePicker {
|
|
4
|
+
position: relative;
|
|
5
|
+
aspect-ratio: 5 / 3;
|
|
6
|
+
background: rgb(var(--gray-1));
|
|
7
|
+
border: 1px solid rgb(var(--gray-11) / .05);
|
|
8
|
+
border-radius: calc(var(--radius) / 2);
|
|
9
|
+
z-index: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.coordinatePickerThumb {
|
|
13
|
+
composes: sliderThumb;
|
|
14
|
+
|
|
15
|
+
z-index: 1;
|
|
16
|
+
|
|
17
|
+
&.isDisabled {
|
|
18
|
+
counter-reset: t;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.isDragging {
|
|
22
|
+
counter-reset: t;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
@use '$flux/css/mixin';
|
|
2
|
+
|
|
3
|
+
.slider {
|
|
4
|
+
position: relative;
|
|
5
|
+
display: flex;
|
|
6
|
+
margin: 6px;
|
|
7
|
+
flex-flow: column;
|
|
8
|
+
gap: 9px;
|
|
9
|
+
touch-action: pan-y;
|
|
10
|
+
|
|
11
|
+
&.isDisabled {
|
|
12
|
+
cursor: not-allowed;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.isDragging {
|
|
16
|
+
cursor: grabbing;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.sliderThumb {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 50%;
|
|
23
|
+
height: 24px;
|
|
24
|
+
width: 24px;
|
|
25
|
+
padding: 0;
|
|
26
|
+
background: rgb(var(--gray-0));
|
|
27
|
+
background-clip: padding-box;
|
|
28
|
+
border: 1px solid rgb(var(--gray-11) / .05);
|
|
29
|
+
border-radius: 99px;
|
|
30
|
+
box-shadow: var(--shadow-sm);
|
|
31
|
+
cursor: grab;
|
|
32
|
+
outline: 0;
|
|
33
|
+
translate: -50% -50%;
|
|
34
|
+
|
|
35
|
+
@include mixin.focus-ring-transition(2px);
|
|
36
|
+
|
|
37
|
+
@media (hover: hover) {
|
|
38
|
+
&:hover {
|
|
39
|
+
background-color: rgb(var(--gray-2));
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.isDisabled {
|
|
44
|
+
background-color: rgb(var(--gray-1));
|
|
45
|
+
box-shadow: none;
|
|
46
|
+
pointer-events: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.isDragging {
|
|
50
|
+
box-shadow: var(--shadow-md);
|
|
51
|
+
cursor: grabbing;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
[dark] .sliderThumb {
|
|
56
|
+
background-color: rgb(var(--gray-1));
|
|
57
|
+
border-color: rgb(var(--gray-11) / .4);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.sliderTrack {
|
|
61
|
+
position: relative;
|
|
62
|
+
height: 12px;
|
|
63
|
+
background: rgb(var(--gray-2));
|
|
64
|
+
border-radius: calc(var(--radius) / 2);
|
|
65
|
+
box-shadow: inset 0 0 0 1px rgb(var(--gray-3));
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.sliderTrackValue {
|
|
69
|
+
position: absolute;
|
|
70
|
+
display: block;
|
|
71
|
+
top: 0;
|
|
72
|
+
height: inherit;
|
|
73
|
+
background: rgb(var(--primary-7));
|
|
74
|
+
border-radius: inherit;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.slider.isDisabled .sliderTrackValue {
|
|
78
|
+
background: rgb(var(--gray-4));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.tick {
|
|
82
|
+
position: absolute;
|
|
83
|
+
left: calc(var(--position) * 100% - 1px);
|
|
84
|
+
bottom: 0;
|
|
85
|
+
height: 9px;
|
|
86
|
+
width: 2px;
|
|
87
|
+
background: rgb(var(--gray-4));
|
|
88
|
+
border-radius: 99px;
|
|
89
|
+
color: var(--foreground-prominent);
|
|
90
|
+
font-size: 10px;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
pointer-events: none;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.tickLarge {
|
|
96
|
+
composes: tick;
|
|
97
|
+
|
|
98
|
+
:is(span) {
|
|
99
|
+
position: relative;
|
|
100
|
+
display: inline-block;
|
|
101
|
+
translate: -50% -100%;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.tickSmall {
|
|
106
|
+
composes: tick;
|
|
107
|
+
|
|
108
|
+
height: 6px;
|
|
109
|
+
opacity: .5;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ticks {
|
|
113
|
+
position: relative;
|
|
114
|
+
display: block;
|
|
115
|
+
height: 21px;
|
|
116
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer flux-reset, flux-base, flux-component;
|